/* Hallmark · macrostructure: immersive-world hero → tape → route panel → board → footer wordmark · theme: custom night-city (ink, cream, signal yellow, siren) · pre-emit critique: P4 H4 E4 S5 R4 V5 */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --ink: #140C1F; --violet: #1A0F2E; --cream: #EDE6D6; --paper: #F4EEE2; --brown: #2B1D14; --mud: #5C4636;
  --yellow: #FFD23F; --pink: #FF3D8B; --orange: #FF8A3D; --siren: #FF2E4D; --siren-dark: #C21835; --blue: #3D7BFF; --gold: #8A6500;
  --bar: 56px; --wide: 125%;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --plate: #1F4A35; --plate-ink: #F2F0E6; --plate-chip: #2C6A4B; --wreck: #3B3340; --wreck-ink: #CFC6D6; --crash-ink: #FFB0BD; --yellow-hi: #FFDC63; --dusk: #3a1638; --rules: #4A3123;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--brown); font: 450 15px/1.5 "Archivo", system-ui, sans-serif; overflow-x: clip; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--brown); padding: 10px 14px; border-radius: 8px; font-weight: 650; }
.skip:focus { top: 12px; }

/* ---------- the cream bar */
.bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 40; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 0 10px 0 12px; background: var(--cream); color: var(--brown); box-shadow: 0 1px 0 rgba(43,29,20,.12); }
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bar-brand img { width: 34px; height: 34px; border-radius: 7px; }
.bar-word { font-weight: 900; font-stretch: var(--wide); font-size: 19px; letter-spacing: -.02em; text-transform: uppercase; font-style: normal; }
.chase { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; align-items: center; gap: 14px; max-width: 620px; width: 100%; justify-self: center; font-size: 13.5px; font-weight: 600; }
.chase-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.chase-line { position: relative; height: 3px; background: rgba(43,29,20,.16); border-radius: 3px; }
.chase-line i { position: absolute; inset: 0; background: var(--siren); transform-origin: left; transform: scaleX(0); border-radius: 3px; transition: transform .4s linear; }
.chase-line b { position: absolute; right: -5px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--cream); }
.chase-clock { font-variant-numeric: tabular-nums; color: var(--mud); min-width: 3.2em; text-align: right; }
.bar-right { display: flex; align-items: center; gap: 6px; }
.ca { border: 1px solid rgba(43,29,20,.22); background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ca:hover { background: rgba(43,29,20,.06); }
.icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--brown); text-decoration: none; }
.icon:hover { background: rgba(43,29,20,.08); }
.wallet { border: 0; background: var(--brown); color: var(--cream); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.buy { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--brown); text-decoration: none; font-weight: 750; font-size: 14px; padding: 0 18px; height: 40px; border-radius: 4px; white-space: nowrap; transition: transform .25s var(--ease), background .2s; }
.buy:hover { transform: translateY(-1px); background: var(--yellow-hi); }
.buy span { transition: transform .3s var(--ease); }
.buy:hover span { transform: translate(2px, -2px); }
.bar .buy { height: var(--bar); margin: 0 -10px 0 4px; border-radius: 0; padding: 0 22px; }

