/* Ash Allen Training client app.
   Style: Juggernaut AI and TrainHeroic (dark, card-based, bold sans, one blue accent), in the Ash Allen Training
   brand system from the brand PDF (BRAND_STANDARDS.md): Anton for headlines, Poppins for everything else,
   black / ink / steel panels, glacier blue #30b0e0 as the only accent, the brand topographic map behind it all. */

@font-face { font-family: 'Anton'; src: url(fonts/anton-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(fonts/poppins-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(fonts/poppins-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(fonts/poppins-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(fonts/poppins-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* brand PDF */
  --black: #0b0c0d;
  --ink: #111417;
  --steel: #24272a;
  --grey-d: #4a4f54;
  --grey-m: #aeb2b4;
  --grey-l: #c6c9ca;
  --white: #ffffff;
  --blue: #30b0e0;
  --blue-l: #8fd4f0;
  --blue-d: #17607d;
  --blue-k: #0f3a4c;
  /* roles */
  --bg: var(--black);
  --card: #16191c;
  --card-2: var(--steel);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: var(--white);
  --text-2: var(--grey-l);
  --text-3: var(--grey-m);
  --pb: #e3b04b;           /* trophies only */
  --danger: #e0675a;       /* cancel only */
  --display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 18px;
  --tabbar: 64px;
  --r: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 400 15px/1.5 var(--sans); min-height: 100dvh; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; }
svg { flex: none; }
input:focus-visible, button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.ground { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 40% at 50% 0%, rgba(48, 176, 224, .10), transparent 60%), url(topo.svg) center top / 160% auto repeat-y, var(--bg); }

/* ---------------------------------------------------------------- header */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 10px; }
.top img { height: 26px; width: auto; }
main { max-width: 560px; margin: 0 auto; padding: 4px var(--gutter) 28px; }
.screen.enter { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .screen.enter { animation: none; } * { transition: none !important; } }

/* ---------------------------------------------------------------- type */
h1 { font: 400 34px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 10px 0 14px; }
h2 { font: 400 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 26px 0 10px; color: var(--text); }
h3 { font: 700 17px/1.3 var(--sans); margin: 0; }
p { margin: 8px 0; }
.lede { color: var(--text-3); margin: -6px 0 18px; }
.note { font-size: 13px; color: var(--text-3); }
.quiet { color: var(--text-3); }
.center { text-align: center; }
.pad { padding: 36px 0; }
.greeting { font: 600 15px/1.4 var(--sans); color: var(--text-3); margin: 4px 0 12px; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border-radius: 10px; border: 1px solid var(--line-2); font-weight: 600; transition: transform .1s, background-color .15s, opacity .15s; }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--black); font-weight: 700; }
.btn.primary:hover { background: #45bbe6; }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.link { color: var(--blue); font-weight: 600; padding: 4px 0; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--danger); }
.link.quiet { color: var(--text-3); font-weight: 500; }
.stack { display: grid; gap: 10px; margin-top: 18px; }
.sticky-cta { position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 12px); margin-top: 16px; z-index: 3; }
.sticky-cta .btn { box-shadow: 0 10px 28px rgba(0, 0, 0, .55); }
.sticky-cta .btn:disabled { opacity: 1; background: var(--steel); border-color: var(--steel); color: var(--text-3); }
.iconbtn { width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-2); border-radius: 50%; }
.iconbtn svg, .morelink svg, .wk-nav svg, .chev, .dr-ic svg, .ov-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* cards: the one container */
.card { background: var(--card); border-radius: var(--r); padding: 18px; margin: 0 0 12px; border: 1px solid var(--line); }
.card h3 { font-size: 18px; }
.card-sub { color: var(--text-3); font-size: 13px; margin: 2px 0 6px; }
.card .mt { margin-top: 22px; }

