/* Archivo (SIL Open Font License), latin subset, variable width and weight. Used wide and heavy for numbers and titles. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin.woff2) format("woff2"); }
:root {
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --bg: #0a0a0c;
  --ink: #f5f5f7;
  --muted: #a1a1aa;
  --red: #e82127;
  --red-hi: #ff3b41;
  --glass: rgba(14, 14, 18, .62);
  --line: rgba(255, 255, 255, .12);
  --bronze: #cd7f32;
  --silver: #c7ccd4;
  --gold: #ffc83d;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg) radial-gradient(120% 70% at 50% 0%, #2a0b0d 0%, var(--bg) 62%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
/* The owner's art (no logos), behind the video when there is one. On a phone the crop keeps the dog and the car. */
.bg-art { object-position: 34% 50%; filter: saturate(1.05); }
@media (max-aspect-ratio: 4/5) { .bg-art { object-position: 15% 50%; } }
.shade { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,12,.55), rgba(10,10,12,.82) 70%, rgba(10,10,12,.92)); }

/* Fallback motion behind (or instead of) the video: light streaks like a night highway */
.streaks { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.streaks i { position: absolute; top: var(--y); left: -40%; width: 40%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,59,65,.75), transparent); filter: blur(.5px); animation: streak var(--d) linear var(--s) infinite; }
@keyframes streak { to { transform: translateX(350%); } }

