/*
 * The Fantasy Team on the web (owner, 2026-11-03): trofii.com/e/<code>/play.
 * The app's team screen and racer card (app/(profile)/fantasy-team.tsx,
 * racer-card.tsx), drawn for a phone's browser in the same colors and type.
 */
:root {
  --bg: #000;
  --card: #0e0e0f;
  --card2: #111;
  --line: #1f1f21;
  --line2: #2a2a2a;
  --ink: #fff;
  --ink2: #a1a1a6;
  --ink3: #8e8e93;
  --picks: #40cbe0;
  --picks-ink: #04232a;
  --picks-soft: #9cc7ce;
  --team: #0b1c20;
  --team-line: rgba(64, 203, 224, 0.35);
  --gold: #ffd60a;
  --green: #7ee29a;
  --red: #ff8a80;
  --warn: #ffb020;
  --second: #bf8bff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
input { font: inherit; }
.num { font-variant-numeric: tabular-nums; }
.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(40px + env(safe-area-inset-bottom)); min-height: 100vh; }
.muted { color: var(--ink2); }
.center { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(64, 203, 224, 0.25); border-top-color: var(--picks); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
:focus-visible { outline: 2px solid var(--picks); outline-offset: 2px; }

/* Top bar */
.bar { display: flex; align-items: center; gap: 10px; height: 56px; position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin: 0 -16px; padding: 0 12px; }
.bar h1 { flex: 1; margin: 0; text-align: center; font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.ibtn { width: 38px; height: 38px; border-radius: 19px; display: grid; place-items: center; color: #fff; }
.ibtn svg { width: 22px; height: 22px; }
.event { color: var(--ink3); font-size: 13px; font-weight: 600; text-align: center; margin: -2px 0 12px; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The team box */
.team { border-radius: 20px; padding: 14px; background: var(--team); border: 1px solid var(--team-line); }
.thead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.capT { font-size: 16px; font-weight: 800; }
.left { color: var(--picks); font-size: 22px; font-weight: 800; }
.left small { color: var(--picks-soft); font-size: 12.5px; font-weight: 700; }
.free { color: var(--picks-soft); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); margin-top: 8px; overflow: hidden; position: relative; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--picks); border-radius: 3px; }
.score { display: flex; justify-content: space-between; align-items: flex-end; }
.score .k { color: var(--picks); font-size: 12px; font-weight: 800; letter-spacing: 0.8px; }
.score .pts { font-size: 42px; font-weight: 900; letter-spacing: -1.4px; margin-top: 4px; line-height: 1; }
.score .pts small { color: #bdbdbd; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.score .place { font-size: 26px; font-weight: 900; text-align: right; }
.score .placeSub { color: #bdbdbd; font-size: 13px; font-weight: 600; text-align: right; }
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.slot { display: flex; flex-direction: column; gap: 4px; text-align: center; min-width: 0; }
.mini { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #141414 center / cover no-repeat; border: 1px solid #233; display: flex; align-items: flex-end; justify-content: center; }
.mini.open { border-style: dashed; border-color: #3e5a60; background-color: #0a1214; align-items: center; color: #3e5a60; }
.mini.open svg { width: 22px; height: 22px; }
.mini.warn { border-color: var(--warn); }
.mini .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
.mini .no { position: relative; font-size: 12px; font-weight: 900; padding-bottom: 5px; }
.cap { position: absolute; top: 4px; left: 4px; display: inline-flex; align-items: center; gap: 1px; background: var(--picks); color: var(--picks-ink); height: 15px; padding: 0 4px; border-radius: 7px; font-size: 9.5px; font-weight: 900; }
.cap svg { width: 9px; height: 9px; fill: var(--picks-ink); stroke: none; }
.slotName { font-size: 11px; font-weight: 800; line-height: 13px; overflow-wrap: anywhere; }
.slotCost { color: var(--picks); font-size: 11px; font-weight: 900; }
.lockRow { display: flex; gap: 7px; margin-top: 12px; color: var(--picks-soft); font-size: 12.5px; line-height: 17px; font-weight: 600; }
.lockRow svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.below { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13.5px; font-weight: 700; line-height: 18px; text-align: left; width: 100%; }
.below svg { width: 15px; height: 15px; color: var(--picks); flex-shrink: 0; }

/* Tiebreaker */
.tb { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(64, 203, 224, 0.18); }
.tb .t { flex: 1; min-width: 0; }
.tbHead { display: inline-flex; align-items: center; gap: 4px; color: var(--ink3); font-size: 11px; font-weight: 800; letter-spacing: 0.8px; }
.tbHead svg { width: 15px; height: 15px; }
.tbLine { color: #d1d1d6; font-size: 12.5px; line-height: 16px; margin-top: 2px; }
.tbField { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tbField span { color: var(--ink3); font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; }
.tbIn { width: 62px; height: 36px; border-radius: 9px; background: #161616; border: 1px solid #262626; color: #fff; font-size: 15px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; padding: 0; caret-color: var(--picks); }
.tbIn::placeholder { color: #55555a; }
.tbIn.on { border-color: rgba(64, 203, 224, 0.6); }
.tbIn.bad { border-color: #ff6b60; }
.tbIn:disabled { opacity: 0.7; }

/* Buttons and boxes under the team */
.row2 { display: flex; gap: 10px; margin-top: 12px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; background: #1c1c1e; border: 1px solid #333; font-size: 15px; font-weight: 700; flex: 1; text-decoration: none; color: #fff; }
.btn svg { width: 17px; height: 17px; }
.btn.picks { background: var(--picks); border-color: var(--picks); color: var(--picks-ink); font-weight: 800; }
.btn.big { height: 54px; border-radius: 15px; font-size: 17px; font-weight: 800; }
.btn:disabled { opacity: 0.6; }
.appbox { margin-top: 12px; padding: 14px; border-radius: 16px; background: #0f0f10; border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.appbox .t { flex: 1; min-width: 0; }
.appbox b { display: block; font-size: 15px; font-weight: 800; }
.appbox span { display: block; color: var(--ink2); font-size: 13px; line-height: 18px; margin-top: 2px; }
.appbox .btn { flex: 0 0 auto; padding: 0 14px; height: 40px; font-size: 14px; }
.prize { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin-top: 12px; padding: 7px 12px; border-radius: 12px; background: rgba(255, 214, 10, 0.1); border: 1px solid rgba(255, 214, 10, 0.45); }
.prize .ico { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; }
.prize .t { flex: 1; min-width: 0; }
.prize .lead { color: #e8c547; font-size: 14px; font-weight: 800; letter-spacing: 0.9px; margin-bottom: 2px; }
.prize .what { color: #ffe27a; font-size: clamp(12.5px, 3.6vw, 15px); font-weight: 800; line-height: 1.3; white-space: nowrap; }
@media (max-width: 340px) { .prize .what { white-space: normal; } }
.prize .inf { width: 20px; height: 20px; color: #e8c547; align-self: flex-start; flex-shrink: 0; }
.warnRow { display: flex; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 176, 32, 0.09); border: 1px solid rgba(255, 176, 32, 0.35); color: #f2e2c2; font-size: 13.5px; line-height: 19px; }
.warnRow svg { width: 18px; height: 18px; color: var(--warn); flex-shrink: 0; }
.warnRow b { color: #fff; }

/* Browsing the cars */
.search { display: flex; align-items: center; gap: 8px; margin-top: 22px; height: 46px; padding: 0 14px; border-radius: 14px; background: #161616; border: 1px solid #262626; }
.search svg { width: 18px; height: 18px; color: var(--ink3); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-size: 16px; }
.search input::placeholder { color: #6b6b70; }
.search .clr { width: 26px; height: 26px; border-radius: 13px; background: #2c2c2e; display: grid; place-items: center; color: #c7c7cc; }
.search .clr svg { width: 14px; height: 14px; color: #c7c7cc; }
.lbl { display: flex; justify-content: space-between; align-items: center; margin: 24px 2px 10px; }
.lbl b { color: var(--ink3); font-size: 12px; font-weight: 800; letter-spacing: 0.8px; }
.lbl span { color: var(--ink3); font-size: 12.5px; font-weight: 600; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.cc { flex: 0 0 124px; text-align: left; border-radius: 14px; border: 1px solid var(--line2); background: #121212; padding: 10px; }
.cc.on { background: #fff; border-color: #fff; color: #000; }
.cc b { display: block; font-size: 13px; font-weight: 800; line-height: 16px; min-height: 32px; }
.cc span { display: block; color: var(--ink3); font-size: 11px; font-weight: 600; margin-top: 4px; }
.cc.on span { color: #555; }
.cc em { display: flex; align-items: center; gap: 3px; font-style: normal; color: var(--picks); font-size: 11px; font-weight: 800; margin-top: 4px; }
.cc.on em { color: var(--picks-ink); }
.cc em svg { width: 12px; height: 12px; }
.chead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 16px 2px 10px; }
.chead b { font-size: 17px; font-weight: 800; }
.chead span { color: var(--ink3); font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.chips { display: flex; gap: 8px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 34px; padding: 0 13px; border-radius: 17px; background: #161616; border: 1px solid var(--line2); color: #cfcfcf; font-size: 13.5px; font-weight: 700; }
.chip.on { background: #fff; border-color: #fff; color: #000; }
.noMatch { color: var(--ink2); font-size: 14px; line-height: 20px; text-align: center; padding: 18px 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 16px; overflow: hidden; background: var(--card2); border: 1px solid #222; }
.card.on { border-color: rgba(64, 203, 224, 0.6); }
.card.over { opacity: 0.5; }
.photo { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #1a1a1a center / cover no-repeat; display: grid; place-items: center; color: #333; }
.photo > svg.car { width: 40px; height: 40px; }
.photo .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); }
.photo .cls { position: absolute; left: 8px; top: 8px; right: 46px; display: flex; }
.photo .cls span { background: rgba(0, 0, 0, 0.65); color: #e5e5ea; font-size: 9.5px; line-height: 12px; font-weight: 800; letter-spacing: 0.4px; padding: 3px 7px; border-radius: 6px; }
.photo .tag { position: absolute; left: 8px; top: 8px; background: var(--gold); color: #2a2100; font-size: 10px; font-weight: 900; letter-spacing: 0.3px; padding: 3px 7px; border-radius: 6px; }
.photo .no { position: absolute; left: 8px; bottom: 6px; font-size: 21px; font-weight: 900; letter-spacing: -0.4px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.photo .home { position: absolute; left: 8px; bottom: 7px; font-size: 11px; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85); }
.add { position: absolute; right: 7px; top: 7px; width: 34px; height: 34px; border-radius: 17px; background: #ff3b30; display: grid; place-items: center; color: #fff; }
.add svg { width: 18px; height: 18px; stroke-width: 2.6; }
.add.on { background: var(--picks); color: var(--picks-ink); }
.add.off { background: #2c2c2e; color: #6b6b70; }
.body { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 10px; }
.body .name, .body .car, .body .record, .body .status, .floor { display: block; }
.body .name { font-size: 14px; font-weight: 800; line-height: 18px; }
.body .car { color: #a8a8a8; font-size: 12px; line-height: 16px; margin-top: 1px; }
.body .record { color: #d1d1d6; font-size: 12px; font-weight: 700; line-height: 16px; margin-top: 8px; }
.body .status { font-size: 12px; font-weight: 800; margin-top: 6px; }
.floor { margin-top: auto; padding-top: 10px; }
.facts { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.cost { font-size: 20px; font-weight: 900; }
.best { font-size: 14px; font-weight: 800; text-align: right; }
.factLbl { color: var(--ink3); font-size: 10.5px; font-weight: 700; text-align: right; }
.overNote { color: var(--warn); font-size: 11px; font-weight: 700; margin-top: 6px; }
.acct { margin: 28px 0 0; text-align: center; color: var(--ink3); font-size: 13px; }
.acct button { color: #e5e5ea; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot { margin: 22px 0 0; text-align: center; color: #6e6e73; font-size: 12px; }
.foot b { color: #a1a1a6; }

/* The racer card */
.rc { margin: 0 -16px; padding-bottom: 260px; }
.rc.locked { padding-bottom: 130px; }
.back { position: fixed; z-index: 6; top: calc(8px + env(safe-area-inset-top)); left: max(14px, calc(50% - 266px)); width: 38px; height: 38px; border-radius: 19px; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; color: #fff; }
.back svg { width: 24px; height: 24px; }
.widePic { width: 100%; aspect-ratio: 960 / 388; background: #111 center / cover no-repeat; display: grid; place-items: center; color: #2a2a2a; margin-top: 56px; }
.widePic svg { width: 64px; height: 64px; }
.hero { position: relative; height: 380px; background: #111 center / cover no-repeat; }
.hero .grad { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.92) 92%, #000 100%); }
.hero .id { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.idBelow { padding: 14px 16px 0; }
.wrap { padding: 0 16px; }
.clsRow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.clsRow .c { background: var(--picks); color: var(--picks-ink); font-size: 11px; font-weight: 900; letter-spacing: 0.5px; padding: 4px 8px; border-radius: 6px; }
.clsRow .g { background: var(--gold); color: #2a2100; font-size: 11px; font-weight: 900; letter-spacing: 0.4px; padding: 4px 8px; border-radius: 6px; }
.clsRow .ck { display: inline-flex; align-items: center; gap: 4px; background: rgba(52, 199, 89, 0.2); color: var(--green); font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; }
.clsRow .ck svg { width: 12px; height: 12px; }
.bigNum { font-size: 56px; line-height: 60px; font-weight: 900; letter-spacing: -2px; margin-top: 6px; }
.rcName { font-size: 22px; font-weight: 800; margin-top: 2px; }
.rcAcct { color: var(--ink3); font-size: 13.5px; font-weight: 600; margin-top: 1px; }
.rcLine { color: #c7c7cc; font-size: 14.5px; margin-top: 2px; }
.ranks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rank { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; background: #141414; border: 1px solid #262626; color: #e5e5ea; font-size: 12.5px; font-weight: 700; }
.rank.hot { background: rgba(255, 59, 48, 0.14); border-color: rgba(255, 59, 48, 0.45); color: var(--red); }
.rank svg { width: 13px; height: 13px; }
.priceBox { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--team); border: 1px solid var(--team-line); }
.priceBox .n { color: var(--picks); font-size: 30px; font-weight: 900; line-height: 33px; text-align: center; }
.priceBox .n small { display: block; color: var(--picks-soft); font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; line-height: 14px; }
.priceBox p { flex: 1; margin: 0; color: #ddeff1; font-size: 13.5px; line-height: 19px; }
.kick { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 26px 2px 12px; }
.kick b { color: var(--ink3); font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; flex-shrink: 0; }
.kick span { color: var(--ink3); font-size: 12px; font-weight: 600; text-align: right; }
.box { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 6px 14px; }
.box.pad { padding: 14px; }
.stat { padding: 10px 0 4px; }
.srow { display: flex; justify-content: space-between; align-items: baseline; }
.slabel { color: #d1d1d6; font-size: 11.5px; font-weight: 900; letter-spacing: 1px; }
.svalue { font-size: 17px; font-weight: 800; }
.svalue small { color: var(--ink3); font-size: 11.5px; font-weight: 600; }
.track { position: relative; height: 10px; border-radius: 5px; background: #1e1e20; margin-top: 11px; }
.track .scale { position: absolute; inset: 0; border-radius: 5px; opacity: 0.5; background: linear-gradient(90deg, #9e1f1a, #e5484d, #f2711c, #f5b82e, #c6e04a, #6fdc5a, #22e55c); }
.track .avg { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--card); }
.track .me { position: absolute; top: -5px; bottom: -5px; width: 7px; margin-left: -3.5px; border-radius: 3.5px; background: #fff; border: 1.5px solid var(--card); }
.avgRow { position: relative; height: 15px; margin-top: 4px; }
.avgRow span { position: absolute; width: 70px; margin-left: -35px; text-align: center; color: var(--ink3); font-size: 10.5px; font-weight: 700; }
.legendText { color: var(--ink3); font-size: 12px; font-weight: 600; line-height: 16px; margin: 10px 0 6px; }
.empty { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; border: 1.5px dashed #2e2e30; color: var(--ink2); font-size: 13.5px; line-height: 19px; }
.empty svg { width: 22px; height: 22px; color: #5d8f97; flex-shrink: 0; }
.live { border-radius: 18px; background: var(--team); border: 1px solid var(--team-line); padding: 14px; }
.liveHead { display: flex; align-items: flex-start; gap: 12px; }
.liveStatus { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; }
.liveStatus.bad { color: var(--red); }
.liveStatus .dot { width: 9px; height: 9px; border-radius: 5px; background: var(--green); flex-shrink: 0; }
.liveStatus svg { width: 18px; height: 18px; color: var(--green); }
.liveWhen { color: var(--picks-soft); font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.livePts { color: var(--picks); font-size: 28px; font-weight: 900; text-align: right; }
.livePtsL { color: var(--picks-soft); font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; text-align: right; }
.why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.why span { border-radius: 12px; background: rgba(64, 203, 224, 0.12); padding: 4px 9px; color: #bfeff6; font-size: 12px; font-weight: 700; }
.why b { color: var(--picks); font-weight: 900; margin-left: 4px; }
.liveMine { margin-top: 12px; padding: 10px; border-radius: 12px; background: rgba(64, 203, 224, 0.16); color: #e6fafd; font-size: 13px; font-weight: 700; line-height: 18px; }
.liveQual { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(64, 203, 224, 0.18); }
.liveQualHead { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; font-size: 13.5px; font-weight: 800; }
.liveQualHead span { color: #c7c7cc; font-size: 12.5px; font-weight: 700; }
.hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.hd b { flex: 1; font-size: 14.5px; font-weight: 800; }
.hd span { color: var(--ink3); font-size: 12px; font-weight: 700; }
.dotsNote { color: var(--ink3); font-size: 11.5px; font-weight: 600; line-height: 16px; margin-top: 10px; }
.rivals { margin-top: 12px; padding-top: 12px; border-top: 1px solid #1c1c1e; }
.rivals.first { margin-top: 0; padding-top: 0; border-top: 0; }
.rivals .k { color: var(--ink3); font-size: 11px; font-weight: 800; letter-spacing: 0.6px; }
.rival { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rival + .rival { border-top: 1px solid #2a2a2c; }
.wl { min-width: 46px; height: 28px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 900; flex-shrink: 0; }
.wl.w { background: rgba(126, 226, 154, 0.14); color: var(--green); }
.wl.l { background: rgba(255, 138, 128, 0.14); color: var(--red); }
.rival .vs { color: var(--ink3); font-size: 12px; font-weight: 700; margin-left: -4px; }
.rival .n { flex: 1; min-width: 0; }
.rival .n b { display: block; font-size: 14px; font-weight: 800; line-height: 18px; }
.rival .n span { display: block; color: var(--ink3); font-size: 12px; font-weight: 600; line-height: 16px; margin-top: 1px; }
.rival .r { text-align: right; }
.rival .r b { display: block; font-size: 13px; font-weight: 800; }
.rival .r span { display: block; color: var(--ink3); font-size: 12px; font-weight: 700; margin-top: 1px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 6px; margin-top: 10px; }
.legend .li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 11.5px; font-weight: 600; }
.legend .lt { color: #c7c7cc; font-size: 11.5px; font-weight: 800; }
.sw { width: 9px; height: 9px; border-radius: 5px; display: inline-block; }
.sw.dia { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); }
.sw.sq { border-radius: 2px; }
.rnd { padding: 12px 0; }
.rnd + .rnd { border-top: 1px solid #1c1c1e; }
.rndHead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.rndHead b { flex: 1; font-size: 13.5px; font-weight: 800; }
.rndHead b span { color: var(--ink3); font-weight: 600; }
.rndHead em { font-style: normal; font-size: 12.5px; font-weight: 900; }
.rndCap { color: var(--ink2); font-size: 12px; line-height: 16px; margin-top: 4px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; }
.spec { flex: 1 1 22%; min-width: 22%; border-radius: 12px; background: var(--card2); border: 1px solid #222; padding: 9px 8px; text-align: center; }
.spec span { display: block; color: var(--ink3); font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; }
.spec b { display: block; font-size: 14px; font-weight: 800; margin-top: 3px; }
.h2h { display: flex; align-items: center; min-height: 40px; padding: 3px 0; }
.h2h .s { width: 4px; height: 30px; border-radius: 2px; margin-right: 8px; flex-shrink: 0; }
.h2h .n { flex: 1; min-width: 0; padding-right: 6px; }
.h2h .n b { display: block; font-size: 12.5px; font-weight: 800; }
.h2h .n span { display: block; color: var(--ink3); font-size: 10.5px; font-weight: 600; margin-top: 1px; }
.h2h svg { flex-shrink: 0; }
.h2h .sc { width: 46px; text-align: right; font-size: 13px; font-weight: 900; flex-shrink: 0; }
.more { width: 100%; height: 42px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--line2); color: #e5e5ea; font-size: 13.5px; font-weight: 700; }
.qr { padding: 9px 0; }
.qr + .qr { border-top: 1px solid #1c1c1e; }
.ql { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ql b { font-size: 13px; font-weight: 900; }
.ql span { flex: 1; min-width: 0; color: var(--ink2); font-size: 12px; font-weight: 600; }
.ql em { font-style: normal; color: #e5e5ea; font-size: 12px; font-weight: 800; }
.caption { color: var(--ink2); font-size: 12px; margin-top: 6px; line-height: 16px; }
.ylab { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px 8px; }
.ylab b { font-size: 15px; font-weight: 900; }
.ylab span { color: var(--ink3); font-size: 12.5px; font-weight: 600; }
.evs { display: flex; flex-direction: column; gap: 8px; }
.ev { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 11px 12px; }
.ev .m { flex: 1; min-width: 0; }
.ev .m b { display: block; font-size: 14px; font-weight: 800; }
.ev .m span { display: block; color: var(--ink2); font-size: 12px; margin-top: 2px; line-height: 16px; }
.ev .m i { display: block; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 2px; }
.ev .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.ev .tags em { font-style: normal; height: 18px; padding: 0 6px; border-radius: 5px; background: #1c1c1e; color: var(--ink2); font-size: 10px; font-weight: 900; letter-spacing: 0.4px; display: inline-flex; align-items: center; }
.ev .r { text-align: right; max-width: 42%; }
.ev .r b { display: block; font-size: 13.5px; font-weight: 900; }
.ev .r span { display: block; color: var(--ink3); font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.ev > svg { width: 16px; height: 16px; color: #5a5a5e; flex-shrink: 0; }
.yr { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 4px; border-top: 1px solid #1c1c1e; margin-top: 4px; }
.yr b { width: 44px; font-size: 16px; font-weight: 900; }
.yr span { flex: 1; color: var(--ink2); font-size: 12.5px; }
.yr svg { width: 16px; height: 16px; color: #5a5a5e; }
.src { color: #6e6e73; font-size: 11.5px; font-weight: 600; margin: 10px 2px 0; }
.rh, .tr { display: flex; align-items: center; }
.rh { padding: 8px 0; border-bottom: 1px solid #1c1c1e; }
.rh span { flex: 1; color: #6e6e73; font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; }
.tr { padding: 9px 0; border-top: 1px solid #161618; }
.tr > span { flex: 1; color: #e5e5ea; font-size: 13px; font-weight: 700; }
.tr .et b { display: block; font-size: 15px; font-weight: 900; }
.tr .et span { display: block; color: var(--ink3); font-size: 11px; font-weight: 600; }
.wide { flex: 1.6 !important; }
.right { text-align: right; }
.nightRow { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.nightRow + .nightRow { border-top: 1px solid #1c1c1e; }
.nightRow .d { width: 44px; text-align: center; }
.nightRow .d b { display: block; font-size: 19px; font-weight: 900; }
.nightRow .d span { display: block; color: var(--ink3); font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; }
.nightRow .m { flex: 1; }
.nightRow .m b { display: block; font-size: 14.5px; font-weight: 800; }
.nightRow .m span { display: block; color: #a8a8a8; font-size: 12.5px; }

/* The racer card's footer: your team and the one action */
.foot2 { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; padding: 26px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(0, 0, 0, 0), #000 22px); }
.foot2 .in { max-width: 528px; margin: 0 auto; }
.teamRow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; }
.teamRow b { flex: 1; font-size: 13px; font-weight: 800; }
.teamRow span { color: var(--ink2); font-size: 13px; font-weight: 600; }
.teamRow span strong { color: var(--picks); font-weight: 900; }
.meter2 { position: relative; height: 6px; border-radius: 3px; background: #1e1e20; margin: 8px 2px 12px; }
.meter2 .u { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: #2f6e78; }
.meter2 .a { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--picks); box-shadow: 0 0 6px rgba(64, 203, 224, 0.6); }
.go { width: 100%; height: 54px; border-radius: 15px; background: #ff3b30; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 17px; font-weight: 800; padding: 0 12px; }
.go svg { width: 18px; height: 18px; }
.go.picks { background: var(--picks); color: var(--picks-ink); }
.go.off { background: #2c2c2e; color: #fff; }
.go2 { width: 100%; min-height: 44px; margin-top: 8px; border-radius: 13px; background: #141414; border: 1px solid var(--line2); color: #e5e5ea; font-size: 14.5px; font-weight: 700; padding: 0 16px; }
.lockedNote { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 54px; border-radius: 15px; background: var(--team); border: 1px solid var(--team-line); color: #c7e7ec; font-size: 14.5px; font-weight: 700; padding: 0 12px; text-align: center; }
.lockedNote svg { width: 16px; height: 16px; flex-shrink: 0; }
.game { color: var(--ink2); font-size: 12.5px; line-height: 17px; text-align: center; margin: 8px 4px 0; }
.game b { color: var(--picks); font-weight: 800; }

/* Sheets */
.dim { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.62); }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: #141414; border-top-left-radius: 22px; border-top-right-radius: 22px; border: 1px solid #262626; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: #3a3a3c; align-self: center; margin-bottom: 14px; flex-shrink: 0; }
.sheet .sc { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 900; line-height: 25px; }
.sheet .head { display: flex; align-items: center; gap: 10px; }
.sheet .head svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.sheet .intro { color: #d1d1d6; font-size: 15px; line-height: 21px; margin: 12px 0 4px; }
.sheet .item { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 214, 10, 0.08); border: 1px solid rgba(255, 214, 10, 0.3); color: #ffe27a; font-size: 15px; font-weight: 800; }
.sheet .sec { margin-top: 14px; }
.sheet .sec b { display: block; color: var(--picks); font-size: 13px; font-weight: 800; letter-spacing: 0.3px; }
.sheet .sec p { margin: 3px 0 0; color: #d1d1d6; font-size: 14.5px; line-height: 20px; }
.sheet .fine { color: var(--ink2); font-size: 13.5px; line-height: 19px; margin-top: 14px; }
.sheet .ok { flex-shrink: 0; margin-top: 14px; height: 48px; border-radius: 14px; background: var(--picks); color: var(--picks-ink); font-size: 16px; font-weight: 800; width: 100%; }
.sheet .x { width: 32px; height: 32px; border-radius: 16px; background: #262626; display: grid; place-items: center; flex-shrink: 0; }
.sheet .x svg { width: 18px; height: 18px; color: #fff; }
.evhead { display: flex; gap: 12px; align-items: flex-start; }
.evhead .t { flex: 1; min-width: 0; }
.evhead .t b { display: block; font-size: 19px; font-weight: 900; line-height: 24px; }
.evhead .t span { display: block; color: var(--ink2); font-size: 12.5px; line-height: 17px; margin-top: 3px; }
.res { margin-top: 14px; }
.res b { display: block; font-size: 22px; font-weight: 900; }
.res span { display: block; color: #c7c7cc; font-size: 13px; font-weight: 600; margin-top: 2px; }
.tiles { display: flex; gap: 8px; margin-top: 14px; }
.tile { flex: 1; min-width: 0; border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 10px 8px; }
.tile b { display: block; font-size: 17px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.tile span { display: block; color: var(--ink3); font-size: 10px; font-weight: 800; letter-spacing: 0.5px; margin-top: 3px; }
.tile i { display: block; font-style: normal; color: var(--ink2); font-size: 10.5px; font-weight: 600; margin-top: 1px; }
.sk { color: var(--ink3); font-size: 11.5px; font-weight: 800; letter-spacing: 0.8px; margin: 18px 0 4px; }
.race { display: flex; gap: 10px; align-items: center; padding: 10px 0; }
.race + .race { border-top: 1px solid var(--line); }
.race .t { flex: 1; min-width: 0; }
.race .t b { display: block; font-size: 13.5px; font-weight: 800; }
.race .t span { display: block; color: var(--ink2); font-size: 12px; margin-top: 2px; }
.race .n { text-align: right; }
.race .n b { display: block; font-size: 13.5px; font-weight: 900; }
.race .n span { display: block; color: var(--ink3); font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.source { color: #6e6e73; font-size: 11.5px; line-height: 16px; margin: 14px 0 4px; }

/* Making an account */
.auth p.lead { color: #d1d1d6; font-size: 14.5px; line-height: 20px; margin: 8px 0 4px; }
.fld { margin-top: 14px; }
.fld label { display: block; font-size: 13.5px; font-weight: 700; color: #e5e5ea; margin-bottom: 6px; }
.fld .in { display: flex; align-items: center; height: 50px; border-radius: 12px; background: #0e0e0f; border: 1px solid #2a2a2a; padding: 0 14px; }
.fld .in:focus-within { border-color: rgba(64, 203, 224, 0.7); }
.fld .in span { color: var(--ink3); font-size: 17px; font-weight: 700; margin-right: 2px; }
.fld input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-size: 17px; font-weight: 600; padding: 0; }
.fld .hint { color: var(--ink3); font-size: 12.5px; margin-top: 6px; }
.err { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 69, 58, 0.12); border: 1px solid rgba(255, 69, 58, 0.4); color: #ffb3ad; font-size: 13.5px; line-height: 18px; }
.swap { display: block; width: 100%; text-align: center; margin-top: 14px; color: #c7c7cc; font-size: 14px; }
.swap b { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.terms { color: #6e6e73; font-size: 12px; line-height: 16px; text-align: center; margin-top: 12px; }
.terms a { color: #a1a1a6; }

/* How it works */
.howto { position: fixed; z-index: 30; inset: 0; background: rgba(10, 12, 17, 0.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.howcard { width: 100%; max-width: 440px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 22px; background: #141414; border: 1px solid #262626; padding: 20px 18px 16px; }
.howcard h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; }
.hrow { display: flex; gap: 14px; align-items: center; padding: 9px 0; }
.hpic { width: 70px; flex-shrink: 0; display: flex; justify-content: center; color: var(--picks); }
.hrow .t b { display: block; font-size: 15.5px; font-weight: 800; }
.hrow .t span { display: block; color: var(--ink2); font-size: 13.5px; line-height: 19px; margin-top: 2px; }
.hmoney { text-align: center; color: var(--picks); font-size: 15px; font-weight: 900; }
.hslots { display: flex; gap: 3px; margin-top: 6px; justify-content: center; }
.hslots i { width: 8px; height: 12px; border-radius: 2px; background: var(--picks); opacity: 0.8; }
.hbars { display: flex; align-items: flex-end; gap: 4px; height: 42px; }
.hbars i { width: 7px; border-radius: 2px; background: var(--picks); }
.hbadge { display: inline-flex; align-items: center; gap: 3px; background: var(--picks); color: var(--picks-ink); border-radius: 12px; padding: 5px 9px; font-size: 14px; font-weight: 900; }
.hbadge svg { width: 13px; height: 13px; fill: var(--picks-ink); stroke: none; }
.hplus { text-align: center; color: var(--picks); font-size: 13px; font-weight: 900; }
.hplus svg { display: block; margin: 0 auto 1px; width: 26px; height: 26px; }
.howcard .ok { margin-top: 12px; height: 50px; border-radius: 14px; background: var(--picks); color: var(--picks-ink); font-size: 16px; font-weight: 800; width: 100%; }
.howcard .nev { display: block; width: 100%; margin-top: 10px; color: var(--ink3); font-size: 14px; font-weight: 700; }

/* Notices */
.toast { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); background: #1c1c1e; border: 1px solid #333; color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 700; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.sheet.alert h2 { font-size: 19px; }
.sheet.alert p { color: #d1d1d6; font-size: 15px; line-height: 21px; margin: 8px 0 0; }

/* A line the server breaks in two ("MIR\nSun, Nov 3 · 17 cars") breaks here too, as in the app. */
.ev .m span, .evhead .t span, .race .t span { white-space: pre-line; }
