/* TAPS Tournament Manager — shared design tokens and components */
:root {
  --navy: #0a1f55;
  --navy-2: #0f2b74;
  --blue: #1a46c4;
  --yellow: #ffc512;
  --yellow-2: #ffe17a;
  --ink: #0a1630;
  --chalk: #f3f6fb;
  --paper: #ffffff;
  --line: #d7deeb;
  --line-2: #e8edf5;
  --muted: #5b6785;
  --ok: #138a52;
  --live: #e0322f;
  --gold: #e3a400;
  --silver: #9aa6b9;
  --bronze: #bf7438;
  --radius: 10px;
  --display: 'Saira Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--chalk); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.disp { font-family: var(--display); letter-spacing: .01em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 14px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.btn:hover { border-color: #b9c4d8; background: #fafbfe; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #1539a3; }
.btn.go { background: var(--yellow); border-color: #e9b200; color: var(--ink); }
.btn.go:hover { background: #ffcd33; }
.btn.danger { color: #b3261e; border-color: #f0c9c6; }
.btn.danger:hover { background: #fff3f2; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }

/* form */
label.f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink); font-weight: 500; }
.in:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(26, 70, 196, .15); }
textarea.in { resize: vertical; min-height: 38px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.pill.final { background: #e3f5ec; color: var(--ok); }
.pill.live { background: #fde9e8; color: var(--live); }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.pill.ready { background: #e8eefc; color: var(--blue); }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill.live::before { animation: none; } }

.chip-campus { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.chip-campus i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

/* medals */
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.medal.g { background: var(--gold); }
.medal.s { background: var(--silver); }
.medal.b { background: var(--bronze); }
.medal.o { background: var(--line-2); color: var(--muted); }

/* tables */
table.t { width: 100%; border-collapse: collapse; background: #fff; }
table.t th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfe; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* modal */
.scrim { position: fixed; inset: 0; background: rgba(6, 15, 42, .55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 60px rgba(6, 15, 42, .35); }
.modal.wide { width: min(1200px, 100%); }
.modal header { padding: 18px 20px 6px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal header h3 { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.modal .body { padding: 10px 20px 20px; }
.modal footer { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
#toast.err { background: #b3261e; }

/* ---------------- bracket ---------------- */
.bracket-scroll { overflow-x: auto; padding: 6px 2px 14px; }
.bracket-sec + .bracket-sec { margin-top: 26px; }
.bracket-sec h4 { margin: 0 0 8px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.bracket { position: relative; }
.bracket svg.lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.bracket svg.lines path { fill: none; stroke: #b6c1d6; stroke-width: 1.5; }
.bracket .rlabel { position: absolute; top: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.mbox { position: absolute; width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.mrow { overflow: hidden; }
.mrow.s1 { border-radius: 7px 7px 0 0; }
.mrow.s2 { border-radius: 0 0 7px 7px; }
.mbox.click { cursor: pointer; }
.mbox.click:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 70, 196, .12); }
.mbox.ready { border-color: #9fb4ea; }
.mbox.voided { opacity: .45; border-style: dashed; }
.mrow { display: grid; grid-template-columns: 5px 1fr auto; align-items: center; height: 28px; }
.mrow + .mrow { border-top: 1px solid var(--line-2); }
.mrow .bar { height: 100%; }
.mrow .nm { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .nm small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.mrow .sc { padding: 0 9px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; background: #f6f8fc; height: 100%; display: grid; align-items: center; }
.mrow.win .nm { font-weight: 700; }
.mrow.win .sc { background: var(--yellow); }
.mrow.lose .nm { color: var(--muted); }
.mrow.tbd .nm { color: #9aa5bd; font-style: italic; }
.mtag { position: absolute; top: -9px; left: 8px; z-index: 1; line-height: 16px; border-radius: 4px; font-size: 10px; font-weight: 700; background: #fff; padding: 0 4px; color: var(--muted); }

/* round robin */
.rr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rr-round h5 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.rr-round .mbox { position: relative; width: 100%; margin-bottom: 12px; }

/* print */
@media print {
  body { background: #fff; }
  .noprint { display: none !important; }
  .modal, .scrim { position: static; box-shadow: none; background: #fff; padding: 0; max-height: none; }
  .bracket-scroll { overflow: visible; }
}

/* ---------------- calendar & timeline (shared) ---------------- */
.schip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; font-size: 14px; color: var(--ink); }
.schip.sm { padding: 3px 10px; font-size: 12.5px; }
.schip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal-pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.cal-pill.st-planned { background: #e8eefc; color: var(--blue); }
.cal-pill.st-live { background: #fff1c2; color: #7a5a00; }
.cal-pill.st-done { background: #e3f5ec; color: var(--ok); }
.cal-pill.st-late { background: #fde9e8; color: var(--live); }
.cal-pill.st-program { background: var(--line-2); color: var(--muted); }

.cal-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.seg-v { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg-v button { border: 0; background: none; padding: 7px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-left: 1px solid var(--line); }
.seg-v button:first-child { border-left: 0; }
.seg-v button[aria-selected="true"] { background: var(--navy); color: #fff; }
.cal-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-nav .cal-date { width: auto; padding: 5px 8px; }
.cal-title { font-family: var(--display); font-size: 22px; margin-left: 6px; }
.cal-jump { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.cal-empty { color: var(--muted); padding: 18px 0; margin: 0; }

.cal-grid { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-x: auto; }
.cal-head, .cal-body { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(150px, 1fr)); min-width: calc(58px + var(--cols) * 150px); }
.cal-head { border-bottom: 1px solid var(--line); background: #fafbfe; position: sticky; top: 0; z-index: 3; }
.cal-hc { padding: 9px 10px; font-weight: 700; font-size: 13px; border-left: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-hc.today { color: var(--blue); box-shadow: inset 0 -3px 0 var(--yellow); }
.cal-body { position: relative; }
.cal-body > .cal-gut { position: relative; }
.cal-body > .cal-gut span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cal-body > .cal-gut span:first-child { transform: none; }
.cal-col { position: relative; border-left: 1px solid var(--line-2); background-image: linear-gradient(to bottom, var(--line-2) 1px, transparent 1px); }
.cal-col.add { cursor: copy; }
.cal-col.hover { background-color: #f2f5fd; }
.cal-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--live); z-index: 2; pointer-events: none; }
.cal-now span { position: absolute; left: 2px; top: -9px; background: var(--live); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; }
.cb { position: absolute; border-radius: 7px; padding: 4px 8px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 1.25; background: #fff; border: 1px solid #b8c7ef; border-left: 4px solid var(--blue); z-index: 1; touch-action: none; user-select: none; }
.cb:hover, .cb:focus-visible { box-shadow: 0 4px 14px rgba(10,31,85,.18); z-index: 4; }
.cb.short { flex-direction: row; gap: 6px; align-items: center; padding: 2px 8px; }
.cb-t { font-weight: 700; color: var(--muted); font-size: 11px; white-space: nowrap; }
.cb-n { font-weight: 700; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-n svg { flex: none; }
.cb-s { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.cb.st-live { background: #fff8de; border-color: #f1d36b; border-left-color: var(--yellow); }
.cb.st-done { background: #f1faf5; border-color: #bfe5d1; border-left-color: var(--ok); }
.cb.st-done .cb-n { color: #2b5c45; }
.cb.st-late { background: #fff4f3; border-color: #f3c1bd; border-left-color: var(--live); }
.cb.program { background: var(--navy); border-color: var(--navy); border-left-color: var(--yellow); color: #fff; }
.cb.program .cb-t, .cb.program .cb-s { color: var(--yellow-2); }
.cb.program .cb-n, .cb.program.st-done .cb-n { color: #fff; }
.cb.program.st-done { background: #3a4a78; border-color: #3a4a78; }
.cb.clash { outline: 2px dashed var(--live); outline-offset: -2px; }
.cb.drag { opacity: .85; box-shadow: 0 10px 26px rgba(10,31,85,.3); z-index: 6; }

.ag-day { margin-bottom: 18px; }
.ag-day h4 { font-family: var(--display); font-size: 21px; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.ag-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-top: 0; cursor: pointer; }
.ag-day h4 + .ag-row { border-top: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.ag-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.ag-day h4 + .ag-row:last-child { border-radius: var(--radius); }
.ag-row:hover { background: #fafbfe; }
.ag-t { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.ag-n { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ag-n small { display: block; color: var(--muted); font-size: 12.5px; }
.ag-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--chalk); color: var(--blue); display: grid; place-items: center; flex: none; }
.ag-ic.program { background: var(--navy); color: var(--yellow); }
@media (max-width: 640px) { .ag-row { grid-template-columns: 1fr auto; } .ag-t { grid-column: 1 / -1; } }

.tl-days { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.tl::before { content: ''; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-day { font-family: var(--display); font-weight: 700; font-size: 19px; padding: 10px 0 8px 46px; position: relative; }
.tl-item { display: grid; grid-template-columns: 32px 128px 1fr; gap: 10px; padding: 8px 0 14px; cursor: pointer; position: relative; border-radius: 8px; }
.tl-item:hover .tl-title b { text-decoration: underline; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #b8c7ef; color: var(--blue); position: relative; z-index: 1; }
.tl-item.st-done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl-item.st-live .tl-dot { background: var(--yellow); border-color: #e9b200; color: var(--ink); }
.tl-item.st-late .tl-dot { background: #fff; border-color: var(--live); color: var(--live); }
.tl-item.program .tl-dot { background: var(--navy); border-color: var(--navy); color: var(--yellow); }
.tl-when { font-weight: 700; font-size: 13px; color: var(--muted); padding-top: 6px; font-variant-numeric: tabular-nums; }
.tl-body { min-width: 0; padding-top: 4px; }
.tl-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-title b { font-size: 15.5px; }
.tl-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tl-evs { font-size: 13px; color: var(--ink); margin-top: 4px; opacity: .8; }
.tl-item.st-planned .tl-title b, .tl-item.st-planned .tl-evs { color: #3b4766; }
.tl-med { display: flex; gap: 10px; align-items: center; font-size: 13.5px; margin-top: 5px; flex-wrap: wrap; }
.tl-ev { color: var(--muted); }
.tl-g { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.tl-g .medal { width: 18px; height: 18px; font-size: 11px; }
.tl-g small { color: var(--muted); font-weight: 600; }
.tl-now { position: relative; padding: 6px 0 14px 46px; }
.tl-now::before { content: ''; position: absolute; left: 0; right: 0; top: 17px; border-top: 2px dashed var(--live); }
.tl-now span { position: relative; background: var(--live); color: #fff; font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: 99px; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 32px 1fr; row-gap: 0; } .tl-dot { grid-row: 1 / span 2; } .tl-when { grid-column: 2; padding-top: 7px; } .tl-body { grid-column: 2; padding-top: 0; } .tl-day { padding-left: 42px; } }

.sd-seq { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.sd-seq li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line-2); font-size: 14px; }
.sd-seq li:first-child { border-top: 0; }
.sd-seq .sq { width: 24px; height: 24px; border-radius: 6px; background: var(--chalk); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--muted); }
.sd-med { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.sd-med b { width: 100%; }
.sd-med > span { display: inline-flex; align-items: center; gap: 5px; }
.sd-med .medal { width: 20px; height: 20px; font-size: 11px; }
@media print { .cal-grid { overflow: visible; } }

/* ---------------- live scoring (shared) ---------------- */
.lcard { display: grid; gap: 4px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); min-width: 230px; border-top: 3px solid var(--live); }
.lcard:hover { border-color: #b9c4d8; box-shadow: 0 4px 14px rgba(10,31,85,.12); }
.lcard.fin { border-top-color: var(--ok); }
.lc-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lc-ev { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-st { color: var(--live); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lcard.fin .lc-st { color: var(--ok); }
.lc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.lc-row { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center; }
.lc-row i { width: 10px; height: 10px; border-radius: 3px; }
.lc-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-pts { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.lc-srv { color: var(--gold); font-size: 12px; }
.lc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.lc-foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lc-sets { background: var(--line-2); border-radius: 5px; padding: 0 5px; color: var(--ink); }
.livestrip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
table.t.box td, table.t.box th { padding: 6px 8px; font-size: 13px; }
table.t.box tr.tot td { background: #fafbfe; border-top: 1px solid var(--line); }
table.t.box tr.unas td { color: var(--muted); }
table.t.box input.bx { width: 46px; padding: 3px 5px; text-align: right; }
table.t.box input.bx.chg { border-color: var(--blue); background: #eef3ff; }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.leaders .ld { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.leaders ol { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.leaders li span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.leaders li { display: list-item; }
.leaders li > span:last-child { float: right; font-weight: 700; }
.leaders i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.leaders small { color: var(--muted); }
.mbox .livetag { position: absolute; top: -9px; right: 8px; z-index: 1; line-height: 16px; border-radius: 4px; font-size: 10px; font-weight: 800; padding: 0 5px; background: var(--live); color: #fff; }
.mbox .livetag.final { background: var(--ok); }

/* ---------------- splash screen ---------------- */
#splash { position: fixed; inset: 0; z-index: 120; background: radial-gradient(ellipse at 50% 35%, #163a99 0%, #0a1f55 45%, #040b20 100%); color: #fff; display: grid; place-items: center; overflow: hidden; animation: spIn .5s ease both; }
#splash.out { animation: spOut .45s ease both; }
@keyframes spIn { from { opacity: 0; } }
@keyframes spOut { to { opacity: 0; transform: scale(1.03); } }
#splash::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, #ffc512 0 28px, transparent 28px 56px); opacity: .9; }
.sp-in { width: min(1000px, 92vw); text-align: center; display: grid; justify-items: center; gap: min(2.2vh, 18px); padding: 3vh 0; }
.sp-meet { font-weight: 700; color: var(--yellow-2); letter-spacing: .08em; text-transform: uppercase; font-size: clamp(12px, 1.6vmin, 18px); }
.sp-art { width: 100%; display: grid; justify-items: center; }
.sp-h { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 7vmin, 92px); line-height: .95; margin: 0; animation: spUp .7s .5s ease both; }
.sp-m { font-size: clamp(16px, 2.6vmin, 30px); line-height: 1.35; margin: 0; max-width: 34em; color: #dfe6fb; animation: spUp .7s .9s ease both; }
.sp-m b, .sp-h b { color: var(--yellow); font-weight: 800; }
@keyframes spUp { from { opacity: 0; transform: translateY(18px); } }
.sp-go { font-size: clamp(15px, 2vmin, 22px); padding: .7em 1.6em; animation: spUp .6s 1.3s ease both; }
.sp-skip { position: absolute; top: 16px; right: 18px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: 6px 16px; font-weight: 700; cursor: pointer; }
.sp-skip:hover { background: rgba(255,255,255,.2); }
.sp-prog { position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: rgba(255,255,255,.08); }
.sp-prog i { display: block; height: 100%; background: var(--yellow); width: 0; animation: spProg linear forwards; }
@keyframes spProg { to { width: 100%; } }
.sp-cd { display: grid; gap: 2px; animation: spUp .6s 1.1s ease both; }
.sp-cd span { color: #b9c7ee; font-weight: 600; font-size: clamp(13px, 1.8vmin, 18px); }
.sp-cd b { font-family: var(--display); font-size: clamp(30px, 6vmin, 70px); color: var(--yellow); font-variant-numeric: tabular-nums; line-height: 1; }
/* crown look */
.sp-crownart { position: relative; width: min(560px, 80vw); display: grid; place-items: end center; padding-bottom: 1vh; }
.sp-rise { position: absolute; inset: auto 0 0 0; height: 78%; display: flex; align-items: flex-end; justify-content: space-between; gap: 6%; padding: 0 2%; }
.sp-rise i { width: 12%; height: var(--h); background: linear-gradient(180deg, var(--c), transparent); border-radius: 6px 6px 0 0; opacity: .75; transform-origin: bottom; animation: spRise 1.1s var(--d) cubic-bezier(.2,.8,.2,1) both; }
@keyframes spRise { from { transform: scaleY(0); } }
.sp-crest { position: relative; width: clamp(110px, 20vmin, 210px); display: grid; justify-items: center; animation: spDrop .9s .15s cubic-bezier(.2,.9,.3,1.2) both; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
@keyframes spDrop { from { opacity: 0; transform: translateY(-30px) scale(.85); } }
.sp-crest .sp-cr { width: 70%; animation: spCrown 1s .9s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes spCrown { from { opacity: 0; transform: translateY(-60%) rotate(-12deg); } }
.sp-shield { width: 100%; margin-top: -6%; }
.sp-cn { position: absolute; left: 0; right: 0; top: 46%; text-align: center; line-height: 1; }
.sp-cn b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vmin, 62px); }
.sp-cn span { font-size: clamp(10px, 1.6vmin, 15px); font-weight: 700; color: var(--yellow-2); }
/* lanes look */
.sp-lanes { list-style: none; margin: 0; padding: 0; width: min(820px, 90vw); display: grid; gap: clamp(6px, 1.2vmin, 12px); }
.sp-lanes li { display: grid; grid-template-columns: clamp(80px, 16vmin, 150px) 1fr auto; gap: 12px; align-items: center; }
.sp-ln { text-align: right; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2.8vmin, 30px); }
.sp-bar { position: relative; height: clamp(18px, 3.6vmin, 38px); background: rgba(255,255,255,.06); border-radius: 5px; }
.sp-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 5px; box-shadow: inset -8px 0 0 rgba(255,255,255,.3); animation: spLane 1.3s var(--d) cubic-bezier(.2,.8,.2,1) both; }
@keyframes spLane { from { width: 0; } }
.sp-bar .sp-cr { position: absolute; left: var(--w); top: 50%; width: clamp(30px, 5.5vmin, 60px); transform: translate(-60%, -78%) rotate(12deg); animation: spCrown 1s 1.3s both; }
.sp-lanes b { font-family: var(--display); font-size: clamp(16px, 2.8vmin, 30px); min-width: 2ch; text-align: right; }
@media (prefers-reduced-motion: reduce) { #splash, #splash * { animation-duration: 1ms !important; animation-delay: 0ms !important; } }
/* photo behind the champion splash */
.sp-bg { position: absolute; inset: -3%; z-index: 0; background: 52% 30% / cover no-repeat; opacity: 0; transition: opacity 1.4s ease; }
.sp-bg.on { opacity: .34; animation: spZoom 24s linear both; }
@keyframes spZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
#splash .sp-in { position: relative; z-index: 2; }
#splash::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, rgba(10,31,85,.25) 0%, rgba(6,18,52,.75) 70%, rgba(4,11,32,.92) 100%); }
#splash::after, .sp-skip, .sp-prog { z-index: 3; }

/* projector throwback slideshow */
#throwback { position: fixed; inset: 0; z-index: 119; background: #040b20; color: #fff; overflow: hidden; animation: spIn .6s ease both; }
#throwback.out { animation: spOut .6s ease both; }
.tb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.tb-slide i { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.02); }
.tb-slide.on { opacity: 1; }
.tb-slide.on i { animation: tbPan 6s ease-out both; }
@keyframes tbPan { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.tb-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,11,32,.92) 0%, rgba(4,11,32,.35) 34%, rgba(4,11,32,0) 60%), linear-gradient(90deg, rgba(4,11,32,.55) 0%, rgba(4,11,32,0) 45%); }
.tb-cap { position: absolute; left: 4vw; bottom: 7vh; display: grid; gap: .6vh; text-align: left; }
.tb-kick { justify-self: start; background: var(--yellow); color: var(--ink); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(12px, 1.3vw, 20px); padding: .25em .7em; border-radius: 4px; }
.tb-cap b { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 86px); line-height: .95; }
.tb-sub { font-size: clamp(15px, 1.7vw, 28px); color: #dfe6fb; font-weight: 600; }
.tb-sub em { font-style: normal; color: var(--yellow-2); }
.tb-dots { position: absolute; right: 4vw; bottom: 7.5vh; display: flex; gap: .6vw; }
.tb-dots i { width: clamp(8px, .8vw, 14px); height: clamp(8px, .8vw, 14px); border-radius: 50%; background: rgba(255,255,255,.3); transition: background .3s, transform .3s; }
.tb-dots i.on { background: var(--yellow); transform: scale(1.25); }
#throwback .sp-skip, #throwback .sp-prog { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .sp-bg.on, .tb-slide.on i { animation: none; } #throwback, #throwback * { transition-duration: 1ms !important; } }

/* school logo intro, shown before the main splash */
#brandSplash { position: fixed; inset: 0; z-index: 121; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse at 50% 42%, #ffffff 0%, #f4f7ff 45%, #dfe7fb 100%); color: var(--navy); animation: spIn .35s ease both; }
#brandSplash.out { animation: bsOut .5s ease both; }
@keyframes bsOut { to { opacity: 0; transform: scale(1.04); } }
#brandSplash::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #1a46c4 0 33.3%, #d62828 33.3% 66.6%, #ffc512 66.6%); }
#brandSplash .sp-prog { background: rgba(10,31,85,.08); }
.bs-in { display: grid; justify-items: center; gap: min(2.4vh, 20px); text-align: center; padding: 4vh 4vw; }
.bs-stage { position: relative; display: grid; place-items: center; width: min(58vmin, 560px); aspect-ratio: 1.23; }
.bs-logo { position: relative; width: 100%; animation: bsPop 1s .1s cubic-bezier(.2,.9,.3,1.25) both; filter: drop-shadow(0 18px 30px rgba(10,31,85,.22)); }
.bs-logo img { display: block; width: 100%; height: auto; }
.bs-logo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: url(/img/taps-logo.webp) center / contain no-repeat; mask: url(/img/taps-logo.webp) center / contain no-repeat;
  animation: bsShine 1.2s 1.15s ease-in-out both; }
@keyframes bsPop { from { opacity: 0; transform: scale(.72) translateY(14px); } 70% { opacity: 1; } }
@keyframes bsShine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.bs-ring { position: absolute; left: 50%; top: 46%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(26,70,196,.35);
  transform: translate(-50%, -50%) scale(.6); opacity: 0; animation: bsRing 1.8s .55s ease-out both; }
.bs-ring.r2 { border-color: rgba(255,197,18,.6); animation-delay: .85s; }
@keyframes bsRing { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); } }
.bs-title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6.2vmin, 76px); line-height: .95; letter-spacing: .02em; text-transform: uppercase; animation: spUp .7s .9s ease both; }
.bs-sub { font-weight: 700; color: #3b4f86; font-size: clamp(14px, 2.2vmin, 22px); letter-spacing: .06em; text-transform: uppercase; animation: spUp .7s 1.15s ease both; }
@media (prefers-reduced-motion: reduce) { #brandSplash, #brandSplash * { animation-duration: 1ms !important; animation-delay: 0ms !important; } }

