/* fonts are served from this site (Barlow, SIL Open Font Licence) - nothing is loaded from Google */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/BarlowCondensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/BarlowCondensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/BarlowCondensed-800.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/Barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/Barlow-700.woff2) format('woff2'); }
:root {
  --bg: #120d0e; --bg2: #1b1214; --card: #211618; --card2: #2a1c1e; --line: rgba(255, 225, 225, .1);
  --ink: #fff6f4; --muted: #c9aeab; --red: #e1262f; --red2: #b3141c; --redglow: rgba(225, 38, 47, .45);
  --win: #33d17a; --lose: #ff5a5f; --amber: #f5b13d;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --ui: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: var(--ui); color: var(--ink); background: var(--bg); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 28px); }

/* background: the crest's red chevrons, drifting slowly (transform only) */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 700px at 20% -10%, #3a1416, transparent 60%), var(--bg); }
.bg i { position: absolute; inset: -200px; opacity: .07; will-change: transform;
  background: repeating-linear-gradient(135deg, transparent 0 60px, var(--red) 60px 120px, transparent 120px 200px);
  -webkit-mask: linear-gradient(180deg, #000, transparent 70%); mask: linear-gradient(180deg, #000, transparent 70%);
  animation: chevron 40s linear infinite; }
.bg i:nth-child(2) { opacity: .05; background: repeating-linear-gradient(45deg, transparent 0 90px, var(--red) 90px 150px, transparent 150px 260px); animation-duration: 60s; animation-direction: reverse; }
@keyframes chevron { to { transform: translate(200px, 0); } }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 6px 20px -6px var(--redglow); flex: none; }
.brand b { display: block; font: 800 24px/1 var(--head); letter-spacing: .02em; text-transform: uppercase; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 500; }
.who { display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 46vw; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; }
.chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 3px rgba(51, 209, 122, .2); flex: none; }
.chip.out .dot { background: var(--lose); box-shadow: 0 0 0 3px rgba(255, 90, 95, .2); }
.ghost { background: none; border: 0; color: var(--muted); padding: 8px 6px; cursor: pointer; font-weight: 600; }
.ghost:hover { color: var(--ink); }

.card { background: linear-gradient(var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .9); }
.pad { padding: 20px; }

