/* Individual game pages — editable, independent of the homepage. */
.game-page { min-height: 100vh; }
.game-page .topbar { justify-content: space-between; }
.back-link { color: var(--cyan); font-weight: 700; }
.game-main { width: min(1060px, 94%); margin: 38px auto 70px; }
.game-main h1 { font: 900 clamp(25px, 4vw, 42px) Orbitron, sans-serif; color: var(--cyan); }
.game-description { color: #c9c8db; line-height: 1.5; max-width: 780px; }
.game-frame { margin: 25px 0; border: 2px solid #9b2da8; border-radius: 10px; overflow: hidden; background: #080b19; box-shadow: 0 0 28px #ff35cb30; }
.game-frame iframe { width: 100%; height: min(72vw, 620px); min-height: 350px; border: 0; display: block; }
.game-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 22px 0; }
.controls { border: 1px solid #6c3c9b; border-radius: 10px; background: #0c1229; margin: 28px 0; }
.controls summary { cursor: pointer; padding: 18px 22px; color: var(--cyan); font: 700 17px Orbitron, sans-serif; }
.controls[open] summary { border-bottom: 1px solid #54377a; }
.controls-inner { padding: 20px; display: flex; flex-wrap: wrap; gap: 26px; }
.control-item { min-width: 180px; flex: 1; }
.control-item h3 { font: 700 14px Orbitron, sans-serif; color: #ff85dc; }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 42px; padding: 0 10px; margin: 2px; border: 1px solid #49dff0; border-bottom-width: 4px; border-radius: 7px; color: white; background: #19243c; font: 700 20px Rajdhani, sans-serif; }
.credits { border-top: 1px solid #54377a; padding-top: 20px; color: #b5b4d1; }
.credits a { color: var(--cyan); text-decoration: underline; }
@media (max-width: 680px) { .game-frame iframe { min-height: 320px; } }

/* Locally hosted games: allow the player to expand without losing its frame. */
.game-frame.local-game iframe { height: min(76vw, 700px); min-height: 420px; }
.game-frame.local-game.wide iframe { height: min(62vw, 660px); }
@media (max-width: 680px) { .game-frame.local-game iframe { min-height: 360px; } }