/* ---------------------------------------------------------------- home */
.ticket { position: relative; background: linear-gradient(160deg, #18303b, var(--card) 60%); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 12px; }
.ticket .count { font: 400 clamp(68px, 22vw, 96px)/.95 var(--display); }
.ticket .count.low { color: var(--pb); }
.ticket .label { color: var(--text-2); font-weight: 600; }
.ticket .next { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); font-weight: 600; }
.ticket .next.quiet { color: var(--text-3); font-weight: 500; }
.ticket .plan { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.ticket .mark { position: absolute; right: 18px; top: 18px; width: 40px; height: auto; }
.today-card { display: grid; grid-template-columns: 1fr auto; width: 100%; text-align: left; padding: 16px 18px; margin: 0 0 12px;
  border-radius: var(--r); background: var(--blue); color: var(--black); }
.today-card .k { font-size: 13px; font-weight: 600; opacity: .75; }
.today-card .v { grid-row: 2; font: 400 26px/1.1 var(--display); text-transform: uppercase; }
.today-card .go { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 700; }
.attend { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 12px; border-radius: var(--r); background: rgba(227, 176, 75, .08); border: 1px solid rgba(227, 176, 75, .3); }
.attend .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pb); margin-top: 8px; }
.attend p { margin: 0 0 6px; }

/* rows inside a list */
.folio { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 2px 16px; }
.row { display: block; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .when { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row .date { font-weight: 600; min-width: 0; }
.row .time { font-weight: 600; color: var(--text-2); white-space: nowrap; }
.row .time.done, .row .time.up { color: var(--blue); }
.row .time.trophy-t { color: var(--pb); }
.row .meta { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.row .actions { display: flex; gap: 18px; margin-top: 8px; }
.tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--pb); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }

/* ---------------------------------------------------------------- booking */
.soonest { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.soonest .k { color: var(--text-3); font-size: 13px; }
.soonest .v { font-weight: 700; }
.soonest .btn { white-space: nowrap; flex: none; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter) 6px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 56px; height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text-3); }
.day .dow { font-size: 12px; font-weight: 600; }
.day .num { font: 400 24px/1 var(--display); color: var(--text); }
.day.on { background: var(--blue); border-color: var(--blue); color: var(--black); }
.day.on .num { color: var(--black); }
.timetable { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { min-height: 50px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-feature-settings: "tnum" 1; }
.slot.on { background: var(--blue); border-color: var(--blue); color: var(--black); }
h3 + .timetable { margin-top: 8px; }
#slots h3 { margin: 14px 0 0; font-size: 13px; color: var(--text-3); font-weight: 600; }
.policy { font-size: 13px; color: var(--text-3); margin: 14px 0 0; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-size: 13px; color: var(--text-3); margin: 16px 0 6px; font-weight: 500; }
input[type=email], input[type=tel], input[type=text], textarea {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-size: 16px; }
textarea { padding: 12px 14px; line-height: 1.45; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--grey-d); }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; margin: 16px 0 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.waiver-body { white-space: pre-wrap; max-height: 48vh; overflow: auto; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--text-2); }
.signature input { font-weight: 600; font-size: 20px; }
.signin { padding-top: 9vh; }
.signin img { width: min(100%, 340px); height: auto; margin: 0 0 40px; }

button.plan-row { display: block; }
button.plan-row.on { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; }
button.plan-row.on .time { color: var(--blue); }

