/* Brand Speed companion app · same art direction as the printed game (Figma "Brand Speed UI colours"). */
:root {
  --card: #1D1B22; --bleed: #1D1C24; --panel: #26242D; --line: #34313D; --ink-black: #0E0D12;
  --ink: #F3F1F8; --grey: #8E8A99;
  --pink: #FF4D6D; --pink-cat: #FF7A92; --green: #8BFF6A; --brief-green: #7EE85A; --star: #FFD23F;
  --purple: #5B3DF5; --amber: #F5A300; --teal: #12A58C; --paper: #FFFFFF; --paper-ink: #16141D; --paper-muted: #6B6680;
  --display: "Lilita One", "Avenir Next", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--card); height: 100%; overflow: hidden; }
body {
  margin: 0; height: 100%; overflow: hidden; color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5;
  background: repeating-radial-gradient(circle at 50% 160px, var(--card) 0 24px, #232129 24px 48px) fixed, var(--card);
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
#symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
/* app shell: exactly the phone's visible height, never more. Header and dock stay put, only .scroll scrolls. */
#app { max-width: 760px; margin: 0 auto; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.screen, .screen > section { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: 0 -10px; padding: 8px 10px 18px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .2px; }
.muted { color: var(--grey); }
.pink { color: var(--pink); }
.label { margin: 0 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--grey); }
.sub { margin: 26px 0 10px; }

/* ---------- motion ---------- */
.screen.enter { animation: screen-in 260ms var(--ease-out) both; }
.screen.enter .rise { animation: rise 460ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 40ms); }
@keyframes screen-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px; border: 3px solid var(--ink-black); border-radius: 16px;
  background: var(--pink); color: #fff; font-family: var(--display); font-size: 18px; box-shadow: 0 5px 0 var(--ink-black); position: relative;
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), background-color 200ms ease; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink-black); }
.btn[disabled] { background: #3A3646; color: var(--grey); box-shadow: 0 5px 0 #121117; cursor: not-allowed; }
.btn.big { width: 100%; font-size: 20px; min-height: 58px; }
.btn.wide { width: 100%; margin-bottom: 14px; }
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--ink-black); }
.btn.ready::after { content: ""; position: absolute; inset: -3px; border-radius: 16px; border: 3px solid var(--green); animation: ready 1.4s var(--ease-out) infinite; pointer-events: none; }
@keyframes ready { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.08); } }
@media (hover: hover) and (pointer: fine) { .btn:not([disabled]):hover { filter: brightness(1.06); } }
.link { background: none; border: 0; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; font-size: 13px; }
.actions { display: grid; gap: 14px; margin-top: 26px; }

/* ---------- bars ---------- */
.bar { flex: none; position: relative; z-index: 5; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 0 8px; }
.bar h2 { font-size: 26px; line-height: 1.1; }
.bar h2 small { display: block; font-family: var(--body); font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); }
.back { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; border: 3px solid var(--ink-black); background: var(--panel); box-shadow: 0 3px 0 var(--ink-black); transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out); }
.back:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink-black); }
.dock { flex: none; position: relative; z-index: 6; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--card); }
.dock::before { content: ""; position: absolute; left: -16px; right: -16px; bottom: 100%; height: 22px; background: linear-gradient(rgba(29,27,34,0), var(--card)); pointer-events: none; }
.hint { color: var(--grey); font-size: 13px; margin: 8px 0 12px; }

