.page-game .hero--game { min-height: auto; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.page-game .hero--game .hero__art { min-height: 390px; }
.page-game .hero--game .hero__character { border: 1px solid rgba(51, 231, 239, .34); border-radius: 1.2rem; bottom: auto; box-shadow: 0 28px 70px rgba(0, 0, 0, .42); height: min(360px, 80%); left: 50%; object-fit: cover; top: 50%; transform: translate(-50%, -50%) rotate(1deg); width: min(640px, 105%); }
.game-player-section { padding-top: clamp(3rem, 6vw, 6rem); }
.game-player-section > .shell { max-width: 86rem; }
.game-player { background: linear-gradient(145deg, rgba(9, 26, 19, .98), rgba(2, 8, 6, .98)); border: 1px solid var(--color-border-strong); border-radius: var(--radius-card); box-shadow: 0 28px 100px rgba(5, 255, 126, .11); overflow: hidden; }
.game-player__heading { align-items: center; display: flex; gap: 1rem; justify-content: space-between; padding: 1.25rem clamp(1rem, 3vw, 2rem); }
.game-player__heading h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
.game-state { background: rgba(101, 242, 58, .1); border: 1px solid rgba(101, 242, 58, .34); border-radius: var(--radius-pill); color: var(--color-lime); flex: 0 0 auto; font-size: var(--font-xs); font-weight: 950; letter-spacing: .12em; padding: .42rem .72rem; text-transform: uppercase; }
.game-player[data-state="loading"] .game-state { background: rgba(51, 231, 239, .1); border-color: rgba(51, 231, 239, .4); color: var(--color-cyan); }
.game-player[data-state="unavailable"] .game-state { background: rgba(255, 216, 61, .1); border-color: rgba(255, 216, 61, .4); color: var(--color-yellow); }
.game-player[data-state="degraded"] .game-state { background: rgba(255, 216, 61, .1); border-color: rgba(255, 216, 61, .4); color: var(--color-yellow); }
.game-stage { aspect-ratio: 16 / 9; background: #020403 url('/assets/images/game/flappypeet-poster.jpg') center / cover no-repeat; border-block: 1px solid var(--color-border); min-height: 360px; overflow: hidden; position: relative; }
.game-stage::before { background: linear-gradient(180deg, rgba(2, 8, 6, .2), rgba(2, 8, 6, .82)); content: ""; inset: 0; position: absolute; }
.game-canvas { background: #111; display: block; height: 100%; inset: 0; opacity: 0; position: absolute; touch-action: none; transition: opacity .24s ease; width: 100%; }
.game-player.is-running .game-canvas { opacity: 1; }
.game-player.is-running .game-stage::before { display: none; }
.game-launcher { align-items: center; display: flex; flex-direction: column; gap: clamp(1rem, 3vw, 1.5rem); inset: 0; justify-content: center; padding: clamp(1.25rem, 5vw, 3rem); position: absolute; text-align: center; z-index: 2; }
.game-launcher[hidden] { display: none; }
.game-launcher > img { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .65)); height: auto; max-width: min(390px, 70%); }
.game-launcher__message { display: grid; gap: .65rem; justify-items: center; }
.game-launcher__status { color: #e8f6ed; font-weight: 720; max-width: 38rem; }
.game-launcher__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.game-progress { accent-color: var(--color-lime); height: .9rem; max-width: 28rem; width: min(70vw, 28rem); }
.game-progress__label { color: var(--color-cyan); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.game-toolbar { align-items: center; display: flex; gap: 1rem; justify-content: space-between; min-height: 4.5rem; padding: .85rem clamp(1rem, 3vw, 2rem); }
.game-toolbar p { color: var(--color-muted); font-size: .82rem; }
.game-fullscreen { background: rgba(51, 231, 239, .08); border: 1px solid var(--color-cyan); border-radius: var(--radius-button); color: var(--color-cyan); cursor: pointer; flex: 0 0 auto; font-size: .74rem; font-weight: 900; letter-spacing: .06em; padding: .65rem 1rem; text-transform: uppercase; }
.game-fullscreen:focus-visible, .game-launcher button:focus-visible { outline: 3px solid var(--color-cyan); outline-offset: 3px; }
.game-player:fullscreen { background: #020403; border: 0; border-radius: 0; display: grid; grid-template-rows: auto 1fr auto; height: 100%; width: 100%; }
.game-player:fullscreen .game-stage { aspect-ratio: auto; min-height: 0; }
.game-orientation { color: var(--color-yellow); font-size: .78rem; padding: 0 1rem 1rem; text-align: center; }
.game-support__grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-support__grid .card { min-height: 0; }
.game-support__grid p { color: var(--color-muted); }
.game-support__version { color: var(--color-cyan) !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .page-game .hero--game .hero__art { min-height: 330px; }
  .game-support__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-game .hero--game { padding-bottom: 1rem; }
  .game-player-section { padding-inline: 0; padding-top: 2.5rem; }
  .game-player-section > .shell { padding-inline: .65rem; }
  .game-player__heading { align-items: flex-start; }
  .game-stage { aspect-ratio: 9 / 16; max-height: calc(100svh - 8rem); min-height: 500px; }
  .game-launcher > img { max-width: 82%; }
  .game-launcher__actions { display: grid; width: min(100%, 20rem); }
  .game-toolbar { align-items: flex-start; flex-direction: column; }
  .game-fullscreen { width: 100%; }
}
@media (orientation: landscape) and (max-height: 640px) {
  .game-stage { aspect-ratio: 16 / 9; max-height: calc(100svh - 2rem); min-height: 280px; }
  .game-launcher { gap: .7rem; padding: 1rem; }
  .game-launcher > img { max-height: 20vh; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .game-canvas { transition: none; } }
