/* WhichBike - "Pit Lane".
   Race-night asphalt, race red for the brand and every action, timing-board
   yellow for exactly one thing: the price you finally pay. Saira italic at
   heavy weights does the broadcast-graphics voice. Dark only - it is a race. */

:root {
  --bg: #f3f2ee;              /* pit-wall white */
  --bg-2: #ebe9e3;
  --panel: #ffffff;
  --panel-2: #f6f5f1;
  --line: #e2dfd6;
  --line-2: #cfcbc0;
  --ink: #0b0b0b;
  --ink-2: #3a3a38;
  --muted: #6b6a66;
  --red: #e0160c;             /* 4.8:1 on white */
  --red-deep: #b50f07;
  --yellow: #ffd60a;          /* the final price, nothing else - always with black text */
  --on-yellow: #0b0b0b;
  --green: #0c7a3f;
  --stage: radial-gradient(120% 95% at 50% 100%, #e4e2dc 0%, #f6f5f2 55%, #ffffff 100%);
  --skew: -10deg;
  --ease: cubic-bezier(.2, .9, .2, 1);
  --shadow: 0 24px 50px -24px rgba(20, 18, 12, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .018) 0 1px, transparent 1px 7px),
    var(--bg);
  color: var(--ink);
  font: 500 15px/1.45 "Saira", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; }

/* ------------------------------------------------------------ header */

.top {
  position: sticky; top: 0; z-index: 40; height: 60px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  background: rgba(243, 242, 238, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 30px; display: grid; place-items: center; transform: skewX(var(--skew));
  background: var(--red); border-radius: 5px; box-shadow: 0 6px 16px -6px rgba(224, 22, 12, .7);
}
.logo-mark { position: relative; overflow: hidden; }
.logo-mark svg { position: relative; z-index: 1; width: 26px; height: 26px; color: #fff; transform: skewX(10deg); animation: ride 3.6s var(--ease) infinite; transform-origin: 70% 80%; }
@keyframes ride {
  0%, 100% { transform: skewX(10deg) translateX(0); }
  8% { transform: skewX(10deg) translateX(-1px) translateY(-.5px); }
  16% { transform: skewX(10deg) translateX(0); }
  62% { transform: skewX(10deg) translateX(2px) rotate(-16deg); }   /* wheelie */
  72% { transform: skewX(10deg) translateX(1px) rotate(-10deg); }
  82% { transform: skewX(10deg) translateX(0) rotate(0); }
}
.ls { position: absolute; left: -12px; height: 2px; width: 12px; border-radius: 2px; background: rgba(255, 255, 255, .85); animation: ls .7s linear infinite; }
.ls:nth-of-type(1) { top: 9px; }
.ls:nth-of-type(2) { top: 15px; width: 8px; animation-delay: .25s; }
.ls:nth-of-type(3) { top: 21px; animation-delay: .45s; }
@keyframes ls { from { transform: translateX(0); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(46px); opacity: 0; } }
.logo:hover .logo-mark svg { animation-duration: 1.2s; }
.logo-word {
  font-style: italic; font-weight: 900; font-size: 25px; letter-spacing: -.02em; line-height: 1;
  font-variation-settings: "wdth" 118; text-transform: uppercase;
}
.logo-word .w2 { color: var(--red); }
.logo-word .q { color: var(--ink); margin-left: 1px; display: inline-block; animation: q 3.2s var(--ease) infinite; }
@keyframes q { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(14deg) translateY(-2px); } 86% { transform: rotate(-8deg); } }

.live {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px;
  transform: skewX(var(--skew)); background: var(--panel);
}
.live > * { transform: skewX(10deg); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: rec 1.4s infinite; }
@keyframes rec { 50% { opacity: .25; } }

/* ------------------------------------------------------------ the track */

.track {
  position: sticky; top: 60px; z-index: 35;
  background: rgba(243, 242, 238, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.track-in { position: relative; max-width: 880px; margin: 0 auto; padding: 44px 26px 10px; }
.lane {
  position: absolute; left: calc(26px + 12.5%); right: calc(26px + 12.5%); top: 57px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 14px, transparent 14px 24px); border-radius: 2px;
}
.lane-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--red-deep), var(--red)); box-shadow: 0 0 14px rgba(255, 42, 31, .6);
  transition: width .9s var(--ease);
}
.rider {
  position: absolute; z-index: 3; top: -50px; left: 0; width: 46px; height: 32px; margin-left: -23px;
  transition: left .9s var(--ease);
}
.rider-plate {
  position: relative; display: grid; place-items: center; width: 46px; height: 32px; overflow: hidden;
  background: var(--red); border-radius: 6px; transform: skewX(var(--skew));
  box-shadow: 0 8px 16px -6px rgba(224, 22, 12, .7);
}
.rider::after {                          /* the pointer down to the checkpoint */
  content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px;
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--red);
}
.rider svg { position: relative; z-index: 1; width: 30px; height: 26px; color: #fff; transform: skewX(10deg); animation: bob .45s ease-in-out infinite alternate; }
.rider .ls { opacity: 0; animation: none; }
.track.moving .rider .ls { animation: ls .35s linear infinite; }
.track.moving .rider svg { animation: lean .9s var(--ease); }
@keyframes lean { 0% { transform: skewX(10deg) rotate(0); } 25% { transform: skewX(10deg) rotate(-18deg); } 70% { transform: skewX(10deg) rotate(-6deg); } 100% { transform: skewX(10deg) rotate(0); } }
@keyframes bob { to { transform: skewX(10deg) translateY(-1.5px); } }
.track[data-step="1"] .lane-fill { width: 0; }     .track[data-step="1"] .rider { left: 0; }
.track[data-step="2"] .lane-fill { width: 33.33%; }  .track[data-step="2"] .rider { left: 33.33%; }
.track[data-step="3"] .lane-fill { width: 66.66%; }  .track[data-step="3"] .rider { left: 66.66%; }
.track[data-step="4"] .lane-fill { width: 100%; }    .track[data-step="4"] .rider { left: 100%; }

.cps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.cps li { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); transition: color .3s; }
.cp {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--line-2); transition: all .35s var(--ease);
}
.cp svg { width: 15px; height: 15px; }
.cps b { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-style: italic; }
.cps li.done { color: var(--ink-2); }
.cps li.done .cp { background: var(--red); border-color: var(--red); color: #fff; }
.cps li.now { color: var(--ink); }
.cps li.now .cp { background: var(--yellow); border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 5px rgba(255, 214, 10, .35); transform: scale(1.12); }
.cp.flag svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------ the grid (landing) */

.grid-start { position: relative; overflow: hidden; min-height: calc(100vh - 118px); padding: 26px 0 40px; }
.start-in { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* bikes raining behind the title */
.rain { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.rain::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 35%, transparent 0%, rgba(243, 242, 238, .5) 60%, var(--bg) 100%);
}
.drop {
  position: absolute; top: -30vh; width: var(--w, 170px); aspect-ratio: 4 / 3; border-radius: 12px;
  background: #fff; display: grid; place-items: center; box-shadow: 0 26px 50px -18px rgba(20, 18, 12, .45), 0 0 0 1px rgba(0, 0, 0, .05);
  animation: fall var(--d, 1.8s) cubic-bezier(.45, 0, .8, .6) var(--t, 0s) both;
}
.drop img { width: 90%; height: 90%; object-fit: contain; }
@keyframes fall {
  0% { transform: translateY(0) rotate(var(--r0, -8deg)); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(170vh) rotate(var(--r1, 14deg)); opacity: 1; }
}
.ghost {
  position: absolute; top: -40vh; width: var(--w, 260px); aspect-ratio: 4 / 3; opacity: 0;
  animation: drift var(--d, 30s) linear var(--t, 0s) infinite;
}
.ghost img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply;
}
@keyframes drift {
  0% { transform: translateY(0) rotate(var(--r0, -6deg)); opacity: 0; }
  10%, 80% { opacity: var(--o, .16); }
  100% { transform: translateY(180vh) rotate(var(--r1, 6deg)); opacity: 0; }
}