/* ---------------------------------------------------------------- tabs and toast */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(17, 20, 23, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tabs.five { grid-template-columns: repeat(5, 1fr); }
.tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 600; }
.tabs button[hidden] { display: none; }
.tabs svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.on { color: var(--blue); }
.toast { position: fixed; left: var(--gutter); right: var(--gutter); top: calc(10px + env(safe-area-inset-top)); z-index: 20; max-width: 520px; margin: 0 auto;
  padding: 12px 16px; border-radius: 12px; background: var(--white); color: var(--black); font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.toast.err { background: var(--danger); color: var(--white); }

/* ================================================================ Train dashboard (Juggernaut) */
.dash-head { text-align: center; margin: 6px 0 4px; }
.dh-big { font: 400 46px/1 var(--display); margin: 0; }
.dh-sub { font-weight: 600; color: var(--text-3); margin: 6px 0 0; }
.chart { display: block; width: 100%; height: auto; margin: 14px 0 4px; }
.chart .b rect { fill: none; stroke: var(--blue); stroke-width: 1.5; }
.chart .b rect.now { fill: var(--blue); }
.chart .l { fill: none; stroke: var(--grey-l); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.chart circle { fill: var(--white); }
.legend { display: flex; gap: 18px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 0; }
.legend .lg-b::before { background: var(--blue); border-radius: 2px; }
.legend .lg-l::before { width: 14px; height: 0; border-top: 2px dotted var(--grey-l); vertical-align: 3px; }
.morelink { display: flex; align-items: center; gap: 2px; margin: 8px 0 0 auto; font-weight: 600; font-size: 14px; color: var(--text-2); }
.weekhead { display: flex; justify-content: space-between; align-items: flex-end; margin: 22px 0 6px; }
.wk-season, .wk-date { margin: 0; color: var(--blue); font-weight: 500; font-size: 17px; line-height: 1.3; }
.wk { margin: 2px 0 0; font-size: 46px; color: var(--blue); }
.wk-nav { display: flex; gap: 6px; padding-bottom: 8px; }
.wk-nav button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-2); border-radius: 50%; }
.daylist { margin-top: 4px; }
.dayrow { display: grid; grid-template-columns: 28px 1fr auto 22px; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dr-t { font-weight: 600; font-size: 19px; }
.dr-m { font-weight: 600; color: var(--blue); font-size: 14px; }
.dr-ic { color: var(--blue); display: grid; place-items: center; }
.chev { color: var(--text-2); }
.dayrow.missed { opacity: .4; }
.dayrow.missed .dr-ic { color: var(--text-2); }
.dayrow.today .dr-t::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-left: 8px; vertical-align: 2px; }

/* ================================================================ session overview (Juggernaut workout page) */
.ov-bar { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; margin: 0 0 12px; }
.ov-back { display: flex; align-items: center; gap: 2px; color: var(--blue); font-weight: 600; font-size: 16px; }
.ov-title { text-align: center; line-height: 1.25; }
.ov-title span { display: block; font-size: 13px; color: var(--blue); font-weight: 500; }
.ov-title strong { display: block; font: 400 22px/1.1 var(--display); text-transform: uppercase; }
.note-card p { margin: 0; color: var(--text-2); }
.note-card .k { color: var(--text-3); font-weight: 600; margin-right: 6px; }

.seg-row { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.seg-row:last-child { border-bottom: 0; }
.seg-row h4 { margin: 0 0 10px; font-weight: 600; font-size: 16px; }
.segmented { display: grid; grid-template-columns: repeat(5, 1fr); border: 1.5px solid var(--blue-d); border-radius: 10px; overflow: hidden; }
.segmented button { min-height: 44px; font-weight: 600; color: var(--blue); border-left: 1.5px solid var(--blue-d); background: var(--black); }
.segmented button:first-child { border-left: 0; }
.segmented button.on { background: var(--blue); color: var(--black); }
.segmented button:disabled { cursor: default; }
.seg-desc { margin: 8px 0 0; color: var(--text-3); font-size: 14px; }

.preview { position: relative; padding-left: 26px; }
.preview::before { content: ""; position: absolute; left: 12px; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: var(--blue); }
.preview header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.preview h3 { font-size: 23px; line-height: 1.2; }
.grp { display: inline-block; font: 700 12px/1 var(--sans); color: var(--blue); border: 1.5px solid var(--blue); border-radius: 6px; padding: 3px 6px; margin-right: 8px; vertical-align: 4px; }
.lastset { color: var(--text-3); margin: 6px 0 0; font-size: 15px; }
.lastset span { font-weight: 700; color: var(--text-2); }
.scheme { font-size: 19px; margin: 8px 0 10px; }
.scheme .wu { font-size: 12px; font-weight: 700; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; vertical-align: 3px; }
.setlist { list-style: none; padding: 0; margin: 0; }
.setlist li { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; }
.setlist .sn { width: 46px; height: 46px; border-radius: 50%; background: var(--black); color: var(--blue); display: grid; place-items: center; font-weight: 600; }
.setlist .sl { font-weight: 700; font-size: 20px; font-feature-settings: "tnum" 1; }
.setlist .sl.hint { color: var(--text-3); font-weight: 500; font-size: 16px; }
.setlist li.done .sn { background: var(--blue); color: var(--black); }
.setlist li.pb .sn { background: var(--pb); color: var(--black); }
.pill { min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--black); color: var(--blue); font-weight: 600; }
.setlist li.done .pill { color: var(--text-3); }
.setlist li.pb .pill { color: var(--pb); }
.exnote { margin: 12px 0 0; color: var(--text-2); }
.exnote span { font-weight: 700; color: var(--text-3); margin-right: 6px; }
.overview .sticky-cta { margin-top: 18px; }

