/* playufb.com, game edition: the site is a menu. Night-stadium dark, the
   game's pixel plaques for labels, Barlow Condensed for the big calls, gold
   for focus. Shared by index (the three cards), modes, buy and go. */
@font-face { font-family: "Barlow Condensed"; font-weight: 900; font-style: italic; font-display: swap; src: url("/fonts/barlow-condensed-900-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("/fonts/barlow-condensed-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --ink: #05060a;
  --night: #080b13;
  --panel: rgba(10, 14, 24, .72);
  --panel-solid: #0c111c;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --text: #f4f2ec;
  --muted: rgba(244, 242, 236, .62);
  --gold: #ffd23c;
  --gold-deep: #b98f00;
  --orange: #f17b27;
  --pink: #ff4f8f;
  --cyan: #5fc2ff;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --call: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Lexend, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); }
body { font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grain + scanlines over everything, very faint */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .5;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}

/* ------------------------------------------------------------------ top bar */
.hud-top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 18px clamp(16px, 3vw, 40px); pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.badge {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 3px #0c1220, 0 0 0 5px var(--gold), 0 6px 18px rgba(0,0,0,.5);
}
.badge canvas, .badge svg { width: 38px; height: auto; image-rendering: pixelated; }
.wordmark { font-family: var(--pixel); font-size: 13px; letter-spacing: .06em; text-decoration: none; color: var(--text); line-height: 1.6; }
.wordmark em { font-style: normal; color: var(--orange); }
.wordmark small { display: block; font-size: 8px; color: var(--muted); letter-spacing: .3em; }
.hud-top .spacer { flex: 1; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(8, 11, 19, .7);
  color: var(--text); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px);
  transition: border-color .2s, color .2s, transform .15s;
}
.iconbtn:hover, .iconbtn.is-focus { border-color: var(--gold); color: var(--gold); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn .waves { transition: opacity .2s; }
.iconbtn.off .waves { opacity: 0; }
.iconbtn .slash { opacity: 0; transition: opacity .2s; }
.iconbtn.off .slash { opacity: 1; }
.backbtn {
  font-family: var(--pixel); font-size: 10px; letter-spacing: .1em; text-decoration: none; color: var(--text);
  padding: 13px 16px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(8, 11, 19, .7);
  display: inline-flex; gap: 10px; align-items: center; backdrop-filter: blur(6px);
}
.backbtn:hover, .backbtn.is-focus { border-color: var(--gold); color: var(--gold); }

/* ------------------------------------------------------------------ bottom prompts */
.hud-bottom {
  position: fixed; inset: auto 0 0 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(16px, 3vw, 40px); font-family: var(--pixel); font-size: 8px; letter-spacing: .14em; color: var(--muted);
  background: linear-gradient(0deg, rgba(5,6,10,.85), transparent); pointer-events: none;
}
.hud-bottom a { pointer-events: auto; text-decoration: none; color: var(--muted); }
.hud-bottom a:hover { color: var(--gold); }
.hud-bottom .spacer { flex: 1; }
.prompt { display: inline-flex; align-items: center; gap: 7px; margin-left: 14px; }
.key {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 4px;
  border: 1px solid var(--line-strong); color: var(--text); font-size: 8px; background: rgba(255,255,255,.06);
}
.key.btn-a, .key.btn-b { border-radius: 50%; width: 20px; padding: 0; font-family: var(--call); font-size: 12px; font-weight: 900; }
.key.btn-a { background: #3fae43; border-color: #3fae43; color: #fff; }
.key.btn-b { background: #d23b3b; border-color: #d23b3b; color: #fff; }
.pad-only { display: none; }
body.pad .pad-only { display: inline-grid; }
body.pad .kb-only { display: none; }

/* ------------------------------------------------------------------ loading screen */
.loadscreen {
  position: fixed; inset: 0; z-index: 100; background: #04050a; display: grid; place-items: center;
  opacity: 0; transition: opacity .22s ease;
}
.loadscreen.on { opacity: 1; }
.ls-inner { width: min(560px, 84vw); }
.ls-title { font-family: var(--call); font-weight: 900; font-style: italic; font-size: clamp(44px, 8vw, 84px); line-height: .9; text-transform: uppercase; letter-spacing: -1px; }
.ls-bar { height: 10px; margin: 22px 0 16px; border: 1px solid var(--line-strong); padding: 2px; border-radius: 3px; }
.ls-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--orange)); }
.loadscreen.on .ls-bar i { animation: ls-fill .78s var(--ease) forwards; }
@keyframes ls-fill { to { width: 100%; } }
.ls-tip { font-family: var(--pixel); font-size: 9px; line-height: 1.9; color: var(--muted); letter-spacing: .06em; }

/* ------------------------------------------------------------------ boot fade */
.boot { animation: boot-in .9s var(--ease) both; }
@keyframes boot-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .boot, .loadscreen { animation: none; transition: none; } }

