/* The site's shell and components ("Console"). One stylesheet for every page.
 *
 * Page builders: don't edit this file. Put page-only rules in
 * /styles/pages/<page>.css and see scripts/PAGES.md for the component list.
 *
 * Contents: tokens and base · header · buttons · intro · stage · rails and
 * tiles · game page · panels and cards · chips · proof row · work panel ·
 * arcade section · news · library and filters · sections, grids and spec
 * lists · prose · blog · footer · narrower screens · reduced motion.
 */

:root {
  color-scheme: dark;
  --night: #080b24;
  --console: #121747;
  --glass: rgba(66, 74, 142, .30);
  --glass-hi: rgba(66, 74, 142, .52);
  --edge: rgba(168, 175, 224, .18);
  --edge-hi: rgba(168, 175, 224, .34);
  --haze: #a8afe0;
  --paper: #eef0ff;
  --gold: #ffd700;
  --signal: #ff5d8f;
  --head: "Soho Gothic Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font: 400 16px/1.5 var(--head);
  background: radial-gradient(120% 900px at 50% 0%, #1b2266 0%, #0f1444 40%, var(--night) 78%) no-repeat, var(--night);
  overflow-x: clip;
}
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.f-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.f-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--night); font-weight: 700; }
.f-skip:focus { top: 12px; }

/* ---------- Header ---------- */
.f-top { position: relative; z-index: 20; display: flex; align-items: center; gap: 30px; max-width: 1440px; margin: 0 auto; padding: 20px var(--pad); }
.f-logo { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--head); flex: none; }
.f-logo img { width: 36px; height: auto; }
.f-nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.f-nav > a:not(.f-btn) { font: 500 15px/1 var(--head); color: var(--haze); padding: 8px 0; border-bottom: 2px solid transparent; }
.f-nav > a:not(.f-btn):hover { color: var(--paper); border-color: var(--gold); }
.f-cta { margin-left: 8px; }
.f-menu { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); color: var(--paper); cursor: pointer; padding: 0; }
.f-menu-bars { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.f-menu-bars i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
.f-menu[aria-expanded="true"] .f-menu-bars i:first-child { transform: translateY(4px) rotate(45deg); }
.f-menu[aria-expanded="true"] .f-menu-bars i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.f-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 12px; font: 700 16px/1 var(--head); white-space: nowrap; transition: background-color .15s ease, box-shadow .15s ease; }
.f-btn-gold { background: var(--gold); color: #14183f; }
.f-btn-gold:hover { background: #ffe44d; }
.f-btn-glass { background: rgba(238, 240, 255, .1); color: var(--paper); border: 1px solid rgba(238, 240, 255, .26); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.f-btn-glass:hover { background: rgba(238, 240, 255, .18); }
.f-btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.f-btn.pulse { animation: fPulse .9s ease 2; }
@keyframes fPulse { 50% { box-shadow: 0 0 0 8px rgba(255, 215, 0, .28); } }

/* ---------- Main and headline row ---------- */
.f-main { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad) 56px; }
.f-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; margin: 10px 4px 24px; }
.f-intro > * { min-width: 0; }
.f-intro h1 { font-weight: 750; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.08; max-width: 19ch; }
.f-intro p { margin: 0; color: var(--haze); font-size: 18px; max-width: 40ch; }

/* ---------- Stage ---------- */
.f-stage { position: relative; border-radius: 24px; overflow: hidden; height: clamp(360px, 44vw, 56vh); border: 1px solid var(--edge); background: var(--console); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); scroll-margin-top: 16px; }
.f-stage-media { position: absolute; inset: 0; }
.f-stage-media img, .f-stage-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.f-stage-v { opacity: 0; transition: opacity .5s ease; }
.f-stage[data-zoom] .f-stage-media img, .f-stage[data-zoom] .f-stage-media video { transform: scale(1.1); }
.f-stage.is-playing .f-stage-v { opacity: 1; }
.f-stage-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 11, 36, .97) 0%, rgba(8, 11, 36, .88) 30%, rgba(8, 11, 36, .45) 48%, rgba(8, 11, 36, 0) 64%), linear-gradient(0deg, rgba(8, 11, 36, .7) 0%, rgba(8, 11, 36, 0) 42%); }
/* Captures that carry their own logo on the left: show the frame whole, at the right. */
.f-stage[data-frame="right"] .f-stage-media { left: auto; right: -14%; width: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.f-stage[data-frame="right"] .f-stage-media::after { background: linear-gradient(0deg, rgba(8, 11, 36, .55) 0%, rgba(8, 11, 36, 0) 38%); }
.f-stage[data-frame="right"] .f-stage-copy { max-width: 420px; }
.f-stage-copy { position: absolute; left: 44px; bottom: 40px; max-width: 520px; }
.f-stage-copy.swap { animation: fSwap .35s ease; }
@keyframes fSwap { from { opacity: .15; transform: translateY(6px); } }
.f-title { font-weight: 800; font-size: clamp(40px, 4.4vw, 62px); line-height: 1; letter-spacing: -.015em; }
.f-title .f-18 { position: relative; top: -.15em; margin-left: .35em; font-size: 15px; vertical-align: middle; }
.f-line { margin: 14px 0 0; font-size: 19px; line-height: 1.4; max-width: 32ch; }
.f-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.f-pp { position: absolute; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--edge-hi); background: rgba(8, 11, 36, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: grid; place-items: center; cursor: pointer; padding: 0; }
.f-pp svg { width: 13px; height: 13px; fill: var(--paper); }
.f-pp .pl { display: none; }
.f-pp[aria-pressed="true"] .pl { display: block; }
.f-pp[aria-pressed="true"] .p1, .f-pp[aria-pressed="true"] .p2 { display: none; }
.f-pp:hover { background: rgba(66, 74, 142, .6); }
.f-stage.no-clip .f-pp { display: none; }

.f-18 { display: inline-block; padding: 3px 6px; border-radius: 6px; background: var(--signal); color: #22071a; font: 800 12px/1 var(--head); letter-spacing: 0; }

/* ---------- Rails ---------- */
.f-rails { margin-top: 12px; }
.f-rail { margin-top: 26px; }
.f-railhead { display: flex; align-items: center; gap: 16px; min-height: 32px; margin: 0 6px; }
.f-railhead h2, .f-railhead h3 { font-weight: 700; font-size: 21px; }
.f-railbtns { margin-left: auto; display: flex; gap: 8px; }
.f-railbtns[hidden] { display: none !important; }
.f-rb { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--edge); background: var(--glass); color: var(--paper); font: 600 18px/1 var(--head); cursor: pointer; padding: 0 0 2px; }
.f-rb:hover { background: var(--glass-hi); }
.f-rb:disabled { opacity: .35; cursor: default; }
.f-track { display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; padding: 14px 8px 16px; margin: 0 -2px; scroll-snap-type: x proximity; scroll-padding: 0 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.f-track::-webkit-scrollbar { display: none; }
.f-track { align-items: flex-start; }
.f-tile { display: flex; flex-direction: column; align-items: stretch; }
.f-track.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); }

