:root {
  color-scheme: dark;
  --background: oklch(0.15 0.012 225);
  --foreground: oklch(0.96 0.01 200);
  --card: oklch(0.195 0.016 225);
  --primary: oklch(0.92 0.13 195);
  --primary-foreground: oklch(0.15 0.012 225);
  --secondary: oklch(0.24 0.018 225);
  --muted: oklch(0.7 0.02 210);
  --live: oklch(0.65 0.22 25);
  --border: oklch(0.92 0.13 195 / 12%);
  --input: oklch(1 0 0 / 12%);
  --ring: oklch(0.92 0.13 195);
  --radius: 0.375rem;
  --font-sans: Inter, "Segoe UI", sans-serif;
  --font-display: "Saira Condensed", Impact, sans-serif;
  --bar: 4.25rem;
  --header: var(--bar);
}

* { box-sizing: border-box; }
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklch, var(--primary) 62%, var(--background)) transparent;
}
*::-webkit-scrollbar { width: 0.6rem; height: 0.6rem; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: color-mix(in oklch, var(--primary) 45%, transparent);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner { background: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.4rem 0.7rem;
  z-index: 50;
}
.skip:focus { top: 0.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: min(80rem, calc(100% - 2rem)); margin-inline: auto; }
.muted { color: var(--muted); }
.kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
}
h1.display { font-size: clamp(2.7rem, 6vw, 3.75rem); }
h2.display { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.icon { width: 1rem; height: 1rem; flex: none; }
.icon-sm { width: 0.875rem; height: 0.875rem; }
.clip-notch { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 92%, transparent);
  backdrop-filter: blur(14px);
}
.bar, .footer-row, .hero-home, .profile-hero, .section-head, .cart-total, .stage-info, .name-row, .row-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bar {
  height: var(--bar);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}
.nav-side { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.nav-side-left { justify-content: flex-start; }
.nav-side-right { justify-content: flex-end; }
.brand { display: flex; align-items: center; text-decoration: none; justify-self: center; }
.brand-mark { height: 2.65rem; width: auto; }
.brand-icon { display: none; width: 2.05rem; height: 2.05rem; }
.brand span, .roster-name, .cod-name, .tcard h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
}
.brand span { font-size: 1.5rem; letter-spacing: 0.04em; }
.nav, .bar-actions, .toolbar, .stage-actions, .footer-links, .live-row { display: flex; align-items: center; gap: 0.35rem; }
.nav a, .cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  white-space: nowrap;
  border-radius: 0.2rem;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a[aria-current="page"] { color: var(--primary); }
.nav a:hover, .cart-link:hover, .footer-links a:hover { color: var(--foreground); }
.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}
.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn:hover { background: var(--secondary); }
.btn.btn-primary, button.btn.btn-primary, a.btn.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.btn.btn-primary:hover, button.btn.btn-primary:hover, a.btn.btn-primary:hover { filter: brightness(1.06); background: var(--primary); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.creator-link { white-space: nowrap; }

.hero-band { border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--card) 40%, transparent); }
.hero-copy, .hero-home, .profile-hero { padding: 2.2rem 0; }
.hero-copy, .hero-home { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.hero-home { gap: 1.25rem; }
.lede { max-width: 40rem; color: var(--muted); }
.page-stack { display: flex; flex-direction: column; gap: 2.5rem; padding: 2rem 0 1rem; }
.narrow { width: min(46rem, calc(100% - 2rem)); }
.section-head { justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}
.flash-wrap { padding-top: 1rem; }
.flash { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 1rem; }
.flash-ok { border-color: color-mix(in oklch, var(--primary) 45%, transparent); background: color-mix(in oklch, var(--primary) 12%, transparent); }
.flash-error { border-color: color-mix(in oklch, var(--live) 55%, transparent); background: color-mix(in oklch, var(--live) 12%, transparent); }
.live-pill, .offline-pill, .role-pill, .wait-pill, .tag, .on-air, .view-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.15rem;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-pill, .on-air { background: var(--live); color: var(--foreground); }
.offline-pill { background: var(--secondary); color: var(--muted); }
.role-pill { border: 1px solid color-mix(in oklch, var(--primary) 40%, transparent); color: var(--primary); }
.pulse {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--foreground);
  animation: pulse 1.4s ease-in-out infinite;
}