.speed { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.speed i {
  position: absolute; left: -40%; height: 2px; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 31, .7), transparent);
  animation: streak 2.8s linear infinite;
}
.speed i:nth-child(1) { top: 14%; animation-delay: .2s; }
.speed i:nth-child(2) { top: 31%; animation-delay: 1.3s; width: 25%; background: linear-gradient(90deg, transparent, rgba(255, 214, 10, .5), transparent); }
.speed i:nth-child(3) { top: 47%; animation-delay: .7s; }
.speed i:nth-child(4) { top: 62%; animation-delay: 2s; width: 30%; }
.speed i:nth-child(5) { top: 78%; animation-delay: 1.6s; background: linear-gradient(90deg, transparent, rgba(11, 11, 11, .25), transparent); }
.speed i:nth-child(6) { top: 90%; animation-delay: .4s; }
@keyframes streak { to { transform: translateX(380%); } }

.title {
  margin: 4px 0 26px; line-height: .82; text-transform: uppercase; font-style: italic; font-weight: 900;
  font-size: clamp(64px, 13vw, 190px); letter-spacing: -.04em; font-variation-settings: "wdth" 125;
  display: flex; flex-wrap: wrap; column-gap: .18em; align-items: baseline;
}
.title .t1 { color: var(--ink); animation: slamL .8s var(--ease) .9s both; }
.title .t2 { color: var(--red); animation: slamR .8s var(--ease) 1.05s both; }
.title em { color: var(--ink); text-shadow: 6px 6px 0 var(--yellow); font-style: italic; display: inline-block; animation: pop .7s var(--ease) 1.6s both; }
@keyframes slamL { from { transform: translateX(-60vw) skewX(-25deg); opacity: 0; filter: blur(12px); } }
@keyframes slamR { from { transform: translateX(60vw) skewX(-25deg); opacity: 0; filter: blur(12px); } }
@keyframes pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.25) rotate(8deg); } }

.grid-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.lap {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px;
  font-weight: 900; font-style: italic; font-size: 18px; letter-spacing: .04em; color: var(--bg);
  background: var(--ink); transform: skewX(var(--skew)); border-radius: 3px;
}
.lap svg { width: 18px; height: 18px; }
.lap > * { transform: skewX(10deg); }

