:root {
  --bg: #0b1020;
  --bg2: #141b34;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --mute: #9aa6c7;
  --good: #34d399;
  --bad: #fb7185;
  --frank: #4f8bff;
  --chung: #ff5c7a;
  --alex: #ffb020;
  --r: 22px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font);
  background: radial-gradient(1200px 700px at 80% -10%, #243063 0%, transparent 60%), radial-gradient(900px 600px at -10% 10%, #3b1d4f 0%, transparent 55%), var(--bg);
  background-attachment: fixed; overflow-x: hidden;
}
body.race-open { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
code { background: rgba(255,255,255,.1); padding: .1em .4em; border-radius: 6px; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* floating blobs */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .28; animation: drift 26s ease-in-out infinite alternate; }
.bg i:nth-child(1) { background: var(--frank); left: -12vmax; top: 8vh; }
.bg i:nth-child(2) { background: var(--chung); right: -14vmax; top: 30vh; animation-delay: -9s; }
.bg i:nth-child(3) { background: var(--alex); left: 22vw; bottom: -26vmax; animation-delay: -16s; }
@keyframes drift { to { transform: translate(6vmax, -5vmax) scale(1.15); } }

/* hero */
.hero { text-align: center; padding: clamp(28px, 6vw, 64px) 18px 10px; max-width: 980px; margin: 0 auto; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--alex); background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.3); padding: 6px 12px; border-radius: 99px; }
h1 { margin: 14px 0 6px; font-size: clamp(34px, 7vw, 68px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; cursor: pointer; user-select: none; }
h1 span { background: linear-gradient(90deg, var(--frank), #c084fc 45%, var(--chung) 70%, var(--alex)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sub { color: var(--mute); font-size: clamp(15px, 2.4vw, 19px); margin: 6px 0 20px; }
.dotsep { opacity: .5; margin: 0 4px; }
.fresh { color: var(--good); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.btn { border: 1px solid var(--line); background: rgba(255,255,255,.08); border-radius: 14px; padding: 8px 14px; font-weight: 700; transition: transform .15s, background .15s, box-shadow .2s; }
.btn:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.big { padding: 13px 22px; font-size: 16px; border-radius: 16px; }
.btn.ghost { background: transparent; }
.btn.glow { background: linear-gradient(135deg, var(--frank), #8b5cf6 55%, var(--chung)); border: 0; box-shadow: 0 8px 30px rgba(139,92,246,.45); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 8px 44px rgba(255,92,122,.55); transform: scale(1.035); } }
#refresh.spin { opacity: .6; }
#refresh.spin::first-letter { display: inline-block; animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.linklike { background: none; border: 0; color: var(--mute); text-decoration: underline; padding: 6px; }

main { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 22px; }
.error { text-align: center; padding: 24px; border: 1px dashed var(--bad); border-radius: var(--r); }

/* player cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 18px; }
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r); padding: 18px 18px 16px; backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: hidden; }
.card::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%); pointer-events: none; }
[data-reveal] { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s var(--delay, 0ms), transform .7s cubic-bezier(.2,.8,.2,1) var(--delay, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
.medal { position: absolute; right: 14px; top: 10px; font-size: 30px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); animation: bob 3s ease-in-out infinite; z-index: 2; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(6deg); } }
.rigbox { height: 230px; display: flex; justify-content: center; align-items: flex-end; cursor: pointer; position: relative; }
.rigbox .rig { height: 230px; width: 164px; flex: none; overflow: visible; filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); transition: transform .2s; }
.rigbox:hover .rig { transform: scale(1.04) rotate(-1deg); }
.who-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.who-row h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.badges-mini { font-size: 22px; letter-spacing: 2px; }
.big { display: flex; align-items: baseline; gap: 6px; }
.big .num { font-size: 52px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big small { color: var(--mute); font-size: 18px; font-weight: 700; }
.goal { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.goal b { display: block; font-size: 15px; }
.goal small { color: var(--mute); }
.ring { --p: 0; width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); display: grid; place-items: center; flex: none; }
.ring.neg { background: rgba(251,113,133,.35); }
.ring.neg span { color: var(--bad); }
.ring span { width: 44px; height: 44px; border-radius: 50%; background: #131a33; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.stats > div { background: rgba(0,0,0,.22); border-radius: 12px; padding: 8px 10px; }
.stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 700; }
.stats dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats dd small { display: block; font-size: 11.5px; color: var(--mute); font-weight: 600; }
.good { color: var(--good); } .bad { color: var(--bad); } .flat { color: var(--text); }

.head-slot.pop { animation: popface .45s cubic-bezier(.3,1.8,.5,1); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes popface { 0% { transform: scale(.85, 1.15); } 100% { transform: scale(1); } }

/* panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; backdrop-filter: blur(10px); }
.panel-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.hint { color: var(--mute); font-size: 13px; }
.tabs { display: flex; gap: 6px; background: rgba(0,0,0,.25); padding: 4px; border-radius: 14px; }
.tab { border: 0; background: transparent; padding: 7px 14px; border-radius: 10px; font-weight: 800; color: var(--mute); transition: all .2s; }
.tab.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }

/* charts */
.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid { stroke: rgba(255,255,255,.08); }
.chart .ylab, .chart .xlab { fill: var(--mute); font-size: 11px; }
.chart .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.chart .area { opacity: .1; }
.chart .dot { stroke: #0b1020; stroke-width: 1.5; }
.chart .goal { stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .55; }
.chart .band { fill: rgba(255,255,255,.035); }
.chart .bandlab { fill: var(--mute); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.chart .cross { stroke: rgba(255,255,255,.4); stroke-dasharray: 3 3; }
.chart .mark { stroke: #fff; stroke-width: 2; pointer-events: none; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chip { border: 1px solid var(--c); background: transparent; color: var(--text); border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 13px; opacity: .45; }
.chip.on { background: color-mix(in srgb, var(--c) 28%, transparent); opacity: 1; }
.tip { position: absolute; top: 8px; left: 0; pointer-events: none; background: rgba(8,12,28,.92); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 13px; opacity: 0; transition: opacity .12s; z-index: 5; white-space: nowrap; }
.tip.on { opacity: 1; }
.tip div { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.tip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* monthly table */
.table-wrap { overflow-x: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); font-size: 14px; }
thead th { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
thead tr:first-child th[colspan] { color: var(--c); text-align: center; font-size: 14px; border-bottom: 2px solid var(--c); }
tbody th { text-align: left; font-weight: 800; }
td.best { font-weight: 900; color: #fff; background: rgba(255,255,255,.06); }
td.best::after { content: "★"; color: var(--alex); font-size: 9px; margin-left: 3px; vertical-align: super; }
tbody tr:hover { background: rgba(255,255,255,.04); }

footer { text-align: center; color: var(--mute); padding: 10px 18px 50px; font-size: 14px; }
.tiny { font-size: 12px; opacity: .8; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 120px); background: #fff; color: #111; padding: 11px 18px; border-radius: 99px; font-weight: 800; z-index: 300; box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: transform .35s cubic-bezier(.3,1.6,.5,1); max-width: 92vw; text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* contest-mode intro */
.intro { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(139,92,246,.55), rgba(5,8,20,.94) 65%); opacity: 0; transition: opacity .35s; padding: 16px; }
.intro.show { opacity: 1; }
.intro-card { text-align: center; max-width: 520px; padding: 30px 26px; border-radius: 30px; background: rgba(15,20,45,.78); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.6); transform: scale(.8) rotate(-2deg); animation: intropop .7s .1s cubic-bezier(.2,1.7,.4,1) forwards; display: grid; gap: 12px; justify-items: center; }
@keyframes intropop { to { transform: none; } }
.intro-card h2 { margin: 0; font-size: clamp(38px, 9vw, 64px); font-weight: 900; letter-spacing: -.03em; background: linear-gradient(90deg, var(--alex), var(--chung), #c084fc, var(--frank)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-card p { margin: 0; color: var(--mute); }
.intro-week { color: var(--text) !important; font-size: 20px; font-weight: 800; }
.burst { font-size: 64px; animation: wobble 1.4s ease-in-out infinite; }
@keyframes wobble { 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }

/* ============================== race ============================== */
.race { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: linear-gradient(180deg, #0b1020, #182247); }
.race[hidden] { display: none; }
.race-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: rgba(0,0,0,.28); border-bottom: 1px solid var(--line); }
.race-title { display: flex; flex-direction: column; line-height: 1.05; }
.race-title b { font-size: 18px; font-weight: 900; }
.race-title span { font-size: 12px; color: var(--mute); }
.sel { background: rgba(255,255,255,.1); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 13px; max-width: 190px; }
.sel option { color: #111; }
.seg-grp { display: inline-flex; background: rgba(0,0,0,.3); border-radius: 12px; padding: 3px; }
.seg { border: 0; background: transparent; padding: 5px 10px; border-radius: 9px; font-weight: 800; font-size: 13px; color: var(--mute); }
.seg.on { background: var(--alex); color: #1b1200; }
.race-bar .btn { padding: 6px 11px; }
.race-bar .close { background: rgba(251,113,133,.25); }

.race-lanes { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.race-state { margin-right: auto; background: rgba(255,255,255,.08); border: 1px solid var(--line); padding: 4px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.race-state.pulse { animation: statepop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes statepop { from { transform: scale(.7); opacity: 0; } }

.lane { position: relative; flex: 1; min-height: 0; overflow: hidden; border-bottom: 2px solid rgba(0,0,0,.4); background: linear-gradient(180deg, #1c2650 0%, #26346b 70%, #2d3d7c 100%); }
.lane::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: repeating-linear-gradient(90deg, #a8452f 0 40px, #b44f38 40px 80px); border-top: 3px solid #d9694f; }
.lane-label { position: absolute; left: 8px; top: 6px; z-index: 6; display: flex; gap: 6px; align-items: baseline; font-size: 13px; text-shadow: 0 2px 4px #000; }
.lane-label b { color: var(--accent); font-size: 16px; font-weight: 900; }
.lane-label span { color: #cbd5ff; font-size: 11px; }
.track { position: absolute; bottom: 0; height: 15%; z-index: 1; }
.ticks { position: absolute; inset: 0; }
.tick { position: absolute; bottom: 0; width: 1px; height: 38%; background: rgba(255,255,255,.4); }
.tick.major { height: 100%; width: 2px; background: rgba(255,255,255,.7); }
.tick.major::after { content: attr(data-k); position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #fff; font-weight: 800; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.finish { position: absolute; right: -10px; bottom: 0; height: 100%; font-size: 20px; transform: translateY(-40%); }
.track::after { content: ""; position: absolute; right: -2px; top: 0; bottom: 0; width: 8px; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 8px 8px; }

.bed { position: absolute; left: 0; bottom: 0; height: 62%; z-index: 2; }
.bed-frame { position: absolute; left: 4%; right: 2%; bottom: 7%; height: 22%; background: #7a4a2a; border: 3px solid #1e1e1e; border-radius: 8px; }
.mattress { position: absolute; left: 6%; right: 5%; bottom: 24%; height: 20%; background: #e9eefc; border: 3px solid #1e1e1e; border-radius: 10px; }
.pillow { position: absolute; left: 7%; bottom: 40%; width: 24%; height: 17%; background: #fff; border: 3px solid #1e1e1e; border-radius: 12px; }
.blanket { position: absolute; z-index: 4; border: 3px solid #1e1e1e; border-radius: 14px 18px 12px 12px; background: repeating-linear-gradient(135deg, var(--accent) 0 12px, color-mix(in srgb, var(--accent) 70%, #fff) 12px 24px); pointer-events: none; transition: none; }
.zzz { position: absolute; z-index: 7; pointer-events: none; font-weight: 900; color: #fff; transition: opacity .3s; }
.zzz i { position: absolute; left: 0; bottom: 0; font-style: normal; font-size: 18px; opacity: 0; text-shadow: 0 2px 4px #000; animation: zfloat 2.4s ease-in infinite; }
.zzz i:nth-child(2) { animation-delay: .8s; font-size: 22px; }
.zzz i:nth-child(3) { animation-delay: 1.6s; font-size: 28px; }
@keyframes zfloat { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(22px, -46px) scale(1.2) rotate(12deg); } }

.runner { position: absolute; left: 0; top: 0; z-index: 5; will-change: transform; cursor: pointer; transform-origin: 50% 50%; }
.runner .rig { width: 100%; height: 100%; display: block; overflow: visible; }
.bubble { position: absolute; left: 50%; top: -2px; transform: translate(-50%, -100%) scale(.7); opacity: 0; background: #fff; color: #111; font-weight: 900; font-size: 12px; padding: 3px 9px; border-radius: 10px; white-space: nowrap; text-align: center; transition: opacity .2s, transform .2s; z-index: 8; line-height: 1.1; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 9px; height: 9px; background: #fff; }
.bubble small { font-size: 9px; font-weight: 700; margin-left: 3px; color: #555; }
.bubble em { font-style: normal; font-size: 11px; color: var(--accent); }
.bubble.on { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.runner.finished .bubble { background: var(--accent); color: #fff; }
.runner.finished .bubble::after { background: var(--accent); }
.runner.finished .bubble small, .runner.finished .bubble em { color: #fff; }
.badges { position: absolute; right: -6px; top: 6%; display: flex; flex-direction: column; gap: 2px; font-size: 20px; opacity: 0; z-index: 8; }
.badges.on { opacity: 1; animation: badgepop .6s cubic-bezier(.3,1.8,.5,1); }
.badges span { filter: drop-shadow(0 2px 3px #000); }
@keyframes badgepop { from { transform: scale(0) rotate(-90deg); } }
.lane.pose-flex { box-shadow: inset 0 0 0 3px #ffd54a, inset 0 0 40px rgba(255,213,74,.35); }
.lane.pose-happy { box-shadow: inset 0 0 40px rgba(52,211,153,.28); }
.lane.pose-sad { box-shadow: inset 0 0 40px rgba(0,0,0,.45); }
.lane.pose-sad::after { content: "☁️"; position: absolute; right: 38%; top: 6px; font-size: 22px; opacity: .7; animation: bob 3s infinite; }

.race-results { flex: none; display: none; background: linear-gradient(180deg, rgba(8,12,30,.96), rgba(8,12,30,.99)); border-top: 1px solid var(--line); padding: 8px 14px 8px; position: relative; z-index: 30; }
.race-results.show { display: block; animation: slideup .5s cubic-bezier(.2,1.1,.3,1); }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } }
.res-grid { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; max-width: 1000px; margin: 0 auto; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat { display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px; min-width: 0; }
.cat .ico { font-size: 24px; }
.cat small { color: var(--mute); font-weight: 700; }
.cat .who { font-weight: 900; }
.cat .muted { color: var(--mute); font-size: 12px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.step { display: grid; justify-items: center; text-align: center; animation: stepup .7s cubic-bezier(.2,1.4,.4,1) both; }
.step.pos1 { animation-delay: .35s; } .step.pos2 { animation-delay: .15s; } .step.pos3 { animation-delay: .05s; }
.step img { width: 34px; height: auto; margin-bottom: -4px; z-index: 1; filter: drop-shadow(0 4px 4px rgba(0,0,0,.5)); }
.step .blk { width: 54px; height: calc(var(--h) * .55); border-radius: 8px 8px 0 0; border: 3px solid #1e1e1e; display: grid; place-items: start center; padding-top: 2px; font-size: 18px; color: #fff; }
.step small { font-size: 10px; margin-top: 2px; color: var(--mute); font-weight: 700; white-space: nowrap; }
@keyframes stepup { from { transform: translateY(60px); opacity: 0; } }
.res-actions { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.res-actions .btn.big { padding: 7px 16px; font-size: 14px; }

.rotate-prompt { display: none; position: absolute; inset: 0; z-index: 60; background: rgba(8,12,28,.97); text-align: center; align-content: center; justify-items: center; padding: 30px; gap: 8px; font-size: 18px; }
.rotate-prompt .phone { font-size: 70px; animation: tilt 2s ease-in-out infinite; }
@keyframes tilt { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
.race.portrait .rotate-prompt { display: grid; }

/* short landscape phones */
@media (max-height: 520px) {
  .race-bar { padding: 4px 10px; gap: 6px; }
  .race-title b { font-size: 15px; } .race-title span { display: none; }
  .race-bar .btn, .sel, .seg { padding: 4px 8px; font-size: 12px; }
  .race-state { font-size: 11px; padding: 2px 8px; }
  .lane-label b { font-size: 13px; } .lane-label span { display: none; }
  .race-results { padding: 4px 10px; } .cat { padding: 3px 8px; } .cat .ico { font-size: 18px; }
}
@media (max-width: 760px) { .cats { grid-template-columns: 1fr; } .podium { display: none; } }

/* disco easter egg */
body.disco { animation: hue 3s linear infinite; }
body.disco .card { animation: wiggle .6s ease-in-out infinite alternate; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes wiggle { from { transform: rotate(-.8deg); } to { transform: rotate(.8deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

.bubble i { font-style: normal; font-size: 11px; font-weight: 900; margin-left: 2px; }
.bubble i.dn { color: #059669; } .bubble i.up { color: #e11d48; }
.runner.finished .bubble i { color: #fff; }
.puff { position: absolute; z-index: 9; pointer-events: none; font-size: 22px; animation: puff .9s ease-out forwards; }
@keyframes puff { from { opacity: 1; transform: translate(0, 0) scale(.7); } to { opacity: 0; transform: translate(-26px, -28px) scale(1.4); } }
.chip:not(.on) { text-decoration: line-through; }
.chart .line.est { stroke-dasharray: 6 6; opacity: .75; stroke-width: 2.5; }
.chart .gapband { fill: rgba(255,255,255,.015); }

button, .tab, .seg, .chip, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.race-bar { position: relative; z-index: 70; }
.rotate-prompt .btn { margin-top: 14px; }