/* ================================================================ the session player (TrainHeroic logging) */
body.in-player { padding-bottom: 0; }
body.in-player .top, body.in-player .tabs { display: none; }
body.in-player main { max-width: none; padding: 0; }
.player { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.ph { position: sticky; top: 0; z-index: 4; background: rgba(11, 12, 13, .96); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; row-gap: 8px; }
.pclose { width: 40px; height: 40px; display: grid; place-items: center; }
.pclose svg, .pn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pdots { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue); }
.pd.done { background: var(--blue); }
.pd.on { width: 22px; height: 22px; }
.pclock { text-align: right; font-weight: 700; color: var(--blue); font-feature-settings: "tnum" 1; }
.ptotals { grid-column: 1 / 4; display: flex; justify-content: center; gap: 24px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.ptotals b { font: 400 26px/1 var(--display); color: var(--text); margin-right: 5px; }
.pbody { flex: 1; padding: 18px var(--gutter) 120px; max-width: 560px; width: 100%; margin: 0 auto; }
.pname { font: 400 32px/1.05 var(--display); text-transform: uppercase; margin: 2px 0 14px; }
.psub { color: var(--text-3); margin: -6px 0 16px; }
.statcard { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
.statcard .k { display: block; font-size: 12px; font-weight: 700; color: var(--text-3); }
.statcard .v { display: block; font: 400 34px/1.05 var(--display); }
.statcard .st-r { border-left: 1px solid var(--line-2); padding-left: 16px; }
.statcard .st-r .v { color: var(--pb); }
.statcard .sub { font-size: 12px; color: var(--text-3); }
.st-pb { grid-column: 1 / 3; margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-style: italic; }
.st-pb svg { width: 22px; height: 22px; fill: none; stroke: var(--pb); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.infocard { display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin-bottom: 14px; }
.vthumb { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; min-height: 90px; }
.vthumb .play { width: 40px; height: 40px; border-radius: 50%; background: var(--white); position: relative; }
.vthumb .play::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 12px solid var(--black); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.vthumb.blank img { width: 46px; height: auto; }
.infocard dl { margin: 0; padding: 4px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.infocard dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.infocard dl div:last-child { border-bottom: 0; }
.infocard dt { font-size: 12px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.infocard dd { margin: 0; text-align: right; font-weight: 700; color: var(--blue); }
.pinstr { font-size: 17px; margin: 0 0 16px; color: var(--text-2); }
.total { color: var(--text-3); } .total strong { font: 400 22px/1 var(--display); color: var(--text); }
.sets { margin-top: 4px; }
.set { display: grid; grid-template-columns: 34px 1fr 1fr 56px; gap: 10px; align-items: center; padding: 6px 0; }
.set.head { font-size: 14px; font-weight: 700; }
.set.head span:nth-child(2), .set.head span:nth-child(3) { text-align: center; }
.set .n { color: var(--text-3); font: 400 24px/1 var(--display); text-align: center; }
.set .in { width: 100%; min-height: 54px; text-align: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--text);
  font-weight: 700; font-size: 22px; font-feature-settings: "tnum" 1; }
.set .in::placeholder { color: var(--grey-d); }
.tick { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--blue); color: var(--black); justify-self: center; display: grid; place-items: center; }
.tick svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.set.done .in { border-color: var(--blue-d); background: var(--blue-k); }
.set.done .tick { background: var(--blue); }
.set.pb .tick { background: var(--pb); border-color: var(--pb); animation: pb .6s cubic-bezier(.2, .9, .3, 1.4); }
.set.pb .in { border-color: rgba(227, 176, 75, .5); background: rgba(227, 176, 75, .1); }
@keyframes pb { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.setctl { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 16px 0; font-weight: 700; font-size: 18px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line-2); font-size: 24px; }
.round.plus { border-color: var(--blue); color: var(--blue); }
.pnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; }
.pn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-weight: 700; }
.pn:last-child { align-items: flex-end; justify-self: end; }
.pn svg { color: var(--blue); }
.pn:disabled { opacity: .35; }
.pn.mid { flex-direction: row; align-items: center; gap: 8px; color: var(--blue); }
.pn.mid.ready { color: #4fc38a; }
.restmenu { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; gap: 6px; padding: 8px; border-radius: 14px; background: var(--steel); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.restmenu[hidden] { display: none; }
.restmenu button { min-width: 54px; min-height: 44px; border-radius: 10px; background: var(--black); font-weight: 700; }
body.in-player .toast { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ================================================================ summary, climb, drafts */
.summit { text-align: center; padding: 26px 0 10px; }
.summit .kicker { font-weight: 700; color: var(--blue); margin: 0; }
.summit h1 { font-size: 46px; margin: 4px 0 0; }
.summit .elev { color: var(--text-3); margin: 0; font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stats .v { font: 400 32px/1.05 var(--display); }
.stats .v.up { color: var(--blue); }
.stats .k { font-size: 13px; color: var(--text-3); font-weight: 600; }
.ticket.climb { background: linear-gradient(160deg, #18303b, var(--card) 65%); }
.climb-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text-3); }
.climb-head .trophies { color: var(--pb); }
.ticket.climb .count .unit { font-size: .4em; color: var(--text-3); }
.ticket.compact .count { font-size: clamp(56px, 18vw, 74px); }
.ridge { display: block; width: 100%; height: 64px; margin: 10px 0 8px; }
.ridge polygon { fill: rgba(48, 176, 224, .10); stroke: var(--blue); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ridge circle { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.bar { height: 5px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); }
.ticket.climb .next { border-top: 0; padding-top: 0; margin-top: 10px; }
.back { display: inline-flex; margin: 4px 0 6px; }
.route { list-style: none; padding: 2px 16px; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.route li { display: flex; justify-content: space-between; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; color: var(--text-3); font-weight: 600; }
.route li:last-child { border-bottom: 0; }
.route li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid var(--grey-d); }
.route li.reached { color: var(--text); }
.route li.reached::before { background: var(--blue); border-color: var(--blue); }
.route li.nextpk { color: var(--blue); }
.route li.nextpk::before { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(48, 176, 224, .2); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 100px; padding: 10px 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.bars span { flex: 1; border: 1.5px solid var(--blue); border-bottom: 0; border-radius: 3px 3px 0 0; min-height: 3px; }
.bars span:last-child { background: var(--blue); }
.draft { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.draft header { display: flex; justify-content: space-between; align-items: baseline; }
.draft .rx { margin: 2px 0 6px; font-weight: 700; color: var(--blue); }
.flag { margin: 8px 0; padding: 10px 12px; border-left: 3px solid var(--pb); background: rgba(227, 176, 75, .08); border-radius: 0 8px 8px 0; font-size: 14px; }
.draft-items { list-style: none; padding: 0; margin: 6px 0; font-size: 14px; }
.draft-items li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.draft-items em { grid-column: 1 / 3; color: var(--text-3); font-size: 13px; }

.ready-card.compact .rc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ready-card.compact .card-sub { margin: 2px 0 0; }

.waiver-admin .rc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.filepick { display: block; margin-top: 12px; color: var(--blue); font-weight: 600; }
.filepick input { display: block; margin-top: 6px; color: var(--text-3); font-size: 13px; }

.top[hidden], .tabs[hidden] { display: none; }