/* ---------- signed out ---------- */
.welcome { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 56px); align-items: center; padding: clamp(10px, 4vw, 40px) 0 30px; }
.crest { position: relative; width: clamp(140px, 24vw, 220px); aspect-ratio: 1; }
.crest img { width: 100%; height: 100%; border-radius: 32px; display: block; position: relative; z-index: 1; animation: float 6s ease-in-out infinite; box-shadow: 0 30px 60px -20px var(--redglow); }
.crest .ring { position: absolute; inset: -14px; border-radius: 42px; border: 2px solid rgba(225, 38, 47, .5); animation: pulse 3s ease-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@keyframes pulse { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
.kicker { color: var(--red); font: 700 16px var(--head); letter-spacing: .24em; text-transform: uppercase; }
h1 { font: 800 clamp(46px, 9vw, 92px)/.92 var(--head); text-transform: uppercase; letter-spacing: .01em; margin: 6px 0 14px; }
h1 em { font-style: normal; color: var(--red); }
.lede { max-width: 560px; font-size: 18px; line-height: 1.5; color: #f0dcd9; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.facts span { padding: 7px 13px; border-radius: 99px; background: rgba(225, 38, 47, .14); border: 1px solid rgba(225, 38, 47, .35); font-weight: 600; font-size: 14px; }
.authcard { max-width: 460px; margin: 0 auto 60px; padding: 18px 22px 22px; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: rgba(0, 0, 0, .3); border-radius: 99px; padding: 4px; margin-bottom: 18px; }
.seg button { position: relative; z-index: 1; background: none; border: 0; padding: 10px; border-radius: 99px; cursor: pointer; font-weight: 700; color: var(--muted); transition: color .2s ease; }
.seg button[aria-selected="true"] { color: #fff; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--red); transition: transform .35s var(--ease); }
.seg[data-on="register"] .seg-pill { transform: translateX(100%); }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form label small { color: var(--muted); font-weight: 500; }
input, select, textarea { font: 500 16px var(--ui); color: var(--ink); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 38, 47, .25); }
select option { background: var(--bg2); }
.check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--red); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 18px; cursor: pointer; text-decoration: none;
  background: var(--red); color: #fff; font: 700 17px var(--ui); box-shadow: 0 10px 24px -12px var(--redglow); transition: transform .15s var(--ease), background-color .2s ease; }
.btn:hover { background: #ef3a42; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.small { padding: 9px 14px; font-size: 15px; border-radius: 12px; }
.btn.ghostbtn { background: rgba(255, 255, 255, .06); box-shadow: none; border: 1px solid var(--line); }
.btn.ghostbtn:hover { background: rgba(255, 255, 255, .12); }
.btn.red { background: var(--red2); }
.hint { color: var(--muted); font-size: 14px; line-height: 1.45; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- signed in: stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr 1.5fr 1.1fr; gap: 14px; margin-top: 4px; }
.stat { padding: 16px 18px; min-width: 0; }
.stat h2 { font: 700 15px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.big { font: 800 56px/1 var(--head); }
.money span:first-child { color: var(--red); margin-right: 2px; }
.small { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.35; }
.standing { display: flex; align-items: center; gap: 14px; }
.ringsvg { width: 84px; height: 84px; transform: rotate(-90deg); flex: none; }
.ringsvg circle { fill: none; stroke-width: 11; }
.ringsvg .track { stroke: rgba(255, 255, 255, .08); }
.ringsvg .arc { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.2s var(--ease); }
.standing p b { display: block; font: 800 48px/1 var(--head); }
.standing p span { color: var(--muted); font-weight: 600; }
.standing p i { font-style: normal; }

.countdown { display: flex; gap: 8px; }
.cd { flex: 1; min-width: 0; text-align: center; background: rgba(0, 0, 0, .35); border-radius: 14px; padding: 8px 4px 6px; border: 1px solid var(--line); }
.cd b { display: block; font: 800 38px/1 var(--head); font-variant-numeric: tabular-nums; overflow: hidden; height: 38px; }
.cd b span { display: block; }
.cd b span.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } }
.cd small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clock.urgent .cd { border-color: rgba(225, 38, 47, .6); animation: urgent 1.6s ease-in-out infinite; }
@keyframes urgent { 50% { box-shadow: 0 0 0 3px rgba(225, 38, 47, .25); } }
.clock .done { font: 700 26px/1.2 var(--head); text-transform: uppercase; }

.mestatus { display: grid; gap: 6px; }
.badge { display: inline-flex; align-self: start; justify-self: start; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font: 700 18px var(--head); letter-spacing: .06em; text-transform: uppercase; }
.badge.in { background: rgba(51, 209, 122, .15); color: var(--win); }
.badge.out { background: rgba(255, 90, 95, .15); color: var(--lose); }
.badge.wait { background: rgba(245, 177, 61, .15); color: var(--amber); }
.badge.won { background: var(--amber); color: #2a1a00; }
.badge.in::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { opacity: .3; } }
.mestatus p { color: var(--muted); font-size: 14px; line-height: 1.4; }
.mestatus p b { color: var(--ink); }

/* tabs */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; margin: 22px 0 18px; padding: 5px; border-radius: 99px; overflow-x: auto; scrollbar-width: none;
  background: rgba(27, 18, 20, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; flex: 1 0 auto; background: none; border: 0; padding: 10px 16px; border-radius: 99px; cursor: pointer; font: 700 17px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .2s ease; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: #fff; }
.tab-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 99px; background: var(--red); transition: transform .4s var(--ease), width .4s var(--ease); }
.panel { padding-bottom: 60px; }
.panel.enter { animation: panelin .4s var(--ease); }
@keyframes panelin { from { opacity: 0; transform: translateY(8px); } }
.panelhead { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.panelhead h2 { font: 800 32px/1 var(--head); text-transform: uppercase; }
.panelhead p { color: var(--muted); }
.sec { margin: 30px 0 12px; font: 700 16px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* team picker */
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.team { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 10px 12px; text-align: center; cursor: pointer; border-radius: 18px; overflow: hidden;
  background: linear-gradient(var(--card2), var(--card)); border: 1.5px solid var(--line);
  transition: transform .2s var(--ease), border-color .2s ease, box-shadow .25s ease, opacity .2s ease; }
.team::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 80px at 50% 0, var(--c1), transparent 70%); opacity: .2; transition: opacity .25s ease; }
.team > * { position: relative; }
.shirt { width: 64px; height: 58px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); transition: transform .35s var(--ease); }
.team .tn { font: 800 22px/1 var(--head); letter-spacing: .04em; }
.team .tf { font-size: 13px; color: var(--muted); line-height: 1.3; min-height: 34px; }
.team .tf b { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .team:not(:disabled):hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .25); }
  .team:not(:disabled):hover .shirt { transform: rotate(-6deg) scale(1.06); }
  .team:not(:disabled):hover::before { opacity: .35; }
}
.team:not(:disabled):active { transform: scale(.97); }
.team:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.team.sel { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 38, 47, .35), 0 18px 34px -16px var(--redglow); }
.team.sel::before { opacity: .45; }
.team .tick { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--ease); }
.team .tick svg { width: 14px; height: 14px; }
.team.sel .tick { transform: scale(1); }
.team.sel.stamp { animation: stamp .5s var(--ease); }
@keyframes stamp { 0% { transform: scale(1); } 30% { transform: scale(.93); } 65% { transform: scale(1.04); } 100% { transform: scale(1); } }
.team.used, .team.nofx { cursor: not-allowed; }
.team.used > :not(.usedtag), .team.nofx > *, .team.used::before, .team.nofx::before { opacity: .32; }
.team.used .shirt, .team.nofx .shirt { filter: grayscale(1); }
.team .usedtag { position: absolute; top: 9px; left: 50%; transform: translateX(-50%) rotate(-8deg); padding: 3px 10px; border: 2px solid var(--muted); border-radius: 6px; font: 800 14px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(18, 13, 14, .7); }
.team:disabled:not(.used):not(.nofx) { cursor: default; }
.locked .team { cursor: default; }
.empty { padding: 26px; text-align: center; color: var(--muted); line-height: 1.5; }
.empty b { display: block; color: var(--ink); font: 800 26px var(--head); text-transform: uppercase; margin-bottom: 6px; }

