:root {
  --bg: #120804;
  --fg: #f6e7c8;
  --muted: #c4a574;
  --primary: #e8a317;
  --ink: #1a0c04;
  --border: #5c3a18;
  --surface: #1c1008;
  --raised: #2a160c;
  --ok: #86b56a;
  --bad: #c45c4a;
  --ember: #c45c2a;
  --cut: 9px;
  --safe-x: max(12px, env(safe-area-inset-left), env(safe-area-inset-right));
  --font-ui: Cinzel, Palatino, serif;
  --font-night: "Cormorant Garamond", Palatino, serif;
  --font-body: "Source Sans 3", Figtree, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; overflow-x: clip; }
html, body { margin: 0; min-height: 100%; min-height: 100dvh; color: var(--fg); font-family: var(--font-body); }
html {
  background-color: var(--bg);
  background-image: url("/bracket/flames.jpg"), url("/assets/tourney-flames.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: scroll, scroll;
  background-repeat: no-repeat, no-repeat;
}
body { background: transparent; padding-top: var(--site-head-h); -webkit-tap-highlight-color: color-mix(in srgb, var(--primary) 28%, transparent); }
::selection { background: var(--primary); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, .btn, .copy, .mini { touch-action: manipulation; }
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(20,10,4,.92), transparent 58%),
    linear-gradient(180deg, rgba(20,10,4,.42) 0%, rgba(20,10,4,.7) 48%, rgba(12,6,2,.9) 100%);
}
.embers {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 78%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 22%),
    radial-gradient(circle at 86% 68%, color-mix(in srgb, var(--ember) 20%, transparent), transparent 26%),
    radial-gradient(circle at 48% 100%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 42%);
  animation: ember-breathe 9s ease-in-out infinite alternate;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.7'/></svg>");
}
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--primary) 45%, transparent);
}
.head-bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding-top: env(safe-area-inset-top);
  border-bottom: 0;
  background: transparent;
  transition: min-height .22s ease;
}
.site-head.is-compact .top,
html.compact-nav .top { min-height: 52px; }
.site-head.is-compact .brand img,
html.compact-nav .brand img { width: 32px; height: 32px; }
.site-head.is-compact .brand small,
html.compact-nav .brand small { display: none; }
.site-head.is-compact .brand strong,
html.compact-nav .brand strong { font-size: 12px; }
.site-head.is-compact .top nav a,
.site-head.is-compact .tips-toggle,
.site-head.is-compact .host-toggle,
html.compact-nav .top nav a,
html.compact-nav .tips-toggle { min-height: 34px; padding: 0 12px; }
html.compact-nav .nav-toggle { width: 36px; height: 36px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  object-fit: cover;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 55%, transparent), 0 0 18px color-mix(in srgb, var(--primary) 22%, transparent);
}
.brand small, .brand strong { display: block; font-family: Cinzel, serif; text-transform: uppercase; }
.brand small { font-size: 10px; letter-spacing: .32em; color: var(--primary); }
.brand strong { font-size: 14px; letter-spacing: .16em; }
.top nav { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.top nav a, .tips-toggle, .host-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.top nav > a:not(.host):not(.discord-login),
.tips-toggle,
.host-toggle {
  color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: none;
  cursor: pointer;
}
.top nav > a:not(.host):not(.discord-login):hover,
.tips-toggle:hover,
.host-toggle:hover {
  color: var(--fg);
  border-color: var(--primary);
  box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 22%, transparent);
}
.tips-toggle { font: inherit; }
.tips-toggle.on { background: var(--primary); color: var(--ink); border-color: var(--primary); box-shadow: none; }
.host {
  border-radius: 2px;
  background: linear-gradient(180deg, #f0c45a, var(--primary) 46%, #c47a12);
  color: var(--ink);
  font-weight: 700;
  padding: 0 16px !important;
  border: 1px solid var(--primary);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 35%, var(--primary)),
    0 8px 16px rgba(0,0,0,.32),
    0 0 22px color-mix(in srgb, var(--primary) 28%, transparent);
}
.host:hover { filter: brightness(1.06); box-shadow: 0 0 28px color-mix(in srgb, var(--primary) 42%, transparent); }
main { position: relative; z-index: 4; width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 max(64px, calc(40px + env(safe-area-inset-bottom))); min-width: 0; }
body.has-tree main { width: min(1180px, calc(100% - 24px)); }
@media (min-width: 960px) {
  body.has-arena-chat:not(.chat-min) {
    --chat-rail: 320px;
    padding-right: var(--chat-rail);
  }
}
html.has-tree, body.has-tree { overflow-x: hidden; width: 100%; max-width: 100%; }
#tip-bubble { position: fixed; z-index: 50; max-width: min(320px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 2px; background: #2a160c; color: var(--fg); border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(232,163,23,.15); font-size: .88rem; line-height: 1.45; pointer-events: none; }
#tip-bubble::before { content: ""; position: absolute; top: -6px; left: 16px; width: 10px; height: 10px; background: #2a160c; border-left: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border)); border-top: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border)); transform: rotate(45deg); }
body.tips-on [data-tip] { outline: 1px dashed color-mix(in srgb, var(--primary) 0%, transparent); }
body.tips-on [data-tip]:hover, body.tips-on [data-tip].tip-active { outline-offset: 3px; }
h1, h2 { font-family: var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 18px 0 32px;
}
.hero-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
}
.hero-crest {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  animation: crest-glow 3.8s ease-in-out infinite;
}
.hero-crest::before,
.hero-crest::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  pointer-events: none;
}
.hero-crest::after { inset: -4px; border-color: color-mix(in srgb, var(--primary) 75%, transparent); }
.hero-crest img {
  width: 96px;
  height: 96px;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  object-fit: cover;
  box-shadow: 0 0 28px color-mix(in srgb, var(--primary) 28%, transparent);
}
.hero-kicker {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--primary);
  text-shadow: 0 0 16px color-mix(in srgb, var(--primary) 40%, transparent);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-night);
  font-size: clamp(1.85rem, 5.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: .95;
  text-transform: none;
  text-shadow: 0 0 28px color-mix(in srgb, var(--primary) 35%, transparent);
}
.hero-copy { min-width: 0; text-align: left; }
.hero-lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
  text-align: center;
}
.nightboard {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  width: min(760px, 100%);
  margin: 4px auto 10px;
  padding: 22px 24px 22px 26px;
  overflow: hidden;
  color: inherit;
  background:
    radial-gradient(90% 140% at 0% 50%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--raised) 88%, #000), color-mix(in srgb, var(--surface) 94%, #000));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 50%, var(--border)),
    0 18px 40px rgba(0,0,0,.45),
    0 0 48px color-mix(in srgb, var(--primary) 16%, transparent);
}
.nightboard::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(var(--primary), var(--primary)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 100% / 1px 14px no-repeat;
  opacity: .85;
}
.nightboard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(110deg, transparent 44%, color-mix(in srgb, var(--primary) 16%, #fff) 50%, transparent 56%);
  transform: translateX(-130%);
  opacity: .35;
  animation: sheen 7.5s ease-in-out 1.6s infinite;
}
.nightboard-copy,
.nightboard-cta { position: relative; z-index: 1; }
.nightboard-copy { min-width: min(100%, 16rem); flex: 1; }
.nightboard-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--primary);
}
.nightboard-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: live-breathe 1.8s ease-in-out infinite;
}
.nightboard-title {
  margin: 0 0 10px;
  font-family: var(--font-night);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.05;
  text-transform: none;
  text-shadow: 0 0 22px color-mix(in srgb, var(--primary) 30%, transparent);
}
.nightboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.nightboard-meta > span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  background: color-mix(in srgb, var(--raised) 70%, transparent);
  color: var(--muted);
  font-size: .88rem;
}
.night-timer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  position: relative;
  z-index: 1;
}
.night-timer > span {
  display: grid;
  justify-items: center;
  min-width: 3.15rem;
  padding: 8px 6px 6px;
  background: color-mix(in srgb, var(--raised) 80%, #000);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 14%, transparent);
}
.night-timer b {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: .08em;
  line-height: 1;
  text-shadow: 0 0 12px color-mix(in srgb, var(--primary) 45%, transparent);
}
.night-timer small {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-foot {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 max(28px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: .85rem;
}
.site-foot .mark { color: var(--fg); letter-spacing: .03em; }
.site-foot sup { font-size: .72em; font-weight: 700; margin-left: 2px; color: var(--primary); }
.nightboard-clock {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  color: var(--primary) !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 18%, transparent);
}
.nightboard-cta { flex: 0 0 auto; min-width: 9.5rem; }
.nightboard.is-live {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ok) 50%, var(--border)),
    0 18px 40px rgba(0,0,0,.45),
    0 0 42px color-mix(in srgb, var(--ok) 18%, transparent);
}
.nightboard.is-live .nightboard-kicker { color: var(--ok); }
.nightboard.is-live .nightboard-kicker i {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.nightboard:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 70%, var(--border)),
    0 18px 40px rgba(0,0,0,.45),
    0 0 56px color-mix(in srgb, var(--primary) 24%, transparent);
}
.ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(240px, 80%);
  margin: 14px auto 0;
}
.hero-copy .ornament { margin-left: auto; margin-right: auto; }
.ornament.tight { width: min(180px, 70%); margin: 10px 0 14px; }
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--primary));
}
.ornament::after { background: linear-gradient(90deg, var(--primary), transparent); }
.ornament span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  rotate: 0;
  background: var(--primary);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 0 0 12px var(--primary);
}
.grid { display: grid; gap: 12px; }
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 9%, transparent), transparent 34%),
    color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: 3px;
  padding: 16px 16px 16px 20px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent),
    0 14px 28px rgba(0,0,0,.32);
}
.grid.cards > .card,
.grid.cards > a.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card h3 { margin: 0 0 8px; font-family: Cinzel, serif; min-width: 0; overflow-wrap: anywhere; }
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 8px;
}
.card-top h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.12rem);
  line-height: 1.28;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}
