/* Pumpshi: a prediction board dressed as a pharmacy label. Cream paper, green-black ink, mint for a pick
   or a "yes", coral for "no". Gloock for words people read as headlines, Familjen Grotesk for everything else,
   every figure included. */
:root {
  --paper: #F2EDE2;
  --paper-2: #E9E2D2;
  --label: #FFFDF7;
  --ink: #15201A;
  --ink-2: #4E5B54;
  --ink-3: #7A847D;
  --rule: #DCD3C1;
  --rule-2: #C7BCA6;
  --yes: #0E8A4C;
  --yes-hi: #34C77B;
  --yes-tint: #DCF2E3;
  --no: #C2412C;
  --no-hi: #E8573F;
  --no-tint: #F8DDD6;
  --cream: #FFF3D6;
  --foil: #E6E2D8;
  --display: 'Gloock', Georgia, 'Times New Roman', serif;
  --text: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
  --r-sm: 9px;
  --wrap: 1240px;
  --gut: 20px;
  --shadow: 0 1px 0 rgba(21, 32, 26, .04), 0 8px 24px -16px rgba(21, 32, 26, .25);
}
@media (max-width: 640px) { :root { --gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.45 var(--text); font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
main:focus, main:focus-visible { outline: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(242, 237, 226, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand .wordmark { display: block; height: 30px; width: auto; }
.search { position: relative; flex: 1; max-width: 420px; }
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: 999px; border: 1px solid var(--rule-2);
  background: var(--label); font: inherit; color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }
.search .icon { position: absolute; left: 13px; top: 10px; color: var(--ink-3); }
.search-results {
  position: absolute; top: 46px; left: 0; right: 0; background: var(--label); border: 1px solid var(--rule-2);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; max-height: 70vh; overflow: auto;
}
.search-results a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none; }
.search-results a:hover, .search-results a.on { background: var(--paper); }
.search-results .faint { font-size: 13px; margin-left: auto; white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.on { color: var(--ink); background: var(--label); box-shadow: inset 0 0 0 1px var(--rule-2); }
.who { display: flex; align-items: center; gap: 8px; flex: none; position: relative; }
.pills-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px;
  background: var(--label); box-shadow: inset 0 0 0 1px var(--rule-2); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.pills-chip .mark { width: 22px; height: 22px; }
.menu { position: absolute; right: 0; top: 46px; background: var(--label); border: 1px solid var(--rule-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; min-width: 220px; z-index: 40; }
.menu .menu-head { padding: 8px 10px; font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed var(--rule); margin-bottom: 4px; }
.menu button, .menu a { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; text-decoration: none; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 0; background: var(--label); box-shadow: inset 0 0 0 1px var(--rule-2);
  font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #fff; }
.btn.ink { background: var(--ink); color: var(--cream); box-shadow: none; }
.btn.ink:hover { background: #24332B; }
.btn.go { background: var(--yes); color: #fff; box-shadow: none; }
.btn.go:hover { background: #0B7741; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; height: 48px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- league tabs ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; flex: none;
  text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); border: 1px solid transparent; background: none; cursor: pointer;
}
.tab:hover { color: var(--ink); background: var(--paper-2); }
.tab.on { color: var(--ink); background: var(--label); border-color: var(--rule-2); }
.tab .n { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* ---------- the prescription label (intro) ---------- */
.rx {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 14px 0 6px;
  background: var(--label); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 18px 14px 26px; position: relative;
}
.rx::before { /* the tear-off edge */
  content: ''; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 4px;
  background: radial-gradient(circle, var(--rule-2) 1.4px, transparent 1.6px) 0 0 / 4px 8px repeat-y;
}
.rx .capsule { width: 64px; height: 64px; }
.rx h1 { font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.rx p { color: var(--ink-2); margin-top: 3px; max-width: 64ch; }
.rx .rx-no { font-size: 12px; color: var(--ink-3); text-align: right; line-height: 1.5; }
.rx .rx-no b { display: block; color: var(--ink); font-size: 13px; }
@media (max-width: 560px) {
  .rx { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 14px 14px 22px; }
  .rx .rx-no { display: none; }
  .rx .capsule { width: 52px; height: 52px; }
  .rx h1 { font-size: 22px; }
  .rx p { font-size: 14px; }
}

/* ---------- section heads ---------- */
.sec { margin: 30px 0 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.sec-head h2 { font-family: var(--display); font-size: 25px; letter-spacing: -.01em; white-space: nowrap; }
.sec-head .more { margin-left: auto; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.sec-head .more:hover { text-decoration: underline; }
.sec-head .note { color: var(--ink-3); font-size: 13px; }

/* ---------- cards ---------- */
.card { background: var(--label); border: 1px solid var(--rule); border-radius: var(--r); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px;
  background: var(--paper); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.chip.live { background: var(--no-tint); color: var(--no); }
.chip.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--no-hi); }
.chip.final { background: var(--ink); color: var(--cream); }

/* featured carousel */
.feat { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 32px) / 3)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.feat > * { scroll-snap-align: start; }
@media (max-width: 960px) { .feat { grid-auto-columns: minmax(290px, 82%); } }
.fcard { display: flex; flex-direction: column; padding: 16px; text-decoration: none; min-width: 0; transition: border-color .15s; }
.fcard:hover { border-color: var(--rule-2); }
.fcard-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.fcard-top .when { margin-left: auto; }
.fcard h3 { font-family: var(--display); font-size: 23px; line-height: 1.12; margin: 10px 0 12px; letter-spacing: -.01em; }
.fcard .chart { height: 92px; margin: 10px 0 4px; }
.fcard-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--rule); }

/* team rows */
.team { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 5px 0; }
.badge {
  display: grid; place-items: center; width: 36px; height: 26px; border-radius: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .02em; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(21, 32, 26, .12);
}
.team .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.team .nm small { font-weight: 500; color: var(--ink-3); margin-left: 5px; }
.team .pct { font-weight: 800; font-size: 17px; min-width: 46px; text-align: right; }
.team.lead .pct { color: var(--yes); }
.team .capsule { width: 30px; height: 30px; margin: -6px -2px; }

/* the price button: what a pick costs, and the decimal odds it implies */
.odds {
  display: inline-grid; grid-template-columns: auto; justify-items: center; min-width: 66px; height: 40px; padding: 3px 10px;
  border-radius: 10px; border: 1px solid var(--rule-2); background: var(--label); cursor: pointer; line-height: 1.05;
}
.odds b { font-size: 15px; }
.odds span { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.odds:hover { border-color: var(--yes); background: var(--yes-tint); }
.odds.no:hover { border-color: var(--no); background: var(--no-tint); }
.odds.sel { border-color: var(--yes); background: var(--yes); color: #fff; }
.odds.sel span { color: rgba(255, 255, 255, .8); }
.odds.no.sel { border-color: var(--no); background: var(--no); }
.odds[disabled] { cursor: default; opacity: .55; background: var(--paper); border-color: var(--rule); }

/* the coins strip */
.strip { display: flex; align-items: center; gap: 0; margin: 26px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); height: 48px; overflow: hidden; }
.strip-label { flex: none; position: relative; z-index: 2; background: var(--paper); display: flex; align-items: center; gap: 8px; padding-right: 14px; font-weight: 800; font-size: 12px; letter-spacing: .06em; color: var(--ink-2); border-right: 1px dashed var(--rule-2); height: 100%; }
.strip-label .mark { width: 22px; height: 22px; }
.strip-track { display: flex; gap: 26px; padding-left: 18px; white-space: nowrap; animation: slide 60s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.coin { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; text-decoration: none; }
.coin img { width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); }
.coin b { font-weight: 800; }
.up { color: var(--yes); }
.down { color: var(--no); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } .strip { overflow-x: auto; } }

/* ---------- board layout ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 1020px) { .board { grid-template-columns: minmax(0, 1fr); } }
.side { display: grid; gap: 16px; position: sticky; top: 80px; }
@media (max-width: 1020px) { .side { position: static; } }

/* game rows */
.day { margin: 0 0 14px; }
.day-head { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 2px 6px; }
.rows { overflow: hidden; }
.grow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); }
.grow:first-child { border-top: 0; }
.grow .t { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.grow .t b { display: block; color: var(--ink); font-size: 14px; }
.grow .mid { min-width: 0; }
.grow .mid a { text-decoration: none; }
.grow .sides { display: grid; gap: 2px; }
.grow .sides .team { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 2px 0; }
.grow .meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.grow .buy { display: grid; gap: 6px; }
@media (max-width: 560px) {
  .grow { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  .grow .t { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .grow .t b { display: inline; }
}

/* sidebar boxes */
.box { padding: 16px; }
.box h3 { font-family: var(--display); font-size: 20px; margin-bottom: 10px; }
.box .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; border-top: 1px dashed var(--rule); }
.box .row:first-of-type { border-top: 0; }
.ca { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: var(--r-sm); padding: 9px 12px; font-size: 13px; margin-top: 10px; }
.ca code { font: 600 13px var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }

/* blister pack: open picks as pills in their bubbles, settled ones popped */
.blister { background: linear-gradient(135deg, #EFECE4, var(--foil) 45%, #F3F1EB 70%, var(--foil)); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; box-shadow: inset 0 0 0 1px #D6D1C4; }
.bubble { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(21, 32, 26, .12); text-decoration: none; }
.bubble .dome { width: 48px; height: 38px; border-radius: 19px; background: radial-gradient(ellipse at 35% 30%, #fff, rgba(255, 255, 255, .4) 60%, rgba(220, 215, 204, .6)); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(21, 32, 26, .1); }
.bubble .dome .capsule { width: 40px; height: 40px; }
.bubble .what { min-width: 0; font-size: 13px; line-height: 1.3; }
.bubble .what b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble .what span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.bubble .pays { text-align: right; font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.bubble .pays b { display: block; font-size: 15px; color: var(--ink); }
.bubble.popped .dome { background: none; box-shadow: inset 0 0 0 1.5px var(--rule-2); border: 1px dashed var(--rule-2); }
.bubble.won .pays b { color: var(--yes); }
.bubble.lost .pays b { color: var(--no); }
.pop { animation: pop .7s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes pop { 0% { transform: translateY(-40px) scale(.6) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } }

/* futures and markets */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cols.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cols, .cols.four { grid-template-columns: minmax(0, 1fr); } }
.mcard { padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.mcard h3 { font-family: var(--display); font-size: 20px; line-height: 1.15; margin: 8px 0 10px; }
.mcard h3 a { text-decoration: none; }
.mcard h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.orow { display: grid; grid-template-columns: minmax(0, 1fr) 48px auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px dashed var(--rule); }
.orow:first-of-type { border-top: 0; }
.orow .nm { min-width: 0; font-weight: 600; font-size: 14px; position: relative; padding: 3px 0; }
.orow .nm span { position: relative; z-index: 1; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow .bar { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--yes-hi); opacity: .55; }
.orow .pct { text-align: right; font-weight: 800; }
.orow .yn { display: flex; gap: 6px; }
.orow .odds { min-width: 56px; height: 34px; }
.mcard .foot { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--ink-3); }

/* AFL fixture */
.fixture { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden; }
@media (max-width: 900px) { .fixture { grid-template-columns: minmax(0, 1fr); } }
.fx { padding: 12px 16px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: -1px 0 0 -1px; }
.fx .faint { font-size: 12px; }
.fx b { display: block; font-weight: 700; }

/* ---------- game page ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 18px 0 10px; }
.crumb a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.crumb a:hover { color: var(--ink); }
.ghead h1 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.015em; }
.ghead .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-2); margin-top: 8px; font-size: 14px; align-items: center; }
.ghead .meta .icon { vertical-align: -4px; margin-right: 4px; }
.match { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 18px; overflow: hidden; }
.side-panel { padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.side-panel + .side-panel { border-left: 1px dashed var(--rule-2); }
.side-panel .capsule { width: 78px; height: 78px; grid-row: span 3; }
.side-panel .nm { font-family: var(--display); font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.side-panel .sub { color: var(--ink-3); font-size: 13px; }
.side-panel .big { font-size: 34px; font-weight: 800; line-height: 1; }
.side-panel.lead .big { color: var(--yes); }
.side-panel .big small { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
@media (max-width: 560px) {
  .match { grid-template-columns: minmax(0, 1fr); }
  .side-panel + .side-panel { border-left: 0; border-top: 1px dashed var(--rule-2); }
  .side-panel .capsule { width: 60px; height: 60px; }
}
.chart-card { margin-top: 16px; padding: 16px; }
.chart-card .chart { height: 220px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.rules { margin-top: 16px; padding: 16px; font-size: 14px; color: var(--ink-2); }
.rules h3 { font-family: var(--display); color: var(--ink); font-size: 19px; margin-bottom: 6px; }

/* chart */
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--rule); stroke-dasharray: 2 4; }
.chart .grid text { fill: var(--ink-3); font-size: 11px; }
.chart .tip { font-size: 12px; font-weight: 700; }

/* ---------- ticket ---------- */
.ticket { padding: 18px; }
.ticket h3 { font-family: var(--display); font-size: 22px; margin-bottom: 4px; }
.ticket .pick-for { color: var(--ink-2); font-size: 13px; margin-bottom: 12px; }
.ticket .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ticket .choice { display: grid; gap: 2px; justify-items: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rule-2); background: var(--label); cursor: pointer; text-align: left; min-width: 0; }
.ticket .choice b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ticket .choice span { font-size: 12px; color: var(--ink-3); }
.ticket .choice.sel { border-color: var(--yes); background: var(--yes-tint); box-shadow: inset 0 0 0 1px var(--yes); }
.ticket .choice.sel.no { border-color: var(--no); background: var(--no-tint); box-shadow: inset 0 0 0 1px var(--no); }
.ticket label.amt { display: block; margin-top: 14px; font-weight: 700; font-size: 13px; }
.stake { display: flex; align-items: center; gap: 8px; margin-top: 6px; border: 1px solid var(--rule-2); border-radius: 12px; padding: 0 12px; background: #fff; height: 50px; }
.stake input { flex: 1; width: 0; min-width: 0; border: 0; background: none; font: 800 22px var(--text); color: var(--ink); outline: none; }
.stake .mark { width: 26px; height: 26px; }
.quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quick button { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--label); font-weight: 700; font-size: 13px; cursor: pointer; }
.quick button:hover { border-color: var(--ink-3); }
.readout { margin: 14px 0; border-top: 1px dashed var(--rule-2); }
.readout div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--rule); font-size: 14px; }
.readout div b { font-weight: 800; }
.readout .win b { color: var(--yes); font-size: 17px; }
.ticket .fine { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.problem { color: var(--no); font-size: 13px; font-weight: 600; margin-top: 10px; }
.good { color: var(--yes); font-size: 14px; font-weight: 700; margin-top: 10px; }

/* modal / drawer */
.scrim { position: fixed; inset: 0; background: rgba(21, 32, 26, .42); z-index: 60; display: grid; place-items: center; padding: 16px; }
.dialog { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--label); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); position: relative; }
.dialog .x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.dialog .d-body { padding: 22px; }
.dialog h2 { font-family: var(--display); font-size: 24px; margin: 0 40px 6px 0; }
@media (max-width: 560px) {
  .scrim { place-items: end stretch; padding: 0; }
  .dialog { width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; }
}
.wallet-list { display: grid; gap: 8px; margin: 14px 0; }
.wallet-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rule-2); background: #fff; cursor: pointer; text-align: left; }
.wallet-row:hover { border-color: var(--ink-3); }
.wallet-row img { width: 28px; height: 28px; border-radius: 7px; }
.wallet-row .tag { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 999px; font-weight: 700; z-index: 80; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
@media (max-width: 760px) { .toast { bottom: 84px; } }

/* ---------- tables (picks history, leaders) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table-wrap { overflow-x: auto; }
.rank { font-family: var(--display); font-size: 20px; width: 40px; }

/* picks page */
.balance { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; margin-top: 18px; }
.balance .capsule { width: 84px; height: 84px; }
.balance .num { font-family: var(--display); font-size: 52px; line-height: 1; }
.balance .lbl { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.stats b { color: var(--ink); font-size: 16px; display: block; }
@media (max-width: 560px) { .balance { grid-template-columns: auto minmax(0, 1fr); } .balance > :last-child { grid-column: 1 / -1; } .balance .num { font-size: 40px; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 18px; position: relative; }
.step .no { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--yes-hi); }
.step h3 { font-family: var(--display); font-size: 21px; margin: 8px 0 6px; }
.step p { color: var(--ink-2); }
.faq { display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--rule); padding: 14px 4px; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-3); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-2); margin-top: 8px; max-width: 70ch; }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose p + p { margin-top: 10px; }

/* empty / loading / error */
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 34px 18px; color: var(--ink-2); }
.empty .capsule { width: 90px; height: 90px; }
.empty b { color: var(--ink); font-size: 16px; }
.skel { background: linear-gradient(90deg, var(--paper-2), #F5F1E8, var(--paper-2)); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; border-radius: var(--r); }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* ---------- footer ---------- */
.foot { margin-top: 56px; border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--ink-2); font-size: 13px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }
.foot .wordmark { height: 26px; width: auto; }
.foot h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.foot a { display: block; text-decoration: none; padding: 3px 0; }
.foot a:hover { text-decoration: underline; }
.foot .legal { margin-top: 18px; font-size: 11px; color: var(--ink-3); }

/* ---------- phone bottom bar ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .nav, .search { display: none; }
  .top-in { gap: 10px; height: 58px; }
  .brand .wordmark { height: 26px; }
  .who { margin-left: auto; }
  .dock {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: rgba(255, 253, 247, .97); border-top: 1px solid var(--rule); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .dock a, .dock button { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; }
  .dock .on { color: var(--ink); }
  body { padding-bottom: 72px; }
  .msearch { padding: 12px var(--gut); border-bottom: 1px solid var(--rule); background: var(--paper); }
  .msearch .search { display: block; max-width: none; }
}