/* ================================================================== LANDING */
body.landing { height: 100svh; overflow: hidden; }
#stage { position: fixed; inset: 0; width: 100vw; height: 100svh; display: block; z-index: 0; background: radial-gradient(ellipse at 50% 70%, #0d1626 0%, #04060b 70%); }
.landing .title {
  position: fixed; left: 0; right: 0; top: clamp(14px, 3.2vh, 34px); z-index: 20; text-align: center; pointer-events: none;
}
.landing .title .kicker { font-family: var(--pixel); font-size: 9px; letter-spacing: .4em; color: var(--muted); }
.landing .title h1 {
  margin: 10px 0 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(18px, 2.6vw, 34px); letter-spacing: .04em; line-height: 1.2;
  text-shadow: 0 4px 0 #000, 0 0 30px rgba(255, 210, 60, .15);
}
.landing .title h1 em { font-style: normal; color: var(--gold); }
.cards {
  position: fixed; z-index: 10; left: 50%; top: 52%; transform: translate(-50%, -50%);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 40px);
  width: min(1240px, 92vw); height: min(68svh, 780px);
}
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  border-radius: 6px; isolation: isolate; transition: transform .35s var(--ease), filter .35s;
  -webkit-tap-highlight-color: transparent;
}
.card .frame {
  position: absolute; inset: 0; border-radius: 6px; z-index: -1;
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.25)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 2px, transparent 2px 4px);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
/* HUD corner brackets */
.card .frame::before, .card .frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255,255,255,.35); transition: all .35s var(--ease);
}
.card .frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.card .frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.card .top { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px; font-family: var(--pixel); font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.card .num { color: var(--text); opacity: .7; }
.card .tag { padding: 6px 8px 5px; border: 1px solid var(--line-strong); border-radius: 3px; }
.card .cutout {
  position: absolute; left: 50%; bottom: 23%; height: 74%; width: auto; max-width: none; transform: translateX(-50%);
  filter: brightness(.35) saturate(.6); transition: filter .35s, opacity .4s; z-index: -1; pointer-events: none;
}
body.stage-live .card .cutout { opacity: 0; }
.plaque {
  margin-top: auto; position: relative; padding: 22px 18px 20px; text-align: center;
  background: rgba(6, 9, 15, .82); border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; backdrop-filter: blur(4px);
}
.plaque .label { font-family: var(--pixel); font-size: 8px; letter-spacing: .3em; color: var(--muted); }
.plaque .call {
  display: block; margin: 4px 0 2px; font-family: var(--call); font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 54px); line-height: .9; letter-spacing: -.5px; color: rgba(244, 242, 236, .8); transition: color .25s, text-shadow .25s;
}
.plaque .sub { font-size: 13px; color: var(--muted); }
.plaque .go-arrow { position: absolute; right: 18px; top: 50%; margin-top: -6px; font-family: var(--pixel); font-size: 10px; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: all .25s var(--ease); }
.card.is-focus { transform: translateY(-8px); }
.card.is-focus .frame { border-color: rgba(255, 210, 60, .65); box-shadow: 0 0 0 1px rgba(255,210,60,.35), 0 0 60px rgba(255, 210, 60, .12), inset 0 0 80px rgba(255, 210, 60, .05); }
.card.is-focus .frame::before, .card.is-focus .frame::after { width: 44px; height: 44px; border-color: var(--gold); }
.card.is-focus .plaque .call { color: var(--gold); text-shadow: 0 0 24px rgba(255, 210, 60, .35); }
.card.is-focus .plaque .go-arrow { opacity: 1; transform: none; }
.card.is-focus .cutout { filter: none; }
.card.is-press { transform: translateY(-4px) scale(.985); }
.card .tag.hot { color: #0c1220; background: var(--gold); border-color: var(--gold); }

@media (max-width: 760px), (max-height: 520px) {
  body.landing { height: auto; overflow: auto; }
  #stage { display: none; }
  body.landing { background: radial-gradient(ellipse at 50% 0%, #142035 0%, #05060a 60%); }
  .landing .title { position: static; padding: 92px 16px 6px; }
  .cards { position: static; transform: none; width: auto; height: auto; margin: 14px 16px 110px; grid-template-columns: 1fr; gap: 14px; }
  .card { height: 34svh; min-height: 230px; flex-direction: row; }
  .card .top { position: absolute; inset: 0 0 auto 0; }
  .card .cutout { left: auto; right: 2%; bottom: 0; height: 96%; transform: none; filter: none; opacity: 1 !important; }
  .plaque { position: absolute; left: 0; right: 0; bottom: 0; text-align: left; border-radius: 0 0 6px 6px; padding-right: 46%; }
  .plaque .call { font-size: 38px; }
  .card.is-focus { transform: none; }
}

/* ================================================================== SHARED PAGE CHROME */
.page { min-height: 100svh; padding: 96px clamp(16px, 3vw, 40px) 90px; position: relative; }
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 79, 143, .12), transparent 45%),
    radial-gradient(ellipse at 85% 10%, rgba(95, 194, 255, .1), transparent 45%),
    repeating-linear-gradient(100deg, transparent 0 140px, rgba(255,255,255,.03) 140px 143px),
    linear-gradient(180deg, #0a1020 0%, #05060a 70%);
}
.h-kicker { font-family: var(--pixel); font-size: 9px; letter-spacing: .32em; color: var(--muted); }
.h-call { font-family: var(--call); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .86; letter-spacing: -1px; margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--pixel); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 17px 22px 15px;
  color: #161200; background: var(--gold); border: 0; border-radius: 6px; box-shadow: 0 5px 0 var(--gold-deep);
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.btn:hover, .btn.is-focus { filter: brightness(1.08); box-shadow: 0 5px 0 var(--gold-deep), 0 0 0 3px rgba(255,210,60,.35); }
.btn.is-press, .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-deep); }
.btn.alt { background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.alt:hover, .btn.alt.is-focus { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 3px rgba(255,210,60,.18); }
.btn .price { font-family: var(--call); font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: 0; margin-left: 4px; }

/* ================================================================== MODES (Learn more) */
.hub { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: clamp(18px, 2.5vw, 36px); max-width: 1400px; margin: 0 auto; }
.hub-head { max-width: 1400px; margin: 0 auto 22px; display: flex; align-items: end; gap: 20px; flex-wrap: wrap; }
.hub-head .h-call { font-size: clamp(48px, 6vw, 88px); }
.hub-head .count { font-family: var(--pixel); font-size: 9px; color: var(--muted); letter-spacing: .2em; margin-bottom: 10px; }
.modelist { display: flex; flex-direction: column; gap: 8px; }
.hub-title { font-size: clamp(48px, 5.2vw, 80px); margin-bottom: 22px; }
.modebtn {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer; padding: 16px 20px 14px;
  border: 1px solid var(--line); border-radius: 6px; background: rgba(10, 14, 24, .6); color: rgba(244,242,236,.75);
  font-family: var(--call); font-weight: 900; font-style: italic; font-size: 32px; line-height: 1; text-transform: uppercase;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.modelist { gap: 10px; }
.modebtn::after { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); transform: scaleY(0); transition: transform .25s var(--ease); }
.modebtn.is-focus { border-color: rgba(255,210,60,.4); color: var(--text); transform: translateX(4px); }
.modebtn.is-active { border-color: rgba(255,210,60,.6); background: rgba(255, 210, 60, .08); color: var(--gold); }
.modebtn.is-active::after { transform: scaleY(1); }

.view { position: relative; min-width: 0; }
.media {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.55); width: min(100%, calc(52svh * 16 / 9));
}
.media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.media .slide.on { opacity: 1; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media .slide.on img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06) translate(1%, 1%); } to { transform: scale(1) translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .media .slide.on img { animation: none; } }
.media .caption {
  position: absolute; left: 16px; bottom: 14px; right: 16px; font-family: var(--pixel); font-size: 8px; letter-spacing: .12em; color: rgba(255,255,255,.85);
  text-shadow: 0 2px 6px #000;
}
.media .live { position: absolute; left: 16px; top: 14px; font-family: var(--pixel); font-size: 8px; letter-spacing: .2em; padding: 6px 8px 5px; border-radius: 3px; background: rgba(0,0,0,.55); }
.media .live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff3b3b; margin-right: 7px; vertical-align: 1px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.thumbs { display: flex; gap: 8px; margin-top: 10px; width: min(100%, calc(52svh * 16 / 9)); overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 110px; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; padding: 0; background: #000; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { opacity: 1; border-color: var(--gold); }
.thumb.is-focus { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,210,60,.3); }
.info { margin-top: 20px; max-width: 760px; }
.info .h-call { font-size: clamp(52px, 5.6vw, 92px); }
.info .tagline { margin: 0; font-size: 19px; color: var(--muted); }
.info .lead { font-size: 22px; color: var(--text); font-weight: 500; }
.points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; font-size: 16px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.extras { max-width: 1400px; margin: 60px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 8px; background: rgba(10,14,24,.65); padding: 22px; }
.panel h3 { margin: 0 0 14px; font-family: var(--pixel); font-weight: 400; font-size: 11px; letter-spacing: .18em; color: var(--gold); }
.panel ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.panel li { margin: 6px 0; }
.panel li b { color: var(--text); }
.patch .ver { font-family: var(--call); font-weight: 900; font-style: italic; font-size: 34px; line-height: 1; }
.patch h4 { margin: 14px 0 4px; font-family: var(--pixel); font-weight: 400; font-size: 8px; letter-spacing: .16em; color: var(--text); }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.faq summary::before { content: "+"; display: inline-block; width: 18px; color: var(--gold); font-family: var(--pixel); font-size: 10px; }
.faq details[open] summary::before { content: "–"; }
.faq p { margin: 6px 0 0 18px; color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .hub { grid-template-columns: 1fr; }
  .modelist { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .modebtn { flex: none; width: auto; font-size: 24px; }
  .modebtn.is-focus { transform: none; }
  .extras { grid-template-columns: 1fr; }
}

/* ================================================================== GO (play in web) */
.title-screen { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px 16px 120px; position: relative; overflow: hidden; }
.title-screen video, .title-screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.42) saturate(1.1); }
.title-screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(5,6,10,.75) 75%); }
.title-screen .h-call { font-size: clamp(72px, 12vw, 180px); text-shadow: 0 10px 0 #000; }
.title-screen .h-call em { color: var(--gold); font-style: italic; }
.press { margin: 30px auto 0; font-family: var(--pixel); font-size: clamp(11px, 1.4vw, 16px); letter-spacing: .2em; color: var(--text); text-decoration: none; display: inline-block; padding: 16px 22px 14px; border: 1px solid transparent; border-radius: 6px; }
.press span { animation: blink 1.1s steps(2) infinite; }
.press.is-focus, .press:hover { border-color: var(--gold); color: var(--gold); }
.how { max-width: 1100px; margin: -40px auto 0; padding: 0 16px 120px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; position: relative; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* tools/site/cutouts.mjs renders the card art from the live stage */
html:has(body.cutout), body.cutout { background: transparent !important; }
body.cutout #stage { background: none; }
body.cutout .cards, body.cutout .title, body.cutout .hud-top, body.cutout .hud-bottom, body.cutout::after { opacity: 0 !important; }

.how-one { grid-template-columns: 1fr; max-width: 620px; }
.how-one .panel ul { padding-left: 18px; font-size: 15px; }