.prize-line {
  margin: 8px 0 0;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.muted { color: var(--muted); font-size: .92rem; }
.badge { display: inline-flex; border-radius: 2px; padding: 3px 9px; font-family: Cinzel, serif; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; background: var(--raised); color: var(--muted); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent); }
.badge.live { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); box-shadow: 0 0 12px color-mix(in srgb, var(--ok) 28%, transparent); }
.badge.pending { background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); }
.badge.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.pay { display: grid; gap: 10px; max-width: 520px; margin: 0 0 18px; }
.pay article { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--border) 45%, transparent); border-radius: 3px; padding: 12px 14px; }
.pay code { display: block; margin-top: 8px; font-size: .82rem; word-break: break-all; color: var(--fg); }
.pay-watch { display: grid; gap: 10px; max-width: 520px; margin: 0 0 18px; padding: 14px 16px; border-radius: 3px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--border) 45%, transparent); }
.pay-watch > p { margin: 0; }
.pay-watch.is-seen { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.pay-watch.is-confirmed { border-color: color-mix(in srgb, #6fdf8a 50%, var(--border)); }
.pay-watch .btn:disabled { opacity: .55; cursor: wait; }
.k9swap {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  color: inherit;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, #2ad4ff 16%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface) 90%, #041018);
  border: 1px solid color-mix(in srgb, #2ad4ff 38%, var(--border));
  box-shadow: 0 0 28px color-mix(in srgb, #2ad4ff 10%, transparent);
}
.k9swap header { display: flex; align-items: center; gap: 12px; }
.k9swap-title { flex: 1; min-width: 0; }
.k9swap-otf { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.k9swap-credit {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
.k9swap-mark {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #000;
  box-shadow: 0 0 0 1px color-mix(in srgb, #2ad4ff 45%, transparent), 0 0 16px color-mix(in srgb, #2ad4ff 22%, transparent);
}
.k9swap-kicker {
  display: block;
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #2ad4ff;
}
.k9swap strong {
  display: block;
  font-family: Cinzel, serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.k9swap p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.k9swap-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: color-mix(in srgb, #041018 55%, var(--raised));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #2ad4ff 18%, var(--border));
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg);
}
.k9swap-preview span:first-child,
.k9swap-preview span:last-child {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--raised) 80%, #000);
}
.k9swap-arrows { color: #2ad4ff; font-size: 1.1rem; letter-spacing: 0; }
.k9swap-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  background: #2ad4ff;
  color: #041018;
  font-weight: 700;
  letter-spacing: .04em;
}
.k9swap:hover { border-color: #2ad4ff; }
.k9swap:hover .k9swap-cta { filter: brightness(1.08); }
.k9swap:focus-visible {
  outline: 2px solid #2ad4ff;
  outline-offset: 3px;
}
.ok a, .quote a { color: var(--primary); text-decoration: underline; }
.copy { min-height: 32px; border: 0; border-radius: 6px; padding: 0 10px; background: var(--raised); color: var(--fg); cursor: pointer; font: inherit; }
.row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0c45a, var(--primary) 46%, #c47a12);
  color: var(--ink);
  font-family: Cinzel, serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 35%, var(--primary)),
    inset 0 -2px 0 rgba(26,12,4,.28),
    0 8px 16px rgba(0,0,0,.32),
    0 0 18px color-mix(in srgb, var(--primary) 22%, transparent);
}
.btn:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 35%, var(--primary)),
    inset 0 -2px 0 rgba(26,12,4,.28),
    0 8px 16px rgba(0,0,0,.32),
    0 0 28px color-mix(in srgb, var(--primary) 40%, transparent);
}
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--border); filter: none; }
label, .lbl { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { width: 100%; min-height: 44px; border-radius: 2px; border: 1px solid var(--border); background: var(--raised); color: var(--fg); padding: 8px 12px; font: inherit; }
input[type="checkbox"], input[type="radio"] { flex: 0 0 auto; width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--primary); }
textarea { min-height: 90px; resize: vertical; }
.stack { display: grid; gap: 14px; max-width: 520px; }
.quote { margin: 0; padding: 12px 14px; border-radius: 3px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); line-height: 1.45; }
.err { color: var(--bad); }
.ok { color: var(--ok); }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent); }
.match { display: grid; gap: 6px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.tabs button { min-height: 40px; border: 0; border-radius: 2px; background: var(--raised); color: var(--muted); cursor: pointer; font: inherit; padding: 0 12px; }
.tabs button.on { background: var(--primary); color: var(--ink); font-weight: 700; }
.stack.wide { max-width: 720px; }
.lock-bar { display: grid; gap: 14px; max-width: 720px; padding: 18px; border-radius: 3px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--border) 45%, transparent); }
.lock-bar strong { font-family: Cinzel, serif; letter-spacing: .08em; text-transform: uppercase; }
.checklist { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--fg); }
.round-rules { display: grid; gap: 8px; padding-top: 4px; }
.rule-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--fg); }
.rule-row select { width: auto; min-width: 140px; }
.row.wrap { flex-wrap: wrap; justify-content: flex-start; }
.bracket-section { margin: 18px 0 40px; min-width: 0; max-width: 100%; }
.bracket-section > h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 13px; letter-spacing: .22em; color: var(--primary); }
.title-section {
  padding: 14px 16px 18px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
}
.title-section > h2 > small { letter-spacing: .06em; text-transform: none; color: var(--ink-dim, inherit); opacity: .8; }
.title-section > p { margin: 0 0 12px; }
.title-section .grid.cards { max-width: 420px; }
.bracket-stage {
  --slot-h: 70px;
  --gutter: 12px;
  --card-w: 216px;
  --final-w: 236px;
  --line: 3px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: min(78dvh, 920px);
  margin: 0 0 18px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 34%, var(--border)),
    0 16px 36px rgba(0, 0, 0, .32);
}
.bracket-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  background: color-mix(in srgb, var(--raised) 74%, transparent);
}
.bracket-stage-hint {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.bracket-stage-acts { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; }
.bracket-stage-acts .mini { min-width: 40px; }
.bracket-stage-acts .mini[data-bracket-fs] { min-width: 0; padding: 0 10px; }
.bracket-display { min-width: 0; }
.bracket-display-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--raised) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
}
.bracket-display-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bracket-display-copy img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  flex: 0 0 auto;
}
.bracket-display-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.bracket-display-copy strong {
  display: block;
  font-family: Cinzel, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
}
html.bracket-fs, body.bracket-fs { overflow: hidden; height: 100%; padding-top: 0; }
body.bracket-fs .site-head,
body.bracket-fs .top,
body.bracket-fs .site-foot,
body.bracket-fs .kick-stream,
body.bracket-fs .arena-chat,
body.bracket-fs .chat-fab,
body.bracket-fs .chat-backdrop,
body.bracket-fs .arena-nav,
body.bracket-fs .arena-head,
body.bracket-fs .kick-replay,
body.bracket-fs .podium,
body.bracket-fs .host-panel,
body.bracket-fs .host-hint,
body.bracket-fs .bracket-toolbar,
body.bracket-fs .payouts,
body.bracket-fs .arena-shell > div > .muted,
body.bracket-fs .organizer,
body.bracket-fs #tip-bubble { display: none !important; }
body.bracket-fs main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.bracket-fs .arena-shell { display: block; }
body.bracket-fs .bracket-display {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(18, 8, 4, .78), rgba(12, 6, 2, .88)),
    color-mix(in srgb, var(--bg) 92%, #000);
  overflow: auto;
}
body.bracket-fs .bracket-display-bar {
  display: flex;
  margin: 0;
  padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  border-radius: 0;
}
body.bracket-fs .bracket-section { margin: 0; }
body.bracket-fs .bracket-section > h2 { margin: 0; padding: 6px 10px; }
body.bracket-fs .bracket-stage {
  --slot-h: 64px;
  --gutter: 10px;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border-radius: 0;
}
body.bracket-fs .bracket-section .bracket-stage {
  flex: 0 1 auto;
  min-height: 120px;
  max-height: 22dvh;
}
body.bracket-fs .bracket-tree.slots-lg { --slot-h: 56px; --gutter: 8px; }
body.bracket-fs .bracket-tree.slots-xl { --slot-h: 46px; --gutter: 8px; }
body.bracket-fs .bracket-stage-bar { padding: 4px 8px; }
body.bracket-fs .bracket-port { min-height: 240px; padding: 6px; }
body.bracket-fs .table-link,
body.bracket-fs .match-card .mini,
body.bracket-fs .match-card.host-edit .slot-edit { display: none !important; }
body.bracket-fs .match-card.host-edit { width: var(--card-w); overflow: hidden; }
body.bracket-fs .bracket-slot:has(.host-edit) {
  min-height: var(--slot-h);
  align-items: center;
  padding-top: 2px;
  padding-bottom: 2px;
}
body.bracket-fs .scorecard-overlay { z-index: 90; }
html:fullscreen,
html:-webkit-full-screen {
  background: var(--bg);
}
.bracket-port {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 168px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: none;
  cursor: grab;
  padding: 8px 6px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--primary) var(--raised);
  scrollbar-width: thin;
}
.bracket-port.is-panning { cursor: grabbing; user-select: none; }
.bracket-sizer { position: relative; width: max-content; margin-inline: auto; }
.bracket-board { overflow: visible; padding: 0; }
.bracket-tree {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-height: calc(var(--slots, 2) * var(--slot-h));
  transform-origin: 0 0;
}
.bracket-tree.slots-lg { --slot-h: 60px; --gutter: 10px; }
.bracket-tree.slots-xl { --slot-h: 50px; --gutter: 8px; }
.bracket-round { display: flex; flex-direction: column; min-width: calc(var(--card-w) + var(--gutter) * 2); }
.bracket-round.is-final { min-width: calc(var(--final-w) + var(--gutter) * 2); }
.bracket-round > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 var(--gutter) 6px;
  padding: 4px 8px;
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 22%, transparent), color-mix(in srgb, var(--raised) 70%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 50%, var(--border));
}
.bracket-round.is-final > header {
  color: var(--ink);
  background: linear-gradient(180deg, #f0c45a, var(--primary) 55%, #c47a12);
  box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 28%, transparent);
  font-weight: 700;
}
.bracket-round.is-final > header small,
.bracket-round.is-final .round-tag { color: var(--ink); background: color-mix(in srgb, var(--ink) 16%, transparent); }
.bracket-round > header small { font-family: Figtree, sans-serif; letter-spacing: .12em; color: var(--muted); }
.bracket-slots { display: flex; flex-direction: column; flex: 1; }
.bracket-slot { position: relative; flex: 1; display: flex; align-items: center; min-height: var(--slot-h); padding: 2px var(--gutter); }
.bracket-round:first-child .bracket-slot { padding-left: 4px; }
.bracket-round.feed-end .bracket-slot { padding-right: 4px; }
.bracket-slot .in-line, .bracket-slot .out-h, .bracket-slot .out-v { position: absolute; background: linear-gradient(90deg, #c47a12, var(--primary)); box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 55%, transparent); pointer-events: none; }
.bracket-slot .in-line { left: 0; top: 50%; width: var(--gutter); height: var(--line); }
.bracket-slot .out-h { right: 0; top: 50%; width: var(--gutter); height: var(--line); }
.bracket-slot .out-h::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(50%, -50%) rotate(45deg);
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
.bracket-slot .out-v { right: 0; width: var(--line); background: var(--primary); }
.bracket-round:first-child .in-line { display: none; }
.bracket-round.feed-end .out-h, .bracket-round.feed-end .out-v { display: none; }
.bracket-round.feed-line .out-v { display: none; }
.bracket-round.feed-pair .bracket-slot:nth-child(odd) .out-v { top: 50%; height: 50%; }
.bracket-round.feed-pair .bracket-slot:nth-child(even) .out-v { top: 0; height: 50%; }
.match-card { position: relative; display: grid; width: var(--card-w, 216px); padding: 0; overflow: hidden; border: 0; border-radius: 2px; background:
  linear-gradient(180deg, color-mix(in srgb, var(--primary) 18%, transparent), color-mix(in srgb, var(--raised) 70%, #1a1008));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 70%, var(--border)), inset 0 0 0 3px color-mix(in srgb, var(--ink) 40%, transparent), 0 8px 18px rgba(0,0,0,.28);
  color: inherit; font: inherit; text-align: left; cursor: default;
}
.match-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  background:
    linear-gradient(var(--primary), var(--primary)) 0 0 / 8px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 0 / 1px 8px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 0 / 8px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 0 / 1px 8px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 8px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 1px 8px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 100% / 8px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 100% / 1px 8px no-repeat;
  opacity: .55;
}
.match-card.ready { cursor: default; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, var(--border)), 0 0 16px color-mix(in srgb, var(--primary) 18%, transparent); }
.match-card.ready:hover { box-shadow: inset 0 0 0 1px var(--primary), 0 0 20px color-mix(in srgb, var(--primary) 28%, transparent); }
.match-card-hit {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: inherit;
}
button.match-card-hit { cursor: pointer; }
.table-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  z-index: 1;
}
.table-link:hover { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.bracket-tree .table-link {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 18px;
  padding: 0 7px;
  border-top: 0;
  font-size: 9px;
  letter-spacing: .1em;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
}
.match-card.bye { opacity: .62; }
.match-card.complete { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 35%, var(--border)); }
.match-card.finals {
  width: var(--final-w, 236px);
  box-shadow:
    inset 0 0 0 1px var(--primary),
    inset 0 0 0 4px color-mix(in srgb, var(--ink) 50%, transparent),
    0 0 28px color-mix(in srgb, var(--primary) 28%, transparent);
}
.slot { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 26px; padding: 0 6px 0 8px; color: var(--fg); font-size: 13px; font-weight: 600; }
.slot + .slot { border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.slot.winner { color: var(--fg); background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 28%, transparent), color-mix(in srgb, var(--primary) 8%, transparent)); }
button.slot {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
button.slot:hover { background: color-mix(in srgb, var(--primary) 14%, transparent); }
button.slot.picked {
  color: var(--fg);
  background: color-mix(in srgb, var(--primary) 24%, transparent);
  box-shadow: inset 3px 0 0 var(--primary);
}
button.slot.swap-slot.empty { opacity: .82; }
button.slot.swap-slot:disabled { cursor: default; opacity: .7; }
.match-card.swap-mode { cursor: default; }
.match-card.swap-mode .mini { width: calc(100% - 16px); margin: 8px; }
.match-card.host-edit {
  overflow: visible;
  width: var(--final-w, 236px);
}
.match-card.host-edit .slot-edit {
  display: block;
  width: calc(100% - 16px);
  margin: 0 8px 8px;
  min-height: 30px;
  padding: 4px 6px;
  font-size: 12px;
}
.bracket-slot:has(.host-edit) { min-height: 156px; align-items: stretch; padding-top: 10px; padding-bottom: 10px; }
.bracket-slot:has(.host-edit) .match-card { align-self: center; }
.slot .who { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; overflow: hidden; }
.slot .who-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; color: var(--fg); }
.slot .medal-inline { flex: 0 0 auto; }
.slot .medal { width: 15px; height: 15px; }
.slot em { display: inline-block; width: 1.35em; margin-right: 6px; font-style: normal; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; color: var(--primary); }
.slot .tbd { font-style: italic; opacity: .85; color: var(--muted); font-weight: 500; }
.slot .pts { min-width: 1.4em; text-align: right; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; font-weight: 700; color: var(--primary); }
.bracket-tree.slots-xl .slot { min-height: 22px; font-size: 12px; }
.bracket-tree.slots-xl .slot .avatar { width: 16px; height: 16px; font-size: 8px; margin-right: 4px; }
.bracket-tree.slots-xl .slot em { width: 1.1em; margin-right: 4px; }
.match-card.ready .slot .pts { color: var(--primary); }
.grid.cards .match-card { width: 100%; }
.champion { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 3px; background: color-mix(in srgb, var(--primary) 14%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.champion strong { font-family: Cinzel, serif; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-size: 12px; }
.scorecard-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(12, 6, 2, .72); }
.scorecard { width: min(420px, 100%); display: grid; gap: 12px; padding: 18px; border-radius: 3px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent), 0 24px 48px rgba(0,0,0,.5); }
.scorecard h2 { margin: 0; font-size: 1.05rem; }
.scorecard.export-sheet { width: min(560px, 100%); }
.export-text {
  margin: 0;
  max-height: min(50vh, 420px);
  overflow: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.bracket-toolbar { margin: 0 0 14px; }
.kick-stream {
  position: relative;
  z-index: 12;
  margin: 0 auto;
  width: min(960px, calc(100% - 24px));
  padding: 12px 0 4px;
}
.kick-stream-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
}
.kick-stream-bar strong {
  font-family: Cinzel, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  flex: 1 1 8rem;
}
.kick-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bad) 28%, transparent);
  color: #f6c4bc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kick-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e85a4a;
  box-shadow: 0 0 0 0 color-mix(in srgb, #e85a4a 70%, transparent);
  animation: kick-pulse 1.6s ease-out infinite;
}
@keyframes kick-pulse {
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.kick-stream-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.kick-stream-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: #000;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
}
.kick-stream-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.kick-stream.is-min .kick-stream-stage {
  position: fixed;
  z-index: 18;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(320px, calc(100vw - 24px));
  aspect-ratio: 16 / 9;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
@media (min-width: 960px) {
  body.has-arena-chat:not(.chat-min) .kick-stream.is-min .kick-stream-stage {
    right: calc(var(--chat-rail, 320px) + 16px);
  }
}
.kick-host input { flex: 1 1 16rem; max-width: 32rem; }
.kick-replay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
}
.kick-replay strong {
  font-family: Cinzel, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  flex: 1 1 8rem;
}
.kick-replay .btn { margin-left: auto; }
.kick-vod {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .kick-stream { width: calc(100% - 16px); }
}
.arena-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: color-mix(in srgb, var(--surface) 94%, #000);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--fg);
}
.arena-chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  background: color-mix(in srgb, var(--raised) 88%, #000);
}
.arena-chat-bar strong {
  font-family: Cinzel, serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12px;
}
.arena-chat-watch {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.arena-chat-unread {
  min-width: 1.4rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.arena-chat-bar .btn { padding: 0 10px; min-height: 32px; font-size: 11px; }
.arena-chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arena-chat-empty, .arena-chat-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.arena-chat-hint { padding: 0 12px 10px; color: var(--bad); }
.arena-chat-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.arena-chat-row .player-pfp, .arena-chat-row .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.arena-chat-row .avatar {
  display: grid;
  place-items: center;
  font-size: 10px;
  background: var(--raised);
}
.arena-chat-body header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.arena-chat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
}
.arena-chat-role {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}
.arena-chat-body time {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.arena-chat-del {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
.arena-chat-del:hover { color: var(--bad); }
.arena-chat-body p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.arena-chat-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.arena-chat-compose input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--fg);
  font: inherit;
}
.arena-chat-compose .btn { flex: 0 0 auto; }
.arena-chat-compose.is-locked {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.arena-chat-compose.is-locked p { margin: 0; color: var(--muted); font-size: 13px; }
.chat-fab {
  position: fixed;
  z-index: 19;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.chat-fab.has-unread { box-shadow: 0 0 0 2px var(--fg), 0 10px 28px rgba(0,0,0,.4); }
.chat-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 21;
  border: 0;
  background: rgba(8,4,2,.45);
}
body.chat-open .chat-backdrop { display: block; }
@media (min-width: 960px) {
  .arena-chat {
    position: fixed;
    z-index: 16;
    top: calc(64px + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    width: var(--chat-rail, 320px);
    border-right: 0;
    border-radius: 0;
  }
  .chat-fab {
    left: auto;
    right: max(12px, env(safe-area-inset-right));
  }
  .chat-backdrop { display: none !important; }
}
@media (max-width: 959px) {
  .arena-chat {
    position: fixed;
    z-index: 22;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(70vh, 560px);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -18px 40px rgba(0,0,0,.45);
  }
}
.games { display: grid; gap: 8px; }
.game-row { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 8px; align-items: center; }
.game-row span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.game-row button { min-height: 40px; border: 0; border-radius: 8px; background: var(--raised); color: var(--fg); cursor: pointer; font: inherit; }
.game-row button.on { background: var(--primary); color: var(--ink); font-weight: 700; }
.game-row button:disabled { opacity: .45; cursor: default; }
.sc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-actions .btn:disabled { opacity: .45; cursor: default; }
.match-card.live { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, transparent); }
.match-card.live .pts { color: var(--primary); font-weight: 700; }
.series { margin: 0; font-family: Cinzel, serif; font-size: 1.2rem; letter-spacing: .12em; text-align: center; }
.req { color: var(--bad); }
.form-page { width: min(920px, 100%); }
.form-kicker { font-family: Cinzel, serif; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--primary); margin: 0 0 8px; }
.create-head { margin: 0 0 22px; }
.create-page > .create-head h1,
.host-gate h1 {
  margin: 0;
  font-family: var(--font-night);
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: .95;
  text-shadow: 0 0 28px color-mix(in srgb, var(--primary) 24%, transparent);
}
.host-gate {
  position: relative;
  isolation: isolate;
  width: min(440px, 100%);
  margin: 48px auto 80px;
  padding: 36px 28px 32px;
  text-align: center;
  background:
    radial-gradient(90% 140% at 50% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--raised) 88%, #000), color-mix(in srgb, var(--surface) 94%, #000));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 50%, var(--border)),
    0 18px 40px rgba(0,0,0,.45),
    0 0 48px color-mix(in srgb, var(--primary) 14%, transparent);
}
.host-gate::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    linear-gradient(var(--primary), var(--primary)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 100% / 1px 14px no-repeat;
  opacity: .85;
}
.host-gate p { margin: 12px 0 0; color: var(--muted); }
.host-gate .btn { margin-top: 18px; min-width: 12rem; }
.host-gate .err { color: var(--bad); }
.panel { margin: 0 0 16px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid color-mix(in srgb, var(--border) 45%, transparent); }
.panel-h { padding: 10px 16px; background: color-mix(in srgb, var(--raised) 88%, #000); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); }
.panel-h.warn { color: var(--primary); }
.panel-b { padding: 16px; display: grid; gap: 16px; }
.form-row { display: grid; gap: 8px; }
@media (min-width: 720px) {
  .form-row { grid-template-columns: 180px 1fr; align-items: start; gap: 18px; }
  .form-row > label, .form-row > .lbl { padding-top: 12px; margin: 0; }
}
.hint { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.choice { display: flex; flex-direction: column; gap: 4px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 6px 0; text-transform: none; letter-spacing: 0; font-size: .95rem; line-height: 1.45; color: var(--fg); cursor: pointer; }
.choice label > input { margin-top: 2px; }
.choice label > span { flex: 1 1 auto; min-width: 0; }
.choice .hint { display: block; }
.seg { display: inline-flex; gap: 0; border-radius: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.seg button { min-height: 40px; border: 0; background: transparent; color: var(--muted); padding: 0 18px; cursor: pointer; font: inherit; }
.seg button.on { background: var(--primary); color: var(--ink); font-weight: 700; }
.slug-row { display: flex; gap: 8px; align-items: center; }
.slug-row span { color: var(--muted); white-space: nowrap; }
.save-bar {
  position: sticky;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 12px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 82%, transparent) 36%);
}
.arena-shell { display: grid; gap: 18px; min-width: 0; max-width: 100%; }
.arena-shell > div, #panel { min-width: 0; max-width: 100%; }
@media (min-width: 900px) {
  .arena-shell { grid-template-columns: 188px minmax(0, 1fr); align-items: start; }
}
.arena-nav { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 900px) {
  .arena-nav { position: sticky; top: calc(var(--site-head-h) + 8px); flex-direction: column; }
}
.arena-nav button { min-height: 42px; border: 0; border-radius: 2px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--muted); text-align: left; padding: 0 12px; cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.arena-nav button.on { background: var(--primary); color: var(--ink); font-weight: 700; }
.arena-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin-bottom: 18px; }
.arena-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 280px;
}
.arena-crest {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}
.arena-crest img { width: 76px; height: 76px; }
.arena-copy { min-width: 0; text-align: left; }
.share-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.share-line .mono { font-size: 12px; word-break: break-all; }
.meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 0; }
.meta div { min-width: 7rem; }
.meta dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 2px 0 0; }
.organizer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 3px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--border) 40%, transparent); color: inherit; text-decoration: none; }
a.organizer:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.organizer .org-name { font-weight: 700; }
.organizer .medal { width: 20px; height: 20px; }
.organizer img, .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--raised); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--primary); flex: 0 0 auto; }
.podium { display: grid; gap: 10px; margin: 0 auto 18px; align-items: stretch; max-width: 720px; }
.podium.prestige.has-2 { grid-template-columns: 1fr; }
.podium .place {
  --shield: var(--primary);
  --shield-deep: #8a5810;
  --shield-ink: #140a04;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  padding: 14px 12px 16px;
  color: var(--fg);
  border-radius: 4px;
  border-top: 3px solid var(--shield);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--shield) 18%, #2a160c), var(--shield-ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shield) 40%, transparent);
}
.podium .place.gold { --shield: var(--primary); --shield-ink: #140a04; }
.podium .place.silver { --shield: #d7dde6; --shield-deep: #6a7380; --shield-ink: #161a22; }
.podium .place.copper { --shield: #d4892a; --shield-deep: #6a3408; --shield-ink: #1a0e04; }
.podium .place .rank-kicker {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--shield);
}
.podium .place .rank {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--shield);
  line-height: 1;
}
.podium .place .rank-sub {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--shield) 80%, var(--fg));
  margin-bottom: 2px;
}
.podium .place strong { display: inline-flex; align-items: center; justify-content: center; gap: .35em; flex-wrap: wrap; font-size: 1rem; }
.podium .place .muted { color: color-mix(in srgb, var(--shield) 55%, var(--muted)); }
.podium .medal { width: 18px; height: 18px; }
.podium .prestige-star {
  width: 14px;
  height: 14px;
  color: var(--shield);
}