/* fixtures */
.fixtures { padding: 6px 0; }
.fx { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); }
.fx:first-child { border-top: 0; }
.fx .side { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.fx .side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx .side.h { justify-content: flex-end; text-align: right; }
.fx .mini { width: 26px; height: 24px; flex: none; }
.fx .mid { min-width: 82px; text-align: center; font: 700 15px var(--head); letter-spacing: .04em; color: var(--muted); }
.fx .score { font: 800 24px var(--head); color: var(--ink); letter-spacing: .06em; }
.fx .live { color: var(--win); font-size: 12px; letter-spacing: .14em; display: block; }
.fx.mine { background: rgba(225, 38, 47, .1); }
.fx .side.picked span { color: #fff; text-decoration: underline 2px var(--red); text-underline-offset: 4px; }

/* table */
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(var(--card2), var(--card)); border: 1px solid var(--line); }
.pl .av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 18px var(--head); background: var(--red); color: #fff; }
.pl .nm { flex: 1; min-width: 0; }
.pl .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pl .nm small { color: var(--muted); font-size: 13px; }
.pl .st { font: 700 13px var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.pl.alive .st { background: rgba(51, 209, 122, .15); color: var(--win); }
.pl.dead { opacity: .62; }
.pl.dead .av { background: #4a3436; }
.pl.dead .st { background: rgba(255, 90, 95, .12); color: var(--lose); }
.pl.me { border-color: rgba(225, 38, 47, .55); }
.pl.winner { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 177, 61, .2); }
.pl.winner .av { background: var(--amber); color: #2a1a00; }
.divider { grid-column: 1 / -1; margin: 14px 0 2px; font: 700 15px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* history grid */
.scroller { overflow-x: auto; }
.grid { border-collapse: collapse; width: 100%; font-size: 14px; }
.grid th, .grid td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th { font: 700 14px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.grid th:first-child, .grid td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); z-index: 1; font: 600 15px var(--ui); color: var(--ink); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.grid tr:last-child td { border-bottom: 0; }
.pk { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 5px; border-radius: 8px; font: 700 14px var(--head); letter-spacing: .04em; }
.pk svg { width: 18px; height: 16px; }
.pk.win { background: rgba(51, 209, 122, .14); color: var(--win); }
.pk.lose { background: rgba(255, 90, 95, .14); color: var(--lose); }
.pk.pending { background: rgba(245, 177, 61, .14); color: var(--amber); }
.pk.saved { outline: 1px dashed var(--amber); }
.pk.none { color: var(--lose); padding-left: 8px; }
.grid .gone { color: rgba(255, 255, 255, .15); }
.pastgame { margin-top: 14px; padding: 14px 18px; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.rule { padding: 18px; }
.rule.wide { grid-column: 1 / -1; }
.rule > b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red); font: 800 22px var(--head); margin-bottom: 10px; }
.rule h3 { font: 800 22px var(--head); text-transform: uppercase; margin-bottom: 4px; }
.rule p { color: #ead6d3; line-height: 1.5; }

/* admin */
.admingrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.admingrid h3, .dlg h3, .mailcard h3 { font: 800 22px var(--head); text-transform: uppercase; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
textarea { resize: vertical; margin-top: 10px; font-size: 14px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.ptable th { font: 700 13px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ptable td.em { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.ptable tr:last-child td { border-bottom: 0; }
.tog { position: relative; width: 44px; height: 26px; border-radius: 99px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14); transition: background-color .2s ease; vertical-align: middle; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.tog[aria-pressed="true"] { background: var(--win); }
.tog[aria-pressed="true"]::after { transform: translateX(18px); }
.lnk { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px; font-size: 13px; }
.lnk:hover { color: var(--ink); }
.lnk.del:hover { color: var(--lose); }
.ovlist { margin: 4px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.danger { border-color: rgba(225, 38, 47, .3); }
.mailcard { margin-top: 14px; }
.mailcard textarea { margin-top: 0; font-size: 16px; }
.mailcard .btnrow { margin-top: 0; }
.maillog summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.maillog ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.maillog li b { font-weight: 600; }
.maillog .ok { color: var(--win); } .maillog .bad { color: var(--lose); }

/* junk-mail pop-up after sign-up: the envelope drops in and wiggles once */
.junk { text-align: center; }
.junk .envelope { width: 84px; margin: 4px auto 0; filter: drop-shadow(0 10px 18px rgba(225, 38, 47, .45)); }
.junk .envelope svg { display: block; width: 100%; }
.junk[open] .envelope { animation: envdrop .7s var(--ease) both, envwiggle .6s ease-in-out .7s; }
@keyframes envdrop { from { opacity: 0; transform: translateY(-26px) rotate(-10deg) scale(.8); } }
@keyframes envwiggle { 25% { transform: rotate(-7deg); } 75% { transform: rotate(6deg); } }
.junk h3 { margin-top: 10px; }
.junk p { line-height: 1.5; }
.junk .btn { width: 100%; }

/* winner banner */
.winner { position: relative; overflow: hidden; margin-bottom: 14px; padding: 22px 24px; text-align: center; border-color: rgba(245, 177, 61, .5);
  background: radial-gradient(600px 200px at 50% 0, rgba(245, 177, 61, .25), transparent), linear-gradient(var(--card2), var(--card)); }
.winner p { color: var(--amber); font: 700 16px var(--head); letter-spacing: .24em; text-transform: uppercase; }
.winner h2 { font: 800 clamp(36px, 8vw, 64px)/1 var(--head); text-transform: uppercase; margin: 6px 0; }
.winner span { color: var(--muted); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

/* dialogs + toast */
.dlg { width: min(420px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 22px; padding: 22px; color: var(--ink); background: var(--card2); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.dlg::backdrop { background: rgba(10, 6, 7, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgin .3s var(--ease); }
@keyframes dlgin { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.dlg > * + * { margin-top: 14px; }
.dlgx { position: absolute; top: 10px; right: 12px; margin: 0 !important; }
.dlgx button { background: none; border: 0; font-size: 28px; color: var(--muted); cursor: pointer; line-height: 1; }
.temp { font: 800 30px var(--head); letter-spacing: .06em; text-align: center; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .35); user-select: all; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; max-width: 92vw; text-align: center;
  padding: 12px 20px; border-radius: 99px; font-weight: 600; background: #3a1d1f; border: 1px solid rgba(255, 90, 95, .4); color: #ffdcdc; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); animation: toastin .3s var(--ease); }
.toast.good { background: #143222; border-color: rgba(51, 209, 122, .45); color: #d6ffe6; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } }

/* entrance */
.intro .rise { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.team.in { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.pl.in { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }

@media (max-width: 980px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .facts { justify-content: center; }
  .admingrid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand small { display: none; }
  .brand b { font-size: 20px; }
  .brand img { width: 44px; height: 44px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .big { font-size: 44px; }
  .standing p b { font-size: 40px; }
  .ringsvg { width: 64px; height: 64px; }
  .clock, .me { grid-column: 1 / -1; }
  .teams { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .team { padding: 10px 4px 8px; border-radius: 14px; gap: 2px; }
  .shirt { width: 46px; height: 42px; }
  .team .tn { font-size: 19px; }
  .team .tf { font-size: 11.5px; min-height: 30px; }
  .team .tick { width: 20px; height: 20px; top: 5px; right: 5px; }
  .team .usedtag { font-size: 11px; padding: 2px 6px; top: 14px; }
  .tabs button { padding: 9px 12px; font-size: 15px; }
  .fx { padding: 10px 12px; gap: 8px; }
  .fx .side span { font-size: 14px; }
  .row2 { grid-template-columns: 1fr; }
  .who .ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bg i, .crest img, .crest .ring, .badge.in::before, .clock.urgent .cd { animation: none; }
  .intro .rise, .team.in, .pl.in, .panel.enter { animation: fadein .3s ease both; animation-delay: 0s; }
  @keyframes fadein { from { opacity: 0; } }
  .team.sel.stamp, .cd b span.tick, .junk[open] .envelope { animation: none; }
  .confetti { display: none; }
  .ringsvg .arc, .tab-pill, .seg-pill, .team, .shirt { transition-duration: .01s; }
}

.hint.lead { margin: -4px 0 12px; }
.grid td.empty.static { position: static; }
.privacy { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }
.privacy summary, .delacc summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.privacy summary:hover, .delacc summary:hover { color: var(--ink); }
.privacy p { margin-top: 8px; }
.delacc { border-top: 1px solid var(--line); padding-top: 12px; }
.delacc .form { margin-top: 12px; }