/* ---------- logo pieces ---------- */
.orb { width: 54px; height: 54px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.45)); }
.wordmark { display: inline-flex; flex-direction: column; font-family: var(--display); line-height: .92; color: #fff; }
.wordmark span { -webkit-text-stroke: 4px var(--ink-black); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink-black); }
.dia { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; vertical-align: middle; }
.dia::before { content: ""; position: absolute; inset: 3px; background: #fff; border: 2px solid var(--ink-black); border-radius: 5px; transform: rotate(45deg); }
.dia svg { position: relative; }

/* ---------- home ---------- */
.home { text-align: center; }
.home .scroll { display: flex; flex-direction: column; padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.home-in { margin: auto 0; }
.home-logo { display: grid; justify-items: center; }
.orb.big { width: clamp(70px, 15dvh, 138px); height: clamp(70px, 15dvh, 138px); }
.screen.enter .orb.big { animation: orb-in 700ms var(--ease-out) both, float 5s ease-in-out 900ms infinite; }
@keyframes orb-in { from { opacity: 0; transform: scale(.7) rotate(-12deg); } }
@keyframes float { 50% { transform: translateY(-6px) rotate(2deg); } }
.wordmark.big { font-size: clamp(46px, min(17vw, 9.5dvh), 92px); margin-top: 1.4dvh; }
.screen.enter .wordmark.big span { animation: rise 520ms var(--ease-out) both; }
.screen.enter .wordmark.big span:nth-child(1) { animation-delay: 160ms; }
.screen.enter .wordmark.big span:nth-child(2) { animation-delay: 240ms; }
.kicker { margin: 1.6dvh 0 0; font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--grey); }
.home .lead { max-width: 430px; margin: 2.4dvh auto 0; color: #C9C5D6; }
.how { list-style: none; padding: 0; margin: 2.4dvh auto 0; display: grid; gap: clamp(6px, 1.1dvh, 10px); max-width: 380px; text-align: left; }
.how li { display: flex; gap: 12px; align-items: center; background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: clamp(8px, 1.3dvh, 12px) 14px; box-shadow: 0 4px 0 var(--ink-black); }
.how i, .sec i { font-style: normal; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--card); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 17px; }
.home .actions { max-width: 380px; margin: 2.8dvh auto 0; gap: clamp(8px, 1.4dvh, 14px); }
.ios-tip { margin: 0; font-size: 13px; color: var(--grey); }

/* ---------- setup ---------- */
.sec { display: flex; align-items: center; gap: 10px; font-size: 24px; margin: 22px 0 12px; }
.sec i { background: var(--paper); color: var(--paper-ink); }
.chips { display: flex; gap: 10px; }
.chip { width: 54px; height: 54px; border-radius: 14px; border: 3px solid var(--ink-black); background: var(--panel); font-family: var(--display); font-size: 22px; box-shadow: 0 4px 0 var(--ink-black);
  transition: transform 140ms var(--ease-out), background-color 180ms ease, box-shadow 140ms var(--ease-out); }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink-black); }