.f-tile { flex: 0 0 calc((100% - 72px) / 5.2); min-width: 0; background: none; border: 0; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.f-tile:focus-visible { outline: none; }
.f-tile-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--console); box-shadow: 0 10px 26px rgba(0, 0, 0, .38); transition: transform .18s ease, box-shadow .18s ease; }
.f-tile-img img, .f-tile-img video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.f-tile-img video { opacity: 0; transition: opacity .3s ease; }
.f-tile.is-previewing .f-tile-img video { opacity: 1; }
.f-tile-img .f-18 { position: absolute; right: 8px; top: 8px; z-index: 1; }
.f-tile:hover .f-tile-img, .f-tile:focus-visible .f-tile-img { transform: scale(1.05); box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--gold), 0 18px 40px rgba(0, 0, 0, .55); }
.f-tile[aria-current] .f-tile-img { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px rgba(255, 215, 0, .55), 0 14px 30px rgba(0, 0, 0, .45); }
.f-tile[aria-current]:hover .f-tile-img, .f-tile[aria-current]:focus-visible .f-tile-img { box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--gold), 0 18px 40px rgba(0, 0, 0, .55); }
.f-tile-name { display: block; margin-top: 11px; font: 600 15.5px/1.25 var(--head); }
.f-tile-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 13.5px; line-height: 1.38; color: var(--haze); }

