.page--game {
  align-items: stretch;
}

.game-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(24px, 5vh, 40px);
  position: relative;
  width: min(1260px, 100%);
  margin: 0 auto;
}

.game-experience {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(300px, 0.85fr) minmax(520px, 1.15fr);
  gap: clamp(24px, 4.5vw, 42px);
  align-items: stretch;
}

.game-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: clamp(14px, 2.5vw, 24px);
  padding: clamp(24px, 5vw, 40px);
  border-radius: 32px;
  border: 3px solid rgba(47, 42, 30, 0.18);
  background: linear-gradient(160deg, rgba(255, 235, 170, 0.86), rgba(255, 250, 223, 0.88));
  box-shadow: 0 18px 36px rgba(47, 42, 30, 0.18);
  overflow: hidden;
  height: 100%;
  max-width: none;
}

.game-hero::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 2px dashed rgba(47, 42, 30, 0.12);
  pointer-events: none;
}

.game-hero__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(47, 42, 30, 0.82);
  color: #ffeb9a;
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.game-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(40px, 5.5vw, 58px);
}

.game-hero__lead {
  position: relative;
  z-index: 1;
  font-size: var(--font-size-sm);
  line-height: 1.7;
  max-width: 640px;
  color: rgba(47, 42, 30, 0.82);
}

.game-hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.game-hero__version,
.game-hero__note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid rgba(47, 42, 30, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(47, 42, 30, 0.68);
}

.game-hero__note {
  background: rgba(47, 42, 30, 0.08);
  color: rgba(47, 42, 30, 0.74);
}

.game-hero__subtext {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(47, 42, 30, 0.55);
}

.game-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.game-score,
.game-timer,
.game-highscore {
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-score span,
.game-timer span,
.game-highscore span {
  font-size: var(--font-size-xl);
}

.game-button {
  padding: 14px 26px;
  background: var(--color-accent);
  border: none;
  border-radius: 16px;
  color: #fff7d6;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(47, 42, 30, 0.18);
  transition: transform var(--duration-fast) var(--easing-primary),
    box-shadow var(--duration-fast) var(--easing-primary);
}

.game-button:hover,
.game-button:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 26px rgba(47, 42, 30, 0.24);
}

.game-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.game-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-board {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 32px;
  border: 5px solid rgba(47, 42, 30, 0.22);
  box-shadow: 0 24px 44px rgba(47, 42, 30, 0.22);
  background: linear-gradient(165deg, rgba(255, 241, 193, 0.88), rgba(255, 255, 255, 0.72));
  overflow: hidden;
}

.game-board::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  border: 2px dashed rgba(47, 42, 30, 0.2);
  pointer-events: none;
  z-index: 1;
}

.game-board__hud {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  left: clamp(16px, 4vw, 36px);
  right: clamp(16px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}

.game-board__arena {
  position: absolute;
  inset: clamp(64px, 8vw, 90px);
  border-radius: 24px;
  background: #fef0c5;
  box-shadow: inset 0 0 32px rgba(47, 42, 30, 0.08);
  overflow: hidden;
}

.game-board__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 22vw, 260px);
  opacity: 0.22;
  filter: saturate(125%);
  pointer-events: auto;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--easing-primary), transform var(--duration-fast) var(--easing-primary);
  z-index: 3;
}

.game-board__logo:hover,
.game-board__logo:focus-visible {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(1.05);
}

.banana-sprite {
  position: absolute;
  width: clamp(72px, 8vw, 120px);
  height: auto;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 12px 20px rgba(47, 42, 30, 0.25));
  transition: transform var(--duration-fast) var(--easing-primary);
}

.banana-sprite:hover,
.banana-sprite:focus-visible {
  transform: scale(1.08);
}

.game-toast {
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translate(-50%, -50%);
  background: rgba(47, 42, 30, 0.85);
  color: #fff7d6;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: var(--font-size-sm);
  animation: toastPop var(--duration-medium) var(--easing-primary) both;
  pointer-events: none;
  z-index: 5;
}

@keyframes toastPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  40% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.96);
  }
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 224, 102, 0.3);
  backdrop-filter: blur(4px);
  z-index: 4;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--duration-medium) var(--easing-primary),
    visibility var(--duration-medium) var(--easing-primary);
}

.game-overlay[data-visible='true'] {
  visibility: visible;
  opacity: 1;
}

.game-overlay__panel {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 238, 168, 0.92) 60%, rgba(255, 215, 0, 0.85) 100%);
  border: 4px solid rgba(47, 42, 30, 0.35);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
  box-shadow: 0 26px 48px rgba(47, 42, 30, 0.28);
  overflow: hidden;
}

.game-overlay__panel h2 {
  margin: 0 0 12px;
}

.game-overlay__panel p {
  margin: 0;
  font-size: var(--font-size-sm);
}

.game-overlay__hint {
  margin-top: 10px;
  font-size: var(--font-size-xs);
  opacity: 0.8;
}

.game-overlay__panel::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.65), rgba(255, 215, 0, 0));
  opacity: 0.7;
}

.game-overlay__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.game-button.ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  border: 3px solid rgba(47, 42, 30, 0.3);
  box-shadow: inset 0 0 0 2px rgba(47, 42, 30, 0.1);
}

.game-button.ghost:hover,
.game-button.ghost:focus-visible {
  transform: translateY(-4px) scale(1.02);
}

.game-button.ghost.subtle {
  background: rgba(255, 255, 255, 0.65);
  border-style: dashed;
  color: var(--color-muted);
}

.game-button.ghost.subtle:hover,
.game-button.ghost.subtle:focus-visible {
  color: var(--color-text);
  border-style: solid;
}

@media (max-width: 960px) {
  .game-body {
    gap: clamp(20px, 6vh, 32px);
  }

  .game-experience {
    grid-template-columns: 1fr;
  }

  .game-hero {
    padding: clamp(24px, 8vw, 36px);
  }

  .game-board {
    width: min(720px, 92vw);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .game-body {
    gap: clamp(22px, 6vh, 34px);
  }

  .game-experience {
    gap: clamp(18px, 5vw, 28px);
  }

  .game-board {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 640px) {
  .game-hero {
    padding: clamp(22px, 12vw, 32px);
    gap: 16px;
  }

  .game-hero h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .game-hero__lead {
    font-size: var(--font-size-sm);
  }

  .game-hero__meta {
    gap: 10px;
  }

  .game-hero__version,
  .game-hero__note {
    padding: 6px 14px;
    letter-spacing: 0.08em;
  }

  .game-board {
    width: 92vw;
    margin: 0 auto;
  }

  .game-board__logo {
    width: clamp(120px, 28vw, 200px);
  }
}
