/* ==========================================================================
   3 ANGELS & 3 DEVILS: RIVER CROSSING PUZZLE (PAAR KAR KE DIKHAO)
   Styled for games.html - Kishan Kumar Sharma Portfolio
   ========================================================================== */

/* Hero Banner */
.games-hero-section {
  padding-top: 105px;
  padding-bottom: 16px;
  text-align: center;
  position: relative;
}

.games-hero-section .display-title {
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.games-hero-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.games-quick-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.game-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 22, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7DD3FC;
}

/* --------------------------------------------------------------------------
   PUZZLE CONSOLE CONTAINER
   -------------------------------------------------------------------------- */
.puzzle-console-card {
  background: linear-gradient(180deg, #091024 0%, #050814 100%);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 28px;
  box-shadow: 
    0 35px 90px -15px rgba(0, 0, 0, 0.9),
    0 0 45px -10px rgba(56, 189, 248, 0.25);
  padding: 24px;
  max-width: 1040px;
  margin: 0 auto 60px;
  position: relative;
  overflow: hidden;
}

/* Puzzle Top Bar */
.puzzle-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(6, 12, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.puzzle-hud-counters {
  display: flex;
  align-items: center;
  gap: 20px;
}

.puzzle-hud-stat {
  display: flex;
  flex-direction: column;
}

.puzzle-hud-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748B;
  text-transform: uppercase;
}

.puzzle-hud-val {
  font-family: var(--font-heading, monospace);
  font-size: 1.25rem;
  font-weight: 800;
  color: #38BDF8;
}

.puzzle-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-game-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(14, 22, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #E2E8F0;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-game-action:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #FFFFFF;
  border-color: #38BDF8;
}

.btn-game-action.btn-reset {
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-game-action.btn-reset:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #FFFFFF;
}

.btn-game-action.btn-share {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(18, 140, 126, 0.3) 100%);
  border-color: rgba(37, 211, 102, 0.5);
  color: #4ADE80;
}

.btn-game-action.btn-share:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* Sound Button & Wave Bars */
.btn-game-action.btn-sound {
  border-color: rgba(52, 211, 153, 0.4);
  color: #34D399;
  background: rgba(6, 78, 59, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-game-action.btn-sound.active {
  border-color: #10B981;
  color: #6EE7B7;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.btn-game-action.btn-sound.muted {
  border-color: rgba(239, 68, 68, 0.4);
  color: #F87171;
  background: rgba(127, 29, 29, 0.25);
  opacity: 0.75;
}

.sound-wave-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-wave-bars .bar {
  width: 3px;
  height: 100%;
  background: #34D399;
  border-radius: 2px;
  animation: soundBarBounce 0.8s ease-in-out infinite alternate;
}

.sound-wave-bars .bar.b1 { animation-delay: 0.1s; height: 40%; }
.sound-wave-bars .bar.b2 { animation-delay: 0.3s; height: 100%; }
.sound-wave-bars .bar.b3 { animation-delay: 0.2s; height: 60%; }

.btn-sound.muted .sound-wave-bars .bar {
  animation: none;
  height: 20%;
  background: #EF4444;
}

@keyframes soundBarBounce {
  0% { height: 25%; }
  100% { height: 100%; }
}

/* --------------------------------------------------------------------------
   PANDA REFEREE HOST BANNER (Dada's Panda says: "Paar Kar Ke Dikhao!")
   -------------------------------------------------------------------------- */
.panda-referee-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(14, 22, 42, 0.95) 0%, rgba(8, 14, 28, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 12px 20px;
  margin-bottom: 24px;
}

.panda-referee-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  animation: pandaBounceIdle 2s ease-in-out infinite alternate;
}

@keyframes pandaBounceIdle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.panda-speech-content {
  flex: 1;
}

.panda-speech-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.panda-speech-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

.panda-speech-text strong {
  color: #34D399;
}

/* --------------------------------------------------------------------------
   THE RIVER CROSSING STAGE (RICH REALISTIC WATER & SHORES)
   -------------------------------------------------------------------------- */
.river-stage-wrap {
  position: relative;
  width: 100%;
  height: 410px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.35);
  display: flex;
  box-shadow: 
    inset 0 0 50px rgba(0, 0, 0, 0.9),
    0 25px 60px -15px rgba(0, 0, 0, 0.95);
  background: #02050E;
}

