/* ── MARCH MARBLES MADNESS ────────────────────────────────────────────────────
   Section styles only. Everything structural — nav, cards, tables, buttons,
   badges, the empty state — comes from /css/style.css and is reused as-is, so
   this file holds just the things the rest of the site has no equivalent for:
   seed pills, the four-bracket seeding grid, and the marble counts.          */

/* ── SEEDS ────────────────────────────────────────────────────────────────── */

.seed {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 5px;
  border-radius: 5px; font-size: 11px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--accent-dim); color: var(--accent);
}
.seed-auto     { background: var(--green-dim); color: var(--green); }
.seed-at-large { background: var(--blue-dim);  color: var(--blue);  }
.region-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--text-muted); text-transform: uppercase;
}

/* Marbles a viewer rolls. The bought part is deliberately a separate colour —
   it lasts one round only and Jason needs to spot it at a glance on stream. */
.marbles { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 40px; text-align: right; }
.marbles .m-base   { color: var(--text); }
.marbles .m-bought { color: var(--orange); font-size: 12px; margin-left: 2px; }

/* ── STANDINGS ────────────────────────────────────────────────────────────── */

.m-name { color: var(--text); text-decoration: none; font-weight: 600; }
.m-name:hover { color: var(--accent); text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* The 64th row carries the cut line, so where the field ends is visible while
   scrolling rather than something you have to count out. */
tr.cut-line td { border-bottom: 2px solid var(--accent) !important; }
.cut-note td {
  padding: 4px 12px 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
}
tr.tied td.num-points { color: var(--yellow); }

/* ── THE SEEDING GRID ─────────────────────────────────────────────────────── */

.seed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .seed-layout { grid-template-columns: minmax(0, 1fr); } }

.bracket-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .bracket-cols { grid-template-columns: minmax(0, 1fr); } }

.bracket-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.bracket-box h4 {
  margin: 0; padding: 9px 12px; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--surface); border-bottom: 1px solid var(--border); color: var(--accent);
}

/* One line per seed: 1 plays 16, 2 plays 15, laid out the way the old
   spreadsheet did it so the shape is familiar. */
.slot-row { display: grid; grid-template-columns: 26px minmax(0,1fr) 26px minmax(0,1fr); align-items: stretch; border-top: 1px solid var(--border); }
.slot-row:first-of-type { border-top: none; }
.slot-n {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--text);
  background: var(--surface); font-variant-numeric: tabular-nums;
}
/* `border: 0` first: a <button> otherwise keeps the browser's bevelled edge on
   the three sides not set here, which drew grey ridges through every row. */