.kinds { display: flex; gap: 6px; }
.kind {
  width: 48px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--muted); transform: skewX(var(--skew)); border-radius: 4px;
  transition: all .25s var(--ease);
}
.kind svg { width: 26px; height: 26px; transform: skewX(10deg); }
.kind:hover { color: var(--ink); border-color: var(--muted); }
.kind[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* brand tiles - number plates on the grid */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.brand {
  position: relative; height: 84px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transform: skewX(var(--skew)); overflow: hidden; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: transform .3s var(--ease), border-color .25s, background .25s, box-shadow .3s;
  animation: gridIn .6s var(--ease) both; animation-delay: calc(1.7s + var(--i, 0) * 45ms);
}
@keyframes gridIn { from { opacity: 0; transform: skewX(var(--skew)) translateY(24px); } }
.brand > * { transform: skewX(10deg); position: relative; z-index: 1; }
.brand::before {
  content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 60px; opacity: .08;
  background: repeating-conic-gradient(#0b0b0b 0 25%, transparent 0 50%) 0 0 / 14px 14px;
  transition: opacity .3s;
}
.brand .nm {
  font-weight: 900; font-style: italic; font-size: 21px; text-transform: uppercase; letter-spacing: -.01em; line-height: 1;
  font-variation-settings: "wdth" 112; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand .no {
  min-width: 40px; height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: 4px;
  background: var(--ink); color: var(--bg); font-weight: 900; font-style: italic; font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.brand:hover { transform: skewX(var(--skew)) translateY(-3px); border-color: var(--muted); box-shadow: var(--shadow); }
.brand:hover::before { opacity: .22; }
.brand[aria-checked="true"] {
  background: linear-gradient(135deg, var(--red), var(--red-deep)); border-color: var(--red); color: #fff;
  box-shadow: 0 16px 32px -14px rgba(224, 22, 12, .7);
}
.brand[aria-checked="true"]::before { background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 14px 14px; }
.brand[aria-checked="true"]::before { opacity: .3; }
.brand[aria-checked="true"] .no { background: var(--yellow); color: var(--on-yellow); }
.brands.picked .brand:not([aria-checked="true"]) { opacity: .5; }
.brands.picked .brand:not([aria-checked="true"]):hover { opacity: 1; }

/* ------------------------------------------------------------ pit board: offers */

.pit, .field { position: relative; }
.pit-in, .field-in { max-width: 1240px; margin: 0 auto; padding: 8px 22px 26px; }
.pit-brand {
  font-weight: 900; font-style: italic; font-size: 28px; text-transform: uppercase; letter-spacing: -.01em;
  font-variation-settings: "wdth" 118; color: var(--ink);
}
.count { font-weight: 800; font-style: italic; font-size: 15px; color: var(--muted); letter-spacing: .08em; }
.count b { color: var(--ink); font-size: 22px; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.offer {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 88px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  animation: boardIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes boardIn { from { opacity: 0; transform: rotateX(-80deg) translateY(-10px); transform-origin: top; } }
.offer .ic {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2);
}
.offer .ic svg { width: 24px; height: 24px; }
.offer .v { font-weight: 900; font-style: italic; font-size: 30px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 110; }
.offer .v small { font-size: 16px; font-weight: 800; color: var(--ink-2); margin-left: 2px; }
.offer .k { margin-top: 5px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.offer.pickable { cursor: pointer; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.offer.pickable:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .4); }
.offer.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset, 0 20px 40px -24px rgba(0, 0, 0, .35); }
.offer.on .ic { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.offer .radio {
  position: absolute; right: 14px; bottom: 14px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-2); background: var(--panel); transition: all .2s var(--ease);
}
.offer.on .radio { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--yellow); }
.offers.settled .offer { animation: none; }
.offer.best::after {
  content: "BEST"; position: absolute; top: 10px; right: -30px; transform: rotate(35deg);
  background: var(--yellow); color: var(--on-yellow); font-weight: 900; font-size: 11px; letter-spacing: .14em; padding: 3px 34px;
}
.offer.none { opacity: .45; }
.badge-apay {
  display: inline-grid; place-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 900;
  letter-spacing: .06em; background: #232f3e; color: #fff; font-style: normal; vertical-align: 3px; margin-left: 6px;
}

/* ------------------------------------------------------------ the field: bikes */

.bikes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.bike {
  position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s;
  animation: launch .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes launch { from { opacity: 0; transform: translateX(-60px) skewX(-8deg); } }
.bike:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.bike.out { opacity: .5; }
.stage { position: relative; aspect-ratio: 16 / 10; background: var(--stage); display: grid; place-items: center; overflow: hidden; }
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-conic-gradient(#0b0b0b 0 25%, #fff 0 50%) 0 0 / 10px 10px; opacity: .9;
}
.stage img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.bike:hover .stage img { transform: translateX(10px) scale(1.05); }
.stage .no-img { width: 70px; height: 70px; color: #bbb; }
.kind-tag {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 28px; display: grid; place-items: center;
  background: #0b0b0b; color: #fff; border-radius: 4px; transform: skewX(var(--skew));
}
.kind-tag svg { width: 20px; height: 20px; transform: skewX(10deg); }
.kind-tag.ev { background: var(--yellow); color: var(--on-yellow); }
.deal-tag {
  position: absolute; top: 10px; right: 10px; padding: 4px 10px; background: var(--red); color: #fff;
  font-weight: 900; font-style: italic; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; transform: skewX(var(--skew)); border-radius: 3px;
}
.pin {
  position: absolute; top: 44px; left: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); display: grid; place-items: center;
}
.pin svg { width: 16px; height: 16px; }
.pin .p-on { display: none; }
.pin[aria-pressed="true"] { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.pin[aria-pressed="true"] .p-on { display: block; }
.pin[aria-pressed="true"] .p-add { display: none; }

.bike-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bike-name {
  margin: 0; font-weight: 900; font-style: italic; font-size: 24px; line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
  font-variation-settings: "wdth" 112;
}
.bike-name small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--muted); margin-bottom: 4px; font-variation-settings: "wdth" 100; }
.bike-name .spec { display: inline-block; margin-left: 6px; font-size: 13px; color: var(--muted); font-weight: 800; letter-spacing: .02em; vertical-align: 3px; }

/* the math - a timing sheet */
.math { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; margin-top: auto; }
.math li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.math .lbl { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.math .lbl svg { width: 17px; height: 17px; }
.math .lbl .bk {
  font-size: 11px; font-weight: 900; letter-spacing: .06em; padding: 1px 6px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink-2);
}
.math .n { font-weight: 800; font-size: 16px; }
.math .mrp .n { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; font-size: 17px; }
.math .minus .n { color: var(--green); }
.math .cash .n { color: var(--green); }
.math .cash .n::after { content: " ↺"; font-size: 13px; opacity: .8; }
.math .eq {
  margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: var(--yellow); color: var(--on-yellow);
  transform: skewX(var(--skew));
}
.math .eq > * { transform: skewX(10deg); }
.math .eq .lbl { color: var(--on-yellow); font-weight: 900; font-size: 22px; font-style: italic; }
.math .eq .n { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.02em; font-variation-settings: "wdth" 112; }

.via { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
.via .chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 5px;
  background: var(--panel-2); border: 1px solid var(--line-2);
}
.via .chip svg { width: 15px; height: 15px; }
.via .chip.apay { background: #232f3e; border-color: #37475a; color: #fff; }
.via .chip.apay b { color: #ff9900; }

.buy {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; overflow: hidden;
  background: var(--red); color: #fff; text-decoration: none; border-radius: 8px;
  font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: .12em; text-transform: uppercase;
  transform: skewX(var(--skew)); transition: box-shadow .3s, background .2s;
  box-shadow: 0 12px 24px -12px rgba(224, 22, 12, .7);
}
.buy > * { transform: skewX(10deg); position: relative; z-index: 1; }
.buy svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.buy::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-102%);
  background: repeating-conic-gradient(rgba(0, 0, 0, .28) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
  transition: transform .45s var(--ease);
}
.buy:hover::before { transform: none; }
.buy:hover svg { transform: skewX(10deg) translateX(6px); }
.buy:hover { box-shadow: 0 16px 32px -12px rgba(224, 22, 12, .85); }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 1240px; margin: 20px auto 0; padding: 22px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted);
}
.foot-logo { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 16px; color: var(--ink); }
.foot-logo b { color: var(--red); }

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translate(-50%, 20px);
  background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; border-radius: 6px; font-weight: 800;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* green-light flash when a brand is picked */
.flash { position: fixed; inset: 0; z-index: 80; pointer-events: none; background: radial-gradient(circle at 50% 40%, rgba(255, 42, 31, .28), transparent 60%); animation: flash .6s ease-out both; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* ------------------------------------------------------------ small screens */

@media (max-width: 720px) {
  .top { padding: 0 16px; height: 56px; }
  .logo-word { font-size: 21px; }
  .track { top: 56px; }
  .track-in { padding: 42px 12px 8px; }
  .lane { left: calc(12px + 12.5%); right: calc(12px + 12.5%); top: 55px; }
  .cps b { font-size: 10px; letter-spacing: .1em; }
  .grid-start { min-height: auto; padding-top: 18px; }
  .start-in, .pit-in, .field-in { padding-left: 16px; padding-right: 16px; }
  .title { margin-bottom: 20px; }
  .brands { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand { height: 64px; padding: 0 12px; }
  .brand .nm { font-size: 16px; }
  .brand .no { min-width: 32px; height: 28px; font-size: 15px; }
  .kind { width: 42px; height: 36px; }
  .offers { grid-template-columns: 1fr 1fr; }
  .offer { padding: 12px; gap: 10px; min-height: 76px; }
  .offer .ic { width: 38px; height: 38px; }
  .offer .v { font-size: 22px; }
  .bikes { grid-template-columns: 1fr; }
  .foot { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rain, .speed { display: none; }
}

.pit, .field { scroll-margin-top: 164px; }

/* ------------------------------------------------------------ broadcast (unlisted page only) */

.fab {
  position: fixed; z-index: 45; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 22px 0 18px; border: 0; border-radius: 8px; transform: skewX(var(--skew));
  background: var(--yellow); color: var(--on-yellow); font-weight: 900; font-style: italic; font-size: 17px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 20px 40px -14px rgba(255, 214, 10, .6);
}
.fab > * { transform: skewX(10deg); }
.fab svg { width: 22px; height: 22px; }
.fab em { font-style: normal; min-width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-size: 13px; }
.bc-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.bc-scrim.on { opacity: 1; }
.bc {
  position: fixed; z-index: 70; inset: 16px; margin: auto; max-width: 1120px; max-height: 860px; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); transition: opacity .25s, transform .35s var(--ease);
}
.bc.on { opacity: 1; transform: none; }
.bc-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 22px 10px; border-top: 6px solid transparent;
  border-image: repeating-linear-gradient(90deg, #fff 0 12px, #0b0b0b 12px 24px) 6; }
.bc-head h2 { margin: 0; font-weight: 900; font-style: italic; font-size: 28px; text-transform: uppercase; }
.bc-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bc-x { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); display: grid; place-items: center; }
.bc-x svg { width: 18px; height: 18px; }
.bc-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 8px 22px 22px; }
.bc-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bc-snap { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; place-items: center; }
.bc-snap canvas { width: 100%; max-height: 560px; height: auto; object-fit: contain; aspect-ratio: 1080 / 1350; border-radius: 6px; }
.bc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-btn {
  flex: 1 1 auto; height: 46px; padding: 0 16px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel-2);
  font-weight: 900; font-style: italic; letter-spacing: .08em; text-transform: uppercase; transform: skewX(var(--skew));
}
.bc-btn.hot { background: var(--red); border-color: var(--red); color: #fff; }
.bc-row { display: flex; justify-content: space-between; align-items: center; }
.bc-seg { display: flex; gap: 6px; }
.bc-seg button { height: 36px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .06em; transform: skewX(var(--skew)); }
.bc-seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bc-count { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bc-count.over { color: var(--red); }
.bc-text {
  flex: 1; min-height: 340px; resize: vertical; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: 500 13.5px/1.55 ui-monospace, Consolas, monospace; outline: none;
}
.bc-text:focus { border-color: var(--ink); }
@media (max-width: 860px) {
  .bc { inset: 0; border-radius: 0; max-height: none; }
  .bc-body { grid-template-columns: 1fr; }
  .fab span { display: none; }
}


/* ============================================================ three screens (2026-09-28) */

.cpb { all: unset; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.cpb:disabled { cursor: default; }
.cpb:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 8px; }
.cps li.done .cpb:hover .cp { transform: scale(1.1); }
.track.finish .cps li:last-child .cp { background: var(--ink); color: #fff; animation: wave .4s ease-in-out 5 alternate; }
@keyframes wave { from { transform: rotate(-12deg) scale(1.15); } to { transform: rotate(12deg) scale(1.15); } }

.race { position: relative; overflow: hidden; padding-bottom: 30px; min-height: calc(100vh - 150px); }
.race .rain, .race .speed { position: absolute; inset: 0; }

.intro {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 18px 22px 0;
  max-height: 260px; overflow: hidden; transition: max-height .55s var(--ease), opacity .4s, transform .55s var(--ease), padding .55s var(--ease);
}
.intro .title { margin: 0 0 8px; }
.intro.tucked { max-height: 0; opacity: 0; transform: translateY(-40px) scale(.9); padding-top: 0; transform-origin: left top; }

.rail-wrap { position: relative; z-index: 2; overflow: hidden; transition: height .45s var(--ease); }
.rail { display: flex; width: 300%; align-items: flex-start; transition: transform .6s var(--ease); }
.rail[data-at="1"] { transform: translateX(0); }
.rail[data-at="2"] { transform: translateX(-33.3333%); }
.rail[data-at="3"] { transform: translateX(-66.6667%); }
.pane { width: 33.3333%; padding: 18px max(22px, calc((100vw - 1240px) / 2 + 22px)) 26px; transition: opacity .45s; }
.rail[data-at="1"] .pane:not(#pane1), .rail[data-at="2"] .pane:not(#pane2), .rail[data-at="3"] .pane:not(#pane3) { opacity: .15; pointer-events: none; }
.pane-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; min-height: 42px; }
.pane-head .kinds { margin-left: auto; }
.backbtn {
  width: 42px; height: 40px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); display: grid; place-items: center;
  transform: skewX(var(--skew)); transition: background .2s, transform .2s var(--ease);
}
.backbtn svg { width: 20px; height: 20px; transform: skewX(10deg) rotate(180deg); }
.backbtn:hover { background: var(--ink); color: #fff; }
.pane-brand { font-weight: 900; font-style: italic; font-size: 30px; text-transform: uppercase; letter-spacing: -.01em; font-variation-settings: "wdth" 118; line-height: 1; }
.n-offers { font-weight: 800; font-style: italic; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.n-offers b { color: var(--red); font-size: 24px; margin-right: 3px; }
.pane-head .count { margin-left: auto; }

/* brand tiles now carry the best saving */
.brand { height: 96px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; column-gap: 8px; row-gap: 6px; }
.brand .sv { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; font-style: italic; color: var(--green); letter-spacing: .02em; }
.brand .sv svg { width: 13px; height: 13px; }
.brand[aria-checked="true"] .sv { color: #fff; }

/* Prime switch */
.prime { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.prime input { position: absolute; opacity: 0; pointer-events: none; }
.prime .sw { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; transition: background .2s; }
.prime .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.prime input:checked + .sw { background: #00a8e1; }
.prime input:checked + .sw::after { transform: translateX(18px); }
.prime input:focus-visible + .sw { outline: 2.5px solid var(--red); outline-offset: 2px; }
.prime b { font-weight: 900; font-style: italic; font-size: 15px; color: #0079a3; letter-spacing: .02em; }
.prime input:not(:checked) ~ b { color: var(--muted); }

.extras { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.extras:empty { display: none; }
.xchip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.xchip svg { width: 16px; height: 16px; }
.xchip b { color: var(--green); font-weight: 900; font-style: italic; font-size: 15px; }

/* the ways to pay - the heart of the site */
.routes { display: grid; gap: 12px; }
.route {
  position: relative; display: grid; grid-template-columns: 60px 1fr auto 26px; align-items: center; gap: 16px; text-align: left;
  width: 100%; padding: 18px 20px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
  animation: slideIn .5s var(--ease) both; animation-delay: calc(.25s + var(--i, 0) * 70ms);
}
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } }
.routes.settled .route { animation: none; }
.route:hover { transform: translateX(4px); border-color: var(--line-2); box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .45); }
.route.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset, 0 18px 40px -24px rgba(0, 0, 0, .4); }
.route.none { cursor: default; grid-template-columns: 60px 1fr; }
.r-ic { width: 60px; height: 60px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); }
.r-ic svg { width: 30px; height: 30px; }
.r-ic.apay { background: #232f3e; border-color: #232f3e; color: #ff9900; }
.route.on .r-ic:not(.apay) { background: var(--yellow); border-color: var(--yellow); }
.r-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.r-title { font-weight: 900; font-style: italic; font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; font-variation-settings: "wdth" 110; display: inline-flex; align-items: center; gap: 8px; }
.r-sub { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.r-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.r-stack span { font-size: 12.5px; font-weight: 800; padding: 3px 8px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.r-stack i { font-style: normal; font-weight: 900; color: var(--red); }
.r-val { text-align: right; font-weight: 900; font-style: italic; font-size: 30px; letter-spacing: -.02em; color: var(--green); font-variation-settings: "wdth" 112; line-height: 1; white-space: nowrap; }
.r-val small { display: block; font-size: 11px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.route .radio { position: relative; right: auto; bottom: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--panel); transition: all .2s var(--ease); }
.route.on .radio { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 5px var(--yellow); }
.route.best::after {
  content: "BEST"; position: absolute; top: 12px; right: -34px; transform: rotate(35deg);
  background: var(--yellow); color: var(--on-yellow); font-weight: 900; font-size: 11px; letter-spacing: .14em; padding: 3px 38px;
}
.apay-mark { font-style: normal; font-size: 12px; font-weight: 900; padding: 2px 6px; border-radius: 4px; background: #232f3e; color: #fff; letter-spacing: 0; }
.apay-mark b { color: #ff9900; }
.route-go { margin-top: 12px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--red); color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .1em; transform: skewX(var(--skew)); }
.route-go svg { width: 20px; height: 20px; }

.fine-print { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.fine-print summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); list-style: none; }
.fine-print summary::-webkit-details-marker { display: none; }
.fine-print summary svg { width: 16px; height: 16px; color: var(--red); }
.fine-print summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.fine-print[open] summary::after { content: "−"; }
.fine-print > div { padding: 0 16px 14px; display: grid; gap: 6px; }
.fine-print p { margin: 0; font-size: 13px; color: var(--ink-2); padding-left: 12px; border-left: 3px solid var(--line-2); }
.fine-print p small { color: var(--muted); font-weight: 700; margin-left: 4px; }

/* 03: paying pill + stacked math with words */
.pay-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--panel); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; transform: skewX(var(--skew)); }
.pay-pill > * { transform: skewX(10deg); }
.pay-pill svg { width: 18px; height: 18px; }
.pay-pill small { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.pay-pill.best { background: var(--yellow); border-color: var(--yellow); }
.math .lbl { font-size: 13px; font-weight: 700; }
.math .mrp.plain .n { text-decoration: none; color: var(--ink); }
.math .miss .lbl, .math .miss .n { color: var(--muted); font-style: italic; }
.emi-tag { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 900; font-style: italic; font-size: 13px; }
.emi-tag svg { width: 15px; height: 15px; }
.alts { display: flex; gap: 6px; flex-wrap: wrap; }
.alt {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 6px;
  border: 1px dashed var(--line-2); background: var(--panel-2); font-size: 12px; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em;
}
.alt svg { width: 15px; height: 15px; }
.alt b { color: var(--ink); font-size: 13px; }
.alt:hover { border-style: solid; border-color: var(--ink); }

@media (max-width: 720px) {
  .intro { padding: 12px 16px 0; }
  .pane { padding: 14px 16px 22px; }
  .pane-brand { font-size: 22px; }
  .brand { height: 78px; }
  .route { grid-template-columns: 44px 1fr 22px; gap: 12px; padding: 14px; }
  .r-ic { width: 44px; height: 44px; }
  .r-ic svg { width: 22px; height: 22px; }
  .r-title { font-size: 17px; }
  .r-val { grid-column: 2 / 3; grid-row: 2; text-align: left; font-size: 24px; }
  .r-val small { display: inline; margin-right: 6px; }
  .route .radio { grid-column: 3; grid-row: 1; }
  .prime { margin-left: 0; }
}


/* ============================================================ offer lab (step 2, 2026-09-28) */

.apay-t input:checked + .sw { background: #232f3e; }
.apay-t b { display: inline-flex; align-items: center; gap: 5px; color: #232f3e; }
.apay-t b svg { width: 16px; height: 16px; color: #ff9900; }
.apay-t + .prime { margin-left: 4px; }

.lab { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.rtabs { display: grid; gap: 8px; position: sticky; top: 170px; }
.rtab {
  position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 12px 14px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background .2s;
  animation: slideIn .45s var(--ease) both; animation-delay: calc(.2s + var(--i, 0) * 60ms);
}
.routes.settled .rtab, .settled .rtab { animation: none; }
.rtab:hover { transform: translateX(3px); border-color: var(--line-2); }
.rtab.on { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.rtab .r-ic { width: 44px; height: 44px; border-radius: 10px; }
.rtab .r-ic svg { width: 22px; height: 22px; }
.rtab.on .r-ic:not(.apay) { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.rt-main { display: flex; flex-direction: column; min-width: 0; }
.rt-title { font-weight: 900; font-style: italic; font-size: 17px; text-transform: uppercase; line-height: 1.05; }
.rt-title i { font-style: italic; color: var(--red); }
.rtab.on .rt-title i { color: var(--yellow); }
.rt-sub { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rtab.on .rt-sub { color: rgba(255, 255, 255, .6); }
.rt-val { font-weight: 900; font-style: italic; font-size: 20px; color: var(--green); text-align: right; line-height: 1; white-space: nowrap; }
.rt-val small { display: block; font-size: 9.5px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.rtab.on .rt-val { color: var(--yellow); }
.rt-best { position: absolute; top: 0; right: 0; background: var(--yellow); color: var(--on-yellow); font-size: 9.5px; font-weight: 900; letter-spacing: .12em; padding: 2px 7px; border-bottom-left-radius: 6px; }

.anatomy { background: var(--panel); border: 1.5px solid var(--ink); border-radius: 14px; padding: 18px 20px 20px; display: grid; gap: 16px; animation: popIn .35s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(8px); } }
.an-head { display: flex; align-items: center; gap: 14px; }
.r-ic.big { width: 58px; height: 58px; flex: none; }
.r-ic.big svg { width: 30px; height: 30px; }
.an-title { font-weight: 900; font-style: italic; font-size: 26px; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; font-variation-settings: "wdth" 112; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.who svg { width: 16px; height: 16px; color: var(--muted); }
.who span { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); }
.who .mode { background: var(--ink); color: #fff; border-color: var(--ink); letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.an-sec { display: grid; gap: 8px; }
.an-cap { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.sbar { display: flex; height: 46px; border-radius: 8px; overflow: hidden; gap: 3px; }
.seg { display: flex; align-items: center; justify-content: center; min-width: 0; color: #fff; font-style: italic; font-size: 16px; animation: grow .6s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.seg b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; font-weight: 900; }
.s1 { background: var(--ink); }
.s2 { background: var(--red); }
.s3 { background: #ff9900; color: #1b1b1b; }
.seg.s3 { color: #1b1b1b; }
.slegend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.slegend span { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; }
.slegend small { color: var(--muted); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; align-self: center; }

.ladder2 { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.l2-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.l2-head svg { width: 16px; height: 16px; color: var(--red); }
.l2-steps { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.l2 { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; }
.l2-bar {
  display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; border-radius: 6px 6px 2px 2px;
  background: var(--line-2); color: var(--ink-2); font-weight: 900; font-style: italic; font-size: 13px;
  animation: rise2 .6s var(--ease) both; transform-origin: bottom;
}
@keyframes rise2 { from { transform: scaleY(0); } }
.l2.hit .l2-bar { background: var(--red); color: #fff; }
.l2.here .l2-bar { box-shadow: 0 0 0 3px var(--yellow); }
.l2-min { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.l2-n { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.l2-n svg { width: 16px; height: 16px; }
.l2.hit .l2-n { color: var(--ink); }
.apay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ag { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.ag b { font-weight: 900; font-style: italic; font-size: 26px; line-height: 1; }
.ag small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ag.on { background: #232f3e; border-color: #232f3e; color: #fff; }
.ag.on b { color: #ff9900; }
.ag.no { color: var(--muted); }
.ag.no svg { width: 22px; height: 22px; }

.per { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.pr { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 8px 12px; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.pr:nth-child(odd) { background: var(--panel-2); }
.pm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp { color: var(--muted); font-weight: 700; }
.po { color: var(--green); font-weight: 900; min-width: 70px; text-align: right; }
.pf { font-weight: 900; font-style: italic; background: var(--yellow); padding: 1px 8px; border-radius: 4px; min-width: 92px; text-align: right; }
.pr.miss .po { color: var(--muted); }
.pr.miss .pf { background: var(--panel-2); }
.anatomy .route-go { justify-self: start; margin-top: 0; }
.lab-empty { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--panel); border-radius: 12px; }
.lab-empty svg { width: 26px; height: 26px; }
.lab-empty .route-go { margin: 0 0 0 auto; }

@media (max-width: 860px) {
  .lab { grid-template-columns: 1fr; }
  .rtabs { position: static; display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; padding-bottom: 4px; }
  .rtabs::-webkit-scrollbar { display: none; }
  .rtab { flex: 0 0 240px; }
  .anatomy { padding: 14px; }
  .an-title { font-size: 20px; }
  .l2-steps { height: 110px; gap: 5px; }
  .l2-bar { font-size: 11px; }
  .pr { grid-template-columns: 1fr auto auto; }
  .pp { display: none; }
}

/* ------------------------------------------------------------ compact bike card (BUY in first view) */
.bikes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.stage { aspect-ratio: 2 / 1; }
.stage img { width: 78%; height: 88%; }
.bike-body { padding: 12px 14px 14px; gap: 9px; }
.bike-name { font-size: 21px; }
.bike-name small { margin-bottom: 2px; }
.math { gap: 2px; }
.math li { min-height: 22px; }
.math .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; gap: 6px; font-size: 13px; }
.math .lbl svg { flex: none; width: 16px; height: 16px; }
.math .n { flex: none; white-space: nowrap; font-size: 15px; }
.math .mrp .n { font-size: 15px; }
.math .cash .n::after { content: " ↺"; }
.math .eq { margin-top: 4px; padding: 6px 12px; }
.math .eq .lbl { font-size: 20px; }
.math .eq .n { font-size: 26px; }
.buy { height: 46px; font-size: 18px; }

/* final price + BUY on one line, so BUY is in the first view */
.close { display: flex; align-items: stretch; gap: 8px; margin-top: auto; }
.close .eq {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 14px; height: 50px; border-radius: 8px; background: var(--yellow); color: var(--on-yellow); transform: skewX(var(--skew));
}
.close .eq > * { transform: skewX(10deg); }
.close .eq .lbl { font-weight: 900; font-style: italic; font-size: 20px; }
.close .eq .n { font-weight: 900; font-style: italic; font-size: 25px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 108; }
.close .buy { flex: none; width: 118px; height: 50px; font-size: 17px; letter-spacing: .1em; }
.math { margin-top: 0; }

/* a slimmer track */
.track-in { padding-top: 34px; padding-bottom: 6px; }
.lane { top: 47px; }
.rider { top: -40px; width: 40px; height: 28px; margin-left: -20px; }
.rider-plate { width: 40px; height: 28px; }
.rider svg { width: 26px; height: 22px; }
.cp { width: 26px; height: 26px; }
.cp svg { width: 13px; height: 13px; }
.cps b { font-size: 10px; }
.pane { padding-top: 12px; }
.pane-head { margin-bottom: 10px; }
.pit, .field { scroll-margin-top: 140px; }
@media (max-width: 720px) {
  .track-in { padding-top: 32px; }
  .lane { top: 45px; }
  .close .eq .n { font-size: 22px; }
  .close .buy { width: 100px; }
}
.close .buy { width: 96px; padding: 0; gap: 6px; }
.close .eq { padding: 0 10px; }
.close .eq .n { font-size: 23px; }


/* ============================================================ step 2 = the grid + timing sheet (2026-09-28) */

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; align-items: stretch; }
.pos {
  position: relative; display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%;
  padding: 16px 16px 14px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
  animation: gridUp .5s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * 80ms);
}
@keyframes gridUp { from { opacity: 0; transform: translateY(24px); } }
.settled .pos { animation: none; }
.pos:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .45); }
.pos.on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink) inset, 0 22px 44px -26px rgba(0, 0, 0, .5); }
.pos.p1::before {                                   /* pole position: chequered corner */
  content: ""; position: absolute; right: 0; top: 0; width: 70px; height: 70px; opacity: .12;
  background: repeating-conic-gradient(#0b0b0b 0 25%, transparent 0 50%) 0 0 / 14px 14px;
  -webkit-mask: linear-gradient(225deg, #000 30%, transparent 70%); mask: linear-gradient(225deg, #000 30%, transparent 70%);
}
.p-no {
  position: absolute; top: 14px; right: 14px; min-width: 40px; height: 30px; padding: 0 8px; display: grid; place-items: center;
  font-weight: 900; font-style: italic; font-size: 18px; border-radius: 5px; background: var(--ink); color: #fff; transform: skewX(var(--skew));
}
.pos.p1 .p-no { background: var(--yellow); color: var(--on-yellow); }
.p-top { display: flex; align-items: center; gap: 12px; padding-right: 56px; }
.p-top .r-ic { width: 46px; height: 46px; flex: none; border-radius: 10px; }
.p-top .r-ic svg { width: 24px; height: 24px; }
.p-name { display: flex; flex-direction: column; font-weight: 900; font-style: italic; font-size: 19px; text-transform: uppercase; line-height: 1.05; }
.p-name i { color: var(--red); font-style: italic; }
.p-name small { font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.p-save { font-weight: 900; font-style: italic; font-size: 34px; line-height: 1; color: var(--green); letter-spacing: -.02em; font-variation-settings: "wdth" 112; }
.p-save small { display: block; font-size: 10.5px; font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

.rcpt {
  display: grid; gap: 3px; padding: 10px 12px 8px; border-radius: 8px; background: var(--panel-2);
  border: 1px dashed var(--line-2); font-variant-numeric: tabular-nums;
}
.rc-cap { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rc b { color: var(--green); font-weight: 900; }
.rc.tot { margin-top: 3px; padding-top: 5px; border-top: 1px solid var(--line-2); color: var(--ink); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; align-items: center; }
.rc.tot b { color: var(--on-yellow); background: var(--yellow); padding: 1px 8px; border-radius: 4px; font-size: 15px; }

.conds { display: flex; flex-wrap: wrap; gap: 5px; }
.conds span { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.steps { display: flex; gap: 4px; }
.steps span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); line-height: 1.1; }
.steps b { font-size: 12.5px; font-weight: 900; font-style: italic; color: var(--muted); }
.steps small { font-size: 10px; font-weight: 800; color: var(--muted); }
.steps .hit { background: var(--red); border-color: var(--red); }
.steps .hit b, .steps .hit small { color: #fff; }

.p-pick {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 8px;
  border: 1.5px solid var(--line-2); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--ink-2);
}
.p-pick svg { width: 16px; height: 16px; }
.pos.on .p-pick { background: var(--ink); border-color: var(--ink); color: #fff; }

/* timing sheet */
.timing { margin-top: 16px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.ts-cap { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink); color: #fff; }
.ts-cap svg { width: 18px; height: 18px; }
.ts-cap b { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.ts-cap span { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.k-fast { width: 14px; height: 14px; border-radius: 3px; background: var(--yellow); }
.ts-scroll { overflow-x: auto; }
.ts-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) repeat(var(--cols), minmax(118px, 1fr)); min-width: min-content; border-top: 1px solid var(--line); }
.ts-row:nth-child(odd):not(.ts-head) { background: var(--panel-2); }
.ts-head { border-top: 0; background: var(--bg-2); }
.ts-bike { display: flex; flex-direction: column; justify-content: center; padding: 9px 14px; min-width: 0; }
.ts-bike b { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-bike small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.ts-head .ts-bike svg { width: 22px; height: 22px; color: var(--muted); }
.ts-col, .ts-cell { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; text-align: center; transition: background .15s; }
.ts-col { flex-direction: column; gap: 2px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.ts-col b { font-weight: 900; font-style: italic; font-size: 13px; color: var(--muted); }
.ts-col svg { width: 18px; height: 18px; }
.ts-col.on { background: var(--ink); color: #fff; }
.ts-col.on b { color: var(--yellow); }
.ts-cell { flex-direction: column; gap: 0; font-variant-numeric: tabular-nums; }
.ts-cell b { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.ts-cell small { font-size: 11px; font-weight: 800; color: var(--green); }
.ts-cell.on { box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink); }
.ts-cell.fast { background: var(--yellow) !important; }
.ts-cell.fast b { font-style: italic; font-weight: 900; }
.ts-cell.fast small { color: var(--on-yellow); }
.ts-cell:hover { background: rgba(0, 0, 0, .05); }
.ts-cell.none { color: var(--muted); cursor: default; }
.ts-col:focus-visible, .ts-cell:focus-visible { outline: 2.5px solid var(--red); outline-offset: -3px; }

/* the next-step bar */
.next-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(243, 242, 238, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
body.at2 .next-bar { transform: none; }
.nb-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nb-what { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nb-what .r-ic { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.nb-what .r-ic svg { width: 22px; height: 22px; }
.nb-what b { display: block; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 16px; line-height: 1.1; }
.nb-what small { display: block; font-size: 12.5px; font-weight: 700; color: var(--green); }
.nb-go {
  flex: none; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .1em; font-size: 17px;
  transform: skewX(var(--skew)); box-shadow: 0 12px 24px -12px rgba(224, 22, 12, .8); animation: nudge 2.4s var(--ease) 1.2s infinite;
}
.nb-go > * { transform: skewX(10deg); }
.nb-go svg { width: 22px; height: 22px; }
@keyframes nudge { 0%, 80%, 100% { transform: skewX(var(--skew)); } 88% { transform: skewX(var(--skew)) translateX(6px); } }
body.at2 .race { padding-bottom: 96px; }

@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .p-save { font-size: 28px; }
  .nb-go { padding: 0 16px; font-size: 14px; height: 48px; }
  .nb-go span { max-width: 120px; }
  .nb-what small { display: none; }
}

/* step 2: a plain NEXT beside the brand name (the sticky bar is gone) */
.next-bar { display: none; }
body.at2 .race { padding-bottom: 30px; }
.head-next {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 6px;
  background: var(--red); color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .1em; font-size: 15px;
  transform: skewX(var(--skew)); box-shadow: 0 10px 20px -12px rgba(224, 22, 12, .8); transition: box-shadow .2s;
}
.head-next > * { transform: skewX(10deg); }
.head-next svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.head-next:hover svg { transform: skewX(10deg) translateX(4px); }

/* photos: pinned inside the stage so tall shots scale down instead of spilling under the chequer strip */
.stage img {
  position: absolute; left: 8%; right: 8%; top: 7%; bottom: calc(10px + 7%);
  width: 84%; height: calc(86% - 10px); object-fit: contain; object-position: center;
}
.bike:hover .stage img { transform: translateX(6px) scale(1.03); }

/* ------------------------------------------------------------ ranges, flags, variant picker */
.p-save .rng { font-size: 22px; color: var(--green); opacity: .75; margin-right: 6px; }
.p-save .rng i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; }
.p-wins { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 800; color: var(--ink-2); padding: 4px 9px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); }
.p-wins svg { width: 14px; height: 14px; color: var(--green); }
.p-wins b { font-weight: 900; }
.p-wins.zero { color: var(--muted); }
.p-wins.zero svg { color: var(--muted); }
.pos.p1 .p-wins { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.pos.p1 .p-wins svg { color: var(--on-yellow); }

.bikes.settled .bike { animation: none; }

.vpick {
  position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 7px;
  border: 1.5px solid var(--line-2); background: var(--panel-2); cursor: pointer;
}
.vpick:hover, .vpick:focus-within { border-color: var(--ink); }
.vpick svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.vpick select {
  appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; border: 0; background: transparent; outline: none; cursor: pointer;
  font: 800 13px/1 "Saira", system-ui, sans-serif; color: var(--ink); padding-right: 18px; text-overflow: ellipsis;
}
.vpick::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }

.bflag { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: left; }
.bflag svg { width: 15px; height: 15px; flex: none; }
.bflag b { font-weight: 900; }
.bflag.here { background: #e7f5ec; color: var(--green); border: 1px solid #bfe3cc; }
.bflag.more { width: 100%; border: 1.5px solid var(--red); background: #fdecea; color: var(--red-deep); cursor: pointer; }
.bflag.more span { flex: 1; }
.bflag.more:hover { background: var(--red); color: #fff; }

/* Credit / Debit and the Prime rates sit beside the name, saving a line */
.p-name .conds { margin-top: 5px; }
.p-name .conds span { font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: 0; text-transform: none; padding: 2px 6px; }

/* the race cards share one row grid, so every row lines up across cards */
.grid2 { row-gap: 12px; }
.pos { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
.pos > .p-save { align-self: end; }
.pos > .p-wins { align-self: start; }
.p-name .pn { white-space: nowrap; }
.rcpt { display: flex; flex-direction: column; }
.rcpt .rc.tot { margin-top: auto; }
.steps.none { display: block; }
.pos > .p-pick { align-self: end; }

/* bike cards share one row grid too: photo, name, flag, math, price+BUY line up across a row */
.bikes { row-gap: 16px; }
.bike { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 9px; }
.bike > .bike-body { display: contents; }
.bike .bike-name, .bike .bflag, .bike .bflag-slot, .bike .math, .bike .close { margin-left: 14px; margin-right: 14px; }
.bike .bike-name { margin-top: 3px; align-self: start; }
.bike .bflag, .bike .bflag-slot { align-self: start; }
.bike .bflag.more { width: auto; }
.bike .math { align-self: start; }
.bike .close { align-self: end; margin-bottom: 14px; }

/* NEXT lives in the chosen card and races in from the left on every pick */
.p-go { display: flex; gap: 8px; align-self: end; overflow: hidden; }
.p-go .p-pick.on { flex: none; padding: 0 14px; margin: 0; background: var(--ink); border-color: var(--ink); color: #fff; }
.p-next {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .12em; font-size: 15px;
  cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 10px 20px -10px rgba(224, 22, 12, .8);
  animation: dashIn .38s cubic-bezier(.2, 1.2, .3, 1) both;
}
.p-next svg { width: 18px; height: 18px; animation: tug 1.4s var(--ease) .6s infinite; }
.p-next::after {                                   /* one quick shine as it lands */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: shine .6s ease-out .3s both;
}
.p-next:hover { background: var(--red-deep); }
@keyframes dashIn { from { transform: translateX(-110%); opacity: .2; } }
@keyframes shine { to { left: 120%; } }
@keyframes tug { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(5px); } }

/* NEXT launches like the bike cards: skewed, blurred, speed streaks trailing */
.p-next { animation: nextLaunch .5s cubic-bezier(.15, .9, .25, 1.15) both; overflow: visible; }
.p-next b { position: relative; z-index: 1; font-weight: 900; }
.p-next svg { position: relative; z-index: 1; }
@keyframes nextLaunch {
  0%   { transform: translateX(-140%) skewX(-28deg); filter: blur(6px); opacity: 0; }
  60%  { transform: translateX(6%) skewX(-12deg); filter: blur(0); opacity: 1; }
  80%  { transform: translateX(-2%) skewX(-4deg); }
  100% { transform: none; }
}
.p-next .st {
  position: absolute; right: 100%; height: 3px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--red)); opacity: 0;
  animation: streakOut .55s ease-out both;
}
.p-next .st:nth-of-type(1) { top: 9px;  width: 70px; animation-delay: .05s; }
.p-next .st:nth-of-type(2) { top: 18px; width: 110px; animation-delay: .1s; background: linear-gradient(90deg, transparent, var(--yellow)); }
.p-next .st:nth-of-type(3) { top: 27px; width: 55px; animation-delay: .15s; }
@keyframes streakOut {
  0%   { opacity: 0; transform: translateX(-30px) scaleX(.3); transform-origin: right; }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(10px) scaleX(1); }
}
.p-go { overflow: visible; }
.pos { overflow: hidden; }

/* NEXT behaves like BUY: slanted plate, chequered sweep + arrow dart on hover */
.p-next { transform: skewX(var(--skew)); height: 40px; box-shadow: 0 12px 24px -12px rgba(224, 22, 12, .8); transition: box-shadow .3s; }
.p-next b, .p-next svg { transform: skewX(10deg); }
.p-next::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; transform: translateX(-102%); z-index: 0;
  background: repeating-conic-gradient(rgba(0, 0, 0, .28) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
  transition: transform .45s var(--ease);
}
.p-next:hover::before { transform: none; }
.p-next:hover { background: var(--red); box-shadow: 0 16px 32px -12px rgba(224, 22, 12, .95); }
.p-next:hover svg { animation: none; transform: skewX(10deg) translateX(6px); transition: transform .35s var(--ease); }
.p-next .st { z-index: 0; }
.p-go .p-pick.on { transform: skewX(var(--skew)); height: 40px; }
.p-go .p-pick.on > * { transform: skewX(10deg); }
@keyframes nextLaunch {
  0%   { transform: translateX(-140%) skewX(-28deg); filter: blur(6px); opacity: 0; }
  60%  { transform: translateX(6%) skewX(-14deg); filter: blur(0); opacity: 1; }
  80%  { transform: translateX(-2%) skewX(-8deg); }
  100% { transform: skewX(var(--skew)); }
}

/* race cards scale to their own width, so 4 ways to pay still fit (KTM, 2026-09-28) */
.grid2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid2 > .pos { min-width: 0; container-type: inline-size; }
.p-name { min-width: 0; }
.p-name .pn { white-space: normal; overflow-wrap: anywhere; font-size: clamp(15px, 7cqi, 19px); }
.p-save { font-size: clamp(22px, 11.5cqi, 34px); white-space: nowrap; }
.p-save .rng { font-size: clamp(14px, 6.4cqi, 22px); }
.p-save .rng i { font-size: clamp(9px, 3.6cqi, 12px); }
.rcpt, .rc, .rc-cap { min-width: 0; }
.p-go { min-width: 0; }
.p-go .p-pick.on { padding: 0 10px; gap: 5px; font-size: clamp(10px, 4.4cqi, 13px); letter-spacing: .06em; }
.p-next { min-width: 0; font-size: clamp(12px, 5.2cqi, 15px); }
.p-wins { font-size: clamp(10.5px, 4.6cqi, 12px); }

/* every way to pay stays; three per row, the rest wrap to the next line */
.grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid2 { grid-template-columns: 1fr; } }

/* header: Home beside LIVE */
.top-r { display: flex; align-items: center; gap: 10px; }
.home-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 4px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); transform: skewX(var(--skew));
  font-weight: 800; font-style: italic; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.home-btn > * { transform: skewX(10deg); }
.home-btn svg { width: 17px; height: 17px; }
.home-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 720px) { .home-btn span { display: none; } .home-btn { padding: 0 10px; } }

/* Home = the pit garage: hops at rest, chequered sweep + roof lift + door roll-up on hover, dash on click */
.home-btn { position: relative; overflow: hidden; }
.home-btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0; transform: translateX(-102%);
  background: var(--ink) repeating-conic-gradient(rgba(255, 255, 255, .14) 0 25%, transparent 0 50%) 0 0 / 12px 12px;
  transition: transform .4s var(--ease);
}
.home-btn > * { position: relative; z-index: 1; }
.home-btn:hover::before { transform: none; }
.home-btn:hover { background: var(--panel); color: #fff; }
.garage { overflow: visible; animation: hop 4.8s var(--ease) 2.5s infinite; transform-origin: 50% 100%; }
.g-roof { transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); transform-origin: 12px 8px; }
.g-door { transition: transform .35s var(--ease), opacity .3s; transform-origin: 12px 13px; }
.home-btn:hover .g-roof { transform: translateY(-2.2px); }
.home-btn:hover .g-door { transform: scaleY(.15); opacity: .5; }
.home-btn:hover .garage { animation: none; }
@keyframes hop {
  0%, 84%, 100% { transform: skewX(10deg) translateY(0); }
  88% { transform: skewX(10deg) translateY(-3px) rotate(-6deg); }
  92% { transform: skewX(10deg) translateY(0) rotate(0); }
  95% { transform: skewX(10deg) translateY(-1px); }
}
.home-btn.zoom { animation: homeDash .55s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes homeDash {
  0% { transform: skewX(var(--skew)); }
  35% { transform: skewX(-24deg) translateX(-8px); filter: blur(1.5px); }
  100% { transform: skewX(var(--skew)); filter: none; }
}

/* Home wears NEXT's livery: red slanted plate, launch-in with streaks, dark chequered sweep */
.home-btn {
  height: 36px; padding: 0 16px; border: 0; border-radius: 6px; overflow: visible;
  background: var(--red); color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .12em;
  box-shadow: 0 10px 20px -10px rgba(224, 22, 12, .8);
  animation: nextLaunch .5s cubic-bezier(.15, .9, .25, 1.15) .4s both;
}
.home-btn::before {
  border-radius: inherit;
  background: repeating-conic-gradient(rgba(0, 0, 0, .28) 0 25%, transparent 0 50%) 0 0 / 14px 14px;
  transform: translateX(-102%); transition: transform .45s var(--ease);
}
.home-btn:hover { background: var(--red); border-color: transparent; color: #fff; box-shadow: 0 14px 28px -10px rgba(224, 22, 12, .95); }
.home-btn:hover::before { transform: none; }
.home-btn .st {
  position: absolute; right: 100%; height: 3px; border-radius: 3px; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--red)); opacity: 0; animation: streakOut .55s ease-out both;
}
.home-btn .st:nth-of-type(1) { top: 8px;  width: 44px; animation-delay: .45s; }
.home-btn .st:nth-of-type(2) { top: 16px; width: 70px; animation-delay: .5s; background: linear-gradient(90deg, transparent, var(--yellow)); }
.home-btn .st:nth-of-type(3) { top: 24px; width: 36px; animation-delay: .55s; }
.home-btn:hover .st { animation: streakOut .5s ease-out both; }
.home-btn:hover .st:nth-of-type(2) { animation-delay: .05s; }
.home-btn:hover .st:nth-of-type(3) { animation-delay: .1s; }
.home-btn.zoom { animation: homeDash .55s cubic-bezier(.2, .9, .3, 1.1); }
/* a second name so the streaks replay on every hover */
.home-btn:hover .st { animation-name: streakOut2; }
@keyframes streakOut2 {
  0%   { opacity: 0; transform: translateX(-30px) scaleX(.3); transform-origin: right; }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(10px) scaleX(1); }
}
/* reveal the chequer by clipping, so it never peeks outside the button */
.home-btn::before { transform: none; clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease); }
.home-btn:hover::before { clip-path: inset(0 0 0 0); }
/* Home is only offered away from home; showing it replays the launch */
.home-btn { display: none; }
body.away .home-btn { display: inline-flex; }

/* long brand names (Harley-Davidson): two lines, smaller - never "HARLE…" */
.brand .nm.long {
  white-space: normal; text-overflow: clip; line-height: .98; font-size: 15px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
@media (max-width: 720px) { .brand .nm.long { font-size: 12.5px; } }


/* step 2 switches: where you buy (Amazon / Flipkart), how (EMI), and Prime */
.switches { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.switches .prime { margin-left: 0; }
.sw-amz input:checked + .sw { background: #ff9900; }
.sw-amz b { color: #b36b00; }
.sw-fk input:checked + .sw { background: #2874f0; }
.sw-fk b { color: #1a5dcc; }
.sw-emi input:checked + .sw { background: var(--ink); }
.sw-emi b { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.sw-emi b svg { width: 16px; height: 16px; }
.switches input:not(:checked) ~ b { color: var(--muted); }
@media (max-width: 720px) { .switches { margin-left: 0; width: 100%; gap: 8px 12px; } }

/* footer: the affiliate note behind a pill, as on the other boards */
.foot-r { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.disclosure {
  position: relative; height: 26px; padding: 0 12px; border-radius: 4px; cursor: help;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2);
  font: 800 11px/1 "Saira", system-ui, sans-serif; font-style: italic; letter-spacing: .12em; text-transform: uppercase;
  transform: skewX(var(--skew)); transition: background .2s, color .2s, border-color .2s;
}
.disclosure:hover, .disclosure:focus-visible, .disclosure.open { background: var(--ink); color: #fff; border-color: var(--ink); }
.disclosure::after {
  content: attr(data-note);
  position: absolute; bottom: calc(100% + 10px); right: -6px; z-index: 5;
  width: max-content; max-width: min(300px, 80vw); padding: 9px 12px; border-radius: 6px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow);
  font: 600 12.5px/1.45 "Saira", system-ui, sans-serif; font-style: normal; letter-spacing: 0; text-transform: none; text-align: left;
  transform: skewX(10deg) translateY(4px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.disclosure::before {
  content: ""; position: absolute; bottom: calc(100% + 4px); right: 14px; z-index: 5;
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.disclosure:hover::after, .disclosure:focus-visible::after, .disclosure.open::after { opacity: 1; visibility: visible; transform: skewX(10deg); }
.disclosure:hover::before, .disclosure:focus-visible::before, .disclosure.open::before { opacity: 1; visibility: visible; }
/* 6-10 letter names (Triumph, Motovolt, Revolt) step down a size instead of "TRIUM…" */
.brand .nm.mid { font-size: 17px; text-overflow: clip; }
.brand .nm.long { font-size: 14px; }
@media (max-width: 720px) { .brand .nm.mid { font-size: 13.5px; } .brand .nm.long { font-size: 12px; } }

/* Affiliate wears Home's livery: red slanted plate, launch-in, chequered sweep, streaks */
.disclosure {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; overflow: visible;
  border: 0; border-radius: 6px; background: var(--red); color: #fff; cursor: help;
  font: 900 12.5px/1 "Saira", system-ui, sans-serif; font-style: italic; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 10px 20px -10px rgba(224, 22, 12, .8); opacity: 0;
}
.disclosure.in { opacity: 1; animation: nextLaunch .5s cubic-bezier(.15, .9, .25, 1.15) both; }
.disclosure .lbl, .disclosure .info-i { position: relative; z-index: 1; transform: skewX(10deg); }
.disclosure .info-i { width: 16px; height: 16px; animation: tip 5s var(--ease) 3s infinite; transform-origin: 50% 90%; }
@keyframes tip { 0%, 86%, 100% { transform: skewX(10deg) rotate(0); } 90% { transform: skewX(10deg) rotate(-14deg); } 94% { transform: skewX(10deg) rotate(8deg); } }
.disclosure .chk {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; clip-path: inset(0 100% 0 0);
  background: repeating-conic-gradient(rgba(0, 0, 0, .28) 0 25%, transparent 0 50%) 0 0 / 14px 14px;
  transition: clip-path .45s var(--ease);
}
.disclosure:hover .chk, .disclosure:focus-visible .chk, .disclosure.open .chk { clip-path: inset(0 0 0 0); }
.disclosure:hover, .disclosure:focus-visible, .disclosure.open { background: var(--red); color: #fff; box-shadow: 0 14px 28px -10px rgba(224, 22, 12, .95); }
.disclosure .st {
  position: absolute; right: 100%; height: 3px; border-radius: 3px; pointer-events: none; z-index: 0; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--red));
}
.disclosure.in .st { animation: streakOut .55s ease-out both; }
.disclosure:hover .st { animation: streakOut2 .5s ease-out both; }
.disclosure .st:nth-of-type(1) { top: 7px;  width: 40px; animation-delay: .05s; }
.disclosure .st:nth-of-type(2) { top: 15px; width: 64px; animation-delay: .1s; background: linear-gradient(90deg, transparent, var(--yellow)); }
.disclosure .st:nth-of-type(3) { top: 23px; width: 32px; animation-delay: .15s; }
.disclosure::after { background: #0b0b0b; font-weight: 700; }
.disclosure::before { border-top-color: #0b0b0b; }
@media (prefers-reduced-motion: reduce) { .disclosure { opacity: 1; } }
/* visible the moment it has entered, whether or not the launch animation runs */
.disclosure { opacity: 1; }
.disclosure:not(.in) { visibility: hidden; }
.disclosure.in { animation: discIn .5s cubic-bezier(.15, .9, .25, 1.15); }
@keyframes discIn {
  0%   { transform: translateX(-140%) skewX(-28deg); filter: blur(6px); }
  60%  { transform: translateX(6%) skewX(-14deg); filter: blur(0); }
  80%  { transform: translateX(-2%) skewX(-8deg); }
  100% { transform: skewX(var(--skew)); }
}
@media (prefers-reduced-motion: reduce) { .disclosure:not(.in) { visibility: visible; } }


/* About button: Affiliate's twin, a link (no hover note) */
.about-btn { text-decoration: none; cursor: pointer; }
.about-btn::after, .about-btn::before { display: none; }
.about-btn.in { animation-delay: .12s; }
.about-btn .info-i { animation-delay: 5.5s; }

/* ------------------------------------------------------------ about page */
.about-page .top { justify-content: space-between; }
.about-home { display: inline-flex; text-decoration: none; }
.about { max-width: 860px; margin: 0 auto; padding: 36px 22px 40px; }
.ab-kicker { margin: 0 0 8px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--red); }
.about h1 { margin: 0; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.02em; line-height: .98;
  font-size: clamp(30px, 5vw, 52px); font-variation-settings: "wdth" 115; }
.ab-lede { margin: 18px 0 22px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.ab-lede b { color: var(--ink); }
.ab-cta { text-decoration: none; margin: 0 0 12px; }
.about h2 { margin: 38px 0 12px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; font-size: 22px;
  display: flex; align-items: center; gap: 10px; }
.about h2::before { content: ""; width: 18px; height: 18px; flex: none; background: repeating-conic-gradient(#0b0b0b 0 25%, #fff 0 50%) 0 0 / 9px 9px; border-radius: 3px; }
.about p, .about li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.about b { color: var(--ink); }
.ab-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ab-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.ab-steps li::before { content: "0" counter(s); position: absolute; left: 14px; top: 12px; width: 36px; height: 30px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 900; font-style: italic; border-radius: 4px; transform: skewX(var(--skew)); }
.ab-list { padding-left: 20px; display: grid; gap: 8px; }
.ab-faq { display: grid; gap: 8px; }
.ab-faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.ab-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after { content: "+"; font-size: 20px; color: var(--muted); line-height: 1; }
.ab-faq details[open] summary::after { content: "−"; }
.ab-faq details p { margin: 0; padding: 0 16px 14px; }
@media (max-width: 720px) { .about { padding: 24px 16px 30px; } .about-home span { display: none; } .ab-lede { font-size: 16px; } }
