/* ==========================================================
   Pick'em platform: marketing site + customer portal
   Idea: the paper pick'em sheet taped behind the bar, now on every phone.
   Ink navy, pool-sheet white with grid lines, highlighter yellow as the one
   bold accent; scoreboard red only for "live"; turf green only for wins.
   Barlow Condensed for headlines (scoreboard), Barlow for text.
   ========================================================== */
:root {
  --ink: #14213D;
  --ink-2: #22335A;
  --ink-soft: #4A5775;
  --paper: #F7F8FA;
  --paper-2: #EEF1F6;
  --grid: #D8DEE9;
  --white: #FFFFFF;
  --hi: #FFE14D;
  --hi-deep: #F2C400;
  --live: #E4412B;
  --turf: #1F7A4D;

  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;

  --wrap: 1160px;
  --r-sm: 6px;
  --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--hi); border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--hi); padding: .5rem 1rem; font-weight: 700; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type scale (minor third) ---------- */
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: .98; letter-spacing: -.005em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.8rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.55rem; line-height: 1.05; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--r-sm); border: 2px solid transparent;
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--hi { background: var(--hi); color: var(--ink); box-shadow: 0 3px 0 var(--hi-deep); }
.btn--hi:hover { background: #FFE866; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--grid); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(247, 248, 250, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--grid); }
.topbar__in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.6rem var(--head); text-decoration: none; letter-spacing: .01em; }
.logo__mark { width: 30px; height: 30px; border-radius: 7px; background: var(--ink); position: relative; flex: none; }
.logo__mark::after { content: ""; position: absolute; left: 8px; top: 7px; width: 13px; height: 8px; border-left: 4px solid var(--hi); border-bottom: 4px solid var(--hi); transform: rotate(-45deg); }
.logo--light { color: var(--white); }
.logo--light .logo__mark { background: var(--hi); }
.logo--light .logo__mark::after { border-color: var(--ink); }
.mainnav { display: flex; gap: .25rem; margin-left: auto; }
.mainnav a { padding: .45rem .75rem; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.mainnav a:hover, .mainnav a.is-active { color: var(--ink); background: var(--paper-2); }
.mainnav__signin { display: none; }
.topbar__cta { display: flex; gap: .5rem; align-items: center; }
.navtoggle { display: none; width: 44px; height: 44px; border: 1px solid var(--grid); border-radius: var(--r-sm); background: var(--white); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.navtoggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s; }

/* ---------- sections ---------- */
.sec { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sec--white { background: var(--white); border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.sec--ink { background: var(--ink); color: var(--white); }
.sec--ink .lede { color: #C7D0E2; }
.sec__head { max-width: 40rem; margin-bottom: 2.5rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-bottom: 1.6rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; }
.hero__fine { font-size: .95rem; color: var(--ink-soft); }

/* the paper pick sheet + phone illustration */
.scene { position: relative; min-height: 480px; }
.sheet {
  position: absolute; left: 0; top: 10px; width: min(360px, 78%);
  background:
    linear-gradient(var(--white), var(--white)) padding-box;
  border: 1px solid var(--grid); border-radius: 4px; padding: 1.1rem 1.1rem 1.4rem;
  transform: rotate(-3.5deg); box-shadow: 0 1px 0 var(--grid), 0 24px 40px -28px rgba(20, 33, 61, .45);
}
.sheet::before { /* tape */
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; margin-left: -55px;
  background: rgba(255, 225, 77, .55); transform: rotate(2deg);
}
.sheet__title { font: 800 1.35rem var(--head); margin: 0 0 .2rem; }
.sheet__sub { font-size: .8rem; color: var(--ink-soft); margin: 0 0 .7rem; }
.sheet table { width: 100%; border-collapse: collapse; font: 600 .95rem var(--head); }
.sheet td { border-top: 1px solid var(--grid); padding: .42rem .3rem; }
.sheet td.l { color: var(--ink-soft); font-weight: 600; width: 3.2rem; text-align: right; }
.pickmark { position: relative; z-index: 0; }
.pickmark::before { /* highlighter circle */
  content: ""; position: absolute; z-index: -1; inset: -3px -8px; border-radius: 50%;
  border: 2.5px solid var(--hi-deep); background: rgba(255, 225, 77, .45); transform: rotate(-4deg);
}
.sheet__names { margin-top: .8rem; font: 400 1.05rem var(--marker); color: var(--ink-2); line-height: 1.5; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 250px; height: 470px; border-radius: 36px;
  background: var(--ink); padding: 12px; box-shadow: 0 30px 50px -30px rgba(20, 33, 61, .8);
}
.phone__screen { height: 100%; border-radius: 26px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.phone__site { padding: 14px 14px 8px; border-bottom: 1px solid var(--grid); }
.phone__site b { display: block; font: 800 1.05rem var(--head); }
.phone__site span { font-size: .72rem; color: var(--ink-soft); }
.panel { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.panel__tabs { display: flex; gap: 4px; font: 700 .7rem var(--body); }
.panel__tabs span { padding: 4px 8px; border-radius: 999px; background: var(--paper-2); }
.panel__tabs .on { background: var(--ink); color: var(--white); }
.game { background: var(--white); border: 1px solid var(--grid); border-radius: 10px; padding: 8px; }
.game__meta { display: flex; justify-content: space-between; font-size: .64rem; color: var(--ink-soft); margin-bottom: 6px; }
.game__meta .live { color: var(--live); font-weight: 700; }
.game__picks { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.game__picks span { border: 1.5px solid var(--grid); border-radius: 7px; padding: 5px 6px; font: 700 .8rem var(--head); display: flex; justify-content: space-between; }
.game__picks .mine { border-color: var(--ink); background: var(--hi); }
.game__cover { font-size: .66rem; font-weight: 700; color: var(--turf); margin-top: 5px; }
.panel__board { margin-top: auto; background: var(--ink); color: var(--white); border-radius: 10px; padding: 8px 10px; font-size: .72rem; }
.panel__board b { font: 800 .9rem var(--head); display: block; margin-bottom: 3px; }
.panel__board div { display: flex; justify-content: space-between; padding: 2px 0; }
.panel__board .me { color: var(--hi); font-weight: 700; }
.launcher {
  position: absolute; right: 26px; bottom: -18px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--hi); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 14px; font: 800 .95rem var(--head); box-shadow: 0 8px 18px -8px rgba(20, 33, 61, .6);
}
.launcher i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }

/* ---------- before/after strip ---------- */
.swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: stretch; }
.swap__col { padding: 1.4rem 1.5rem; border-radius: var(--r); }
.swap__col h3 { margin-bottom: .6rem; }
.swap__col ul { margin: 0; padding-left: 1.1rem; }
.swap__col li { margin-bottom: .35rem; }
.swap__old { background: var(--paper-2); color: var(--ink-soft); }
.swap__new { background: var(--white); border: 2px solid var(--ink); }
.swap__arrow { align-self: center; font: 800 2.4rem var(--head); color: var(--ink); }

/* ---------- steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; font: 800 3.2rem/1 var(--head); color: var(--ink); margin-bottom: .5rem; }
.steps p { color: var(--ink-soft); margin: 0; }
.snippet { display: block; margin-top: .8rem; padding: .7rem .8rem; border-radius: var(--r-sm); background: var(--ink); color: var(--hi); font: 500 .8rem/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; overflow-x: auto; white-space: nowrap; }

/* ---------- feature list (two columns, ruled, not cards) ---------- */
.flist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.fitem { padding: 1.3rem 0; border-top: 1px solid var(--grid); display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; }
.fitem svg { width: 2.2rem; height: 2.2rem; color: var(--ink); }
.fitem h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.fitem p { margin: 0; color: var(--ink-soft); }

/* ---------- platforms row ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.platforms li { padding: .45rem .9rem; border: 1px solid var(--grid); border-radius: 999px; background: var(--white); font-weight: 600; }

/* ---------- compare ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--grid); border-radius: var(--r); overflow: hidden; }
.compare th, .compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--grid); vertical-align: top; }
.compare thead th { font: 800 1.15rem var(--head); background: var(--paper-2); }
.compare thead th.us { background: var(--ink); color: var(--white); }
.compare td.us { font-weight: 700; background: #FFFBE0; }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--grid); border-radius: var(--r); padding: 1.6rem; }
.plan--pro { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--hi); }
.plan h3 { font-size: 1.8rem; margin-bottom: .2rem; }
.plan__for { color: var(--ink-soft); margin-bottom: 1rem; }
.plan__price { font: 800 3.2rem/1 var(--head); margin-bottom: .2rem; }
.plan__price small { font: 600 1rem var(--body); color: var(--ink-soft); }
.plan__note { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.plan li { padding: .4rem 0 .4rem 1.6rem; position: relative; border-top: 1px solid var(--paper-2); }
.plan li::before { content: ""; position: absolute; left: .15rem; top: .82rem; width: .7rem; height: .4rem; border-left: 2.5px solid var(--turf); border-bottom: 2.5px solid var(--turf); transform: rotate(-45deg); }
.plan__tag { display: inline-block; background: var(--hi); font-weight: 700; font-size: .85rem; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .7rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--grid); }
.faq details:last-child { border-bottom: 1px solid var(--grid); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font: 700 1.3rem var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .75rem; font: 700 1.8rem var(--head); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink-soft); max-width: 42rem; }

/* ---------- final CTA band ---------- */
.band { background: var(--ink); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0; }
.band__in { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.band h2 { margin: 0; max-width: 18ch; }
.band p { color: #C7D0E2; margin: .6rem 0 0; }

/* ---------- page header (inner pages) ---------- */
.phead { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--grid); background:
  repeating-linear-gradient(0deg, transparent 0 31px, var(--grid) 31px 32px); }
.phead h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 16ch; }

/* ---------- prose (legal, long text) ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.8rem; margin-top: 2rem; }
.prose .draft { background: #FFFBE0; border: 1px solid var(--hi-deep); padding: .8rem 1rem; border-radius: var(--r-sm); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; max-width: 34rem; }
.form--card { background: var(--white); border: 1px solid var(--grid); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2rem); }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 700; }
.field small { color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--grid); border-radius: var(--r-sm); padding: .7rem .8rem; min-height: 46px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--hi); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--ink); }
.notice { padding: .8rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.notice--ok { background: #E3F4EA; color: #14543A; border: 1px solid #A9D8BD; }
.notice--bad { background: #FDE8E4; color: #8A2414; border: 1px solid #F3B8AC; }
.hp { position: absolute !important; left: -9999px; }

/* ---------- contact layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---------- portal ---------- */
.portal-body { background: var(--paper-2); }
.auth { min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 2.5rem 1.25rem; }
.auth__card { width: min(460px, 100%); background: var(--white); border: 1px solid var(--grid); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2.2rem); }
.auth__card h1 { font-size: 2.4rem; }
.auth__alt { margin-top: 1.2rem; color: var(--ink-soft); }
.dash { padding: 2.5rem 0 4rem; }
.dash__head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.dash__head h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin: 0; }
.setup { background: var(--white); border: 1px solid var(--grid); border-radius: var(--r); padding: 1.5rem; }
.setup ol { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: s; }
.setup li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .8rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--paper-2); }
.setup li::before { content: counter(s); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font: 800 1rem var(--head); background: var(--paper-2); }
.setup li.done::before { content: ""; background: var(--turf); }
.setup li b { display: block; }
.setup li span { color: var(--ink-soft); font-size: .92rem; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--paper-2); }
.pill--soon { background: #FFFBE0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.fact { background: var(--white); border: 1px solid var(--grid); border-radius: var(--r); padding: 1rem 1.2rem; }
.fact b { display: block; font: 800 1.6rem var(--head); }
.fact span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #C7D0E2; padding: 3rem 0 1.5rem; }
.foot__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot__brand p { margin-top: .8rem; max-width: 22rem; }
.foot__col { display: grid; gap: .45rem; align-content: start; }
.foot__col h2 { font: 700 1.1rem var(--head); color: var(--white); margin: 0 0 .3rem; }
.foot__col a { text-decoration: none; }
.foot__col a:hover { color: var(--hi); text-decoration: underline; }
.foot__base { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--ink-2); font-size: .88rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .scene { min-height: 500px; max-width: 520px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 460px; }
  .flist { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .navtoggle { display: flex; }
  .topbar__signin { display: none; }
  .mainnav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem;
    background: var(--paper); border-bottom: 1px solid var(--grid); box-shadow: 0 20px 30px -20px rgba(20, 33, 61, .4);
    transform: translateY(-120%); visibility: hidden; transition: transform .22s ease;
  }
  .mainnav a { padding: .85rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--paper-2); border-radius: 0; }
  .mainnav__signin { display: block; }
  .topbar.is-open .mainnav { transform: none; visibility: visible; }
  .topbar.is-open .navtoggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .topbar.is-open .navtoggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .swap { grid-template-columns: 1fr; }
  .swap__arrow { transform: rotate(90deg); justify-self: center; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar .btn--hi { padding: .6rem .9rem; font-size: .95rem; }
  .scene { min-height: 520px; }
  .sheet { width: 88%; }
  .phone { width: 220px; height: 420px; }
  .field-row { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.game__picks em { font-style: normal; color: var(--ink-soft); }
.game__picks .mine em { color: var(--ink); }

/* layout fixes after review: grid children may shrink (long code lines scroll inside) */
.steps li, .flist > *, .split > *, .hero__grid > *, .swap > * { min-width: 0; }
.snippet { max-width: 100%; }
.hero h1 { max-width: 12ch; }
.sheet { width: min(330px, 70%); }
.band h2 { max-width: 22ch; }
.setup li.done::before { content: "\2713"; color: var(--white); }

/* ---------- platform admin ---------- */
.topbar--admin { background: var(--ink); border-bottom-color: var(--ink-2); }
.topbar--admin .btn--ghost { background: transparent; color: var(--white); border-color: var(--ink-2); }
.admin-tag { font: 700 .8rem var(--body); background: var(--hi); color: var(--ink); padding: .1rem .45rem; border-radius: 4px; margin-left: .2rem; }
.adminnav { display: flex; flex-wrap: wrap; gap: .15rem; margin-left: auto; }
.adminnav a { color: #C7D0E2; text-decoration: none; font-weight: 600; padding: .4rem .65rem; border-radius: var(--r-sm); }
.adminnav a:hover, .adminnav a.is-active { background: var(--ink-2); color: var(--white); }
.admin-main { padding: 2rem 0 4rem; }
.admin-main h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.admin-main h2 { font-size: 1.6rem; margin-top: 2rem; }
.box { background: var(--white); border: 1px solid var(--grid); border-radius: var(--r); padding: 1.2rem 1.3rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.facts--4 { grid-template-columns: repeat(4, 1fr); }
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--grid); border-radius: var(--r); overflow: hidden; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.tbl th { background: var(--paper-2); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl small { color: var(--ink-soft); }
.inline { display: inline; }
.bar-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.bar-tools input, .bar-tools select { font: inherit; padding: .55rem .7rem; border: 1.5px solid var(--grid); border-radius: var(--r-sm); min-height: 42px; }
.btn--sm { min-height: 36px; padding: .35rem .8rem; font-size: .9rem; }
.btn--danger { background: var(--white); color: var(--live); border-color: #F3B8AC; }
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--paper-2); }
.status--ok { background: #E3F4EA; color: #14543A; }
.status--bad { background: #FDE8E4; color: #8A2414; }
@media (max-width: 980px) {
  .adminnav { order: 3; width: 100%; margin: 0 0 .6rem; }
  .topbar--admin .topbar__in { flex-wrap: wrap; }
  .grid2, .facts--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .grid2, .facts--4 { grid-template-columns: 1fr; } .tbl { font-size: .88rem; } }

/* ---------- changelog (admin > versions) ---------- */
.changelog { max-width: 60rem; }
.changelog h1 { display: none; }
.changelog h2 { font-size: 1.7rem; margin: 2rem 0 .5rem; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.changelog h2:first-of-type { margin-top: 0; }
.changelog ul { padding-left: 1.2rem; }
.changelog li { margin-bottom: .3rem; }
.changelog code { background: var(--paper-2); padding: .05rem .3rem; border-radius: 4px; font-size: .9em; }

/* ---------- setup wizard ---------- */
.wizsteps { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.wizsteps a, .wizsteps span { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem .4rem .45rem; border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; background: var(--white); border: 1px solid var(--grid); }
.wizsteps b { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--paper-2); font: 800 .85rem var(--head); }
.wizsteps .is-current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.wizsteps .is-current b { background: var(--hi); color: var(--ink); }
.wizsteps .is-later { color: var(--ink-soft); opacity: .7; }
.wizform { max-width: 44rem; }
.wizform__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: .5rem; }
.field__label { font-weight: 700; display: block; margin-bottom: .3rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.logo-preview { width: 96px; height: 96px; object-fit: contain; background: var(--paper-2); border-radius: var(--r-sm); padding: 6px; }
.lookgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.lookprev { position: sticky; top: 90px; border: 1px solid var(--grid); border-radius: var(--r); overflow: hidden; background: var(--white); }
.lookprev__bar { display: flex; align-items: center; gap: 5px; padding: .5rem .7rem; background: var(--paper-2); font-size: .8rem; color: var(--ink-soft); }
.lookprev__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--grid); }
.lookprev__bar span { margin-left: .5rem; background: var(--white); border-radius: 4px; padding: .1rem .5rem; flex: 1; }
.lookprev__site { position: relative; min-height: 420px; padding: 1.2rem; }
.lookprev__site > b { display: block; font: 800 1.4rem var(--head); margin: .3rem 0 1rem; }
.lookprev__logo { width: 56px; height: 56px; object-fit: contain; }
.lookprev__line { display: block; height: 10px; border-radius: 5px; background: var(--paper-2); margin-bottom: .6rem; }
.lookprev__line.short { width: 60%; }
.lookprev__panel { position: absolute; right: 16px; bottom: 70px; width: 210px; background: var(--white); border: 1px solid var(--grid); border-radius: 12px; box-shadow: 0 16px 30px -18px rgba(20,33,61,.6); overflow: hidden; }
.lookprev__panel.is-left { right: auto; left: 16px; }
.lookprev__panel.is-dark { background: #16202E; border-color: #2A3548; color: var(--white); }
.lookprev__phead { padding: .5rem .7rem; font: 800 1rem var(--head); }
.lookprev__game { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: .45rem .6rem; }
.lookprev__game span { border: 1.5px solid var(--grid); border-radius: 7px; padding: .3rem .4rem; font: 700 .8rem var(--head); text-align: center; }
.lookprev__panel.is-dark .lookprev__game span { border-color: #2A3548; }
.lookprev__btn { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; border: 2px solid; border-radius: 999px; padding: 8px 14px; font: 800 .95rem var(--head); box-shadow: 0 8px 18px -8px rgba(20,33,61,.6); }
.lookprev__btn.is-left { right: auto; left: 16px; }
.lookprev__btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.leagues { display: grid; gap: .1rem; }
.league { display: grid; grid-template-columns: 14rem 1fr; gap: .8rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--paper-2); }
.league__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.league__opts select, .league__opts input { font: inherit; padding: .5rem .6rem; border: 1.5px solid var(--grid); border-radius: var(--r-sm); min-height: 42px; width: 100%; }
.league:not(:has(input[type=checkbox]:checked)) .league__opts { opacity: .45; }
.setup li a b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .lookgrid { grid-template-columns: 1fr; }
  .lookprev { position: static; }
  .league { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .league__opts { grid-template-columns: 1fr; } }
.roadmap h1 { display: block; font-size: 1.8rem; }
.roadmap h2 { font-size: 1.35rem; }
.roadmap ul { list-style: none; padding-left: 0; }
.roadmap li { padding-left: 0; }
.roadmap input[type=checkbox] { margin-right: .45rem; accent-color: var(--turf); }

/* ---------- wizard choices (radio cards) ---------- */
.choice { display: grid; grid-template-columns: 1.2rem 1fr; gap: .7rem; align-items: start; padding: .8rem 1rem; border: 1.5px solid var(--grid); border-radius: var(--r-sm); margin-bottom: .5rem; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); background: #FFFBE0; }
.choice input { margin-top: .25rem; accent-color: var(--ink); width: 1.1rem; height: 1.1rem; }
.choice b { display: block; }
.choice span { color: var(--ink-soft); }
.choice span b { color: var(--ink); }
.wizform textarea { font: 400 .95rem/1.55 var(--body); }
.choice > span { font-weight: 400; }
.choice > span b { font-weight: 700; margin-bottom: .1rem; }

/* ==========================================================
   0.11.0: SportsPlay logo + phone menu that slides out
   ========================================================== */
.logo__img { height: 50px; width: auto; display: block; }
.logo--chip { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 4px 10px; }
.logo--chip img { height: 44px; width: auto; display: block; }
.topbar--admin .logo--chip img { height: 36px; }
.mainnav__head, .mainnav__cta, .navscrim { display: none; }
@media (max-width: 860px) {
  .topbar__in { gap: .6rem; min-height: 64px; }
  .logo__img { height: 42px; }
  .topbar__cta { margin-left: auto; }
  .navtoggle { display: flex; flex: none; }
  .mainnav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px); height: 100dvh; z-index: 60;
    display: flex; flex-direction: column; gap: 0; padding: 0 0 1.2rem; margin: 0;
    background: var(--white); border-left: 1px solid var(--grid); box-shadow: -24px 0 50px -20px rgba(14, 27, 51, .55);
    transform: translateX(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility .28s;
    overflow-y: auto;
  }
  .topbar.is-open .mainnav { transform: none; visibility: visible; }
  .mainnav__head { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--grid); background: var(--paper); }
  .mainnav__head img { height: 44px; width: auto; }
  .mainnav__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--grid); background: var(--white); font: 700 1.6rem/1 var(--body); color: var(--ink); cursor: pointer; }
  .mainnav > a { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; font: 800 1.45rem var(--head); color: var(--ink); border-bottom: 1px solid var(--paper-2); border-radius: 0; background: none; }
  .mainnav > a::after { content: ""; width: .55rem; height: .55rem; border-right: 3px solid var(--ink-soft); border-top: 3px solid var(--ink-soft); transform: rotate(45deg); }
  .mainnav > a.is-active { background: var(--paper-2); box-shadow: inset 4px 0 0 var(--hi-deep); }
  .mainnav__cta { display: grid; gap: .6rem; padding: 1.2rem 1.2rem 0; margin-top: auto; }
  .mainnav__cta p { margin: .3rem 0 0; font-size: .92rem; color: var(--ink-soft); text-align: center; }
  .navscrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(14, 27, 51, .5); animation: scrimIn .2s ease; }
  .navscrim[hidden] { display: none; }
  html.nav-lock, html.nav-lock body { overflow: hidden; }
  .mainnav__signin { display: none !important; }
  .topbar.is-open .navtoggle span:first-child, .topbar.is-open .navtoggle span:last-child { transform: none; }
}
@media (max-width: 560px) {
  .topbar__cta .btn--hi { display: none; }   /* the trial button lives in the menu on phones, so the menu button always fits */
  .logo__img { height: 38px; }
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mainnav { transition: none; } .navscrim { animation: none; } }