/* Bank Zones */
.bank-zone {
  width: 28%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 14px 10px;
  overflow: hidden;
}

.left-bank {
  background: linear-gradient(90deg, #091222 0%, rgba(9, 18, 34, 0.96) 80%, rgba(3, 10, 24, 0.8) 100%);
  border-right: 2px dashed rgba(56, 189, 248, 0.4);
}

.right-bank {
  background: linear-gradient(270deg, #051A19 0%, rgba(5, 26, 25, 0.96) 80%, rgba(2, 18, 17, 0.8) 100%);
  border-left: 2px dashed rgba(16, 185, 129, 0.4);
}

/* Shoreline ambient glows */
.bank-shoreline-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  opacity: 0.6;
}

.left-shore-glow {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.25));
}

.right-shore-glow {
  left: 0;
  background: linear-gradient(270deg, transparent, rgba(16, 185, 129, 0.25));
}

.bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.bank-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
}

.bank-count-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Bank Ground Shore Strips */
.bank-ground-strip {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  z-index: 2;
}

.ground-grass-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.04em;
}

.ground-grass-tag.goal-tag {
  color: #34D399;
}

/* Characters Container on Banks */
.characters-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: center;
  justify-items: center;
  flex: 1;
  padding: 10px 0;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   THE RIVER & REALISTIC FLOWING LIQUID WATER
   -------------------------------------------------------------------------- */
.river-zone {
  flex: 1;
  position: relative;
  height: 100%;
  background: radial-gradient(ellipse at 50% 65%, #042547 0%, #021428 55%, #010A14 100%);
  overflow: hidden;
}

/* Base Water Shimmer */
.river-water-base {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(2, 28, 56, 0.6) 0%, rgba(1, 14, 30, 0.9) 100%);
  pointer-events: none;
}

/* Layered Animated Water Currents */
.river-water-flow {
  position: absolute;
  top: 0;
  left: -20%;
  right: -20%;
  bottom: 0;
  pointer-events: none;
}

.wave-layer-back {
  background: radial-gradient(ellipse at 40% 40%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 70%, rgba(56, 189, 248, 0.14) 0%, transparent 60%);
  animation: riverCurrentShift 7s ease-in-out infinite alternate;
}

.wave-layer-mid {
  background: radial-gradient(circle at 60% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 30% 80%, rgba(2, 132, 199, 0.18) 0%, transparent 50%);
  animation: riverCurrentShift 9s ease-in-out infinite alternate-reverse;
}

.wave-layer-front {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(56, 189, 248, 0.08) 20%, 
    rgba(14, 165, 233, 0.14) 50%, 
    rgba(56, 189, 248, 0.08) 80%, 
    transparent 100%);
  animation: riverFlowHorizontal 6s ease-in-out infinite alternate;
}

@keyframes riverCurrentShift {
  0% { transform: scale(1) translateY(0) rotate(0deg); }
  50% { transform: scale(1.08) translateY(12px) rotate(1.5deg); }
  100% { transform: scale(0.95) translateY(-8px) rotate(-1.5deg); }
}

@keyframes riverFlowHorizontal {
  0% { transform: translateX(-20px); opacity: 0.5; }
  100% { transform: translateX(20px); opacity: 0.9; }
}

/* Water Caustics Shimmer */
.river-caustics-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 25px,
    rgba(56, 189, 248, 0.04) 26px,
    transparent 28px
  );
  animation: causticsMove 12s linear infinite;
  pointer-events: none;
}

@keyframes causticsMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

/* Water Wave SVG Ripples */
.river-ripples-svg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.water-wave-svg {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 5%, 
    rgba(56, 189, 248, 0.25) 20%, 
    rgba(125, 211, 252, 0.6) 50%, 
    rgba(56, 189, 248, 0.25) 80%, 
    transparent 95%);
  border-radius: 50%;
  filter: blur(0.5px);
  animation: waveSvgRipple 4s ease-in-out infinite alternate;
}

