:root {
  --ink: #0E1A12;          /* scoreboard black — header, app card, footer */
  --ink-deep: #10160F;     /* page backdrop outside the column */
  --paper: #F6F4EE;        /* warm off-white — page surface */
  --paper-tint: #EDEAE1;   /* alternating band */
  --paper-ad: #EFECE3;     /* ad slot fill */
  --text: #131A14;
  --text-soft: #3D4A40;
  --text-mute: #4B5A4F;
  --green: #1F6B3B;        /* field green — links, step numbers, about band */
  --green-go: #3FA96A;     /* action green — start/pause */
  --green-pale: #8FBF9E;   /* eyebrow text on dark */
  --orange: #F26B21;       /* whistle orange — CTA, sub alert */
  --danger: #8C3B1A;
  --line-dark: #2C4033;
  --line-hair: #22332A;
  --surface-dark: #16241B; /* input / inset on dark card */
  --radius-card: 16px;
  --radius: 12px;
  --radius-sm: 10px;
  --pad: 20px;
  --sans: "Barlow", system-ui, -apple-system, sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-deep);
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--orange); }
.hidden { display: none !important; }

/* Phone-width column, centred on dark. Intentionally NOT responsive above
   520px — this is a one-handed sideline tool, see README. */
.page {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: var(--ink); color: var(--paper);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--orange); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: .5px;
}
.brand__name { font-family: var(--cond); font-weight: 700; font-size: 23px; letter-spacing: .4px; }
.topbar__tag {
  font-size: 12px; font-weight: 600; letter-spacing: .9px;
  text-transform: uppercase; color: var(--green-pale);
}