/* ---------- A game's own page ---------- */
.f-stage-game { height: clamp(380px, 46vw, 64vh); margin-top: 6px; }
.f-tagline { margin: 14px 0 0; font: 600 21px/1.3 var(--head); color: var(--gold); }
.f-stage-game .f-line { margin-top: 8px; color: var(--haze); }
.f-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; margin: 34px 6px 8px; }
.f-detail > * { min-width: 0; }
.f-lead { margin: 0; font-size: 21px; line-height: 1.45; max-width: 40ch; }
.f-facts { margin: 0; display: grid; gap: 14px; align-content: start; align-self: start; }
.f-facts div { padding-left: 16px; border-left: 2px solid var(--edge-hi); }
.f-facts dt { font: 600 13px/1.3 var(--head); color: var(--haze); letter-spacing: .02em; }
.f-facts dd { margin: 3px 0 0; font-size: 16px; line-height: 1.45; }
.f-facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.f-shots { display: flex; gap: 18px; padding: 14px 8px 16px; }
.f-shot { flex: var(--ar) 1 0; min-width: 0; aspect-ratio: var(--ar); margin: 0; border-radius: 14px; overflow: hidden; background: var(--console); box-shadow: 0 10px 26px rgba(0, 0, 0, .38); }
.f-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.f-shot { position: relative; }
.f-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font: 600 13.5px/1.3 var(--head); color: var(--paper); background: linear-gradient(to top, rgba(8, 11, 36, .88), rgba(8, 11, 36, 0)); }
.f-shot-p figcaption { display: none; }
.f-features h2 { font-weight: 700; font-size: 22px; margin: 0 6px; }
.f-feats { margin: 16px 6px 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; max-width: 1040px; }
.f-feats li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.45; }
.f-feats li::before { content: ""; position: absolute; left: 0; top: .66em; width: 9px; height: 2px; background: var(--gold); border-radius: 2px; }
@media (max-width: 760px) { .f-feats { grid-template-columns: 1fr; margin: 14px 2px 0; } .f-features h2 { margin: 0 2px; font-size: 20px; } }
.f-like .f-tile { flex-basis: calc((100% - 54px) / 4); }
.f-like .f-tile-line { -webkit-line-clamp: 3; }
/* Bellacosta's line carries "Coins have no cash value", which must always show. */
.f-tile[data-id="bellacosta"] .f-tile-line, a.f-tile[href$="#bellacosta"] .f-tile-line { display: block; -webkit-line-clamp: unset; overflow: visible; }
a.f-tile { display: flex; }

/* ---------- Panels ---------- */
.f-panel { margin-top: 44px; border-radius: 24px; border: 1px solid var(--edge); background: linear-gradient(180deg, rgba(66, 74, 142, .32), rgba(66, 74, 142, .12)); padding: 26px 28px 10px; }
.f-panelhead { display: flex; align-items: baseline; gap: 24px; margin: 0 6px; }
.f-panel-title { font-weight: 700; font-size: 26px; flex: none; }
.f-panelhead p { margin: 0; color: var(--haze); font-size: 15.5px; max-width: 64ch; }
.f-panelhead .f-railbtns { align-self: center; }
.f-track-cards { align-items: stretch; }
.f-card { flex: 0 0 250px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: rgba(8, 11, 36, .5); border: 1px solid var(--edge); scroll-snap-align: start; transition: transform .18s ease, box-shadow .18s ease; }
.f-card b { font: 700 18px/1.2 var(--head); }
.f-card span { font-size: 14px; line-height: 1.45; color: var(--haze); }
.f-card:hover, .f-card:focus-visible { outline: none; transform: scale(1.03); box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--gold); }
.f-card-arcade { flex-basis: 330px; background: linear-gradient(160deg, #20204a, #18182f); }
.f-card-arcade img { width: 196px; height: auto; margin-bottom: 6px; }
.f-card-mail b { color: var(--gold); }
.f-card-mail span { color: var(--paper); font-weight: 600; }

.f-tools-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 18px; padding: 14px 8px 16px; }
.f-card-tool { flex: 0 1 300px; }
.f-card-tool img { width: 46px; height: 46px; border-radius: 10px; }
.f-card-tool em { font-style: normal; font-size: 13px; color: var(--haze); margin-top: auto; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--edge-hi); }
.f-tools-next { flex: 1 1 260px; align-self: center; margin: 0; padding: 0 8px; color: var(--haze); font-size: 15px; line-height: 1.5; }