.wave-svg-1 { top: 35%; animation-duration: 4.5s; }
.wave-svg-2 { top: 72%; animation-duration: 5.5s; animation-delay: 1.5s; }

@keyframes waveSvgRipple {
  0% { transform: scaleX(0.85) translateY(0); opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { transform: scaleX(1.1) translateY(8px); opacity: 0.2; }
}

/* Shore Foam along river edges */
.shore-foam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  pointer-events: none;
  z-index: 3;
}

.left-foam {
  left: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(186, 230, 253, 0.35) 0%, transparent 70%);
  animation: foamBreath 3s ease-in-out infinite alternate;
}

.right-foam {
  right: 0;
  background: radial-gradient(ellipse at 100% 50%, rgba(167, 243, 208, 0.35) 0%, transparent 70%);
  animation: foamBreath 3.5s ease-in-out infinite alternate-reverse;
}

@keyframes foamBreath {
  0% { opacity: 0.4; transform: scaleX(0.8); }
  100% { opacity: 0.85; transform: scaleX(1.2); }
}

/* Ambient Floating Flora */
.floating-flora {
  position: absolute;
  font-size: 1.25rem;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
  animation: floraBob 4s ease-in-out infinite alternate;
}

.flora-1 { top: 22%; left: 35%; animation-duration: 4.8s; }
.flora-2 { top: 76%; left: 62%; animation-duration: 5.2s; animation-delay: 1.2s; }

@keyframes floraBob {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(4deg); }
  100% { transform: translateY(2px) rotate(-3deg); }
}

/* --------------------------------------------------------------------------
   THE FLOATING BOAT VESSEL (WOODEN TEXTURE, LANTERN & NATURAL WATER BOBBING)
   -------------------------------------------------------------------------- */
.boat-vessel {
  position: absolute;
  bottom: 84px;
  width: 154px;
  height: 94px;
  transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 15;
  cursor: pointer;
  animation: boatFloatingWaves 3.8s ease-in-out infinite;
}

.boat-vessel.at-left {
  left: 14px;
}

.boat-vessel.at-right {
  left: calc(100% - 168px);
}

/* Natural Floating Water Bobbing Physics */
@keyframes boatFloatingWaves {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(1.4deg); }
  50% { transform: translateY(2px) rotate(-1deg); }
  75% { transform: translateY(-3px) rotate(1.1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Boat Moving Physics Tilt */
.boat-vessel.rowing-right {
  animation: boatRowingRight 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.boat-vessel.rowing-left {
  animation: boatRowingLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes boatRowingRight {
  0% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-6px) rotate(4deg); }
  60% { transform: translateY(-2px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes boatRowingLeft {
  0% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-6px) rotate(-4deg); }
  60% { transform: translateY(-2px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Boat Lantern casting amber reflection */
.boat-lantern {
  position: absolute;
  top: -12px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lantern-flame {
  font-size: 1.1rem;
  animation: lanternFlicker 1.8s ease-in-out infinite alternate;
}

.lantern-water-reflection {
  position: absolute;
  top: 98px;
  width: 32px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(251, 191, 36, 0.45) 0%, transparent 70%);
  filter: blur(2px);
  animation: lanternFlicker 1.8s ease-in-out infinite alternate;
}

@keyframes lanternFlicker {
  0% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6)); }
  100% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.9)); }
}

/* Animated Rowing Oars */
.boat-oar {
  position: absolute;
  bottom: 22px;
  width: 42px;
  height: 4px;
  background: #78350F;
  border-radius: 2px;
  z-index: 4;
  transform-origin: 0% 50%;
  pointer-events: none;
}

.boat-oar.oar-left {
  left: -12px;
  transform: rotate(-25deg);
}

.boat-oar.oar-right {
  right: -24px;
  transform: rotate(25deg);
  transform-origin: 100% 50%;
}

