/* Game pages (/games/<slug>), generated by scripts/game-pages.mjs. Same look as the homepage. */
:root {
  --bg: #0b0b14; --bg-2: #12121f; --panel: #171728; --line: #2a2a44;
  --ink: #f2efe6; --ink-dim: #a7a5b8; --yellow: #ffd23f; --cyan: #3de3ff;
  --pixel: "Silkscreen", ui-monospace, monospace; --sans: "Space Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 20, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--pixel); font-size: 15px; }
.logo-mark { width: 30px; height: 30px; border-radius: 6px; background: var(--yellow); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--ink-dim); font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--ink); }
.cc-gs { font-family: var(--pixel); font-size: 11px; color: var(--yellow); }
@media (max-width: 420px) { .nav ul { gap: 14px; } .nav ul a { font-size: 13px; } .nav .logo { font-size: 12px; gap: 6px; } .nav .cc-gs { display: none; } }

.crumbs { padding: 28px 0 20px; font-size: 14px; color: var(--ink-dim); }
.crumbs a { color: var(--cyan); }

.game-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (max-width: 860px) { .game-top { grid-template-columns: 1fr; } }
.cabinet { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; margin: 0; padding: 22px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--game-accent) 13%, #0b0b14), #090913 76%); border-right: 1px solid var(--line); }
@media (max-width: 860px) { .cabinet { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 14px 14px; } }
.cabinet img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: #05050a; }
.cabinet figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-dim); font-size: 13px; }
.preview-toggle { margin-left: auto; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer; }
.preview-toggle:hover, .preview-toggle:focus-visible { border-color: var(--game-accent); }
.game-intro { container-type: inline-size; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 600px) { .game-intro { padding: 28px 22px; } }
.game-title { font-family: var(--pixel); font-weight: 700; font-size: clamp(24px, 10.5cqi, 54px); line-height: 1.05; margin: 0; color: var(--game-accent); text-wrap: balance; }
/* sized to its column (cqi) so a one-word name like GRAVOCADO stays on one line; two-word names may wrap between words */
.tag { font-family: var(--pixel); font-size: 12px; color: var(--ink-dim); margin: 10px 0 4px; }
.game-intro p:not(.tag) { color: var(--ink-dim); margin: 12px 0 24px; }
.game-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.game-links > a:not(.btn) { color: var(--cyan); }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--pixel); font-size: 14px; padding: 15px 22px; border-radius: 6px; transition: transform .12s ease, box-shadow .12s ease; }
.btn-primary { background: var(--yellow); color: var(--bg); box-shadow: 0 4px 0 #b8901a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #b8901a; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8901a; }

h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
.game-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; padding: 64px 0 24px; }
@media (max-width: 860px) { .game-detail { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; } }
.game-detail p { color: var(--ink-dim); margin: 0 0 14px; }
.game-facts { margin: 0; font-size: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 22px; }
.game-facts div { padding: 12px 0; }
.game-facts div + div { border-top: 1px solid var(--line); }
.game-facts dt { font-weight: 700; }
.game-facts dd { margin: 0; color: var(--ink-dim); }
.game-facts a, .faq a { color: var(--cyan); }

.game > section { padding: 40px 0 72px; }
.game > section + section { padding-top: 0; }

.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .shots { grid-template-columns: 1fr; } }
.shots a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #05050a; }
.shots a:hover { border-color: var(--game-accent); }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .2s ease; }
.shots a:hover img { transform: scale(1.03); }

.lightbox { width: min(1280px, 100vw - 32px); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 5, 10, 0.88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; height: auto; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 12px 12px 0 0; background: #05050a; }
.lightbox figcaption { padding: 12px 16px; color: var(--ink-dim); font-size: 15px; }
.lightbox button { position: absolute; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox button:hover { border-color: var(--game-accent); }
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: calc(50% - 40px); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.faq { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.faq dt { font-weight: 700; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--ink-dim); font-size: 15px; }

.more { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 72px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .more ul { grid-template-columns: 1fr; } }
.more a { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 16px; }
.more a:hover { border-color: var(--game-accent); }
.more img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #05050a; margin-bottom: 8px; }
.more b { font-family: var(--pixel); color: var(--game-accent); font-size: 17px; }
.more span { color: var(--ink-dim); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer .legal { display: flex; gap: 20px; }
footer .legal a { color: var(--ink-dim); }
footer .legal a:hover { color: var(--ink); }

.cookie-notice { position: fixed; z-index: 10; bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right));
  left: max(12px, env(safe-area-inset-left)); width: fit-content; max-width: min(640px, calc(100% - 24px)); margin-left: auto;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); box-shadow: 0 10px 30px #0008; font-size: 14px; }
.cookie-notice:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cookie-notice p { flex: 1 1 240px; margin: 0; }
.cookie-notice a { color: var(--cyan); }
.cookie-notice button { background: var(--yellow); color: #0b0b14; border: 0; border-radius: 6px; min-height: 44px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