.slot {
  padding: 7px 10px; font-size: 13.5px; min-height: 46px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; cursor: pointer;
  border: 0; border-left: 1px solid var(--border); border-radius: 0; background: none;
  width: 100%; min-width: 0; text-align: left; color: var(--text); font-family: inherit;
}
.slot:hover { background: var(--surface); }
.slot.empty { color: var(--text-dim); font-style: italic; }
.slot.filled { font-weight: 600; }
.slot.warn   { background: var(--red-dim); }
/* Where the name you have picked up can go. */
.picking .slot.empty { background: var(--accent-dim); color: var(--accent); font-style: normal; }
.slot .sline { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.slot .sname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .swarn { color: var(--red); font-weight: 800; margin-left: auto; }
.slot .srank { color: var(--text); font-weight: 700; }
/* Two halves — "#3 · 5,497 pts" and "32 W · 8.1%" — side by side when the slot
   is wide enough and stacked when it is not, rather than cut off: at laptop width
   a slot is only ~165px across. */
.slot .sstats {
  display: flex; flex-wrap: wrap; column-gap: 10px;
  font-size: 11.5px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.slot .sstats > span { white-space: nowrap; }

/* ── THE POOLS ────────────────────────────────────────────────────────────── */

/* The pool stays put while the brackets scroll past it, on its own scrollbar,
   so placing the 64th name costs no more scrolling than placing the first.
   Needs .seed-layout's align-items:start to keep the column its own height. */
.pool-col {
  position: sticky; top: calc(var(--j2m-bar-h, 0px) + 16px);   /* clear of the site's top bar */
  max-height: calc(100vh - 32px - var(--j2m-bar-h, 0px));
  overflow-y: auto; overscroll-behavior: contain;
}
/* Too narrow for two columns, so the pool goes above the brackets rather than
   below them and pins to the top of the screen. Stacked underneath it was a
   long scroll down for a name and a long scroll back to the slot. */
@media (max-width: 1100px) {
  .pool-col {
    order: -1; top: var(--j2m-bar-h, 0px); max-height: 42vh;
    background: var(--bg); padding-bottom: 10px; z-index: 5;
  }
}
.pool-col::-webkit-scrollbar { width: 10px; }
.pool-col::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
.pool-col::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

.pool-tools {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 12px; color: var(--text-muted);
}
/* style.css shouts every label in caps; in a 340px column that wraps to three
   lines and squeezes the count off the end, so this one speaks normally. */
.pool-tools label {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px;
  color: var(--text); white-space: nowrap;
}
.pool-tools label input { margin: 0; }
.pool-done { padding: 10px 12px; font-size: 12.5px; color: var(--text-muted); font-style: italic; }

.pool { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
.pool h4 {
  margin: 0; padding: 9px 12px; font-size: 12px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.pool-group { border-top: 1px solid var(--border); }
.pool-group:first-of-type { border-top: none; }
.pool-group .pg-head {
  padding: 5px 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-muted); background: rgba(255,255,255,.015);
}
.pool-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 12px; font-size: 12.5px; cursor: pointer;
  background: none; border: none; color: var(--text); font-family: inherit; text-align: left;
}
.pool-item:hover { background: var(--surface); }
.pool-item.placed { opacity: .35; }
.pool-item.picked { background: var(--accent-dim); color: var(--accent); font-weight: 700; }
.pool-item .pi-pts  { color: var(--text-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; margin-left: auto; }
.pool-item .pi-rank { color: var(--text-muted); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }
.pool-item .region-tag { flex-shrink: 0; }

/* ── BRACKET ADMIN ────────────────────────────────────────────────────────── */

.round-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.round-head h3 { font-size: 15px; font-weight: 700; }
.round-head .r-meta { font-size: 12px; color: var(--text-muted); }
/* A round folded away on the admin Bracket tab: just its heading in a dashed box. */
.round-head.round-folded { padding: 8px 12px; border: 1px dashed var(--border); border-radius: 8px; }
.round-head.round-folded h3 { color: var(--text-muted); }

.match {
  display: grid; grid-template-columns: 34px minmax(0,1fr) auto;
  gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 9px 12px; margin-bottom: 7px;
}
.match.done { border-color: rgba(34,197,94,.3); }
.match .m-slot { font-size: 11px; color: var(--text-dim); font-weight: 700; }
.side { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.side.won { color: var(--green); font-weight: 700; }
.side.empty { color: var(--text-dim); font-style: italic; }
.side .s-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Names on the admin Bracket tab open the viewer's page in a new tab. The
   link only spans the name, so the row's empty space isn't a click target. */
.side a.s-name { flex: 0 1 auto; color: inherit; text-decoration: none; }
.side a.s-name:hover { text-decoration: underline; text-underline-offset: 2px; }
.side a.s-name + .marbles { margin-left: auto; }
.win-btns { display: flex; gap: 4px; }
.win-btns button {
  width: 26px; height: 24px; border-radius: 4px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 700; font-family: inherit;
}
.win-btns button.on { background: var(--green-dim); border-color: var(--green); color: var(--green); }
/* Three number columns sit side by side on every row — what they roll, what
   they bought, and games won. Unlabelled they were easy to confuse mid-stream,
   so each is separated and the round heading carries a legend above them. */
.buy-wrap {
  display: inline-flex; align-items: center; gap: 1px;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--border);
}
.buy-sign { color: var(--orange); font-size: 12px; font-weight: 800; }
.buy-input {
  width: 38px; padding: 3px 4px; font-size: 11px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; color: var(--orange); font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.buy-input:focus { outline: none; border-color: var(--orange); }
.win-btns { padding-left: 10px; border-left: 1px solid var(--border); }

/* Where a game is played: one line under its two players. */
.loc-input {
  width: 100%; max-width: 320px; margin-top: 5px; padding: 4px 7px; font-size: 11.5px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); font-family: inherit;
}
.loc-input::placeholder { color: var(--text-dim); }
.loc-input:focus { outline: none; border-color: var(--accent); }

/* A single game's result: one tick box per player instead of 0/1 buttons. */
.win-check { align-items: center; gap: 5px; width: 64px; cursor: pointer;
  font-size: 11.5px; font-weight: 700; color: var(--text-muted); user-select: none; }
.win-check input { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--green); }
.win-check input:disabled { cursor: not-allowed; }
.win-check input:disabled + span { opacity: .4; }
.win-check:has(input:checked) { color: var(--green); }

/* Twitch prediction wording, to copy in by hand when it can't be started from here. */
.pred-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.pred-box { width: 100%; max-width: 460px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.pred-why {
  margin: 0 0 10px; padding: 8px 10px; font-size: 12.5px; border-radius: 6px;
  background: var(--red-dim); color: var(--red);
}
.pred-line { display: grid; grid-template-columns: 78px minmax(0,1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.pred-k { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
.pred-line input {
  min-width: 0; padding: 6px 8px; font-size: 13px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-family: inherit;
}
@media (max-width: 420px) {
  .pred-line { grid-template-columns: minmax(0,1fr) auto; }
  .pred-k { grid-column: 1 / -1; }
}

/* On a phone the menu runs along the bottom of the screen and, with seven
   sections plus Settings and Log out, stands about 104px tall. style.css only
   leaves 56px under the page (the dynasty menu is shorter), so the end of
   every Marbles page sat under the menu where it couldn't be scrolled to —
   the admin's championship buttons included. */
@media (max-width: 720px) { html:not(.obs) .main { margin-bottom: 120px; } }

/* The first two rounds, grouped the way the stream schedule plays them. */
.block-head { margin: 16px 0 8px; padding: 6px 10px; border-radius: 6px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pod-group { margin-bottom: 10px; }
.pod-label { font-size: 10.5px; font-weight: 700; color: var(--text-dim);
  letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px 2px; }

.col-legend { display: flex; gap: 0; font-size: 9.5px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); }
.col-legend span { width: 54px; text-align: center; }
.col-legend span:first-child { width: 40px; }
@media (max-width: 900px) { .col-legend { display: none; } }

/* ── VIEWER HISTORY ───────────────────────────────────────────────────────── */

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 18px; min-width: 92px;
}
.stat .n { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-top: 2px; }
.stat.gold .n { color: var(--accent); }

.run { border-left: 2px solid var(--border); margin-left: 7px; padding-left: 16px; }
.run-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; position: relative; }
.run-row::before {
  content: ''; position: absolute; left: -21px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim);
}
.run-row.won::before  { background: var(--green); }
.run-row.lost::before { background: var(--red); }
.run-row .rr-round { width: 104px; flex-shrink: 0; color: var(--text-muted); font-size: 12px; }
.run-row .rr-score { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ── ALL-TIME RECORDS ─────────────────────────────────────────────────────── */

/* Top-five cards, as many across as fit. style.css spaces stacked cards with a
   top margin; in a grid the gap does that job, so it is switched off here. */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 16px; margin: 0 0 16px; }
.rec-grid .card, .rec-grid .card + .card { margin: 0; }
.rec-grid.rec-two { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); margin-top: 16px; align-items: start; }
.rec-list { list-style: none; margin: 0; padding: 0; }
.rec-list li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 13px; border-top: 1px solid var(--border); }
.rec-list li:first-child { border-top: none; }
.rec-list .m-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-rank { width: 16px; flex-shrink: 0; color: var(--text-muted); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rec-val { margin-left: auto; flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rec-val small { color: var(--text-muted); font-weight: 400; font-size: 11.5px; margin-left: 4px; }
.rec-t { color: var(--text-muted); text-decoration: none; font-size: 12.5px; }
.rec-t:hover { color: var(--accent); text-decoration: underline; }
/* Admin: who is kept off the Records page. */
.rec-hidden-chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 10px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.rec-hide { padding: 2px 9px; font-size: 11px; }

/* A seed and its name stay on one line; the table scrolls sideways instead. */
.rec-nw { white-space: nowrap; }
.rec-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.rec-sort:hover, .rec-sort.on { color: var(--accent); }

/* ── ODDS AND ENDS ────────────────────────────────────────────────────────── */

.inline-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.warn-box {
  background: var(--red-dim); border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--r); padding: 10px 14px; font-size: 12.5px; margin-bottom: 14px;
}
.ok-box {
  background: var(--green-dim); border: 1px solid rgba(34,197,94,.3);
  border-radius: var(--r); padding: 10px 14px; font-size: 12.5px; margin-bottom: 14px;
}
.diff-add  { color: var(--green); }
.diff-del  { color: var(--red); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=text], .toolbar input[type=number], .toolbar select {
  padding: 7px 10px; font-size: 13px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: inherit;
}
.cell-edit {
  width: 78px; padding: 4px 6px; font-size: 12.5px; text-align: right;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text); font-family: inherit;
  font-variant-numeric: tabular-nums;
}

/* ── THE DRAWN BRACKET ────────────────────────────────────────────────────────
   The public bracket page, styled after a TV selection-show graphic: a blue
   set, a white title bar, white match boxes with navy bands and black seed
   squares, white bracket lines that join at a ring. Everything is sized off a
   few variables per view, so the full 64 and a single region share one set of
   rules. The canvas is drawn at full size and shrunk to fit by the page.     */

.mm-toolbar { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-save {
  margin-left: auto; padding: 7px 14px; border-radius: 6px; cursor: pointer;
  background: #f5a524; border: 1px solid #f5a524; color: #0a1230;
  font-family: inherit; font-size: 12.5px; font-weight: 800;
}
.mm-save:hover { filter: brightness(1.08); }
.mm-save:disabled { opacity: .6; cursor: progress; }
/* The off-screen full-size copy that "Save as PNG" photographs. Square corners,
   since rounded ones would come out as see-through gaps in the picture. */
.mm-shot { position: fixed; left: -100000px; top: 0; }
.mm-shot .mm-stage { width: max-content; border-radius: 0; }
.mm-tabs button {
  padding: 7px 14px; border-radius: 6px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-family: inherit; font-size: 12.5px; font-weight: 700;
}
.mm-tabs button:hover { color: var(--text); }
.mm-tabs button.on { background: #1d3c8c; border-color: #3b6fd6; color: #fff; }

.mm-stage {
  --navy: #1d3c8c; --ink: #0a1230; --rule: #c8d3e8; --ghost: #9cc4ef;
  --line: #fff; --set: #1683d2; --lit: #f5a524;
  position: relative; overflow: hidden; border-radius: 12px; padding: 24px;
  background: radial-gradient(120% 90% at 50% 35%, #2b9de6 0%, var(--set) 45%, #0b5ea8 100%);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
.mm-stage.scrolls { overflow-x: auto; overscroll-behavior-x: contain; }
.mm-words { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mm-words span {
  position: absolute; white-space: nowrap; line-height: 1;
  font-size: 120px; font-weight: 800; text-transform: uppercase;
  color: rgba(255,255,255,.05);
}
.mm-words span.outline { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.09); }

.mm-fit    { position: relative; overflow: hidden; }
.mm-canvas { position: relative; width: max-content; transform-origin: 0 0; }
.v-full   { --w: 214px; --wc: 206px; --g: 24px; --vg: 8px;  --row: 25px; --head: 17px; --dot: 11px; --lw: 2px; --fname: 15px; --fline: 11px; }
.v-region { --w: 370px;               --g: 64px; --vg: 14px; --row: 40px; --head: 26px; --dot: 17px; --lw: 3px; --fname: 26px; --fline: 18px; }

/* Title bar */
.mm-bar { display: flex; align-items: stretch; height: 110px; margin-bottom: 30px; background: #fff; box-shadow: 0 6px 18px rgba(0,30,80,.25); }
.mm-bar-logo {
  width: 190px; padding: 0 18px; display: flex; flex-direction: column; justify-content: center;
  background: var(--navy); border: 3px solid #fff;
}
.mm-bar-logo span {
  color: #fff; font-size: 27px; font-weight: 800; font-style: italic; line-height: .95;
  text-transform: uppercase; text-shadow: 2px 2px 0 var(--ink);
}
.mm-bar-title {
  flex: 1; padding: 0 30px; display: flex; align-items: center; justify-content: center;
  font-size: 78px; font-weight: 800; text-transform: uppercase; color: #000; white-space: nowrap;
}
.mm-bar-map { width: 170px; display: flex; align-items: center; justify-content: center; background: var(--navy); border: 3px solid #fff; }
.mm-map { width: 132px; height: 70px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: square; }
.mm-map circle { fill: #fff; stroke: none; }
.mm-map .lit { stroke: var(--lit); stroke-width: 2.8; }
.mm-map .lit circle { fill: var(--lit); }

/* Layout. Every cell in a column takes an equal share of the height, so each
   box lands exactly halfway between the two that feed it. */
.fb, .half { display: flex; align-items: stretch; gap: var(--g); }
.half.r { flex-direction: row-reverse; }
.col { width: var(--w); display: flex; flex-direction: column; }
.col.center { width: var(--wc); }
.pair { flex: 1; display: flex; flex-direction: column; position: relative; }
.cell { flex: 1; display: flex; align-items: center; position: relative; padding: calc(var(--vg) / 2) 0; }
.mb-wrap { position: relative; width: 100%; }

/* Bracket lines, drawn for a half that runs left-to-right; .half.r mirrors them. */
.col.feeds .cell::after, .col.fed .cell::before, .col.semi .cell::after, .col.exit .cell::after {
  content: ''; position: absolute; top: 50%; margin-top: calc(var(--lw) / -2);
  border-top: var(--lw) solid var(--line);
}
.col.feeds .cell::after { left: 100%; width: calc(var(--g) / 2); }
.col.fed .cell::before  { right: 100%; width: calc(var(--g) / 2); }
.col.semi .cell::after  { left: 100%; width: var(--g); }
.col.exit .cell::after  { left: 100%; width: calc(var(--g) / 2); }
.col.feeds .pair::after {
  content: ''; position: absolute; top: 25%; bottom: 25%;
  left: calc(100% + var(--g) / 2 - var(--lw) / 2); border-left: var(--lw) solid var(--line);
}
.col.feeds .pair::before, .col.exit .mb-wrap::after {
  content: ''; position: absolute; top: 50%; z-index: 1; box-sizing: border-box;
  width: var(--dot); height: var(--dot); margin-top: calc(var(--dot) / -2);
  border: var(--lw) solid var(--line); border-radius: 50%; background: var(--set);
}
.col.feeds .pair::before  { left: calc(100% + var(--g) / 2 - var(--dot) / 2); }
.col.exit .mb-wrap::after { left: calc(100% + var(--g) / 2); }

.half.r .col.feeds .cell::after, .half.r .col.semi .cell::after, .half.r .col.exit .cell::after { left: auto; right: 100%; }
.half.r .col.fed .cell::before { right: auto; left: 100%; }
.half.r .col.feeds .pair::after { left: auto; right: calc(100% + var(--g) / 2 - var(--lw) / 2); border-left: 0; border-right: var(--lw) solid var(--line); }
.half.r .col.feeds .pair::before  { left: auto; right: calc(100% + var(--g) / 2 - var(--dot) / 2); }
.half.r .col.exit .mb-wrap::after { left: auto; right: calc(100% + var(--g) / 2); }

/* Match box */
.mb { background: #fff; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,25,70,.28); }
.mb-head, .mb-foot {
  height: var(--head); line-height: var(--head); overflow: hidden; white-space: nowrap;
  background: var(--navy); color: #fff; text-align: center;
  font-size: calc(var(--head) * .74); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.v-full .mb-foot { display: none; }
/* A long location is cut with "…" rather than spilling past the box. */
.mb-foot { text-overflow: ellipsis; padding: 0 8px; }
.mb-foot > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-body { position: relative; }
.mb-row { display: flex; align-items: stretch; height: var(--row); border-top: 1px solid var(--rule); }
.mb-row:first-child { border-top: 0; }
.mb-seed {
  width: calc(var(--row) * 1.05); flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font-size: calc(var(--row) * .62); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* The name and its "(points, wins)" together. The name always wins: when the
   two don't fit beside what ends the line (bought marbles, the tick, a series
   score), the record wraps onto a second line that is cut off, so it vanishes
   whole and the name keeps its full length. Only a name too long even on its
   own is cut with "…". Pure CSS, so the page, the OBS source and the PNG agree. */
.mb-who {
  flex: 0 1 auto; min-width: 0; height: var(--row); overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start;
  padding-right: calc(var(--row) * .2);
}
.mb-name {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-left: calc(var(--row) * .3); line-height: var(--row);
  font-size: var(--fname); font-weight: 700; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.mb-name:hover { text-decoration: underline; }
/* "(points, wins)" — where the TV graphic puts a team's record. */
.mb-line {
  flex-shrink: 0; margin-left: calc(var(--row) * .22); white-space: nowrap;
  font-size: var(--fline); font-weight: 600; color: #26304f; font-variant-numeric: tabular-nums;
}
.mb-score {
  margin-left: auto; width: calc(var(--row) * 1.05); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #e7edf8; color: var(--ink); font-size: calc(var(--row) * .66); font-weight: 800;
}
.mb-row.won .mb-score { background: var(--navy); color: #fff; }
/* The winner's tick, pushed to the far end of the line (before a series score). */
.mb-check {
  margin-left: auto; flex-shrink: 0; align-self: center;
  width: calc(var(--row) * .72); height: calc(var(--row) * .72); margin-right: calc(var(--row) * .2);
}
.mb-check svg { display: block; width: 100%; height: 100%; }
.mb-check circle { fill: #1f9d4c; }
.mb-check path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mb-check + .mb-score { margin-left: 0; }
/* Marbles bought for the game: "+3" on a black tile with a blue rim, the tick's
   size. Pushed to the far end of the line like the tick, and just before it
   once the game is won. A loser's fades with the rest of his line. */
.mb-bought {
  margin-left: auto; flex-shrink: 0; align-self: center; box-sizing: border-box;
  min-width: calc(var(--row) * .72); height: calc(var(--row) * .72);
  margin-right: calc(var(--row) * .2); padding: 0 calc(var(--row) * .07);
  display: flex; align-items: center; justify-content: center;
  background: #05070f; border: calc(var(--row) * .07) solid #2f55c9; border-radius: calc(var(--row) * .2);
  color: #fff; font-size: calc(var(--row) * .5); font-weight: 800; font-style: italic; line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000;
}
.mb-bought.before-check { margin-right: calc(var(--row) * .12); }
.mb-bought + .mb-check, .mb-bought + .mb-score { margin-left: 0; }
.mb-row.lost .mb-bought { opacity: .45; }
.mb-row.lost .mb-name, .mb-row.lost .mb-line { color: #9aa5bd; }
.mb-row.lost .mb-seed { background: #9aa5bd; }
.mb-row.tbd .mb-seed { background: #e7edf8; }
/* Nobody in it yet: blank white with the round name ghosted across it. */
.mb-empty .mb-row.tbd .mb-seed { background: none; }
.mb-ghost {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ghost); font-size: calc(var(--row) * .92); font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; white-space: nowrap; pointer-events: none;
}
.mb-final .mb-head, .mb-final .mb-foot { background: linear-gradient(90deg, #c88a12, #f5b52a, #c88a12); color: var(--ink); }

/* Labels sitting above a box: region names over each Elite 8, and the semis and final. */
.mb-tag {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  color: #fff; font-size: 30px; font-weight: 800; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0,30,80,.35);
}
/* First Four strip under the full bracket — past tournaments only. */
.ff4 { margin-top: 56px; display: flex; flex-direction: column; align-items: center; }
.ff4-title { color: #fff; font-size: 34px; font-weight: 800; text-transform: uppercase; margin-bottom: 44px; text-shadow: 0 2px 0 rgba(0,30,80,.35); }
.ff4-row { display: flex; gap: 48px; }
.ff4-cell { position: relative; width: var(--w); }
.ff4 .mb-tag { font-size: 18px; bottom: calc(100% + 6px); }

/* Lifted clear of the Final Four labels either side of it. */
.col.center .mb-tag { bottom: calc(100% + 58px); }
.mb-tag.champ { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--lit); font-size: 36px; }
.mb-tag.champ small { font-size: 16px; color: #fff; letter-spacing: .14em; }
.mb-tag.champ.co { font-size: 24px; line-height: 1.05; text-align: center; }

/* Sweet 16 view (?view=s16): the region graphic's last two rounds for all four
   regions at once, A over D on the left flowing right, B over C on the right
   flowing left. Built from the region view's sizes (.v-region) plus these. */
.v-s16 { --lab: 98px; --sgap: 34px; --cgap: 44px; }
.s16-grid { display: flex; align-items: stretch; gap: var(--cgap); }
.s16-side { position: relative; display: flex; flex-direction: column; gap: var(--sgap); }
/* The two regions on a side are the same height, so each Elite 8 game sits at a
   fixed share of the side: the line joining them (they meet in the Final Four),
   its ring and the stub to the marker are placed off that, with no measuring. */
.s16-side::before {
  content: ''; position: absolute; left: calc(100% + var(--g) / 2 - var(--lw) / 2);
  top: calc(var(--lab) / 2 + 25% - var(--sgap) / 4); bottom: calc(25% - var(--sgap) / 4 - var(--lab) / 2);
  border-left: var(--lw) solid var(--line);
}
.s16-side::after {
  content: ''; position: absolute; left: calc(100% + var(--g) / 2); width: calc(var(--cgap) - var(--g) / 2);
  top: calc(50% + var(--lab) / 2); margin-top: calc(var(--lw) / -2); border-top: var(--lw) solid var(--line);
}
.s16-ring {
  position: absolute; z-index: 1; box-sizing: border-box; left: calc(100% + var(--g) / 2 - var(--dot) / 2);
  top: calc(50% + var(--lab) / 2); width: var(--dot); height: var(--dot); margin-top: calc(var(--dot) / -2);
  border: var(--lw) solid var(--line); border-radius: 50%; background: var(--set);
}
.s16-side.r::before { left: auto; right: calc(100% + var(--g) / 2 - var(--lw) / 2); }
.s16-side.r::after  { left: auto; right: calc(100% + var(--g) / 2); }
.s16-side.r .s16-ring { left: auto; right: calc(100% + var(--g) / 2 - var(--dot) / 2); }
/* The Elite 8 box's line out to that join (no ring of its own, unlike .exit). */
.col.joins .cell::after {
  content: ''; position: absolute; top: 50%; margin-top: calc(var(--lw) / -2);
  border-top: var(--lw) solid var(--line); left: 100%; width: calc(var(--g) / 2);
}
.half.r .col.joins .cell::after { left: auto; right: 100%; }
/* Final Four marker between the halves, level with the rings either side. */
.s16-mid { width: 190px; padding-top: var(--lab); display: flex; align-items: center; justify-content: center; }
.s16-ff {
  width: 100%; padding: 14px 0; text-align: center; background: var(--navy); border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,25,70,.28);
}
.s16-ff span {
  display: block; color: #fff; font-size: 40px; font-weight: 800; font-style: italic; line-height: .95;
  text-transform: uppercase; text-shadow: 2px 2px 0 var(--ink);
}
/* Region names: their own band over each pair, at the outer edge of the side.
   width 0 + min-width 100% fills the region's width without ever adding to it,
   so an over-long name is cut with "…" instead of pushing its side wider. */
.s16-name {
  width: 0; min-width: 100%;
  height: calc(var(--lab) - 6px); margin-bottom: 6px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.s16-side.r .s16-name { align-items: flex-end; text-align: right; }
.s16-name span {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding-bottom: 4px;
  font-size: 46px; font-weight: 800; text-shadow: 0 3px 0 rgba(0,30,80,.35);
}
.s16-name span.long { font-size: 36px; }

/* "Marbles purchased": the whole tournament's total, in an empty bottom corner
   of every view (see boughtBox). Sits outside the layout, so it never makes a
   view bigger or shrinks it to fit. Styled after a match box. */
.fb, .s16-mid { position: relative; }
.mm-bought {
  position: absolute; z-index: 1; bottom: calc(var(--vg) / 2); width: var(--w); box-sizing: border-box;
  background: #fff; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,25,70,.28); text-align: center;
}
.mm-bought-head, .mm-bought-foot {
  height: var(--head); line-height: var(--head); overflow: hidden; white-space: nowrap;
  background: var(--navy); color: #fff; font-size: calc(var(--head) * .74); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.mm-bought-n {
  padding: 4px 0 2px; font-size: calc(var(--row) * 2); line-height: 1.1; font-weight: 800;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.mm-bought.at-right { right: 0; }
.mm-bought.at-left  { left: 0; }
/* Full 64: centred under the Final Four and final, bigger than its small boxes. */
.v-full .mm-bought { left: 50%; transform: translateX(-50%); width: 300px; --head: 26px; --row: 34px; }
/* Sweet 16: under the Final Four marker, as wide as it, then raised 93px,
   shrunk to 73% from its bottom edge and 84% opaque. Jason's choice, picked
   with sliders on 2026-11-11. */
/* Elite 8 view (?view=e8): the Sweet 16 graphic one round on — the full
   bracket's middle (Elite 8 → Final Four → final) at the region size. Its
   pairs are spread over a fixed height so the graphic fills a 16:9 stream;
   the region names sit over each Elite 8 game at the side's outer edge. */
.v-e8 { --wc: 370px; --g: 56px; }
.v-e8 .fb { height: 820px; }
.v-e8 .mb-tag { font-size: 40px; }
.v-e8 .mb-tag.rg {
  left: 0; transform: none; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.05; text-shadow: 0 3px 0 rgba(0,30,80,.35);
  /* Its size is set on the tag (E8_NAME_W in bracket.html), which must agree
     with this width: the box plus half the gap, short of the join line. */
  max-width: calc(100% + var(--g) / 2 - 10px);
}
.v-e8 .half.r .mb-tag.rg { left: auto; right: 0; }
.v-e8 .col.center .mb-tag { bottom: calc(100% + 80px); }
.v-e8 .mb-tag.champ { font-size: 54px; }
.v-e8 .mb-tag.champ small { font-size: 22px; }
.v-e8 .mm-bought {
  left: 50%; width: 190px; bottom: calc(var(--vg) / 2 + 93px);
  transform: translateX(-50%) scale(.73); transform-origin: 50% 100%; opacity: .84;
}

.v-s16 .mm-bought {
  left: 0; width: 100%; bottom: calc(var(--vg) / 2 + 93px);
  transform: scale(.73); transform-origin: 50% 100%; opacity: .84;
}

/* ── OBS BROWSER SOURCE (/marbles/obs) ──
   The bracket page with everything but the bracket taken away, the blue set
   filling the whole source, and the bracket scaled to fit it both ways. The
   page sets html.obs before it paints. ?bg=clear (html.obs-clear) drops the set
   and the backdrop words so the bracket floats over whatever is behind it. */
html.obs, html.obs body { background: transparent; overflow: hidden; }
html.obs body { display: block; min-height: 0; }
html.obs .nav, html.obs .page-header, html.obs .mm-toolbar, html.obs #auth-overlay { display: none !important; }
html.obs .main { margin: 0; padding: 0; min-height: 0; max-width: none; }
html.obs .mm-stage {
  width: 100vw; height: 100vh; border-radius: 0; padding: 16px;
  display: flex; align-items: center; justify-content: center;
}
html.obs .mm-fit { flex: none; }
html.obs .mb-name { pointer-events: none; }
html.obs-clear .mm-stage { background: none; }
html.obs-clear .mm-words { display: none; }
/* Before the bracket is released: the title bar alone, in the middle of the set. */
.obs-wait { width: min(1500px, 92vw); }
.obs-wait .mm-bar { margin: 0; }
.obs-wait .mm-bar-title { font-size: clamp(28px, 4.5vw, 78px); }

/* ── SCHEDULE (/marbles/schedule, OBS: /marbles/obs/schedule) ──
   Last year's sheet, modernised: a time heading over each block of four pods,
   each pod a card in its region's colour (A yellow, B blue, C orange, D coral,
   as the sheet had them). Admins get drag handles and editable times. */
.sc-tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
}
.sc-tools-tip { color: var(--text-muted); font-size: 12.5px; margin-right: auto; }
.sc-zone { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.sc-zone input, .sc-day-in, .sc-time-in {
  background: #0d1124; border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 12.5px;
}
.sc-zone input { width: 70px; }
.sc-status { font-size: 12.5px; color: var(--text-muted); }
.sc-status.ok { color: #4ade80; }
.sc-status.bad { color: #f87171; }
.sc-btn {
  padding: 7px 14px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800;
  background: #f5a524; border: 1px solid #f5a524; color: #0a1230;
}
.sc-btn.ghost { background: transparent; color: var(--text); border-color: var(--border); font-weight: 700; }
.sc-btn.small { padding: 4px 10px; font-size: 12px; }
.sc-btn:disabled { opacity: .45; cursor: default; }

.sc-stage {
  --A: #f7c948; --B: #5b9cff; --C: #ff9a3c; --D: #ef6f6c;
  --card: #121a3a; --card-2: #0e1530; --ink: #e8edff; --dim: #7d89b0; --now: #f5a524;
  position: relative; padding: 22px; border-radius: 14px;
  background: radial-gradient(120% 80% at 50% 0%, #1b2c6b 0%, #0d1538 55%, #070b1f 100%);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; color: var(--ink);
}
.sc-note { margin-bottom: 18px; padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--dim); font-size: 16px; }
.sc-round + .sc-round { margin-top: 34px; }
.sc-round-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sc-round-head h2 { font-size: 34px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.sc-day { font-size: 20px; font-weight: 700; color: var(--now); text-transform: uppercase; letter-spacing: .04em; }
.sc-round-edit { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.sc-day-in { width: 230px; }

.sc-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1300px) { .sc-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .sc-blocks { grid-template-columns: 1fr; } .sc-stage { padding: 14px; } }
.sc-block { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.sc-block.now  { border-color: var(--now); box-shadow: 0 0 0 1px var(--now), 0 0 28px rgba(245,165,36,.25); }
.sc-block.next { border-color: rgba(255,255,255,.28); }
.sc-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.sc-time .sc-time-in { margin-left: auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.sc-pill { font-size: 13px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; }
.sc-pill.now  { background: var(--now); color: #0a1230; }
.sc-pill.next { background: rgba(255,255,255,.14); color: var(--ink); }

.sc-card {
  --rg: var(--dim);
  position: relative; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(255,255,255,.07); border-left: 5px solid var(--rg);
}
.sc-card.rg-A { --rg: var(--A); } .sc-card.rg-B { --rg: var(--B); }
.sc-card.rg-C { --rg: var(--C); } .sc-card.rg-D { --rg: var(--D); }
.sc-card-head { display: flex; align-items: center; padding: 6px 10px 2px; }
.sc-rg { color: var(--rg); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-grip { display: none; margin-left: auto; color: var(--dim); font-size: 16px; line-height: 1; }
html.is-admin .sc-stage:not(.sc-obs) .sc-card { cursor: grab; }
html.is-admin .sc-stage:not(.sc-obs) .sc-grip { display: block; }
.sc-card.dragging { opacity: .35; }
.sc-card.drop { outline: 2px dashed var(--now); outline-offset: 2px; }

/* On the page a game is two stacked lines, like a bracket box, so a block a
   quarter of the screen wide still shows whole names. OBS has the room for
   the two side by side with "vs" between them. */
.sc-game { display: flex; flex-direction: column; gap: 3px; padding: 6px 10px; }
.sc-game .sc-vs { display: none; }
.sc-check { margin-left: auto; }
.sc-game + .sc-game { border-top: 1px solid rgba(255,255,255,.06); }
.sc-game:last-child { padding-bottom: 8px; }
.sc-vs { color: var(--dim); font-size: 13px; font-weight: 700; font-style: italic; text-transform: uppercase; }
.sc-p, .sc-from { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 18px; font-weight: 700; }
.sc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-seed {
  flex: none; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: var(--ink); font-size: 14px; font-weight: 800;
}
.sc-seed.ghost { background: none; border: 1px dashed rgba(255,255,255,.25); color: var(--dim); }
.sc-from .sc-name { color: var(--dim); font-size: 15px; font-weight: 600; }
.sc-p.won .sc-name { color: #fff; }
.sc-p.lost .sc-name { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.sc-p.lost .sc-seed { opacity: .5; }
/* Elite 8: series score beside each name, and "Best of 3" in the card's head. */
.sc-wins { flex: none; margin-left: auto; min-width: 22px; text-align: center; font-size: 15px; font-weight: 800; color: var(--ink); background: rgba(255,255,255,.1); border-radius: 5px; padding: 1px 5px; }
.sc-wins + .sc-check { margin-left: 4px; }
.sc-bo { margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
/* A round hidden from viewers: what the admin sees in its place. */
.sc-folded { padding: 10px 14px; border: 1px dashed rgba(255,255,255,.2); border-radius: 12px; opacity: .8; }
.sc-folded .sc-round-head { margin-bottom: 0; align-items: center; }
.sc-folded .sc-round-head h2 { font-size: 24px; color: var(--dim); }
.sc-hidden-tag { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.sc-check { flex: none; width: 18px; height: 18px; }
.sc-check circle { fill: #22c55e; }
.sc-check path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* OBS: two blocks side by side at a fixed size, scaled to fit the source. */
html.obs .sc-stage { width: 100vw; height: 100vh; border-radius: 0; padding: 20px; display: flex; align-items: center; justify-content: center; }
html.obs-clear .sc-stage { background: none; }
.sc-fit { position: relative; flex: none; }
.sc-canvas { width: 1720px; transform-origin: 0 0; }
.sc-obs-bar { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.sc-obs-logo { padding: 10px 16px; background: #1d3c8c; border: 3px solid #fff; color: #fff; font-size: 26px; font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; }
.sc-obs-title { font-size: 64px; font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: .02em; }
.sc-obs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.sc-obs-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; font-size: 30px; font-weight: 800; text-transform: uppercase; color: var(--now); }
.sc-obs-col + .sc-obs-col .sc-obs-label { color: var(--ink); }
.sc-obs-label span { font-size: 22px; color: var(--dim); letter-spacing: .04em; }
.sc-obs .sc-block { padding: 16px; gap: 14px; }
.sc-obs .sc-time { font-size: 44px; }
.sc-obs .sc-rg { font-size: 19px; }
.sc-obs .sc-game { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 8px 14px; gap: 10px; }
.sc-obs .sc-game .sc-vs { display: block; }
.sc-obs .sc-p.r, .sc-obs .sc-from.r { flex-direction: row-reverse; text-align: right; }
.sc-obs .sc-check { margin-left: 0; }
.sc-obs .sc-p, .sc-obs .sc-from { font-size: 30px; gap: 10px; }
.sc-obs .sc-from .sc-name { font-size: 24px; }
.sc-obs .sc-seed { min-width: 34px; height: 34px; font-size: 21px; border-radius: 7px; }
.sc-obs .sc-vs { font-size: 18px; }
.sc-obs .sc-check { width: 28px; height: 28px; }
.sc-obs-msg { display: flex; align-items: center; justify-content: center; min-height: 300px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 48px; font-weight: 800; text-transform: uppercase; color: var(--dim); }
.sc-obs-msg.wide { width: 100%; padding: 40px 60px; text-align: center; }
html.obs .sc-stage > .sc-obs-msg.wide { width: auto; color: var(--ink); }
html.obs .sc-tools { display: none !important; }
.sc-tbd { color: var(--dim); font-weight: 600; }

/* Admin → Setup → Region names. Laid out the way the regions sit on the
   bracket: A over D on the left, B over C on the right. */
.rn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 10px 16px; }
@media (max-width: 700px) { .rn-grid { grid-template-columns: 1fr; } }
.rn-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.rn-grid small { font-weight: 500; color: var(--text-muted); }
.rn-grid input {
  padding: 7px 10px; font-size: 13px; font-family: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text);
}
