/* Gridiron Ledger
   Palette: turf (Team A), pylon orange (Team B), chalk, ink, sideline.
   Type: Barlow for text, Barlow Condensed for scores and headings (self-hosted, SIL OFL). */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --turf: #1e6a45;
  --turf-bright: #4fbf80;
  --turf-soft: #e3f0e8;
  --pylon: #f0641e;
  --pylon-ink: #b4410c;
  --pylon-soft: #fde9de;
  --chalk: #ffffff;
  --ink: #15211b;
  --muted: #5d6a63;
  --line: #dde3df;
  --sideline: #f2f4f1;
  --field-dark: #17402b;

  --text: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --r: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sideline);
}
a { color: var(--turf); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: .005em; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.125rem; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }

:focus-visible { outline: 3px solid var(--turf-bright); outline-offset: 2px; }

/* ---------- controls ---------- */
select, input[type="number"], input[type="search"], input[type="text"] {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--chalk); border: 1px solid #c9d1cc; border-radius: var(--r);
  padding: 9px 11px; width: 100%; min-height: 44px;
}
select:focus, input:focus { border-color: var(--turf); }
.btn {
  font: inherit; font-weight: 600; font-size: .9375rem;
  min-height: 44px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--turf); background: var(--turf); color: var(--chalk);
  cursor: pointer; white-space: nowrap;
}
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.btn-quiet { background: var(--chalk); color: var(--turf); border-color: #c9d1cc; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.link-btn { font: inherit; color: var(--turf); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.hint { color: var(--muted); font-size: .875rem; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: var(--chalk); }
.site-header .wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-family: var(--display); font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.625rem); color: var(--chalk); text-decoration: none; line-height: 1.1; }
.tagline { color: #b9c6bf; font-size: .9375rem; }

/* ---------- league ---------- */
.league { margin-top: 20px; }
.league-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.league-summary { font-size: 1.0625rem; max-width: 62ch; }
.league-summary strong { font-weight: 600; }
.league-panel {
  margin-top: 14px; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px;
}
.panel-intro { font-size: 1.0625rem; }
.sleeper-box { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--sideline); }
.sleeper-box summary { cursor: pointer; font-weight: 600; color: var(--turf); }
.sleeper-box[open] summary { margin-bottom: 12px; }
#sleeper-loaded { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.segmented-wide { max-width: 560px; }
.timing-help { margin-top: 8px; max-width: 72ch; }
.lineup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px 14px; }
.lineup-grid .field span { white-space: nowrap; }
.lineup-grid .field select { min-height: 40px; }
.sleeper label { display: block; font-weight: 600; margin-bottom: 6px; }
.sleeper-row { display: flex; gap: 8px; }
.sleeper-row input, .sleeper-row select { flex: 1; min-width: 0; }
.sleeper .hint { margin-top: 6px; }
#sleeper-pick { margin-top: 10px; }
.notice-line { margin-top: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--turf-soft); font-size: .9375rem; }
.notice-line.warn { background: var(--pylon-soft); color: var(--pylon-ink); }