.duel-result {
  display: grid;
  gap: 10px;
  margin: 0 auto 18px;
  max-width: 640px;
  align-items: stretch;
}
.duel-side {
  --shield: var(--primary);
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  padding: 14px 12px 16px;
  border-radius: 4px;
  border-top: 3px solid var(--shield);
  background: linear-gradient(180deg, color-mix(in srgb, var(--shield) 16%, #2a160c), #140a04);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shield) 40%, transparent);
}
.duel-side.gold { --shield: var(--primary); }
.duel-side.silver { --shield: #d7dde6; background: linear-gradient(180deg, color-mix(in srgb, #d7dde6 14%, #1c1410), #121418); }
.duel-side .rank-kicker {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--shield);
}
.duel-vs {
  display: grid;
  place-items: center;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.duel-side.muted-side { opacity: .7; }

.champ-banner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  margin: 0 auto 16px;
  max-width: 720px;
  padding: 16px 16px 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 16%, #2a160c), #140a04);
  border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border));
  border-radius: 4px;
}
.champ-banner::before,
.champ-banner::after { display: none; }
.champ-banner-kicker {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--primary);
}
.champ-banner h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}
.champ-banner .named-handle { justify-content: center; }
.champ-crest {
  width: 56px;
  height: 56px;
}
.champ-crest.art,
.champ-crest.art .medal {
  width: 56px;
  height: 56px;
}

