@font-face { font-family: "Bebas Neue"; src: url("assets/fonts/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0e14; --bg2: #0e1520; --panel: #111a27; --panel2: #0f1724; --line: #1f2b3d; --line2: #2a3a52;
  --text: #f1f5f9; --text2: #cbd5e1; --muted: #9aa8bc; --dim: #7c8aa0; --accent: #22c55e;
  --win: #22c55e; --loss: #f87171; --push: #a3b1c4; --pending: #fbbf24;
  --radius: 12px; --wrap: 1120px;
  --display: "Bebas Neue", "Barlow Condensed", Impact, sans-serif;
  --cond: "Barlow Condensed", "Barlow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .dim { color: var(--dim); }

.banner { background: #facc15; color: #111; text-align: center; padding: 7px 14px; font-size: .85rem; font-weight: 600; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10,14,20,.88); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.wordmark { display: flex; flex-direction: column; line-height: .9; }
.wordmark b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: .06em; }
.wordmark i { font-style: normal; font-family: var(--cond); font-size: .68rem; letter-spacing: .42em; color: var(--accent); margin-top: 2px; }
.nav nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: .9rem; }
.nav nav a { color: var(--text2); }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav a.nav-cta { color: #06120a; background: var(--accent); padding: 7px 14px; border-radius: 8px; }
@media (max-width: 720px) { .nav nav a:not(.nav-cta) { display: none; } }

/* hero */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 400px at 85% -10%, rgba(34,197,94,.10), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg2)); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .9fr; } }
.eyebrow, .kicker { font-family: var(--cond); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--accent); margin: 0 0 10px; }
.hero h1 { font-family: var(--display); font-size: clamp(3.2rem, 9vw, 5.6rem); line-height: .92; letter-spacing: .01em; }
.lede { font-size: 1.2rem; color: var(--text2); margin: 18px 0 18px; max-width: 34ch; }
.props { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.props li { font-size: .88rem; color: var(--text2); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; background: rgba(17,26,39,.6); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; font: inherit; font-weight: 700; border: 1px solid var(--accent); cursor: pointer; }
.btn.primary { background: var(--accent); color: #06120a; }
.btn.ghost { color: var(--text); border-color: var(--line2); background: transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn[disabled] { cursor: default; opacity: .6; filter: none; }

.scoreboard { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line2); border-radius: 16px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.sb-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--cond); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.sb-record { font-family: var(--display); font-size: 4.2rem; line-height: 1; margin: 8px 0 14px; }
.sb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sb-row .k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sb-row .v { font-family: var(--cond); font-size: 1.6rem; }
.sb-month { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 600; color: var(--text2); }
.sb-foot { margin: 10px 0 0; font-size: .78rem; color: var(--dim); }

/* sections */
.section { padding: 56px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
h2 { font-family: var(--display); font-size: 2.5rem; line-height: 1; letter-spacing: .02em; }
h3 { font-family: var(--cond); font-size: 1.1rem; letter-spacing: .02em; }
.note { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
select { appearance: none; -webkit-appearance: none; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa8bc'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 30px 8px 12px; font: inherit; font-size: .92rem; min-width: 130px; text-transform: none; letter-spacing: 0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; min-height: 104px; }
.stat .label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.stat .value { font-family: var(--cond); font-size: 2.4rem; line-height: 1.15; margin-top: 4px; }
.stat .sub { color: var(--dim); font-size: .78rem; }
.pos { color: var(--win); } .neg { color: var(--loss); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.tabs button { font: inherit; font-weight: 600; font-size: .9rem; color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 7px 14px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 11px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; background: var(--panel2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.015); }
tfoot td { border-top: 1px solid var(--line2); border-bottom: 0; font-weight: 700; background: var(--panel2); }
.num-table td:not(:first-child), .num-table th:not(:first-child) { text-align: right; }
td.pick-col { font-weight: 700; }
.res { display: inline-block; min-width: 30px; text-align: center; font-weight: 700; font-size: .8rem; border-radius: 6px; padding: 2px 8px; color: #0a0e14; }
.res.W { background: var(--win); } .res.L { background: var(--loss); } .res.P { background: var(--push); }
.res.pending { background: transparent; color: var(--pending); box-shadow: inset 0 0 0 1px var(--pending); }
.ex { font-size: .66rem; background: #facc15; color: #111; border-radius: 4px; padding: 1px 5px; margin-left: 8px; font-weight: 700; vertical-align: middle; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.pick-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; }
.pick-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.pick-card .meta { color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pick-card .pick { font-family: var(--display); font-size: 2rem; letter-spacing: .02em; margin: 8px 0 10px; line-height: 1.05; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font-family: var(--cond); font-size: .92rem; padding: 2px 10px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line2); }
.league { font-family: var(--cond); letter-spacing: .08em; color: var(--text2); }
.empty { color: var(--muted); background: var(--panel); border: 1px dashed var(--line2); border-radius: var(--radius); padding: 22px; }

.rules { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rules { grid-template-columns: repeat(4, 1fr); } }
.rule { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.rule p { margin: 6px 0 0; color: var(--text2); font-size: .94rem; }

.signup { display: grid; gap: 20px; align-items: center; background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(17,26,39,.9) 55%); border: 1px solid var(--line2); border-radius: 16px; padding: 28px; margin-bottom: 56px; }
@media (min-width: 860px) { .signup { grid-template-columns: 1fr 1.1fr; } }
.signup .muted { margin: 8px 0 0; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-form input { flex: 1 1 220px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: inherit; }
.signup-form p { flex-basis: 100%; margin: 2px 0 0; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 44px; background: var(--bg); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.footer-links a { color: var(--text2); }
.legal { color: var(--muted); font-size: .84rem; margin: 6px 0; max-width: 90ch; }
.legal strong { color: var(--text); }

/* legal pages */
.doc { padding: 48px 0 56px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--display); font-size: 3rem; line-height: 1; margin-bottom: 6px; }
.doc h2 { font-size: 1.7rem; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--text2); }
.doc .callout { background: var(--panel); border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 18px 0; }
.num-table tr.sel td { background: rgba(34,197,94,.07); }

/* ---- pick tiers ---- */
.tier { display: inline-flex; align-items: center; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; padding: 2px 8px; border-radius: 6px; border: 1px solid; white-space: nowrap; }
.tier.big { font-size: .92rem; padding: 4px 11px; }
.tier-lean { color: #cbd5e1; border-color: #475569; background: rgba(71,85,105,.18); }
.tier-strong { color: #4ade80; border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.12); }
.tier-lock { color: #06120a; border-color: #facc15; background: #facc15; }
.pick-card.t-lean::before { background: #64748b; }
.pick-card.t-lock::before { background: #facc15; width: 4px; }
.pick-card .pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.pick-card .pc-top .league { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; color: var(--text2); }
.pick-card .pick .odds { font-family: var(--cond); font-size: 1.1rem; color: var(--text2); background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 8px; vertical-align: middle; letter-spacing: 0; }
.pick-card .matchup { color: var(--text); font-weight: 600; margin: -2px 0 12px; }
.pick-card .times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.pick-card .times dt { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--dim); }
.pick-card .times dd { margin: 2px 0 0; font-size: .86rem; color: var(--text2); }
.pick-col .sub { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.play-it { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pi-col { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; }
.pi-col h3 { margin: 0; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.pi-col p { margin: 6px 0 0; color: var(--text2); font-size: .92rem; }
@media (max-width: 640px) { .play-it { grid-template-columns: 1fr; } }
.lede-2 { margin-top: -6px; color: var(--text2); }
.live-line { color: var(--text); }
/* ---- Unit Key (distinct from pick cards) ---- */
.unit-key { position: relative; box-sizing: border-box; width: 100%; max-width: 820px; margin: 4px auto 28px; padding: 22px 28px 18px; text-align: center;
  background: linear-gradient(180deg, rgba(34,197,94,.09), rgba(34,197,94,.02) 60%), var(--bg2);
  border: 1px solid rgba(34,197,94,.35); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; }
.unit-key::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.unit-key h3 { margin: 0 0 16px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .24em; text-indent: .24em; font-size: 1.05rem; color: var(--accent); }
.uk-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; }
.uk-cell { padding: 6px 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.uk-cell + .uk-cell { border-left: 1px solid rgba(148,163,184,.18); }
.uk-cell dt, .uk-cell dd { margin: 0; padding: 0; }
.uk-cell dd { font-family: var(--cond); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; color: var(--text); line-height: 1.1; white-space: nowrap; }
.tier.xl { display: inline-flex; justify-content: center; box-sizing: border-box; min-width: 104px; font-size: 1.15rem; padding: 6px 16px; border-radius: 8px; letter-spacing: .1em; line-height: 1.2; }
.unit-key .uk-note { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) {
  .unit-key { margin: 0 0 20px; padding: 18px 16px 12px; border-radius: 14px; }
  .unit-key h3 { margin-bottom: 8px; font-size: .95rem; letter-spacing: .2em; text-indent: .2em; }
  .uk-grid { grid-template-columns: 1fr; }
  .uk-cell { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 12px 2px; }
  .uk-cell + .uk-cell { border-left: 0; border-top: 1px solid rgba(148,163,184,.16); }
  .uk-cell dt { justify-self: start; }
  .uk-cell dd { justify-self: end; text-align: right; font-size: 1.15rem; }
  .tier.xl { min-width: 92px; font-size: .95rem; padding: 6px 12px; }
  .unit-key .uk-note { margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(148,163,184,.16); font-size: .8rem; }
}
.h-mkt { display: none; }

/* ================= Mobile pass (≤640px) ================= */
@media (max-width: 640px) {
  /* header + hero */
  .nav-inner { height: 60px; }
  .logo { min-height: 44px; }
  .logo img { width: 30px; height: 30px; }
  .wordmark b { font-size: 1.3rem; }
  .nav nav a.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: .95rem; border-radius: 10px; }
  html { scroll-padding-top: 68px; }
  .hero { padding: 32px 0 36px; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: 3.1rem; }
  .lede { font-size: 1.1rem; margin: 14px 0; }
  .lede-2 { margin-top: -4px; }
  .props { margin-bottom: 22px; }
  .props li { font-size: .95rem; padding: 5px 12px; }
  .cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn { min-height: 48px; }
  .scoreboard { padding: 18px 18px; }
  .sb-record { font-size: 3.6rem; }
  .sb-foot { font-size: .85rem; }

  /* sections */
  .section { padding: 40px 0 4px; }
  h2 { font-size: 2.2rem; }
  .section-head { margin-bottom: 14px; gap: 12px; }
  .note { font-size: .95rem; }
  .muted.small, .small { font-size: .95rem; }

  /* open picks */
  .pick-card { padding: 16px; }
  .pick-card .pick { font-size: 1.85rem; }
  .pick-card .matchup { font-size: 1rem; }
  .pick-card .times { grid-template-columns: 1fr; gap: 6px; }
  .pick-card .times > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .pick-card .times dd { margin: 0; font-size: .95rem; text-align: right; }
  .unit-key .uk-note { font-size: .95rem; }
  .play-it { gap: 10px; }
  .pi-col p { font-size: .95rem; }

  /* results: filters + stat tiles */
  #results .section-head { flex-direction: column; align-items: stretch; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  #history .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters label { min-width: 0; }
  select { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; padding: 10px 28px 10px 12px; }
  .stats { gap: 10px; margin-bottom: 14px; }
  .stat { min-height: 0; padding: 14px 14px 12px; }
  .stat .value { font-size: 2rem; }
  .stat .sub { font-size: .85rem; line-height: 1.3; margin-top: 2px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tabs button { min-height: 44px; font-size: 1rem; }

  /* results: month / sport rows as cards */
  #panel-month, #panel-sport { border: 0; background: transparent; overflow: visible; }
  .num-table, .num-table tbody, .num-table tfoot { display: block; }
  .num-table thead { display: none; }
  .num-table tr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
  .num-table tfoot tr { background: var(--panel2); border-color: var(--line2); }
  .num-table td, tfoot td { display: block; padding: 0; border: 0; background: none; text-align: left !important; white-space: nowrap; font-size: 1rem; font-weight: 600; }
  .num-table td.rl { grid-column: 1 / -1; font-family: var(--cond); font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text); padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
  .num-table td[data-label="Open"] { display: none; }
  .num-table td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  tbody tr:hover td { background: none; }

  /* pick history rows as cards */
  #history .table-wrap { border: 0; background: transparent; overflow: visible; }
  #history-table, #history-table tbody { display: block; }
  #history-table thead { display: none; }
  #history-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "sport tier" "pick odds" "game game" "posted posted" "result units";
    align-items: center; gap: 6px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
  #history-table td { display: block; padding: 0; border: 0; white-space: normal; font-size: 1rem; min-width: 0; }
  #history-table td.h-sport { grid-area: sport; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; }
  #history-table td.h-tier { grid-area: tier; justify-self: end; }
  #history-table td.pick-col { grid-area: pick; font-size: 1.1rem; line-height: 1.25; }
  #history-table td.pick-col .sub { font-size: .95rem; font-weight: 500; margin-top: 3px; }
  #history-table td.h-odds { grid-area: odds; justify-self: end; align-self: start; font-family: var(--cond); font-weight: 700; font-size: 1.1rem; }
  #history-table td.h-game { grid-area: game; color: var(--text2); font-size: .95rem; }
  #history-table td.h-posted { grid-area: posted; color: var(--muted); font-size: .95rem; padding-top: 8px; border-top: 1px solid var(--line); }
  #history-table td.h-posted::before { content: "Posted "; color: var(--dim); }
  #history-table td.h-result { grid-area: result; }
  #history-table td.h-units { grid-area: units; justify-self: end; font-weight: 700; }
  #history-table td.h-units::before { content: "Units "; color: var(--muted); font-weight: 500; }
  #history-table .res { font-size: .9rem; padding: 3px 10px; }
  #history-table td[colspan] { grid-column: 1 / -1; }

  /* record, signup, footer */
  .rule { padding: 16px; }
  .rule p { font-size: .95rem; }
  .signup { padding: 22px 18px; gap: 16px; margin-bottom: 40px; }
  .signup-form { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .signup-form input { width: 100%; min-height: 48px; font-size: 16px; }
  .signup-form .btn { width: 100%; min-height: 48px; font-size: 1rem; }
  .signup-form p { font-size: .95rem; }
  .footer { padding: 24px 0 36px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; width: 100%; font-size: 1rem; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .legal { font-size: .95rem; line-height: 1.5; }
  .legal .helpline { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