/* ---------- the city */
.city { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--ink); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.in-city #scene:active { cursor: grabbing; }
.plates { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.plate { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border: 0; border-radius: 6px;
  background: var(--plate); color: var(--plate-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .3s; box-shadow: 0 0 0 1.5px var(--plate-ink) inset, 0 6px 14px rgba(0,0,0,.35); will-change: transform; }
.plate img, .plate-dot { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; background: var(--plate-chip); }
.plate-st { color: var(--yellow); letter-spacing: -1px; font-size: 11px; }
.plate.is-target { background: var(--siren-dark); font-size: 14px; padding: 4px 11px 4px 4px; animation: siren 1s steps(2) infinite; }
.plate.is-target img { width: 26px; height: 26px; }
.plate.is-wreck { background: var(--wreck); color: var(--wreck-ink); }
.plate-crash { color: var(--crash-ink); font-weight: 650; }
@keyframes siren { 0% { box-shadow: 0 0 0 2px var(--plate-ink) inset, 0 0 22px rgba(255,46,77,.75); } 100% { box-shadow: 0 0 0 2px var(--plate-ink) inset, 0 0 22px rgba(61,123,255,.75); } }

.hero { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: calc(var(--bar) + 20px) 24px 40px; color: var(--cream); text-align: center;
  background: radial-gradient(ellipse at 50% 55%, rgba(20,12,31,.15), rgba(20,12,31,.55) 70%), linear-gradient(180deg, rgba(20,12,31,.35), rgba(20,12,31,0) 40%, rgba(20,12,31,.7)); }
.hero-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 2.2vw; max-width: 100%; }
.hero-word { overflow-wrap: anywhere; min-width: 0; grid-column: 2; margin: 0; font-weight: 900; font-stretch: var(--wide); font-style: normal; text-transform: uppercase; line-height: 1; letter-spacing: -.035em;
  font-size: clamp(64px, 14.5vw, 300px); color: var(--cream); text-shadow: .045em .045em 0 var(--pink); white-space: nowrap; }
.hero-word span { display: inline-block; padding-right: .06em; }
.hero-side { margin: 0; font-size: clamp(13px, 1vw, 17px); font-weight: 650; color: rgba(237,230,214,.86); }
.hero-l { text-align: right; } .hero-r { text-align: left; }
.hero-line { grid-column: 1 / -1; margin: 26px auto 0; max-width: 34em; font-size: clamp(16px, 1.35vw, 22px); line-height: 1.4; font-weight: 500; color: var(--cream); text-wrap: balance; }
.go { grid-column: 1 / -1; justify-self: center; margin-top: 28px; border: 0; background: var(--yellow); color: var(--brown); font-weight: 750; font-size: 15px; height: 48px; padding: 0 26px; border-radius: 999px; transition: transform .3s var(--ease); }
.go:hover { transform: scale(1.04); }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; font-size: 12.5px; color: rgba(237,230,214,.62); }