.class-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 520px) {
  .class-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.class-pick-opt {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent);
  color: var(--muted);
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.class-pick-opt input { position: absolute; opacity: 0; pointer-events: none; }
.class-pick-opt .medal { width: 48px; height: 48px; }
.class-pick-opt.on {
  color: var(--fg);
  box-shadow: 0 0 0 2px var(--primary), 0 0 12px color-mix(in srgb, var(--primary) 35%, transparent);
}
.class-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--raised) 80%, transparent);
}
.class-mark.undeclared::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--muted);
  opacity: .7;
}
.class-mark.split {
  position: relative;
}
.class-mark.split i {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--primary);
  background: color-mix(in srgb, var(--primary) 18%, var(--raised));
}
.class-mark.split i:first-child { top: 10px; left: 8px; }
.class-mark.split i:last-child { right: 8px; bottom: 10px; }
.class-field { display: grid; gap: 10px; }
.split-pick { display: grid; gap: 6px; }
.split-pick[hidden] { display: none !important; }
.split-pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.split-amp {
  font-family: Cinzel, serif;
  color: var(--primary);
  font-weight: 700;
}
.class-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: Cinzel, serif;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, var(--border));
  white-space: nowrap;
}

.marks-gallery { margin: 8px 0 28px; }
.mark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  margin: 12px 0 8px;
}
.mark-tile {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 8px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
  text-align: center;
}
.mark-tile .medal { width: 64px; height: 64px; }
.mark-tile figcaption { display: grid; gap: 2px; }
.mark-tile strong {
  font-family: Cinzel, serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12px;
}
.mark-tile span { color: var(--muted); font-size: 11px; }

