/* Amdavad Run. Ivory type and old gold on deep indigo glass; the painted city does the shouting. */
:root { --ink: #0c1330; --glass: rgba(12, 19, 48, .58); --line: rgba(240, 210, 140, .5); --gold: #f0c876; --ivory: #fbf5e6; --dim: rgba(251, 245, 230, .74); --red: #e2574c; --green: #7ad6a0;
  --serif: "Rasa", Georgia, serif; --sans: "Hind Vadodara", system-ui, sans-serif; --display: "Shrikhand", "Rasa", serif;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--ivory); font: 15px/1.4 var(--sans); overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#swipe { position: fixed; inset: 0; touch-action: none; z-index: 1; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; padding: 0; }
[hidden] { display: none !important; }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(4, 8, 28, .3); }
.coin { display: inline-block; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b8, #f5c33a 55%, #c98a12); box-shadow: 0 0 0 1.5px rgba(120, 70, 0, .5) inset; vertical-align: -2px; }

/* ---------- in the run ---------- */
#hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#hud > * { position: absolute; }
#b-pause { pointer-events: auto; top: calc(12px + var(--st)); left: calc(12px + var(--sl)); width: 42px; height: 42px; border-radius: 50%; font-size: 15px; }
#score { top: calc(8px + var(--st)); left: 50%; transform: translateX(-50%); text-align: center; text-shadow: 0 2px 0 rgba(12, 19, 48, .55), 0 6px 22px rgba(4, 8, 28, .5); white-space: nowrap; }
#score b { font: 700 clamp(34px, 9vw, 52px)/1 var(--serif); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
#score span { display: inline-block; margin-left: 6px; font: 700 15px var(--sans); color: var(--ink); background: var(--gold); border-radius: 999px; padding: 2px 9px 0; vertical-align: 10px; text-shadow: none; }
#purse { top: calc(12px + var(--st)); right: calc(12px + var(--sr)); border-radius: 999px; padding: 8px 14px 6px 11px; display: flex; gap: 7px; align-items: center; }
#purse b { font: 600 17px/1 var(--serif); font-variant-numeric: tabular-nums; }
#chip { top: calc(64px + var(--st) + clamp(0px, 2.5vw, 12px)); left: 50%; transform: translateX(-50%); border-radius: 999px; padding: 5px 16px 4px; font-size: 12.5px; color: var(--dim); max-width: 86vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chip-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform .3s; }
#powers { left: calc(12px + var(--sl)); bottom: calc(18px + var(--sb)); display: grid; gap: 6px; }
.pw { position: relative; border-radius: 12px; padding: 6px 12px 5px; font-size: 13px; font-weight: 600; overflow: hidden; min-width: 104px; }
.pw i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: left; }
.pw.fare { border-color: rgba(226, 87, 76, .8); } .pw.cop i { background: var(--red); } .pw.cop { color: #ffd0cb; }
#where { top: 21%; left: 50%; transform: translate(-50%, -8px); opacity: 0; border-radius: 18px; padding: 10px 22px 7px; text-align: center; }
#where b { display: block; font: 600 22px/1.1 var(--serif); } #where span { font-size: 15px; color: var(--gold); }
#where.in { animation: where 2.6s ease both; } @keyframes where { 0% { opacity: 0; transform: translate(-50%, -14px); } 12%, 78% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }
#pop { top: 34%; left: 50%; transform: translate(-50%, -50%); font: 400 clamp(30px, 9vw, 54px)/1 var(--display); color: var(--gold); text-shadow: 0 3px 0 var(--ink), 0 10px 30px rgba(4, 8, 28, .55); opacity: 0; white-space: nowrap; }
#pop.go { animation: pop 1s cubic-bezier(.2, 1.3, .4, 1) both; } @keyframes pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5) rotate(-5deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.06) rotate(1deg); } 70% { opacity: 1; transform: translate(-50%, -54%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
#toast { left: 50%; bottom: calc(96px + var(--sb)); transform: translateX(-50%); border-radius: 16px; padding: 8px 18px 6px; font: 500 16px/1.3 var(--serif); text-align: center; max-width: 88vw; width: max-content; }
#toast.in { animation: up .25s ease both; } @keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } }
#cardtoast { right: calc(12px + var(--sr)); top: calc(110px + var(--st)); border-radius: 16px; padding: 7px 14px 7px 7px; display: flex; gap: 10px; align-items: center; max-width: 76vw; }
#cardtoast img { width: 48px; height: 64px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }
#cardtoast small { display: block; font-size: 11.5px; color: var(--gold); } #cardtoast b { display: block; font: 600 16px/1.1 var(--serif); } #cardtoast span { font-size: 13px; color: var(--dim); }
#cardtoast.in { animation: slide .35s ease both; } @keyframes slide { from { opacity: 0; transform: translateX(20px); } }

/* ---------- home ---------- */
#home { position: fixed; inset: 0; z-index: 10; display: grid; align-items: end; }
#home .art { position: absolute; inset: 0; background: #16204a url("../assets/art/keyart_portrait.webp") center 30% / cover no-repeat; }
#home .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 19, 48, .55) 0%, rgba(12, 19, 48, 0) 26%, rgba(12, 19, 48, 0) 46%, rgba(12, 19, 48, .82) 78%, rgba(12, 19, 48, .96) 100%); }
.home-in { position: relative; padding: 0 22px calc(20px + var(--sb)); text-align: center; max-width: 520px; width: 100%; margin: 0 auto; }
#home .gu, #boot .gu { margin: 0; font: 400 clamp(46px, 14vw, 84px)/1.05 var(--display); color: var(--gold); text-shadow: 0 3px 0 var(--ink), 0 12px 40px rgba(4, 8, 28, .6); }
#home h1, #boot h1 { margin: 2px 0 8px; font: 600 clamp(18px, 4.6vw, 24px)/1 var(--serif); letter-spacing: .34em; padding-left: .34em; text-shadow: 0 2px 10px rgba(4, 8, 28, .7); }
.best { margin: 0 0 14px; font-size: 14px; color: var(--dim); } .best b { color: var(--ivory); font: 600 16px var(--serif); } .best span { opacity: .5; margin: 0 6px; }
.cta { width: 100%; height: 60px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 700 22px var(--serif); letter-spacing: .02em; box-shadow: 0 10px 30px rgba(240, 200, 118, .28), 0 2px 0 rgba(255, 255, 255, .5) inset; }
.cta:active, .tile:active, .round:active { transform: scale(.97); }
#home nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 6px; }
.tile { border-radius: 16px; padding: 11px 6px 8px; display: grid; gap: 1px; } .tile b { font: 600 16px var(--serif); } .tile span { font-size: 12px; color: var(--gold); }
.link { margin-top: 6px; font-size: 14px; color: var(--dim); padding: 8px 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (orientation: landscape) { #home .art { background-image: url("../assets/art/keyart_land.webp"); background-position: center; } #home { align-items: center; justify-items: end; } .home-in { margin: 0 4vw 0 0; max-width: 400px; } #home .art::after { background: linear-gradient(90deg, rgba(12, 19, 48, 0) 30%, rgba(12, 19, 48, .9) 78%); } }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(6, 10, 30, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; padding: calc(14px + var(--st)) 14px calc(14px + var(--sb)); }
.panel { position: relative; width: min(460px, 100%); max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; background: linear-gradient(180deg, #162150, #0f1738); border: 1px solid var(--line); border-radius: 26px; padding: 22px 20px 18px; box-shadow: 0 30px 90px rgba(2, 4, 18, .65); text-align: center; }
.panel.wide { width: min(760px, 100%); } .panel.narrow { width: min(380px, 100%); }
.panel h2 { margin: 0 34px 6px; font: 600 26px/1.1 var(--serif); } .panel p { margin: 0 0 12px; font-size: 14px; color: var(--dim); }
.x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; font-size: 17px; color: var(--dim); }
.lead { font: 500 17px/1.3 var(--serif) !important; color: var(--gold) !important; }
.big b { display: block; font: 700 clamp(54px, 16vw, 78px)/1 var(--serif); font-variant-numeric: tabular-nums; } .big span { display: inline-block; margin-top: 4px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 3px 12px 1px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; } .stats div { border: 1px solid rgba(240, 210, 140, .25); border-radius: 14px; padding: 9px 4px 6px; } .stats b { display: block; font: 600 20px/1.1 var(--serif); } .stats span { font-size: 12px; color: var(--dim); }
.mlist { display: grid; gap: 8px; margin: 4px 0 16px; text-align: left; }
.m { position: relative; display: flex; gap: 10px; justify-content: space-between; align-items: baseline; border: 1px solid rgba(240, 210, 140, .25); border-radius: 14px; padding: 10px 14px 9px; overflow: hidden; font-size: 14px; }
.m b { font: 600 15px var(--serif); color: var(--gold); white-space: nowrap; } .m i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: left; } .m.done { color: var(--dim); } .m.done b { color: var(--green); } .m.done i { background: var(--green); }
#o-cards p { margin: 4px 0 8px; color: var(--gold); font-weight: 600; } #o-cards > div { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
figure { margin: 0; } figure img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); } figcaption { font-size: 12px; margin-top: 4px; color: var(--dim); line-height: 1.2; }
#o-cards figure { width: 84px; }
#a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 10px; text-align: center; } #a-grid figure.no img { filter: brightness(.22) saturate(0) blur(1.5px); } #a-grid figure.no figcaption { opacity: .5; }
.cardbig img { width: 100%; border-radius: 18px; border: 1px solid var(--line); margin-bottom: 12px; } .cardbig .gu { color: var(--gold) !important; font-size: 17px !important; margin-bottom: 6px !important; } .cardbig p:last-child { font-size: 15px; color: var(--ivory); margin: 0; }
.skin { display: flex; gap: 12px; align-items: center; text-align: left; border-top: 1px solid rgba(240, 210, 140, .22); padding: 11px 0; } .skin i { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); flex: none; } .skin div { flex: 1; } .skin b { display: block; font: 600 17px var(--serif); } .skin span { font-size: 13px; color: var(--dim); }
.skin button { width: 70px; height: 42px; border-radius: 999px; background: var(--ivory); color: var(--ink); font-weight: 700; } .skin button:disabled { opacity: .35; } .skin.on button { background: transparent; color: var(--green); border: 1px solid var(--line); }
.row { display: block; width: 100%; text-align: left; padding: 13px 2px 11px; border-top: 1px solid rgba(240, 210, 140, .22) !important; font-weight: 500; color: var(--ivory); text-decoration: none; } .fine { margin-top: 12px !important; font-size: 13px !important; text-align: left; }