.stage-grid { display: grid; gap: 1rem; }
.stage-meta { flex-wrap: wrap; }
.stage-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; min-width: 0; }
.stage-controls { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.stage-controls .btn { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.stage-meta, .chat-head, .paint-head, .tcard-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
.stage-meta, .stage-info { padding: 0.85rem 1rem; }
.stage-meta { font-size: 0.8rem; }
.twitch-jump { text-decoration: none; }
.twitch-jump:hover { text-decoration: underline; }
.stage { min-width: 0; }
.stage-players { display: grid; gap: 0.65rem; min-width: 0; }
.stage-players.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-tile { min-width: 0; }
.stage-players.is-multi .stage-tile {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--background);
}
.stage-players.is-multi .stage-tile.is-focus { border-color: var(--primary); }
.stage-players.is-multi { gap: 0.45rem; }
.stage-players.is-multi .tile-bar {
  position: static;
  padding: 0.4rem 0.7rem;
  background: var(--background);
  pointer-events: auto;
}
.stage-players.is-multi .stage-tile.is-focus .tile-name { color: var(--primary); }
.stage:has(.stage-players.is-multi) .stage-status,
.stage:has(.stage-players.is-multi) .twitch-jump { display: none; }
.stage:has(.stage-players.is-multi) .stage-meta { padding: 0.55rem 0.75rem; }
.stage:has(.stage-players.is-multi) .stage-info { padding: 0.5rem 0.75rem; }
.stage:has(.stage-players.is-multi) .logo-mark,
.stage:has(.stage-players.is-multi) .role-pill,
.stage:has(.stage-players.is-multi) [data-title],
.stage:has(.stage-players.is-multi) [data-channel] { display: none; }
.stage:has(.stage-players.is-multi) .stage-info h2 { font-size: 1.05rem; }
.stage:has(.stage-players.is-multi) .stage-actions .btn { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.chat:has(.chat-tab:nth-child(2)) .chat-head { display: none; }
.chat:not(:has(.chat-tab:nth-child(2))) .chat-tabs { display: none; }
.chat:has(.chat-tab:nth-child(2)) .chat-tabs { padding: 0.55rem 0.65rem; border-bottom: 1px solid var(--border); }
.stage-players.is-single .tile-bar { display: none; }
.stage-exit {
  display: none;
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 4;
}
.stage-players:fullscreen,
.stage-players:-webkit-full-screen {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  gap: 2px;
  padding: 0;
  background: #000;
}
.stage-players:fullscreen[data-count="1"],
.stage-players:-webkit-full-screen[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.stage-players:fullscreen[data-count="2"],
.stage-players:-webkit-full-screen[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.stage-players:fullscreen[data-count="3"],
.stage-players:-webkit-full-screen[data-count="3"] { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr; }
.stage-players:fullscreen[data-count="4"],
.stage-players:-webkit-full-screen[data-count="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.stage-players:fullscreen .stage-exit,
.stage-players:-webkit-full-screen .stage-exit { display: inline-flex; }
.stage-players:fullscreen .stage-tile,
.stage-players:-webkit-full-screen .stage-tile {
  position: relative;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.stage-players:fullscreen .stage-tile.is-focus,
.stage-players:-webkit-full-screen .stage-tile.is-focus { box-shadow: inset 0 0 0 2px var(--primary); }
.stage-players:fullscreen .player,
.stage-players:-webkit-full-screen .player { position: absolute; inset: 0; aspect-ratio: auto; height: auto; }
.stage-players:fullscreen .tile-bar,
.stage-players:-webkit-full-screen .tile-bar {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
@media (max-aspect-ratio: 3/4) {
  .stage-players:fullscreen[data-count="2"],
  .stage-players:-webkit-full-screen[data-count="2"] { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .stage-players:fullscreen[data-count="3"],
  .stage-players:-webkit-full-screen[data-count="3"] { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr 1fr; }
}
.tile-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
}
.tile-name {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile-name:hover, .stage-tile.is-focus .tile-name { color: var(--primary); }
.tile-bar .muted { margin-left: auto; font-size: 0.75rem; white-space: nowrap; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--background); }
.player iframe, .player > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.paint-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  background: color-mix(in oklch, var(--background) 85%, transparent);
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.paint-chip img { width: 4rem; height: 2.5rem; object-fit: cover; border-radius: 0.15rem; }
.paint-chip span { display: flex; flex-direction: column; font-size: 0.78rem; }
.paint-chip strong { font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.stage-info { gap: 0.9rem; align-items: center; justify-content: space-between; }
.logo-mark { width: 2.75rem; height: 2.75rem; }
.stage-info h2 { font-size: 1.7rem; }
.stage-info .name-row { flex-wrap: wrap; }
.stage-actions { flex-wrap: wrap; }
.chat { min-height: 36rem; display: flex; flex-direction: column; }
.chat-tabs { display: flex; gap: 0.35rem; padding: 0.15rem 0.75rem 0.55rem; overflow-x: auto; }
.chat-tab {
  flex: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 0.35rem;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.chat-tab.is-on { color: var(--foreground); border-color: var(--primary); background: color-mix(in oklch, var(--primary) 16%, transparent); }
.stage-battle { display: flex; flex-direction: column; gap: 0.85rem; padding: 0.85rem 1rem; min-height: 0; }
.stage-battle-title { display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; color: inherit; }
.stage-battle-title .display { font-size: 1.35rem; }
.stage-battle-title:hover .display { color: var(--primary); }
.stage-checkin { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; }
.stage-score, .stage-teams { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.stage-score li, .stage-teams li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.stage-teams li span:first-child { display: flex; flex-direction: column; min-width: 0; }
.stage-teams a { text-decoration: none; font-size: 0.78rem; }
.stage-teams a.stage-team-name { font-size: inherit; color: inherit; }
.stage-teams a.stage-team-name:hover strong { color: var(--primary); }
.stage-teams strong, .stage-score strong, .pick-row strong { font-family: var(--font-display); text-transform: uppercase; }
.battle-picks { display: flex; flex-direction: column; gap: 0.55rem; }
.stage-picks-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.pick-note { margin: 0; font-size: 0.78rem; }
.stage-picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.45rem; align-items: center; }
.pick-row a { color: inherit; text-decoration: none; }
.pick-row a:hover strong, .roster-name-link:hover .roster-name { color: var(--primary); }
.pick-row.is-yours strong { color: var(--primary); }
.pick-row span:first-child { display: flex; flex-direction: column; min-width: 0; }
.pick-count { font-family: var(--font-display); font-size: 1.15rem; }
.pick-button { padding: 0.3rem 0.7rem; }
.twitch-chat { flex: 1; width: 100%; min-height: 32rem; border: 0; background: #0e0e10; }
.chat-empty { padding: 1rem; }
.chat[hidden] { display: none; }
.chat-head, .chat-form { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); }
.chat-form { border-bottom: 0; border-top: 1px solid var(--border); display: flex; gap: 0.5rem; }
.live-kicker { color: var(--live); }
.chat-log { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.92rem; }
.chat-user { font-weight: 700; display: inline-flex; align-items: center; gap: 0.2rem; }
.chat-primary { color: var(--primary); }
.chat-live { color: var(--live); }
.chat-foreground { color: var(--foreground); }
.chat-muted { color: var(--muted); }
.chat-form input, .stack-form input, .stack-form textarea, .stack-form select, .inline-form input, .forum-search input {
  width: 100%;
  border: 1px solid var(--input);
  background: var(--background);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
}
.chat-form input { flex: 1; }
.send {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.channel-grid, .paint-grid, .roster-grid, .cod-grid, .collection-grid, .flip-grid, .sponsor-grid {
  display: grid;
  gap: 1rem;
}
.sponsor-grid { list-style: none; margin: 0; padding: 0; }
.sponsor-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.sponsor-card:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8.5rem;
  padding: 1rem;
  background: color-mix(in oklch, var(--background) 72%, black);
  border-radius: 0.4rem;
}
.sponsor-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sponsor-card strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}
.sponsor-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.sponsor-card .kicker { margin-top: auto; }
.live-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  width: min(80rem, calc(100% - 2rem));
  margin: 0.85rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in oklch, var(--live) 55%, transparent);
  border-radius: 0.6rem;
  background: color-mix(in oklch, var(--live) 14%, var(--card));
  text-decoration: none;
}
.live-banner-copy { display: flex; flex: 1; flex-direction: column; gap: 0.1rem; min-width: 0; }
.live-banner-copy strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.live-banner-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-banner-cta {
  flex: none;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-banner:hover .live-banner-cta { color: #fff; }
.ticker { overflow: hidden; }
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker.is-ready .ticker-track { animation: sponsor-roll linear infinite; }
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; flex: 0 0 auto; align-items: center; }
.sponsor-marquee { border-top: 1px solid var(--border); padding: 0.8rem 0; }
.sponsor-marquee-set { gap: 2.5rem; padding-right: 2.5rem; }
.sponsor-marquee a { display: flex; flex: 0 0 auto; align-items: center; gap: 0.65rem; height: 2.6rem; color: var(--foreground); text-decoration: none; opacity: 0.92; }
.sponsor-marquee a:hover { opacity: 1; color: var(--primary); }
.sponsor-marquee img { width: 4.75rem; max-width: none; height: 2.4rem; object-fit: contain; }
.sponsor-marquee strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
@keyframes sponsor-roll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(var(--ticker-shift) * -1), 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-set[aria-hidden="true"] { display: none; }
  .sponsor-marquee .ticker-track { width: min(80rem, calc(100% - 2rem)); margin-inline: auto; justify-content: center; flex-wrap: wrap; }
  .sponsor-marquee .ticker-set { flex-wrap: wrap; justify-content: center; width: 100%; padding-right: 0; }
}
.admin-summary img.sponsor-mark {
  object-fit: contain;
  background: var(--background);
  padding: 0.12rem;
}
.channel, .paint-card, .roster-card, .cod-card { background: var(--card); border: 1px solid var(--border); border-radius: 0.6rem; }
.channel { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; text-align: left; width: 100%; color: inherit; }
.channel.is-selected { border-color: var(--primary); }
.channel:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.thumb { position: relative; aspect-ratio: 16 / 9; }
.thumb img, .paint-art img, .roster-photo img, .portrait img, .profile-hero > img { width: 100%; height: 100%; object-fit: cover; }
.thumb .live-pill { position: absolute; top: 0.5rem; left: 0.5rem; }
.on-air { position: absolute; left: 0.5rem; bottom: 0.5rem; background: var(--primary); color: var(--primary-foreground); }
.view-count { position: absolute; right: 0.5rem; bottom: 0.5rem; background: color-mix(in oklch, var(--background) 85%, transparent); }
.channel-copy { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem; }
.channel-copy strong { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; }
.channel-copy .muted, .paint-body p, .driven { font-size: 0.78rem; }
.paint-card { display: flex; flex-direction: column; overflow: hidden; }
.paint-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--background); }
.paint-art img { transition: transform 0.5s ease; }
.paint-card:hover .paint-art img { transform: scale(1.05); }
.tag { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--primary); color: var(--primary-foreground); }
.paint-body { display: flex; flex: 1; flex-direction: column; gap: 0.75rem; padding: 1rem; }
.paint-head { align-items: flex-start; }
.paint-body h3 { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }
.paint-head strong { color: var(--primary); font-family: var(--font-display); font-size: 1.25rem; }
.price-pair { display: flex; align-items: baseline; gap: 0.35rem; flex: none; }
.price-was { color: var(--muted); font-size: 0.85rem; text-decoration: line-through; font-weight: 500; }
.driven span { color: var(--foreground); font-weight: 700; }
.cart-toggle { width: 100%; margin-top: auto; }
.cart-toggle[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

.roster-grid { grid-template-columns: 1fr; }
.roster-card, .cod-card { display: flex; gap: 0.9rem; align-items: center; padding: 0.9rem; }
.roster-photo, .profile-hero > img { width: 4rem; height: 4rem; border-radius: 0.4rem; overflow: hidden; flex: none; }
.photo-pair { display: flex; gap: 1rem; }
.photo-pair figure { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.photo-pair img, .photo-empty { width: 4rem; height: 4rem; border-radius: 0.4rem; object-fit: cover; }
.photo-empty { display: grid; place-items: center; background: var(--background); border: 1px dashed var(--border); color: var(--muted); font-size: 0.7rem; text-align: center; padding: 0.3rem; }
.photo-pair figcaption, .field-note { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.field-note { margin: -0.35rem 0 0; }
.roster-name { font-size: 1.35rem; text-decoration: none; }
.roster-name-link { color: inherit; text-decoration: none; }
.share-row { display: flex; gap: 0.5rem; align-items: center; margin: 0.7rem 0; }
.share-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--input);
  background: var(--background);
  color: inherit;
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
}
.team-checkin { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.team-roster { list-style: none; margin: 0.8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.team-roster li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.team-roster strong { font-family: var(--font-display); text-transform: uppercase; }
.twitch-line { display: block; font-size: 0.78rem; text-decoration: none; }
.twitch-line:hover { color: var(--foreground); }
.cod-grid { margin-top: 1rem; }
.cod-card { flex-direction: column; align-items: stretch; }
.cod-copy { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
a.portrait, a.cod-name { color: inherit; text-decoration: none; }
a.cod-name:hover { color: var(--primary); }
.free-agents { list-style: none; margin: 0.8rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.free-agents li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.free-agents strong { font-family: var(--font-display); text-transform: uppercase; }
.profile-hero > .portrait { width: 7rem; height: 7rem; flex: none; justify-self: start; }
.social-row { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; margin: 0; padding: 0; }
.social-row a { color: var(--muted); font-size: 0.78rem; text-decoration: none; overflow-wrap: anywhere; }
.social-row a:hover { color: var(--foreground); }
.admin-portrait { position: relative; width: 2.6rem; height: 2.6rem; border-radius: 0.35rem; overflow: hidden; flex: none; background: var(--background); }
.portrait { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 0.4rem; background: var(--background); }
.portrait img, .portrait .art-crop, .admin-portrait .art-crop, .tcard-art img, .tcard-art .art-crop { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; background-repeat: no-repeat; }
.roster-block { display: flex; flex-direction: column; gap: 2.5rem; }
.roster-squad .roster-grid { margin-top: 1rem; }
.roster-squad + .roster-squad { margin-top: 1.75rem; }
.roster-block .roster-squad + .roster-squad { margin-top: 0; }
.cod-name { font-size: 1.3rem; }
.join { display: grid; gap: 1.5rem; padding: 1.5rem; border-color: color-mix(in oklch, var(--primary) 30%, transparent); scroll-margin-top: 5.5rem; }
.perks { display: flex; flex-direction: column; gap: 0.45rem; color: var(--muted); margin-top: 0.8rem; }
.perks li { display: flex; gap: 0.45rem; }
.perks span { color: var(--primary); }
.join-actions, .stack-form { display: flex; flex-direction: column; gap: 0.75rem; }
.stack-form label, .stack-form .field, .check { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.check { flex-direction: row; align-items: center; color: var(--foreground); }
.stack-form textarea { min-height: 7rem; resize: vertical; }
.creator-channel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; width: 100%; min-width: 0; }
.creator-aside { display: flex; flex-direction: column; align-items: stretch; gap: 0.85rem; width: 100%; max-width: 22rem; min-width: 0; }
.creator-aside p { margin: 0; }
.creator-aside .perks { margin-top: 0; min-width: 0; }
.creator-aside .perks li { min-width: 0; }
.creator-aside .perks li > span:last-child { min-width: 0; }
.creator-form { width: 100%; max-width: 36rem; padding: 1.25rem 1.35rem 1.35rem; }
.creator-photo { width: 5.5rem; aspect-ratio: 1; object-fit: cover; border-radius: 0.4rem; background: var(--background); }
.creator-form-solo { align-self: flex-start; }
.creator-form > .btn { align-self: flex-start; }
.creator-form .row-actions { flex-wrap: wrap; }
.profile-hero { align-items: center; }
.profile-hero > img { width: 7rem; height: 7rem; }
.profile-hero h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
.split-panels { display: grid; gap: 1rem; }
.split-panels .panel, .empty-live { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.7rem; }
.clip-list a { color: var(--primary); }
.clip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.clip-row { display: flex; gap: 0.7rem; align-items: center; }
.clip-row img { width: 5.6rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.3rem; background: #000; flex: none; }
.clip-row > span { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.clip-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; margin: 0; color: var(--muted); font-size: 0.85rem; }
.clip-shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.35rem; background: #000; }
.clip-shot img, .clip-inbox-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-inbox-shot { width: min(100%, 10.5rem); flex: none; }
.clip-inbox-shot img { aspect-ratio: 16 / 9; border-radius: 0.35rem; background: #000; }
.clip-inbox-form { gap: 0.55rem; }
.clip-week { padding-top: 1.15rem; scroll-margin-top: 5.5rem; }
.clip-week-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; align-items: end; }
.clip-week-head p { margin: 0.25rem 0 0; }
.clip-week-list { list-style: none; display: grid; gap: 0.75rem; margin: 0.8rem 0 0; padding: 0; }
.clip-week-card { display: flex; flex-direction: column; gap: 0.55rem; margin: 0; padding: 0.8rem; }
.clip-week-card.is-leading { border-color: var(--primary); }
.clip-week-card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.05; margin: 0; }
.clip-week-card h3 a { color: inherit; text-decoration: none; }
.clip-week-card h3 a:hover { color: var(--primary); }
.clip-week-card p { margin: 0; }
@media (min-width: 800px) {
  .clip-week-list { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}
.news-layout { display: grid; gap: 1.15rem 1.75rem; align-items: start; padding: 1.15rem 0 1rem; }
.news-lead, .news-rest, .news-side { display: flex; flex-direction: column; min-width: 0; }
.news-lead, .news-rest { gap: 1.15rem; }
.news-side { gap: 0.35rem; }
.feature-plate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 18rem;
  padding: 1.4rem 1.4rem 1.3rem;
  text-align: left;
  background:
    linear-gradient(165deg, color-mix(in oklch, var(--primary) 16%, transparent), transparent 46%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}
.feature-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.feature-kicker img { width: 1.15rem; height: 1.15rem; }
.feature-kicker-date { color: var(--muted); }
.feature-kicker-date::before { content: "·"; margin-right: 0.45rem; }
.feature-title {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.feature-sub { max-width: 36rem; margin: 0; color: var(--muted); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.feature-read-cue {
  margin: 0.2rem 0 0;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.feature-hit { display: block; color: inherit; text-decoration: none; }
.feature-hit:hover .feature-plate { border-color: color-mix(in oklch, var(--primary) 55%, var(--border)); }
.feature-hit:hover .feature-read-cue { color: #fff; }
.feature-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #0c1216;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}
.feature-card img {
  width: 100%;
  height: auto;
}
.feature-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.2rem 1.1rem;
}
.feature-card-copy h1 {
  margin: 0;
  max-width: 38rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.feature-card-copy p {
  max-width: 36rem;
  margin: 0;
  color: oklch(0.9 0.01 200);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}
.feature-card:hover { border-color: color-mix(in oklch, var(--primary) 55%, var(--border)); }
.feature-read, .story-block { display: flex; flex-direction: column; gap: 0.45rem; }
.feature-meta, .story-kicker {
  margin: 0.15rem 0 0;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature-headline, .story-block h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.feature-by { margin: 0; color: var(--muted); font-size: 0.82rem; }
.feature-media { display: grid; gap: 0.9rem; margin-top: 0.35rem; }
.feature-media figure { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
.feature-media figcaption {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stories-label {
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.top-stories { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.top-stories li { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.65rem; border-bottom: 1px solid var(--border); }
.top-stories li:last-child { border-bottom: 0; }
.top-stories a {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.62rem 0;
  text-decoration: none;
}
.story-copy {
  flex: none;
  margin-top: 0.72rem;
  border: 0;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0;
  text-transform: uppercase;
}
.story-copy:hover { color: #fff; }
.feature-headline a, .story-block h2 a { color: inherit; text-decoration: none; }
.feature-headline a:hover, .story-block h2 a:hover { color: var(--primary); }
.feature-read .share-row { margin-top: 1.25rem; }
.top-stories a:hover .story-title { color: var(--primary); }
.story-title {
  color: oklch(0.93 0.01 200);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}
.all-news {
  align-self: flex-start;
  margin-top: 0.35rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}
.all-news:hover { color: #fff; }
.story-archive { display: flex; flex-direction: column; gap: 0.7rem; }
.story-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #0c1216;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
}
.story-box:hover { border-color: color-mix(in oklch, var(--primary) 55%, var(--border)); }
.story-box-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(165deg, color-mix(in oklch, var(--primary) 18%, transparent), transparent 55%),
    var(--card);
}
.story-box-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.story-box-art img.is-mark { object-fit: contain; padding: 18%; }
.story-box-copy {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 0.85rem 0.85rem;
}
.story-box-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.story-box .story-kicker { margin: 0; }
.story-box-tag {
  flex: none;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 22%, transparent);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story-box .story-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.15rem;
  line-height: 1.02;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}
.story-box-more {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story-box:hover .story-title,
.story-box:hover .story-box-more { color: #fff; }
.news-partners {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}
.news-partners a {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 4.75rem;
  padding: 0.7rem 0.85rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: #000;
}
.news-partners img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
.story-stack, .news-social, .x-links { display: flex; flex-direction: column; gap: 0.7rem; }
.x-links { display: grid; gap: 0.75rem; }
.story-block { padding-top: 1.15rem; border-top: 1px solid var(--border); }
.news-body { margin: 0; }
.feature-read .news-body { font-size: 1.28rem; line-height: 1.7; }
.feature-read .news-body p { margin-bottom: 1.15rem; }
.feature-read .news-body h2 { margin-top: 1.6rem; font-size: 2.05rem; }
.news-body > *:first-child { margin-top: 0; }
.news-body p, .news-body h1, .news-body h2, .news-body h3, .news-body blockquote, .news-body ul, .news-body ol, .news-body pre { margin: 0 0 0.7rem; }
.news-body > *:last-child { margin-bottom: 0; }
.news-body h1, .news-body h2, .news-body h3 { font-family: var(--font-display); text-transform: uppercase; line-height: 1; }
.news-body h1 { font-size: 1.8rem; }
.news-body h2 { font-size: 1.45rem; }
.news-body h3 { font-size: 1.2rem; }
.news-body .ql-size-small { font-size: 0.75em; }
.news-body .ql-size-large { font-size: 1.5em; }
.news-body .ql-size-huge { font-size: 2.5em; }
.news-body .ql-font-serif { font-family: Georgia, "Times New Roman", serif; }
.news-body .ql-font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.news-body code, .news-body pre, .news-compose .ql-editor code, .news-compose .ql-editor pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: color-mix(in oklch, var(--background) 55%, black); color: var(--foreground); border-radius: 0.25rem; }
.news-body pre, .news-compose .ql-editor pre { white-space: pre-wrap; padding: 0.65rem 0.8rem; overflow-x: auto; }
.news-body code, .news-compose .ql-editor code { font-size: 0.85em; padding: 0.1em 0.35em; }
.news-body pre code, .news-compose .ql-editor pre code { padding: 0; background: transparent; }
.news-body img, .news-compose .ql-editor img { max-width: 100%; height: auto; }
.news-body iframe.news-embed, .news-compose .ql-editor iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 0.35rem 0; background: #000; }
.news-body video.news-video, .news-compose .ql-editor video.news-video { display: block; width: 100%; max-width: 100%; height: auto; margin: 0.35rem 0; background: #000; border-radius: 0.35rem; }
.news-body ul, .news-body ol { padding-left: 1.25rem; }
.news-body ul { list-style: disc; }
.news-body ol { list-style: decimal; }
.news-body a { color: var(--primary); }
.news-body blockquote { border-left: 3px solid var(--primary); padding-left: 0.8rem; color: var(--muted); }
.news-body .ql-align-center { text-align: center; }
.news-body .ql-align-right { text-align: right; }
.news-body .ql-align-justify { text-align: justify; }
.news-body .ql-indent-1 { margin-left: 1.5rem; }
.news-body .ql-indent-2 { margin-left: 3rem; }
.news-body .ql-indent-3 { margin-left: 4.5rem; }
.news-body .ql-indent-4 { margin-left: 6rem; }
.news-body .ql-indent-5 { margin-left: 7.5rem; }
.news-body .ql-indent-6 { margin-left: 9rem; }
.news-body .ql-indent-7 { margin-left: 10.5rem; }
.news-body .ql-indent-8 { margin-left: 12rem; }
.news-compose .ql-toolbar.ql-snow, .news-compose .ql-container.ql-snow { border-color: var(--input); }
.news-compose .ql-toolbar.ql-snow { border-radius: 0.375rem 0.375rem 0 0; background: color-mix(in oklch, var(--background) 70%, black); }
.news-compose .ql-container.ql-snow { border-radius: 0 0 0.375rem 0.375rem; background: color-mix(in oklch, var(--background) 82%, black); font-family: var(--font-sans); font-size: 0.95rem; }
.news-compose .ql-editor { min-height: 11rem; color: var(--foreground); font-weight: 400; }
.news-compose .ql-editor h1,
.news-compose .ql-editor h2,
.news-compose .ql-editor h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}
.news-compose .ql-editor h1 { font-size: 1.8rem; }
.news-compose .ql-editor h2 { font-size: 1.45rem; }
.news-compose .ql-editor h3 { font-size: 1.2rem; }
.news-compose .ql-snow .ql-picker.ql-header .ql-picker-item:not([data-value]) { display: none; }
.news-compose .ql-editor .ql-size-small { font-size: 0.75em; }
.news-compose .ql-editor .ql-size-large { font-size: 1.5em; }
.news-compose .ql-editor .ql-size-huge { font-size: 2.5em; }
.news-compose .ql-snow .ql-picker.ql-size .ql-picker-item { line-height: 1.2; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.news-compose .ql-toolbar.ql-snow .ql-formats { margin-bottom: 0.2rem; }
.news-compose .ql-snow .ql-picker.ql-header { width: 6.6rem; }
.news-compose .ql-snow .ql-picker.ql-font { width: 6.5rem; }
.news-compose .ql-snow .ql-picker.ql-size { width: 5.4rem; }
.news-compose .ql-snow .ql-toolbar button.ql-code { width: 2.15rem; }
.news-compose .ql-snow .ql-toolbar button.ql-code svg { display: none; }
.news-compose .ql-snow .ql-toolbar button.ql-code::after { content: "</>"; font: 600 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.news-compose .ql-snow .ql-picker-options { z-index: 20; }
.news-editor-note { margin: 0; }
.news-compose .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }
.news-compose .ql-snow .ql-stroke { stroke: var(--muted); }
.news-compose .ql-snow .ql-fill, .news-compose .ql-snow .ql-stroke.ql-fill { fill: var(--muted); }
.news-compose .ql-snow .ql-picker { color: var(--muted); }
.news-compose .ql-snow .ql-picker-options { background: var(--card); color: var(--foreground); }
.news-compose .ql-snow .ql-tooltip { background: var(--card); border-color: var(--border); color: var(--foreground); box-shadow: none; }
.news-compose .ql-snow .ql-tooltip input[type="text"] { background: var(--background); color: var(--foreground); border: 1px solid var(--input); }
.news-body-fallback { min-height: 8rem; }
.news-desk { display: flex; flex-direction: column; gap: 1.15rem; }
.news-desk-lede { max-width: 40rem; margin: 0; color: var(--muted); }
.news-board { display: grid; gap: 1.25rem; align-items: start; }
.news-lane { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.news-lane-head { display: flex; align-items: center; justify-content: flex-start; gap: 0.55rem; }
.news-lane-head .display { font-size: 1.55rem; }
.news-count {
  min-width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 18%, transparent);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}
.news-count.is-zero { background: var(--secondary); color: var(--muted); }
.news-card {
  display: flex;
  gap: 0.9rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--primary);
}
.news-card.is-waiting { border-left-color: color-mix(in oklch, var(--primary) 45%, var(--foreground)); }
.news-card-thumb {
  width: 7.25rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.35rem;
  flex: none;
  background: var(--secondary);
}
.news-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.news-card-top, .news-card-actions { display: flex; align-items: center; gap: 0.5rem; }
.news-card-top { justify-content: space-between; }
.news-card-actions { flex-wrap: wrap; }
.news-card h3.display { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1; overflow-wrap: break-word; }
.news-card-top { flex-wrap: wrap; }
.news-card-top time { margin-left: auto; }
.news-card-deck {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-by { margin: 0; color: var(--muted); font-size: 0.85rem; }
.news-card .btn { padding: 0.4rem 0.75rem; font-size: 0.82rem; }
.news-card-preview {
  max-height: 14rem;
  overflow: auto;
  padding: 0.7rem 0.8rem;
  border-radius: 0.4rem;
  background: color-mix(in oklch, var(--background) 72%, black);
  border: 1px solid var(--border);
}
.news-card-preview img { max-height: 8rem; width: auto; }
.news-card-edit { border-top: 1px solid var(--border); padding-top: 0.65rem; }
.news-card-edit > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.news-card-edit > summary::-webkit-details-marker { display: none; }
.news-card-edit > summary::marker { content: ""; }
.news-card-edit > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  flex: none;
}
.news-card-edit[open] > summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.news-card .news-compose { padding: 0.85rem 0 0; }
.news-card-pull {
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}
.news-empty {
  padding: 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px dashed var(--border);
  border-radius: 0.6rem;
}
.news-empty p { margin: 0; }
.news-archive {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--card);
}
.news-archive > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-archive > summary::-webkit-details-marker { display: none; }
.news-archive > summary::marker { content: ""; }
.news-archive-list { display: flex; flex-direction: column; gap: 0.7rem; padding: 0 1rem 1rem; }
.news-archive-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}
.news-archive-item h3.display { font-size: 1.2rem; }
.news-archive-item p { margin: 0.15rem 0 0; font-size: 0.85rem; }
@media (min-width: 960px) {
  .news-board { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr); }
}
@media (max-width: 959px) {
  .news-board.has-queue .news-lane.is-waiting { order: -1; }
  .news-card { flex-direction: column; }
  .news-card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

.news-compose { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.85rem; }
.news-compose .stack-form { gap: 0.9rem; }
.news-compose input, .news-compose textarea { min-height: 2.75rem; background: color-mix(in oklch, var(--background) 82%, black); }
.news-compose textarea { min-height: 8rem; }
.news-compose input::placeholder, .news-compose textarea::placeholder { color: color-mix(in oklch, var(--muted) 80%, transparent); }
.news-compose .btn { align-self: flex-start; padding-inline: 1.2rem; }
.x-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  text-decoration: none;
}
.x-card strong { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.x-card span:last-child { color: var(--primary); font-size: 0.78rem; font-weight: 700; }
.x-card:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.news-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.news-share p { margin: 0; }
.x-feed { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.35rem; min-width: 0; }
.x-feed .stories-label a { color: inherit; text-decoration: none; }
.x-feed .stories-label a:hover { color: var(--primary); }
.x-feed-open { color: var(--primary); font-weight: 700; text-decoration: none; }
.x-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 36rem;
  overflow: auto;
}
.x-post {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  color: inherit;
  text-decoration: none;
}
.x-post:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.x-post-text {
  color: var(--foreground);
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: pre-line;
}
.x-post img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  background: #15202b;
}
.others-live { margin: 0; }
.owner-live { display: flex; flex-direction: column; gap: 0.8rem; padding: 0.9rem; }
.admin-cards.collection-grid { margin-top: 0.5rem; align-items: start; grid-template-columns: repeat(auto-fill, minmax(12rem, 14rem)); }
.admin-cards .collection-slot { min-width: 0; max-width: 14rem; overflow: hidden; }
.admin-cards .tcard { width: 100%; height: auto; max-width: 100%; }
.admin-cards .remove-form { margin-top: 0.6rem; }
.clip-board, .pack-preview { display: grid; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.clip-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.clip-card:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.clip-card img { width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: 0.35rem; }
.clip-card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; }
.clip-board { grid-template-columns: 1fr; }
.pack-preview { grid-template-columns: 1fr; }
.pack-preview .panel { padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.pack-preview strong { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; }

.inline-link { color: var(--primary); }
.rule-list { margin: 0.35rem 0 0; padding-left: 1.15rem; list-style: disc; }
.rule-list li { line-height: 1.5; }
.rule-list li + li { margin-top: 0.45rem; }
.steps { display: grid; gap: 1.2rem; margin-top: 1rem; }
.steps + .muted { margin-top: 1rem; }
.steps li { display: flex; gap: 0.75rem; }
.steps span { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.steps h3 { font-size: 1rem; }
.steps p { color: var(--muted); font-size: 0.9rem; }

.opener { display: grid; gap: 1.5rem; padding: 1rem; }
.pack-choices { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.8rem 0; }
.pack-choice, .odds {
  width: 100%;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  text-align: left;
}
.pack-choice { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; cursor: pointer; }
.pack-choice strong, .pack-choice b, .card-back strong, .tcard h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
}
.pack-choice strong { font-size: 1.15rem; }
.pack-choice small { display: block; color: var(--muted); font-size: 0.78rem; }
.pack-choice b { font-size: 1.2rem; }
.pack-choice.is-active { border-color: var(--primary); background: color-mix(in oklch, var(--primary) 10%, transparent); }
.pack-choice.is-active b { color: var(--primary); }
.pack-choice:disabled { color: inherit; cursor: not-allowed; opacity: 0.62; }
.pack-visual:disabled, .pack-visual.is-locked { cursor: not-allowed; }
.pack-visual.is-locked { filter: grayscale(0.45); }
.odds ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1rem; margin-top: 0.5rem; }
.odds li { display: flex; justify-content: space-between; }
.opener-stage { min-height: 28rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.pack-visual {
  position: relative;
  width: min(16rem, 78%);
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}
.pack-visual .pack-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}
.pack-visual .pack-badge {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  max-width: 72%;
}
.pack-visual .pack-logo {
  width: 4.4rem;
  height: 4.4rem;
  max-width: 100%;
  object-fit: contain;
  flex: none;
}
.pack-visual strong {
  background: color-mix(in oklch, var(--background) 82%, transparent);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pack-visual.is-shaking { animation: pack-shake 0.9s ease-in forwards; }
.flip-grid { width: min(56rem, 100%); grid-template-columns: repeat(2, 1fr); }
.flip {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  transform-style: preserve-3d;
  transition: transform 0.7s;
  cursor: pointer;
}
.flip.is-revealed { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; }
.flip-front { transform: rotateY(180deg); }
.flip-face .tcard, .flip-face .card-back { height: 100%; aspect-ratio: auto; }
.card-back, .tcard {
  border: 2px solid color-mix(in oklch, var(--primary) 40%, transparent);
  border-radius: 0.6rem;
  background: var(--card);
  height: 100%;
}
.card-back { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; }
.card-back img { width: 4rem; height: 4rem; position: static; }
.card-back strong { letter-spacing: 0.28em; color: var(--primary); font-size: 1.2rem; }
.card-back span { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem;
  overflow: hidden;
  aspect-ratio: 5 / 7;
}
.tcard-common { border-color: var(--border); }
.tcard-rare { border-color: color-mix(in oklch, var(--primary) 60%, transparent); }
.tcard-epic { border-color: var(--primary); box-shadow: 0 0 24px -6px var(--primary); }
.tcard-legendary { border-color: var(--foreground); background: var(--secondary); box-shadow: 0 0 36px -4px var(--primary); }
.tcard-top { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rarity { border-radius: 0.15rem; padding: 0 0.3rem; }
.rarity-rare { background: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); }
.rarity-epic { background: var(--primary); color: var(--primary-foreground); }
.rarity-legendary { background: var(--foreground); color: var(--background); }
.tcard-art { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: 0.35rem; background: var(--background); }
.tcard-art-meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1.4rem 0.4rem 0.35rem;
  background: linear-gradient(transparent, color-mix(in oklch, var(--background) 90%, transparent));
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.tcard-art-meta img { position: static; width: 1.15rem; height: 1.15rem; }
.tcard h3 { flex: none; font-size: 1.35rem; line-height: 1; padding-block: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard > p, .tcard-top, .tcard-stars, .tcard-stats { flex: none; }
.tcard p { color: var(--muted); font-size: 0.75rem; }
.tcard-top { align-items: flex-start; }
.tcard-marks { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.3rem; max-width: 78%; }
.tcard-champ {
  border-radius: 0.15rem;
  padding: 0 0.3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal;
  text-align: right;
}
.special-picks { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; margin: 0; padding: 0; border: 0; }
.special-picks legend { font-weight: 700; margin-bottom: 0.15rem; }
.tcard-stars { display: flex; gap: 0.12rem; margin: 0.1rem 0 0; line-height: 1; }
.tcard-stars span { color: color-mix(in oklch, var(--muted) 45%, transparent); font-size: 0.95rem; }
.tcard-stars span.is-on { color: var(--primary); }
.tcard-stats { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
.tcard-stats div { background: color-mix(in oklch, var(--background) 60%, transparent); border-radius: 0.15rem; text-align: center; padding: 0.15rem 0; }
.tcard-stats dt { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tcard-stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; }
.holo-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, color-mix(in oklch, var(--primary) 40%, transparent) 44%, color-mix(in oklch, var(--foreground) 45%, transparent) 50%, color-mix(in oklch, var(--primary) 40%, transparent) 56%, transparent 70%);
  background-size: 250% 250%;
  mix-blend-mode: color-dodge;
  animation: sheen 4.5s linear infinite;
}
.is-missing { opacity: 0.3; filter: grayscale(1); }
.collection-slot { position: relative; }
.missing-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dup-count {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 999px;
  padding: 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
}
.progress { height: 0.4rem; background: var(--secondary); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.progress span { display: block; height: 100%; background: var(--primary); }
.deal-in { animation: deal-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.paint-prompt {
  border: 0;
  padding: 0;
  margin: auto;
  color: var(--foreground);
  background: transparent;
  width: min(40rem, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
}
.paint-prompt::backdrop { background: rgba(8, 12, 16, 0.38); }
.paint-prompt-card {
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
}
.paint-prompt-art { aspect-ratio: 16 / 8; overflow: hidden; background: #172026; }
.paint-prompt-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 64%; }
.paint-prompt-copy {
  padding: 1.1rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}
.paint-prompt-copy .display { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.paint-prompt-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.paint-prompt-never {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}
.paint-prompt-never:hover { color: var(--foreground); }
.empty-cart {
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.empty-cart .display { font-size: 1.7rem; }
.cart-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-line { display: grid; grid-template-columns: 5rem 1fr auto; gap: 0.8rem; align-items: center; padding: 0.7rem; }
.cart-line img { width: 5rem; height: 3.4rem; object-fit: cover; border-radius: 0.3rem; }
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.cart-total { justify-content: flex-end; gap: 1rem; }
.cart-total strong { font-family: var(--font-display); font-size: 1.8rem; }
.plain-list { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.plain-list li { display: flex; justify-content: space-between; gap: 1rem; }
.checkout-card { padding: 1.15rem 1.2rem 1.2rem; }
.checkout-lines { margin: 0 0 0.35rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.checkout-note { margin: 0; }
.checkout-note a { white-space: nowrap; }
.desk-section { scroll-margin-top: 5rem; }
.desk-section .section-head { flex-wrap: wrap; }
.desk-section .section-head .muted { max-width: 28rem; }
.desk-overview { display: flex; flex-direction: column; gap: 1rem; }
.desk-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; list-style: none; padding: 0; margin: 0; }
.desk-stats a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.desk-stats a.is-hot { border-left-color: var(--primary); }
.desk-stats a:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.desk-stats a.is-hot:hover { border-left-color: var(--primary); }
.desk-stats strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.desk-stats span { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stack-form label.check { flex-direction: row; align-items: center; gap: 0.5rem; color: var(--foreground); }
.stack-form label.check input { width: 1rem; height: 1rem; flex: none; accent-color: var(--primary); }
.access-desk { display: flex; flex-direction: column; gap: 1rem; }
.access-panel { display: flex; flex-direction: column; gap: 0.85rem; }
.access-panel .section-head { margin-bottom: 0; }
.access-title { font-size: 1.45rem; }
.access-form .btn, .desk-section .stack-form > .btn { align-self: flex-start; padding-inline: 1.2rem; }
.creator-desk { display: flex; flex-direction: column; gap: 1rem; }
.creator-desk > .admin-block { margin-top: 0; }
.creator-intro { display: flex; flex-direction: column; gap: 0.4rem; max-width: 40rem; }
.team-card { display: flex; flex-direction: column; gap: 0.7rem; }
.team-card > .remove-form { margin-top: 0; padding: 0.85rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 0.6rem; border-top: 1px solid var(--border); }
.roster-rows { display: flex; flex-direction: column; gap: 0.55rem; }
.roster-row { border: 1px solid var(--border); border-radius: 0.5rem; background: var(--card); }
.admin-block > summary.admin-summary,
.roster-row > summary.admin-summary { list-style: none; cursor: pointer; }
.roster-row > summary.admin-summary { padding: 0.7rem 0.9rem; }
.admin-block > summary.admin-summary::-webkit-details-marker,
.roster-row > summary.admin-summary::-webkit-details-marker { display: none; }
.admin-block > summary.admin-summary::marker,
.roster-row > summary.admin-summary::marker { content: ""; }
.admin-block > summary.admin-summary::after,
.roster-row > summary.admin-summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.75rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-0.12rem) rotate(45deg);
  flex: none;
}
.admin-block[open] > summary.admin-summary::after,
.roster-row[open] > summary.admin-summary::after { transform: translateY(0.12rem) rotate(-135deg); }
.roster-row > .roster-edit,
.roster-row > .remove-form { margin: 0 0.9rem 0.9rem; }
.roster-edit > .btn,
.creator-desk .stack-form > .btn { align-self: flex-start; width: max-content; max-width: 100%; }
.roster-edit input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.roster-edit select { min-height: 2.75rem; background-color: color-mix(in oklch, var(--background) 82%, black); }
.desk-form { padding: 1.15rem 1.2rem 1.25rem; }
.desk-form h3.display { font-size: 1.25rem; }
.desk-form input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.desk-form select { min-height: 2.75rem; background-color: color-mix(in oklch, var(--background) 82%, black); }
.stack-form.desk-form select {
  appearance: none;
  background-color: color-mix(in oklch, var(--background) 82%, black);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) center, calc(100% - 0.75rem) center;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.1rem;
}
.desk-form input[type="file"],
.roster-edit input[type="file"] { padding: 0.4rem; min-height: 2.75rem; background: color-mix(in oklch, var(--background) 82%, black); }
.desk-form input[type="file"]::file-selector-button,
.roster-edit input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.access-form input:not([type="checkbox"]):not([type="hidden"]) { min-height: 2.75rem; background: color-mix(in oklch, var(--background) 82%, black); }
.account-search { position: relative; display: flex; flex-direction: column; gap: 0.3rem; }
.account-results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  max-height: 16rem;
  overflow: auto;
  box-shadow: 0 0.8rem 1.6rem rgb(0 0 0 / 0.28);
}
.account-results button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--foreground);
  border-radius: 0.35rem;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font: inherit;
}
.account-results button strong { font-weight: 700; }
.account-results button small { color: var(--muted); font-size: 0.78rem; }
.account-results button[aria-selected="true"],
.account-results button:hover { background: color-mix(in oklch, var(--primary) 18%, transparent); }
.account-empty { padding: 0.55rem 0.65rem; color: var(--muted); font-size: 0.85rem; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem 1.25rem; border: 0; margin: 0; padding: 0; }
.access-role { max-width: 24rem; }
.access-groups { display: flex; flex-direction: column; gap: 0.55rem; }
.access-group {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: color-mix(in oklch, var(--background) 45%, transparent);
  border-left: 3px solid var(--border);
}
.access-group.has-choice,
.access-group[open] { border-left-color: var(--primary); }
.access-group > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
}
.access-group > summary::-webkit-details-marker { display: none; }
.access-group > summary::marker { content: ""; }
.access-group > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.15rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-0.12rem) rotate(45deg);
  flex: none;
}
.access-group[open] > summary::after { transform: translateY(0.12rem) rotate(-135deg); }
.access-group > summary .desk-count { margin-left: auto; }
.access-group-head { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.access-group-head .display { font-size: 1.05rem; letter-spacing: 0.04em; }
.access-group-head p { margin: 0; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.access-group > .permission-grid,
.access-group > .access-staff { padding: 0 1rem 1rem; }
.access-staff { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.stack-form .access-staff label.check { align-items: flex-start; gap: 0.65rem; margin: 0; padding: 0.85rem 0.95rem; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: 0.55rem; }
.stack-form .access-staff label.check:has(input:checked) { border-left-color: var(--primary); }
.access-staff .check input { margin-top: 0.15rem; }
.access-staff .check span { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.access-staff .check strong { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.access-staff .check small { color: var(--muted); font-size: 0.8rem; font-weight: 500; line-height: 1.35; }
.page-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.7rem; }
.page-toggles .check {
  align-items: flex-start;
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 0.6rem;
}
.page-toggles .check:has(input:checked) { border-left-color: var(--primary); }
.stack-form .page-toggles label.check { align-items: flex-start; }
.page-toggles .check span { display: flex; flex-direction: column; gap: 0.15rem; }
.page-toggles .check strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.access-list, .owner-list { display: flex; flex-direction: column; gap: 0.85rem; }
.owner-list { list-style: none; padding: 0; margin: 0; }
.owner-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
html.admin-desk body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
html.admin-desk main { flex: 1 0 auto; display: flex; flex-direction: column; }
html.admin-desk .site-footer { margin-top: auto; margin-left: 15.5rem; }
html.admin-desk.admin-nav-collapsed .site-footer { margin-left: 3.6rem; }
.admin-shell {
  width: auto;
  margin: 0 0 0 15.5rem;
  padding: 0;
  flex: 1 0 auto;
}
html.admin-nav-collapsed .admin-shell { margin-left: 3.6rem; }
.admin-main { min-width: 0; padding: 1rem 1.25rem 2.5rem; }
.admin-main .hero-band {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}
.admin-main .hero-home {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
}
.admin-main .page-stack { padding-top: 1.15rem; }
.desk-nav {
  position: fixed;
  top: var(--header);
  left: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 15.5rem;
  margin: 0;
  overflow: auto;
  padding: 0;
  background: var(--card);
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
}
html.admin-nav-collapsed .desk-nav { width: 3.6rem; }
.desk-nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: calc(100% - 1.1rem);
  margin: 0.55rem;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.desk-nav-toggle:hover { filter: brightness(1.08); color: var(--primary-foreground); }
.when-collapsed { display: none; }
html.admin-nav-collapsed .when-open { display: none; }
html.admin-nav-collapsed .when-collapsed { display: inline; }
.desk-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}
.desk-nav-label {
  padding: 0.2rem 0.65rem 0.15rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.desk-nav-group:has(.is-current) .desk-nav-label { color: var(--primary); }
.desk-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.42rem 0.65rem;
  border-radius: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.desk-nav-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-nav-link:hover { color: var(--foreground); background: var(--secondary); }
.desk-nav-link.is-current {
  color: var(--foreground);
  background: color-mix(in oklch, var(--primary) 16%, transparent);
  box-shadow: inset 3px 0 0 var(--primary);
}
html.admin-nav-collapsed .desk-nav-link { justify-content: center; padding-inline: 0.35rem; }
html.admin-nav-collapsed .desk-nav-toggle {
  justify-content: center;
  width: calc(100% - 0.7rem);
  margin: 0.35rem;
  padding: 0.5rem;
}
html.admin-nav-collapsed .desk-nav-toggle-label,
html.admin-nav-collapsed .desk-nav-link span,
html.admin-nav-collapsed .desk-nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wait-pill { background: color-mix(in oklch, var(--primary) 22%, var(--secondary)); color: var(--foreground); }
.admin-block { padding: 0.8rem 1rem 1rem; margin-top: 0.7rem; }
.admin-block summary { cursor: pointer; }
.admin-summary { display: flex; align-items: center; gap: 0.75rem; }
.admin-summary img { width: 2.6rem; height: 2.6rem; object-fit: cover; border-radius: 0.35rem; flex: none; }
.admin-summary-copy { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 0; }
.admin-summary-copy strong, .admin-summary > strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; }
.admin-history { margin-top: 1rem; }
.admin-history > summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.remove-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}
.remove-note { margin-top: 0.9rem; }
.signup-list { list-style: none; padding: 0; margin: 0.8rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; }
.signup-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding-top: 0.55rem; border-top: 1px solid var(--border); }
.signup-list li > span { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.signup-actions, .inline-drop, .coupon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem; }
.coupon-row { justify-content: space-between; padding: 0.75rem 0.9rem; }
.coupon-row label {
  flex: 1 1 16rem;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.coupon-row input:not([type="hidden"]) {
  flex: 1;
  min-width: 8rem;
  width: auto;
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
}
.coupon-row p { flex: 1; margin: 0; min-width: 12rem; }
.coupon-row .btn { flex: none; }
.checkin-note, .waitlist-label { margin-top: 0.75rem; }
.result-form { margin-top: 1rem; }
.result-form h3 { font-size: 1.4rem; }
.result-team { border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.7rem 0.8rem 0.9rem; margin: 0; }
.result-team legend { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; padding: 0 0.3rem; }
.result-place { max-width: 8rem; }
.result-sheet input { width: 100%; min-width: 4.5rem; }
.form-grid, .inline-form { display: grid; gap: 0.7rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.desk-block { padding: 1rem 1.1rem; }
.application { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.application p { white-space: pre-wrap; }
.application-answers { margin: 0.35rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; }
.application-answers div { display: flex; flex-direction: column; gap: 0.1rem; }
.application-answers dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.application-answers dd { margin: 0; white-space: pre-wrap; }
.application-answers a { color: inherit; }
.join-actions .stack-form > p { margin: 0; }
.application-intro { max-width: 40rem; margin-bottom: 1rem; }
.application-intro textarea { min-height: 5.5rem; }
.application-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.battle-grid { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.battle-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.battle-card:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.battle-card .display { font-size: 1.7rem; }
.battle-facts { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; list-style: none; padding: 0; margin: 0; }
.battle-facts li { display: flex; flex-direction: column; min-width: 6rem; }
.battle-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.6rem; }
.battle-layout { display: grid; gap: 1rem; }
.player-grid { display: grid; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.player-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  height: 100%;
  padding: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.player-card:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.player-card strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.player-mark {
  grid-row: span 3;
  align-self: start;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: oklch(0.32 0.07 var(--mark));
  color: oklch(0.93 0.04 var(--mark));
}
.profile-hero > .player-mark { width: 7rem; height: 7rem; font-size: 2rem; grid-row: auto; }
.player-card-foot, .profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem; margin-top: 0.35rem; }
.state-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--primary) 45%, var(--border));
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin: 0; }
.stat-row div { padding: 0.85rem 1rem; }
.stat-row dt { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-row dd { margin: 0.15rem 0 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; }
.standing { padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.standing-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.standing-head .display { font-size: 1.45rem; }
.standing ul { list-style: none; margin: 0.7rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.standing a { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem; text-decoration: none; color: inherit; }
.standing a:hover { color: var(--primary); }
.table-wrap a { color: inherit; }
.stack-form select {
  width: 100%;
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
}
.chip-field { display: flex; flex-direction: column; gap: 0.3rem; }
.chip-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  border: 1px solid var(--input);
  background: var(--background);
  border-radius: var(--radius);
  padding: 0.35rem 0.45rem;
  cursor: text;
}
.chip-box:focus-within { border-color: var(--ring); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 100%;
  padding: 0.12rem 0.2rem 0.12rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--primary) 45%, var(--border));
  background: color-mix(in oklch, var(--primary) 16%, var(--secondary));
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 650;
}
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button {
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.chip button:hover { color: var(--foreground); background: var(--input); }
.stack-form .chip-box .chip-entry {
  flex: 1 1 9rem;
  width: auto;
  min-width: 9rem;
  border: 0;
  background: transparent;
  padding: 0.25rem 0.3rem;
  outline: none;
}
.chip-note { margin: 0; color: var(--live); font-size: 0.78rem; font-weight: 600; }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); }
.footer-row { justify-content: space-between; padding: 1.5rem 0; color: var(--muted); font-size: 0.9rem; }
.footer-links { gap: 1.2rem; }
.footer-links a { text-decoration: none; }
.footer-brand span { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.is-busy .icon { animation: spin 0.8s linear infinite; }

@media (min-width: 640px) {
  .paint-grid, .roster-grid, .cod-grid, .flip-grid, .player-grid, .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .collection-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-home { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 800px) {
  .news-layout { grid-template-columns: minmax(0, 1fr) minmax(14.5rem, 18rem); grid-template-areas: "lead side"; }
  .news-layout.with-x-feed {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem);
  }
  .news-layout.with-x-feed .news-side {
    position: static;
    gap: 0.9rem;
  }
  .news-layout.with-x-feed .news-side .x-feed { margin-top: 0; }
  .news-layout.with-x-feed .news-side .x-feed-list { max-height: none; overflow: visible; }
  .story-boxes { grid-template-columns: 1fr 1fr; }
  .story-box { aspect-ratio: 1; }
  .story-box-art { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
  .x-links { grid-template-columns: 1fr 1fr; }
  .news-lead { grid-area: lead; }
  .news-side { grid-area: side; position: sticky; top: calc(var(--header) + 1rem); }
  .news-rest { grid-area: rest; }
  .join, .opener, .split-panels { grid-template-columns: 320px 1fr; }
  .creator-channel { grid-template-columns: minmax(14rem, 22rem) minmax(0, 36rem); justify-content: start; gap: 1.5rem 2.5rem; }
  .clip-board, .pack-preview { grid-template-columns: repeat(2, 1fr); }
  .profile-hero { display: grid; grid-template-columns: auto 1fr auto; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .desk-stats { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
  .inline-form { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1024px) {
  .stage-grid.with-chat { grid-template-columns: 1fr 340px; align-items: stretch; }
  .stage-grid.with-chat.has-battle { grid-template-columns: minmax(0, 1fr) 17rem 20rem; }
  .stage-grid.has-battle:not(.with-chat) { grid-template-columns: minmax(0, 1fr) 17rem; }
  .stage-grid.with-chat .chat,
  .stage-grid.with-chat.has-battle .stage-battle { height: 100%; min-height: 0; overflow: auto; }
  .stage-grid.with-chat .twitch-chat { min-height: 0; }
  .channel-grid, .paint-grid { grid-template-columns: repeat(4, 1fr); }
  .clip-board, .pack-preview { grid-template-columns: repeat(3, 1fr); }
  .battle-grid { grid-template-columns: repeat(2, 1fr); }
  .battle-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .roster-grid { grid-template-columns: repeat(3, 1fr); }
  .sponsor-grid { grid-template-columns: repeat(4, 1fr); }
  .player-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .cod-grid { grid-template-columns: repeat(4, 1fr); }
  .collection-grid { grid-template-columns: repeat(5, 1fr); }
  .flip-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1101px) {
  .account-icon { display: none; }
}
@media (min-width: 761px) {
  .nav .icon { display: none; }
}
@media (max-width: 1100px) {
  .site-header .nav,
  .site-header .bar-actions,
  .site-header .nav-side { gap: 0.2rem; }
  .site-header .nav a,
  .site-header .cart-link { padding-inline: 0.35rem; }
  .site-header .creator-link:has(.icon) span { display: none; }
  .site-header .bar-actions a.btn { padding: 0.4rem 0.45rem; }
  .is-in .nav a span,
  .is-in .cart-link .nav-label { display: none; }
  .is-in .nav .icon,
  .is-in .cart-link .icon { display: block; }
}
@media (max-width: 760px) {
  .nav a span, .cart-link .nav-label, .creator-link span { display: none; }
  .site-header { overflow-x: clip; }
  .site-header .bar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-inline: 0.4rem;
    box-sizing: border-box;
  }
  .nav-side, .nav-side-right { min-width: 0; }
  .brand-mark { display: none; }
  .brand-icon { display: block; }
  .site-header .bar,
  .site-header .nav-side,
  .site-header .bar-actions,
  .site-header .nav { gap: 0.1rem; }
  .site-header .nav a,
  .site-header .cart-link,
  .site-header .bar-actions a.btn { padding: 0.2rem; }
  .site-header .icon { width: 1rem; height: 1rem; }
  .stage-info { flex-wrap: wrap; }
  .stage-players.is-multi { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .permission-grid { grid-template-columns: 1fr 1fr; }
  .access-staff { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  html.admin-desk .site-footer,
  html.admin-desk.admin-nav-collapsed .site-footer { margin-left: 0; }
  .admin-shell,
  html.admin-nav-collapsed .admin-shell {
    display: block;
    width: 100%;
    margin-left: 0;
  }
  .desk-nav,
  html.admin-nav-collapsed .desk-nav {
    position: sticky;
    top: var(--header);
    left: auto;
    bottom: auto;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .admin-main { padding-inline: 1rem; }
  .admin-main .hero-home { flex-direction: column; align-items: flex-start; }
  html.admin-nav-collapsed .desk-nav-list,
  html.admin-nav-collapsed #desk-nav-list { display: none; }
  html.admin-nav-collapsed .desk-nav-toggle { justify-content: flex-start; }
  html.admin-nav-collapsed .desk-nav-toggle-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }
}
.access-list > .access-form { padding-top: 0.85rem; border-top: 1px solid var(--border); }

@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { from { background-position: 100% 100%; } to { background-position: -150% -150%; } }
@keyframes pack-shake {
  0%, 100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-4deg) scale(1.03); }
  40% { transform: rotate(4deg) scale(1.05); }
  60% { transform: rotate(-3deg) scale(1.07); }
  80% { transform: rotate(2deg) scale(1.1); }
  100% { opacity: 0; transform: scale(1.25); }
}
@keyframes deal-in {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.desk-shell { display: flex; flex-direction: column; gap: 1rem; }
.desk-lede { max-width: 42rem; margin: 0; color: var(--muted); }
.desk-board { display: grid; gap: 1.25rem; align-items: start; }
.desk-lane { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.desk-lane-head { display: flex; align-items: center; justify-content: flex-start; gap: 0.55rem; }
.desk-lane-head .display { font-size: 1.55rem; }
.desk-count {
  min-width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 18%, transparent);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}
.desk-count.is-zero { background: var(--secondary); color: var(--muted); }
.desk-grid { display: grid; gap: 0.75rem; align-items: start; }
.desk-grid > * { min-width: 0; }
.desk-card {
  display: flex;
  gap: 0.9rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--primary);
}
.desk-card.is-waiting { border-left-color: color-mix(in oklch, var(--primary) 45%, var(--foreground)); }
.desk-card.is-quiet { border-left-color: var(--border); }
.desk-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.desk-card-top, .desk-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.desk-card-top { justify-content: space-between; }
.desk-card h3.display { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1; overflow-wrap: break-word; }
.desk-card-by, .desk-card-copy, .desk-card-deck { margin: 0; }
.desk-card-by, .desk-card-deck { color: var(--muted); }
.desk-card-by { font-size: 0.85rem; }
.desk-card-by a { overflow-wrap: anywhere; }
.desk-card-copy { white-space: pre-wrap; overflow-wrap: break-word; }
.desk-card-deck {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desk-card .btn { padding: 0.4rem 0.75rem; font-size: 0.82rem; }
.desk-money {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}
.desk-empty {
  padding: 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px dashed var(--border);
  border-radius: 0.6rem;
}
.desk-empty p { margin: 0; }
.desk-shell > .admin-block { margin-top: 0; }
.desk-fold.admin-block,
.desk-fold.roster-row {
  padding: 0;
  margin-top: 0;
  border-left: 3px solid var(--primary);
}
.desk-fold.is-live { border-left-color: var(--live); }
.desk-fold.is-quiet,
.desk-fold.is-add { border-left-color: var(--border); }
.desk-fold > summary.admin-summary { padding: 0.9rem 1rem; }
.desk-fold > summary .admin-summary-copy strong,
.desk-fold > summary > strong { font-size: 1.35rem; }
.desk-fold > .stack-form,
.desk-fold > .roster-edit,
.desk-fold > .remove-form,
.desk-fold > .signup-list,
.desk-fold > .result-form,
.desk-fold > p { margin-inline: 1rem; }
.desk-fold > :last-child { margin-bottom: 1rem; }
.team-card > .desk-form { border-left: 3px solid var(--primary); }
.giveaway-meter, .giveaway-card { padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.7rem; }
.giveaway-meter h2, .giveaway-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.giveaway-meter p, .giveaway-card p { margin: 0; }
.giveaway-meter a, .giveaway-card a { color: inherit; }
.giveaway-meter-head, .giveaway-desk-actions, .giveaway-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.giveaway-count-live { margin: 0; color: var(--muted); }
.giveaway-count-live strong { color: var(--foreground); font-size: 1.35rem; }
.meter { height: 0.7rem; border-radius: 999px; background: var(--background); border: 1px solid var(--border); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--primary); }
.giveaway-list { display: flex; flex-direction: column; gap: 0.8rem; }
.giveaway-prize { font-weight: 700; }
.giveaway-count { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.giveaway-goal { max-width: 28rem; }
.giveaway-entry-list { margin-inline: 1rem; }
.giveaway-desk-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.gallery-board { display: flex; flex-direction: column; gap: 1.4rem; }
.gallery-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gallery-cats a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.gallery-cats a:hover,
.gallery-cats a[aria-current="page"] { border-color: var(--primary); color: var(--primary); }
.gallery-event { display: flex; flex-direction: column; gap: 0.85rem; }
.gallery-event .kicker { display: block; margin-bottom: 0.2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem; }
.gallery-shot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.gallery-shot:hover { border-color: color-mix(in oklch, var(--primary) 50%, var(--border)); }
.gallery-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--background); }
.gallery-shot strong, .gallery-shot .muted { padding-inline: 0.75rem; }
.gallery-shot strong { font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; }
.gallery-shot .muted { font-size: 0.85rem; }
.gallery-view {
  width: min(64rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--card);
  color: var(--foreground);
}
.gallery-view::backdrop { background: rgba(0, 0, 0, 0.72); }
.gallery-view-bar, .gallery-copy { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0.9rem 0; }
.gallery-view-nav { display: flex; gap: 0.45rem; }
.gallery-view img { display: block; width: 100%; max-height: 70dvh; object-fit: contain; background: #000; margin-top: 0.75rem; }
.gallery-copy { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.gallery-copy strong { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }
.gallery-copy p { margin: 0; }
.gallery-copy [hidden], .gallery-view-bar [hidden] { display: none; }
.feature-react {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-top: 0.8rem;
}
.feature-comments {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.feature-comments:hover { color: #fff; }
.react-bar, .news-comments, .comment { scroll-margin-top: 5.5rem; }
.react-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.feature-read > .react-bar { margin-top: 0.9rem; }
.react-bar form { margin: 0; }
.react-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 1.9rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1;
}
.react-chip.is-mine {
  border-color: color-mix(in oklch, var(--primary) 70%, var(--border));
  background: color-mix(in oklch, var(--primary) 18%, var(--card));
}
.react-chip:hover { border-color: var(--primary); }
.react-n {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.story-tally {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.news-comments {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}
.news-comments h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-comments h2 span { color: var(--muted); font-size: 0.85em; }
.comment-form { width: min(100%, 36rem); }
.comment-form textarea { min-height: 4.5rem; }
.comment-list { display: flex; flex-direction: column; width: 100%; }
.comment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.comment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; width: 100%; }
.comment-head p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.comment-head strong { color: var(--foreground); }
.comment-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-remove { margin: 0; }
.comment-remove button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0;
  text-transform: uppercase;
}
.comment-remove button:hover { color: var(--live); }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: #fff; }
.forum-home { gap: 1.15rem; }
.forum-list, .forum-board { display: flex; flex-direction: column; gap: 0.65rem; }
.forum-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.forum-row:hover { border-color: color-mix(in oklch, var(--primary) 45%, var(--border)); }
.forum-cat {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 5.5rem 5.5rem minmax(11rem, 0.85fr);
  gap: 0.85rem 1.1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--card);
}
.forum-cat > a { color: inherit; text-decoration: none; min-width: 0; }
.forum-cat strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.forum-cat > a:hover strong { color: var(--primary); }
.forum-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.forum-count b { color: var(--foreground); font-size: 1.2rem; letter-spacing: 0; }
.forum-latest { min-width: 0; text-align: right; }
.forum-latest a {
  display: block;
  overflow: hidden;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-latest a:hover { color: var(--primary); }
.forum-latest p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.82rem; }
.forum-row:hover strong { color: var(--primary); }
.forum-row strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.forum-row p { margin: 0.25rem 0 0; color: var(--muted); }
.forum-meta { color: var(--muted); font-size: 0.82rem; text-align: right; }
.forum-thread { display: flex; flex-direction: column; gap: 0.9rem; width: min(100%, 58rem); }
.forum-body { margin: 0; overflow-wrap: anywhere; }
.forum-body a { color: var(--primary); }
.forum-post { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.9rem; border-top: 1px solid var(--border); scroll-margin-top: 5.5rem; }
.forum-post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.forum-post-head p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.forum-post-head strong { color: var(--foreground); }
.forum-form { width: min(100%, 40rem); }
.forum-form textarea { min-height: 7rem; }
.forum-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.forum-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; }
.forum-row a { color: inherit; text-decoration: none; }
.forum-row a:hover strong, .forum-row.is-unread strong { color: var(--primary); }
.forum-card {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5.5rem;
}
.forum-poster { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; min-width: 0; }
.forum-poster img, .forum-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
}
.forum-avatar { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.forum-poster a { color: inherit; text-decoration: none; }
.forum-poster strong { font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.forum-sign { margin-top: 0.65rem; padding-top: 0.45rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.forum-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.45rem; }
.forum-tools a, .forum-tools button, .forum-fold summary, .forum-sort a, .forum-editor-tools button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
}
.forum-tools a:hover, .forum-tools button:hover, .forum-fold summary:hover, .forum-sort a:hover { color: var(--primary); }
.forum-sort { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.forum-sort a[aria-current="page"], .forum-prefix, .forum-solved, .forum-unread { color: var(--primary); }
.forum-prefix { font-size: 0.72em; letter-spacing: 0.12em; text-transform: uppercase; }
.forum-quote { margin: 0.65rem 0; padding: 0.45rem 0.75rem; border-left: 3px solid var(--primary); color: var(--muted); }
.forum-quote cite { display: block; margin-bottom: 0.2rem; font-style: normal; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.forum-fold { margin-top: 0.55rem; }
.forum-fold summary { width: fit-content; }
.forum-editor textarea { min-height: 7rem; }
.forum-editor-note { margin: 0.35rem 0 0; }
.forum-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.forum-pages a { color: inherit; }
.forum-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; padding: 0.9rem 1rem; }
.forum-search label {
  display: flex;
  flex: 1 1 16rem;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.forum-search .btn { flex: none; }
.forum-poll { display: flex; flex-direction: column; gap: 0.7rem; scroll-margin-top: 5.5rem; }
.poll-choice { display: flex; flex-direction: column; gap: 0.3rem; }
.poll-meter { height: 0.45rem; overflow: hidden; border-radius: 999px; background: var(--border); }
.poll-meter span { display: block; height: 100%; background: var(--primary); }
.poll-choice .btn.is-mine { border-color: var(--primary); color: var(--primary); }
#reply-box { scroll-margin-top: 5.5rem; }
@media (max-width: 760px) {
  .forum-row { flex-direction: column; gap: 0.3rem; }
  .forum-meta { text-align: left; }
  .forum-card { grid-template-columns: 1fr; }
  .forum-cat { grid-template-columns: 1fr 1fr; }
  .forum-cat > a, .forum-latest { grid-column: 1 / -1; text-align: left; }
  .forum-count { align-items: flex-start; }
}
@media (min-width: 960px) {
  .desk-board { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr); }
  .desk-grid { grid-template-columns: 1fr 1fr; }
  .desk-grid > .desk-fold[open],
  .desk-grid > .desk-fold.is-add:only-child { grid-column: 1 / -1; }
}
@media (max-width: 959px) {
  .desk-card { flex-direction: column; }
}
