/* Stryket. "Matchdag": a calm surface, one green for what you picked, yellow for covers, condensed
   capitals for signs and headings like a scoreboard. Fonts are served from here (the CSP allows
   nothing else): Inter for text and numbers, Barlow Condensed for signs and headings. */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f3f4ef; --card: #ffffff; --sunk: #f3f4ef; --track: #e6e9e2;
  --ink: #101814; --ink-2: #4a564f; --ink-3: #6b776f; --line: #e1e4dc; --line-2: #eceee8;
  --green: #0a7a45; --on-green: #ffffff; --green-soft: #e3f1e8; --green-ink: #075c34;
  --amber: #f5b83d; --on-amber: #3a2600; --amber-soft: #fbeacb; --amber-ink: #7a4b00;
  --odds: #e3a21a; --odds-ink: #8a5a00;
  --loss: #e0611f; --on-loss: #ffffff; --draw: #d5dad3; --on-draw: #2b3530;
  --inv: #101814; --inv-2: #2b3530; --on-inv: #ffffff; --inv-muted: #a9b4ad; --bright: #3ddc84; --on-bright: #0b1f14;
  --red: #b3261e; --red-soft: #fbe3e0;
  --shadow: 0 8px 24px rgba(16, 24, 20, 0.18);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c120f; --card: #161e1a; --sunk: #1f2924; --track: #1f2924;
    --ink: #e6ece8; --ink-2: #a9b4ad; --ink-3: #8c9a92; --line: #2b3530; --line-2: #222c27;
    --green: #3ddc84; --on-green: #0b1f14; --green-soft: #173a27; --green-ink: #7ee8ae;
    --amber-soft: #3b2c10; --amber-ink: #f5c566; --odds-ink: #f0b954;
    --loss: #ff8a4c; --on-loss: #1f0d03; --draw: #3a4540; --on-draw: #e6ece8;
    --inv: #26302b; --inv-2: #33403a; --on-inv: #e6ece8; --inv-muted: #a9b4ad;
    --red: #ff8a80; --red-soft: #3a1714;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.4 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.1; text-wrap: balance; }
h1 { font-size: 34px; }
h2 { font-size: 24px; letter-spacing: 0.01em; }
h3 { font-size: 16px; font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.num-t { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- frame ---------- */
.topbar { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; display: block; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: 0.06em; }
.avatar-btn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--inv); color: var(--on-inv); font-weight: 600; font-size: 15px; }
main { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(180px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.tabbar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
  color: var(--ink-3); text-decoration: none; font-size: 12px; font-weight: 500; }
.tabbar a[aria-current="page"] { color: var(--green); font-weight: 600; }
.tabbar svg { width: 24px; height: 24px; }
@media (min-width: 760px) {
  main { padding-bottom: 120px; }
  .tabbar { position: static; border: 0; background: var(--track); border-radius: 12px; padding: 4px; gap: 4px; width: 360px; }
  .tabbar a { flex-direction: row; min-height: 36px; border-radius: 9px; font-size: 14px; gap: 6px; color: var(--ink-2); }
  .tabbar a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 20, 0.12); }
  .tabbar svg { width: 18px; height: 18px; }
  .topbar { padding-top: 20px; }
}