.tail { position: absolute; left: 16px; bottom: 16px; z-index: 8; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; background: var(--cream); border-radius: 8px; max-width: min(420px, calc(100% - 32px)); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.tail-pfp { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--ink); }
.tail-txt { min-width: 0; }
.tail-h { margin: 0; font-weight: 600; font-size: 14px; } .tail-h b { font-weight: 900; font-stretch: var(--wide); }
.tail-s { margin: 2px 0 0; font-size: 12.5px; color: var(--mud); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tail-open { margin-left: auto; border: 0; background: var(--brown); color: var(--cream); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 650; }
.stars { letter-spacing: 1px; font-size: 18px; line-height: 1; white-space: nowrap; }
.stars-sm { font-size: 13px; }
.st-on { color: var(--yellow); text-shadow: 0 0 0 var(--brown), 0 1px 0 rgba(43,29,20,.55); }
.st-off { color: rgba(43,29,20,.18); }
.cam { position: absolute; right: 16px; bottom: 16px; z-index: 8; display: flex; gap: 6px; }
.cam button { border: 0; background: rgba(237,230,214,.92); color: var(--brown); height: 40px; min-width: 40px; border-radius: 999px; font-size: 18px; font-weight: 700; }
.cam .cam-chase { font-size: 13px; padding: 0 14px; font-weight: 650; }
.status { position: absolute; left: 50%; top: calc(var(--bar) + 14px); transform: translateX(-50%); z-index: 9; color: var(--cream); font-size: 13px; background: rgba(20,12,31,.7); border-radius: 999px; padding: 0 14px; }
.status:not(:empty) { padding: 8px 14px; }
.blot { position: fixed; inset: 0; z-index: 60; pointer-events: none; display: none; width: 100%; height: 100%; }
.no-gl { background: radial-gradient(ellipse at 50% 70%, var(--dusk), var(--ink) 70%); }

/* ---------- coin card */
.card { position: fixed; right: 16px; top: calc(var(--bar) + 16px); z-index: 30; width: min(380px, calc(100% - 32px)); max-height: calc(100vh - var(--bar) - 32px); overflow: auto;
  background: var(--paper); border-radius: 10px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.card-x { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; color: var(--brown); }
.card-x:hover { background: rgba(43,29,20,.08); }
.card-top { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.card-pfp { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; background: var(--ink); transform: rotate(-3deg); box-shadow: 0 8px 20px rgba(43,29,20,.25); }
.card-sym { margin: 0; font-weight: 900; font-stretch: var(--wide); font-size: 26px; letter-spacing: -.02em; line-height: 1.05; word-break: break-word; }
.card-name { margin: 2px 0 8px; color: var(--mud); font-size: 13.5px; }
.card-crash { margin: 12px 0 0; padding: 8px 10px; background: rgba(255,46,77,.12); color: var(--siren-dark); border-radius: 6px; font-weight: 650; font-size: 13.5px; }
.card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0 0; }
.card-stats dt { font-size: 12.5px; color: var(--mud); }
.card-stats dd { margin: 0; font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.up { color: var(--gold); } .down { color: var(--siren-dark); }
.card-chart { margin: 16px 0 0; background: var(--cream); border-radius: 6px; padding: 10px; }
.card-chart svg { width: 100%; height: 96px; display: block; }
.card-chart figcaption { font-size: 12px; color: var(--mud); margin-top: 4px; }
.card-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.buy-lg { height: 44px; }
.ghost { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid rgba(43,29,20,.25); background: transparent; border-radius: 4px; text-decoration: none; font-weight: 650; font-size: 14px; }
.ghost:hover { background: rgba(43,29,20,.06); }
.card-ca { margin-top: 12px; border: 0; background: transparent; padding: 4px 0; color: var(--mud); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the tape (cream editorial) */
.tape { background: var(--cream); padding: clamp(90px, 14vw, 200px) 24px clamp(60px, 8vw, 120px); text-align: center; }
.tape-title { overflow-wrap: anywhere; min-width: 0; margin: 0 auto; font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: -.035em; line-height: 1; font-size: clamp(46px, 9vw, 168px); color: var(--brown); }
.ln { display: block; overflow: hidden; padding-bottom: .04em; } .ln > span { display: inline-block; }
.tape-lede { margin: 38px auto 0; max-width: 36em; font-size: clamp(16px, 1.3vw, 20px); color: var(--mud); text-wrap: pretty; }

.rules { background: var(--rules); color: var(--cream); display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.5fr); gap: clamp(32px, 6vw, 100px); padding: clamp(70px, 9vw, 140px) clamp(20px, 6vw, 110px); align-items: center; }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.rules-list li { padding-left: 22px; position: relative; }
.rules-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--yellow); }
.rules-list h3 { margin: 0; font-weight: 900; font-stretch: var(--wide); font-size: 24px; letter-spacing: -.01em; text-transform: uppercase; }
.rules-list p { margin: 6px 0 0; color: rgba(237,230,214,.82); max-width: 32em; }
.route { position: relative; }
.route-h { margin: 0 0 14px; font-size: 15px; font-weight: 650; color: rgba(237,230,214,.82); }
.route-svg { width: 100%; height: clamp(180px, 22vw, 300px); overflow: visible; display: block; }
.route-svg path { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route-plot { position: relative; }
.route-dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--rules); opacity: 0; }
.route-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(237,230,214,.66); margin-top: 8px; }
.route-big { margin: 28px 0 0; font-weight: 900; font-stretch: var(--wide); font-size: clamp(40px, 5vw, 84px); line-height: 1; letter-spacing: -.03em; }
.route-sub { margin: 8px 0 0; color: rgba(237,230,214,.82); }