.chip.on { background: var(--pink); color: #fff; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.names label { display: grid; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--grey); }
.names input { width: 100%; min-width: 0; font: 600 15px var(--body); color: var(--ink); background: var(--panel); border: 3px solid var(--ink-black); border-radius: 12px; padding: 10px 12px; min-height: 46px; text-transform: none; letter-spacing: 0; transition: border-color 160ms ease; }
.names input:focus { outline: none; border-color: var(--pink); }
.briefs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

/* brief card (printed brief card look) */
.brief { position: relative; text-align: left; display: grid; gap: 2px; padding: 10px 10px 12px; border-radius: 20px; border: 3px solid var(--ink-black); background: var(--card); color: #fff;
  box-shadow: 0 5px 0 var(--ink-black); transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.brief::after { content: ""; position: absolute; inset: -6px; border-radius: 24px; border: 3px solid var(--pink); opacity: 0; transform: scale(.97); transition: opacity 180ms ease, transform 220ms var(--ease-out); pointer-events: none; }
.brief.sel { transform: translateY(-3px); }
.brief.sel::after { opacity: 1; transform: scale(1); }
.brief:active { transform: translateY(2px); }
.b-notch { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 4px 10px 6px; background: var(--card); border-radius: 0 0 14px 14px; z-index: 1; }
.b-notch .dia { width: 30px; height: 30px; } .b-notch .dia::before { inset: 4px; border-radius: 7px; }
.b-panel { display: grid; justify-items: center; gap: 8px; padding: 34px 12px 16px; border-radius: 14px; color: var(--paper-ink);
  background: repeating-radial-gradient(circle at 50% 50%, #F2F1F4 0 12px, #E3E1E8 12px 24px); }
.b-pill { font-size: 9px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: #fff; background: var(--card); padding: 4px 10px; border-radius: 99px; }
.b-line { font-weight: 700; font-size: 13.5px; text-align: center; line-height: 1.35; }
.b-sector { margin-top: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--pink-cat); }
.b-name { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.b-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 14px; margin-top: 4px; }
.b-foot small { display: block; width: 100%; font-family: var(--body); font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--grey); }
.b-want, .b-avoid { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-family: var(--display); font-size: 15px; }
.b-want b { color: var(--green); font-weight: 400; } .b-avoid b { color: var(--pink); font-weight: 400; }
.b-avoid { padding-left: 14px; border-left: 2px solid var(--line); gap: 2px 4px; } .b-avoid small { color: var(--pink); }

/* ---------- build ---------- */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 4px 0 var(--ink-black); }
.strip-name { font-family: var(--display); font-size: 19px; }
.strip-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 2px; padding: 2px 9px 2px 3px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.tag.ok { background: #E5FBDC; color: #1F6B12; } .tag.no { background: #FFE1E6; color: #A3203A; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: sticky; top: -8px; z-index: 4; padding: 12px 0 6px; background: var(--card); }
.tab { display: flex; flex-direction: column; align-items: center; padding: 7px 2px; border-radius: 14px; border: 3px solid var(--ink-black); background: var(--panel); font-size: 11.5px; font-weight: 600; color: var(--grey); position: relative;
  box-shadow: 0 3px 0 var(--ink-black); transition: background-color 180ms ease, color 180ms ease, transform 120ms var(--ease-out); }
.tab:active { transform: translateY(2px); }
.tab b { font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--ink); }
.tab.on { background: var(--acc); color: #fff; } .tab.on b { color: #fff; }
.tab-n { position: absolute; top: -9px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--star); color: var(--paper-ink); font-family: var(--display); font-size: 13px; display: grid; place-items: center; border: 2px solid var(--ink-black); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; margin-top: 6px; }
.card { position: relative; padding: 0; border: 0; background: none; border-radius: 12px; transition: transform 180ms var(--ease-out); }
.card svg { display: block; width: 100%; height: auto; border-radius: 9px; }
.card::after { content: ""; position: absolute; inset: -4px; border-radius: 13px; border: 4px solid var(--green); opacity: 0; transform: scale(.96); transition: opacity 160ms ease, transform 200ms var(--ease-out); pointer-events: none; }
.card .badge { position: absolute; top: -8px; right: -8px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--paper-ink); border: 3px solid var(--ink-black); display: grid; place-items: center; font-family: var(--display); font-size: 15px;
  opacity: 0; transform: scale(.6); transition: opacity 160ms ease, transform 220ms var(--ease-out); }
.card.sel { transform: translateY(-4px); }
.card.sel::after { opacity: 1; transform: scale(1); }
.card.sel .badge { opacity: 1; transform: scale(1); }
.card:active { transform: scale(.96); }
.card .qty { position: absolute; bottom: 6px; left: 6px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.65); padding: 1px 6px; border-radius: 99px; }

.meter { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.meter-n { font-size: 13px; color: var(--grey); white-space: nowrap; } .meter-n b { display: inline-block; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ink); }
.meter-bar { flex: 1; height: 12px; border-radius: 6px; background: var(--panel); border: 2px solid var(--ink-black); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); transform-origin: left center; transition: transform 320ms var(--ease-out); }
.dock-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }

/* ---------- reveal ---------- */
.hero-brand { position: relative; overflow: hidden; text-align: center; padding: 28px 16px 24px; border-radius: 24px; background: var(--p); color: var(--onp); border: 3px solid var(--ink-black); box-shadow: 0 6px 0 var(--ink-black); }
.hero-brand::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 70px, rgba(255,255,255,.08) 0 18px, rgba(255,255,255,0) 18px 36px); pointer-events: none; }
.hero-logo { position: relative; display: inline-grid; place-items: center; width: 116px; height: 116px; border-radius: 30px; background: #fff; border: 3px solid var(--ink-black); box-shadow: 0 5px 0 var(--ink-black); }
.screen.enter .hero-logo { animation: logo-in 700ms var(--ease-out) 260ms both; }
@keyframes logo-in { from { opacity: 0; transform: scale(.7) rotate(-10deg); } }
.hero-brand h3 { position: relative; font-size: clamp(32px, 9vw, 50px); line-height: 1.05; margin: 14px 0 6px; }
.hero-brand p { position: relative; margin: 0 auto; max-width: 420px; opacity: .92; }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.kit-box { background: var(--panel); border: 3px solid var(--ink-black); border-radius: 18px; padding: 14px; box-shadow: 0 4px 0 var(--ink-black); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { display: grid; justify-items: center; gap: 2px; width: 62px; font-size: 11px; text-align: center; }
.sw i { width: 50px; height: 50px; border-radius: 14px; border: 3px solid var(--ink-black); }
.screen.enter .sw i { animation: swatch 420ms var(--ease-out) both; animation-delay: calc(420ms + var(--j) * 70ms); }
@keyframes swatch { from { opacity: 0; transform: scale(.7); } }
.sw small { color: var(--grey); font-size: 10px; }
.rule { font-size: 13px; margin: 12px 0 0; font-weight: 600; } .rule.ok { color: var(--green); } .rule.no { color: var(--pink-cat); }
.spec { font-size: 26px; margin: 0; line-height: 1.2; } .spec.small { font-size: 15px; margin-top: 12px; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos span { display: grid; justify-items: center; gap: 2px; font-size: 11px; background: #fff; color: var(--paper-ink); padding: 8px; border-radius: 12px; border: 2px solid var(--ink-black); }

/* score (printed scoring page look) */
.score { margin-top: 26px; background: var(--paper); color: var(--paper-ink); border-radius: 20px; padding: 16px; border: 3px solid var(--ink-black); box-shadow: 0 6px 0 var(--ink-black); }
.score .label { color: var(--paper-muted); }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lines li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: #F4F3F7; }
.lines li.zero { opacity: .6; }
.chip-pt { display: grid; place-items: center; height: 30px; border-radius: 8px; font-family: var(--display); font-size: 15px; border: 2px solid var(--ink-black); }
.c-green { background: var(--green); color: var(--paper-ink); } .c-pink { background: var(--pink); color: #fff; } .c-dark { background: var(--card); color: #fff; }
.c-purple { background: var(--purple); color: #fff; } .c-amber { background: var(--amber); color: var(--paper-ink); }
.l-txt b { display: block; font-size: 14px; } .l-txt small { color: var(--paper-muted); font-size: 12px; }
.lines .pts { font-family: var(--display); font-size: 19px; } .lines .pos .pts { color: #1F7A3E; } .lines .neg .pts { color: #C2263F; }
.total { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--pink); color: #fff; border: 3px solid var(--ink-black); font-family: var(--display); }
.total span { font-size: 22px; } .total b { font-weight: 400; font-size: 30px; }
.cardlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cardlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 14px; background: var(--panel); border: 2px solid var(--ink-black); font-size: 14px; }
.cardlist b { margin-right: auto; }
.rnd { font-family: var(--display); font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--acc); color: #fff; }
.mark { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 700; padding: 1px 8px 1px 1px; border-radius: 99px; background: #34313D; color: var(--grey); }
.mark .dia { width: 20px; height: 20px; }
.mark.m1 { background: #1E3A1A; color: var(--green); } .mark.m-1 { background: #45192A; color: var(--pink-cat); }
.perfect { font-size: 11px; font-weight: 700; color: #fff; background: var(--purple); padding: 2px 8px; border-radius: 99px; border: 2px solid var(--ink-black); }

/* fake website */
.browser { border-radius: 18px; overflow: hidden; border: 3px solid var(--ink-black); box-shadow: 0 6px 0 var(--ink-black); background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #ECE9F2; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF6B6B; } .browser-bar i:nth-child(2) { background: #FFC44D; } .browser-bar i:nth-child(3) { background: #4CD08A; }
.browser-bar span { margin-left: 8px; flex: 1; font-size: 12px; color: #6B6680; background: #fff; border-radius: 99px; padding: 3px 10px; }
.site { background: var(--bg); color: var(--tx); font-family: var(--bf); font-weight: var(--bw); font-size: 14px; }
.site h3, .site h4 { font-family: var(--hf); font-weight: var(--hw); }
.site .s-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid rgba(127,127,127,.2); }
.site .s-top .s-links { order: 3; width: 100%; }
.s-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hf); font-weight: var(--hw); font-size: 17px; }
.s-links { display: flex; gap: 14px; font-size: 13px; opacity: .85; } .s-links a:first-child { color: var(--p); font-weight: 700; }
.s-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.s-ico { position: relative; display: inline-grid; } .s-cart b { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--p); color: var(--onp); font-size: 10px; display: grid; place-items: center; }
.s-crumb { margin: 0; padding: 8px 14px; font-size: 12px; opacity: .75; }
.s-search { display: flex; align-items: center; gap: 8px; margin: 10px 14px; padding: 9px 14px; border-radius: 99px; border: 2px solid rgba(127,127,127,.35); opacity: .85; font-size: 13px; }
.s-hero { padding: 34px 18px; background: var(--p); color: var(--onp); text-align: center; }
.s-hero h3 { font-size: 26px; line-height: 1.15; margin-bottom: 8px; }
.s-hero p { margin: 0 0 14px; opacity: .9; }
.s-intro { padding: 26px 18px 18px; text-align: center; } .s-intro h3 { font-size: 30px; color: var(--p); } .s-intro p { margin: 6px 0 0; }
.s-btn { display: inline-block; padding: 10px 20px; border-radius: 99px; background: var(--a); color: var(--ona); font-weight: 700; font-family: var(--hf); }
.s-hero .s-btn { background: var(--s); color: var(--ons); }
.s-btn.s-small { padding: 7px 14px; font-size: 13px; } .s-btn.s-big { padding: 14px 34px; font-size: 18px; background: var(--p); color: var(--onp); }
.s-video { margin: 14px; height: 150px; border-radius: 12px; background: #16141D; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.s-play { width: 56px; height: 56px; border-radius: 50%; background: var(--p); color: var(--onp); display: grid; place-items: center; }
.s-carousel { position: relative; margin: 14px; display: flex; align-items: center; gap: 8px; }
.s-slide { flex: 1; height: 120px; border-radius: 12px; background: var(--s); color: var(--ons); display: grid; place-items: center; font-family: var(--hf); font-weight: var(--hw); font-size: 20px; }
.s-arrow { font-size: 28px; opacity: .6; }
.s-dots { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; } .s-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(127,127,127,.4); } .s-dots i.on { background: var(--p); }
.s-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 24px 14px 14px; } .s-gallery i { aspect-ratio: 1; border-radius: 8px; }
.s-product { display: flex; gap: 12px; align-items: center; margin: 14px; padding: 12px; border-radius: 12px; border: 1px solid rgba(127,127,127,.3); }
.s-product > i { width: 84px; height: 84px; border-radius: 10px; flex: none; } .s-product div { display: grid; gap: 4px; justify-items: start; } .s-product span { font-family: var(--hf); font-weight: var(--hw); font-size: 18px; color: var(--p); }
.s-reviews { margin: 14px; padding: 14px; border-radius: 12px; background: rgba(127,127,127,.1); text-align: center; } .s-stars { color: var(--a); display: inline-flex; gap: 2px; } .s-reviews p { margin: 6px 0 2px; font-style: italic; }
.s-faq { margin: 14px; } .s-faq h4 { font-size: 18px; margin-bottom: 6px; } .s-q { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(127,127,127,.3); } .s-q b { color: var(--p); } .s-a { margin: 6px 0; font-size: 13px; opacity: .8; }
.s-cta { padding: 20px; text-align: center; }
.s-form, .s-news { margin: 14px; padding: 14px; border-radius: 12px; background: rgba(127,127,127,.1); display: grid; gap: 8px; }
.s-form h4, .s-news h4 { font-size: 18px; }
.s-form i, .s-news i { font-style: normal; padding: 9px 12px; border-radius: 8px; background: var(--bg); border: 1px solid rgba(127,127,127,.35); opacity: .7; font-size: 13px; }
.s-form .s-area { height: 64px; } .s-form .s-btn { justify-self: end; }
.s-news div { display: flex; gap: 8px; } .s-news div i { flex: 1; }
.s-social { display: flex; justify-content: center; gap: 10px; padding: 14px; } .s-social i { width: 36px; height: 36px; border-radius: 50%; background: var(--p); color: var(--onp); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; }
.s-foot { background: #16141D; color: #EDEAF5; padding: 16px 14px; display: grid; gap: 10px; } .s-cols { display: flex; gap: 22px; font-size: 12px; opacity: .75; } .s-foot small { opacity: .6; }
.site.dark .s-foot { background: #000; }

/* ---------- ranking ---------- */
.winner { position: relative; text-align: center; padding: 22px 16px 24px; margin-top: 16px; border-radius: 18px; background: var(--amber); color: var(--paper-ink); border: 3px solid var(--ink-black); box-shadow: 0 7px 0 var(--ink-black); transform: rotate(-1.2deg); }
.winner .label { color: rgba(22,20,29,.7); margin-bottom: 4px; }
.winner h3 { font-size: clamp(34px, 10vw, 46px); line-height: 1.05; }
.screen.enter .winner h3 { animation: winner 640ms var(--ease-out) 380ms both; }
@keyframes winner { from { opacity: 0; transform: scale(.85); } }
.winner .tie { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.confetti { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.confetti i { position: absolute; top: 0; width: 8px; height: 12px; border-radius: 2px; }
.podium { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.podium li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--panel); border: 3px solid var(--ink-black); box-shadow: 0 4px 0 var(--ink-black); }
.podium li.first { background: var(--paper); color: var(--paper-ink); }
.place { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-size: 19px; background: var(--card); color: #fff; }
.first .place { background: var(--star); color: var(--paper-ink); border: 2px solid var(--ink-black); }
.pname { font-weight: 700; } .pname small { display: block; font-weight: 500; color: var(--grey); font-size: 12px; }
.first .pname small { color: var(--paper-muted); }
.podium b { font-family: var(--display); font-weight: 400; font-size: 21px; }
.podium .link { grid-column: 2 / 4; justify-self: start; padding: 0; }
.first .link { color: var(--paper-muted); }

/* ---------- scanner ---------- */
.scanner { position: fixed; inset: 0; z-index: 50; background: #000; opacity: 0; transition: opacity 220ms var(--ease-out); }
.scanner.on { opacity: 1; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.frame { position: absolute; left: 50%; top: 42%; width: min(66vw, 290px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(.94); border-radius: 26px; box-shadow: 0 0 0 4000px rgba(10,9,14,.55); transition: transform 320ms var(--ease-out); }
.scanner.on .frame { transform: translate(-50%, -50%) scale(1); }
.frame i { position: absolute; width: 44px; height: 44px; border: 5px solid #fff; transition: border-color 160ms ease; }
.frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 26px 0 0 0; }
.frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 26px 0 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 26px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 26px 0; }
.laser { position: absolute; left: 10%; right: 10%; top: 10%; height: 3px; border-radius: 2px; background: var(--pink); box-shadow: 0 0 12px var(--pink); animation: laser 1.8s var(--ease-in-out) infinite alternate; }
@keyframes laser { to { transform: translateY(calc(min(66vw, 290px) * .8)); } }
.frame.hit i { border-color: var(--green); } .frame.miss i { border-color: var(--pink); }
.frame.hit { animation: hit 300ms var(--ease-out); } .frame.miss { animation: miss 300ms ease-out; }
@keyframes hit { 40% { transform: translate(-50%, -50%) scale(1.05); } }
@keyframes miss { 25% { transform: translate(calc(-50% - 6px), -50%); } 75% { transform: translate(calc(-50% + 6px), -50%); } }
.scan-top { position: absolute; left: 0; right: 0; top: calc(14px + env(safe-area-inset-top)); display: grid; justify-items: center; gap: 8px; padding: 0 16px; }
.cam-tip { margin: 0; max-width: 360px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--ink-black); border-radius: 14px; padding: 8px 12px; font-size: 13px; text-align: center; box-shadow: 0 3px 0 var(--ink-black); }
.scan-top span { background: rgba(14,13,18,.85); border: 2px solid var(--line); padding: 10px 14px; border-radius: 14px; font-weight: 600; text-align: center; }
.scan-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 12px; background: linear-gradient(rgba(10,9,14,0), rgba(10,9,14,.9) 40%); }
.scan-tray { display: flex; gap: 8px; overflow-x: auto; min-height: 84px; scroll-behavior: smooth; padding: 4px 2px; }
.tray-card { flex: none; width: 58px; } .tray-card svg { display: block; width: 100%; height: auto; border-radius: 6px; }
.scan-row { display: flex; justify-content: space-between; align-items: center; } .scan-row span { font-family: var(--display); font-size: 22px; }

/* ---------- live leaderboard (hub) ---------- */
.rounds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.rpill { display: grid; justify-items: center; padding: 6px 2px; border-radius: 12px; border: 3px solid var(--ink-black); background: var(--panel); color: var(--grey); font-size: 11px; font-weight: 600; box-shadow: 0 3px 0 var(--ink-black); transition: background-color 180ms ease, color 180ms ease, transform 120ms var(--ease-out); }
.rpill b { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--ink); }
.rpill.done { opacity: .55; }
.rpill.on { background: var(--acc); color: #fff; } .rpill.on b { color: #fff; }
.rpill:active { transform: translateY(2px); }
.lb { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.lb-row { position: relative; }
.lb-btn { width: 100%; display: grid; grid-template-columns: 30px 46px 1fr auto; align-items: center; gap: 10px; padding: 12px; text-align: left; border-radius: 18px; border: 3px solid var(--ink-black); background: var(--panel); box-shadow: 0 5px 0 var(--ink-black);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out); }
.lb-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink-black); }
.lb-row.lead .lb-btn { background: var(--paper); color: var(--paper-ink); }
.lb-place { font-family: var(--display); font-size: 22px; text-align: center; color: var(--grey); }
.lb-row.lead .lb-place { color: var(--amber); }
.avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--display); font-size: 22px; border: 3px solid var(--ink-black); -webkit-text-stroke: 3px var(--ink-black); paint-order: stroke fill; }
.lb-name { font-weight: 700; font-size: 16px; min-width: 0; }
.lb-name small { display: block; font-weight: 500; font-size: 12px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row.lead .lb-name small { color: var(--paper-muted); }
.lb-bar { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: rgba(127,127,127,.25); overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); transform-origin: left center; transition: transform 420ms var(--ease-out); }
.lb-score { display: grid; justify-items: end; line-height: 1; }
.lb-score b { font-family: var(--display); font-weight: 400; font-size: 34px; display: inline-block; }
.lb-score small { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); }
.delta { position: absolute; right: 14px; top: -12px; padding: 2px 9px; border-radius: 99px; font-family: var(--display); font-size: 15px; border: 2px solid var(--ink-black); opacity: 0; pointer-events: none; }
.delta.up { background: var(--green); color: var(--paper-ink); } .delta.down { background: var(--pink); color: #fff; }
.dock-row.three { grid-template-columns: auto auto 1fr; }
.board .dock-row .btn.big { background: var(--acc, var(--pink)); font-size: 18px; }
.home .link { justify-self: center; }
.duo { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.duo .btn { font-size: 16px; padding: 10px 8px; line-height: 1.15; }

/* ---------- photo of a whole set ---------- */
.photo-review { position: fixed; inset: 0; z-index: 55; display: grid; grid-template-rows: auto 1fr auto auto; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom)); background: var(--card); opacity: 0; transition: opacity 220ms var(--ease-out); }
.photo-review.on { opacity: 1; }
.pr-head h3 { font-size: 24px; } .pr-head p { margin: 4px 0 0; color: var(--grey); font-weight: 600; }
.pr-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; border-radius: 18px; border: 3px solid var(--ink-black); background: #000; }
.pr-stage canvas { max-width: 100%; max-height: 100%; display: block; }
.pr-boxes { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr-box polygon { fill: rgba(139,255,106,.25); stroke: var(--green); stroke-width: 6; vector-effect: non-scaling-stroke; }
.pr-box.no polygon { fill: rgba(255,77,109,.25); stroke: var(--pink); }
.pr-box { animation: box-in 360ms var(--ease-out) both; animation-delay: calc(var(--k) * 60ms); transform-box: fill-box; transform-origin: center; }
@keyframes box-in { from { opacity: 0; transform: scale(1.3); } }
.pr-scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(rgba(255,77,109,0), rgba(255,77,109,.35)); border-bottom: 3px solid var(--pink); animation: pr-scan 1.2s var(--ease-in-out) infinite alternate; }
@keyframes pr-scan { to { transform: translateY(240%); } }
.pr-list { display: flex; gap: 8px; overflow-x: auto; min-height: 84px; padding: 2px; }
.pr-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.scan-row { gap: 10px; } .scan-row .btn.ghost { min-height: 46px; padding: 10px 14px; font-size: 16px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(130px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 60; background: var(--paper); color: var(--paper-ink); padding: 10px 16px; border-radius: 14px; font-weight: 700; border: 3px solid var(--ink-black); box-shadow: 0 4px 0 var(--ink-black);
  transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- short phones: tighten the home screen so it fits without scrolling ---------- */
@media (max-height: 700px) {
  .home .lead { font-size: 13.5px; line-height: 1.4; }
  .how li { font-size: 14px; line-height: 1.35; }
  .home .link { padding: 2px 0; }
  .orb.big { width: 12dvh; height: 12dvh; }
  .home .scroll { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .btn.big { min-height: 52px; font-size: 19px; }
  .bar h2 { font-size: 23px; }
}
@media (max-height: 680px) { .home .lead { display: none; } }
@media (max-height: 580px) { .how li { padding: 7px 12px; } .home .btn { min-height: 46px; padding-top: 8px; padding-bottom: 8px; } .kicker { margin-top: 8px; } }

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  .briefs { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ---------- reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .screen.enter .rise, .screen.enter .wordmark.big span, .screen.enter .hero-logo, .screen.enter .sw i, .screen.enter .winner h3 { animation: fade 200ms ease both; animation-delay: 0ms; }
  .screen.enter .orb.big { animation: fade 200ms ease both; }
  .laser, .btn.ready::after, .pr-scan { animation: none; }
  .pr-box { animation: fade 200ms ease both; }
  .card.sel, .brief.sel { transform: none; }
  @keyframes fade { from { opacity: 0; } }
}