button:focus-visible, input:focus-visible, a:focus-visible, .photo-btn:focus-within { outline: 2px solid #fff; outline-offset: 2px; }

/* nav */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: rgba(10,10,12,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { color: var(--ink); text-decoration: none; font-family: var(--display); font-stretch: 118%; font-weight: 800; letter-spacing: .14em; font-size: .8rem; }
.brand b { color: var(--red-hi); }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.nav nav a:hover { color: var(--ink); }
.pill { background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 9px 16px; border-radius: 99px; white-space: nowrap; }
.pill:hover { background: var(--red-hi); }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 96px 24px 56px; }
.hero-main { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: var(--muted); }
.counter {
  font-family: var(--display);
  font-stretch: 112%;
  font-size: clamp(3.6rem, 13vw, 10rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 60px rgba(232, 33, 39, .5);
  margin: 8px 0 0;
}
.counter.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.04); color: #fff; text-shadow: 0 0 80px rgba(255, 59, 65, .9); } }
.goal { color: var(--muted); margin-top: 2px; }
.goal strong { color: var(--ink); }
.pctwrap { width: min(560px, 90vw); display: flex; align-items: center; gap: 14px; margin: 18px 0 12px; }
.bar { position: relative; flex: 1; height: 12px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.pct { font-family: var(--display); font-stretch: 112%; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 4.4ch; text-align: right; color: var(--red-hi); text-shadow: 0 0 24px rgba(232,33,39,.6); }
.tagline { color: var(--ink); font-weight: 600; max-width: 40ch; text-wrap: balance; }
.ladder:empty { display: none; }
.ladder { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; max-width: 560px; }
.ladder span { padding: 4px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.ladder span.done { background: rgba(61,220,132,.15); color: #7be8a8; border-color: rgba(61,220,132,.35); }
.ladder span.current { color: #fff; border-color: var(--red-hi); background: rgba(232,33,39,.25); }
.charity { color: var(--muted); font-size: .85rem; max-width: 52ch; margin-top: 8px; line-height: 1.45; }
.charity a, .lede a { color: var(--ink); }
.charity b { color: var(--ink); }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--red-hi)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); min-width: 6px; }
.sub { color: var(--muted); margin-top: 10px; }
.cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin-top: 12px; border: 0; border-radius: 14px; background: var(--red); color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.cta:hover { background: var(--red-hi); }
.cta:active { transform: scale(.99); }
.cta:disabled { opacity: .6; cursor: progress; }
.cta.big { width: auto; padding: 0 32px; margin-top: 26px; box-shadow: 0 10px 50px rgba(232,33,39,.4); }

/* live feed */
.live { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 300px; max-height: 62vh; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 16px; }
.live h2 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulse 2s infinite; }
.dot.off { background: #777; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
#feed { list-style: none; padding: 0; overflow-y: auto; display: grid; gap: 8px; scrollbar-width: thin; }
#feed li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); }
#feed li.fresh { animation: in .5s ease; }
#feed li.fresh { background: rgba(232,33,39,.22); }
#feed li.silver { box-shadow: inset 0 0 0 1px rgba(199,204,212,.5); }
#feed li.gold { box-shadow: inset 0 0 0 1px rgba(255,200,61,.7); background: rgba(255,200,61,.1); }
@keyframes in { from { opacity: 0; transform: translateY(-10px); } }
.feed-body { min-width: 0; flex: 1; }
.row { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .95rem; }
.row b { color: #ff6b70; font-variant-numeric: tabular-nums; }
.row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg { margin-top: 3px; color: #d4d4d8; font-size: .88rem; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: .9rem; }
.empty[hidden] { display: none; }

/* avatars & badges */
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; background: #3a3a44; object-fit: cover; overflow: hidden; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #111; vertical-align: middle; }
.badge.bronze { background: var(--bronze); }
.badge.silver { background: var(--silver); }
.badge.gold { background: var(--gold); }

/* sections */
.block.wide { max-width: 1080px; }
.block { max-width: 880px; margin: 0 auto; padding: 72px 24px; }
.kicker { letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; color: var(--red-hi); font-weight: 700; }
.block h2 { font-family: var(--display); font-stretch: 112%; font-weight: 800; text-wrap: balance; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; margin: 6px 0 10px; }
.lede { color: var(--muted); max-width: 60ch; line-height: 1.55; }
.fine { color: #7d7d88; font-size: .74rem; line-height: 1.45; margin-top: 8px; }

/* tiers + form */
.give { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tier { text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, background .15s; }
.tier:hover { border-color: rgba(255,255,255,.35); }
.tier.on { border-color: var(--red-hi); background: rgba(232,33,39,.18); }
.tier .price { font-family: var(--display); font-stretch: 110%; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.tier .tname { font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tier ul { list-style: none; padding: 0; color: var(--muted); font-size: .8rem; line-height: 1.4; display: grid; gap: 4px; }
.custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); }
.custom:focus-within { border-color: var(--red-hi); }
.custom input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; }
.custom input::-webkit-inner-spin-button { display: none; }
.fields { display: grid; gap: 10px; margin-top: 10px; }
.fields > input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); font: inherit; outline: 0; }
.fields > input:focus { border-color: var(--red-hi); }
::placeholder { color: #8b8b95; }
.photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-btn { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 16px 6px 6px; border-radius: 99px; border: 1px dashed rgba(255,255,255,.3); }
.photo-btn:hover { border-color: #fff; }
.photo.off .photo-btn { opacity: .4; pointer-events: none; }
.photo small { color: var(--muted); font-size: .8rem; }
.err { color: #ff8a8e; min-height: 1.2em; margin-top: 8px; font-size: .9rem; }

/* hall of fame */
.board { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 10px; counter-reset: none; }
.board li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.board .rank { width: 34px; font-size: 1.3rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.board li.r1 { border-color: rgba(255,200,61,.6); background: linear-gradient(90deg, rgba(255,200,61,.14), var(--glass)); }
.board li.r2 { border-color: rgba(199,204,212,.5); }
.board li.r3 { border-color: rgba(205,127,50,.55); }
.board li.r1 .rank { color: var(--gold); }
.board li.r2 .rank { color: var(--silver); }
.board li.r3 .rank { color: var(--bronze); }
.board li.r1 .avatar { width: 64px; height: 64px; font-size: 1.3rem; }
.board .who { flex: 1; min-width: 0; font-weight: 700; display: flex; flex-direction: column; gap: 3px; }
.board .who span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .total { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #ff6b70; font-variant-numeric: tabular-nums; }

/* the car */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 26px; }
.spec { padding: 20px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.spec b { display: block; font-family: var(--display); font-stretch: 110%; font-size: 1.7rem; white-space: nowrap; font-weight: 800; letter-spacing: -.02em; }
.spec span { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
.spec em { display: block; color: #7d7d88; font-size: .8rem; font-style: normal; margin-top: 2px; }

/* roadmap */
.steps { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 12px; }
.steps li { position: relative; padding: 0 0 28px 30px; }
.steps li::before { content: ""; position: absolute; left: -9px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid #555; }
.steps li.done::before { background: #3ddc84; border-color: #3ddc84; }
.steps li.in_progress::before { background: var(--red); border-color: var(--red-hi); box-shadow: 0 0 0 6px rgba(232,33,39,.25); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin-top: 4px; max-width: 56ch; line-height: 1.5; }
.steps .mini { width: min(320px, 100%); height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: 10px; }
.steps .mini span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-hi)); min-width: 4px; }

.foot a { color: var(--muted); }
.foot { max-width: 880px; margin: 0 auto; padding: 24px 24px 56px; color: #6b6b75; font-size: .78rem; line-height: 1.5; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 24px; visibility: hidden; transform: translate(-50%, calc(100% + 48px)); background: var(--red); color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 700; box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: transform .4s cubic-bezier(.2,.8,.2,1), visibility 0s .4s; max-width: calc(100vw - 32px); text-align: center; z-index: 30; }
.toast.show { visibility: visible; transform: translate(-50%, 0); transition: transform .4s cubic-bezier(.2,.8,.2,1); }

@media (max-width: 1180px) {
  .live { position: static; transform: none; width: min(560px, 100%); margin-top: 36px; max-height: 360px; }
  .hero { flex-direction: column; justify-content: center; }
}
@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav { padding: 12px 16px; }
  .block { padding: 56px 16px; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .give { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .streaks i, .counter.bump, #feed li, .dot { animation: none; }
  .bar span, .toast { transition: none; }
}

/* stage-complete celebration */
.party { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(10,10,12,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px; cursor: pointer; overflow: hidden; }
.party[hidden] { display: none; }
.party .card { position: relative; text-align: center; max-width: 520px; padding: 36px 28px; border-radius: 24px; border: 1px solid rgba(255,59,65,.5); background: rgba(14,14,18,.92); box-shadow: 0 0 120px rgba(232,33,39,.35); }
.party .big { font-family: var(--display); font-stretch: 115%; font-size: clamp(3rem, 14vw, 6rem); font-weight: 900; letter-spacing: -.04em; color: var(--red-hi); line-height: 1; }
.party h2 { font-size: 1.5rem; margin: 10px 0 6px; text-wrap: balance; }
.party p { color: var(--muted); }
.party small { display: block; margin-top: 18px; color: #6b6b75; }
.party i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; background: var(--c); left: var(--x); animation: fall var(--t) linear var(--d) infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .party i { display: none; } }

/* checkpoints on the progress bar and in the roadmap */
.bar .tick { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #fff; opacity: .75; }
.bar .tick.done { background: #3ddc84; opacity: 1; }
.checkpoint { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.checkpoint:empty { display: none; }
.subs { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 8px; }
.subs li { padding: 8px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: .9rem; }
.subs li.done { border-color: #3ddc84; color: #7be8a8; }
.subs small { display: block; color: #7d7d88; margin-top: 2px; line-height: 1.4; }
.steps .subs li { padding: 8px 12px; }
.steps .subs li::before { content: none; }

/* lofi radio */
.radio { position: fixed; left: 16px; bottom: 16px; z-index: 25; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 99px; background: rgba(14,14,18,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.radio button { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: var(--ink); font-size: .85rem; cursor: pointer; }
.radio button:hover { background: rgba(255,255,255,.2); }
.radio .r-play { background: var(--red); color: #fff; }
.radio .r-play:hover { background: var(--red-hi); }
.r-info { display: grid; min-width: 0; line-height: 1.25; }
.r-info b { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.r-info span { font-size: .8rem; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.r-bars b { width: 3px; height: 4px; border-radius: 2px; background: #555; }
.radio.on .r-bars b { background: var(--red-hi); animation: eq .9s ease-in-out infinite; }
.radio.on .r-bars b:nth-child(2) { animation-delay: -.3s; } .radio.on .r-bars b:nth-child(3) { animation-delay: -.6s; } .radio.on .r-bars b:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 50% { height: 16px; } }
.r-vol { width: 80px; accent-color: var(--red-hi); }
@media (max-width: 760px) {
  .r-info span { max-width: 110px; }
  .r-vol { width: 60px; }
  .toast { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .radio.on .r-bars b { animation: none; height: 10px; } }

/* the mascot car doing stunts in a fixed layer above the content: see stunts.js */
.stunt { position: fixed; inset: 0; z-index: 18; pointer-events: none; overflow: hidden; }
.stunt .car { z-index: 2; position: absolute; left: 0; top: 0; width: 200px; opacity: 0; will-change: transform; transform-origin: 50% 50%; --thrust: 0; }
.stunt .rcar { position: relative; width: 100%; }
.stunt .rbody { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.stunt .rwheel { position: absolute; z-index: 2; height: auto; translate: -50% -50%; animation: spin .7s linear infinite; }
.stunt .car.parked .rwheel { animation-play-state: paused; }
.stunt .jet { position: absolute; z-index: 0; width: 5.5%; height: 105%; margin-left: -2.75%; background: linear-gradient(#fff, rgba(191,227,255,.85) 35%, rgba(127,194,255,0)); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: var(--thrust); transform-origin: 50% 0; animation: flicker .11s ease-in-out infinite alternate; }
.stunt .jet2 { animation-delay: -.05s; }
@keyframes flicker { from { transform: scaleY(.82) scaleX(.9); } to { transform: scaleY(1.12) scaleX(1.08); } }
@keyframes spin { to { rotate: 360deg; } }
.stunt::before { content: ''; position: absolute; left: calc(var(--gx, -999px) - 240px); top: calc(var(--gy, -999px) - 70px); width: 480px; height: 280px; background: radial-gradient(closest-side, rgba(255,59,65,.38), rgba(255,59,65,0)); opacity: var(--glow, 0); transition: opacity .5s; }
.stunt .puff { z-index: 1; position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.85), rgba(235,215,220,.42) 52%, rgba(235,215,220,0) 72%); opacity: .85; transform: translate(var(--x), var(--y)); animation: puff var(--t) ease-out forwards; }
@keyframes puff { to { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(2.8); opacity: 0; } }
.hero-main { position: relative; z-index: 1; }
.live { z-index: 1; }
@media (max-width: 760px) { .stunt .car { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .stunt { display: none; } }

/* Flappy Roadster */
.game-fab { position: fixed; right: 16px; bottom: 16px; z-index: 25; padding: 11px 16px; border: 1px solid var(--line); border-radius: 99px; background: rgba(14,14,18,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.game-fab:hover { border-color: rgba(255,255,255,.4); }
.game { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5,5,8,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px; }
.game[hidden] { display: none; }
.game-card { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 0 120px rgba(232,33,39,.3); border: 1px solid rgba(255,59,65,.4); }
.game canvas { display: block; height: min(600px, 84vh); width: auto; aspect-ratio: 400 / 600; max-width: calc(100vw - 24px); touch-action: manipulation; cursor: pointer; }
.g-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.g-msg { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: rgba(6,6,12,.55); }
.g-msg[hidden] { display: none; }
.g-title { font-family: var(--display); font-stretch: 112%; font-size: 2rem; letter-spacing: -.02em; }
.g-text { color: #d4d4d8; max-width: 26ch; line-height: 1.45; }
.g-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.g-actions button, .g-actions a { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.g-actions .g-again, .g-actions .g-buy { background: var(--red); border-color: var(--red); }
.g-actions [hidden] { display: none; }
@media (max-width: 760px) { .game-fab { padding: 10px 12px; font-size: .8rem; } .game-fab { bottom: 76px; } }

.tip { position: absolute; z-index: 5; max-width: min(280px, 90%); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(14,14,18,.96); box-shadow: 0 12px 40px rgba(0,0,0,.55); pointer-events: none; font-size: .9rem; }
.tip[hidden] { display: none; }
.tip p { margin-top: 4px; color: #d4d4d8; overflow-wrap: anywhere; }

/* hero buttons, wall + ranking pages */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 26px; }
.cta-row .cta { margin-top: 0; }
.cta.ghost { width: auto; padding: 0 26px; background: rgba(255,255,255,.08); border: 1px solid var(--line); box-shadow: none; }
.cta.ghost:hover { background: rgba(255,255,255,.16); }
.g-save { display: flex; gap: 8px; width: min(300px, 100%); }
.g-save[hidden] { display: none; }
.g-save input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.5); color: #fff; font: inherit; }
.g-save button { padding: 10px 14px; border-radius: 12px; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.g-save button:disabled { opacity: .6; }
.g-err { color: #ff8a8e; font-size: .85rem; min-height: 1em; }
.page-top { padding-top: 110px; }
.wall-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--muted); }
.wall-stats b { color: var(--ink); }
.wall-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.wall-actions .cta { width: auto; padding: 0 26px; margin-top: 0; }
.lb { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; counter-reset: lb; }
.lb li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); }
.lb .pos { font-weight: 800; color: var(--muted); font-size: 1.05rem; }
.lb li:nth-child(1) { border-color: var(--gold); box-shadow: 0 0 30px rgba(255,200,61,.18); } .lb li:nth-child(1) .pos { color: var(--gold); }
.lb li:nth-child(2) { border-color: rgba(199,204,212,.7); } .lb li:nth-child(2) .pos { color: var(--silver); }
.lb li:nth-child(3) { border-color: rgba(205,127,50,.7); } .lb li:nth-child(3) .pos { color: var(--bronze); }
.lb .who { font-weight: 700; overflow-wrap: anywhere; }
.lb .when { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.lb .pts { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.lb li.me { outline: 2px solid var(--red-hi); box-shadow: 0 0 40px rgba(255,59,65,.35); }
.lb-note { margin-top: 16px; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .page-top { padding-top: 90px; } }
.block .h1like, .h1like { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -.02em; margin: 6px 0 10px; line-height: 1.05; }
.g-msg > * { max-width: 100%; }
.g-save { flex-direction: column; align-items: stretch; }
.g-actions { gap: 6px; }
.g-actions button, .g-actions a { padding: 8px 12px; font-size: .85rem; }

/* the wall as a map, see wallmap.js: a toolbar row on top, the map under it, never covered by its own controls */
.wv-mapcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wm-bar .wall-stats { display: block; flex: 1 1 200px; margin: 0; padding-left: 4px; font-size: .9rem; }
.wm-bar button, .wm-bar input { height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); font: inherit; font-size: .85rem; }
.wm-bar button { min-width: 34px; padding: 0 11px; font-weight: 700; cursor: pointer; }
.wm-bar button:hover { background: rgba(255,255,255,.14); }
.wm-bar input { width: min(190px, 40vw); padding: 0 11px; }
.wm-bar output { color: var(--muted); font-size: .8rem; }
.wm-bar output:empty { display: none; }
.wm-zoom { display: inline-flex; gap: 4px; }
.wallmap { position: relative; height: min(80vh, 860px); min-height: 460px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #0b0b10; }
.wallmap canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; outline-offset: -3px; }
.wallmap canvas.over { cursor: pointer; }
.wallmap canvas.grab { cursor: grabbing; }
.wallmap .tip { z-index: 3; }
.tip-you { display: block; margin-bottom: 4px; color: var(--red-hi); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.wm-update { position: absolute; z-index: 4; top: 10px; left: 50%; transform: translateX(-50%); height: 34px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--red); color: #fff; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.wv-mapcol.expanded { position: fixed; inset: 0; z-index: 45; padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: #07070a; }
.wv-mapcol.expanded .wallmap { flex: 1; height: auto; min-height: 0; }
.wv-mapcol.expanded canvas { touch-action: none; }
html.wm-lock, html.wm-lock body { overflow: hidden; }
.wall-hint { margin-top: 10px; padding-left: 4px; color: var(--muted); font-size: .82rem; }

.extra { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.extra[hidden] { display: none; }

/* wall view: banner + auction on top, the map and the latest spots beside it (same two columns, so the edges line up) */
.wall-block { max-width: 1680px; padding-left: 14px; padding-right: 14px; }
.wall-block > .kicker, .wall-block > h2, .wall-block > .lede { padding-left: 10px; }
.wall-more { margin-top: 14px; padding-left: 10px; }
.wall-more .cta { width: auto; }
.wv-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.wv-feed { display: flex; flex-direction: column; min-height: 0; max-height: calc(min(80vh, 860px) + 42px); border: 1px solid var(--line); border-radius: 16px; background: rgba(14,14,18,.72); padding: 14px; }
.wv-feed h2 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.wv-feed ul { list-style: none; padding: 0; margin: 0; overflow-y: auto; display: grid; gap: 8px; align-content: start; scrollbar-width: thin; }
.wv-feed li { display: flex; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; }
.wv-feed li:hover { background: rgba(255,255,255,.08); }
.wv-feed li.silver { border-color: rgba(199,204,212,.6); }
.wv-feed li.gold { border-color: var(--gold); box-shadow: 0 0 24px rgba(255,200,61,.14); }
.wv-feed li.fresh { border-color: var(--red-hi); animation: in .3s ease; }
.wv-feed .feed-body { min-width: 0; flex: 1; }
.wv-feed .row { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: .92rem; }
.wv-feed .row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-feed .row b { color: var(--red-hi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wv-feed .msg { margin-top: 2px; color: #d4d4d8; font-size: .85rem; overflow-wrap: anywhere; }
.wv-feed .empty { color: var(--muted); font-size: .9rem; }

/* the banner: always 4:1 (1200 x 300), so what the advertiser uploads is exactly what shows, on any screen */
.wv-ad { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; margin: 0 0 14px; align-items: start; }
.ad-slot { min-width: 0; }
.ad-art { display: block; width: 100%; aspect-ratio: 4 / 1; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #111116; color: inherit; text-decoration: none; }
.ad-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-type { display: flex; flex-direction: column; justify-content: center; gap: .3em; height: 100%; padding: 0 6%; background: radial-gradient(120% 140% at 0% 100%, rgba(232,33,39,.45), transparent 60%), linear-gradient(90deg, #1a0d0f, #101015); container-type: inline-size; }
.ad-type b { font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: clamp(1rem, 7cqi, 4.2rem); line-height: 1; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-type span { color: #e4e4e7; font-size: clamp(.62rem, 2.6cqi, 1.5rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-free { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed rgba(255,255,255,.22); background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px); font: inherit; cursor: pointer; text-align: center; padding: 8px; }
.ad-free:not(:disabled):hover { border-color: var(--red-hi); }
.ad-free:disabled { cursor: default; }
.ad-free b { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(1rem, 2.6vw, 2rem); }
.ad-free span { color: var(--muted); font-size: clamp(.72rem, 1.2vw, .95rem); }
.ad-meta { margin-top: 6px; color: var(--muted); font-size: .78rem; }
.ad-tag { display: inline-block; padding: 1px 7px; border: 1px solid var(--line); border-radius: 99px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.ad-auction { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14,14,18,.72); }
.ad-eyebrow { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-hi); font-weight: 700; }
.ad-lead { display: grid; gap: 2px; }
.ad-lead b { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ad-lead span { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.ad-clock { font-size: .85rem; color: var(--muted); }
.ad-clock span { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-bid { height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.ad-bid:hover:not(:disabled) { background: var(--red-hi); }
.ad-bid:disabled { background: rgba(255,255,255,.1); color: var(--muted); cursor: default; }
.ad-fine { color: #8b8b95; font-size: .75rem; line-height: 1.45; }

.bid-dialog { margin: auto; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #101015; color: var(--ink); }
.bid-dialog::backdrop { background: rgba(0,0,0,.7); }
.bd-form { display: grid; gap: 10px; padding: 20px; }
.bd-form h2 { font-family: var(--display); font-stretch: 112%; font-size: 1.5rem; margin: 0; }
.bd-lede, .bd-min { color: var(--muted); font-size: .9rem; margin: 0; }
.bd-form label { display: grid; gap: 4px; font-size: .85rem; color: #d4d4d8; }
.bd-form input:not([type=checkbox]) { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.45); color: #fff; font: inherit; }
.bd-form input[type=file] { height: auto; padding: 8px; }
.bd-preview { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: end; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.bd-preview figure { margin: 0; display: grid; gap: 6px; }
.bd-preview figcaption { color: var(--muted); font-size: .72rem; }
.bd-screen { aspect-ratio: 4 / 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #111116; }
.bd-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-phone { width: 150px; justify-self: end; }
.bd-tip { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.bd-rules { margin: 0; padding-left: 18px; color: var(--muted); font-size: .8rem; line-height: 1.5; display: grid; gap: 4px; }
.bd-check { display: flex !important; gap: 8px; align-items: flex-start; }
.bd-check a { color: var(--ink); }
.bd-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.bd-actions button { height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.bd-actions .bd-go { background: var(--red); border-color: var(--red); }
.bd-actions button:disabled { opacity: .6; }
/* the /wall page */
.wall-page .wp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; padding: 0 4px 10px; }
.wall-page .wp-head .h1like { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 2px 0 0; }
.wall-page .wp-head .cta { width: auto; margin: 0; height: 44px; padding: 0 20px; font-size: .95rem; }
.wall-page main { max-width: none; margin: 0; padding: 74px 14px 20px; }
.wall-page .wallmap { height: max(460px, calc(100svh - 230px)); }
.wall-page .wv-feed { max-height: calc(max(460px, calc(100svh - 230px)) + 42px); }
@media (max-width: 900px) {
  .wv-main, .wv-ad { grid-template-columns: 1fr; }
  .wv-feed { max-height: 340px; }
  .wallmap, .wall-page .wallmap { height: 68vh; min-height: 360px; }
  .ad-lead b { font-size: 1.8rem; }
  .ad-auction { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 12px 14px; }
  .ad-auction > .ad-eyebrow, .ad-auction > .ad-fine { grid-column: 1 / -1; }
  .ad-auction > .ad-lead { grid-column: 1; }
  .ad-auction > .ad-clock { grid-column: 1; }
  .ad-auction > .ad-bid { grid-column: 2; grid-row: 2 / span 2; }
}
@media (max-width: 520px) {
  .bd-preview { grid-template-columns: 1fr; }
  .bd-phone { justify-self: start; }
  .wm-bar input { flex: 1 1 140px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .wv-feed li.fresh, #feed li.fresh { animation: none; } }

.wall-stats [hidden] { display: none; }
