/* RCB fan hub styles */
:root {
  --coral: #ff4d62;
  --coral-2: #e23a50;
  --gold: #f5c451;
  --steel: #b9c1d6;
  --indigo: #2a2160;
  --indigo-2: #17122f;

  --bg: #f1eff7;
  --s1: #ffffff;
  --s2: #f8f6fc;
  --s3: #e8e4f2;
  --fg: #15112a;
  --muted: #5f5877;
  --line: rgba(21, 17, 42, 0.1);
  --hot-text: #c92a41;
  --good: #157a45;
  --gold-text: #8a5d00;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cut: 14px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17122f;
    --s1: #221c42;
    --s2: #1b1636;
    --s3: #2e2757;
    --fg: #eeebf8;
    --muted: #9d96b8;
    --line: rgba(238, 235, 248, 0.09);
    --hot-text: #ff6b7d;
    --good: #5fd68f;
    --gold-text: #f5c451;
  }
}
:root[data-theme="dark"] {
  --bg: #17122f;
  --s1: #221c42;
  --s2: #1b1636;
  --s3: #2e2757;
  --fg: #eeebf8;
  --muted: #9d96b8;
  --line: rgba(238, 235, 248, 0.09);
  --hot-text: #ff6b7d;
  --good: #5fd68f;
  --gold-text: #f5c451;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--text); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
.eyebrow { margin: 0; font-family: var(--display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* buttons: armour-plate corners */
.btn { --cut: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.01em; text-decoration: none; background: var(--s3); color: var(--fg); border: 0; padding: 0.95em 1.4em; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); transition: background 0.15s, transform 0.08s; }
.btn:hover { background: color-mix(in srgb, var(--s3) 80%, var(--fg)); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.btn-hot { background: var(--coral); color: #fff; }
.btn-hot:hover { background: #ff6576; }
.btn-lite { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-lite:hover { background: rgba(255, 255, 255, 0.2); }
.btn-lg { font-size: 1rem; padding: 1.1em 1.8em; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* data.js problems */
.data-warn { background: #ffe08a; color: #2a1a00; font-size: 0.92rem; padding-block: 0.8rem; position: relative; z-index: 31; }
.data-warn b { font-family: var(--display); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.data-warn ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }

/* ---------- header ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { font-family: var(--display); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand small { display: block; margin-top: 0.15rem; font-family: var(--display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em; color: var(--gold-text); line-height: 1.1; }
.nav { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; font-family: var(--display); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.01em; text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 6px; white-space: nowrap; color: color-mix(in srgb, var(--muted) 40%, var(--fg)); transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--fg); background: var(--s3); }
.nav a[aria-current="true"] { color: var(--fg); }
.nav a[aria-current="true"]::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.15rem; height: 2px; border-radius: 2px; background: var(--coral); }

/* theme switch */
.icon-btn { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: color-mix(in srgb, var(--muted) 40%, var(--fg)); }
.icon-btn:hover { background: var(--s3); color: var(--fg); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-moon { display: none; }
.icon-btn.to-dark .i-moon { display: block; }
.icon-btn.to-dark .i-sun { display: none; }

/* phone tab bar (shown under 720px) */
.tabbar { display: none; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.5rem 0.2rem 0.45rem; text-decoration: none; font-size: 0.7rem; font-weight: 700; color: var(--muted); position: relative; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="true"] { color: var(--fg); }
.tabbar a[aria-current="true"] svg { stroke: var(--coral); }
.tabbar a[aria-current="true"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--coral); }

/* back to top + toast */
.totop { --cut: 8px; position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: calc(clamp(1rem, 3vw, 1.6rem) + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border: 0; background: var(--indigo); color: #fff; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.2s, transform 0.2s, background 0.15s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--coral); }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast { position: fixed; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); z-index: 70; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 0.7rem 1.1rem; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 0.92rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: "\2713"; color: var(--good); margin-right: 0.5rem; }
.bar-end { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.admin-btn { flex: none; font-size: 0.78rem; padding: 0.7em 1.1em; }
.admin-btn.on { background: var(--gold); color: #2a1a00; }

/* admin dialogs */
.dlg { width: min(560px, calc(100vw - 32px)); max-height: min(85vh, 900px); padding: 0; border: 0; background: var(--s1); color: var(--fg); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.dlg::backdrop { background: rgba(10, 8, 24, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg form { display: flex; flex-direction: column; max-height: inherit; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--line); }
.dlg-head h3 { font-size: 1.05rem; }
.dlg-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; padding: 0.2rem 0.4rem; color: var(--muted); }
.dlg-x:hover { color: var(--fg); }
.dlg-body { padding: 1rem 1.25rem; overflow-y: auto; }
.dlg-head, .dlg-foot { flex: none; }
.dlg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.6rem; padding: 0.9rem 1.25rem 1.1rem; border-top: 1px solid var(--line); }
.dlg-msg { margin: 0 auto 0 0; font-size: 0.88rem; color: var(--hot-text); min-height: 1.2em; }
.dlg-msg.ok { color: var(--good); }
.field { display: block; font-weight: 600; font-size: 0.9rem; }
.field input { display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.8rem; font: inherit; color: var(--fg); background: var(--s2); border: 1px solid var(--line); border-radius: 6px; }
/* login card */
.dlg-login { width: min(380px, calc(100vw - 32px)); --cut: 18px; background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--coral) 22%, var(--s1)), var(--s1) 62%); }
.dlg[open] { animation: dlg-in 0.22s cubic-bezier(.2,.8,.3,1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.dlg-login form { position: relative; padding: 2rem 1.75rem 1.75rem; text-align: center; }
.dlg-login .dlg-x { position: absolute; top: 0.6rem; right: 0.7rem; }
.lg-crest { width: 84px; height: 84px; margin: 0 auto 0.9rem; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--indigo-2) 70%, transparent); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -8px var(--coral); }
.lg-crest img { width: 66px; height: 66px; object-fit: contain; }
.dlg-login h3 { font-size: 1.45rem; margin: 0.35rem 0 0.45rem; }
.lg-sub { margin: 0 0 1.4rem; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.lg-label { display: block; text-align: left; font-weight: 700; font-size: 0.8rem; margin-bottom: 0.4rem; }
.lg-pw { position: relative; }
.lg-pw input { width: 100%; padding: 0.85rem 3rem 0.85rem 0.95rem; font: 600 1rem var(--text); color: var(--fg); background: var(--s2); border: 1.5px solid var(--line); border-radius: 8px; transition: border-color 0.15s, box-shadow 0.15s; }
.lg-pw input::placeholder { color: var(--muted); font-weight: 500; }
.lg-pw input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 25%, transparent); }
.lg-pw.bad input { border-color: var(--hot-text); }
.lg-pw.bad { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.lg-eye { position: absolute; top: 50%; right: 0.4rem; transform: translateY(-50%); width: 2.3rem; height: 2.3rem; display: grid; place-items: center; background: none; border: 0; border-radius: 6px; color: var(--muted); }
.lg-eye:hover { color: var(--fg); background: var(--s3); }
.lg-eye svg { width: 20px; height: 20px; }
.lg-eye .slash { display: none; }
.lg-eye[aria-pressed="true"] .slash { display: inline; }
.lg-msg { min-height: 1.35em; margin: 0.5rem 0 0.9rem; text-align: left; font-size: 0.85rem; font-weight: 600; color: var(--hot-text); }
.lg-msg.wait { color: var(--muted); }
.lg-go { width: 100%; }

.ed-msg { flex: none; margin: 0; padding: 0.7rem 1.25rem 0; border-top: 1px solid var(--line); }
.ed-msg:empty { display: none; }
.ed-msg:not(:empty) + .dlg-foot { border-top: 0; }
.ed-reset { margin-right: auto; background: none; color: var(--hot-text); box-shadow: inset 0 0 0 1.5px currentColor; }
.ed-reset:hover { background: color-mix(in srgb, var(--coral) 12%, transparent); }
.ed-reset.armed { background: var(--coral-2); color: #fff; box-shadow: none; }
.ed-day { margin: 0 0 1.1rem; }
.ed-day h4 { font-size: 0.78rem; letter-spacing: 0.06em; margin-bottom: 0.45rem; }
.ed-day h4 small { font-family: var(--text); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 0.4rem; }
.ed-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); align-items: center; gap: 0.45rem; padding: 0.3rem 0; }
.ed-row.us { background: color-mix(in srgb, var(--coral) 9%, transparent); margin-inline: -0.5rem; padding-inline: 0.5rem; border-radius: 6px; }
.ed-team { display: flex; align-items: center; gap: 0.4rem; font-family: var(--display); font-weight: 700; font-size: 0.78rem; min-width: 0; }
.ed-team img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.ed-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-team.b { justify-content: flex-end; text-align: right; }
.ed-row input { width: 3.2rem; padding: 0.45rem 0.3rem; text-align: center; font: 700 1rem var(--text); color: var(--fg); background: var(--s2); border: 1px solid var(--line); border-radius: 6px; }
.ed-row input.bad { border-color: var(--hot-text); box-shadow: 0 0 0 1px var(--hot-text); }
.ed-row .dash { color: var(--muted); }
.ed-note { margin: 0 0 1rem; font-size: 0.86rem; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 76% 48%, rgba(255, 77, 98, 0.36), transparent 55%), radial-gradient(ellipse at 8% 100%, rgba(245, 196, 81, 0.12), transparent 45%), linear-gradient(160deg, var(--indigo), var(--indigo-2) 72%); padding-block: clamp(2.5rem, 6vw, 5rem) calc(clamp(2.5rem, 6vw, 5rem) + 5rem); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7rem; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 12%, transparent) 25%, color-mix(in srgb, var(--bg) 42%, transparent) 50%, color-mix(in srgb, var(--bg) 78%, transparent) 75%, var(--bg)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-copy { container-type: inline-size; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.7); }
.mark { font-weight: 900; font-size: clamp(1.9rem, 9.4cqi, 5.4rem); line-height: 0.95; text-transform: uppercase; margin-top: 0.9rem; letter-spacing: -0.02em; }
.mark span { display: block; }
.mark .hot { color: var(--coral); }
.chant { margin: 1.2rem 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(0.95rem, 2.6cqi, 1.2rem); color: var(--gold); letter-spacing: 0.04em; }
.intro { margin: 0.5rem 0 0; max-width: 32rem; color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

.ticket { --cut: 14px; margin-top: 2rem; max-width: 34rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "face btn" "when btn" "cd cd"; align-items: center; gap: 0.4rem 1.2rem; padding: 1rem 1.2rem 1.1rem; background: rgba(255, 255, 255, 0.08); box-shadow: inset 3px 0 0 var(--coral); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.ticket:empty { display: none; }
.tk-face { grid-area: face; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tk-face .eyebrow { width: 100%; }
.tk-face img { width: 36px; height: 36px; object-fit: contain; }
.tk-face b { font-family: var(--display); font-weight: 900; font-size: 1.25rem; }
.tk-face .v { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; font-weight: 700; }
.tk-when { grid-area: when; margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.ticket .btn { grid-area: btn; }
.ticket .cd { grid-area: cd; margin-top: 0.5rem; }
.ticket .cd div { background: rgba(255, 255, 255, 0.1); }
.ticket .cd span { color: rgba(255, 255, 255, 0.65); }
.ticket .cd-msg { grid-area: cd; color: rgba(255, 255, 255, 0.75); }
.tk-done { grid-column: 1 / -1; margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.3rem; }

.emblem { position: relative; width: min(112%, 640px); aspect-ratio: 600 / 500; justify-self: center; }
.emblem::before { content: ""; position: absolute; left: 50%; top: 58%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 77, 98, 0.5), rgba(255, 77, 98, 0) 68%); }
.emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.emblem-crest { position: absolute; left: 50%; top: 58%; width: 50%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55)); animation: hover 6s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -53%); } }
.crown { filter: drop-shadow(0 0 22px rgba(245, 196, 81, 0.28)); }
.crown-body, .crown-band { stroke: #f5c451; stroke-width: 2.5; stroke-linejoin: round; }
.crown-line { fill: none; stroke: rgba(245, 196, 81, 0.4); stroke-width: 1.5; stroke-linejoin: round; }
.crown-shine { fill: none; stroke-width: 3; stroke-linejoin: round; }
.crown-orbs { stroke: #fff4d1; stroke-width: 1.5; }
.crown-gems { stroke: #f5c451; stroke-width: 1.5; }
.crown-gems > * { animation: glint 3.5s ease-in-out infinite; }
.crown-gems > :nth-child(2n) { animation-delay: -1.75s; }
@keyframes glint { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }

/* countdown */
.cd { display: flex; gap: 6px; }
.cd div { --cut: 7px; flex: 1; min-width: 0; text-align: center; background: var(--s3); padding: 0.5rem 0.3rem 0.4rem; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.cd b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cd-msg { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec-head { display: grid; gap: 0.2rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.sec-head h2 { font-weight: 900; font-size: clamp(2rem, 5.5vw, 3.8rem); }
.sec-head .lede { margin: 0.5rem 0 0; max-width: 36rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- squad ---------- */
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead { --cut: 18px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--s1); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); overflow: hidden; }
.lead-img { position: relative; aspect-ratio: 3 / 4; background: var(--indigo); overflow: hidden; }
.lead-info { padding: clamp(1rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem; position: relative; }
.lead-info .no { position: absolute; top: clamp(1rem, 2.5vw, 1.6rem); right: clamp(1rem, 2.5vw, 1.6rem); font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--s3); line-height: 1; }
.lead-info .role { margin: 0; font-family: var(--display); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hot-text); }
.lead-info .nm { font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.6rem); text-transform: uppercase; overflow-wrap: anywhere; }
.lead-info .ttl { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(0.95rem, 1.8vw, 1.15rem); color: var(--gold-text); }

.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.mate { margin: 0; }
.mate-img { --cut: 16px; position: relative; aspect-ratio: 4 / 5; background: var(--indigo); overflow: hidden; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.mate-img img, .lead-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.6s cubic-bezier(.2,.7,.3,1); }
.mate:hover .mate-img img, .lead:hover .lead-img img { transform: scale(1.05); }
.mate figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.7rem; padding: 0.8rem 0.2rem 0; align-items: baseline; }
.mate .no { grid-row: 1 / 3; font-family: var(--display); font-weight: 800; font-size: 0.8rem; color: var(--hot-text); }
.mate .nm { font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.3rem); text-transform: uppercase; line-height: 1.15; overflow-wrap: anywhere; }
.mate .ttl { margin-top: 0.15rem; font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.01em; color: var(--gold-text); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--indigo), var(--indigo-2)); }
.ph b { font-family: var(--display); font-weight: 900; font-size: 4rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- season ---------- */
.strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 0.8rem; }
.pred-summary { margin: 0; color: var(--muted); font-size: 0.95rem; }
.pred-summary b { font-family: var(--display); color: var(--fg); }
.strip { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-top: 4px; }
.strip::-webkit-scrollbar { display: none; }
.md { --cut: 12px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.8rem 0.4rem 0.7rem; border: 0; background: var(--s1); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); transition: background 0.15s, transform 0.15s; }
.md:hover { background: var(--s3); }
.md:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.md .d { font-family: var(--display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.md img { width: 42px; height: 42px; object-fit: contain; }
.md .c { font-family: var(--display); font-weight: 800; font-size: 0.9rem; }
.md .r { font-family: var(--display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; padding: 0.2rem 0.5rem; background: var(--s3); color: var(--muted); white-space: nowrap; }
.md.W .r { background: var(--gold); color: #2a1a00; }
.md.L .r { background: var(--coral); color: #fff; }
.md.D .r { background: var(--steel); color: #15112a; }
.md.next .r { background: var(--fg); color: var(--bg); }
.md[aria-selected="true"] { background: var(--indigo); color: #fff; transform: translateY(-3px); }
.md[aria-selected="true"] .d { color: rgba(255, 255, 255, 0.7); }
.md[aria-selected="true"]:not(.W):not(.L):not(.D):not(.next) .r { background: rgba(255, 255, 255, 0.14); color: #fff; }

.season-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.panel { --cut: 20px; background: var(--s1); padding: clamp(1.1rem, 3vw, 2rem); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); display: grid; gap: 1.5rem; }
.p-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.p-head .when { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { --cut: 6px; font-family: var(--display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.45em 0.9em; background: var(--s3); color: var(--muted); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.tag.W { background: var(--gold); color: #2a1a00; }
.tag.L { background: var(--coral); color: #fff; }
.tag.D { background: var(--steel); color: #15112a; }
.tag.next { background: var(--fg); color: var(--bg); }
.tag.derby { background: transparent; color: var(--hot-text); box-shadow: inset 0 0 0 1.5px currentColor; }

.faceoff { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; text-align: center; }
.faceoff .side { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 0; }
.faceoff .side img { width: clamp(64px, 12vw, 110px); height: clamp(64px, 12vw, 110px); object-fit: contain; }
.faceoff .side b { font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.faceoff .side span { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.faceoff .mid { min-width: 7rem; }
.faceoff .score { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.faceoff .score i { font-style: normal; color: var(--muted); margin: 0 0.1em; }
.faceoff .vs { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--muted); }
.panel-cd { width: 100%; max-width: 380px; justify-self: center; margin-top: -0.6rem; }

.call { --cut: 12px; background: var(--s2); padding: 1rem 1.1rem; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); display: grid; gap: 0.7rem; }
.picks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; max-width: 460px; width: 100%; justify-self: center; }
.pick { --cut: 7px; border: 0; padding: 0.7rem 0; background: var(--s3); color: var(--fg); font-family: var(--display); font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; white-space: nowrap; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); transition: background 0.12s, color 0.12s; }
.pick i { font-style: normal; opacity: 0.55; margin: 0 0.05em; }
@media (max-width: 420px) {
  .picks { gap: 3px; }
  .pick { --cut: 5px; font-size: 0.78rem; padding: 0.8rem 0; }
  .pick i { margin: 0; }
  .call-line { gap: 0.45rem; }
  .cl-score { font-size: 2rem; }
}
.pick:hover { background: color-mix(in srgb, var(--s3) 75%, var(--fg)); }
.pick:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.pick.W[aria-pressed="true"] { background: var(--gold); color: #2a1a00; }
.pick.D[aria-pressed="true"] { background: var(--steel); color: #15112a; }
.pick.L[aria-pressed="true"] { background: var(--coral); color: #fff; }
.call-line.empty .cl-score { color: var(--muted); }
.cl-score.pop { animation: pop 0.25s ease-out; }
@keyframes pop { 40% { transform: scale(1.18); } }
.call-verdict { margin: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.call-verdict.W { color: var(--gold-text); }
.call-verdict.L { color: var(--hot-text); }
.call-verdict.D { color: var(--fg); }
.lock-tag { color: var(--hot-text); }
.call-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.call-line { display: grid; grid-template-columns: 36px auto auto auto 36px; justify-content: center; align-items: center; gap: 0.7rem; }
.call-line img { width: 36px; height: 36px; object-fit: contain; }
.call-line b { font-family: var(--display); font-weight: 800; font-size: 0.95rem; }
.cl-score { display: inline-block; white-space: nowrap; font-family: var(--display); font-weight: 900; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; padding: 0 0.3rem; }
.cl-score i { font-style: normal; color: var(--muted); margin: 0 0.12em; }
.call-line.sealed .cl-score { color: var(--coral); }
.call-line.stamped { animation: stamp-in 0.45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes stamp-in { 0% { transform: scale(1.35); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.call-award { margin: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.call-award.hit { color: var(--good); }
.call-award.near { color: var(--gold-text); }
.call-note { margin: 0; text-align: center; color: var(--muted); font-size: 0.92rem; }
.call-note:empty { display: none; }
.around { display: grid; gap: 0.3rem; }
.ar { display: grid; grid-template-columns: 28px 3.4rem 3.4rem 3.4rem 28px; justify-content: center; align-items: center; gap: 0.6rem; padding: 0.45rem 0.2rem; border-top: 1px solid var(--line); }
.ar img { width: 28px; height: 28px; object-fit: contain; }
.ar b { font-family: var(--display); font-weight: 800; font-size: 0.85rem; }
.ar b:first-of-type { text-align: right; }
.ar .m { font-family: var(--display); font-weight: 800; font-size: 0.85rem; min-width: 3.2rem; text-align: center; color: var(--muted); }
.ar .m.done { color: var(--fg); }

.tbl { --cut: 20px; background: var(--s1); padding: clamp(1.1rem, 3vw, 1.6rem); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.tbl h3 { font-weight: 800; font-size: 1.2rem; }
.tbl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--s2); border-radius: 8px; }
.seg button { border: 0; background: none; padding: 0.4rem 0.8rem; border-radius: 6px; font-family: var(--display); font-weight: 700; font-size: 0.74rem; color: var(--muted); }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--s1); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.tbl-scroll { overflow-x: auto; margin-top: 0.9rem; }
.pts-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pts-table th, .pts-table td { padding: 0.55rem 0.4rem; text-align: center; white-space: nowrap; }
.pts-table th { font-family: var(--display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pts-table td { border-top: 1px solid var(--line); font-size: 0.95rem; }
.pts-table .tm { text-align: left; }
.pts-table td.tm { display: flex; align-items: center; gap: 0.55rem; }
.pts-table td.tm img { width: 26px; height: 26px; object-fit: contain; }
.pts-table td.tm b { font-family: var(--display); font-weight: 800; font-size: 0.85rem; }
.pts-table td.rk { font-family: var(--display); font-weight: 700; font-size: 0.8rem; color: var(--muted); }
.pts-table td.pts { font-family: var(--display); font-weight: 900; }
.pts-table tr.us td { background: color-mix(in srgb, var(--coral) 14%, transparent); }
.pts-table tr.us td.rk { color: var(--hot-text); }
.fx { display: grid; gap: 0.9rem; margin-top: 0.9rem; }
.fx[hidden] { display: none; }
#hub:focus:not(:focus-visible) { outline: none; }
.fx-h { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin: 0 0 0.35rem; font-size: 0.85rem; }
.fx-h b { font-family: var(--display); font-weight: 800; }
.fx-h span { color: var(--muted); }
.fx-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.fx-g { display: grid; grid-template-columns: 20px auto auto auto 20px; justify-content: center; align-items: center; gap: 0.35rem; padding: 0.35rem 0.3rem; background: color-mix(in srgb, var(--fg) 5%, transparent); font-family: var(--display); font-weight: 700; font-size: 0.72rem; }
.fx-g img { width: 20px; height: 20px; object-fit: contain; }
.fx-g i { font-style: normal; font-family: var(--text); font-weight: 600; color: var(--muted); }
.fx-g.us { background: color-mix(in srgb, var(--coral) 14%, transparent); }
.table-note { margin: 0.8rem 0 0; font-size: 0.9rem; color: var(--muted); }
.table-note:empty { display: none; }

.road { margin-top: clamp(2.5rem, 6vw, 4rem); }
.road h3 { font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.road-flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1.2fr); align-items: center; gap: 8px; margin-top: 1.2rem; }
.road-col { display: grid; gap: 8px; }
.stage-box { --cut: 12px; background: var(--s1); padding: 1rem 1.1rem; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.stage-box h4 { font-weight: 800; font-size: 0.95rem; }
.stage-box p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.stage-box.final { background: linear-gradient(160deg, var(--indigo), var(--indigo-2)); color: #fff; padding-block: 1.5rem; }
.stage-box.final h4 { color: var(--gold); font-size: 1.2rem; }
.stage-box.final p { color: rgba(255, 255, 255, 0.8); }
.road-note { margin: 0.4rem 0 0; color: var(--muted); }
.road-note b { color: var(--fg); }
.pm { display: grid; gap: 4px; margin-top: 0.7rem; }
.pm-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 0.55rem; padding: 0.35rem 0.5rem; background: color-mix(in srgb, var(--fg) 5%, transparent); }
.pm-row img { width: 24px; height: 24px; object-fit: contain; }
.pm-row b { font-family: var(--display); font-weight: 800; font-size: 0.85rem; }
.pm-row b small { font-family: var(--text); font-weight: 600; font-size: 0.72rem; color: var(--muted); margin-left: 0.35rem; }
.pm-row .sc { font-family: var(--display); font-weight: 900; font-size: 1rem; }
.pm-row.lose { opacity: 0.5; }
.pm-row.us { box-shadow: inset 3px 0 0 var(--coral); }
.pm-row.tbd { grid-template-columns: minmax(0, 1fr); color: var(--muted); font-size: 0.85rem; }
.stage-box.final .pm-row { background: rgba(255, 255, 255, 0.08); }
.stage-box.final .pm-row.tbd, .stage-box.final .pm-row b small { color: rgba(255, 255, 255, 0.7); }
.champ { display: flex; align-items: center; gap: 0.6rem; margin: 0.9rem 0 0; font-family: var(--display); font-weight: 900; font-size: 1.05rem; color: var(--gold); }
.champ img { width: 36px; height: 36px; object-fit: contain; }
.arrow { height: 2px; background: var(--muted); opacity: 0.5; position: relative; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--muted); border-right: 0; }

/* ---------- footer ---------- */
.foot { padding-block: 2.4rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.foot .who { display: flex; align-items: center; gap: 0.8rem; }
.foot .who img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.foot p { margin: 0; max-width: 40rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .emblem { order: -1; width: min(86%, 440px); }
  .season-grid { grid-template-columns: minmax(0, 1fr); }
  .road-flow { grid-template-columns: minmax(0, 1fr); }
  .arrow { width: 2px; height: 22px; justify-self: center; }
  .arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 7px solid var(--muted); border-bottom: 0; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .totop { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hero { padding-block: 1.5rem 6.5rem; }
  .hero::after { height: 5.5rem; }
  .emblem { width: min(56%, 240px); margin-bottom: -0.5rem; }
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy .intro, .hero-copy .cta { order: 2; }
  .ticket { order: 1; margin-top: 1.3rem; }
  .leaders { grid-template-columns: minmax(0, 1fr); }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .hero-copy .intro { display: none; }
  .ticket { grid-template-columns: minmax(0, 1fr); grid-template-areas: "face" "when" "cd" "btn"; }
  .ticket .btn { justify-self: start; margin-top: 0.4rem; }
  .faceoff { gap: 0.4rem; }
  .faceoff .mid { min-width: 0; }
  .nav a { padding: 0.55rem 0.5rem; }
  #editDlg .dlg-foot [type=submit] { order: -1; flex: 1 1 100%; }
  #editDlg .dlg-foot .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