/* ---------- hero ---------- */
.hero { padding: 34px var(--pad) 26px; }
.hero__title {
  font-family: var(--cond); font-weight: 700; font-size: 44px;
  line-height: 1.02; letter-spacing: -0.5px; text-wrap: balance;
}
.hero__sub {
  margin-top: 16px; font-size: 17px; line-height: 1.5;
  color: var(--text-soft); max-width: 38ch; text-wrap: pretty;
}
.hero__points {
  display: flex; gap: 18px; margin-top: 16px;
  font-size: 13px; font-weight: 600; color: #5A6B5E;
}
.hero__guide-link { margin-top: 14px; font-size: 15px; font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 60px; border: 0; border-radius: var(--radius);
  font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .6px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn--xl { font-size: 28px; letter-spacing: .8px; min-height: 64px; }
.btn--block { width: 100%; margin-top: 18px; }
.btn--span2 { grid-column: span 2; }
.btn--flex { flex: 1; min-height: 50px; font-size: 20px; }
.btn--fixed { width: 82px; min-height: 52px; font-size: 20px; }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--go { background: var(--green-go); color: #0A1410; }
.btn--danger { background: var(--danger); color: #FCE6D8; }
.btn--ghost { background: transparent; border: 1px solid var(--line-dark); color: var(--green-pale); }
.hero .btn--primary { height: 58px; margin-top: 22px; font-size: 24px; }

/* ---------- ad slots ---------- */
.adwrap { padding: 0 var(--pad) 22px; }
.adwrap + .appwrap { padding-top: 0; }
.ad { border: 1px dashed #C6C0B2; border-radius: var(--radius-sm); background: var(--paper-ad); }
.ad__label { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; color: #8A8375; }
.ad__note { font-family: var(--mono); font-size: 10px; line-height: 1.4; color: #A9A296; }
.ad--banner {
  height: 104px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.ad--native {
  display: flex; gap: 12px; align-items: center;
  padding: 14px; border-radius: var(--radius);
}
.ad__thumb {
  width: 64px; height: 64px; border-radius: 8px; flex: none;
  background: repeating-linear-gradient(135deg, #DCD7CA 0 6px, #E7E3D8 6px 12px);
}
.ad--footer {
  height: 92px; display: flex; align-items: center; justify-content: center;
  border-color: var(--line-dark); background: transparent; margin-bottom: 22px;
}
.ad--footer .ad__label { color: #5C7565; letter-spacing: 1.3px; }

/* ---------- app card ---------- */
.appwrap { padding: 0 var(--pad) 26px; scroll-margin-top: 12px; }
.card {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-card); padding: 18px;
}
.footnote { margin: 10px 2px 0; font-size: 13px; color: #6B7A6E; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--green-pale);
}
.eyebrow--warm { color: #C08C63; }
.eyebrow--muted { color: #6F8A77; letter-spacing: 1.3px; }
.eyebrow--spaced { margin-top: 22px; display: block; }
.hint { font-size: 14px; color: #6F8A77; margin-top: 8px; }

.row { display: flex; gap: 8px; margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.grid2--tight { gap: 12px; margin-top: 8px; }

.input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  background: var(--surface-dark); color: var(--paper);
  font-family: var(--sans); font-size: 17px;
}
.input::placeholder { color: #6F8A77; }
.input:focus { outline: 2px solid var(--green-go); outline-offset: 1px; }
.input--num { width: 100%; margin-top: 6px; font-size: 19px; font-weight: 600; padding: 0 12px; }
.field { display: block; }
.field__label { font-size: 14px; font-weight: 600; color: #B8C6BC; }

.toggle {
  margin-top: 26px; height: 52px; padding: 0 12px; text-align: left;
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  background: var(--surface-dark); color: #B8C6BC;
  font-family: var(--sans); font-weight: 600; font-size: 15px; cursor: pointer;
}
.toggle.is-on { background: var(--green-go); color: #0A1410; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  background: var(--surface-dark); border: 1px solid var(--line-hair);
  border-radius: 99px; color: #B8C6BC;
  font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer;
}
.chip--roster { padding: 8px 8px 8px 14px; cursor: default; }
.chip.is-selected { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.chip--out { background: #221812; border-color: #4A3226; color: #E8C3AE; }
.chip__x {
  width: 26px; height: 26px; flex: none; border: 0; border-radius: 99px;
  background: var(--line-hair); color: #9FB4A6;
  font-size: 15px; line-height: 1; padding: 0; cursor: pointer;
}

.error {
  margin-top: 16px; padding: 8px 12px;
  border-left: 3px solid var(--orange); background: #1A2419;
  font-size: 15px; line-height: 1.4; color: #F3C7A8;
}

/* live */
.statusline { display: flex; justify-content: space-between; align-items: baseline; }
.statusline__game { font-size: 12px; font-weight: 600; letter-spacing: .6px; color: #6F8A77; }
.is-paused { color: var(--orange) !important; }
.clock {
  font-family: var(--cond); font-weight: 700; font-size: 96px;
  line-height: .95; letter-spacing: -1px; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.progress { height: 8px; margin-top: 8px; border-radius: 99px; background: #1E2E23; overflow: hidden; }
.progress__bar { height: 100%; width: 100%; border-radius: 99px; background: var(--orange); }

.alert { margin-top: 14px; padding: 14px; border-radius: var(--radius); background: var(--surface-dark); }
.alert__cap { font-size: 13px; font-weight: 600; color: #6F8A77; }
.alert__names { font-family: var(--cond); font-weight: 700; font-size: 24px; line-height: 1.1; }
.alert__names--off { color: #F0A07A; }
.alert__names--on { color: #7FD3A0; }
.alert.is-now { background: var(--orange); animation: subpulse 1.1s infinite; }
.alert.is-now .eyebrow,
.alert.is-now .alert__names { color: var(--ink); }
.alert.is-now .alert__cap { color: #7A3A0F; }
@keyframes subpulse { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }

.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

.listhead {
  font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--green-pale); padding-bottom: 6px; border-bottom: 1px solid var(--line-hair);
}
.listhead--warm { color: #C08C63; }
.namelist { display: flex; flex-direction: column; }
.namebtn {
  display: block; width: 100%; text-align: left;
  min-height: 46px; margin-top: 4px; padding: 0 10px;
  border: 0; border-radius: 8px; background: var(--surface-dark); color: var(--paper);
  font-family: var(--sans); font-size: 16px; font-weight: 600; cursor: pointer;
}
.namebtn--bench { color: #B8C6BC; }
.namebtn.is-selected { background: var(--orange); color: var(--ink); }

.selpanel {
  margin-top: 12px; padding: 12px;
  background: var(--surface-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
}
.selpanel__hint { font-size: 15px; line-height: 1.4; color: #D6E2D9; }
.lateblock { margin-top: 16px; }
#outBlock { margin-top: 16px; }

/* ---------- marketing bands ---------- */
.band { padding: 32px var(--pad); }
.band--tint { background: var(--paper-tint); }
.h2 { font-family: var(--cond); font-weight: 700; font-size: 30px; letter-spacing: .3px; margin-bottom: 18px; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__num {
  width: 34px; height: 34px; flex: none; border-radius: 8px;
  background: var(--green); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cond); font-weight: 700; font-size: 20px;
}
.step__title { font-weight: 700; font-size: 17px; }
.step__body { font-size: 15px; line-height: 1.45; color: var(--text-mute); }

.features { display: flex; flex-direction: column; gap: 12px; }
.feature { background: #fff; border: 1px solid #E2DED2; border-radius: var(--radius); padding: 16px; }
.feature__dot { display: block; width: 10px; height: 10px; border-radius: 3px; margin-bottom: 10px; }
.feature__dot--orange { background: var(--orange); }
.feature__dot--green { background: var(--green); }
.feature__dot--ink { background: var(--ink); }
.feature__title { font-family: var(--cond); font-weight: 700; font-size: 22px; }
.feature__body { font-size: 15px; line-height: 1.45; color: var(--text-mute); margin-top: 4px; }

.about { background: var(--green); color: #EAF3EC; padding: 30px var(--pad); }
.about__title { font-family: var(--cond); font-weight: 700; font-size: 26px; margin-bottom: 8px; }
.about__body { font-size: 16px; line-height: 1.5; color: #C8E0CE; max-width: 44ch; }

.footer { background: var(--ink); color: var(--green-pale); padding: 26px var(--pad) 34px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 600; }
.footer__nav a { color: #EAF3EC; }
.footer__nav a:hover { color: var(--orange); }
.footer__legal { margin-top: 18px; font-size: 13px; color: #5C7565; }

/* ---------- content pages (Contact / Terms / Privacy) ---------- */
.content { padding: 34px var(--pad) 40px; }
.content__back { font-size: 14px; font-weight: 600; }
.content__title {
  font-family: var(--cond); font-weight: 700; font-size: 36px;
  line-height: 1.05; letter-spacing: -0.3px; margin-top: 18px;
}
.content__meta { margin-top: 6px; font-size: 13px; color: var(--text-mute); }
.content__body { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--text-soft); max-width: 56ch; }
.content h2 { font-family: var(--cond); font-weight: 700; font-size: 22px; margin-top: 28px; }
.content ul, .content ol { padding-left: 20px; margin-top: 10px; max-width: 56ch; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { font-size: 15px; line-height: 1.5; color: var(--text-soft); margin-top: 6px; }

/* ---------- guide page ---------- */
.guide-step { margin-top: 32px; }
.guide-step:first-child { margin-top: 24px; }
.guide__shot {
  width: 100%; display: block; margin-top: 14px;
  border-radius: var(--radius); border: 1px solid #E2DED2;
}
.guide-substeps { margin-top: 16px; margin-left: 48px; }
.guide-substeps h2 { font-family: var(--cond); font-weight: 700; font-size: 18px; margin-top: 20px; }
.guide-substeps h2:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
