:root { --bg: #0D1118; --bg2: #121823; --plate: #1A2130; --line: #2A3345; --text: #E8ECF2; --soft: #C5CDDA; --muted: #9AA4B5;
  --gold: #FFC53D; --gold-d: #9E7400; --red: #E5242B; --blue: #3B82F6;
  --display: "Big Shoulders Display", Impact, "Arial Narrow Bold", sans-serif; --body: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --n2l-ease-out: cubic-bezier(.22, 1, .36, 1); --n2l-ease-in: cubic-bezier(.4, 0, 1, 1); --n2l-dur-open: .22s; --n2l-dur-close: .16s; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, ::before, ::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); }
a { color: var(--gold); } a:hover { color: #FFD873; }
img, video { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--gold); color: var(--bg); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* navbar */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(13, 17, 24, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav .wrap { display: flex; align-items: center; gap: 10px 32px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; display: block; }
.brand span { font: 900 26px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.brand:hover { color: #fff; }
.links { display: flex; align-items: center; gap: 2px 24px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.links a { color: var(--soft); text-decoration: none; font: 600 15px/1 var(--body); letter-spacing: .02em; padding: 10px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.links a:hover, .links a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.links .sep { width: 1px; height: 18px; background: var(--line); flex: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }
/* R-DT8: on desktop About's links (its 9, keyed by #trailer) fit at a tighter gap or wrap onto a 2nd row, never a hidden
   sideways scroll (738 px in a 663 px box); phones keep their scroll strip below */
@media (min-width: 901px) {
  .links:has(> a[href="#trailer"]) { flex-wrap: wrap; overflow-x: visible; gap: 2px 14px; }
}
@media (min-width: 901px) and (max-width: 1239px) { html:has(.links > a[href="#trailer"]) { scroll-padding-top: 124px; } } /* the 2-row nav */
@media (max-width: 900px) {
  .nav .wrap { flex-wrap: wrap; }
  .links { order: 3; flex-basis: 100%; gap: 2px 20px; }
  .nav-cta { margin-left: auto; }
  .brand span { font-size: 22px; }
}
@media (max-width: 480px) { .brand span { display: none; } .nav .wrap { gap: 6px 12px; } }

/* buttons */
.btn-play { display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: var(--gold); color: var(--bg); text-decoration: none;
  font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 6px 0 var(--gold-d);
  transition: transform .08s, box-shadow .08s, filter .15s; }
.btn-play:hover { color: var(--bg); filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 0 var(--gold-d); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-d); }
.btn-play svg { flex: none; }
.btn-sm { height: 48px; padding: 0 26px; font-size: 22px; box-shadow: 0 4px 0 var(--gold-d); }
.btn-xl { width: 100%; height: clamp(76px, 11vh, 112px); font-size: clamp(40px, min(6vw, 7vh), 68px); box-shadow: 0 10px 0 var(--gold-d); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--text); border: 2px solid var(--line); transition: border-color .15s, background .15s; }
.btn-ghost:hover { color: #fff; border-color: var(--gold); background: var(--plate); }
@media (max-width: 560px) { .btn-sm { padding: 0 18px; font-size: 20px; } .btn-xl { height: 88px; } }

/* shared bits */
.kicker { margin: 0; font: 700 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.h2 { margin: 0; font: 900 clamp(44px, 6vw, 64px)/.95 var(--display); text-transform: uppercase; color: #fff; }
.lead { margin: 0; font-size: 19px; color: var(--soft); }
.hazard { height: 12px; background: repeating-linear-gradient(-45deg, var(--gold) 0 16px, var(--bg) 16px 32px); }
.panel { background: var(--plate); border: 1px solid var(--line); }

/* footer */
.foot { background: #080B10; border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.foot-about { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.foot-about p { margin: 0; font-size: 15px; color: var(--muted); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; font-size: 15px; }
.foot-cols nav { display: flex; flex-direction: column; gap: 10px; }
.foot-cols h2 { margin: 0 0 4px; font: 700 12px/1 var(--mono); letter-spacing: .16em; color: var(--gold); }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: #fff; }
.foot-bottom { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--plate); font: 500 13px/1.4 var(--mono); color: #8A94A6; }

/* about */
.hero { padding: clamp(20px, 3.5vh, 48px) 0 56px; border-bottom: 1px solid var(--line); }
/* the whole hero (title, trailer, Play now) fits one screen: the trailer shrinks with the viewport height */
.hero .wrap { max-width: 1128px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(12px, 2.2vh, 24px); }
.hero h1 { margin: 0; font: 900 clamp(44px, min(9vw, 11vh), 128px)/.88 var(--display); letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.hero .kicker { color: var(--gold); letter-spacing: .18em; font-size: 14px; }
.hero .lead { max-width: 640px; font-size: clamp(16px, 2vh, 20px); line-height: 1.45; margin-top: -4px; }
.screen { width: min(100%, max(360px, calc((67vh - 175px) * 1.778))); background: #000; border: 2px solid var(--line); box-shadow: 12px 12px 0 #05070B; }
.hero .btn-xl { width: min(100%, max(360px, calc((67vh - 175px) * 1.778))); }
.screen .yt, .screen iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.yt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 96px; height: 68px; display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; box-shadow: 6px 6px 0 #05070B; transition: transform .12s; }
.yt:hover .yt-play, .yt:focus-visible .yt-play { transform: scale(1.08); }
.hero-note { margin: -4px 0 0; font: 500 14px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.facts { background: var(--bg2); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.facts li { padding: 28px 24px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts b { display: block; font: 900 40px/1 var(--display); text-transform: uppercase; color: #fff; }
.facts li:first-child b { color: var(--gold); }
.facts span { display: block; margin-top: 6px; color: var(--soft); }
.sec { padding: 88px 0 40px; }
.sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-3px); border-color: #3A4660; }
.card h3, .step h3, .acct h3 { margin: 0; font: 800 28px/1.1 var(--display); text-transform: uppercase; color: #fff; }
.card p { margin: 0; color: var(--soft); }
.ico { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--red); }
.ico.g { background: var(--gold); color: var(--bg); } .ico.b { background: var(--blue); }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 36px; }
.split-head .lead { max-width: 460px; font-size: 17px; }
.guns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.guns li { background: var(--bg2); border: 1px solid var(--line); padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .12s; }
.guns li:hover { border-color: var(--gold); }
.guns img { width: 100%; height: 96px; object-fit: contain; }
.guns span { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; margin-top: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step b { font: 900 96px/.8 var(--display); color: var(--gold); }
.step p { margin: 6px 0 0; color: var(--soft); }
.accts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.acct { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.acct.hi { border: 2px solid var(--gold); padding: 31px; }
.acct.hi .kicker { color: var(--gold); }
.acct p { margin: 0; color: var(--soft); }
.acct p.small { font-size: 15px; color: var(--muted); }
.faq { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-bottom: 56px; }
.faq-head { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.faq-head p { margin: 8px 0 0; color: var(--soft); }
.faq-list { flex: 999 1 560px; min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 700 21px/1.3 var(--body); color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--body); color: var(--gold); transition: transform var(--n2l-dur-close) var(--n2l-ease-in); }
.faq details[open] summary::after { transform: rotate(45deg); transition-duration: var(--n2l-dur-open); transition-timing-function: var(--n2l-ease-out); }
.faq summary:hover { color: var(--gold); }
.faq details p { margin: 0 0 22px; color: var(--soft); }
/* DECISIONS #364: the answer folds open and shut (rows 0fr <-> 1fr + fade); allow-discrete keeps it painted while closing.
   No script: the /guides pages are script-free (check-guides). Browsers without ::details-content stay instant. */
@supports selector(::details-content) {
  .faq details::details-content { display: grid; grid-template-rows: 0fr; opacity: 0;
    transition: grid-template-rows var(--n2l-dur-close) var(--n2l-ease-in), opacity var(--n2l-dur-close) var(--n2l-ease-in), content-visibility var(--n2l-dur-close) allow-discrete; }
  .faq details[open]::details-content { grid-template-rows: 1fr; opacity: 1; transition-duration: var(--n2l-dur-open); transition-timing-function: var(--n2l-ease-out); }
  .faq details > p { min-height: 0; overflow: hidden; margin: 0; }
  .faq details > p::after { content: ""; display: block; height: 22px; }
  @media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none !important; } }
}
.cta { background: var(--red); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.cta h2 { margin: 0; font: 900 clamp(48px, 7vw, 88px)/.9 var(--display); text-transform: uppercase; color: #fff; }
.cta p { margin: 8px 0 0; font-size: 19px; color: #FFE9EA; }
.cta .btn-play { height: 104px; padding: 0 56px; font-size: 56px; box-shadow: 0 10px 0 var(--bg); }
.cta .btn-play:hover { box-shadow: 0 12px 0 var(--bg); }
@media (max-width: 560px) { .cta .btn-play { width: 100%; height: 88px; font-size: 44px; } .facts li { border-right: 0; border-bottom: 1px solid var(--line); } }

/* guides (DECISIONS #347): every rule scoped to body.guide so /about renders unchanged */
.guide .links a, .guide .foot-cols a, .guide .crumbs a, .guide .g-toc a { min-height: 44px; display: inline-flex; align-items: center; }
.guide .foot-cols nav { gap: 0; }
.g-hero { padding: 40px 0 44px; }
.g-hero .wrap { display: flex; flex-direction: column; gap: 14px; }
.g-hero h1 { margin: 0; font: 900 clamp(44px, 7vw, 92px)/.9 var(--display); text-transform: uppercase; color: #fff; }
.g-hero .kicker { color: var(--gold); }
.g-hero .lead { max-width: 820px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font: 600 14px/1.2 var(--mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.g-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 1040px) { .g-body { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } .g-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; } }
.g-toc ol { list-style: none; margin: 10px 0 0; padding: 0; border-left: 2px solid var(--line); }
.g-toc a { padding: 4px 0 4px 14px; color: var(--soft); text-decoration: none; font-size: 15px; line-height: 1.3; }
.g-toc a:hover { color: #fff; }
.g-article { min-width: 0; max-width: 880px; }
.g-article section { padding-bottom: 28px; }
.g-article section + section { border-top: 1px solid var(--line); padding-top: 36px; }
.g-article h2 { margin: 0 0 16px; font: 900 clamp(32px, 4.4vw, 46px)/1 var(--display); text-transform: uppercase; color: #fff; }
.g-article h3 { margin: 28px 0 10px; font: 800 26px/1.1 var(--display); text-transform: uppercase; color: #fff; }
.g-article p, .g-article li { color: var(--soft); }
.g-article p { margin: 0 0 16px; }
.g-article ul, .g-article ol { margin: 0 0 16px; padding-left: 24px; }
.g-article li { margin: 4px 0; }
.g-article strong { color: var(--text); }
.g-article kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--bg2); font: 600 14px/1.5 var(--mono); color: #fff; text-align: center; }
.g-tip { margin: 0 0 18px; padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--plate); color: var(--soft); }
.g-tip strong { color: var(--gold); }
.table-wrap { margin: 0 0 24px; overflow-x: auto; border: 1px solid var(--line); background: var(--bg2); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.table-wrap caption { padding: 12px 14px; text-align: left; font: 700 13px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); caption-side: top; }
.table-wrap th, .table-wrap td { padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; color: var(--soft); }
.table-wrap thead th { border-top: 0; font: 700 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table-wrap tbody th { color: #fff; font-weight: 700; }
.table-wrap .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.table-wrap img { display: block; width: 96px; height: 40px; object-fit: contain; }
.g-more { padding: 56px 0 72px; background: var(--bg2); border-top: 1px solid var(--line); }
.g-more .kicker { margin-bottom: 20px; }
.g-cards { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.g-card { height: 100%; min-height: 44px; padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: border-color .12s; }
.g-card:hover { border-color: var(--gold); }
.g-card-t { font: 800 26px/1.1 var(--display); text-transform: uppercase; color: #fff; }
.g-card-p { color: var(--soft); font-size: 16px; }
.guide .faq-list { flex-basis: 100%; }
@media (max-width: 560px) {
  .guide .wrap { padding-left: 16px; padding-right: 16px; }
  .g-hero { padding: 24px 0 32px; }
  .g-article h3 { font-size: 23px; }
}

/* Opened from a game portal: legal-portal.js sets html.portal (+ .portal-<name>) in <head>, so these hide before the first
   paint. Mark the markup, never list hrefs: [data-site-only] = own site only (the way back to the playable site, About,
   own-site sign-in text), [data-portal-only] = its portal twin, [data-portal-hide|show~=crazygames] = per-portal legal
   wording (CrazyGames GP6/GP8, DECISIONS #344/#346, plan 062 A5). privacy.html / terms.html inline the same four rules. */
html.portal [data-site-only] { display: none !important; }
html:not(.portal) [data-portal-only] { display: none !important; }
html.portal-crazygames [data-portal-hide~="crazygames"] { display: none !important; }
html:not(.portal-crazygames) [data-portal-show~="crazygames"] { display: none !important; }