.boat-vessel.rowing-in-progress .boat-oar.oar-left {
  animation: oarPaddleStrokeLeft 0.6s ease-in-out infinite;
}

.boat-vessel.rowing-in-progress .boat-oar.oar-right {
  animation: oarPaddleStrokeRight 0.6s ease-in-out infinite;
}

@keyframes oarPaddleStrokeLeft {
  0% { transform: rotate(-20deg) translateY(0); }
  50% { transform: rotate(-45deg) translateY(6px); }
  100% { transform: rotate(-20deg) translateY(0); }
}

@keyframes oarPaddleStrokeRight {
  0% { transform: rotate(20deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
  100% { transform: rotate(20deg) translateY(0); }
}

/* Boat Passenger Seats */
.boat-seats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  z-index: 5;
  min-height: 64px;
  align-items: flex-end;
}

/* Wooden Hull with Planks and Brass Trim */
.boat-hull {
  position: relative;
  width: 148px;
  height: 32px;
  background: linear-gradient(180deg, #854D0E 0%, #451A03 60%, #2A0E02 100%);
  border-radius: 6px 6px 20px 20px;
  border: 1.5px solid #D97706;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.8),
    inset 0 2px 4px rgba(254, 240, 138, 0.3),
    0 0 16px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 6;
}

.boat-wood-texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(0, 0, 0, 0.18) 21px,
    transparent 22px
  );
  pointer-events: none;
}

.boat-name-tag {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #FEF08A;
  text-transform: uppercase;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.boat-waterline-foam {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(224, 242, 254, 0.6) 20%, rgba(224, 242, 254, 0.9) 50%, rgba(224, 242, 254, 0.6) 80%, transparent);
}

.boat-water-shadow {
  position: absolute;
  bottom: -6px;
  width: 140px;
  height: 12px;
  border-radius: 50%;
  background: rgba(1, 10, 20, 0.7);
  filter: blur(4px);
  z-index: 1;
}

/* Water Splash FX Circles */
.water-splash-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #7DD3FC;
  pointer-events: none;
  animation: waterSplashRipple 0.55s ease-out forwards;
  z-index: 20;
}

@keyframes waterSplashRipple {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; border-color: #BAE6FD; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; border-color: #38BDF8; }
}

/* Row Boat Action Button */
.boat-row-action-wrap {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
}

.btn-row-boat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(125, 211, 252, 0.4);
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.7);
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
}

.btn-row-boat:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 38px -5px rgba(2, 132, 199, 0.9);
  background: linear-gradient(135deg, #0369A1 0%, #1D4ED8 100%);
  border-color: #38BDF8;
}

.btn-row-boat:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   CHARACTERS: REAL BAITHNE WALA FEEL & JUMP ANIMATIONS
   -------------------------------------------------------------------------- */
.character-token {
  width: 58px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  position: relative;
  z-index: 10;
}

.character-token:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Angel Styling & Halo */
.character-token.angel-token {
  background: rgba(14, 165, 233, 0.18);
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.3);
}

.character-token.angel-token:hover {
  border-color: #38BDF8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.65);
}

.character-token.angel-token .char-icon {
  animation: angelFloatWings 2.4s ease-in-out infinite alternate;
}

@keyframes angelFloatWings {
  0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5)); }
  100% { transform: translateY(-3px) scale(1.05); filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.8)); }
}

/* Devil Styling & Horns */
.character-token.devil-token {
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(239, 68, 68, 0.3);
}

.character-token.devil-token:hover {
  border-color: #EF4444;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.65);
}

.character-token.devil-token .char-icon {
  animation: devilWiggleTail 2.2s ease-in-out infinite alternate;
}

@keyframes devilWiggleTail {
  0% { transform: rotate(-2deg); filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5)); }
  100% { transform: rotate(3deg) scale(1.04); filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.8)); }
}

/* Physical Jumping Animation into Boat */
.character-token.jumping-to-boat {
  animation: hopArcToBoat 0.28s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
  pointer-events: none;
  z-index: 30;
}