.standings-place,
.place-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.standings-place .medal,
.place-cell .medal,
table .medal.art { width: 36px; height: 36px; }
.podium .place .medal.art { width: 40px; height: 40px; margin-bottom: 2px; }
.slot .medal.art { width: 22px; height: 22px; }
.roster-row .medal.art { width: 28px; height: 28px; }

.rank-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-family: Cinzel, serif;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #f0c45a, var(--primary) 55%, #c47a12);
  box-shadow: inset 0 1px 0 #fff3c0, 0 0 10px color-mix(in srgb, var(--primary) 25%, transparent);
  clip-path: polygon(8% 0, 92% 0, 100% 22%, 100% 78%, 92% 100%, 8% 100%, 0 78%, 0 22%);
}
.rank-seal.honour {
  color: var(--fg);
  background: linear-gradient(180deg, #3a2a18, #1a1008);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 40%, var(--border));
}
.prize-won { margin: 8px 0 0; color: var(--primary); font-weight: 700; font-size: .95rem; line-height: 1.35; }
.match-record {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .45em;
  margin: 6px 0 0;
  padding: 4px 12px 5px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 32%, transparent);
  color: var(--fg);
  font-family: Cinzel, serif;
  letter-spacing: .08em;
}
.match-record span {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
}
.match-record strong {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.podium-person {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
}
.podium .place .match-record {
  background: color-mix(in srgb, var(--shield) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shield) 40%, transparent);
}
.podium .place .match-record span { color: var(--shield); }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 8px;
  padding: 4px 8px 8px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}
.standings-table,
.results-table { min-width: 28rem; }
.record-cell {
  font-family: Cinzel, serif;
  font-weight: 700;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 1.02rem;
}
.payouts { margin: 0 0 22px; padding: 14px 16px; border-radius: 3px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--border) 40%, transparent); }
.payouts h2 { margin: 0 0 10px; font-size: 12px; }
.payouts > p { margin: 0 0 10px; }
.payouts ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.payouts li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.payouts li span { color: var(--primary); font-family: Cinzel, serif; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.payouts li small { color: var(--muted); }
.payout-rows, #payout-rows { display: grid; gap: 8px; }
.payout-row { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.payout-place { font-family: Cinzel, serif; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); font-size: 12px; }
.payout-value { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.payout-percent-wrap { display: flex; align-items: center; gap: 6px; }
.payout-percent-wrap input { max-width: 7rem; }
.payout-added-wrap { display: flex; align-items: center; gap: 4px; }
.payout-added-wrap input { max-width: 7rem; }
.payout-prize { width: 100%; flex: 1 1 8rem; min-width: 8rem; }
#hostpot-usd, #hostpot-pct, #lock-pot-usd, #lock-pot-pct { margin-top: 8px; }
#hostpot-usd input, #hostpot-pct #s-addedpot, #lock-pot-usd #lock-pot, #lock-pot-pct #lock-addedpot { max-width: 10rem; }
.reward-preview { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--fg); font-size: .9rem; line-height: 1.45; }
#reward-fields[data-mode="prize"] .payout-percent-wrap,
#reward-fields[data-mode="prize"] .payout-added-wrap { display: none; }
@media (max-width: 640px) {
  .payout-row { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .payout-row [data-payout-remove] { grid-column: 2; justify-self: start; }
}
.slot .avatar { width: 22px; height: 22px; font-size: 10px; margin-right: 6px; flex: 0 0 auto; }
.slot .mark { width: 18px; height: 18px; border-radius: 4px; background: var(--primary); color: var(--ink); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.slot:not(.winner) .mark { display: none; }
.round-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); font-size: 11px; letter-spacing: .06em; }
.host-steps { display: grid; gap: 14px; }
.host-steps article { position: relative; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--border) 40%, transparent); }
.host-steps h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; font-family: Cinzel, serif; text-transform: uppercase; }
.votes { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* --- Host mode ----------------------------------------------------------- */
/* Anything a plain visitor must never see carries .host-panel / .host-flag so the
   dashed gold edge reads as "this is yours, not theirs" at a glance. */
.discord-login { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 2px; background: #5865f2; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.discord-login[hidden] { display: none !important; }
.player-session { display: none; align-items: center; gap: 8px; }
.player-session.is-on { display: flex; }
.player-session[hidden] { display: none !important; }
.player-session img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.player-session a { font-weight: 700; }
.player-session .named-handle { flex-wrap: nowrap; }
.player-session .medal { width: 18px; height: 18px; }
.host-toggle.on { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, transparent); font-weight: 700; }
.host-panel { position: relative; display: grid; gap: 12px; max-width: 720px; padding: 18px; border-radius: 3px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); margin: 0 0 18px; }
.host-panel > p { margin: 0; }
.host-panel strong { font-family: Cinzel, serif; letter-spacing: .08em; text-transform: uppercase; }
.swap-picks { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.host-money { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.host-money input { max-width: 10rem; }
.host-flag { position: absolute; top: -10px; left: 16px; padding: 2px 10px; border-radius: 999px; background: var(--primary); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.host-steps article .host-flag { top: -9px; }
.arena-nav button.is-host { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 45%, transparent); }
.host-hint { margin: 0 0 14px; font-size: .95rem; line-height: 1.45; }
.notice { display: grid; gap: 12px; max-width: 620px; padding: 18px; border-radius: 3px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--border) 45%, transparent); }
.notice > p { margin: 0; }
.notice strong { font-family: Cinzel, serif; letter-spacing: .08em; text-transform: uppercase; }
.linkish { border: 0; background: none; padding: 0; color: var(--primary); font: inherit; text-decoration: underline; cursor: pointer; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: .88rem; padding: 6px 0; }
.advanced[open] summary { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 2px; background: var(--raised); font-size: .82rem; color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent); }
.chip .medal { width: 16px; height: 16px; }
.chip .linkish { margin-left: 2px; }

