/* Wallet Wrapped 2026: flat-colour print poster. Anton for the shouting, Space Mono for everything else. */
@font-face { font-family: 'Anton'; src: url(fonts/anton-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(fonts/space-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(fonts/space-mono-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --cobalt: #2441FF; --cream: #FFF1DA; --yellow: #FFD43B; --night: #14130F; --tomato: #FF4A2E;
  --field: var(--cobalt); --shadow: var(--night);
  --bg: var(--cobalt); --ink: var(--cream); --pop: var(--yellow); --popInk: var(--night);
  --mono: 'Space Mono', ui-monospace, Menlo, Consolas, monospace;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--field); color: var(--cream); font-family: var(--mono); transition: background-color .45s ease; }
button, input { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- landing ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 5vw, 64px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.chain { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hero { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: 8px clamp(20px, 5vw, 64px) 40px; }
.eyebrow { margin: 0 0 18px; color: var(--yellow); font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 0 0 26px; font-family: var(--display); font-weight: 400; font-size: clamp(92px, 12.5vw, 196px); line-height: .84; text-transform: uppercase; letter-spacing: -.005em; }
.lead { margin: 0 0 28px; max-width: 36ch; font-size: 17px; line-height: 1.55; }
.form { display: flex; max-width: 560px; box-shadow: 9px 9px 0 var(--night); }
.form input { flex: 1; min-width: 0; height: 66px; padding: 0 18px; border: 0; border-radius: 0; background: var(--cream); color: var(--night); font-size: 17px; }
.form input::placeholder { color: #6d6658; }
.form button { flex: none; height: 66px; padding: 0 26px; border: 0; border-radius: 0; background: var(--yellow); color: var(--night); font-family: var(--display); font-size: 26px; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.form button:hover { background: var(--cream); }
.form-err { display: inline-block; margin: 18px 0 0; padding: 10px 14px; background: var(--tomato); color: var(--night); font-size: 14px; font-weight: 700; max-width: 560px; }
.form-err.shake, .shake { animation: shake .35s; }
.try { margin: 22px 0 0; font-size: 14px; }
.chip { padding: 4px 10px; border: 2px solid var(--yellow); background: transparent; color: var(--yellow); font-weight: 700; cursor: pointer; }
.chip:hover { background: var(--yellow); color: var(--night); }
.fine { list-style: none; margin: 30px 0 0; padding: 0; font-size: 13px; line-height: 1.7; opacity: .88; }
.fine li::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--yellow); vertical-align: 1px; }
.sample { margin: 0; justify-self: center; width: min(100%, 470px); }
.poster-frame { transform: rotate(2.5deg); box-shadow: 16px 16px 0 var(--night); background: var(--tomato); aspect-ratio: 1080 / 1350; }
.poster-frame svg, .poster-wrap svg { display: block; width: 100%; height: auto; }
.sample figcaption { margin-top: 34px; text-align: center; font-size: 13px; line-height: 1.5; opacity: .88; }
.msl-credit { display: flex; justify-content: center; padding: 28px 0; }
.msl-credit a { display: inline-flex; align-items: center; gap: 8px; color: inherit; opacity: .8; text-decoration: none; font-size: 13px; }
.msl-credit a:hover { opacity: 1; }
.msl-credit b { color: #ffd27a; font-weight: 700; }
.noscript { padding: 24px; text-align: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 4px; }
  h1 { font-size: clamp(84px, 27vw, 150px); }
  .sample { width: min(88%, 420px); }
  .chain { display: none; }
}
@media (max-width: 420px) {
  .form button { padding: 0 16px; font-size: 22px; }
  .form input { padding: 0 12px; font-size: 15px; }
}

/* ---------- story stage ---------- */
body[data-screen="story"] { overflow: hidden; }
.stage { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 3vh 0; }
.phone { position: relative; width: min(460px, calc(92vh * 9 / 16)); width: min(460px, calc(92dvh * 9 / 16)); aspect-ratio: 9 / 16; overflow: hidden; container-type: inline-size; box-shadow: 16px 16px 0 var(--shadow); background: var(--night); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
@media (max-width: 560px) {
  .stage { padding: 0; }
  .phone { width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; box-shadow: none; }
}
.bars { position: absolute; top: 12px; left: 14px; right: 58px; z-index: 5; display: flex; gap: 5px; color: var(--ink-now, var(--cream)); }
.bar { position: relative; flex: 1; height: 4px; }
.bar::before { content: ''; position: absolute; inset: 0; background: currentColor; opacity: .3; }
.bar i { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform .35s ease; }
.bar.on i { transform: scaleX(1); }
.close { position: absolute; top: 0; right: 6px; z-index: 6; width: 44px; height: 40px; border: 0; background: none; color: var(--ink-now, var(--cream)); font-size: 32px; line-height: 1; cursor: pointer; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 44px 24px 18px; background: var(--bg); color: var(--ink); overflow: hidden; }
.slide.enter { animation: wipe .56s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes wipe { from { clip-path: circle(0% at var(--x, 80%) var(--y, 50%)); } to { clip-path: circle(150% at var(--x, 80%) var(--y, 50%)); } }
.kicker { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 3px solid currentColor; font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 0; }
.big { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40cqw; line-height: .9; letter-spacing: -.005em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big.words { white-space: normal; text-transform: uppercase; line-height: .88; }
.cap { margin: 0; max-width: 32ch; font-size: 16px; line-height: 1.5; }
.cap b { font-weight: 700; }
.sub { margin: 0; font-size: 14px; line-height: 1.5; max-width: 34ch; }
.note { align-self: flex-start; margin: 4px 0 0; padding: 7px 10px; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.45; font-weight: 700; }
.pair { display: grid; gap: 4px; }
.pair + .pair { margin-top: 10px; }
.lab { font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.hint { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.hint .arrow { font-size: 18px; letter-spacing: 0; }

/* guess slides */
.q { margin: 18px 0 0; font-family: var(--display); font-weight: 400; font-size: 12.5cqw; line-height: .95; text-transform: uppercase; }
.opts { display: grid; gap: 8px; margin-top: 18px; }
.opts.m12 { grid-template-columns: repeat(4, 1fr); }
.opt { position: relative; height: 58px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; perspective: 700px; }
.opts.col .opt { height: 54px; }
.opt .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.35, .5, 1); }
.opt .fr, .opt .bk { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 3px solid currentColor; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.opt .fr { font-family: var(--display); font-size: 22px; letter-spacing: .03em; }
.opts.col .fr, .opts.col .bk { justify-content: flex-start; padding: 0 14px; font-family: var(--mono); font-weight: 700; font-size: 14px; text-align: left; }
.opt .bk { transform: rotateY(180deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt .bk.hit { background: var(--pop); color: var(--popInk); border-color: var(--popInk); }
.opt.flip .in { transform: rotateY(180deg); }
.opt:hover .fr { box-shadow: inset 0 0 0 3px currentColor; }
.opt:disabled { cursor: default; }
.opt.mine .fr, .opt.mine .bk { outline: 3px dashed currentColor; outline-offset: -9px; }
.bk .fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--pop); }
.bk .ml { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; font-family: var(--mono); font-weight: 700; font-size: 10px; line-height: 1.2; letter-spacing: .06em; }
.bk .ml b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: 0; }
.bk.hit .ml, .bk .ml.dark { color: var(--popInk); }
.reveal { min-height: 112px; margin-top: 16px; }
.reveal .rbig { margin: 0; font-family: var(--display); font-weight: 400; font-size: 17cqw; line-height: .95; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reveal .rline { margin: 6px 0 0; font-size: 15px; line-height: 1.45; max-width: 34ch; }
.skip { align-self: flex-start; margin-top: 12px; padding: 6px 0; border: 0; background: none; color: inherit; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* loading slide */
.load-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 21cqw; line-height: .86; text-transform: uppercase; }
.months12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 22px; }
.mo { height: 46px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; border: 3px solid currentColor; font-weight: 700; font-size: 10px; }
.mo.on { background: currentColor; }
.mo.on span { color: var(--bg); }
.mo.next { animation: blink .9s steps(2, jump-none) infinite; }
@keyframes blink { 50% { background: currentColor; } }
.count { margin: 18px 0 0; font-family: var(--display); font-size: 15cqw; line-height: 1; font-variant-numeric: tabular-nums; }
.ticker { margin: 6px 0 0; font-size: 14px; line-height: 1.5; min-height: 3em; }

/* poster + actions */
.slide.poster { overflow-y: auto; padding-bottom: 8px; touch-action: pan-y; }
.poster-wrap { margin-top: 16px; box-shadow: 9px 9px 0 var(--ink); }
.verdict-line { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 8px; border: 3px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.wide { grid-column: 1 / -1; }
.slide .msl-credit { padding: 22px 0 6px; }
.slide .msl-credit b { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