@keyframes hopArcToBoat {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.25) translateY(-38px) rotate(12deg); opacity: 1; filter: drop-shadow(0 15px 25px rgba(56, 189, 248, 0.8)); }
  100% { transform: scale(0.9) translateY(0) rotate(0deg); opacity: 0.2; }
}

/* Physical Jumping Animation to Bank */
.character-token.jumping-to-bank {
  animation: hopArcToBank 0.28s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
  pointer-events: none;
  z-index: 30;
}

@keyframes hopArcToBank {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.25) translateY(-38px) rotate(-12deg); opacity: 1; filter: drop-shadow(0 15px 25px rgba(52, 211, 153, 0.8)); }
  100% { transform: scale(0.9) translateY(0) rotate(0deg); opacity: 0.2; }
}

/* Juicy Squash and Stretch Landing in Boat */
.character-token.token-just-landed {
  animation: tokenSquashLand 0.38s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes tokenSquashLand {
  0% { transform: scale(1.25, 0.72) translateY(5px); }
  45% { transform: scale(0.94, 1.12) translateY(-4px); }
  75% { transform: scale(1.04, 0.96) translateY(1px); }
  100% { transform: scale(1, 1) translateY(0); }
}

/* Character Seated in Boat */
.character-token.in-boat {
  width: 54px;
  height: 58px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.character-token.in-boat::after {
  content: '⚓';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.65rem;
  opacity: 0.8;
}

.char-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 2px;
}

.char-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.angel-token .char-label { color: #7DD3FC; }
.devil-token .char-label { color: #FCA5A5; }

/* --------------------------------------------------------------------------
   MODALS: VICTORY, GAME OVER & RULES
   -------------------------------------------------------------------------- */
.puzzle-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  overflow-y: auto;
}

.puzzle-modal-backdrop.show-modal {
  display: flex;
}

.puzzle-modal-title {
  font-family: var(--font-display, var(--font-heading));
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.puzzle-modal-title.victory-title {
  color: #34D399;
}

.puzzle-modal-title.fail-title {
  color: #EF4444;
}

.puzzle-modal-desc {
  font-size: 0.95rem;
  color: #CBD5E1;
  max-width: 480px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.modal-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Specific Rules Modal Box */
.rules-modal-box {
  background: linear-gradient(180deg, #0D162C 0%, #060B18 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 22px;
  padding: 24px 28px 20px;
  max-width: 520px;
  width: 95%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.2);
  text-align: left;
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-icon:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #FFFFFF;
}

.rules-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rules-icon {
  font-size: 1.8rem;
}

.rules-body-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: #CBD5E1;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rule-item.danger-rule {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.rule-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(56, 189, 248, 0.2);
  color: #7DD3FC;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.rule-bullet.danger-bullet {
  background: rgba(239, 68, 68, 0.25);
  color: #F87171;
  font-size: 0.8rem;
}

.rules-footer-action {
  text-align: center;
}

.btn-rules-start {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%) !important;
  color: #FFFFFF !important;
  border-color: #38BDF8 !important;
  padding: 10px 24px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.6) !important;
  width: 100%;
}

.btn-rules-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.85) !important;
}

/* Share Toast */
.share-toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #34D399;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.share-toast-notification.show-toast {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   COMING SOON GAMES MENU CARDS
   -------------------------------------------------------------------------- */
.games-catalog-section {
  padding-bottom: 100px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.game-catalog-card {
  background: rgba(11, 18, 33, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.game-catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8);
}

.game-catalog-card.featured-card {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 45px -10px rgba(56, 189, 248, 0.25);
}

.game-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.status-active { color: #34D399; }
.status-soon { color: #FBBF24; }

.game-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.game-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bank-zone {
    width: 32%;
    padding: 12px 8px;
  }
  .character-token {
    width: 46px;
    height: 52px;
  }
  .char-icon {
    font-size: 1.4rem;
  }
  .boat-vessel {
    width: 100px;
  }
  .boat-vessel.at-right {
    left: calc(100% - 110px);
  }
  .boat-hull {
    width: 95px;
    height: 24px;
  }
  .river-stage-wrap {
    height: 350px;
  }
}
