:root {
  --bg: #000;
  --surface: #0a0a0a;
  --hover: #141414;
  --line: #1f1f1f;
  --line2: #333;
  --text: #fff;
  --muted: #8f8f8f;
  --dim: #5c5c5c;
  --fill: #3d3d3d;
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.auto-only { display: none; }
body.view-auto .build-only { display: none; }
body.view-auto .auto-only { display: revert; }
body.view-auto .hero { grid-template-columns: 1fr; padding-bottom: 24px; }
p.hint.auto-only { max-width: 560px; }
body.view-auto .hint span:first-child { color: inherit; font-weight: inherit; }
.muted { color: var(--muted); }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  height: 56px; padding: 0 max(16px, 3vw);
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.tabs { display: flex; gap: 24px; height: 100%; }
.tab {
  height: 100%; border: 0; background: none; padding: 0; color: var(--muted); font-weight: 500;
  box-shadow: inset 0 -2px 0 transparent; transition: color 0.15s, box-shadow 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.date-pick { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.date-pick span { min-width: 92px; text-align: center; color: var(--text); }
.date-pick button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: none; transition: border-color 0.15s; }
.date-pick button:hover { border-color: var(--line2); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center;
  padding: 40px max(16px, 3vw) 32px;
}
.hero h1 { margin: 0 0 20px; font-size: clamp(30px, 4.4vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.money { display: inline-flex; align-items: baseline; }
.money input {
  field-sizing: content; min-width: 1ch; max-width: 6ch; padding: 0; border: 0; outline: none; background: none;
  font: inherit; letter-spacing: inherit; color: inherit;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--line2);
  -moz-appearance: textfield;
}
.money input:focus { text-decoration-color: var(--text); }
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#target { width: 100%; max-width: 560px; margin: 0; appearance: none; height: 2px; background: linear-gradient(90deg, var(--text) var(--pos, 10%), var(--line2) var(--pos, 10%)); outline: none; }
#target::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text); cursor: grab; transition: transform 0.15s; }
#target::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
#target::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--text); }
.hint { margin: 12px 0 0; color: var(--muted); }
.hint span:first-child { color: var(--text); font-weight: 600; }

.meter { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.meter-row { display: grid; grid-template-columns: 80px 1fr 64px; gap: 14px; align-items: center; margin-bottom: 12px; color: var(--muted); }
.meter-row b { text-align: right; font-size: 20px; font-weight: 600; color: var(--muted); }
.meter-row.data, .meter-row.data b { color: var(--text); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--fill); transition: width 0.5s var(--ease); }
.data .bar i, .bar.data i { background: var(--text); }
.meter-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.meter-note b { color: var(--text); font-weight: 600; }

/* games */
.games { display: flex; gap: 8px; overflow-x: auto; padding: 0 max(16px, 3vw) 24px; scroll-padding-inline: max(16px, 3vw); scroll-snap-type: x proximity; scrollbar-width: none; }
.games::-webkit-scrollbar { display: none; }
.game {
  flex: 0 0 auto; width: 188px; scroll-snap-align: start; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 12px 14px;
  transition: border-color 0.15s, background 0.15s;
}
.game:hover { border-color: var(--line2); }
.game.active { border-color: var(--text); }
.game.off { color: var(--muted); }
.game-team { display: flex; align-items: center; gap: 10px; font-weight: 600; height: 26px; }
.game-team img { width: 22px; height: 22px; }
.game-team .rec { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--dim); }
.game-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 0 max(16px, 3vw) 64px; align-items: start; }
.view { min-width: 0; }
.board-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: none; color: var(--muted); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; transition: all 0.15s; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.board-tools { display: flex; gap: 8px; }
.board-tools input, .board-tools select, .auto-controls select, .sgp input {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; outline: none; transition: border-color 0.15s;
}
.board-tools input:focus, .sgp input:focus { border-color: var(--line2); }

.board { display: grid; gap: 10px; transition: opacity 0.2s; }
.board.fading { opacity: 0.35; }
.section-title { margin: 14px 0 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.empty, .notice { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; }
.empty { padding: 48px 16px; text-align: center; }

.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--hover) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton.short { height: 64px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; background: var(--surface) center 20% / cover; }
.player-name { border: 0; background: none; padding: 0; font-weight: 600; text-align: left; }
.player-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.sub { font-size: 12px; color: var(--muted); }
.tag { margin-left: 8px; padding: 1px 7px; border: 1px solid var(--line2); border-radius: 999px; font-size: 11px; color: var(--muted); font-weight: 500; }

.row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 8px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-name b { display: block; font-weight: 500; }
.row-name span { font-size: 12px; color: var(--dim); }
.pick {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; text-align: left;
  border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 7px 10px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pick:hover { border-color: var(--line2); background: var(--hover); }
.pick:active { transform: scale(0.985); }
.pick .side { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pick .odds { font-weight: 600; }
.pick .p { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pick .p.up { color: var(--text); font-weight: 600; }
.pick.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.pick.on .side, .pick.on .p { color: rgba(0, 0, 0, 0.6); }
.pick.on .p.up { color: var(--bg); }

/* slip */
.slip { position: sticky; top: 76px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.slip-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.link { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; }
.link:hover { color: var(--text); }
.slip-legs { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow: auto; }
.slip-empty { margin: 0; padding: 20px 16px; color: var(--muted); font-size: 13px; }
.leg { position: relative; padding: 12px 40px 12px 16px; border-bottom: 1px solid var(--line); animation: in 0.25s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(-4px); } }
.leg-title { font-weight: 500; font-size: 13px; }
.leg-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.leg-meta b { color: var(--text); font-weight: 600; }
.mini { display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 3px; }
.mini .bar { height: 4px; }
.mini span:last-child { text-align: right; }
.mini.data span { color: var(--text); }
.leg-x { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--dim); font-size: 16px; line-height: 1; transition: color 0.15s, background 0.15s; }
.leg-x:hover { color: var(--text); background: var(--hover); }

.slip-sum { padding: 14px 16px 16px; }
.slip-sum:empty { display: none; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; color: var(--muted); }
.sum-row b { color: var(--text); font-weight: 600; }
.sum-row.big b { font-size: 24px; letter-spacing: -0.02em; }
.progress { height: 2px; background: var(--line); margin: 8px 0 14px; }
.progress i { display: block; height: 100%; background: var(--text); transition: width 0.4s var(--ease); }
.slip-sum .meter-row { grid-template-columns: 72px 1fr 52px; margin-bottom: 8px; font-size: 13px; }
.slip-sum .meter-row b { font-size: 15px; }
.note { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--muted); }
.note b { color: var(--text); font-weight: 600; }
.verdict { margin-top: 12px; padding: 12px; border-radius: 8px; border: 1px solid var(--line2); font-size: 13px; color: var(--muted); }
.verdict b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.verdict.good { background: var(--text); border-color: var(--text); color: rgba(0, 0, 0, 0.7); }
.verdict.good b { color: var(--bg); }
.sgp label { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sgp input { width: 90px; }

/* auto */
.auto-head h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.auto-head p { margin: 0 0 14px; max-width: 640px; }
.auto-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.auto-controls .btn { margin-left: auto; }
.check { display: flex; align-items: center; gap: 6px; }
.check input { accent-color: #fff; }
.btn { border: 1px solid var(--line2); background: none; border-radius: 8px; padding: 9px 16px; font-weight: 600; transition: opacity 0.15s, background 0.15s; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { opacity: 0.85; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.auto-results { display: grid; gap: 10px; margin-top: 16px; }
.auto-slip { padding: 16px; }
.auto-rank { font-size: 13px; color: var(--muted); width: 22px; }
.auto-bar { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 2px; font-size: 13px; color: var(--muted); }
.auto-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 12px; }
.auto-top div { display: flex; flex-direction: column; }
.auto-top small { font-size: 12px; color: var(--muted); }
.auto-top b { font-size: 18px; font-weight: 600; }
.auto-top .dim { color: var(--muted); }
.auto-top .btn { margin-left: auto; }
.auto-leg { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.auto-leg span:last-child { color: var(--muted); white-space: nowrap; }

/* drawer */
.drawer {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, 0.75); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer-card {
  width: min(760px, 100%); max-height: 88vh; overflow: auto; padding: 22px;
  border: 1px solid var(--line2); border-radius: 14px; background: var(--bg);
  transform: translateY(8px) scale(0.99); transition: transform 0.25s var(--ease);
}
.drawer.open .drawer-card { transform: none; }
.d-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.d-head .avatar { width: 52px; height: 52px; }
.d-head h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.d-close { margin-left: auto; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: none; font-size: 18px; }
.d-probs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.d-prob { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.d-prob small { font-size: 12px; color: var(--muted); }
.d-prob b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 2px 0; }
.d-prob p { margin: 0; font-size: 12px; color: var(--dim); }
.d-prob.main { border-color: var(--text); }
.d-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.d-box { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.d-box h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.d-box h4 span { color: var(--muted); font-weight: 400; }
.factor { display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.factor:first-of-type { border-top: 0; }
.factor em { font-style: normal; font-weight: 600; }
.factor span { grid-column: 1 / -1; font-size: 12px; color: var(--dim); }
.hits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hit { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.hit b { color: var(--text); font-weight: 600; }
.chart { display: block; width: 100%; max-height: 220px; }
.chart text { font: 500 10px 'Inter', sans-serif; fill: var(--muted); }
.chart .val { fill: var(--text); font-weight: 600; }
.d-note { margin: 14px 0 0; font-size: 12px; color: var(--dim); }

/* track record */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.stat small { font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 2px; }
.stat span { font-size: 12px; color: var(--dim); }
.rec-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.rec-grid .card { padding: 18px; }
.rec-grid h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.rec-grid p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.rec-grid .chart { max-height: 320px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 4px; text-align: left; border-top: 1px solid var(--line); }
th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
td.num, th.num { text-align: right; }
tr.best td { font-weight: 600; }
.legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--text); vertical-align: middle; margin-right: 6px; }
.legend i.dash { border-top: 2px dashed var(--muted); }
.honest { margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; color: var(--muted); }
.honest b { color: var(--text); }

.foot { padding: 20px max(16px, 3vw) 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 60; transform: translate(-50%, 8px); opacity: 0; padding: 9px 14px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 500; transition: opacity 0.2s, transform 0.2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.slip-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 30; display: none; align-items: center; gap: 16px;
  width: min(560px, calc(100% - 32px)); padding: 12px 16px; border: 0; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 13px; text-align: left;
  transform: translate(-50%, calc(100% + 24px)); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0.3s;
}
.slip-bar b { font-weight: 600; }
.slip-bar .sb-main { flex: 1; }
.slip-bar .sb-p { color: rgba(0, 0, 0, 0.6); white-space: nowrap; }
.slip-bar.show { transform: translate(-50%, 0); visibility: visible; }
body:has(.drawer.open) .slip-bar { transform: translate(-50%, calc(100% + 24px)); visibility: hidden; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .slip { position: static; scroll-margin-top: 72px; }
  .slip-bar { display: flex; }
  .foot { padding-bottom: 96px; }
  .slip-legs { max-height: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .meter { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .rec-grid, .d-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { gap: 16px; height: auto; flex-wrap: wrap; padding-top: 10px; }
  .tabs { order: 3; width: 100%; height: 40px; gap: 20px; }
  .row { grid-template-columns: 1fr 1fr; }
  .row-name { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .row-name b { display: inline; }
  .d-probs { grid-template-columns: 1fr; }
  .auto-controls .btn { margin-left: 0; width: 100%; }
  .board-tools { width: 100%; }
  .board-tools input { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* results */
body.view-results .hero { display: none; }
#view-results { padding-top: 24px; }
.res-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.res-big { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.res-big b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.res-big span { font-size: 13px; color: var(--muted); }
.res-line { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.res-modes { margin-bottom: 12px; }
.res-list { display: grid; gap: 8px; }
.res-slip { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.res-slip.win { border-color: var(--text); }
.res-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.res-top b { margin-left: auto; color: var(--text); font-weight: 600; }
.res-tag { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12px; font-weight: 600; color: var(--muted); }
.res-slip.win .res-tag { background: var(--text); border-color: var(--text); color: var(--bg); }
.res-leg { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 3px 0; font-size: 13px; }
.res-leg i { font-style: normal; font-weight: 700; text-align: center; }
.res-leg.loss, .res-leg.void { color: var(--muted); }
.res-leg em { font-style: normal; color: var(--dim); font-size: 12px; }
.res-more { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.res-more summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.res-more table { margin-top: 10px; }
.res-all { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: var(--radius); display: grid; gap: 2px; }
.res-all span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .res-head { grid-template-columns: 1fr; } }

/* account, plans, modal */
.account { display: flex; align-items: center; gap: 14px; }
.pro-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line2); color: var(--muted); vertical-align: 1px; }
.pro-tag.on { background: var(--text); color: var(--bg); border-color: var(--text); }
body.is-pro .tab .pro-tag { display: none; }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); transform: translateY(8px); transition: transform 0.25s var(--ease); }
.modal.open .modal-card { transform: none; }
.modal-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; }
.form { display: grid; gap: 12px; margin: 18px 0 10px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; outline: none; transition: border-color 0.15s; }
.form input:focus { border-color: var(--line2); }
.form-err { margin: 0; min-height: 18px; font-size: 13px; color: var(--text); }
.small { font-size: 12px; }
.ticks { margin: 16px 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.ticks li::before { content: '✓'; margin-right: 10px; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 12px; }
.plan { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--bg); transition: border-color 0.15s, background 0.15s; }
.plan:hover { background: var(--hover); }
.plan.best { border-color: var(--text); }
.plan span { font-size: 13px; color: var(--muted); }
.plan em { font-style: normal; color: var(--text); font-weight: 600; }
.plan b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.plan b small { font-size: 13px; font-weight: 400; color: var(--muted); }
.row-btns { display: flex; gap: 8px; margin-top: 18px; }

/* picks and proof */
.paywall { max-width: 560px; margin: 24px auto; padding: 40px 28px; text-align: center; border: 1px solid var(--line); border-radius: 14px; }
.paywall h2 { margin: 0 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.paywall p { color: var(--muted); margin: 0 0 20px; }
.paywall a, .notice a, .honest a { color: var(--text); }
.locked-card { padding: 18px; margin-bottom: 10px; text-align: center; border-style: dashed; }
.locked-card p { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
h3.sec { margin: 22px 0 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pick-game { margin-bottom: 10px; }
.pick-game .card-head span { margin-left: auto; font-size: 12px; }
.pick-row { display: grid; grid-template-columns: 1fr 56px 74px 66px 76px; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.pick-row:first-of-type { border-top: 0; }
.pick-row .num { text-align: right; }
code { font: 12px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--muted); }
.chain-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; color: var(--muted); }
.chain-bar b { color: var(--text); }
.honest p { margin: 8px 0 0; }
#view-proof .notice, #view-proof .rec-grid { margin-top: 12px; }
.proof-list { margin-top: 12px; padding: 18px; }
.proof-list h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table-wrap td { white-space: nowrap; }
@media (max-width: 640px) {
  .account .link { display: none; }
  .plans { grid-template-columns: 1fr; }
  .pick-row { grid-template-columns: 1fr 56px 66px; }
  .pick-row span:nth-child(3), .pick-row span:nth-child(5) { display: none; }
}
body.no-hero .hero { display: none; }
body.no-hero .layout { padding-top: 24px; }
@media (max-width: 640px) { .tabs { overflow-x: auto; scrollbar-width: none; } .tab { white-space: nowrap; } }
.tag.strat { margin-left: 6px; border-color: var(--text); color: var(--text); white-space: nowrap; }
.strat-card { margin-bottom: 12px; }
.strat-card td { white-space: normal; vertical-align: top; }
.strat-card td .small { margin-top: 2px; max-width: 520px; }