/* --- Roster -------------------------------------------------------------- */
.roster { display: grid; gap: 8px; max-width: 720px; }
.roster-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 3px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--border) 40%, transparent); }
.roster-row.is-pending { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.roster-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 12rem; flex-wrap: wrap; }
.roster-row .named-handle { font-weight: 600; }
.roster-acts { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.roster-pay { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .82rem; color: var(--muted); }
.roster-pay code { color: var(--fg); word-break: break-all; }
.handle-typeahead { position: relative; flex: 1 1 16rem; max-width: 20rem; }
.handle-typeahead input { width: 100%; max-width: none; }
.handle-suggest {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: 0 16px 32px rgba(0,0,0,.45);
}
.handle-suggest li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.handle-suggest li[aria-selected="true"],
.handle-suggest li:hover {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}
.handle-suggest-text { display: grid; min-width: 0; }
.handle-suggest-text strong { min-width: 0; }
.handle-suggest-text .named-handle { flex-wrap: nowrap; }
.handle-suggest-text .medal { width: 16px; height: 16px; }
.handle-suggest-text small { color: var(--muted); font-size: .78rem; }
.handle-suggest .avatar,
.handle-suggest img { width: 28px; height: 28px; font-size: 11px; }
.mini { min-height: 36px; padding: 0 12px; border: 0; border-radius: 2px; background: var(--raised); color: var(--fg); cursor: pointer; font: inherit; font-size: .86rem; }
.mini.go { background: var(--primary); color: var(--ink); font-weight: 700; }
.mini.bad { color: var(--bad); }

/* --- Small screens ------------------------------------------------------- */
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; }
  .nav-toggle i { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--primary); }
  .nav-toggle[aria-expanded="true"] { background: var(--primary); }
  .nav-toggle[aria-expanded="true"] i { background: var(--ink); }
  .top nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 10px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--surface) 96%, #000);
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
  }
  .top nav.open { display: flex; }
  .top nav a, .top nav button { justify-content: center; width: 100%; text-align: center; }
  .top nav .player-session { width: 100%; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  :root { --site-head-h: calc(56px + env(safe-area-inset-top)); }
  .grain { opacity: .08; mix-blend-mode: normal; }
  .top {
    min-height: 56px;
    gap: 8px;
  }
  html.compact-nav .top,
  .site-head.is-compact .top { min-height: 46px; }
  .site-foot { width: calc(100% - 20px); }
  .brand { gap: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand span { min-width: 0; }
  .brand small { font-size: 9px; letter-spacing: .2em; }
  .brand strong { font-size: 12px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle { display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; }
  .nav-toggle i { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--primary); }
  .nav-toggle[aria-expanded="true"] { background: var(--primary); }
  .nav-toggle[aria-expanded="true"] i { background: var(--ink); }
  .top nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--surface) 96%, #000);
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
  }
  .top nav.open { display: flex; }
  .top nav a, .top nav button { justify-content: center; width: 100%; text-align: center; }
  .top nav .player-session { width: 100%; justify-content: center; flex-wrap: wrap; }
  .top nav a { border-radius: 2px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 60%, transparent); }
  .host { padding: 0 14px !important; }
  main { width: calc(100% - 20px); padding-top: 16px; }
  body.has-tree main { width: calc(100% - 16px); }
  .bracket-stage { max-height: min(74dvh, 720px); }
  body.bracket-fs .bracket-stage { max-height: none; min-height: 0; }
  body.bracket-fs main { width: 100%; }
  .card-tags { max-width: none; }
  .card-top { flex-wrap: wrap; }
  .hero { padding: 10px 0 24px; gap: 12px; }
  .hero-lockup { gap: 14px; }
  .hero-crest { width: 88px; height: 88px; }
  .hero-crest img { width: 72px; height: 72px; }
  .hero h1 { font-size: clamp(1.35rem, 6.4vw, 2.1rem); }
  .hero-lead { font-size: .95rem; }
  .nightboard { padding: 18px 16px 16px; }
  .nightboard-cta { width: 100%; }
  .panel-b { padding: 14px; gap: 14px; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 0; padding: 0 12px; }
  .rule-row { flex-wrap: wrap; }
  .rule-row select { width: 100%; min-width: 0; }
  .swap-picks { grid-template-columns: 1fr; }
  .slug-row { flex-wrap: wrap; }
  .save-bar { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); }
  .prize-line { white-space: normal; }
  .game-row { grid-template-columns: 52px 1fr 1fr; }
  .sc-actions { grid-template-columns: 1fr; }
  .k9swap-preview { font-size: .7rem; }
  .share-line .mono { font-size: 11px; }
  .meta { gap: 8px; }
  .meta div { min-width: calc(50% - 8px); flex: 1 1 8rem; }
  .k9swap header, .k9swap-otf { flex-wrap: wrap; }
  .k9swap-credit { white-space: normal; }
  .handle-typeahead { max-width: none; flex: 1 1 100%; }
  .grid.cards .row { align-items: flex-start; }
  .grid.cards h3 { min-width: 0; overflow-wrap: anywhere; }
  .champ-banner {
    padding: 14px 12px 12px;
    gap: 4px;
  }
  .champ-banner::before,
  .champ-banner::after { display: none; }
  .champ-crest.art,
  .champ-crest.art .medal { width: 48px; height: 48px; }
  .champ-banner h2 { font-size: 1.15rem; }
  .match-record strong { font-size: 1rem; }
  .podium { gap: 8px; margin-bottom: 14px; }
  .podium .place {
    padding: 12px 10px 14px;
  }
  .podium .place .rank { font-size: 1.05rem; }
  .podium .place .medal.art { width: 36px; height: 36px; }
  .duel-result { gap: 8px; margin-bottom: 14px; }
  .mark-tile .medal { width: 52px; height: 52px; }
  .class-pick-opt .medal,
  .class-mark { width: 40px; height: 40px; }
  .rank-list li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .rank-list li > span:last-child:empty { display: none; }
  .standings-table,
  .results-table { min-width: 0; width: 100%; font-size: .82rem; }
  .record-cell { font-size: .95rem; }
  th, td { padding: 8px 4px; }
  .form-page { width: 100%; }
  .medal-row { gap: 8px; }
}

@media (max-width: 899px) {
  .arena-nav {
    position: sticky;
    top: calc(var(--site-head-h) + 6px);
    z-index: 8;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -10px 4px;
    padding: 8px 10px 8px 10px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 40%, transparent));
  }
  .arena-nav::-webkit-scrollbar { display: none; }
  .arena-nav button { flex: 0 0 auto; white-space: nowrap; padding: 0 14px; font-size: 11px; }
  .arena-nav::after { content: ""; flex: 0 0 12px; }
}

@media (min-width: 720px) {
  .hero {
    padding: 28px 0 40px;
    gap: 18px;
  }
  .hero-lockup { gap: 28px; }
  .hero-crest { width: 148px; height: 148px; }
  .hero-crest img { width: 124px; height: 124px; }
  .hero-copy { min-width: 0; }
  .hero h1 { font-size: clamp(2.1rem, 4.2vw, 2.8rem); }
  .arena-crest { width: 112px; height: 112px; }
  .arena-crest img { width: 96px; height: 96px; }
}

@media (min-width: 900px) {
  html {
    background-attachment: fixed, fixed;
  }
}

/* --- Hall of records / ledger ------------------------------------------- */
.host-panel.wide { max-width: none; }
.champ-card {
  background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 40%),
    color-mix(in srgb, var(--surface) 90%, transparent);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
}
.champ-card .medal-row { margin-top: 10px; }
.honour-card {
  border-color: color-mix(in srgb, #c5d0dc 40%, var(--border));
  background:
    radial-gradient(80% 70% at 0% 0%, color-mix(in srgb, #c5d0dc 12%, transparent), transparent 50%),
    color-mix(in srgb, var(--surface) 90%, transparent);
}
.honour-card::after {
  background-image: repeating-linear-gradient(
    180deg,
    color-mix(in srgb, #c5d0dc 50%, transparent) 0 2px,
    transparent 2px 8px
  );
}
.hall-acts { margin-top: 12px; }
.champ-card h3 a, .honour-card h3 a { color: inherit; }
.named-handle {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-width: 0;
  flex-wrap: wrap;
}
.named-handle .medal-inline,
.medal-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}
.medal {
  --medal: var(--primary);
  display: inline-block;
  width: 1.28em;
  height: 1.28em;
  flex: 0 0 auto;
  line-height: 0;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
}
.medal svg { width: 100%; height: 100%; display: block; overflow: visible; }
.medal.art { overflow: visible; }
.medal.art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.medal.gold { --medal: #e8a317; }
.medal.ember { --medal: #c45c2a; }
.medal.cream { --medal: #f6e7c8; }
.medal.copper { --medal: #c47a12; }
.medal.verdant { --medal: #86b56a; }
.medal.md { width: 44px; height: 44px; filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--medal) 28%, transparent)); }
.medal.lg { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--medal) 32%, transparent)); }
.medal-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.medal-award {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 16rem;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--raised) 70%, transparent);
}
.medal-award .mini { margin-left: auto; }
.chip .mini { min-height: 28px; padding: 0 8px; font-size: .78rem; }
.medal-meta { display: grid; gap: 2px; }
.medal-meta strong { font-family: Cinzel, serif; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.row > .named-handle,
.row > h3 { min-width: 0; }
.row > h3 .named-handle { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-list li {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--raised) 70%, transparent);
}
.rank-list .place { font-family: Cinzel, serif; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); font-size: 12px; }
.rank-list .named-handle { font-weight: 700; }
table .named-handle { font-weight: 600; }
.icon-pick, .swatch-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-pick button, .swatch-pick button {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
}
.icon-pick button.on, .swatch-pick button.on {
  box-shadow: 0 0 0 2px var(--primary), 0 0 12px color-mix(in srgb, var(--primary) 35%, transparent);
}
.icon-pick button .medal { width: 44px; height: 44px; }
.swatch-pick button { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent); }
.swatch-pick button.gold { background: #e8a317; }
.swatch-pick button.ember { background: #c45c2a; }
.swatch-pick button.cream { background: #f6e7c8; }
.swatch-pick button.copper { background: #c47a12; }
.swatch-pick button.verdant { background: #86b56a; }
.badge-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
}
.badge-preview h3 { margin: 0; }
.award-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* --- Hearth plaques, tickets, engraved chrome ---------------------------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 14px;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--primary);
}
.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 70%, transparent));
}
.section-title::after { background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 70%, transparent), transparent); }
.form-page > h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.1;
}
.host-gate h1 { margin: 0; }
.form-kicker {
  margin-bottom: 4px;
}

.plaque::before {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background:
    linear-gradient(var(--primary), var(--primary)) 0 0 / 11px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 0 / 1px 11px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 0 / 11px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 0 / 1px 11px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 11px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 1px 11px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 100% / 11px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 100% 100% / 1px 11px no-repeat;
  opacity: .7;
}
a.card.plaque { color: inherit; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
a.card.plaque:hover {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent),
    0 16px 32px rgba(0,0,0,.38),
    0 0 22px color-mix(in srgb, var(--primary) 12%, transparent);
}
.grid.cards > .card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 5px;
  background-image: repeating-linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 55%, transparent) 0 2px,
    transparent 2px 8px
  );
  opacity: .7;
}
.card[data-status="in_progress"] { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.card[data-status="registration"] { border-color: color-mix(in srgb, var(--primary) 48%, var(--border)); }
.card[data-status="completed"] { opacity: .92; }

.meta div {
  padding: 8px 10px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--raised) 72%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent);
}
.meta dt { margin-bottom: 2px; }
.meta dd {
  font-family: Cinzel, serif;
  letter-spacing: .06em;
  font-size: 1.02rem;
}

.arena-head h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1.15;
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
}
.arena-nav button.on {
  box-shadow: inset 0 -2px 0 var(--ink), 0 0 16px color-mix(in srgb, var(--primary) 22%, transparent);
}