.f-exp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); padding: 0; overflow: hidden; }
.f-exp-media { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--night); }
.f-exp-loop { position: relative; min-height: 280px; overflow: hidden; background: var(--console); }
.f-exp-loop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.f-exp-copy { padding: 30px 32px; align-self: center; }
.f-exp-copy .f-panel-title { font-weight: 600; font-size: 15px; color: var(--haze); margin-bottom: 6px; }
.f-exp-copy .f-exp-title { font: 800 36px/1.05 var(--head); margin: 0 0 14px; letter-spacing: -.015em; }
.f-exp-copy p { font-size: 15.5px; margin-bottom: .8em; }

/* ---------- Header: current page ---------- */
.f-nav > a[aria-current="page"]:not(.f-btn) { color: var(--paper); border-color: var(--gold); }

/* ---------- Chips ---------- */
.f-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--edge-hi); background: var(--glass); color: var(--paper); font: 600 12.5px/1 var(--head); white-space: nowrap; }
.f-chip-beta { border-color: rgba(255, 215, 0, .55); color: var(--gold); background: rgba(255, 215, 0, .08); }
button.f-chip { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; cursor: pointer; }
button.f-chip:hover { background: var(--glass-hi); }
button.f-chip[aria-pressed="true"] { background: var(--paper); color: #14183f; border-color: var(--paper); }
.f-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 6px 6px; }

/* ---------- Page intro (inner pages) ---------- */
.f-pagehead { margin: 26px 6px 30px; max-width: 880px; }
.f-pagehead h1 { font-weight: 800; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.015em; }
.f-pagehead p { margin: 16px 0 0; color: var(--haze); font-size: 19px; line-height: 1.45; max-width: 60ch; }
.f-pagehead .f-actions { margin-top: 22px; }
.f-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--haze); font: 600 15px/1.2 var(--head); }