/* ---------- generic pieces ---------- */
.card { background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hint { font-size: 13px; color: var(--ink-2); padding: 0 4px; }
.btn { min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn.dark { background: var(--inv); border-color: var(--inv); color: var(--on-inv); }
.btn.link { border-color: transparent; background: transparent; color: var(--green); padding: 0 8px; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.45; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pill { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green-ink); white-space: nowrap; }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill.off { background: var(--sunk); color: var(--ink-2); }
.error { background: var(--red-soft); color: var(--red); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.empty { color: var(--ink-2); font-size: 14px; }
input, select { font: inherit; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 0; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.linkbox { font: 13px var(--mono); padding: 10px 12px; border-radius: 10px; background: var(--sunk); overflow-wrap: anywhere; user-select: all; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
th { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
tr:last-child td { border-bottom: 0; }

/* ---------- round hero ---------- */
.hero { display: flex; flex-direction: column; gap: 14px; padding: 6px 4px 0; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero select { min-height: 32px; padding: 2px 8px; font-size: 13px; border-radius: 8px; background: transparent; }
.countdown { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.countdown b { font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.countdown b small { font-size: inherit; font-weight: 500; color: var(--ink-2); margin: 0 0.4em 0 0.15em; }
.countdown b small:last-child { margin-right: 0; }
.countdown span { color: var(--ink-2); font-size: 15px; }
.countdown.state b { font-size: 24px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--card); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; min-width: 0; }
.tile b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b.none { color: var(--ink-3); font-size: 15px; letter-spacing: 0; line-height: 28px; }
.tile small { font-size: 12px; color: var(--ink-3); }
.people { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--card); border-radius: 14px; }
.faces { display: flex; padding-left: 6px; flex-wrap: wrap; row-gap: 4px; }
.face { width: 30px; height: 30px; margin-left: -6px; border-radius: 15px; border: 2px solid var(--card); display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--track); color: var(--ink-2); }
.face.in { background: var(--green); color: var(--on-green); }
.people > span { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.people > span b { color: var(--ink); }

/* ---------- the tip list ---------- */
.progress { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress i { width: 64px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: block; }
.progress i span { display: block; height: 100%; background: var(--green); }
.mrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border-top: 1px solid var(--line-2); }
.mrow:first-child { border-top: 0; }
.no { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink-3); text-align: center; }
.mlink { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 1px; min-width: 0; cursor: pointer; border-radius: 8px; }
.mlink:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.mlink .t { font-weight: 600; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlink .meta { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlink .meta b { color: var(--ink); font-weight: 600; }
.mlink .meta .places { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.signs { display: flex; gap: 4px; }
.sign { width: 44px; height: 52px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--sunk); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-variant-numeric: tabular-nums; }
.sign b { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1; }
.sign small { font-size: 11px; font-weight: 500; line-height: 1; color: var(--ink-2); }
.sign.on { background: var(--green); border-color: var(--green); color: var(--on-green); }
.sign.on small { color: inherit; opacity: 0.85; }
.sign.out { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
div.sign { cursor: default; }
.savebar { position: fixed; z-index: 11; left: 50%; transform: translateX(-50%); width: min(616px, calc(100% - 24px));
  bottom: calc(76px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; background: var(--inv); color: var(--on-inv); border-radius: 18px; box-shadow: var(--shadow); }
.savebar span { font-size: 14px; }
.savebar .btn { min-height: 44px; border: 0; background: var(--inv-2); color: var(--inv-muted); }
.savebar .btn.ready { background: var(--bright); color: var(--on-bright); }
@media (min-width: 760px) { .savebar { bottom: 24px; } }

/* ---------- the group's coupon ---------- */
.budget { background: var(--inv); color: var(--on-inv); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.budget .eyebrow { color: var(--inv-muted); }
.budget-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.budget-top b { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.budget-top b.over { color: #ff8a80; }
.budget-top span { font-size: 13px; color: var(--inv-muted); text-align: right; }
.meter { height: 8px; border-radius: 4px; background: var(--inv-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--bright); }
.meter i.over { background: #ff8a80; }
.dchips { display: flex; gap: 6px; flex-wrap: wrap; }
.dchips span { padding: 4px 10px; border-radius: 99px; background: var(--inv-2); font-size: 13px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); padding: 0 4px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.legend i.g { background: var(--green); }
.legend i.a { background: var(--amber); }
.legend i.r { box-shadow: inset 0 0 0 2px var(--ink); }
.crow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 6px 12px; border-top: 1px solid var(--line-2); }
.crow:first-child { border-top: 0; }
.crow .teams { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cells { display: flex; gap: 4px; }
.cell { width: 38px; height: 38px; padding: 0; border-radius: 9px; border: 0; background: var(--sunk); color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-variant-numeric: tabular-nums; }
.cell b { font-family: var(--display); font-weight: 700; font-size: 18px; }
.cell small { font-size: 10px; font-weight: 600; opacity: 0.85; }
.cell.on { background: var(--green); color: var(--on-green); }
.cell.cover { background: var(--amber); color: var(--on-amber); }
.cell.out { box-shadow: inset 0 0 0 2px var(--ink); }
button.cell { border: 1px dashed var(--line); }
.tipgrid td, .tipgrid th { text-align: center; padding: 6px 3px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.tipgrid td:first-child, .tipgrid th:first-child { text-align: left; font-family: var(--sans); font-size: 13px; font-weight: 600; white-space: nowrap; padding-right: 8px; }
.tipgrid td.hit { color: var(--green); }
.tipgrid td.miss { color: var(--ink-3); opacity: 0.6; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.stat { display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-2); }
.stat b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.season td:nth-child(n+2), .season th:nth-child(n+2) { text-align: right; }
.season tr.me td { font-weight: 700; }
.rank-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--sunk); font-size: 12px; font-weight: 700; margin-right: 8px; }
.rank-badge.gold { background: var(--amber); color: var(--on-amber); }

/* ---------- account and admin ---------- */
.account { gap: 14px; }
.account details summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.players td { vertical-align: top; }
.players .row { justify-content: flex-end; }

/* ---------- match view ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-panel { width: 100%; max-width: 640px; height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.sheet-head { flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px; align-items: center; background: var(--card);
  padding: calc(6px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 6px max(8px, env(safe-area-inset-left, 0px)); }
.sheet-head > span { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sheet-head > div { display: flex; justify-content: flex-end; }
.icon { width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; }
.icon:disabled { color: var(--line); }
.icon svg { width: 22px; height: 22px; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mhero { background: var(--card); border-radius: 0 0 24px 24px; padding: 6px 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.mhero .eyebrow { text-align: center; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: start; }
.side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.crest { width: 60px; height: 60px; border-radius: 30px; background: var(--sunk); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink-2); }
.side b { font-weight: 700; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.side small { font-size: 13px; color: var(--ink-2); }
.vs > span { text-align: center; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink-3); padding-top: 18px; }
.bigsigns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bigsigns .sign { width: auto; height: 68px; border-radius: 14px; gap: 4px; }
.bigsigns .sign b { font-size: 28px; }
.bigsigns .sign small { font-size: 12px; }
.mhero .score { text-align: center; font-family: var(--display); font-weight: 700; font-size: 34px; }
.mtabs { margin: 14px 16px 0; padding: 4px; background: var(--track); border-radius: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.mtabs button { min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; padding: 0 4px; }
.mtabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 20, 0.12); }
.mpane { padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.sheet-foot { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; background: var(--card); border-top: 1px solid var(--line);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet-foot.three { grid-template-columns: 1fr 1.3fr 1fr; }
.sheet-foot .btn { padding: 0 10px; }
@media (min-width: 700px) {
  .sheet { background: rgba(0, 0, 0, 0.45); padding: 24px; }
  .sheet-panel { height: auto; max-height: 100%; border-radius: 20px; overflow: hidden; }
}

/* match view blocks */
.blk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.key { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); }
.key span { display: flex; align-items: center; gap: 5px; }
.key i { width: 10px; height: 10px; border-radius: 3px; display: block; background: var(--ink); }
.key i.o { background: var(--odds); }
.vrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.vrow > b { font-family: var(--display); font-weight: 700; font-size: 22px; text-align: center; }
.vbars { display: flex; flex-direction: column; gap: 4px; }
.vbars span { display: block; height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.vbars span i { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.vbars span.o i { background: var(--odds); }
.vnums { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 12px; gap: 4px; font-variant-numeric: tabular-nums; }
.vnums b { font-weight: 700; }
.vnums span { color: var(--odds-ink); font-weight: 600; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); font-size: 13px; }
.note.plain { background: var(--sunk); color: var(--ink-2); }
.gsigns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gsigns > div { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--sunk); min-width: 0; }
.gsigns > div > span:first-child { display: flex; align-items: baseline; gap: 6px; }
.gsigns b { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; }
.gsigns small { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; line-height: 1.35; }
.chips5 { display: flex; gap: 4px; }
.fchip { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-style: normal; flex: none; }
.fchip.win { background: var(--green); color: var(--on-green); }
.fchip.draw { background: var(--draw); color: var(--on-draw); }
.fchip.loss { background: var(--loss); color: var(--on-loss); }
.fline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fline > span:first-child { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.games { display: flex; flex-direction: column; }
.game { display: grid; grid-template-columns: 24px 16px minmax(0, 1fr) 40px 48px; gap: 8px; align-items: center; min-height: 40px; border-top: 1px solid var(--line-2); font-size: 14px; }
.game > small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.game > span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game > b { font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.game > span:last-child { font-size: 12px; color: var(--ink-3); text-align: right; }
.tiles2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tiles2 > div { padding: 12px; border-radius: 12px; background: var(--sunk); display: flex; flex-direction: column; min-width: 0; }
.tiles2 b { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.05; }
.tiles2 span { font-size: 13px; color: var(--ink-2); }
.experts { display: flex; flex-direction: column; }
.expert { border-top: 1px solid var(--line-2); }
.expert:first-child { border-top: 0; }
.expert summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; }
.expert summary::-webkit-details-marker { display: none; }
.expert summary .xs { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 9px; background: var(--green); color: var(--on-green); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 18px; }
.expert summary > span:nth-child(2) { flex: 1; font-weight: 500; }
.expert summary svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.15s; }
.expert[open] summary svg { transform: rotate(90deg); }
.expert p { padding: 0 0 14px 44px; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.mkt { display: grid; grid-template-columns: minmax(0, 1fr) 96px 40px; gap: 12px; align-items: center; min-height: 40px; border-top: 1px solid var(--line-2); font-size: 14px; }
.mkt:first-of-type { border-top: 0; }
.mkt i { display: block; height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.mkt i span { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.mkt b { text-align: right; font-variant-numeric: tabular-nums; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.three > div { background: var(--sunk); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.three > div b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.three > div small { font-size: 12px; color: var(--ink-2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.move { font-size: 12px; font-weight: 600; }
.move.up { color: var(--loss); }
.move.down { color: var(--green); }
table.league th, table.league td { padding: 0 6px; height: 40px; text-align: right; }
table.league th:nth-child(2), table.league td:nth-child(2) { text-align: left; }
table.league td:nth-child(2) { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.league td:first-child { color: var(--ink-2); }
table.league td:last-child { font-weight: 700; }
table.league tr.me td { background: var(--green-soft); font-weight: 700; }
.segmini { display: inline-flex; padding: 3px; background: var(--track); border-radius: 9px; gap: 3px; }
.segmini button { border: 0; background: transparent; border-radius: 7px; min-height: 30px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.segmini button[aria-pressed="true"] { background: var(--card); color: var(--ink); }

/* ---------- join ---------- */
.join { max-width: 440px; margin: 8vh auto 0; }
.join h1 { font-size: 38px; }