.match-card.ready {
  animation: readyPulse 2.8s ease-in-out infinite;
}
@keyframes readyPulse {
  0%, 100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, var(--border)), inset 0 0 0 3px color-mix(in srgb, var(--ink) 55%, transparent), 0 0 16px color-mix(in srgb, var(--primary) 18%, transparent); }
  50% { box-shadow: inset 0 0 0 1px var(--primary), inset 0 0 0 3px color-mix(in srgb, var(--ink) 55%, transparent), 0 0 22px color-mix(in srgb, var(--primary) 32%, transparent); }
}
.slot em {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 6px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
}

.bracket-port {
  scrollbar-color: var(--primary) var(--raised);
  scrollbar-width: thin;
}

.host {
  background: linear-gradient(180deg, #f0c45a, var(--primary) 46%, #c47a12);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 35%, var(--primary)),
    inset 0 -2px 0 rgba(26,12,4,.28),
    0 0 16px color-mix(in srgb, var(--primary) 28%, transparent);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 55%, transparent);
}

.k9swap { border-radius: 3px; }
.k9swap-cta { border-radius: 2px; }
.copy { border-radius: 2px; }
.round-tag { border-radius: 2px; }

@media (hover: hover) and (min-width: 761px) {
  a.card.plaque:hover { transform: translateY(-2px); }
}

@media (max-width: 760px) {
  a.card.plaque:hover { transform: none; }
  .match-card.ready { animation: none; }
  .hero-crest::before { inset: -7px; }
}

@media (max-width: 380px) {
  .brand small { display: none; }
  .hero-kicker { letter-spacing: .22em; }
  .btn, .host { letter-spacing: .08em; padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .match-card.ready { animation: none; }
  a.card.plaque { transition: none; }
  .embers, .hero-crest, .nightboard::after, .nightboard-kicker i { animation: none; }
  .top { transition: none; }
  .site-head { backdrop-filter: none; }
}

@keyframes ember-breathe {
  from { opacity: .7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}
@keyframes crest-glow {
  0%, 100% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--primary) 30%, transparent)); }
  50% { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--primary) 70%, transparent)); }
}
@keyframes sheen {
  0%, 62% { transform: translateX(-130%); }
  82%, 100% { transform: translateX(130%); }
}
@keyframes live-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

@media (min-width: 720px) {
  .podium.prestige.has-2 { grid-template-columns: 1fr 1fr; }
  .podium.prestige.has-3 {
    grid-template-columns: 1fr 1.18fr 1fr;
    align-items: stretch;
  }
  .podium.prestige.has-3 .place.gold { order: 2; padding-top: 18px; padding-bottom: 20px; }
  .podium.prestige.has-3 .place.silver { order: 1; }
  .podium.prestige.has-3 .place.copper { order: 3; }
  .duel-result {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
  }
  .duel-vs { padding: 0 4px; }
}

