/* Tournament pages (T-135): additions on top of /dashboard/dashboard.css (same tokens, light/dark). Motion (T-194) is driven by t/motion.mjs:
   it only adds the state-change classes (.lit, .filled, .mv) and draws the bracket SVG; --t carries elapsed time across repaints. */
main { max-width: 960px; gap: 14px; }
.kicker { margin: 0; font: 500 var(--t-label) var(--font-data); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); }
.t-head h1 { margin: 2px 0 4px; }
.meta { margin: 0; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.chip { font: 500 12px var(--font-data); display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--muted); }
.chip.live { color: var(--good); border-color: var(--good); background: var(--good-soft); }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s infinite; }
.chip.done, .chip.open { color: var(--accent); border-color: var(--accent); }
.chip.bad { color: var(--bad); border-color: var(--bad); }
.app-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.app-banner span { flex: 1 1 220px; }
.app-banner .btn { padding: 8px 16px; }
.app-banner button { min-height: 40px; }
.timer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; color: var(--muted); }
.timer b { font: 500 30px var(--font-data); font-variant-numeric: tabular-nums; color: var(--accent); }
.you { display: grid; gap: 6px; justify-items: start; background: var(--panel); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 16px; }
.you b { font-size: 17px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { transition: color var(--dur-fast), border-color var(--dur-base) var(--ease-out); background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 12px; min-height: 44px; font-size: 15px; font-weight: 500; }
.tab.on { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
.t-panel { display: grid; gap: 10px; view-transition-name: t-panel; }
.find { font-size: 12px; }
.matches, .tlist, .prizes { list-style: none; margin: 0; padding: 0; display: grid; }
.mrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow .link { grid-column: 2 / -1; justify-self: start; }
.mrow.me { background: var(--accent-soft); margin-inline: -8px; padding-inline: 8px; border-radius: 6px; }
.n { font: 500 12px var(--font-data); color: var(--muted); }
.pn { display: inline-block; position: relative; transition: color var(--dur-base); }
.pn.w { color: var(--accent); font-weight: 600; }
.pn.l { color: var(--muted); }
.pn.w::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; }
.vs { color: var(--muted); font-size: 12px; }
.res { font: 500 12px var(--font-data); font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); white-space: nowrap; }
.res.ok { color: var(--good); border-color: var(--good); }
.res.bad { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.result-form { padding: 12px 0; border-top: 1px solid var(--line); }
.games { display: grid; grid-template-columns: 1fr 72px; gap: 8px 12px; align-items: center; }
.games input { text-align: center; font-family: var(--font-data); }
select { font: inherit; font-size: 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 10px 12px; }
.row-actions { display: flex; gap: 16px; align-items: center; }
.standings td, .standings th { padding-block: 8px; }
.standings tr.top td:first-child { color: var(--accent); font-weight: 600; }
.standings tr.me td { background: var(--accent-soft); }
.standings tr.drop td { color: var(--muted); }
.standings small { display: inline; }
.bracket { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 240px); gap: 0 48px; overflow-x: auto; padding: 4px 2px 8px; }
.bracket svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.bcol { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; position: relative; z-index: 1; padding-top: 28px; }
.bcol h3 { margin: 0; position: absolute; top: 0; font: 500 var(--t-label) var(--font-data); letter-spacing: var(--ls-label); text-transform: uppercase; }
.bm { border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--panel); transition: box-shadow var(--dur-base); }
.bm > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; }
.bm > div + div { border-top: 1px solid var(--line); }
.bm .w { font-weight: 600; color: var(--accent); }
.bm .tbd { color: var(--muted); }
.bm.champ { box-shadow: 0 0 0 1px var(--accent), 0 0 18px color-mix(in oklab, var(--accent-bright) var(--glow-a), transparent); }
.bm .crown { display: block; padding: 6px 10px 0; color: var(--accent); font: 500 var(--t-label) var(--font-data); letter-spacing: var(--ls-label); text-transform: uppercase; border: 0; }
.conn { fill: none; stroke: var(--line); stroke-width: 1; }
.conn.on { stroke: var(--accent); stroke-width: 1.5; }
.comet { fill: none; stroke: var(--accent-bright); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--accent-bright)); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; }
.prizes li { padding: 6px 0; border-top: 1px solid var(--line); }
.notes { white-space: pre-line; margin: 0; }
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pod { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: grid; gap: 2px; }
.pod .p { font: 500 var(--t-label) var(--font-data); letter-spacing: var(--ls-label); color: var(--accent); text-transform: uppercase; }
.pod b { font-size: 17px; }
.tcard { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.tlist li:first-child .tcard { border-top: 0; }
.date { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px 0; align-self: start; }
.date b { display: block; font: 600 20px var(--font-data); }
.date small { text-transform: uppercase; font-family: var(--font-data); font-size: 10px; }
.tinfo { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.center { text-align: center; }
/* Present mode: the dark shell colors on purpose (venue screen), whatever the viewer's theme. */
body.presenting { background: var(--shell-bg); color: var(--shell-fg); }
body.presenting .site-header, body.presenting footer { display: none; }
body.presenting main { max-width: none; padding: 24px 32px; }
.present { display: grid; gap: 24px; --line: var(--shell-line); --muted: var(--shell-muted); --accent: #D89A28; --accent-bright: #EEB64C; --accent-soft: #3A2E17; --glow-a: 55%; --lit-hold: 4s; }
.p-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.p-top h1 { font: 400 clamp(32px, 4vw, 48px)/1.1 var(--font-display); letter-spacing: -.02em; margin: 0; }
.clock { font: 500 var(--t-clock)/1 var(--font-data); font-variant-numeric: tabular-nums; color: var(--accent-bright); }
.p-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; }
.present .matches li { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 20px; }
.present .standings { font-size: 18px; }
.present .standings tr.top td:first-child { color: var(--accent-bright); }
.p-link { font: 14px var(--font-data); color: var(--muted); }
.p-exit { color: var(--muted); justify-self: start; }
@media (max-width: 700px) { .p-cols { grid-template-columns: 1fr; } .present .matches li { font-size: 16px; } }

/* T-194 state-change motion: classes are added only by t/motion.mjs after a real change (never by render.mjs). */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 60%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes glowline { 0% { box-shadow: 0 0 12px 1px var(--accent-bright); background: var(--accent-bright); } 100% { box-shadow: none; } }
@keyframes glowtext { 0%, 20% { text-shadow: none; } 35% { text-shadow: 0 0 14px color-mix(in oklab, var(--accent-bright) var(--glow-a), transparent); } 100% { text-shadow: none; } }
@keyframes rowflash { from { background: var(--accent-soft); } }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
@keyframes landglow { 0% { text-shadow: 0 0 16px var(--accent-bright); color: var(--accent); } 100% { text-shadow: none; } }
@keyframes mvfade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.lit .pn.w::after { animation: sweep var(--dur-draw) var(--ease-out) var(--t, 0ms) both, glowline var(--lit-hold, 2.4s) ease-out calc(var(--t, 0ms) + var(--dur-draw)) both; }
.lit .pn.w { animation: glowtext calc(var(--lit-hold, 2.4s) + var(--dur-draw)) ease-out var(--t, 0ms) both; }
.mrow.lit, .present .matches li.lit { animation: rowflash 1.2s ease-out var(--t, 0ms) both; }
.lit .res { animation: arrive var(--dur-base) var(--ease-out) var(--t, 0ms) both; }
.bm .filled { animation: landglow 900ms ease-out var(--t, 0ms) both; }
.mv { font: 500 11px var(--font-data); margin-left: 6px; padding: 0 5px; border-radius: 4px; animation: mvfade 4s ease-in var(--t, 0ms) both; }
.mv.up { color: var(--good); background: var(--good-soft); }
.mv.down { color: var(--bad); background: var(--bad-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::view-transition-old(t-panel) { animation: vt-out var(--dur-base) var(--ease-out) both; }
::view-transition-new(t-panel) { animation: vt-in var(--dur-base) var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after, ::view-transition-group(*) { animation: none !important; transition: none !important; } }
/* T-237 listing: cards rise in once (the listing paints once), date tiles lift on hover. Reduced motion: the rule above. */
@keyframes tcard-in { from { opacity: 0; transform: translateY(10px); } }
.tlist li { animation: tcard-in 600ms var(--ease-out) both; }
.tlist li:nth-child(2) { animation-delay: 80ms; } .tlist li:nth-child(3) { animation-delay: 160ms; } .tlist li:nth-child(n+4) { animation-delay: 240ms; }
.tcard .date { transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-base); }
.tcard:hover .date { transform: translateY(-2px); border-color: var(--accent); }