.group { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.group legend, .group-more summary { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; padding: 0; margin-bottom: 10px; }
.group-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.group-more summary { cursor: pointer; margin-bottom: 0; }
.group-more[open] summary { margin-bottom: 10px; }
.group-more > .hint { margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .875rem; font-weight: 600; color: var(--muted); }
.field .hint { margin-top: 2px; }
.lineup-line { margin-top: 10px; }

.stepper { display: flex; }
.stepper input { text-align: center; border-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button { font: inherit; font-size: 1.25rem; width: 48px; flex: none; border: 1px solid #c9d1cc; background: var(--sideline); cursor: pointer; color: var(--ink); }
.stepper button:first-child { border-radius: var(--r) 0 0 var(--r); border-right: 0; }
.stepper button:last-child { border-radius: 0 var(--r) var(--r) 0; border-left: 0; }
.segmented { display: flex; border: 1px solid #c9d1cc; border-radius: var(--r); overflow: hidden; min-height: 44px; background: var(--chalk); }
.segmented button { flex: 1; font: inherit; font-size: .9375rem; padding: 6px 8px; border: 0; background: none; cursor: pointer; color: var(--muted); line-height: 1.2; }
.segmented button + button { border-left: 1px solid #c9d1cc; }
.segmented button[aria-checked="true"] { background: var(--turf); color: var(--chalk); font-weight: 600; }

.sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-bottom: 14px; }
.slider { display: grid; grid-template-columns: 7.5em 1fr 7.5em; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.slider span:last-child { text-align: right; }
.slider input { width: 100%; accent-color: var(--turf); }
.panel-foot { margin-top: 20px; display: flex; justify-content: flex-end; }

/* ---------- trade ---------- */
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.side {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--chalk); border: 1px solid var(--line); border-top: 5px solid var(--turf);
  border-radius: var(--r); padding: 16px;
}
.side[data-side="B"] { border-top-color: var(--pylon); }
.side-head { display: flex; align-items: baseline; gap: 8px; }
.team-name, .team-select {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink);
  border: 1px solid transparent; border-radius: 6px; padding: 0 6px; margin-left: -7px; min-height: 40px; background: none;
}
.team-name { width: 7ch; max-width: 70%; }
@supports (field-sizing: content) { .team-name { width: auto; min-width: 3ch; field-sizing: content; } }
.team-select { width: auto; max-width: 75%; border-color: var(--line); padding: 2px 6px; }
.side-sub { color: var(--muted); }
.team-name:focus { border-color: var(--line); }

.search { position: relative; }
.results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none; background: var(--chalk);
  border: 1px solid #c9d1cc; border-radius: var(--r); box-shadow: 0 10px 30px rgba(21, 33, 27, .14);
  max-height: 320px; overflow: auto;
}
.results li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.results li[aria-selected="true"] { background: var(--turf-soft); }
.results .r-team { margin-left: auto; color: var(--muted); font-size: .875rem; }
.results .empty { cursor: default; color: var(--muted); }
.pick-adder { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }

.roster summary { cursor: pointer; font-weight: 600; color: var(--turf); padding: 4px 0; }
.roster-chips { max-height: 236px; overflow: auto; margin-top: 6px; padding: 10px; background: var(--sideline); border-radius: var(--r); }

.assets { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.assets .empty { color: var(--muted); padding: 18px 2px; border-top: 1px dashed var(--line); }
.asset {
  display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: start;
  padding: 10px 4px 10px 12px; border: 1px solid var(--line); border-radius: var(--r);
}
.asset-name { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.asset-meta { color: var(--muted); font-size: .875rem; margin-top: 2px; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.asset-controls { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .875rem; color: var(--muted); }
.asset-controls label { display: inline-flex; align-items: center; gap: 6px; }
.asset-controls select, .asset-controls input { width: auto; min-height: 34px; padding: 4px 8px; font-size: .875rem; }
.asset-controls input { width: 76px; }
.nokeep { color: var(--pylon-ink); font-size: .875rem; font-weight: 600; margin-top: 6px; }
.asset-value { text-align: right; }
.asset-score { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.why-btn { font: inherit; font-size: .8125rem; color: var(--turf); background: none; border: 0; padding: 4px 0 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 1.375rem; line-height: 1; width: 36px; height: 36px; border-radius: 6px; cursor: pointer; }
.why { grid-column: 1 / -1; margin: 8px 8px 2px 0; padding: 10px 12px; background: var(--sideline); border-radius: 6px; font-size: .875rem; }
.why p + p, .why p + ul { margin-top: 6px; }
.why ul { margin: 6px 0 0; padding-left: 18px; }
.why li { margin: 2px 0; }
.side-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.side-total span { color: var(--muted); font-weight: 600; }
.side-total strong { font-family: var(--display); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.pos { display: inline-block; min-width: 2.6em; text-align: center; font-size: .75rem; font-weight: 600; padding: 1px 6px; border-radius: 4px; line-height: 1.5; }
.pos-QB { background: #fde4e4; color: #9b1c1c; }
.pos-RB { background: var(--turf-soft); color: #145232; }
.pos-WR { background: #e2eafb; color: #1e429f; }
.pos-TE { background: #fcefd2; color: #7c4306; }
.pos-PICK { background: #ebe7f6; color: #4c3a8a; }
.status { font-size: .75rem; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #fde4e4; color: #9b1c1c; }
.status-Q { background: #fcefd2; color: #7c4306; }
.tag { font-size: .75rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.tag-buy { background: var(--turf-soft); color: var(--turf); }
.tag-sell { background: var(--pylon-soft); color: var(--pylon-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .875rem; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #c9d1cc; background: var(--chalk); color: var(--ink);
  border-radius: 999px; padding: 5px 12px; min-height: 36px; cursor: pointer;
}
.chip b { font-variant-numeric: tabular-nums; }
.chip:disabled { opacity: .4; cursor: default; }

/* ---------- scoreboard: the one loud element ---------- */
.scoreboard { margin-top: 16px; background: var(--ink); color: var(--chalk); border-radius: var(--r); padding: 22px 22px 24px; }
.score-row { display: flex; justify-content: space-between; gap: 16px; }
.team-score { font-size: 1rem; color: #c4d0c9; max-width: 48%; overflow-wrap: anywhere; }
.team-score span { color: var(--chalk); font-weight: 600; }
.team-score strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem); line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.team-a strong { color: var(--turf-bright); }
.team-b { text-align: right; }
.team-b strong { color: #ff8a4c; }

/* A football field: each team's share fills from its own end zone; the marker sits on the split. */
.gridiron { position: relative; height: 44px; margin: 18px 0 20px; border-radius: 4px; overflow: hidden; background: var(--field-dark); --split: 50%; }
.zone { position: absolute; top: 0; bottom: 0; }
.zone-a { left: 0; width: var(--split); background: linear-gradient(90deg, #2c8a5a, #23744b); }
.zone-b { right: 0; left: var(--split); background: linear-gradient(90deg, #c4561c, #e0641f); }
.yard-lines {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(255,255,255,.9) calc(50% - 1.5px), rgba(255,255,255,.9) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255,255,255,.35) calc(10% - 1px) 10%);
}
.marker {
  position: absolute; top: 50%; left: var(--split); width: 22px; height: 14px; transform: translate(-50%, -50%);
  background: #6b3a1f; border: 2px solid var(--chalk); border-radius: 50%;
  transition: left .45s cubic-bezier(.2, .8, .2, 1);
}
.zone-a, .zone-b { transition: width .45s cubic-bezier(.2, .8, .2, 1), left .45s cubic-bezier(.2, .8, .2, 1); }
.verdict { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.125rem); color: var(--chalk); overflow-wrap: anywhere; }
.verdict-detail { margin-top: 4px; color: #c4d0c9; max-width: 62ch; }
.suggest { margin-top: 18px; }
.suggest p { margin-bottom: 8px; color: #c4d0c9; }
.scoreboard .chip { background: transparent; color: var(--chalk); border-color: #3d5246; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn-light { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.btn-ghost-light { background: transparent; color: var(--chalk); border-color: #3d5246; }

/* ---------- stats, not hype ---------- */
.stats { margin-top: 40px; }
.stats-lede { font-size: 1.125rem; max-width: 62ch; margin-top: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 18px; }
.stats-grid > div { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stats-grid h3 { margin-bottom: 8px; }
.stats-grid ul { margin: 0; padding-left: 18px; }
.stats-grid li { margin: 4px 0; }
.stats-grid > div:nth-child(2) li::marker { content: "✕  "; color: var(--pylon-ink); }
.proof { margin-top: 16px; border-left: 5px solid var(--turf); padding: 4px 0 4px 18px; }
.proof-note { color: var(--muted); max-width: 72ch; margin-top: 6px; }
.proof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 14px 0 6px; }
.proof-stats dt { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; color: var(--turf); }
.proof-stats dd { margin: 4px 0 0; font-size: .9375rem; }

/* ---------- insights ---------- */
.insights { margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filters select { width: auto; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--turf); }
.lede { color: var(--muted); max-width: 72ch; margin-top: 8px; }
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.insights h3 { margin-bottom: 8px; padding-left: 10px; border-left: 4px solid var(--turf); }
.insights h3.sell { border-left-color: var(--pylon); }
.ins-list { list-style: none; margin: 0; padding: 0; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); }
.ins-list li { padding: 11px 14px; }
.ins-list li + li { border-top: 1px solid var(--line); }
.ins-list .empty { color: var(--muted); }
.ins-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ins-name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ins-ranks { color: var(--muted); font-size: .875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ins-why { font-size: .9375rem; margin-top: 2px; }
.ins-meta { color: var(--muted); font-size: .875rem; margin-top: 2px; }

/* ---------- how it works ---------- */
.how { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.how summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.625rem; }
.prose { max-width: 72ch; margin-top: 12px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose h3 { margin: 18px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }

/* ---------- privacy page ---------- */
.header-link { color: inherit; }
.policy { padding-top: 28px; }
.policy h1 { font-size: 2.5rem; }
.policy h2 { font-size: 1.5rem; margin: 30px 0 8px; }
.policy .summary { background: var(--chalk); border: 1px solid var(--line); border-left: 5px solid var(--turf); border-radius: var(--r); padding: 16px 20px; margin: 20px 0 8px; }
.policy .summary h2 { margin-top: 0; }
.policy .summary ul { margin-bottom: 0; }
.policy-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; background: var(--chalk); font-size: .9375rem; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 9px 12px; border: 1px solid var(--line); }
.policy-table th { background: var(--sideline); font-weight: 600; }
.policy-table code { white-space: nowrap; }
.todo { background: #fff3a8; padding: 0 3px; border-radius: 3px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 48px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer p { margin: 6px 0; max-width: 80ch; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.data-status.warn { color: var(--pylon-ink); font-weight: 600; }

/* ---------- floating bits ---------- */
.score-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 10px;
  font: inherit; border: 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--chalk); cursor: pointer; text-align: center;
}
.score-bar span { font-variant-numeric: tabular-nums; }
.sb-a, .sb-b { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.sb-a { color: var(--turf-bright); }
.sb-b { color: #ff8a4c; }
.sb-verdict { font-weight: 600; font-size: .9375rem; }

.privacy-notice {
  position: fixed; z-index: 40; left: 16px; bottom: 16px; max-width: 460px;
  display: flex; align-items: center; gap: 14px;
  background: var(--chalk); border: 1px solid #c9d1cc; border-radius: var(--r);
  padding: 12px 14px; box-shadow: 0 10px 30px rgba(21, 33, 27, .16); font-size: .9375rem;
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--chalk); padding: 10px 16px; border-radius: var(--r); }

/* Hover effects only where there's a real pointer (on touchscreens they stick after a tap). */
@media (hover: hover) {
  .btn:hover { background: var(--field-dark); border-color: var(--field-dark); }
  .btn-quiet:hover { background: var(--turf-soft); border-color: var(--turf); }
  .team-name:hover { border-color: var(--line); }
  .results li:hover { background: var(--turf-soft); }
  .remove:hover { background: var(--sideline); color: var(--ink); }
  .chip:hover { border-color: var(--turf); }
  .scoreboard .chip:hover { border-color: var(--turf-bright); }
  .btn-light:hover { background: #dfe7e2; border-color: #dfe7e2; }
  .btn-ghost-light:hover { background: #22312a; border-color: #4e6658; }
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }
  .grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
  .trade, .insights-grid, .sliders { grid-template-columns: 1fr; }
  .league-panel { padding: 16px; }
  .sleeper-row { flex-direction: column; }
  .score-bar:not([hidden]) { display: flex; }
  .privacy-notice { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .toast { bottom: 76px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .pick-adder { grid-template-columns: 1fr 1fr; }
  .pick-adder .add-pick { grid-column: 1 / -1; }
  .slider { grid-template-columns: 6em 1fr 6em; }
}

/* Touchscreens: keep form text at 16px so phones don't zoom in on tap, and give
   small controls a comfortable tap size. */
@media (pointer: coarse) {
  select, input[type="number"], input[type="search"], input[type="text"],
  .asset-controls select, .asset-controls input { font-size: 16px; }
  .asset-controls select, .asset-controls input { min-height: 40px; }
  .why-btn { padding: 8px 0 4px; }
}

/* Short landscape screens (phones on their side): keep the score bar slim. */
@media (max-height: 480px) and (orientation: landscape) {
  .score-bar:not([hidden]) { display: flex; }
  .score-bar { padding: 6px max(18px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
  .sb-a, .sb-b { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marker, .zone-a, .zone-b { transition: none; }
}