/* ---------- Sections, grids, cards for inner pages ---------- */
.f-section { margin-top: 52px; }
.f-section > h2, .f-sectionhead h2 { font-weight: 750; font-size: clamp(25px, 2.4vw, 32px); margin: 0 6px; }
.f-sectionhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin: 0 6px; }
.f-sectionhead h2 { margin: 0; }
.f-sectionhead p, .f-section > h2 + p { margin: 8px 6px 0; color: var(--haze); font-size: 17px; max-width: 64ch; }
.f-sectionhead p { margin: 0; }
.f-sectionhead .f-more { margin-left: auto; }
.f-more { color: var(--paper); font: 600 15px/1 var(--head); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); white-space: nowrap; }
.f-more:hover { color: var(--gold); }
.f-grid { display: grid; gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.f-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f-box { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: rgba(8, 11, 36, .5); border: 1px solid var(--edge); }
.f-box h3 { font-weight: 700; font-size: 19px; line-height: 1.2; }
.f-box p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--haze); }
.f-box ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.f-box li { padding-left: 16px; position: relative; }
.f-box li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 2px; background: var(--gold); border-radius: 2px; }
.f-box .f-more { margin-top: auto; padding-top: 8px; align-self: flex-start; }
a.f-box { transition: transform .18s ease, box-shadow .18s ease; }
a.f-box:hover, a.f-box:focus-visible { outline: none; transform: scale(1.02); box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--gold); }
.f-box-hi { background: linear-gradient(160deg, rgba(66, 74, 142, .5), rgba(66, 74, 142, .18)); border-color: var(--edge-hi); }
.f-box > .f-chip { align-self: flex-start; }
.f-box > img.f-mark { width: 46px; height: 46px; border-radius: 10px; }
.f-panel-plain { padding: 30px 32px; }
.f-panel-plain > h2 { font-weight: 750; font-size: clamp(24px, 2.2vw, 30px); }
.f-panel-plain > p { margin: 10px 0 0; color: var(--haze); font-size: 17px; max-width: 66ch; }
.f-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.f-split > * { min-width: 0; }
.f-media { position: relative; border-radius: 18px; overflow: hidden; background: var(--console); border: 1px solid var(--edge); aspect-ratio: 16 / 10; }
.f-media img, .f-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.f-speclist { margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.f-speclist div { padding-left: 16px; border-left: 2px solid var(--gold); min-width: 0; }
.f-speclist dt { font: 700 20px/1.2 var(--head); }
.f-speclist dd { margin: 2px 0 0; font-size: 14.5px; color: var(--haze); line-height: 1.4; }
.f-cta-band { margin-top: 52px; padding: 30px 32px; border-radius: 24px; border: 1px solid var(--edge-hi); background: linear-gradient(120deg, rgba(66, 74, 142, .5), rgba(18, 23, 71, .6)); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.f-cta-band h2 { font-weight: 750; font-size: clamp(22px, 2.2vw, 28px); }
.f-cta-band p { margin: 6px 0 0; color: var(--haze); max-width: 56ch; }
.f-cta-band .f-actions { margin: 0 0 0 auto; }
.f-mail { font-weight: 700; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ---------- Proof row ---------- */
.f-proof { margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.f-proof div { min-width: 0; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--edge); background: rgba(8, 11, 36, .5); }
.f-proof dt { font: 800 28px/1.1 var(--head); letter-spacing: -.01em; }
.f-proof dd { margin: 4px 0 0; color: var(--haze); font-size: 14.5px; line-height: 1.4; }

/* ---------- Work with us panel (home) ---------- */
.f-work { padding: 26px 28px 28px; }
.f-work .f-panelhead .f-btn { margin-left: auto; align-self: center; }
.f-work .f-grid { margin-top: 18px; }

/* ---------- The arcade section (home) ---------- */
.f-arcade { padding: 30px 32px 32px; background: linear-gradient(160deg, #23235a, #15152f); }
.f-arcade-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: center; }
.f-arcade-top > * { min-width: 0; }
.f-arcade-logo { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.f-arcade-logo img { width: 230px; height: auto; display: block; }
.f-arcade h2 { font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.f-arcade-top p { margin: 14px 0 0; font-size: 18px; line-height: 1.45; max-width: 44ch; }
.f-arcade-shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--edge-hi); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); aspect-ratio: 1600 / 717; background: var(--night); }
.f-arcade-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.f-arcade .f-grid { margin-top: 28px; }

/* ---------- News ---------- */
.f-newsrail .f-track { align-items: stretch; }
.f-news { flex: 0 0 calc((100% - 36px) / 3); min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 16px; background: rgba(8, 11, 36, .5); border: 1px solid var(--edge); scroll-snap-align: start; }
a.f-news { transition: transform .18s ease, box-shadow .18s ease; }
a.f-news:hover, a.f-news:focus-visible { outline: none; transform: scale(1.02); box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--gold); }
.f-news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--haze); font-size: 13.5px; }
.f-news b, .f-news h2, .f-news h3 { font: 700 18px/1.25 var(--head); margin: 0; }
.f-news > span:last-of-type, .f-news p { font-size: 14.5px; line-height: 1.5; color: var(--haze); margin: 0; }
.f-newslist { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 880px; }
.f-newslist .f-news { padding: 22px 24px; }
.f-newslist .f-news h2 { font-size: 21px; }
.f-newslist .f-news p { font-size: 16px; color: var(--paper); }
.f-newslist .f-more { align-self: flex-start; margin-top: 4px; }
[hidden] { display: none !important; }

/* ---------- Games library ---------- */
.f-library { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; padding: 14px 8px 16px; }
.f-library .f-tile { flex: none; width: auto; }
.f-stage-split { height: clamp(340px, 36vw, 480px); }

/* ---------- Game page extras ---------- */
.f-detail-one { grid-template-columns: minmax(0, 1fr); }
.f-detail p + p { margin: 14px 0 0; color: var(--haze); font-size: 17px; max-width: 60ch; }
.f-detail .f-actions { margin-top: 18px; }
.f-stage-game .f-title .f-18 { font-size: 15px; }
.f-features { margin-top: 34px; }
.f-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.f-shot-tall { flex: 0 0 auto; }