/* ---------- loading ---------- */
#boot { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 30%, #1d2c64 0%, #0a1026 72%); transition: opacity .5s; }
#boot.gone { opacity: 0; pointer-events: none; } .boot-in { text-align: center; padding: 24px; width: min(360px, 86vw); }
.bar { height: 4px; border-radius: 2px; background: rgba(251, 245, 230, .14); overflow: hidden; margin: 18px 0 10px; } .bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform .25s; }
#boot-status { margin: 0; font-size: 13.5px; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { #pop.go, #where.in { animation-duration: .01s; } }

/* ---------- Full Jalso: loud poster type, ink outlines, money in green, respect in gold ---------- */
:root { --poster: "Anton", "Rasa", Impact, sans-serif; --cash: #a6ef6a; }
.ink { -webkit-text-stroke: 5px #120c1e; paint-order: stroke fill; }
#score b { font: 400 clamp(38px, 10vw, 58px)/1 var(--poster); letter-spacing: .02em; -webkit-text-stroke: 5px #120c1e; paint-order: stroke fill; text-shadow: 0 4px 0 #120c1e; }
#score span { font: 400 16px var(--poster); letter-spacing: .04em; padding: 3px 9px 1px; border: 2px solid #120c1e; vertical-align: 14px; }
#purse { top: calc(10px + var(--st)); right: calc(12px + var(--sr)); text-align: right; display: block; }
#purse b { font: 400 clamp(26px, 7vw, 34px)/1 var(--poster); color: var(--cash); -webkit-text-stroke: 5px #120c1e; paint-order: stroke fill; text-shadow: 0 3px 0 #120c1e; letter-spacing: .02em; }
#wanted { display: block; font-size: 17px; letter-spacing: 2px; color: #fff; -webkit-text-stroke: 3px #120c1e; paint-order: stroke fill; min-height: 20px; } #wanted.on { animation: blink .5s steps(2) infinite; } @keyframes blink { 50% { color: #ff4b3a; } }
#chip { border-radius: 6px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .72); color: var(--ivory); font-size: 12.5px; padding: 5px 12px 3px; box-shadow: 3px 3px 0 #120c1e; -webkit-backdrop-filter: none; backdrop-filter: none; }
#where { top: auto; bottom: calc(22px + var(--sb)); left: auto; right: calc(14px + var(--sr)); transform: none; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-align: right; padding: 0; }
#where b { font: 400 clamp(28px, 8vw, 44px)/1 var(--poster); font-style: italic; text-transform: uppercase; color: #fff; -webkit-text-stroke: 5px #120c1e; paint-order: stroke fill; text-shadow: 0 4px 0 #120c1e; letter-spacing: .02em; }
#where span { display: block; font: 400 20px var(--display); color: var(--gold); -webkit-text-stroke: 4px #120c1e; paint-order: stroke fill; }
#where.in { animation: where2 3s ease both; } @keyframes where2 { 0% { opacity: 0; transform: translateX(30px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
#pop { font: 400 clamp(34px, 10vw, 60px)/1 var(--poster); color: var(--gold); -webkit-text-stroke: 6px #120c1e; paint-order: stroke fill; text-shadow: 0 5px 0 #120c1e; letter-spacing: .02em; }
#passed { top: 27%; left: 50%; transform: translate(-50%, -50%); text-align: center; opacity: 0; white-space: nowrap; }
#passed b { display: block; font: 400 clamp(36px, 11vw, 64px)/1 var(--poster); color: var(--gold); -webkit-text-stroke: 6px #120c1e; paint-order: stroke fill; text-shadow: 0 5px 0 #120c1e; letter-spacing: .03em; }
#passed span { display: inline-block; margin-top: 6px; font: 400 20px var(--poster); color: #fff; -webkit-text-stroke: 4px #120c1e; paint-order: stroke fill; letter-spacing: .04em; text-transform: uppercase; }
#passed.go { animation: passed 2.4s ease both; } @keyframes passed { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } 10%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
#toast { border-radius: 6px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .8); box-shadow: 3px 3px 0 #120c1e; -webkit-backdrop-filter: none; backdrop-filter: none; font: 500 15.5px/1.3 var(--sans); }
#b-pause { border-radius: 8px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .72); box-shadow: 3px 3px 0 #120c1e; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pw { border-radius: 6px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .76); box-shadow: 3px 3px 0 #120c1e; -webkit-backdrop-filter: none; backdrop-filter: none; text-transform: uppercase; font: 400 14px var(--poster); letter-spacing: .05em; }
#cardtoast { border-radius: 8px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .82); box-shadow: 3px 3px 0 #120c1e; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* home */
#home .gu { font-size: clamp(34px, 10vw, 58px); -webkit-text-stroke: 5px #120c1e; paint-order: stroke fill; text-shadow: 0 4px 0 #120c1e; margin-bottom: -6px; position: relative; z-index: 1; transform: rotate(-4deg); display: inline-block; }
#home h1, #boot h1 { font: 400 clamp(64px, 21vw, 118px)/.9 var(--poster); letter-spacing: .01em; padding: 0; margin: 0 0 6px; color: #fff; -webkit-text-stroke: 8px #120c1e; paint-order: stroke fill; text-shadow: 0 7px 0 #120c1e, 0 16px 40px rgba(4, 8, 28, .6); transform: skewX(-6deg); }
.tag { margin: 0 0 10px; font: 400 17px var(--poster); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); -webkit-text-stroke: 4px #120c1e; paint-order: stroke fill; } .tag span { margin: 0 4px; }
.best b { font: 400 17px var(--poster); letter-spacing: .03em; }
.cta { border-radius: 10px; border: 3px solid #120c1e; background: var(--gold); font: 400 26px var(--poster); letter-spacing: .06em; box-shadow: 5px 5px 0 #120c1e; height: 62px; }
.tile { border-radius: 10px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .78); box-shadow: 4px 4px 0 #120c1e; -webkit-backdrop-filter: none; backdrop-filter: none; } .tile b { font: 400 18px var(--poster); letter-spacing: .08em; }
/* sheets */
.panel { border-radius: 14px; border: 3px solid #120c1e; background: linear-gradient(180deg, #1b2760, #101842); box-shadow: 8px 8px 0 #120c1e; }
.panel h2 { font: 400 30px/1 var(--poster); letter-spacing: .05em; text-transform: uppercase; }
#o-title { margin: 0 0 4px; font: 400 clamp(52px, 16vw, 84px)/1 var(--poster); color: #ff4b3a; -webkit-text-stroke: 7px #120c1e; paint-order: stroke fill; text-shadow: 0 6px 0 #120c1e; letter-spacing: .02em; transform: rotate(-3deg); } #o-title.calm { color: var(--gold); }
.big b { font: 400 clamp(50px, 15vw, 72px)/1 var(--poster); letter-spacing: .02em; } .big span { border-radius: 6px; border: 2px solid #120c1e; font: 400 14px var(--poster); letter-spacing: .08em; text-transform: uppercase; }
.stats div { border-radius: 8px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .5); } .stats b { font: 400 22px var(--poster); letter-spacing: .03em; } .stats div:nth-child(2) b { color: var(--cash); } .stats span { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.m { border-radius: 8px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .5); } .m strong { display: block; font: 400 15px var(--poster); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); } .m b { font: 400 16px var(--poster); }
.skin button, .task button { border-radius: 8px; border: 2px solid #120c1e; font: 400 16px var(--poster); letter-spacing: .05em; }
#boot .gu { font-size: clamp(30px, 9vw, 50px); transform: rotate(-4deg); display: inline-block; -webkit-text-stroke: 5px #120c1e; paint-order: stroke fill; }

#home .art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

/* ---------- Gujarati first: display lines in Shrikhand, which carries the script with the same swagger ---------- */
body.gu .cta, body.gu .tile b, body.gu .panel h2, body.gu #o-title, body.gu #pop, body.gu #passed b, body.gu #passed span, body.gu #where b, body.gu .m strong, body.gu .tag, body.gu .pw, body.gu .big span, body.gu .skin button { font-family: var(--display); letter-spacing: 0; text-transform: none; font-style: normal; }
body.gu .tag { font-size: 19px; -webkit-text-stroke: 4px #120c1e; } body.gu .cta { font-size: 27px; } body.gu .m strong { font-size: 17px; } body.gu #where span { font: 400 16px var(--poster); color: #fff; letter-spacing: .08em; text-transform: uppercase; }
body.gu #chip, body.gu #toast { font-family: var(--sans); font-size: 14.5px; }
.lb { margin: 0 !important; opacity: 1 !important; }
.mute { position: absolute; z-index: 2; top: calc(12px + var(--st)); right: calc(12px + var(--sr)); width: 44px; height: 44px; border-radius: 8px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .72); box-shadow: 3px 3px 0 #120c1e; font-size: 19px; }
.hornbtn { pointer-events: auto; position: absolute; right: calc(14px + var(--sr)); bottom: calc(86px + var(--sb)); width: 58px; height: 58px; border-radius: 50%; border: 3px solid #120c1e; background: var(--gold); box-shadow: 4px 4px 0 #120c1e; font-size: 24px; }
.hornbtn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #120c1e; }

/* ---------- lives, combo, countdown, first-run hints, films, saving ---------- */
#home p.gu, #boot p.gu { display: none; } body.gu #home p.gu, body.gu #boot p.gu { display: inline-block; }
#score small { font: 400 20px var(--poster); margin-left: 3px; -webkit-text-stroke: 4px #120c1e; paint-order: stroke fill; }
#lives { top: calc(16px + var(--st)); left: calc(64px + var(--sl)); font-size: 21px; letter-spacing: 1px; color: #ff4b5a; -webkit-text-stroke: 3px #120c1e; paint-order: stroke fill; white-space: nowrap; }
#lives.hit { animation: hit .5s ease; } @keyframes hit { 0% { transform: scale(1.5); } 30% { transform: scale(.9) rotate(-6deg); } 100% { transform: none; } }
#combo { top: calc(118px + var(--st)); left: 50%; transform: translateX(-50%); font: 400 19px var(--poster); letter-spacing: .06em; text-transform: uppercase; color: #fff; -webkit-text-stroke: 4px #120c1e; paint-order: stroke fill; opacity: 0; transition: opacity .2s; white-space: nowrap; }
#combo.on { opacity: 1; } #combo.bump { animation: cb .25s ease; } @keyframes cb { 0% { transform: translateX(-50%) scale(1.35); } 100% { transform: translateX(-50%) scale(1); } }
#count { top: 42%; left: 50%; transform: translate(-50%, -50%); font: 400 clamp(84px, 30vw, 170px)/1 var(--poster); color: #fff; -webkit-text-stroke: 10px #120c1e; paint-order: stroke fill; text-shadow: 0 8px 0 #120c1e; opacity: 0; white-space: nowrap; }
#count.go { animation: cnt .6s ease both; } @keyframes cnt { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
#hint { top: 40%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: min(86vw, 420px); padding: 16px 18px 14px; border-radius: 12px; border: 3px solid #120c1e; background: rgba(18, 12, 30, .86); box-shadow: 6px 6px 0 #120c1e; }
#hint b { display: block; font: 400 clamp(56px, 18vw, 92px)/1 var(--poster); color: var(--gold); animation: nudge .9s ease-in-out infinite; } #hint span { display: block; margin-top: 8px; font: 500 18px/1.3 var(--sans); }
@keyframes nudge { 50% { transform: scale(1.12); } }
.cta.go { background: var(--cash); margin-bottom: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; height: 68px; } .cta.go small { font: 500 13px var(--sans); letter-spacing: .04em; margin-top: 3px; }
.cta.second { background: var(--ivory); height: 50px; font-size: 20px; } .cta.small { height: 46px; font-size: 18px; margin: 8px 0 4px; }
.savednote { margin: 2px 0 0; font-size: 12px; color: var(--dim); opacity: .7; transition: color .3s, opacity .3s; } .savednote.on { color: var(--cash); opacity: 1; }
.rec { margin: 8px 0 0 !important; } .big small { font-size: .45em; }
.panel h3 { margin: 14px 0 2px; text-align: left; font: 400 15px var(--poster); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.skin i.lv { display: grid; place-items: center; font-style: normal; font-size: 11px; letter-spacing: 1px; color: var(--gold); background: rgba(18, 12, 30, .5); }
.row.danger { color: #ff9a8f; } #s-code { width: 100%; margin-top: 10px; border-radius: 8px; border: 2px solid #120c1e; background: rgba(8, 10, 28, .7); color: var(--ivory); font: 12px/1.4 ui-monospace, Menlo, monospace; padding: 10px; -webkit-user-select: text; user-select: text; word-break: break-all; resize: none; }
#revive .bar { margin: 6px 0 16px; height: 6px; } #revive .bar i { transform: scaleX(1); }
#scene { position: fixed; inset: 0; z-index: 70; background: #05060f; } #scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-t { position: absolute; left: 0; right: 0; bottom: calc(40px + var(--sb)); text-align: center; pointer-events: none; } .scene-t b { font: 400 clamp(36px, 11vw, 70px)/1 var(--poster); font-style: italic; text-transform: uppercase; color: #fff; -webkit-text-stroke: 7px #120c1e; paint-order: stroke fill; text-shadow: 0 5px 0 #120c1e; }
#sc-skip { position: absolute; top: calc(14px + var(--st)); right: calc(14px + var(--sr)); padding: 10px 16px 8px; border-radius: 8px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .72); font: 400 15px var(--poster); letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { #count.go, #hint b, #combo.bump, #lives.hit { animation-duration: .01s; } }
#lives { top: calc(50px + var(--st)); left: auto; right: calc(12px + var(--sr)); font-size: 17px; letter-spacing: 0; }
#wanted { position: fixed; top: calc(62px + var(--st)); left: calc(12px + var(--sl)); }
#chip { top: calc(84px + var(--st) + clamp(0px, 2.5vw, 12px)); } #combo { top: calc(132px + var(--st)); }
#count.word { font-size: clamp(54px, 17vw, 110px); -webkit-text-stroke-width: 8px; }
#cardtoast { top: calc(160px + var(--st)); }

/* ---------- a soft dark edge and warm top light over the 3D view; streaks when the rocket is lit ---------- */
#fx { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 85% at 50% 46%, rgba(10, 6, 30, 0) 52%, rgba(10, 6, 30, .2) 78%, rgba(10, 6, 30, .46) 100%), linear-gradient(180deg, rgba(255, 214, 150, .1) 0%, rgba(255, 214, 150, 0) 30%); }
#fx::after { content: ""; position: absolute; inset: -20%; opacity: 0; transition: opacity .25s; background: repeating-conic-gradient(from 0deg at 50% 44%, rgba(255, 255, 255, 0) 0deg 5deg, rgba(255, 244, 214, .5) 5.4deg 5.9deg, rgba(255, 255, 255, 0) 6.3deg 11deg); -webkit-mask-image: radial-gradient(closest-side at 50% 50%, transparent 46%, #000 90%); mask-image: radial-gradient(closest-side at 50% 50%, transparent 46%, #000 90%); }
body.rocket #fx::after { opacity: .55; }
.copy { margin: 6px 0 0; font-size: 11.5px; letter-spacing: .04em; color: var(--dim); opacity: .75; }

/* ---------- scoreboard ---------- */
#home nav { grid-template-columns: repeat(4, 1fr); gap: 8px; } .tile b { font-size: 16px !important; letter-spacing: .05em !important; } .tile span { font-size: 11px; }
.cta.day { background: #7ad6a0; height: 54px; margin-top: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-size: 21px; } .cta.day small { font: 500 12px var(--sans); letter-spacing: .02em; margin-top: 3px; }
.hrank { margin: -4px 0 6px; font: 400 15px var(--poster); letter-spacing: .06em; color: #fff; -webkit-text-stroke: 3px #120c1e; paint-order: stroke fill; text-transform: uppercase; min-height: 18px; }
#o-board { margin: 10px 0 4px; } .bnote { margin: 6px 0 !important; font-size: 13.5px !important; color: var(--dim); } .bnote b { color: var(--ivory); }
.bname label { display: block; font: 400 17px var(--poster); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.brow { display: flex; gap: 8px; } .brow input { flex: 1; min-width: 0; height: 48px; border-radius: 8px; border: 2px solid #120c1e; background: rgba(251, 245, 230, .95); color: #120c1e; font: 600 18px var(--sans); padding: 0 12px; -webkit-user-select: text; user-select: text; outline: none; } .brow input:focus { box-shadow: 0 0 0 3px var(--gold); }
.brow .cta.small { width: 96px; height: 48px; margin: 0; font-size: 19px; }
.berr { color: #ffb0a6 !important; font-size: 13.5px !important; margin: 6px 0 0 !important; }
.brank { margin: 2px 0 !important; font: 400 18px var(--poster) !important; letter-spacing: .05em; text-transform: uppercase; color: var(--ivory) !important; } .brank b { font-size: 30px; color: var(--gold); -webkit-text-stroke: 4px #120c1e; paint-order: stroke fill; } .brank.day b { color: #7ad6a0; }
.linkish { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; padding: 4px 2px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 10px; } .tab { height: 40px; border-radius: 8px; border: 2px solid #120c1e; background: rgba(18, 12, 30, .5); font: 400 16px var(--poster); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); } .tab.on { background: var(--gold); color: #120c1e; box-shadow: 3px 3px 0 #120c1e; }
.blist { display: grid; gap: 6px; text-align: left; max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 2px 2px 6px; margin-bottom: 8px; }
.br { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; border: 2px solid #120c1e; background: rgba(18, 12, 30, .5); border-radius: 8px; padding: 8px 12px 7px; }
.br b { font: 400 18px var(--poster); color: var(--dim); text-align: center; } .br span { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .br small { display: block; font-weight: 400; font-size: 11.5px; color: var(--dim); } .br i { font: 400 17px var(--poster); font-style: normal; letter-spacing: .03em; }
.br.top1 b { color: #ffd23a; } .br.top2 b { color: #e6e6f0; } .br.top3 b { color: #e0a06a; } .br.me { background: rgba(240, 200, 118, .22); border-color: var(--gold); }
.pw.rv { border-color: #e2574c; } .pw.rv.me { border-color: var(--gold); color: var(--gold); } .pw.rv.day { border-color: #7ad6a0; }
.big b #o-dist { display: inline; background: none; border: 0; box-shadow: none; padding: 0; margin: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; vertical-align: baseline; border-radius: 0; }

/* ---------- Mahudi, sharing, the rare find ---------- */
.cta.share { background: #5ad8ff; margin-top: 10px; } .sel { -webkit-user-select: all; user-select: all; word-break: break-all; color: var(--ivory); }
.mh { display: inline-block; margin-left: 6px; padding: 1px 5px 0; border-radius: 4px; background: #f08a24; color: #120c1e; font: 400 10px var(--poster); letter-spacing: .06em; font-style: normal; vertical-align: 2px; }
#challenge .big b { font: 400 clamp(54px, 16vw, 78px)/1 var(--poster); } #challenge #ch-dist { all: unset; } #challenge .lead b { color: #5ad8ff; }
body.high #view { animation: high 1.6s linear infinite; } @keyframes high { 0% { filter: hue-rotate(0deg) saturate(1.7); } 50% { filter: hue-rotate(180deg) saturate(2.2) contrast(1.1); } 100% { filter: hue-rotate(360deg) saturate(1.7); } }
@media (prefers-reduced-motion: reduce) { body.high #view { animation: none; filter: saturate(1.8); } }