.records-page { width: min(1040px, 100%); }
.records-page > h1,
.records-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.1;
}
.records-head { margin-bottom: 8px; }
.stat-strip {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat-strip li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}
.stat-strip strong {
  font-family: Cinzel, serif;
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-strip span {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.records-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 14px;
}
.records-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.records-tabs button.on {
  background: var(--primary);
  color: var(--ink);
  font-weight: 700;
}
.records-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 14px;
}
.records-search, .records-format { min-width: 0; flex: 1 1 10rem; }
.records-search .lbl, .records-format .lbl { margin-bottom: 4px; }
.records-filters .seg { flex: 0 0 auto; }
.kind-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: Cinzel, serif;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, var(--border));
  white-space: nowrap;
}
.kind-tag.duel {
  color: #d7dde6;
  background: color-mix(in srgb, #d7dde6 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #d7dde6 35%, var(--border));
}
.kind-tag.grand {
  color: #f0c45a;
  background: linear-gradient(180deg, color-mix(in srgb, #f0c45a 24%, transparent), color-mix(in srgb, #c47a12 14%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #f0c45a 65%, var(--border));
}
.result-list { display: grid; gap: 8px; }
.result-row {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 3px;
  color: inherit;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}
a.result-row:hover,
.result-row:has(h3 a:hover) {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
}
.result-row time {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  padding-top: 4px;
}
.result-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.result-title h3 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 1rem;
  letter-spacing: .06em;
}
.result-title h3 a { color: inherit; }
.result-title h3 a:hover { color: var(--primary); }
.result-places {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 6px 0 0;
  font-size: .92rem;
}
.result-places em {
  font-style: normal;
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-right: 4px;
}
.duel-def {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.title-list .named-handle { font-weight: 700; }
@media (max-width: 760px) {
  .result-row { grid-template-columns: 1fr; gap: 4px; padding: 12px; }
  .result-row time { padding-top: 0; }
  .records-filters .seg { width: 100%; }
  .records-filters .seg button { flex: 1 1 0; }
  .stat-strip strong { font-size: 1.15rem; }
}

/* IRL verified table */
.irl-page { display: grid; gap: 14px; padding-bottom: 28px; }
.irl-crumb { margin: 0; font-size: .82rem; color: var(--muted); }
.irl-crumb a:hover { color: var(--primary); }
.irl-page h1 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.7rem); }
.irl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.irl-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.irl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.irl-badge.ok { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); }
.irl-stall { margin: 0; padding: 8px 12px; border-radius: 3px; background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.irl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.irl-card {
  padding: 14px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface) 92%, #000 8%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 28%, var(--border));
}
.irl-seat-grid { display: grid; gap: 8px; margin-top: 10px; }
@media (min-width: 560px) { .irl-seat-grid { grid-template-columns: 1fr 1fr; } }
.irl-watch { width: 100%; margin-top: 8px; }
.irl-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .irl-grid { grid-template-columns: 1fr 1fr; } }
.cam-stack { display: grid; gap: 6px; }
.cam-chips {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 1.35em;
  pointer-events: none;
}
.hand-cam {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background: #0a0604;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 28%, var(--border));
}
.hand-cam.is-mine.is-live {
  cursor: grab;
  touch-action: none;
}
.hand-cam.is-mine.is-live.is-panning { cursor: grabbing; }
.hand-cam .cam-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translate(var(--cam-x, 0%), var(--cam-y, 0%)) scale(var(--cam-zoom, 1));
  transform-origin: center center;
  will-change: transform;
}
.hand-cam video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #0a0604;
}
.hand-cam .hand-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hand-cam:not(.is-live) video,
.hand-cam:not(.is-live) .cam-frame,
.hand-cam:not(.is-live) .hand-canvas,
.hand-cam:not(.is-live) .lane-overlay { display: none; }
.cam-waiting {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-size: .92rem;
}
.hand-cam.is-live .cam-waiting { display: none; }
.lane-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding: 0.4% 0 0;
  box-sizing: border-box;
  background: none;
}
.hand-cam.is-mat-off .lane-overlay {
  visibility: hidden;
  pointer-events: none;
}
.lane-board {
  display: grid;
  grid-template-rows: auto auto;
  gap: clamp(6px, 1.4vw, 12px);
  width: 100%;
  flex: 0 0 auto;
}
.lane-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(3px, 0.55vw, 7px);
  min-height: 0;
}
.lane-slot {
  appearance: none;
  aspect-ratio: 63 / 88;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 3px 2px 0;
  overflow: hidden;
  border: 2px solid rgba(243, 210, 122, .92);
  border-radius: 6px;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(12, 6, 2, .45);
  box-sizing: border-box;
  pointer-events: auto;
  cursor: pointer;
  color: inherit;
  font: inherit;
  container-type: inline-size;
}
.lane-slot.is-side,
.lane-slot.is-pile {
  pointer-events: none;
  cursor: default;
  border-color: rgba(243, 210, 122, .72);
}
.lane-slot:disabled {
  opacity: 1;
  color: inherit;
}
.lane-slot.is-filled { background: rgba(12, 6, 2, .18); }
.lane-slot.is-filled b,
.lane-slot.is-auto b { display: none; }
.lane-slot.is-auto { box-shadow: 0 0 0 1px rgba(12, 6, 2, .45), inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, transparent); }
.lane-slot.is-alert { border-color: color-mix(in srgb, var(--bad) 80%, #f3d27a); }
.lane-card-name {
  max-width: 100%;
  overflow: hidden;
  color: #f6d98a;
  font-size: clamp(8px, 0.9vw, 10px);
  font-size: clamp(8px, 10cqw, 10px);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.1;
  padding: 1px 2px;
  display: block;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px #120804, 0 0 6px #120804;
}
.lane-slot b {
  max-width: 100%;
  overflow: hidden;
  color: #f6d98a;
  font-size: clamp(6px, 0.8vw, 8px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 2px #120804, 0 0 8px rgba(12, 6, 2, .9);
}
.lane-reserve {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: start center;
  padding: 0.6% 0 0;
}
.lane-slot.is-hand {
  height: 100%;
  width: auto;
  max-width: 56%;
  max-height: 100%;
  aspect-ratio: 88 / 63;
  justify-content: center;
}
.lane-slot.is-hand b {
  font-size: clamp(10px, 1.3vw, 14px);
}
.cam-chip {
  position: static;
  margin: 0;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(12, 6, 2, .78);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cam-label { color: var(--fg); }
.cam-state { color: var(--muted); }
.cam-state.ok { color: var(--ok); }
.cam-state.warn { color: var(--ember); }
.cam-zoom {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 3px;
  background: rgba(12, 6, 2, .82);
}
.cam-zoom[hidden] { display: none; }
.cam-zoom-lbl {
  margin: 0;
  color: var(--fg);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cam-zoom-lbl span { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0; }
.cam-zoom input[type="range"] {
  width: 100%;
  min-height: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--primary);
}
.cam-zoom .mini { min-height: 28px; padding: 0 10px; }
.cam-zoom-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .cam-zoom {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .cam-zoom .mini { justify-self: start; }
  .lane-slot b { font-size: 7px; letter-spacing: .04em; }
}
.hearth-hud {
  margin-top: 8px;
  padding: 12px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface) 92%, #000 8%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
}
.hearth-hud.is-turn { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, var(--border)); }
.hearth-hud.is-dead { opacity: .8; }
.hud-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hud-name { margin: 0; font-family: Cinzel, serif; letter-spacing: .08em; }
.hud-turn { margin-left: 6px; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .7rem; letter-spacing: .08em; }
.hud-tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hud-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.hud-kicker { margin: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hud-life, .hud-mana { margin: 4px 0 0; font-family: Cinzel, serif; font-size: 2rem; line-height: 1; }
.hud-life.low { color: var(--ember); }
.hud-life.dead { color: var(--bad); }
.hud-mana { color: var(--primary); }
.hud-mana small { margin-left: 4px; font-size: .7rem; color: var(--muted); }
.life-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.life-btns .mini { min-height: 32px; min-width: 42px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.mana-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.mana-zero, .mana-pip {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--raised) 70%, transparent);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.mana-pip.on, .mana-zero.on { background: var(--primary); border-color: var(--primary); color: var(--ink); }
.mana-pip.coin, .mana-dot.coin { border-color: #e2c15a; box-shadow: 0 0 0 1px #e2c15a; }
.mana-pip.coin.on { background: #e2c15a; color: var(--ink); }
.mana-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--raised); }
.mana-dot.on { background: var(--primary); }
.mana-dot.coin.on { background: #e2c15a; }
.irl-clock-mount { margin: 8px 0 12px; }
.irl-clock {
  padding: 12px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface) 92%, #000 8%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
}
.irl-clock.is-live { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 40%, var(--border)); }
.irl-clock-title { margin: 0 0 6px; font-family: Cinzel, serif; letter-spacing: .1em; }
.irl-clock-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.irl-clock-row .irl-clock-title { margin: 0; }
.irl-clock-reset { flex: 0 0 auto; min-height: 32px; font-size: 11px; }
.irl-clock .muted { margin: 4px 0 0; }
.irl-clock .irl-seat-grid { margin-top: 10px; }
.irl-shot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 8px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.irl-shot [data-shot-val] {
  font-size: 1.7rem;
  letter-spacing: .06em;
  color: var(--primary);
}
.irl-shot.is-ember [data-shot-val] { color: var(--ember); }
.irl-shot.is-paused [data-shot-val] { color: var(--muted); }
.irl-shot [data-shot-note] {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}
.irl-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.irl-search-btn { margin-top: 10px; }
.irl-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ember) 16%, transparent);
  color: var(--ember);
  font-size: 13px;
}
.irl-alert.is-ok {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}
.lane-slot.is-searching {
  border-color: color-mix(in srgb, var(--ember) 80%, #f3d27a);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ember) 55%, transparent);
}
.lane-slot.is-attack {
  border-color: color-mix(in srgb, var(--primary) 85%, #f3d27a);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 50%, transparent);
}
.irl-phase {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 13px;
}
.irl-ref-btns { margin-top: 8px; }
.hud-life.is-target {
  cursor: pointer;
  outline: 2px solid var(--primary);
}
.irl-ref-log {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: var(--muted);
  font-size: 12px;
}
.irl-ref-log summary { cursor: pointer; color: var(--primary); }
.irl-ref-log ol {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  max-height: 28vh;
  overflow: auto;
}
.irl-ref-log li { margin: 0 0 4px; }
.irl-ref-log li.is-bad { color: var(--ember); }
.irl-ref-log li.is-ok { color: var(--primary); }
.irl-decks .irl-deck-lock {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.irl-decks textarea {
  width: 100%;
  min-height: 4.5rem;
  font-size: 16px;
}
.irl-card-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 40vh;
  overflow: auto;
  margin: 8px 0;
}
.irl-peek-body { padding: 8px 2px 0; color: #f8f1e4; }
.irl-peek-kicker, .irl-peek-stats, .irl-peek-kw, .irl-peek-text {
  margin: 0 0 4px;
  font-size: 12px;
}
.irl-peek-name {
  margin: 0 0 4px;
  font-family: Cinzel, serif;
  letter-spacing: .06em;
}
.irl-peek-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #f3d27a;
  background: #1a1410;
  color: #f6d98a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.irl-peek-actions {
  display: flex;
  gap: 8px;
  padding: 8px 2px 2px;
}
.irl-peek-actions .btn { flex: 1; }
#irl-card-peek { background: #1a1410; border-radius: 8px; padding: 8px; }
.irl-coin-flip {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 12px;
}
.irl-coin-disc {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f7e7a1, var(--primary) 46%, #a56a12);
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 18px rgba(0,0,0,.35);
}
.irl-coin-disc.is-spin {
  animation: irl-coin-spin .9s ease-in-out;
}
@keyframes irl-coin-spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(720deg); }
}
.irl-score-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
@media (min-width: 560px) {
  .irl-score-grid { grid-template-columns: 1fr 1fr; }
}
.irl-score-grid label { margin: 0; }
.irl-score-grid input[type="number"] {
  font-size: 16px;
}
.irl-cam-dialog .btn {
  min-height: 48px;
}
.irl-turn, .irl-coin { width: 100%; margin-top: 12px; }
.irl-coin-live {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
}
.irl-active {
  margin: 12px 0 0;
  text-align: center;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
}
.irl-active.is-wait { color: var(--muted); }
.irl-cam-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(12, 6, 2, .78);
}
.irl-cam-overlay[hidden] { display: none; }
.irl-cam-dialog {
  width: min(440px, 100%);
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent), 0 24px 48px rgba(0,0,0,.5);
}
.irl-cam-dialog h2 { margin: 0; font-family: Cinzel, serif; font-size: 1.15rem; letter-spacing: .06em; }
.irl-cam-dialog p { margin: 0; }
.irl-cam-dialog .irl-seat-grid { margin-top: 6px; }
.irl-toast.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.scorecard.deck-sheet {
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
}
.play-export {
  max-width: 720px;
  margin: 4px 0 8px;
}
.play-export h3 {
  margin: 0 0 8px;
  font-family: Cinzel, serif;
  letter-spacing: .06em;
}
.play-export .hero-kicker { margin: 0 0 4px; }
.play-export-results { display: grid; gap: 10px; margin-top: 10px; }
.play-deck-actions { margin-top: 2px; }
.irl-play-row { width: 100%; }
.irl-play-row input { flex: 1 1 10rem; min-width: 0; max-width: none; }
.play-deck-field { display: grid; gap: 8px; }
.deck-quota-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
  color: var(--fg);
  font-size: .95rem;
  line-height: 1.45;
}
.deck-quota-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-family: Cinzel, serif;
  font-size: 1rem;
  letter-spacing: .04em;
}
@media (max-width: 760px) {
  .deck-quota-note {
    font-size: 1rem;
    padding: 12px;
  }
  .deck-quota-note strong { font-size: 1.08rem; }
}
.deck-paste {
  width: 100%;
  min-height: 7.5rem;
  resize: vertical;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}
.play-deck-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.play-deck-row .handle-typeahead { flex: 1 1 12rem; max-width: none; }
.play-deck-picked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
}
.play-deck-picked.is-locked { margin: 12px 0; }
.pd-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  background: color-mix(in srgb, var(--ok) 22%, transparent);
  color: var(--ok);
}
.pd-pill.warn {
  background: color-mix(in srgb, var(--bad) 22%, transparent);
  color: #f0b0a4;
}
.play-deck-picks { display: grid; gap: 8px; }
.play-deck-card {
  border-radius: 3px;
  background: var(--raised);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.play-deck-card.is-open { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.play-deck-card.is-short { opacity: .78; }
.pd-head-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.class-quota-row {
  display: grid;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
}
@media (min-width: 640px) {
  .class-quota-row {
    grid-template-columns: minmax(0, 1fr) 8rem;
    align-items: end;
  }
  .class-quota-row .hint { grid-column: 1 / -1; margin: 0; }
}
.play-deck-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.play-deck-head .pd-left { display: grid; gap: 2px; }
.play-deck-head small { color: var(--muted); font-size: .78rem; }
.play-deck-body { display: grid; gap: 10px; padding: 0 12px 12px; }
.play-deck-lines {
  display: grid;
  gap: 4px;
  max-height: min(40vh, 320px);
  overflow: auto;
  padding: 8px 10px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
}
.play-deck-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .88rem;
}
.play-deck-line b { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; color: var(--primary); }
.chip.deck-chip {
  cursor: pointer;
  border: 0;
  font: inherit;
  color: var(--primary);
}
.arena-filters,
.roster-filters,
.standings-tabs,
.ops-desk,
.my-arena-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.arena-filters .mini.on,
.roster-filters .mini.on,
.standings-tabs .mini.on {
  background: var(--primary);
  color: #140a04;
}
.my-arena-status .chip.on {
  border-color: var(--primary);
}
.my-arena h3 { margin-top: 18px; }
@media (max-width: 720px) {
  .bracket-stage .bracket-port {
    min-height: 70vh;
  }
  .bracket-round.is-final {
    scroll-margin-inline: 12px;
  }
}