/* ---------- Prose: long text, legal pages, blog posts ---------- */
.f-prose { max-width: 760px; margin-left: auto; margin-right: auto; font-size: 17px; line-height: 1.65; }
.f-main.f-prose { max-width: 840px; padding-top: 24px; }
.f-prose h1 { font-weight: 800; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; margin: 0 0 18px; }
.f-prose h2 { font-weight: 750; font-size: 25px; margin: 1.8em 0 .5em; }
.f-prose h3 { font-weight: 700; font-size: 19px; margin: 1.5em 0 .4em; }
.f-prose p, .f-prose ul, .f-prose ol { margin: 0 0 1.1em; }
.f-prose ul, .f-prose ol { padding-left: 1.3em; }
.f-prose li { margin-bottom: .35em; }
.f-prose a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); overflow-wrap: anywhere; }
.f-prose a:hover { color: var(--gold); }
.f-prose a.f-btn { text-decoration: none; }
.f-prose a.f-btn-gold, .f-prose a.f-btn-gold:hover { color: #14183f; }
.f-prose img, .f-prose video { height: auto; border-radius: 14px; }
.f-prose figure { margin: 1.6em 0; }
.f-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--haze); }
.f-prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: rgba(8, 11, 36, .7); border: 1px solid var(--edge); font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.f-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.f-prose :not(pre) > code { padding: 1px 5px; border-radius: 5px; background: rgba(66, 74, 142, .4); }
.f-prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--gold); color: var(--haze); }
.f-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.f-prose th, .f-prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--edge); }
.f-prose hr { border: 0; border-top: 1px solid var(--edge); margin: 2em 0; }

/* ---------- Blog ---------- */
.f-postlist { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.f-post-card { min-width: 0; }
.f-post-card a { height: 100%; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(8, 11, 36, .5); border: 1px solid var(--edge); transition: transform .18s ease, box-shadow .18s ease; }
.f-post-card a:hover, .f-post-card a:focus-visible { outline: none; transform: scale(1.02); box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--gold); }
.f-post-img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #2a2f7a, var(--console)); overflow: hidden; }
.f-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.f-post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.f-post-meta { margin: 0; color: var(--haze); font-size: 13.5px; }
.f-post-card h2, .f-post-card h3 { font: 700 19px/1.25 var(--head); }
.f-post-card p.f-post-excerpt { margin: 0; color: var(--haze); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.f-post { padding-top: 8px; }
.f-post-back { display: inline-block; margin: 18px 0 22px; color: var(--haze); font: 600 15px/1 var(--head); }
.f-post-back:hover { color: var(--gold); }
.f-post-head .f-post-meta { margin-bottom: 10px; font-size: 14.5px; }
.f-share { display: flex; align-items: center; gap: 14px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--edge); color: var(--haze); font-size: 14px; }
.f-share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--edge); background: var(--glass); color: var(--paper); }
.f-share a:hover { background: var(--glass-hi); color: var(--gold); }
.f-share svg { width: 17px; height: 17px; }
.f-share-icons { display: flex; gap: 8px; }
.f-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.f-postnav a { min-width: 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--edge); background: rgba(8, 11, 36, .5); text-decoration: none; }
.f-postnav a:hover { border-color: var(--gold); }
.f-postnav span { display: block; }
.f-postnav .l { color: var(--haze); font-size: 13px; margin-bottom: 4px; }
.f-postnav .t { font: 700 16px/1.3 var(--head); color: var(--paper); }
.f-postnav .is-newer { text-align: right; }

/* ---------- 404 ---------- */
.f-lost { text-align: center; padding: 8vh 0 6vh; }
.f-lost .f-code { font: 800 clamp(90px, 16vw, 180px)/.9 var(--head); color: var(--gold); letter-spacing: -.03em; }
.f-lost h1 { font-weight: 800; font-size: clamp(26px, 3vw, 38px); margin-top: 14px; }
.f-lost p { margin: 14px auto 0; max-width: 46ch; color: var(--haze); font-size: 17px; }
.f-lost .f-actions { justify-content: center; }
.f-lost a:not(.f-btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); color: var(--paper); }