/* ---------- most wanted board */
.board { background: var(--paper); padding: clamp(60px, 8vw, 120px) clamp(16px, 5vw, 80px); outline: none; }
.board-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.board-title { overflow-wrap: anywhere; min-width: 0; margin: 0; font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: -.035em; font-size: clamp(40px, 6vw, 104px); line-height: 1; }
.board-note { margin: 0; color: var(--mud); max-width: 30em; }
.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 34px 44px minmax(140px, 1.4fr) 110px repeat(3, minmax(88px, 1fr)) auto; align-items: center; gap: 16px; padding: 14px 6px; border-top: 1px solid rgba(43,29,20,.14); }
.row-n { font-weight: 900; font-stretch: var(--wide); color: var(--mud); font-variant-numeric: tabular-nums; }
.row-pfp { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--ink); }
.row-id { min-width: 0; display: grid; } .row-id b { font-weight: 900; font-stretch: var(--wide); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-id small { color: var(--mud); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-st em { font-style: normal; color: var(--siren-dark); font-weight: 650; font-size: 13px; }
.row-k { display: grid; font-weight: 750; font-variant-numeric: tabular-nums; } .row-k small { font-weight: 450; color: var(--mud); font-size: 12px; }
.row-acts { display: flex; gap: 6px; justify-content: flex-end; }
.ghost-sm, .buy-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.row-target { background: linear-gradient(90deg, rgba(255,46,77,.1), transparent 60%); }
.row-wreck { opacity: .62; }

/* ---------- footer */
.foot { background: var(--ink); color: var(--cream); padding: 70px clamp(16px, 5vw, 80px) 40px; overflow: hidden; }
.foot-word { overflow-wrap: anywhere; min-width: 0; margin: 0; font-weight: 900; font-stretch: var(--wide); font-style: normal; text-transform: uppercase; letter-spacing: -.04em; line-height: 1; font-size: clamp(56px, 15vw, 380px); color: var(--cream); text-shadow: .04em .04em 0 var(--pink); white-space: nowrap; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 40px; }
.ca-dark { color: var(--cream); border-color: rgba(237,230,214,.3); }
.icon-dark { color: var(--cream); } .icon-dark:hover { background: rgba(237,230,214,.1); }
.foot-small { margin: 28px 0 0; max-width: 52em; font-size: 13px; color: rgba(237,230,214,.62); }

/* ---------- share + toast */
.share { position: fixed; inset: 0; z-index: 70; background: rgba(20,12,31,.78); display: grid; place-items: center; padding: 16px; }
.share[hidden], .toast[hidden], .card[hidden], .tail[hidden], .cam[hidden], .hero[hidden] { display: none; }
.share-in { position: relative; background: var(--paper); border-radius: 10px; padding: 22px; width: min(720px, 100%); }
.share-h { margin: 0 40px 14px 0; font-weight: 900; font-stretch: var(--wide); font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.02em; }
.share-img { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 6px; background: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px; background: var(--brown); color: var(--cream); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 14px 40px rgba(0,0,0,.4); max-width: calc(100% - 24px); }
.toast p { margin: 0; font-weight: 600; font-size: 14px; }
.toast button { border: 0; background: var(--yellow); color: var(--brown); border-radius: 999px; padding: 8px 14px; font-weight: 700; }

/* ---------- phones and narrow screens */
@media (max-width: 1100px) { .chase-who { max-width: 150px; } .ca { display: none; } }
@media (max-width: 860px) {
  .bar { grid-template-columns: auto 1fr auto; gap: 10px; }
  .chase { grid-template-columns: 1fr auto; } .chase-line { display: none; }
  .wallet { display: none; }
  .bar .buy { padding: 0 14px; font-size: 13px; }
  .rules { grid-template-columns: 1fr; }
  .row { grid-template-columns: 26px 40px 1fr auto; gap: 10px; }
  .row-k, .row-st { display: none; }
  .row-acts .ghost-sm { display: none; }
}
@media (max-width: 560px) {
  :root { --bar: 52px; }
  .bar-word, .bar .icon { display: none; }
  .chase { font-size: 12.5px; }
  .bar .buy span { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-word { grid-column: 1; font-size: 14.5vw; }
  .hero-side { text-align: center; } .hero-l { order: -1; margin-bottom: 14px; } .hero-r { margin-top: 12px; }
  .card { left: 0; right: 0; top: auto; bottom: 0; width: 100%; border-radius: 14px 14px 0 0; max-height: 78vh; }
  .tail { right: 16px; bottom: 70px; } .tail-pfp { width: 48px; height: 48px; }
  .cam { left: 16px; right: auto; }
  .toast { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