/* ---------- Footer ---------- */
.f-foot { max-width: 1440px; margin: 40px auto 0; padding: 36px var(--pad) 28px; border-top: 1px solid var(--edge); font-size: 14.5px; color: var(--haze); }
.f-foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
.f-foot-grid > * { min-width: 0; }
.f-foot .f-logo { color: var(--paper); margin-bottom: 14px; }
.f-foot p { margin: 0 0 8px; }
.f-foot-brand > p:first-of-type { color: var(--paper); font-size: 16px; max-width: 30ch; }
.f-foot a { color: var(--paper); }
.f-foot a:hover { color: var(--gold); }
.f-foot h2 { font: 700 14px/1 var(--head); color: var(--haze); margin: 6px 0 14px; letter-spacing: 0; }
.f-foot-site ul { margin: 0; padding: 0; list-style: none; columns: 3; column-gap: 24px; }
.f-foot-site li { margin: 0 0 9px; break-inside: avoid; }
.f-foot-mail { display: inline-block; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); overflow-wrap: anywhere; }
.f-foot-socials { display: flex; gap: 10px; margin: 16px 0; }
.f-foot-socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); }
.f-foot-socials a:hover { background: var(--glass-hi); }
.f-foot-socials svg { width: 18px; height: 18px; }
.f-foot-line { margin: 30px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--edge); font-size: 13px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .f-tile { flex-basis: calc((100% - 54px) / 3.4); }
  .f-nav { gap: 18px; }
}
@media (max-width: 960px) {
  .f-exp { display: flex; flex-direction: column; }
  .f-exp-loop { aspect-ratio: 16 / 10; min-height: 0; }
  .f-panelhead { display: block; }
  .f-panelhead .f-panel-title { margin-bottom: 6px; }
}
@media (max-width: 860px) {
  :root { --pad: 16px; }
  .f-top { padding: 14px var(--gr) 14px var(--gl); gap: 12px; }
  .f-menu { display: inline-grid; place-items: center; }
  .f-nav { display: none; position: absolute; top: 100%; left: var(--gl); right: var(--gr); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 16px; border: 1px solid var(--edge-hi); background: rgba(13, 17, 56, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
  .f-nav.open { display: flex; }
  .f-nav > a:not(.f-btn) { padding: 12px 10px; border: 0; color: var(--paper); font-size: 16px; }
  .f-cta { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  .f-main { padding: 0 var(--gr) 34px var(--gl); }
  .f-logo span { font-size: 16px; }
  .f-intro { grid-template-columns: 1fr; gap: 10px; margin: 6px 0 18px; }
  .f-intro h1 { font-size: 29px; }
  .f-intro p { font-size: 16px; }
  .f-stage { height: auto; display: flex; flex-direction: column; border-radius: 20px; }
  .f-stage-media, .f-stage[data-frame="right"] .f-stage-media { position: relative; inset: auto; right: auto; width: 100%; aspect-ratio: 16 / 10; -webkit-mask-image: none; mask-image: none; }
  .f-stage-media::after, .f-stage[data-frame="right"] .f-stage-media::after { background: linear-gradient(0deg, rgba(18, 23, 71, 1) 0%, rgba(18, 23, 71, 0) 40%); }
  .f-stage-copy, .f-stage[data-frame="right"] .f-stage-copy { position: static; padding: 4px 18px 20px; max-width: none; }
  .f-title { font-size: 31px; }
  .f-title .f-18 { font-size: 12px; }
  .f-line { font-size: 16px; margin-top: 10px; }
  .f-actions { margin-top: 16px; gap: 10px; }
  .f-btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .f-pp { top: 10px; right: 10px; bottom: auto; width: 36px; height: 36px; }
  .f-rail { margin-top: 18px; }
  .f-railhead { margin: 0 2px; }
  .f-railhead h2, .f-railhead h3 { font-size: 19px; }
  .f-stage-game { height: auto; margin-top: 0; }
  .f-tagline { font-size: 18px; margin-top: 10px; }
  .f-detail { grid-template-columns: 1fr; gap: 20px; margin: 24px 2px 6px; }
  .f-lead { font-size: 18px; }
  .f-shots { gap: 14px; padding: 12px 16px 14px; margin: 0 -16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .f-shots::-webkit-scrollbar { display: none; }
  .f-shot { flex: none; height: 220px; scroll-snap-align: start; }
  .f-like .f-tile { flex-basis: 64%; }
  .f-railbtns, .f-panelhead .f-railbtns { display: none !important; }
  .f-track { gap: 14px; padding: 12px 16px 14px; margin: 0 -16px; scroll-padding: 0 16px; }
  .f-track.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .f-tile { flex-basis: 64%; }
  .f-panel { margin: 34px 0 0; padding: 20px 16px 6px; border-radius: 20px; }
  .f-panel .f-track { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .f-panel-title { font-size: 23px; }
  .f-panelhead { margin: 0 2px; }
  .f-panelhead p { font-size: 14.5px; }
  .f-card { flex-basis: 78%; }
  .f-card-arcade { flex-basis: 86%; }
  .f-tools-row { padding: 14px 0; }
  .f-card-tool { flex: 1 1 100%; }
  .f-tools-next { padding: 0 2px 8px; }
  .f-exp { padding: 0; }
  .f-exp-copy { padding: 18px 18px 10px; }
  .f-exp-copy .f-exp-title { font-size: 28px; }
}

/* ---------- Narrower screens: components added for the full site ---------- */
@media (max-width: 1100px) {
  .f-library { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-nav { gap: 14px; }
  .f-nav > a:not(.f-btn) { font-size: 14.5px; }
  .f-foot-site ul { columns: 2; }
}
@media (max-width: 960px) {
  .f-grid-3, .f-postlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-arcade-top, .f-split { grid-template-columns: 1fr; gap: 22px; }
  .f-library { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-news { flex-basis: 46%; }
  .f-work .f-panelhead .f-btn { margin: 12px 0 0; }
  .f-foot-grid { grid-template-columns: 1fr 1fr; }
  .f-foot-brand { grid-column: 1 / -1; }
}
/* The nav has eight links and a button: fold it into the menu earlier than the rest. */
@media (max-width: 1020px) {
  .f-top { gap: 12px; }
  .f-menu { display: inline-grid; place-items: center; }
  .f-nav { display: none; position: absolute; top: 100%; left: var(--pad); right: var(--pad); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 16px; border: 1px solid var(--edge-hi); background: rgba(13, 17, 56, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
  .f-nav.open { display: flex; }
  .f-nav > a:not(.f-btn) { padding: 12px 10px; border: 0; color: var(--paper); font-size: 16px; }
  .f-nav > a[aria-current="page"]:not(.f-btn) { color: var(--gold); }
  .f-cta { margin: 8px 0 0; }
}
@media (max-width: 860px) {
  .f-nav { left: var(--gl); right: var(--gr); }
}
@media (max-width: 640px) {
  .f-work .f-box ul { display: none; }
  .f-stage-copy, .f-stage[data-frame="right"] .f-stage-copy { padding-top: 12px; }
  .f-pagehead { margin: 14px 0 22px; }
  .f-pagehead h1 { font-size: 32px; }
  .f-pagehead p { font-size: 16.5px; }
  .f-section { margin-top: 38px; }
  .f-section > h2, .f-sectionhead, .f-sectionhead p, .f-section > h2 + p { margin-left: 2px; margin-right: 2px; }
  .f-grid, .f-grid-2, .f-grid-3, .f-grid-4, .f-postlist, .f-proof, .f-speclist, .f-postnav { grid-template-columns: 1fr; }
  .f-grid { gap: 14px; }
  .f-proof { gap: 12px; }
  .f-proof dt { font-size: 24px; }
  .f-box { padding: 18px; }
  .f-panel-plain, .f-work, .f-arcade { padding: 22px 16px; }
  .f-arcade-logo img { width: 190px; }
  .f-arcade-top p { font-size: 16.5px; }
  .f-cta-band { margin-top: 38px; padding: 22px 18px; border-radius: 20px; }
  .f-cta-band .f-actions { margin-left: 0; }
  .f-filters { margin: 16px 0 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-right: -16px; padding-right: 16px; }
  .f-filters::-webkit-scrollbar { display: none; }
  .f-library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; padding: 12px 0 14px; }
  .f-stage-split { height: auto; }
  .f-news { flex-basis: 82%; }
  .f-newslist .f-news { padding: 18px; }
  .f-prose { font-size: 16.5px; }
  .f-main.f-prose { padding-top: 12px; }
  .f-foot { margin-top: 28px; padding: 28px var(--gr) 26px var(--gl); }
  .f-foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .f-foot-site ul { columns: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
