@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg-page: #0d1117;
  --bg-surface-1: #151b26;
  --bg-surface-2: #1c2534;
  --bg-surface-3: #253044;
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-bright: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-2: #8fa3bd;
  --accent: #a6e635;
  --accent-bright: #c4f24e;
  --accent-ink: #131f06;
  --accent-glow: rgba(166, 230, 53, 0.28);
  --accent-soft: rgba(166, 230, 53, 0.12);
  --accent-blue: #1475e1;
  --rh-green: #00c805;
  --opp: #8b5cf6;
  --opp-bright: #a78bfa;
  --opp-soft: rgba(139, 92, 246, 0.14);
  --danger: #eb4b4b;
  --link: #4f9df5;
  --gold-ink: #1c1204;
  --gold-glow: rgba(255, 176, 24, 0.25);
  --rar-common: #b0c3d9;
  --rar-rare: #4b69ff;
  --rar-epic: #8847ff;
  --rar-legendary: #ffd700;
  --rar-rare-bright: #8496ff;
  --rar-epic-bright: #b183ff;
  --focus: #c4f24e;
  --tile-red: linear-gradient(160deg, #ff5f3c, #d91a3c 55%, #8f0f34);
  --tile-orange: linear-gradient(160deg, #ffb02e, #f0681c 55%, #b23610);
  --tile-violet: linear-gradient(160deg, #9b4dff, #6a1fd6 55%, #3c0e94);
  --tile-green: linear-gradient(160deg, #35e07c, #12a854 55%, #0a6b3c);
  --tile-blue: linear-gradient(160deg, #38a8ff, #1462e0 55%, #0b2fa0);
  --tile-gold: linear-gradient(160deg, #ffd75e, #f0a41c 55%, #a86a08);
  --tile-accent: linear-gradient(160deg, #c4f24e, #8fc91f 55%, #4d7a06);
  --tile-sheen: radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  --ease-pop: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-press: cubic-bezier(0.4, 0, 1, 1);
  --ease-reel: cubic-bezier(0.08, 0.6, 0, 1);
  --ease-celebrate: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-panel: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Anton", "Arial Narrow", Impact, system-ui, sans-serif;
  --font-ui: "Inter Tight", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --w-sidebar-open: 15rem;
  --w-sidebar: var(--w-sidebar-open);
  --w-sidebar-mini: 3.75rem;
  --w-chat: 0px;
  --w-chat-open: 21.25rem;
  --h-topbar: 3.75rem;
  --h-tabbar: 3.5rem;
  --z-topbar: 30;
  --z-rail: 40;
  --z-overlay: 50;
  --z-toast: 60;
  --bg-rail: #10151f;
  --radius-tile: 12px;
  --gap-1: 0.5rem;
  --gap-2: 0.9rem;
  --gap-3: 1.4rem;
  --gap-4: 2rem;
}

html.sidebar-mini {
  --w-sidebar: var(--w-sidebar-mini);
}

html:not(.chat-closed) {
  --w-chat: var(--w-chat-open);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3.5rem;
  z-index: var(--z-toast);
  background: var(--bg-surface-3);
  color: var(--text);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: top 120ms var(--ease-pop);
}

.skip-link:focus-visible {
  top: 0.5rem;
}

.app {
  display: grid;
  grid-template-columns: var(--w-sidebar) minmax(0, 1fr) var(--w-chat);
  min-height: 100dvh;
  transition: grid-template-columns 200ms var(--ease-panel);
}

.app-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--gap-4) 0 3rem;
  background-image:
    radial-gradient(ellipse 70% 30rem at 50% -8rem, rgba(166, 230, 53, 0.06), transparent 70%),
    radial-gradient(ellipse 34% 24rem at 92% 30rem, rgba(139, 108, 255, 0.045), transparent 70%),
    radial-gradient(ellipse 40% 30rem at 4% 70rem, rgba(166, 230, 53, 0.035), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 110px),
    linear-gradient(180deg, #0e1420 0%, var(--bg-page) 340px);
}

.page {
  max-width: 110rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

body[data-page="match"] .page {
  max-width: none;
  padding-inline: var(--gap-3);
}

.page > section {
  margin-bottom: var(--gap-4);
}

.app-footer {
  border-top: 1px solid var(--hairline);
  background: #0a0e14;
  padding: 1.2rem clamp(1rem, 2.5vw, 2rem) 1.6rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

.app-footer p {
  margin: 0.25rem 0;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  z-index: var(--z-rail);
  background: var(--bg-rail);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  container-name: rail;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  min-height: var(--h-topbar);
  border-bottom: 1px solid var(--hairline);
  flex: none;
}

.ui-form {
  display: inline-flex;
  margin: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover {
  background: var(--bg-surface-2);
  color: var(--text);
}

.ico {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.sidebar-nav {
  flex: 1 1 auto;
  padding: 0.7rem 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary:hover {
  color: var(--text);
}

.nav-group .chev {
  width: 0.85rem;
  height: 0.85rem;
  transform: rotate(-90deg);
  transition: transform 150ms var(--ease-pop);
}

.nav-group[open] > summary .chev {
  transform: rotate(0deg);
}

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 2.5rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

a.nav-row:hover {
  background: var(--bg-surface-2);
  text-decoration: none;
}

.nav-row .ico {
  color: var(--text-2);
}

.nav-on {
  background: var(--bg-surface-2);
}

.nav-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-on .ico {
  color: var(--accent);
}

.nav-off {
  color: var(--text-2);
  cursor: default;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--hairline-bright);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  color: var(--text-2);
}

.sidebar-foot {
  flex: none;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
}

.sidebar-foot p {
  margin: 0;
}

@container rail (max-width: 5rem) {
  .nav-label,
  .nav-badge,
  .nav-group summary .nav-group-label,
  .nav-group summary .chev,
  .sidebar-foot {
    display: none;
  }
  .sidebar-head {
    flex-direction: column;
    justify-content: center;
    padding: 0.6rem 0.3rem;
    gap: 0.4rem;
  }
  .sidebar-head .brand-mark {
    font-size: 1.05rem;
  }
  .nav-group summary {
    padding: 0;
    height: 1px;
    margin: 0.2rem 0.5rem;
    background: var(--hairline-bright);
    overflow: hidden;
    pointer-events: none;
  }
  .nav-row {
    justify-content: center;
    gap: 0;
    padding: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin-inline: auto;
  }
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: var(--h-topbar);
  padding: 0.35rem 1rem;
  background: var(--bg-surface-1);
  border-bottom: 1px solid rgba(166, 230, 53,0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 14px rgba(166, 230, 53,0.12);
}

.test-faucet {
  border-bottom: 1px solid rgba(166, 230, 53, 0.22);
  background: rgba(14, 23, 32, 0.98);
  color: var(--text-2);
}

.test-faucet summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2rem;
  padding: 0.3rem 1rem;
  cursor: pointer;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.test-faucet summary::marker {
  color: var(--accent);
}

.test-faucet-summary {
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.test-faucet-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0.7rem 1rem 0.9rem;
}

.test-faucet-body p {
  margin: 0.12rem 0 0;
  color: var(--text-2);
  font-size: 0.75rem;
}

.test-faucet-balance {
  color: var(--link);
  font-size: 0.8rem;
  white-space: nowrap;
}

.test-faucet-btn {
  min-width: 9rem;
}

@media (max-width: 680px) {
  .test-faucet-summary {
    display: none;
  }

  .test-faucet-body {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .test-faucet-btn {
    width: 100%;
  }
}

.burn-page {
  display: grid;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
}

.burn-hero {
  overflow: hidden;
}

.burn-lede {
  max-width: 48rem;
  margin: 1.2rem;
  color: var(--text-2);
}

.burn-warning {
  display: flex;
  gap: 0.65rem;
  margin: 0 1.2rem 1.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(235, 75, 75, 0.35);
  border-radius: 0.65rem;
  background: rgba(235, 75, 75, 0.08);
}

.burn-warning strong {
  color: var(--danger);
  white-space: nowrap;
}

.burn-warning span {
  color: var(--text-2);
}

.burn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.8fr);
  gap: 1rem;
}

.burn-card,
.burn-stats {
  padding: 1.25rem;
}

.burn-card h2,
.burn-stats h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.burn-input-row {
  display: flex;
  align-items: center;
  margin-top: 0.35rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 0.65rem;
  background: var(--bg-surface-2);
}

.burn-input-row input {
  width: 100%;
  min-width: 0;
  padding: 0.9rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
}

.burn-input-row span {
  padding-right: 0.9rem;
  color: var(--accent);
  font-weight: 800;
}

.burn-balance,
.burn-quote,
.burn-stats dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.burn-balance {
  margin: 0.65rem 0 1rem;
  color: var(--text-2);
  font-size: 0.8rem;
}

.burn-quote {
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 0.65rem;
  background: var(--bg-surface-2);
}

.burn-quote strong {
  color: var(--accent);
  font-size: 1.1rem;
}

.burn-quote small {
  flex-basis: 100%;
  color: var(--text-2);
  text-align: right;
}

.burn-card .btn {
  width: 100%;
}

.burn-coming-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10.5rem, 0.55fr) minmax(0, 1.45fr);
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
  min-height: 15rem;
  background:
    radial-gradient(circle at 12% 50%, rgba(166, 230, 53, 0.16), transparent 34%),
    var(--bg-surface-1);
}

.burn-coming-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 14rem;
  height: 14rem;
  border: 1px solid rgba(166, 230, 53, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(166, 230, 53, 0.025), 0 0 0 4rem rgba(166, 230, 53, 0.018);
  pointer-events: none;
}

.burn-coming-sticker {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  min-height: 9rem;
  padding: 1rem 1.35rem;
  border: 2px solid var(--accent-bright);
  border-radius: 12px;
  background: var(--tile-sheen), linear-gradient(145deg, var(--accent-bright), var(--accent));
  color: var(--accent-ink);
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-5deg);
  box-shadow: 0 0 30px rgba(166, 230, 53, 0.3), 0 10px 30px rgba(0, 0, 0, 0.28);
}

.burn-coming-sticker span,
.burn-coming-sticker strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
}

.burn-coming-sticker span {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.05em;
}

.burn-coming-sticker strong {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: 0.02em;
}

.burn-coming-copy {
  position: relative;
  z-index: 1;
}

.burn-coming-copy p {
  max-width: 38rem;
  margin: 0 0 1.15rem;
  color: var(--text-2);
  line-height: 1.5;
}

.burn-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
}

.burn-stats dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.burn-stats dl div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

.burn-stats dt {
  color: var(--text-2);
}

.burn-stats dd {
  margin: 0;
  text-align: right;
}

@media (max-width: 760px) {
  .burn-grid {
    grid-template-columns: 1fr;
  }

  .burn-warning {
    flex-direction: column;
  }

  .burn-coming-card {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .burn-coming-sticker {
    min-height: 7rem;
    transform: rotate(-2deg);
  }
}

/* Support desk */
.support-page {
  max-width: 72rem;
}

.support-hero {
  overflow: hidden;
  padding-bottom: 0;
}

.support-hero .panel-band {
  justify-content: space-between;
}

.support-kicker,
.support-optional {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.support-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding: 0.35rem 0 1.4rem;
}

.support-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.support-hero-copy h2,
.support-card h2,
.support-guide h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.support-hero-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.support-hero-copy > div > p:last-child {
  max-width: 40rem;
  margin: 0.65rem 0 0;
  color: var(--text-2);
}

.support-safety {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid rgba(235, 75, 75, 0.32);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(235, 75, 75, 0.1), rgba(235, 75, 75, 0.035));
}

.support-safety-icon {
  display: grid;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-weight: 900;
}

.support-safety strong,
.support-safety span {
  display: block;
}

.support-safety span {
  margin-top: 0.25rem;
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.45;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.support-card,
.support-guide {
  margin-bottom: 0;
  padding: 1.4rem;
}

.support-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}

.support-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.support-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.support-field-wide {
  grid-column: 1 / -1;
}

.support-field label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.support-field label span {
  color: rgba(143, 163, 189, 0.72);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.support-field input,
.support-field select,
.support-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--hairline-bright);
  border-radius: 10px;
  background: var(--bg-surface-2);
  color: var(--text);
  font: inherit;
}

.support-field input,
.support-field select {
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
}

.support-field textarea {
  min-height: 10.5rem;
  padding: 0.85rem;
  resize: vertical;
  line-height: 1.5;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(166, 230, 53, 0.1), 0 0 14px var(--accent-glow);
}

.support-field small {
  color: rgba(143, 163, 189, 0.72);
  font-size: 0.72rem;
}

.support-contact-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 0.38fr) minmax(0, 1fr);
  gap: 0.65rem;
}

.support-actions {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding-top: 0.3rem;
}

.support-actions .btn {
  width: 100%;
  min-height: 3.3rem;
}

.support-actions p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.76rem;
  line-height: 1.45;
}

.support-guide h2 {
  margin-bottom: 1rem;
}

.support-checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-checklist li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
}

.support-checklist li > span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
}

.support-checklist strong {
  font-size: 0.86rem;
}

.support-checklist p,
.support-guide-note p {
  margin: 0.2rem 0 0;
  color: var(--text-2);
  font-size: 0.77rem;
  line-height: 1.45;
}

.support-guide-note {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(166, 230, 53, 0.2);
  border-radius: 10px;
  background: rgba(166, 230, 53, 0.055);
}

@media (max-width: 900px) {
  .support-hero-copy,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-guide {
    order: -1;
  }

  .support-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
}

@media (max-width: 600px) {
  .support-kicker,
  .support-optional {
    display: none;
  }

  .support-hero-copy {
    gap: 1.2rem;
  }

  .support-form,
  .support-checklist,
  .support-actions,
  .support-contact-row {
    grid-template-columns: 1fr;
  }

  .support-field-wide {
    grid-column: auto;
  }

  .support-card,
  .support-guide {
    padding: 1rem;
  }
}

.topbar-menu-form {
  display: none;
}

.topbar-brand {
  display: none;
}

.topbar-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.app-chat {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
  z-index: var(--z-rail);
  background: var(--bg-rail);
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

html.chat-closed .app-chat {
  display: none;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--h-topbar);
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--hairline);
  flex: none;
}

.chat-title {
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.chat-room {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  padding: 0.3rem 0.4rem;
}

.chat-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.9rem;
}

.chat-coming {
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}

.chat-feed-head {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 1rem 0 0.4rem;
}

.chat-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chat-feed-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--bg-surface-1);
  color: var(--text);
  font-size: 0.8rem;
}

.chat-feed-link:hover {
  text-decoration: none;
  border-color: var(--hairline-bright);
}

.chat-feed-link .identicon {
  width: 1.6rem;
  height: 1.6rem;
}

.chat-feed-mid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chat-feed-res {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-feed-sub {
  font-size: 0.72rem;
}

.chat-foot {
  flex: none;
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--hairline);
}

.chat-input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.85rem;
}

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) - 1);
  background: rgba(5, 8, 12, 0.6);
}

.app-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-rail);
  height: calc(var(--h-tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-rail);
  border-top: 1px solid var(--hairline-bright);
}

.tab-form {
  flex: 1 1 0;
  display: flex;
}

.tab-item {
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-item:hover {
  color: var(--text);
  text-decoration: none;
}

.tab-on {
  color: var(--accent);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-2);
}

.break {
  word-break: break-all;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dev-banner {
  margin: 0;
  padding: 0.3rem 1rem;
  background: #041208;
  color: var(--accent);
  border-bottom: 1px solid rgba(166, 230, 53,0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}







@media (max-width: 40rem) {
  .test-strip-text {
    display: none;
  }
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.brand-season {
  font-size: 0.78rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wallet-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.2rem;
}

.wallet-status {
  font-size: 0.85rem;
  color: var(--text-2);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wallet-status:not(:empty) {
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}

.wallet-status .net-bad {
  color: var(--danger);
  font-weight: 700;
}

.btn-connect {
  font-size: 0.85rem;
}

h1 {
  font-size: 1.65rem;
  font-weight: 900;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
}

.sec-diamond {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  background: var(--tile-accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--accent-glow);
}

.page-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.panel {
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: var(--gap-3);
  margin-bottom: var(--gap-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-band {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: calc(-1 * var(--gap-3)) calc(-1 * var(--gap-3)) var(--gap-3);
  padding: 0.8rem var(--gap-3);
  border-radius: 13px 13px 0 0;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(166, 230, 53, 0.09), transparent);
}

.panel-band::before {
  content: "";
  width: 3px;
  height: 1.05rem;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.band-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  flex-wrap: wrap;
  margin-bottom: var(--gap-2);
}

.ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--bg-surface-1);
  margin-bottom: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-surface-1), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-surface-1), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  gap: 2.4rem;
  padding: 0 1.3rem;
  padding-right: 2.4rem;
  white-space: nowrap;
  align-items: center;
  height: 52px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.ticker-item .identicon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.ticker-streak {
  font-weight: 700;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

.ticker-streak.streak-legendary {
  color: var(--rar-legendary);
}

.ticker-streak.streak-epic {
  color: var(--rar-epic-bright);
}

.ticker-wallet {
  color: var(--text-2);
}

.ticker-form {
  font-size: 0.78rem;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.lobby-hero {
  position: relative;
  isolation: isolate;
  padding: 1.6rem 0 1.2rem;
}

.lobby-hero::before {
  content: "";
  position: absolute;
  inset: -8rem -12rem 0;
  background: radial-gradient(ellipse 42rem 22rem at 28% 22%, rgba(166, 230, 53,0.1), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.lobby-slogan {
  font-family: var(--font-display);
  font-size: 2.3rem;
  max-width: 52rem;
  line-height: 1.12;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

.hero-green {
  color: var(--accent);
  text-shadow: 0 0 26px var(--accent-glow);
}

.create-panel {
  border-color: rgba(166, 230, 53,0.3);
}

.identicon {
  display: inline-block;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline);
  shape-rendering: crispedges;
  flex: none;
}

.identicon-open {
  border-style: dashed;
  border-color: var(--hairline-bright);
}

.tile-grid {
  list-style: none;
  margin: var(--gap-3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr));
  gap: var(--gap-2);
}

.game-tile {
  min-width: 0;
}

.tile-link {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: var(--bg-surface-1);
  color: var(--text);
  text-align: center;
  padding: 1rem 0.8rem;
  transition: transform 120ms var(--ease-pop), border-color 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop);
}

.tile-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  background: var(--tile-sheen), var(--tile-grad, var(--tile-blue));
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent);
  mask-image: linear-gradient(180deg, #000 20%, transparent);
}

.game-join {
  --tile-grad: var(--tile-accent);
}

.game-live {
  --tile-grad: var(--tile-violet);
}

.tile-link:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  transition-duration: 180ms;
}

.tile-pot {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.tile-pot .pot-num {
  font-size: 2.4rem;
}

.tile-players {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  min-width: 0;
}

.tile-players .identicon {
  width: 1.4rem;
  height: 1.4rem;
}

.tile-action {
  position: relative;
  margin-top: 0.2rem;
}

.pot-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pot-cur {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-2);
}

.game-player {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.game-vs {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-2);
  text-transform: uppercase;
}

.game-player-open {
  font-style: italic;
}

.btn-join {
  padding: 0.55rem 1.6rem;
}

.feed-tabs {
  display: flex;
  gap: 0.4rem;
}

.feed-tab {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.feed-tab:hover {
  color: var(--text);
  border-color: var(--hairline-bright);
  text-decoration: none;
}

.feed-tab-on {
  color: var(--accent-ink);
  background: var(--tile-sheen), var(--tile-accent);
  border-color: var(--accent);
}

.feed-wrap {
  margin-top: 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: var(--bg-surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.6rem;
}

.feed {
  font-size: 0.88rem;
}

.feed td {
  vertical-align: middle;
  height: 2.75rem;
}

.feed tbody tr:nth-child(even) {
  background: var(--bg-surface-2);
}

.feed-forms {
  display: block;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

.feed-players {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.feed-players .identicon {
  width: 1.4rem;
  height: 1.4rem;
}

.feed-res {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feed-win {
  color: var(--accent-bright);
  font-weight: 700;
}

.feed-row-new td {
  animation: feed-in 700ms var(--ease-panel);
}

@keyframes feed-in {
  from {
    background: var(--accent-glow);
  }
}

.badge-live {
  display: inline-block;
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a4ff;
  border: 1px solid rgba(155, 77, 255, 0.55);
  box-shadow: 0 0 12px rgba(155, 77, 255, 0.25);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.badge-live:hover {
  text-decoration: none;
}

.how {
  margin: 1.8rem 0 0;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(166, 230, 53, 0.07), transparent 60%),
    var(--bg-surface-1);
}

.how-head {
  margin-bottom: 1.1rem;
}

.how-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  color: var(--text);
}

.how-sub {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

.how-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  row-gap: 0.35rem;
  padding: 0.85rem 0.9rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
}

.how-step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 160ms ease;
  pointer-events: none;
}

.how-step:hover::after {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.how-num {
  grid-row: 1 / span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 0.85rem;
  line-height: 1;
}

.how-ico {
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--text-2);
  opacity: 0.5;
}

.how-step-title {
  margin: 0;
  padding-right: 1.6rem;
  align-self: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.how-step-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-2);
}

.how-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.7rem 1.2rem;
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.how-note-key {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
}

.how-note-val {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--text-2);
}

@media (max-width: 40rem) {
  .how {
    padding: 1.1rem 1rem;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-line {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
}

.live-count {
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.live-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(166, 230, 53,0.85);
  margin-right: 0.45rem;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  50% {
    opacity: 0.45;
    box-shadow: 0 0 3px rgba(166, 230, 53,0.4);
  }
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(8.8rem, 100%), 1fr));
  gap: var(--gap-2);
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1rem 0.8rem 0.8rem;
  position: relative;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-2);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--tile-sheen), var(--tile-accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-ico {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
}

.step-tag {
  display: block;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
}

.btn {
  display: inline-block;
  border: 1px solid var(--hairline-bright);
  border-radius: 10px;
  background: var(--bg-surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  transition: transform 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop), border-color 120ms var(--ease-pop), background 120ms var(--ease-pop);
}

.btn:hover {
  border-color: var(--accent);
  background: var(--bg-surface-3);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-1px);
  text-decoration: none;
  transition-duration: 180ms;
}

.btn:active {
  transform: scale(0.98);
  transition: transform 90ms var(--ease-press);
}

.btn-primary {
  background: var(--tile-sheen), linear-gradient(180deg, var(--accent-bright), var(--accent));
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--tile-sheen), linear-gradient(180deg, #6ff573, #0edb17);
  box-shadow: 0 0 26px rgba(166, 230, 53,0.45);
}

.btn-ghost {
  background: transparent;
}

.btn-small {
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
}

.btn-big {
  padding: 0.85rem 1.9rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn[disabled]:hover {
  transform: none;
  border-color: var(--hairline-bright);
  background: var(--bg-surface-2);
  box-shadow: none;
}

.btn-primary[disabled]:hover {
  background: var(--tile-sheen), linear-gradient(180deg, var(--accent-bright), var(--accent));
  border-color: var(--accent);
}

.btn-busy {
  opacity: 0.55;
  pointer-events: none;
  cursor: progress;
}

.btn-busy::after {
  content: "…";
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}

th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-2);
  border-bottom: 1px solid var(--hairline-bright);
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid var(--hairline);
  padding: 0.5rem 0.7rem;
  vertical-align: top;
}

tbody tr:hover {
  background: var(--bg-surface-2);
}

.streak-cell {
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.max-badge {
  display: inline-block;
  background: var(--tile-sheen), var(--tile-gold);
  color: var(--gold-ink);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  vertical-align: middle;
  box-shadow: 0 0 12px var(--gold-glow);
}

.pool-tag {
  display: inline-block;
  border: 1px solid rgba(166, 230, 53,0.5);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  box-shadow: 0 0 8px rgba(166, 230, 53,0.15);
}

.state-badge {
  display: inline-block;
  border: 1px solid var(--hairline-bright);
  border-radius: 999px;
  padding: 0.15rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg-surface-2);
}

.st-open {
  color: var(--accent-bright);
  border-color: rgba(166, 230, 53,0.5);
  box-shadow: 0 0 12px var(--accent-glow);
}

.st-formation,
.st-drafting {
  color: #c9a4ff;
  border-color: rgba(155, 77, 255, 0.5);
  box-shadow: 0 0 12px rgba(155, 77, 255, 0.2);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.st-settled {
  color: var(--accent-bright);
  border-color: rgba(166, 230, 53,0.45);
  box-shadow: 0 0 12px rgba(166, 230, 53,0.18);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field-grow {
  flex: 1 1 16rem;
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

input,
select {
  font: inherit;
  color: var(--text);
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline-bright);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px var(--accent-glow);
}

input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.create-form {
  display: flex;
  gap: var(--gap-3);
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: var(--gap-1);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-1);
  max-width: 30rem;
  margin-top: var(--gap-3);
}

.note {
  border-left: 3px solid var(--accent);
  background: var(--bg-surface-2);
  padding: 0.6rem 0.9rem;
  color: var(--text-2);
  font-size: 0.9rem;
  border-radius: 0 8px 8px 0;
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--gap-1) var(--gap-3);
  margin: 0;
}

.kv dt {
  color: var(--text-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}

.kv dd {
  margin: 0;
}

.kv-wide {
  grid-template-columns: minmax(9rem, auto) 1fr;
}

.vs-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2);
  max-width: 48rem;
  min-height: 3.4rem;
  max-height: 4.5rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 60% 150% at 50% -30%, rgba(166, 230, 53,0.08), transparent 70%),
    var(--bg-surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0.5rem var(--gap-3);
  margin-inline: auto;
  margin-bottom: var(--gap-3);
  text-align: center;
}

.vs-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.vs-side .identicon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--bg-surface-3), 0 0 0 3px var(--hairline-bright);
}

.vs-addr {
  font-weight: 700;
  font-size: 0.95rem;
}

.power-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 999px;
  background: var(--bg-surface-2);
  padding: 0.2rem 0.8rem;
}

.power-pill-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.power-pill-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.vs-mid {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
}

.vs-mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--text-2);
}

.pot-plate {
  display: flex;
  align-items: center;
  border: 1px solid rgba(166, 230, 53,0.35);
  border-radius: 10px;
  background: var(--bg-surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.9rem 0.25rem;
}

.vs-pot {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
}

.vs-pot .pot-num {
  font-size: 1.7rem;
}

.match-id {
  font-size: 0.75rem;
}

.match-main {
  min-width: 0;
}

.match-details {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-1);
  padding: 0.7rem 1rem;
  margin-top: var(--gap-3);
}

.match-details summary {
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--text-2);
}

.match-details summary:hover {
  color: var(--text);
}

.match-details .kv {
  margin-top: 0.9rem;
}

.match-details[open] .kv {
  animation: panel-in 220ms var(--ease-panel);
}

.commit-status {
  list-style: none;
  margin: 0 0 var(--gap-3);
  padding: 0;
  display: flex;
  gap: var(--gap-3);
  flex-wrap: wrap;
}

.commit-status .ok,
.ok {
  color: var(--accent-bright);
}

.formation-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.formation-fieldset legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(16.5rem, 100%), 1fr));
  gap: var(--gap-2);
}

.formation-card {
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  transition: border-color 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop), transform 120ms var(--ease-pop);
}

.formation-card:hover {
  border-color: var(--hairline-bright);
  background: var(--bg-surface-3);
  transform: translateY(-1px);
  transition-duration: 180ms;
}

.formation-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px var(--accent-glow);
}

.formation-card:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.formation-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.f-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.f-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.f-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.f-glyph {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: none;
  padding: 0.3rem 0.35rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--bg-surface-1);
}

.fg-row {
  display: block;
  width: 2.8rem;
  height: 0.4rem;
}

.fg-off-balanced {
  background: radial-gradient(circle 0.14rem at 17% 50%, var(--accent) 97%, transparent), radial-gradient(circle 0.14rem at 50% 50%, var(--accent) 97%, transparent), radial-gradient(circle 0.14rem at 83% 50%, var(--accent) 97%, transparent);
}

.fg-off-spread {
  background: radial-gradient(circle 0.14rem at 6% 50%, var(--accent) 97%, transparent), radial-gradient(circle 0.14rem at 37% 50%, var(--accent) 97%, transparent), radial-gradient(circle 0.14rem at 68% 50%, var(--accent) 97%, transparent), radial-gradient(circle 0.14rem at 96% 50%, var(--accent) 97%, transparent);
}

.fg-off-power {
  background: radial-gradient(circle 0.14rem at 34% 50%, var(--accent) 97%, transparent), radial-gradient(circle 0.14rem at 50% 50%, var(--accent) 97%, transparent), radial-gradient(circle 0.14rem at 66% 50%, var(--accent) 97%, transparent);
}

.fg-def-balanced {
  background: radial-gradient(circle 0.14rem at 17% 50%, var(--link) 97%, transparent), radial-gradient(circle 0.14rem at 50% 50%, var(--link) 97%, transparent), radial-gradient(circle 0.14rem at 83% 50%, var(--link) 97%, transparent);
}

.fg-def-nickel {
  background: radial-gradient(circle 0.14rem at 6% 50%, var(--link) 97%, transparent), radial-gradient(circle 0.14rem at 37% 50%, var(--link) 97%, transparent), radial-gradient(circle 0.14rem at 68% 50%, var(--link) 97%, transparent), radial-gradient(circle 0.14rem at 96% 50%, var(--link) 97%, transparent);
}

.fg-def-front {
  background: radial-gradient(circle 0.14rem at 26% 50%, var(--link) 97%, transparent), radial-gradient(circle 0.14rem at 42% 50%, var(--link) 97%, transparent), radial-gradient(circle 0.14rem at 58% 50%, var(--link) 97%, transparent), radial-gradient(circle 0.14rem at 74% 50%, var(--link) 97%, transparent);
}

.f-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.15rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.08rem 0.35rem;
  border: 1px solid var(--hairline-bright);
}

.chip-off {
  color: var(--accent-bright);
  border-color: rgba(166, 230, 53,0.45);
}

.chip-def {
  color: var(--link);
  border-color: rgba(20, 117, 225, 0.55);
}

.f-trade {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.roster-head {
  display: flex;
  align-items: baseline;
  gap: var(--gap-1);
  flex-wrap: wrap;
}

.roster-meta {
  color: var(--text-2);
  font-size: 0.85rem;
  margin: 0 0 var(--gap-2);
}

.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-2);
  align-items: stretch;
}

.roster-list > .player-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: 100%;
  max-width: calc(50% - var(--gap-2) / 2);
  margin-inline: auto;
}

@media (min-width: 140rem) {
  .roster-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .roster-list > .player-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }
}

.player-card {
  --rar: var(--rar-common);
  --rar-text: var(--text);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg-surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 0;
  min-width: 0;
  transition: transform 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop);
}

.player-card:hover {
  transform: translateY(-4px) scale(1.03);
  transition-duration: 180ms;
  z-index: 2;
}

.player-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rar), color-mix(in srgb, var(--rar) 55%, black));
}

.player-card[hidden] {
  display: none;
}

.card-foil {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: conic-gradient(from var(--angle, 0deg), #f8c, #8cf 25%, #8fc 50%, #fc8 75%, #f8c);
  opacity: 0.11;
  mix-blend-mode: soft-light;
}

.tier-epic .card-foil,
.tier-legendary .card-foil {
  display: block;
  animation: foil-spin 6s linear infinite;
}

@keyframes foil-spin {
  to {
    --angle: 360deg;
  }
}

.card-shine {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.tier-legendary .card-shine {
  display: block;
}

.tier-legendary .card-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 245, 200, 0.26) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: shine-sweep 2.8s linear infinite;
}

@keyframes shine-sweep {
  to {
    transform: translateX(120%);
  }
}

.tier-legendary {
  --rar: var(--rar-legendary);
  --rar-text: var(--rar-legendary);
  --land-color: rgba(255, 215, 0, 0.75);
  border-color: color-mix(in srgb, var(--rar-legendary) 80%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 24px -8px rgba(255, 215, 0, 0.4),
    0 0 34px 0 rgba(255, 215, 0, 0.75);
}

.tier-legendary:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 24px -8px rgba(255, 215, 0, 0.4),
    0 0 40px 2px rgba(255, 215, 0, 0.85);
}

.tier-legendary .ovr-num {
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.55);
}

.tier-epic {
  --rar: var(--rar-epic);
  --rar-text: var(--rar-epic-bright);
  --land-color: rgba(136, 71, 255, 0.7);
  border-color: color-mix(in srgb, var(--rar-epic) 75%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 24px -8px rgba(136, 71, 255, 0.4),
    0 0 22px -2px rgba(136, 71, 255, 0.6);
}

.tier-epic:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 24px -8px rgba(136, 71, 255, 0.4),
    0 0 28px 0 rgba(136, 71, 255, 0.75);
}

.tier-epic .ovr-num {
  text-shadow: 0 0 12px rgba(136, 71, 255, 0.5);
}

.tier-rare {
  --rar: var(--rar-rare);
  --rar-text: var(--rar-rare-bright);
  --land-color: rgba(75, 105, 255, 0.65);
  border-color: color-mix(in srgb, var(--rar-rare) 70%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--rar-rare) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px -2px rgba(75, 105, 255, 0.55);
}

.tier-rare:hover {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--rar-rare) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px 0 rgba(75, 105, 255, 0.7);
}

.tier-common {
  --rar: var(--rar-common);
  --rar-text: var(--rar-common);
  --land-color: rgba(176, 195, 217, 0.45);
  filter: saturate(0.8);
}

.streak-legendary {
  color: var(--rar-legendary);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.streak-epic {
  color: var(--rar-epic-bright);
}

.streak-rare {
  color: var(--rar-rare-bright);
}

.streak-common {
  color: var(--text);
}

.ovr-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--rar-text, var(--text));
}

.player-card .ovr-num {
  font-size: clamp(1rem, 10cqi, 1.7rem);
}

.rating-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  background: var(--bg-surface-3);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.25rem 0.4rem;
}

.rating-plate .pos-tag {
  font-size: 9px;
  min-width: 1.9rem;
}

.pos-tag {
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  text-align: center;
  min-width: 2.2rem;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.team-swatch {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  border-radius: 3px;
}

.team-code {
  color: var(--text-2);
  font-weight: 700;
}

.avatar-svg {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.pick-card .avatar-img {
  display: block;
  width: 3.8rem;
  height: 3.8rem;
  object-fit: contain;
}

.avatar-initials {
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.player-name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
  font-size: clamp(0.68rem, 0.48rem + 1.1cqi, 0.85rem);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 92%;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.player-card.card-landed {
  animation: card-land 550ms var(--ease-celebrate);
}

.player-card.card-landed.tier-legendary {
  animation-duration: 750ms;
}

@keyframes card-land {
  0% {
    transform: scale(0.88);
    opacity: 0;
    box-shadow: 0 0 38px var(--land-color, rgba(166, 230, 53,0.7));
  }
  55% {
    transform: scale(1.03);
    opacity: 1;
    box-shadow: 0 0 26px var(--land-color, rgba(166, 230, 53,0.45));
  }
  100% {
    transform: scale(1);
  }
}

body.gold-vignette::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-toast);
  box-shadow: inset 0 0 16vmin rgba(255, 215, 0, 0.45);
  animation: vignette-out 1.1s var(--ease-panel) forwards;
}

body.win-vignette::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-toast);
  box-shadow: inset 0 0 16vmin rgba(166, 230, 53,0.4);
  animation: vignette-out 1.1s var(--ease-panel) forwards;
}

@keyframes vignette-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  min-height: 2.85rem;
  justify-content: flex-start;
}

.stat {
  display: grid;
  grid-template-columns: 4.6rem 1fr 1.6rem;
  align-items: center;
  gap: 0.4rem;
  min-height: 0.85rem;
}

.stat-label {
  font-size: 9px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statbar {
  display: block;
  width: 100%;
  height: 0.38rem;
  border-radius: 2px;
  overflow: hidden;
}

.statbar-bg {
  fill: var(--bg-surface-3);
}

.statbar-fill {
  fill: var(--rar, var(--accent));
}

.stat-value {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@container (max-width: 6rem) {
  .player-card .stats {
    display: none;
  }
}

.cands {
  position: relative;
  z-index: 1;
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

.cands summary {
  cursor: pointer;
  color: var(--text-2);
}

.cands summary:hover {
  color: var(--text);
}

.cands[open] .cand-list,
.cands[open] .table-wrap {
  animation: panel-in 220ms var(--ease-panel);
}

.cand-list {
  margin: 0.4rem 0;
  padding: 0;
  list-style: none;
}

.cand-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border-left: 2px solid var(--rar-common);
  margin-bottom: 2px;
}

.cand-list li.cr-rare {
  border-left-color: var(--rar-rare);
}

.cand-list li.cr-epic {
  border-left-color: var(--rar-epic);
}

.cand-list li.cr-legendary {
  border-left-color: var(--rar-legendary);
}

.cand-selected {
  color: var(--accent-bright);
  font-weight: 700;
  background: rgba(166, 230, 53,0.08);
}

.cand-ovr {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--rar-common);
}

.cr-rare .cand-ovr {
  color: var(--rar-rare-bright);
}

.cr-epic .cand-ovr {
  color: var(--rar-epic-bright);
}

.cr-legendary .cand-ovr {
  color: var(--rar-legendary);
}

.pick-status {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.board-chooser {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 1rem;
}

.board-choose[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px var(--accent-glow);
}

.board-hidden {
  display: none;
}

.pick-board {
  margin-top: 0.6rem;
}

.pick-board-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lock-tag {
  display: inline-block;
  border: 1px solid rgba(166, 230, 53,0.5);
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  border-radius: 4px;
  padding: 0.08rem 0.4rem;
}

.pick-locked {
  border-left: 3px solid var(--accent);
  background: var(--bg-surface-2);
  padding: 0.6rem 0.9rem;
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
}

.pick-slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}

.pick-slot {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
  padding: var(--gap-2);
}

.pick-slot.slot-resolved {
  border-color: rgba(166, 230, 53,0.45);
}

.pick-slot-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.pick-slot-head .pos-tag {
  color: var(--accent-bright);
  background: var(--bg-surface-3);
  border: 1px solid rgba(166, 230, 53,0.4);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.round-tag {
  font-weight: 800;
  color: var(--text-2);
  letter-spacing: 0.06em;
}

.pick-choice {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent-bright);
  font-size: 0.82rem;
  display: none;
}

#pick-section.js .pick-choice {
  display: inline;
}

.pick-select-label {
  display: block;
  margin-bottom: 0.25rem;
}

.pick-select {
  max-width: 100%;
}

#pick-section.js .pick-select,
#pick-section.js .pick-select-label {
  display: none;
}

.pick-cards {
  display: none;
}

#pick-section.js .pick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(8.4rem, 100%), 1fr));
  gap: var(--gap-2);
  align-items: start;
}

.pick-card {
  --rar: var(--rar-common);
  --rar-text: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  gap: 0.3rem;
  border: 2px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-1);
  color: var(--text);
  font: inherit;
  padding: 0.6rem 0.5rem 0.85rem;
  cursor: pointer;
  transition: transform 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop), border-color 120ms var(--ease-pop);
  min-width: 0;
}

.pick-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rar), color-mix(in srgb, var(--rar) 55%, black));
}

.pick-card:hover {
  transform: translateY(-4px) scale(1.03);
  transition-duration: 180ms;
  border-color: var(--hairline-bright);
  z-index: 2;
}

.pick-card:active {
  transform: scale(0.98);
  transition: transform 90ms var(--ease-press);
}

.pick-card[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px var(--accent-glow);
  background: linear-gradient(180deg, rgba(166, 230, 53,0.1), var(--bg-surface-1) 70%);
}

.pick-card .ovr-num {
  font-size: 1.3rem;
}

.pick-card .avatar-svg {
  width: 3.8rem;
}

.pick-card-name {
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pick-card-sub {
  font-size: 0.68rem;
  font-family: var(--mono);
}

.pick-card-auto .ovr-num {
  color: var(--text-2);
}

.pick-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.94);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.pick-count {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

.pick-opp {
  font-size: 0.85rem;
}

.pick-addr {
  flex: 1 1 12rem;
  min-width: 10rem;
  font-size: 0.85rem;
}

.reveal-stage {
  min-width: 0;
}

.reveal-round-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 1.45rem;
  margin: 0 0 0.9rem;
}

.reveal-round-title .pos {
  color: var(--accent-bright);
}

.reveal-cols {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-3);
}

.reveal-cols::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--hairline-bright);
}

.reveal-col {
  min-width: 0;
}

.reveal-col-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.4rem;
}

.reel {
  position: relative;
  height: 4.2rem;
  overflow: hidden;
  border: 1px solid var(--hairline-bright);
  border-radius: 10px;
  background: var(--bg-surface-1);
  margin-bottom: var(--gap-1);
}

.reel.reel-spin {
  background-image: linear-gradient(100deg, var(--bg-surface-1) 40%, var(--bg-surface-2) 50%, var(--bg-surface-1) 60%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1400ms linear infinite;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -80% 0;
  }
}

.reel-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  will-change: transform;
}

.reel-static {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-static .reel-cell {
  border-right: 0;
}

.reel-cell {
  --rar: var(--rar-common);
  flex: 0 0 auto;
  width: 4.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  border-right: 1px solid var(--hairline);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--rar) 70%, transparent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.3rem;
  min-width: 0;
}

.reel-cell.reel-team {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.reel-cell.reel-cand {
  width: 7.5rem;
}

.reel-cell-name {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--text-2);
  max-height: 2.3em;
  overflow: hidden;
}

.reel-cell-ovr {
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.reel-cell {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rar) 6%, transparent), color-mix(in srgb, var(--rar) 26%, transparent)),
    var(--bg-surface-2);
  box-shadow: inset 0 -4px 0 var(--rar), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.reel-cell.cr-rare {
  --rar: var(--rar-rare);
}

.reel-cell.cr-rare .reel-cell-ovr {
  color: var(--rar-rare-bright);
}

.reel-cell.cr-epic {
  --rar: var(--rar-epic);
}

.reel-cell.cr-epic .reel-cell-ovr {
  color: var(--rar-epic-bright);
}

.reel-cell.cr-legendary {
  --rar: var(--rar-legendary);
}

.reel-cell.cr-legendary .reel-cell-ovr {
  color: var(--rar-legendary);
}

.reel-cell.hit {
  animation: cell-pulse 550ms var(--ease-celebrate);
  box-shadow: inset 0 -3px 0 var(--rar), inset 0 0 0 1px var(--rar), 0 0 18px color-mix(in srgb, var(--rar) 60%, transparent);
  background: color-mix(in srgb, var(--rar) 14%, transparent);
}

@keyframes cell-pulse {
  0% {
    box-shadow: inset 0 -3px 0 var(--rar), inset 0 0 0 2px var(--rar), 0 0 34px color-mix(in srgb, var(--rar) 85%, transparent);
  }
  100% {
    box-shadow: inset 0 -3px 0 var(--rar), inset 0 0 0 1px var(--rar), 0 0 18px color-mix(in srgb, var(--rar) 60%, transparent);
  }
}

.reel-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg-surface-1), transparent 15%, transparent 85%, var(--bg-surface-1));
}

.reel-marker {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  z-index: 3;
  pointer-events: none;
}

.reel-marker::before,
.reel-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.reel-marker::before {
  top: 0;
  border-top: 6px solid var(--accent);
}

.reel-marker::after {
  bottom: 0;
  border-bottom: 6px solid var(--accent);
}

.reveal-cands {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-2);
  max-height: 8rem;
  overflow-y: auto;
}

.reveal-cands li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}

.reveal-cands li.hit {
  color: var(--accent-bright);
  font-weight: 700;
  background: rgba(166, 230, 53,0.1);
}

.reveal-cands li.hit .cand-ovr {
  color: var(--accent-bright);
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.row-decided {
  background: rgba(166, 230, 53,0.07);
}

.row-decided td {
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.decided-tag {
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  animation: decided-glow 1.6s ease-in-out infinite alternate;
}

@keyframes decided-glow {
  from {
    text-shadow: 0 0 4px rgba(166, 230, 53,0.25);
  }
  to {
    text-shadow: 0 0 16px rgba(166, 230, 53,0.85);
  }
}

.decided-flash {
  animation: decided-pulse 1.1s var(--ease-panel) 2;
}

@keyframes decided-pulse {
  0% {
    background: rgba(166, 230, 53,0.07);
  }
  40% {
    background: rgba(166, 230, 53,0.3);
  }
  100% {
    background: rgba(166, 230, 53,0.07);
  }
}

.opp-prof {
  font-size: 0.8rem;
  color: var(--text-2);
}

.opp-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 4px;
  padding: 0.06rem 0.3rem;
  border: 1px solid var(--hairline-bright);
  vertical-align: middle;
}

.opp-soft {
  color: #86efac;
}

.opp-solid {
  color: var(--text-2);
}

.opp-tough {
  color: #ffa14f;
  border-color: rgba(255, 161, 79, 0.45);
}

.opp-elite {
  color: var(--danger);
  border-color: rgba(235, 75, 75, 0.45);
}

.season-final {
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
}

.outcome-line {
  font-size: 1.25rem;
  font-weight: 800;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
  gap: var(--gap-2);
  margin-bottom: var(--gap-1);
}

.pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.8rem 0.6rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: var(--bg-surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pstat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--accent);
  line-height: 1.2;
  text-shadow: 0 0 18px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.pstat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  font-weight: 600;
}

.past-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}

.past-item {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--bg-surface-2);
  padding: var(--gap-2);
}

.past-head {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  flex-wrap: wrap;
}

.result-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--hairline-bright);
}

.result-won {
  color: var(--accent-bright);
  border-color: rgba(166, 230, 53,0.5);
  box-shadow: 0 0 8px rgba(166, 230, 53,0.15);
}

.result-lost {
  color: var(--danger);
  border-color: rgba(235, 75, 75, 0.45);
}

.result-tie {
  color: var(--text-2);
}

.pos-tag-cell {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.cmd {
  background: #0a0e14;
  border: 1px solid var(--hairline-bright);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.6;
}

.cmd code {
  font-family: var(--mono);
  white-space: pre;
}

.error-panel {
  max-width: 30rem;
  margin: 3rem auto;
  text-align: center;
}

.error-panel h1 {
  font-size: 3rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 0 24px var(--accent-glow);
}

@media (max-width: 75rem) {
  :root {
    --w-sidebar: var(--w-sidebar-mini);
  }
  html:not(.chat-closed) {
    --w-chat: 0px;
  }
  .sidebar-collapse-form {
    display: none;
  }
  .topbar-menu-form {
    display: inline-flex;
  }
  html:not(.chat-closed) .app-chat {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(var(--w-chat-open), 100vw);
    height: 100dvh;
    z-index: var(--z-overlay);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  }
  html.nav-open .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--w-sidebar-open);
    height: 100dvh;
    z-index: var(--z-overlay);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5);
  }
  html.nav-open .scrim {
    display: block;
  }
}

@media (max-width: 60rem) {
  .reveal-cols::before {
    display: none;
  }
}

@media (max-width: 56.25rem) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--w-sidebar-open);
    height: 100dvh;
    z-index: var(--z-overlay);
    transform: translateX(-100%);
    transition: transform 200ms var(--ease-panel);
  }
  html.nav-open .app-sidebar {
    transform: translateX(0);
  }
  .app-tabbar {
    display: flex;
  }
  .app-main {
    padding-bottom: calc(3rem + var(--h-tabbar) + env(safe-area-inset-bottom));
  }
  .app-footer {
    padding-bottom: calc(1.6rem + var(--h-tabbar) + env(safe-area-inset-bottom));
  }
  .topbar-title {
    display: none;
  }
  .topbar-brand {
    display: inline-flex;
  }
  .topbar-menu-form {
    display: none;
  }
  html:not(.chat-closed) .app-chat {
    width: 100vw;
  }
}

@media (max-width: 40rem) {
  .lobby-slogan {
    font-size: 1.6rem;
  }
  #pick-section.js .pick-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(7rem, 100%), 1fr));
  }
  .vs-header {
    flex-wrap: wrap;
    min-height: 0;
    max-height: none;
    row-gap: 0.5rem;
  }
  .vs-mid {
    order: -1;
    flex-basis: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .live-dot,
  .decided-tag,
  .badge-live,
  .st-formation,
  .st-drafting,
  body:not(.revealing) .reel.reel-spin,
  .feed-row-new td,
  body:not(.revealing) .tier-epic .card-foil,
  body:not(.revealing) .tier-legendary .card-foil,
  body:not(.revealing) .tier-legendary .card-shine::after {
    animation: none;
  }
  .app,
  .app-sidebar,
  .nav-group .chev {
    transition: none;
  }
  body:not(.revealing) .tier-epic .card-foil,
  body:not(.revealing) .tier-legendary .card-foil,
  body:not(.revealing) .tier-legendary .card-shine {
    display: none;
  }
  body.gold-vignette:not(.revealing)::after,
  body.win-vignette:not(.revealing)::after {
    display: none;
  }
  body:not(.revealing) * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.battle {
  --strip-h: 2.6rem;
  --stadium-h: clamp(20rem, calc(100dvh - var(--h-topbar) - 9rem), 34rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(30rem, 2fr) minmax(0, 1fr);
  gap: var(--gap-3);
  align-items: start;
  margin-bottom: var(--gap-4);
}

.battle-side {
  min-width: 0;
}

.battle-stage {
  min-width: 0;
}

.stage-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2);
  min-height: var(--strip-h, 2.6rem);
  max-height: 3rem;
  padding: 0.3rem var(--gap-2);
  margin-bottom: var(--gap-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background:
    radial-gradient(ellipse 60% 150% at 50% -30%, rgba(166, 230, 53,0.08), transparent 70%),
    var(--bg-surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stage-strip .vs-pot .pot-num {
  font-size: 1.5rem;
}

.battle img {
  max-width: 100%;
}

@media (max-width: 72rem) {
  .battle {
    grid-template-columns: minmax(0, 1fr);
  }
  .battle-stage {
    order: -1;
  }
}

.side-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--gap-1);
  padding: 0.4rem 0.7rem;
  margin-bottom: var(--gap-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.side-head .identicon {
  width: 1.9rem;
  height: 1.9rem;
}

.side-head .power-pill {
  padding: 0.1rem 0.55rem;
}

.side-head .power-pill-label {
  font-size: 0.55rem;
}

.side-head .power-pill-num {
  font-size: 0.95rem;
}

.side-head[data-side="b"] {
  flex-direction: row-reverse;
  text-align: right;
}

.side-id {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.side-addr {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-form {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-nums {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.side-head[data-side="b"] .side-nums {
  margin-left: 0;
  margin-right: auto;
  flex-direction: row-reverse;
}

.streak-counter {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.season-arena {
  min-height: 14rem;
  position: relative;
  display: grid;
  place-items: center;
}

.reveal-stage:not([hidden]) + .season-arena:not([hidden]) {
  margin-top: var(--gap-3);
}

.winner-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(5, 8, 12, 0.84);
  animation: overlay-in 400ms var(--ease-panel);
}

@keyframes overlay-in {
  from {
    opacity: 0;
  }
}

.winner-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160vmax;
  height: 160vmax;
  margin: -80vmax 0 0 -80vmax;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.3) 0%, rgba(255, 190, 40, 0.16) 16%, rgba(255, 170, 30, 0.06) 30%, transparent 52%);
  animation: gold-bloom 2.2s var(--ease-panel) both;
  pointer-events: none;
}

@keyframes gold-bloom {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  35% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.82;
    transform: scale(1);
  }
}

.winner-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-2);
  text-align: center;
  padding: var(--gap-3);
  animation: medal-in 550ms var(--ease-celebrate);
}

.winner-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  background: linear-gradient(180deg, #fff6cf 0%, #ffd700 45%, #f0a41c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(255, 200, 40, 0.55));
}

.winner-draw .winner-title {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text-2);
  text-shadow: none;
  filter: none;
}

.winner-draw .winner-rays {
  background: radial-gradient(circle at 50% 50%, rgba(180, 200, 220, 0.16) 0%, rgba(140, 160, 185, 0.07) 26%, transparent 50%);
}

.winner-box .identicon {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--bg-surface-3), 0 0 0 3px var(--hairline-bright), 0 0 30px var(--accent-glow);
}

.winner-addr {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.winner-take {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
}

.winner-payout {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.05;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.winner-overlay.overlay-out {
  animation: overlay-fade 450ms var(--ease-panel) forwards;
}

@keyframes overlay-fade {
  to {
    opacity: 0;
  }
}

.arena-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 1rem 1.4rem;
  opacity: 0;
  transform: scale(0.94);
}

.arena-game.arena-slam {
  opacity: 1;
  transform: scale(1);
  transition: opacity 220ms var(--ease-panel), transform 550ms var(--ease-celebrate);
}

.arena-game-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.opp-plate {
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
}

.arena-opp-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
}

.arena-opp-prof {
  font-size: 0.75rem;
  color: var(--text-2);
}

.arena-medals {
  display: flex;
  gap: 2.2rem;
  margin-top: 0.5rem;
}

.medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.medal-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  font-weight: 700;
}

.medal-mark {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: medal-in 480ms var(--ease-celebrate);
}

.medal-w .medal-mark {
  color: #eafff0;
  background: linear-gradient(180deg, #0dbf3d, #068a28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 10px rgba(166, 230, 53,0.25);
}

.medal-l .medal-mark {
  color: #ffecec;
  background: linear-gradient(180deg, #b03030, #8f2222);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes medal-in {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.12);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.decided-banner {
  position: absolute;
  inset: auto 0 0;
  padding: 0.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border-radius: 0 0 var(--radius-tile) var(--radius-tile);
  box-shadow: 0 0 34px var(--accent-glow);
  animation: medal-in 550ms var(--ease-celebrate);
}

.stage-progress {
  position: absolute;
  z-index: 1;
  inset: auto var(--gap-3) 3.7rem;
  display: flex;
  flex-direction: column;
  gap: var(--gap-1);
  align-items: center;
}

.prow {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 0.5vw, 0.3rem);
  max-width: 100%;
}

.prow-label {
  flex: none;
  width: 4.4rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #cfe4d4;
  text-align: right;
  padding-right: 0.35rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.pdot {
  width: clamp(0.45rem, 1.4vw, 0.8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.pdot.pd-win {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0 6px rgba(166, 230, 53,0.45);
}

.pdot.pd-loss {
  background: var(--danger);
  border-color: transparent;
}

.plate-settlement {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: var(--gap-2) 0;
}

.plate-settlement[hidden] {
  display: none;
}

.claim-panel {
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.claim-panel p {
  margin: 0;
}

.plate-settlement .identicon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--bg-surface-3), 0 0 0 3px var(--hairline-bright), 0 0 24px var(--accent-glow);
}

.settle-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 34px rgba(166, 230, 53,0.5);
}

.outcome-tie .settle-title {
  color: var(--text-2);
  text-shadow: none;
}

.outcome-tie .identicon {
  box-shadow: 0 0 0 2px var(--bg-surface-3), 0 0 0 3px var(--hairline-bright);
}

.podium-in {
  animation: medal-in 650ms var(--ease-celebrate);
}

@media (prefers-reduced-motion: reduce) {
  body:not(.revealing) .arena-game,
  body:not(.revealing) .medal-mark,
  body:not(.revealing) .decided-banner,
  body:not(.revealing) .podium-in,
  body:not(.revealing) .winner-rays,
  body:not(.revealing) .winner-overlay,
  body:not(.revealing) .winner-box {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.reel-cell-img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  object-position: center bottom;
  flex: 0 0 auto;
}

.mini-card {
  --rar: var(--rar-common);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: min(100%, 11.5rem);
  margin-inline: auto;
  border: 2px solid var(--rar);
  border-radius: var(--radius-tile);
  background: var(--bg-surface-1);
  box-shadow: 0 0 26px color-mix(in srgb, var(--rar) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: card-land 550ms var(--ease-celebrate);
}

.mini-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rar), color-mix(in srgb, var(--rar) 55%, black));
}

.mini-card.tier-legendary {
  animation-duration: 750ms;
}

.mini-photo {
  position: relative;
  height: 5.8rem;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    radial-gradient(85% 95% at 50% 100%, color-mix(in srgb, var(--rar) 32%, transparent), transparent 78%),
    var(--bg-surface-3);
}

.mini-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5));
}

.mini-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-2);
}

.mini-ovr {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 2;
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(10, 13, 20, 0.85);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  color: color-mix(in srgb, var(--rar) 80%, white);
  font-variant-numeric: tabular-nums;
}

.mini-nameplate {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0.28rem 0.5rem;
  background: linear-gradient(180deg, var(--bg-surface-3), var(--bg-surface-2));
  border-top: 1px solid var(--hairline-bright);
}

.mini-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  color: var(--text);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-sub {
  padding: 0.12rem 0.5rem 0.4rem;
  background: var(--bg-surface-2);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.arena-duel {
  display: flex;
  gap: clamp(1rem, 3vw, 2.6rem);
  margin-top: 0.7rem;
  align-items: flex-start;
  justify-content: center;
  max-width: 100%;
}

.chance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 0 1 7rem;
  min-width: 0;
}

.chance-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
}

.chance-bar {
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--bg-surface-3);
  overflow: hidden;
}

.chance-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b6c81, #8fa3bd);
  transition: width 700ms var(--ease-panel);
}

.chance-fill.cf-hot {
  background: linear-gradient(90deg, #029b09, var(--accent-bright));
}

.chance-fill.cf-cold {
  background: linear-gradient(90deg, #b23610, var(--danger));
}

.chance-medal {
  min-height: 4.6rem;
  display: grid;
  place-items: center;
}

@media (prefers-reduced-motion: reduce) {
  body:not(.revealing) .chance-fill {
    transition: none;
  }
  body:not(.revealing) .mini-card {
    animation: none;
  }
}
.chance-fill.cf-p25.cf-go { width: 25%; }
.chance-fill.cf-p30.cf-go { width: 30%; }
.chance-fill.cf-p35.cf-go { width: 35%; }
.chance-fill.cf-p40.cf-go { width: 40%; }
.chance-fill.cf-p45.cf-go { width: 45%; }
.chance-fill.cf-p50.cf-go { width: 50%; }
.chance-fill.cf-p55.cf-go { width: 55%; }
.chance-fill.cf-p60.cf-go { width: 60%; }
.chance-fill.cf-p65.cf-go { width: 65%; }
.chance-fill.cf-p70.cf-go { width: 70%; }
.chance-fill.cf-p75.cf-go { width: 75%; }
.chance-fill.cf-p80.cf-go { width: 80%; }
.chance-fill.cf-p85.cf-go { width: 85%; }
.chance-fill.cf-p90.cf-go { width: 90%; }
.chance-fill.cf-p95.cf-go { width: 95%; }
.chance-fill.cf-p100.cf-go { width: 100%; }

.chance-fill.cf-p5.cf-go { width: 5%; }
.chance-fill.cf-p10.cf-go { width: 10%; }
.chance-fill.cf-p15.cf-go { width: 15%; }
.chance-fill.cf-p20.cf-go { width: 20%; }



.card-photo {
  position: relative;
  flex: 0 0 auto;
  height: 5.8rem;
  overflow: hidden;
}

.card-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.45));
}

.card-photo-fallback {
  position: absolute;
  inset: 12% 18% 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.card-photo .rating-plate {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  background: rgba(10, 13, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card-photo .team-chip {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  background: rgba(10, 13, 20, 0.82);
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
}

.card-nameplate {
  position: relative;
  height: 1.5rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.np-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-card .stats {
  padding: 0.4rem 0.5rem 0.2rem;
}

.player-card .cands {
  padding: 0 0.5rem 0.45rem;
}

.lede-line {
  margin: 0.2rem 0 1rem;
  font-size: 0.9rem;
}

.create-form fieldset.chip-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.chip-fieldset legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
  padding: 0;
}

.stake-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stake-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 4.4rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 10px;
  background: var(--bg-surface-2);
  padding: 0.4rem 0.8rem 0.45rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop), transform 120ms var(--ease-pop);
}

.stake-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  transition-duration: 180ms;
}

.stake-chip:active {
  transform: scale(0.97);
  transition: transform 90ms var(--ease-press);
}

.stake-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stake-chip-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stake-chip-cur {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-2);
}

.stake-chip:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(166, 230, 53,0.16), var(--bg-surface-2) 75%);
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px var(--accent-glow);
}

.stake-chip:has(input:checked) .stake-chip-num {
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
}

.stake-chip:has(input:focus-visible),
.mode-card:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.mode-cards {
  display: flex;
  gap: 0.4rem;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 8rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 10px;
  background: var(--bg-surface-2);
  padding: 0.5rem 0.9rem 0.55rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop), transform 120ms var(--ease-pop);
}

.mode-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  transition-duration: 180ms;
}

.mode-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.mode-card-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.mode-card:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(166, 230, 53,0.16), var(--bg-surface-2) 75%);
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px var(--accent-glow);
}

.mode-card:has(input:checked) .mode-card-name {
  color: var(--accent);
}

.btn-create {
  flex: none;
}

.join-panel {
  border-color: rgba(166, 230, 53,0.3);
}

.join-line {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-join-big {
  width: 100%;
  text-align: center;
}

.podium-take {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.3rem 0 0;
}

.podium-num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.05;
  color: var(--accent);
  text-shadow: 0 0 26px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.plate-settlement .outcome-line {
  margin: 0.15rem 0 0;
  font-size: 1rem;
}

.provenance {
  margin: 0.7rem 0 0.6rem;
  font-size: 0.78rem;
}

.btn-fairness {
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
}

.podium-row {
  list-style: none;
  margin: var(--gap-1) 0 var(--gap-4);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--gap-2);
  flex-wrap: wrap;
}

.pod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 11rem;
  max-width: 100%;
  border: 2px solid var(--hairline-bright);
  border-radius: var(--radius-tile);
  background: var(--bg-surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 1.6rem 0.9rem 1rem;
}

.pod .identicon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
}

.pod-rank {
  position: absolute;
  top: 0.5rem;
  left: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-2);
}

.pod-rank::before {
  content: "#";
}

.pod-addr {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pod-record {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Leaderboard: keep podium metadata and standings legible at every app width. */
.lb-arena .podium-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 13rem));
  justify-content: center;
  align-items: end;
  flex-wrap: initial;
}

.lb-arena .pod {
  width: 100%;
  min-width: 0;
}

.lb-arena .pod-season {
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.lb-table {
  table-layout: fixed;
}

.lb-standings {
  container-type: inline-size;
  container-name: leaderboard-standings;
}

.lb-table th:nth-child(1),
.lb-table td:nth-child(1) { width: 9%; }
.lb-table th:nth-child(2),
.lb-table td:nth-child(2) { width: 25%; }
.lb-table th:nth-child(3),
.lb-table td:nth-child(3) { width: 12%; }
.lb-table th:nth-child(4),
.lb-table td:nth-child(4) { width: 10%; }
.lb-table th:nth-child(5),
.lb-table td:nth-child(5) { width: 14%; }
.lb-table th:nth-child(6),
.lb-table td:nth-child(6) { width: 30%; }

.lb-table td {
  overflow-wrap: anywhere;
}

@container leaderboard (max-width: 46rem) {
  .lb-arena .podium-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .lb-arena .pod,
  .lb-arena .pod-1 {
    padding-inline: 0.55rem;
  }

  .lb-arena .pod-addr {
    font-size: 0.76rem;
  }
}

@container leaderboard (max-width: 32rem) {
  .lb-arena {
    padding-inline: 0.85rem;
  }

  .lb-arena .lb-title {
    font-size: clamp(1.7rem, 9vw, 2.1rem);
  }

  .lb-arena .podium-row {
    grid-template-columns: minmax(0, 15rem);
    align-items: stretch;
  }

  .lb-arena .pod-1,
  .lb-arena .pod-2,
  .lb-arena .pod-3 {
    order: initial;
    padding-block: 1.8rem 1rem;
  }

  .lb-arena .pod-1 {
    order: -1;
  }
}

@container leaderboard-standings (max-width: 48rem) {
  .lb-table,
  .lb-table tbody,
  .lb-table tr,
  .lb-table td {
    display: block;
    width: 100%;
  }

  .lb-table {
    table-layout: auto;
  }

  .lb-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .lb-table tbody {
    display: grid;
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .lb-table tr {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--hairline-bright);
    border-radius: var(--radius-tile);
    background: var(--bg-surface-1);
  }

  .lb-table td,
  .lb-table td:nth-child(n) {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--hairline);
    text-align: right;
  }

  .lb-table td:last-child {
    border-bottom: 0;
  }

  .lb-table td::before {
    content: attr(data-label);
    color: var(--text-2);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
  }

  .lb-table .row-player {
    justify-content: flex-end;
  }
}

.pod-season {
  color: var(--text-2);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pod-badges {
  display: flex;
  gap: 0.3rem;
  min-height: 1.1rem;
}

.pod-1 {
  order: 2;
  padding: 2.1rem 1rem 1.4rem;
  border-color: var(--accent);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(166, 230, 53,0.14), transparent 70%),
    var(--bg-surface-1);
  box-shadow: 0 0 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pod-1 .identicon {
  width: 3.6rem;
  height: 3.6rem;
}

.pod-1 .pod-record {
  font-size: 2.4rem;
}

.pod-1 .pod-rank {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

.pod-2 {
  order: 1;
  border-color: #aeb9c9;
}

.pod-2 .pod-rank {
  color: #c6d0dd;
}

.pod-3 {
  order: 3;
}

.row-player {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.row-player .identicon {
  width: 1.4rem;
  height: 1.4rem;
}

.pool-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-2);
  padding: var(--gap-2) 0 var(--gap-1);
}

.pool-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
}

.pool-count-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1.05;
  color: var(--accent);
  text-shadow: 0 0 26px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.pool-count-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.pool-bar {
  display: block;
  width: min(28rem, 100%);
  height: 0.9rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--hairline-bright);
}

.pool-bar-bg {
  fill: var(--bg-surface-3);
}

.pool-bar-fill {
  fill: var(--accent);
}

.pool-chip {
  margin: 0.1rem 0 0;
  display: inline-block;
  border: 1px solid rgba(166, 230, 53,0.5);
  border-radius: 999px;
  padding: 0.25rem 0.95rem;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-glow);
}

.pool-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  max-width: 34rem;
}

.profile-hero .profile-id {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  margin-bottom: var(--gap-3);
}

.profile-hero .profile-id > .identicon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--bg-surface-3), 0 0 0 3px var(--hairline-bright);
}

.profile-addr {
  min-width: 0;
}

.profile-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.profile-full {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
}

.past-form {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.kv-verify dd {
  font-size: 0.92rem;
}

.verify-group .cmd {
  margin: 0.4rem 0 0.8rem;
}

@media (max-height: 56rem) {
  .reveal-round-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .reel {
    height: 3.6rem;
  }
  .console-plate {
    padding: var(--gap-2);
  }
  .mini-photo {
    height: 4.7rem;
  }
  .mini-ovr {
    font-size: 1.05rem;
  }
  .mini-name {
    font-size: 0.78rem;
  }
  .mini-sub {
    font-size: 0.58rem;
  }
  .season-arena {
    min-height: 11rem;
  }
  .arena-game {
    padding: 0.7rem 0.8rem 1rem;
  }
  .arena-game-title {
    font-size: 1.3rem;
  }
  .chance-medal {
    min-height: 3.9rem;
  }
  .medal-mark {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.4rem;
  }
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: var(--gap-2) 0.6rem;
}

.nav-sep {
  display: block;
  height: 1px;
  margin: var(--gap-2) 0.4rem;
  background: var(--hairline);
}

.sidebar-nav .nav-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 120ms var(--ease-pop), color 120ms var(--ease-pop);
}

.sidebar-nav .nav-row:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-nav .nav-row.nav-on {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.sidebar-nav .nav-row.nav-on::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.sidebar-nav .nav-row.nav-off {
  opacity: 0.45;
  cursor: default;
}

.sidebar-nav .nav-row.nav-off:hover {
  background: none;
  color: var(--text-2);
}

.sidebar-nav .nav-row .ico {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.sidebar-foot {
  margin-top: auto;
  padding: var(--gap-2) 0.6rem calc(var(--gap-2) + 0.2rem);
  display: flex;
  flex-direction: column;
  gap: var(--gap-1);
}

.help-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-1);
  text-decoration: none;
  color: var(--text);
}

.help-card:hover {
  border-color: var(--accent);
}

.help-ico {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.help-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 0.82rem;
  min-width: 0;
}

.help-text .muted {
  font-size: 0.74rem;
}

.sidebar-chain {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-2);
}

.chain-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--rh-green);
  box-shadow: 0 0 8px var(--rh-green);
}

html.sidebar-mini .help-card,
html.sidebar-mini .sidebar-chain {
  display: none;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.topbar-back:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.topbar-back .ico {
  width: 1rem;
  height: 1rem;
  transform: rotate(90deg);
}

.topbar-tagline {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tagline-hot {
  color: var(--accent-bright);
}

.outcome-tiebreak {
  margin: 0.45rem 0 0;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.active-battle-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(166, 255, 46, 0.45);
  border-radius: 999px;
  background: rgba(166, 255, 46, 0.1);
  color: var(--accent-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.active-battle-tab:hover {
  border-color: var(--accent-bright);
  background: rgba(166, 255, 46, 0.17);
}

.active-battle-tab .live-dot {
  flex: 0 0 auto;
}

@media (max-width: 60rem) {
  .topbar-tagline {
    display: none;
  }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 17rem);
  align-items: center;
  gap: var(--gap-3);
  min-height: 26rem;
  margin-bottom: var(--gap-3);
  padding: var(--gap-3) var(--gap-3) var(--gap-3) var(--gap-4);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  background-color: #0a0f16;
  background-image:
    radial-gradient(125% 135% at 50% 50%, transparent 52%, rgba(8, 12, 18, 0.85) 100%),
    linear-gradient(90deg, rgba(8, 12, 18, 0.97) 0%, rgba(8, 12, 18, 0.93) 20%, rgba(8, 12, 18, 0.6) 36%, rgba(8, 12, 18, 0.14) 52%, transparent 66%),
    url("../images/brand/hero-bg.jpg"),
    linear-gradient(120deg, #0f1620 0%, #0c1119 55%, #0a0f16 100%);
  background-repeat: no-repeat;
  background-size: cover, cover, cover, cover;
  background-position: center, center, center 30%, center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  order: 1;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-hot {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero-sub {
  margin: var(--gap-2) 0 var(--gap-2);
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-cta {
  margin-top: 0.2rem;
}

.hero-art {
  position: relative;
  order: 2;
  align-self: stretch;
  height: 100%;
  min-height: 22rem;
}

.hero-figure {
  position: absolute;
  inset: calc(-1 * var(--gap-3)) -1.5rem calc(-1 * var(--gap-3)) -1.5rem;
  background-image: url("../images/brand/qb.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.6));
}

.hero-facts {
  position: relative;
  z-index: 2;
  order: 3;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(6px);
}

.fact-ico {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.fact-ico .ico {
  width: 1.3rem;
  height: 1.3rem;
}

.fact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.fact-text strong {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fact-sub {
  font-size: 0.78rem;
  color: var(--accent-bright);
  font-weight: 600;
}

@media (max-width: 88rem) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 14rem);
    min-height: 23rem;
    padding: var(--gap-3);
  }
}

@media (max-width: 72rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 12rem);
    min-height: 20rem;
  }
  .hero-figure {
    inset: 0 -0.5rem calc(-1 * var(--gap-3)) -0.5rem;
  }
  .hero-fact {
    padding: 0.6rem;
    gap: 0.55rem;
  }
  .fact-ico {
    width: 2.1rem;
    height: 2.1rem;
  }
  .fact-text strong {
    font-size: 0.88rem;
  }
  .fact-sub {
    font-size: 0.7rem;
  }
}

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 12rem);
    min-height: 17rem;
  }
  .hero-art {
    display: none;
  }
}

@media (max-width: 46rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
}

.lobby-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-2);
  margin-bottom: var(--gap-3);
}

@media (max-width: 78rem) {
  .lobby-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lobby-col {
  min-width: 0;
  padding: var(--gap-2);
}

.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-2);
  margin-bottom: var(--gap-2);
}

.col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.col-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
}

.col-more:hover {
  color: var(--accent-bright);
}

.col-empty {
  margin: 0;
  padding: var(--gap-2) 0;
  font-size: 0.9rem;
}

.live-list,
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-link,
.result-link {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
  text-decoration: none;
  color: var(--text);
  transition: border-color 120ms var(--ease-pop), transform 120ms var(--ease-pop);
}

.live-link:hover,
.result-link:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}

.live-stake {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  line-height: 1;
}

.stake-num {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-bright);
}

.stake-cur {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
}

.live-mid {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
  flex: 1 1 auto;
}

.live-name {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-sub {
  font-size: 0.75rem;
}

.live-faces,
.result-faces {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.live-faces .identicon,
.result-faces .identicon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid var(--hairline-bright);
  background: var(--bg-surface-3);
}

.live-vs,
.result-vs {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.live-open {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px dashed var(--hairline-bright);
  color: var(--text-2);
  font-weight: 800;
  font-size: 0.8rem;
}

.live-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  flex: 0 0 auto;
}

.live-state .live-count {
  font-size: 0.85rem;
  font-weight: 800;
}

.live-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-join {
  color: var(--text-2);
}

.tag-live {
  color: var(--accent-bright);
}

.live-chev {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: var(--text-2);
  transform: rotate(-90deg);
}

.stat-tiles {
  list-style: none;
  margin: 0 0 var(--gap-2);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.4rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
  text-align: center;
}

.stat-ico {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.stat-ico .ico {
  width: 1.05rem;
  height: 1.05rem;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
}

.stat-cap {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  font-weight: 600;
}

.stat-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
}

.strip-cap {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  font-weight: 700;
}

.strip-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-bright);
}

.result-score {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  font-weight: 800;
  font-size: 0.9rem;
}

.result-dash {
  font-weight: 400;
}

.result-pay {
  font-weight: 800;
  font-size: 0.88rem;
  flex: 0 0 auto;
}

.promo-row {
  list-style: none;
  margin: 0 0 var(--gap-3);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-2);
}

@media (max-width: 64rem) {
  .promo-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.promo {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  padding: var(--gap-2) var(--gap-3);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}

.promo-green {
  background: linear-gradient(100deg, rgba(166, 230, 53, 0.16), rgba(166, 230, 53, 0.03) 60%, transparent);
  border-color: rgba(166, 230, 53, 0.28);
}

.promo-violet {
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.04) 60%, transparent);
  border-color: rgba(139, 92, 246, 0.32);
}

.promo-ico {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.promo-violet .promo-ico {
  background: var(--opp);
  color: #ffffff;
}

.promo-ico .ico {
  width: 1.5rem;
  height: 1.5rem;
}

.promo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.promo-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.4;
}

.promo-link {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.promo-link:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.create-form .stake-chip,
.create-form .mode-card,
.create-form .form-select,
.create-form .btn-create {
  height: var(--ctl-h, 3.6rem);
  min-height: 0;
  padding-block: 0;
}

.create-form .stake-chip,
.create-form .mode-card {
  justify-content: center;
  overflow: hidden;
}

.create-form .btn-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.create-form .stake-chip-num {
  font-size: 1.3rem;
  line-height: 1.1;
}

.stake-chip {
  border-color: rgba(166, 230, 53, 0.35);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-surface-2) 70%);
}

.stake-chip .stake-chip-num {
  color: var(--accent-bright);
}

.stake-chip-custom {
  gap: 0.15rem;
  min-width: 7.5rem;
  padding-inline: 0.8rem;
  cursor: text;
  border-style: dashed;
}

.stake-chip-custom:focus-within {
  border-style: solid;
}

.stake-custom-lab {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: text;
}

.stake-custom-field {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.stake-chip-custom:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.stake-custom-input {
  width: 4.8rem;
  border: 0;
  background: none;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.1;
  padding: 0;
  text-align: center;
  pointer-events: auto;
  opacity: 1;
  position: static;
  appearance: textfield;
  -moz-appearance: textfield;
}

.stake-custom-input::-webkit-outer-spin-button,
.stake-custom-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.stake-custom-input:focus {
  outline: none;
}

.stake-custom-input::placeholder {
  color: var(--text-2);
  opacity: 0.7;
}

.stake-custom-cur {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.mode-card-off {
  opacity: 0.5;
  cursor: not-allowed;
  border-style: dashed;
}

.mode-card-off:hover {
  border-color: var(--hairline-bright);
  transform: none;
}

.soon-sticker {
  position: absolute;
  top: -0.45rem;
  right: -0.6rem;
  z-index: 2;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  transform: rotate(8deg);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.create-form .mode-card-off {
  overflow: visible;
}

.chat-banner {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  margin-bottom: var(--gap-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-surface-2);
  background-image: url("../images/brand/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.chat-banner:hover {
  border-color: var(--accent);
}

.chat-head {
  gap: 0.5rem;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-title::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.chat-room {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bg-surface-2);
  color: var(--text-2);
}

.chat-coming {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 var(--gap-2);
  padding: 0.5rem;
  border: 1px dashed var(--hairline-bright);
  border-radius: 10px;
  font-size: 0.78rem;
  text-align: center;
}

.chat-feed-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  font-size: 0.66rem;
}

.chat-feed-head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hairline);
}

.chat-feed-link {
  background: var(--bg-surface-2);
  transition: border-color 120ms var(--ease-pop), transform 120ms var(--ease-pop);
}

.chat-feed-link:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}

.chat-feed-link .identicon {
  border-radius: 50%;
  border: 1px solid var(--hairline-bright);
}

.chat-feed-empty {
  margin: 0;
  padding: var(--gap-2) 0;
  font-size: 0.82rem;
  text-align: center;
}

.chat-foot {
  gap: 0.4rem;
  align-items: center;
}

.chat-input {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg-surface-2);
  color: var(--text);
}

.chat-input:disabled {
  opacity: 0.6;
}

.chat-foot .btn[disabled] {
  border-radius: 999px;
  opacity: 0.5;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.app-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: var(--gap-4) var(--gap-3);
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.foot-line {
  margin: 0 0 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.foot-tag {
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.foot-legal {
  margin: 0;
  width: 100%;
  max-width: none;
  text-wrap: pretty;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-2);
}

.waiting-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.invite-row {
  display: flex;
  justify-content: center;
  margin: 0.6rem 0;
}

.copy-ok {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.locked-wait {
  padding: 0.9rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
  text-align: center;
}

.btn-disconnect {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

.foot-legal strong {
  color: var(--text);
}

.app-main,
.page,
.app-body {
  min-width: 0;
}

.panel,
.lobby-col,
.battle-side,
.battle-stage,
.season-games,
.match-main,
.hero-copy,
.live-mid,
.result-score,
.promo-text,
.help-text,
.side-id {
  min-width: 0;
}

.btn,
.btn-primary,
.btn-big,
.promo-link,
.col-more,
.live-tag {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mono,
.vs-addr,
.side-addr,
.match-id,
.chat-feed-res {
  overflow-wrap: anywhere;
}

.table-wrap,
.feed-wrap {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 100rem) {
  .create-form {
    --ctl-h: 3.4rem;
  }
  .stake-chips,
  .mode-cards {
    flex-wrap: wrap;
  }
}

@media (max-width: 78rem) {
  .match-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 64rem) {
  .topbar-brand,
  .match-id {
    display: none;
  }
  .hero {
    text-align: left;
  }
  .season-grid {
    gap: 0.35rem;
  }
  .gtile {
    grid-template-columns: 1.8rem minmax(0, 1fr) auto auto;
    gap: 0.45rem;
  }
}

@media (max-width: 48rem) {
  :root {
    --gap-3: 1rem;
    --gap-4: 1.4rem;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: var(--gap-3);
  }
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .hero-facts {
    display: none;
  }
  .create-form {
    --ctl-h: 3.2rem;
    gap: var(--gap-2);
  }
  .create-go,
  .create-go .btn-create {
    width: 100%;
  }
  .stat-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .stat-num {
    font-size: 1.35rem;
  }
  .stat-cap {
    font-size: 0.58rem;
  }
  .promo {
    flex-wrap: wrap;
    padding: var(--gap-2);
  }
  .promo-link {
    width: 100%;
    text-align: center;
  }
  .side-fit .roster-list {
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  }
  .console {
    height: auto;
    min-height: 18rem;
    padding: var(--gap-2);
  }
  .score-num {
    font-size: clamp(2rem, 12vw, 3rem);
  }
  .games-scroll {
    max-height: 20rem;
  }
  .pot-big-num {
    font-size: 2.2rem;
  }
}

@media (max-width: 34rem) {
  .gt-opp .opp-prof {
    display: none;
  }
  .gtile {
    grid-template-columns: 1.6rem minmax(0, 1fr) auto auto;
    padding: 0.3rem 0.4rem;
  }
  .gt-who {
    display: none;
  }
  .stake-chip {
    min-width: 3.6rem;
  }
  .stake-chip-custom {
    min-width: 6.5rem;
  }
  .mode-card {
    min-width: 6.5rem;
  }
  .live-link,
  .result-link {
    flex-wrap: wrap;
    gap: 0.4rem var(--gap-2);
  }
  .prow-label {
    width: 3.2rem;
    font-size: 0.5rem;
  }
  .settle-title {
    font-size: 1.15rem;
  }
}

.player-card.card-landed.tier-legendary,
.player-card.card-landed.tier-epic,
.player-card.card-landed.tier-rare {
  animation: card-land 550ms var(--ease-celebrate), rar-pulse 1.4s var(--ease-panel) 1;
}

.player-card.card-landed.tier-legendary {
  animation-duration: 750ms, 1.9s;
}

@keyframes rar-pulse {
  0% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 0 0 var(--rar),
      0 0 46px 8px var(--rar);
  }
  60% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 0 3px transparent,
      0 0 30px 2px var(--rar);
  }
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.12),
      0 0 0 0 transparent,
      0 0 18px -2px var(--rar);
  }
}

.player-card.card-landed.tier-legendary .card-foil,
.player-card.card-landed.tier-epic .card-foil {
  display: block;
  opacity: 0;
  animation: foil-sweep 1.6s var(--ease-panel) 1;
}

@keyframes foil-sweep {
  0% {
    opacity: 0.4;
    transform: translateX(-60%) skewX(-12deg);
  }
  100% {
    opacity: 0;
    transform: translateX(60%) skewX(-12deg);
  }
}

.player-card.tier-legendary::after {
  height: 5px;
  animation: rar-bar 2.6s ease-in-out infinite alternate;
}

@keyframes rar-bar {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.6) saturate(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.revealing) .player-card.card-landed.tier-legendary,
  body:not(.revealing) .player-card.card-landed.tier-epic,
  body:not(.revealing) .player-card.card-landed.tier-rare,
  body:not(.revealing) .player-card.tier-legendary::after,
  body:not(.revealing) .player-card.card-landed .card-foil {
    animation: none;
  }
}

.audio-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.audio-btn .ico {
  width: 1.15rem;
  height: 1.15rem;
}

.audio-btn .spk-body {
  fill: currentColor;
}

.audio-btn .spk-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.audio-btn .spk-mute {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.audio-btn.audio-off {
  color: var(--text-2);
}

.audio-btn.audio-off .spk-wave {
  display: none;
}

.audio-btn.audio-off .spk-mute {
  display: inline;
}

.audio-range {
  width: 4.5rem;
  height: 1.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.audio-range:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 60rem) {
  .audio-range {
    display: none;
  }
}

.wallet-box {
  position: relative;
}

.wallet-box {
  margin-left: 0;
}

.wallet-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: var(--z-overlay);
  min-width: 14rem;
  max-width: min(20rem, calc(100vw - 2rem));
  max-height: calc(100dvh - var(--h-topbar) - 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 12px;
  background: var(--bg-surface-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.wallet-menu-head {
  margin: 0 0 0.25rem;
  padding: 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.wallet-menu-note {
  margin: 0 0 0.35rem;
  padding: 0 0.35rem;
  color: var(--text-2);
  font-size: 0.72rem;
  line-height: 1.4;
}

.wallet-menu-warning {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(166, 230, 53, 0.32);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text);
}

.wallet-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.wallet-opt:hover,
.wallet-opt:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.wallet-opt-ico {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
  background: var(--bg-surface-3);
}

.wallet-opt-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-opt-off {
  opacity: 0.45;
  cursor: not-allowed;
}

.wallet-opt-off:hover,
.wallet-opt-off:focus-visible {
  border-color: transparent;
  background: none;
}

.wallet-opt-tag {
  margin-left: auto;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.wallet-opt-cancel {
  justify-content: center;
  margin-top: 0.15rem;
  border-top: 1px solid var(--hairline);
  border-radius: 0 0 9px 9px;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.bal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem 0.3rem 0.4rem;
  border: 1px solid rgba(166, 230, 53, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  white-space: nowrap;
}

.bal-tag {
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.bal-num {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--accent-bright);
}

.bal-main {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.bal-usd {
  margin-top: 0.16rem;
  color: var(--text-2);
  font-size: 0.61rem;
  font-weight: 700;
}

.token-ca-note {
  overflow-wrap: anywhere;
}

.bal-cur {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.match-main .panel {
  max-width: 62rem;
  margin-inline: auto;
}

.join-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 34rem;
}

.join-terms {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 0.35rem 1.4rem;
  margin: var(--gap-2) 0;
  padding: var(--gap-2) var(--gap-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: var(--bg-surface-2);
  font-size: 0.9rem;
}

.join-terms dt {
  color: var(--text-2);
  text-align: left;
}

.join-terms dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.join-take {
  color: var(--accent-bright);
}

.join-panel .stack-form,
.match-main .stack-form {
  align-items: stretch;
  max-width: 26rem;
  margin-inline: auto;
}

.commit-status {
  list-style: none;
  margin: 0 0 var(--gap-2);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem var(--gap-2);
}

.commit-status li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg-surface-2);
  font-size: 0.85rem;
}

.create-form {
  --lab-h: 1.5rem;
  --ctl-h: 3.6rem;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(13rem, 1fr) minmax(0, auto);
  align-items: start;
  gap: var(--gap-3);
}

.chip-fieldset {
  min-width: 0;
}

@media (max-width: 96rem) {
  .create-form {
    grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(11rem, 1fr);
  }
  .create-go {
    grid-column: 1 / -1;
    align-items: center;
  }
}

@media (max-width: 112rem) {
  html:not(.chat-closed) .create-form {
    grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(11rem, 1fr);
  }
  html:not(.chat-closed) .create-go {
    grid-column: 1 / -1;
    align-items: center;
  }
}

@media (max-width: 56rem) {
  .create-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.chip-fieldset legend {
  display: flex;
  align-items: center;
  height: var(--lab-h);
  margin-bottom: 0;
}

.form-fieldset-grow {
  min-width: 0;
}

.form-select {
  width: 100%;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 10px;
  background: var(--bg-surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-note {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.create-go {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding-top: var(--lab-h);
}

.create-note {
  margin: 0;
  font-size: 0.72rem;
  text-align: center;
}

.battle {
  --stadium-h: clamp(20rem, calc(100dvh - var(--h-topbar) - 9rem), 34rem);
}

.console {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap-2);
  height: var(--stadium-h);
  padding: var(--gap-3) var(--gap-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  overflow: hidden;
  background-color: var(--bg-surface-1);
}

.console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/brand/console-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.32;
}

.console::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(166, 230, 53, 0.1), transparent 70%),
    radial-gradient(125% 125% at 50% 50%, transparent 42%, rgba(10, 14, 20, 0.8) 100%);
}

.score-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.score-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
}

.score-num {
  font-size: clamp(2.6rem, 6cqi + 1.6rem, 4rem);
  font-variant-numeric: tabular-nums;
}

.score-a {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.score-b {
  color: var(--opp-bright);
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
}

.score-dash {
  font-size: 2rem;
  color: var(--text-2);
}

.score-cap {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.console-plate {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 44rem);
  margin-inline: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: rgba(12, 17, 25, 0.72);
  backdrop-filter: blur(3px);
  padding: var(--gap-2);
  overflow: hidden;
}

.console-plate:has(> #settlement:not([hidden])):not(:has(> #reveal-stage:not([hidden]))):not(:has(> #season-arena:not([hidden]))) {
  border-color: transparent;
  background: none;
  backdrop-filter: none;
}

.stage-progress {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: var(--bg-surface-2);
  width: min(100%, 44rem);
  margin-inline: auto;
}

.plate-settlement {
  gap: 0.1rem;
  padding: 0.4rem 0;
}

.win-crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(166, 230, 53, 0.3), transparent 70%),
    rgba(10, 14, 20, 0.6);
}

.win-crest::after {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border-radius: 50%;
  border: 1px solid rgba(166, 230, 53, 0.22);
}

.plate-settlement .podium-num {
  background: linear-gradient(180deg, #ffffff, var(--accent-bright) 65%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.win-crest::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 22px var(--accent-glow), inset 0 0 14px rgba(166, 230, 53, 0.2);
}

.plate-settlement .identicon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  box-shadow: none;
}

.settle-title {
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--accent-bright);
}

.win-sub {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.plate-settlement .podium-take {
  margin: 0.15rem 0 0;
}

.plate-settlement .podium-num {
  font-size: 2.2rem;
}

.plate-settlement .outcome-line {
  font-size: 0.85rem;
}

.console-plate:not(:has(> :not([hidden]))) {
  border-color: transparent;
  background: none;
}

.stage-progress {
  position: static;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  inset: auto;
}

.prow {
  display: flex;
  align-items: center;
  gap: clamp(0.12rem, 0.4vw, 0.28rem);
  max-width: 100%;
}

.prow-label {
  flex: none;
  width: 4.6rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-2);
  text-align: right;
  padding-right: 0.4rem;
  text-shadow: none;
}

.pdot {
  display: grid;
  place-items: center;
  width: clamp(1rem, 1.6vw, 1.35rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--hairline-bright);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.55rem, 0.9vw, 0.78rem);
  line-height: 1;
  color: transparent;
  transition: transform 140ms var(--ease-celebrate);
}

.pdot.pd-win,
.pdot.pd-loss {
  color: var(--accent-ink);
}

.prow-a .pdot.pd-win {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 10px var(--accent-glow);
}

.prow-b .pdot.pd-win {
  background: linear-gradient(180deg, var(--opp-bright), var(--opp));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 10px rgba(139, 92, 246, 0.45);
}

.pdot.pd-loss {
  background: linear-gradient(180deg, #4a1f24, #341318);
  color: #ffd9d9;
  box-shadow: inset 0 0 0 1px rgba(235, 75, 75, 0.5);
}

.match-bottom {
  clear: both;
}

.side-fit {
  max-height: calc(var(--stadium-h) + var(--strip-h) + var(--gap-2));
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.side-fit .rosters {
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 230, 53, 0.3) transparent;
  mask-image: linear-gradient(180deg, transparent 0, #000 0.5rem, #000 calc(100% - 0.7rem), transparent 100%);
}

body.revealing .side-fit .rosters {
  overflow-y: hidden;
}

.side-fit .rosters::-webkit-scrollbar {
  width: 5px;
}

.side-fit .rosters::-webkit-scrollbar-track {
  background: transparent;
}

.side-fit .rosters::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(166, 230, 53, 0.4), rgba(166, 230, 53, 0.1));
}

.side-fit .rosters:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(166, 230, 53, 0.65), rgba(166, 230, 53, 0.2));
}

.side-fit .roster-list {
  grid-auto-rows: auto;
}

.side-fit .rosters {
  flex: 1 1 auto;
  min-height: 0;
}

.side-fit .roster {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.side-fit .roster-head,
.side-fit .roster-meta {
  display: none;
}

.side-fit .roster-list {
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
}

.side-fit .roster-list > .player-card:last-child:nth-child(odd) {
  grid-column: auto;
  max-width: none;
  margin-inline: 0;
}

.side-fit .card-photo {
  height: 4.4rem;
}

.side-fit .card-nameplate {
  height: 1.3rem;
}

.side-fit .stats {
  min-height: 2.6rem;
  gap: 0.14rem;
}

.side-fit .stat {
  grid-template-columns: 3.6rem 1fr 1.4rem;
  gap: 0.28rem;
  min-height: 0.8rem;
}

.side-fit .stat-label {
  font-size: 8.5px;
}

.side-fit .stat-value {
  font-size: 11.5px;
}

.side-fit .stat-label {
  font-size: 8px;
}

.side-fit .stat-value {
  font-size: 11px;
}

.side-fit .player-card .stats {
  padding: 0.3rem 0.35rem 0.15rem;
}

.side-fit .cands {
  display: none;
}

.side-fit .rating-plate {
  padding: 0.15rem 0.28rem;
  gap: 0;
}

.side-fit .pos-tag {
  font-size: 8px;
  min-width: 1.7rem;
}

.side-fit .team-chip {
  padding: 0.1rem 0.25rem;
  gap: 0.2rem;
}

.side-fit .team-code {
  font-size: 0.6rem;
}

@media (max-width: 72rem) {
  .side-fit {
    max-height: none;
  }
  .side-fit .roster-list {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  }
}

.card-photo-img {
  object-fit: contain;
  object-position: center bottom;
}

.card-photo-bg {
  opacity: 0.9;
}

.match-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  gap: var(--gap-2);
  margin-top: var(--gap-3);
}

@media (max-width: 72rem) {
  .match-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
}

.season-games {
  margin-top: 0;
  padding: var(--gap-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  background: var(--bg-surface-1);
  min-width: 0;
}

.season-games .col-head {
  margin-bottom: var(--gap-1);
}

.season-final {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-2);
}

.games-scroll {
  max-height: 17rem;
  overflow-y: auto;
  padding: 0.2rem 0.35rem 0.2rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 230, 53, 0.35) transparent;
  mask-image: linear-gradient(180deg, transparent 0, #000 0.6rem, #000 calc(100% - 0.9rem), transparent 100%);
}

.games-scroll::-webkit-scrollbar {
  width: 6px;
}

.games-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.games-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(166, 230, 53, 0.45), rgba(166, 230, 53, 0.12));
}

.games-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(166, 230, 53, 0.7), rgba(166, 230, 53, 0.25));
}

.season-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.gtile {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bg-surface-2);
  min-width: 0;
}

.gtile:hover {
  border-color: var(--hairline-bright);
}

.gt-opp {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.gt-res {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.gt-slash {
  color: var(--text-2);
  margin: 0 0.15rem;
}

.gt-who {
  display: grid;
  place-items: center;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 4px;
  background: var(--bg-surface-3);
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--text-2);
  text-align: center;
}

.gtile[hidden] {
  display: none;
}

.gtile.row-enter {
  animation: row-in 220ms var(--ease-panel);
}

.gtile-decided {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-surface-2) 70%);
}

.gt-num {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--text-2);
  text-align: right;
}

.gtile .decided-tag {
  font-size: 0.52rem;
}

.gtile .opp-tag {
  font-size: 0.55rem;
  padding: 0.05rem 0.3rem;
  flex: 0 0 auto;
}

.gtile .opp-prof {
  font-size: 0.62rem;
  color: var(--text-2);
  white-space: nowrap;
}

.gt-res {
  padding: 0.15rem 0.3rem 0.15rem 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
}

.gt-res .wl {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1;
}

.gt-res .w {
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 10px var(--accent-glow);
}

.gt-res .l {
  color: #ffd9d9;
  background: linear-gradient(180deg, #4a1f24, #341318);
  box-shadow: inset 0 0 0 1px rgba(235, 75, 75, 0.5);
}

.gt-rec {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
  min-width: 2rem;
  text-align: center;
}

.gtile .gt-who {
  background: transparent;
  color: var(--text-2);
  width: 0.8rem;
}

.pot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: var(--gap-3) var(--gap-2);
  border: 1px solid rgba(166, 230, 53, 0.25);
  border-radius: var(--radius-tile);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(166, 230, 53, 0.12), transparent 70%),
    var(--bg-surface-1);
  text-align: center;
}

.pot-cap {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.pot-big {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
}

.pot-cur-lead {
  font-size: 1.4rem;
  color: var(--accent);
}

.pot-big-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 26px var(--accent-glow);
}

.pot-tag {
  margin: 0 0 var(--gap-2);
  font-size: 0.76rem;
  color: var(--text-2);
}

.pot-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 0.8rem;
  width: 100%;
  margin: 0;
  padding-top: var(--gap-2);
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
}

.pot-split dt {
  color: var(--text-2);
  text-align: left;
}

.pot-split dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.pot-payout {
  color: var(--accent-bright);
}





.console-plate {
  overflow: auto;
  scrollbar-width: none;
}

.console-plate::-webkit-scrollbar {
  width: 0;
  height: 0;
}


.mini-rar {
  display: block;
  margin: 0.25rem auto 0;
  width: fit-content;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rar) 22%, transparent);
  color: var(--rar-text, var(--rar));
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-stats {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.4rem 0.5rem 0.15rem;
}

.mini-stat {
  display: grid;
  grid-template-columns: 3.4rem 1fr 1.3rem;
  align-items: center;
  gap: 0.3rem;
}

.mini-stat-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-bar {
  display: block;
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.mini-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rar), color-mix(in srgb, var(--rar) 55%, white));
  transform-origin: left center;
  animation: mini-bar-grow 620ms var(--ease-panel) both;
}

@keyframes mini-bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.mini-bar-fill.mb-p5 { width: 5%; }
.mini-bar-fill.mb-p10 { width: 10%; }
.mini-bar-fill.mb-p15 { width: 15%; }
.mini-bar-fill.mb-p20 { width: 20%; }
.mini-bar-fill.mb-p25 { width: 25%; }
.mini-bar-fill.mb-p30 { width: 30%; }
.mini-bar-fill.mb-p35 { width: 35%; }
.mini-bar-fill.mb-p40 { width: 40%; }
.mini-bar-fill.mb-p45 { width: 45%; }
.mini-bar-fill.mb-p50 { width: 50%; }
.mini-bar-fill.mb-p55 { width: 55%; }
.mini-bar-fill.mb-p60 { width: 60%; }
.mini-bar-fill.mb-p65 { width: 65%; }
.mini-bar-fill.mb-p70 { width: 70%; }
.mini-bar-fill.mb-p75 { width: 75%; }
.mini-bar-fill.mb-p80 { width: 80%; }
.mini-bar-fill.mb-p85 { width: 85%; }
.mini-bar-fill.mb-p90 { width: 90%; }
.mini-bar-fill.mb-p95 { width: 95%; }
.mini-bar-fill.mb-p100 { width: 100%; }

.mini-stat-value {
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  body:not(.revealing) .mini-bar-fill { animation: none; }
}

.app-topbar {
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: 0;
}

.app-topbar > * {
  min-width: 0;
  flex-shrink: 1;
}

.app-topbar .icon-btn,
.audio-box,
.wallet-box {
  flex-shrink: 0;
}

.btn-connect {
  max-width: 100%;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.wallet-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

@media (max-width: 72rem) {
  .wallet-status {
    max-width: 9rem;
  }
}

@media (max-width: 56rem) {
  .app-topbar {
    gap: 0.4rem;
    padding-inline: 0.6rem;
  }
  .wallet-status {
    max-width: 6.5rem;
    font-size: 0.72rem;
  }
  .btn-connect {
    padding: 0.38rem 0.6rem;
    font-size: 0.74rem;
  }
  .btn-disconnect {
    padding: 0.28rem 0.5rem;
    font-size: 0.66rem;
  }
  .bal-chip {
    padding: 0.24rem 0.5rem 0.24rem 0.3rem;
  }
  .bal-num {
    font-size: 0.8rem;
  }
  .bal-cur {
    display: none;
  }
}

@media (max-width: 34rem) {
  .audio-box {
    display: none;
  }
  .bal-tag {
    display: none;
  }
  .wallet-status {
    max-width: 5.5rem;
  }
}

@media (max-width: 56rem) {
  .app-chat {
    position: fixed;
    inset: 0 0 var(--h-tabbar) 0;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    border-left: 0;
    border-top: 1px solid var(--hairline);
    transform: translateY(100%);
    transition: transform 220ms var(--ease-panel);
    z-index: var(--z-overlay);
  }
  html:not(.chat-closed) .app-chat {
    transform: translateY(0);
    width: 100vw;
    max-width: 100vw;
  }
  html:not(.chat-closed) {
    --w-chat: 0px;
  }
  .chat-head {
    position: sticky;
    top: 0;
    background: var(--bg-rail);
    z-index: 2;
  }
  .chat-body {
    padding-bottom: var(--gap-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-chat {
    transition: none;
  }
}

.mini-card.tier-common {
  border-color: var(--rar-common);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 14px -6px var(--rar-common);
}

.mini-card.tier-rare {
  border-color: color-mix(in srgb, var(--rar-rare) 78%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--rar-rare) 60%, transparent),
    0 0 22px -2px rgba(75, 105, 255, 0.6);
}

.mini-card.tier-epic {
  border-color: color-mix(in srgb, var(--rar-epic) 82%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 24px -8px rgba(136, 71, 255, 0.45),
    0 0 30px -2px rgba(136, 71, 255, 0.7);
}

.mini-card.tier-legendary {
  border-color: color-mix(in srgb, var(--rar-legendary) 85%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 26px -8px rgba(255, 215, 0, 0.45),
    0 0 42px 0 rgba(255, 215, 0, 0.8);
}

.mini-card .mini-ovr {
  color: var(--rar-text, var(--text));
}

.mini-card.tier-legendary .mini-ovr {
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}

.stage-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap-2);
}

.strip-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.strip-right {
  justify-content: flex-end;
}

.pot-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0;
  padding: 0.22rem 0.85rem;
  border: 1px solid rgba(166, 230, 53, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(166, 230, 53, 0.18), rgba(166, 230, 53, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 18px -6px var(--accent);
  white-space: nowrap;
}

.pot-pill-label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.stage-strip .pot-pill .pot-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent-bright);
}

.pot-pill .pot-cur {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-2);
}

.stage-strip .match-id {
  font-size: 0.7rem;
  color: var(--text-2);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-strip .match-id:hover {
  color: var(--accent-bright);
}

.stage-strip .btn-ghost {
  padding: 0.24rem 0.6rem;
  font-size: 0.66rem;
  white-space: nowrap;
}

@media (max-width: 56rem) {
  .stage-strip .match-id {
    display: none;
  }
  .stage-strip .pot-pill .pot-num {
    font-size: 1.15rem;
  }
}

.strip-right .match-id {
  min-width: 0;
  flex: 0 1 auto;
}

.chat-feed-link {
  border-left: 3px solid var(--rar, var(--hairline));
}

.chat-feed-link.pot-common {
  --rar: var(--rar-common);
}

.chat-feed-link.pot-rare {
  --rar: var(--rar-rare);
}

.chat-feed-link.pot-epic {
  --rar: var(--rar-epic);
}

.chat-feed-link.pot-legendary {
  --rar: var(--rar-legendary);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), var(--bg-surface-2) 55%);
}

.feed-winner {
  font-weight: 800;
  color: var(--text);
}

.win-verb {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.feed-pot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  line-height: 1.05;
  padding: 0.16rem 0.45rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--rar) 16%, transparent);
}

.feed-pot-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--rar);
}

.chat-feed-link.pot-common .feed-pot-num {
  color: var(--text);
}

.feed-pot-cur {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-2);
}

.win-mark {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--hairline-bright);
  color: var(--text-2);
  font-weight: 800;
}

.result-mid {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.25;
}

.result-who {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-sub {
  font-size: 0.72rem;
}

.result-link {
  border-left: 3px solid var(--rar, var(--hairline));
}

.result-link.pot-common {
  --rar: var(--rar-common);
}

.result-link.pot-rare {
  --rar: var(--rar-rare);
}

.result-link.pot-epic {
  --rar: var(--rar-epic);
}

.result-link.pot-legendary {
  --rar: var(--rar-legendary);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), var(--bg-surface-2) 55%);
}

.feed-row.pot-common {
  --rar: var(--rar-common);
}

.feed-row.pot-rare {
  --rar: var(--rar-rare);
}

.feed-row.pot-epic {
  --rar: var(--rar-epic);
}

.feed-row.pot-legendary {
  --rar: var(--rar-legendary);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), transparent 40%);
}

.feed-row td:first-child {
  border-left: 3px solid var(--rar, transparent);
}

.feed-row .feed-players {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.feed-row .feed-pot {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.25rem;
}

.chat-head .icon-btn,
.app-tabbar .tab-item,
.audio-btn,
.app-topbar .icon-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.chat-head .icon-btn {
  position: relative;
  z-index: 3;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.chat-head form.ui-form {
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width: 72rem) {
  .app-chat {
    pointer-events: none;
  }
  html:not(.chat-closed) .app-chat {
    pointer-events: auto;
  }
}

.feed-pot-cur,
.feed-pot-num {
  color: var(--accent-bright);
}

.chat-feed-link.pot-common .feed-pot-num,
.result-link.pot-common .feed-pot-num {
  color: var(--accent);
}

.chat-feed-link.pot-common,
.result-link.pot-common {
  background: linear-gradient(90deg, rgba(176, 195, 217, 0.07), var(--bg-surface-2) 55%);
}

.chat-feed-link.pot-rare,
.result-link.pot-rare {
  background: linear-gradient(90deg, rgba(75, 105, 255, 0.14), var(--bg-surface-2) 55%);
}

.chat-feed-link.pot-epic,
.result-link.pot-epic {
  background: linear-gradient(90deg, rgba(136, 71, 255, 0.16), var(--bg-surface-2) 55%);
}

.feed-row.pot-rare {
  background: linear-gradient(90deg, rgba(75, 105, 255, 0.09), transparent 40%);
}

.feed-row.pot-epic {
  background: linear-gradient(90deg, rgba(136, 71, 255, 0.1), transparent 40%);
}

.chat-feed-sub .streak-legendary,
.chat-feed-sub .streak-epic,
.chat-feed-sub .streak-rare,
.chat-feed-sub .streak-common,
.result-sub .streak-legendary,
.result-sub .streak-epic,
.result-sub .streak-rare,
.result-sub .streak-common,
.feed-res .streak-legendary,
.feed-res .streak-epic,
.feed-res .streak-rare,
.feed-res .streak-common {
  padding: 0.02rem 0.34rem;
  border-radius: 5px;
  background: rgba(8, 12, 18, 0.55);
  box-shadow: inset 0 0 0 1px currentColor;
  font-weight: 800;
}

.result-scroll {
  max-height: 13.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 230, 53, 0.3) transparent;
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 1.2rem), transparent 100%);
}

.result-scroll::-webkit-scrollbar {
  width: 5px;
}

.result-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.result-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(166, 230, 53, 0.4), rgba(166, 230, 53, 0.12));
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2);
  margin-top: var(--gap-2);
}

.pager-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 999px;
  background: var(--bg-surface-2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.pager-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.pager-off {
  opacity: 0.35;
  pointer-events: none;
}

.pager-at {
  font-size: 0.76rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}



.reveal-stage:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.reveal-stage .reveal-cols {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.reveal-stage .reveal-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.reveal-stage .mini-card {
  min-height: 0;
  max-height: 100%;
}

.reveal-stage .mini-photo {
  flex: 1 1 auto;
  height: auto;
  min-height: 3rem;
}

.reveal-stage .reel {
  flex: 0 0 auto;
}

.console-plate:has(> #reveal-stage:not([hidden])) {
  overflow: hidden;
}

.strip-right .match-id {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.match-id-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.reveal-col [data-role="team"] {
  transition: opacity 260ms ease;
}

@media (max-width: 48rem) {
  .reveal-cols {
    gap: var(--gap-1);
  }

  .reveal-col [data-role="team"] {
    max-height: 6rem;
    overflow: hidden;
    transition: opacity 260ms ease, max-height 260ms ease, margin-bottom 260ms ease;
  }

  .reveal-col [data-role="team"].reel-done {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
  }

  .reveal-col-label {
    font-size: 0.62rem;
  }

  .reveal-stage .mini-card {
    width: 100%;
    animation-duration: 380ms;
  }

  .reveal-stage .mini-stat-label {
    font-size: 0.55rem;
  }

  .reveal-stage .mini-stat-value {
    font-size: 0.58rem;
  }

  .reveal-stage .mini-name {
    font-size: 0.72rem;
  }

  .reveal-stage .mini-sub {
    font-size: 0.54rem;
  }

  .reveal-stage .mini-rar {
    font-size: 0.5rem;
    padding: 0.05rem 0.35rem;
  }

  .reveal-stage .mini-photo {
    min-height: 4rem;
  }

  .reveal-round-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}

.reveal-col-label {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-bright);
  background: var(--bg-surface-2);
  color: var(--text);
}

.reveal-col[data-col="a"] .reveal-col-label {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent-bright);
}

.reveal-col[data-col="b"] .reveal-col-label {
  border-color: color-mix(in srgb, var(--opp-bright) 55%, transparent);
  color: var(--opp-bright);
}

@media (max-width: 48rem) {
  .reveal-col-label {
    padding: 0.05rem 0.45rem;
    letter-spacing: 0.06em;
  }
}

.reveal-stage .reveal-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 48rem) {
  .reveal-stage .mini-nameplate {
    padding-inline: 0.3rem;
  }

  .reveal-stage .mini-stats {
    gap: 0.14rem;
  }

  .reveal-stage .mini-stat {
    gap: 0.25rem;
  }

  .reveal-stage .mini-ovr {
    font-size: 0.95rem;
    padding: 0.05rem 0.35rem;
  }
}

@media (max-height: 46rem) {
  .reveal-stage .mini-stat:nth-child(n + 3) {
    display: none;
  }

  .reveal-stage .mini-photo {
    min-height: 2.6rem;
  }
}

.notif-box {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.notif-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 0 10px var(--accent-glow);
}

.notif-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(21rem, calc(100vw - 2rem));
  max-height: 24rem;
  overflow-y: auto;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline-bright);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  z-index: var(--z-toast);
  padding: 0.4rem;
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.35rem 0.55rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
}

.notif-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.notif-all {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-item + .notif-item {
  border-top: 1px solid var(--hairline);
}

.notif-link {
  display: block;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.notif-link:hover {
  background: var(--bg-surface-3);
  text-decoration: none;
}

.notif-item-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.notif-unread .notif-item-title {
  color: var(--accent-bright);
}

.notif-item-sub {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
}

.notif-empty {
  margin: 0;
  padding: 0.7rem 0.55rem;
  font-size: 0.78rem;
}

.notif-empty[hidden] {
  display: none;
}

.toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: var(--z-toast);
  width: min(22rem, calc(100vw - 2rem));
}

.toast {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline-bright);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: toast-in 260ms var(--ease-pop);
}

.toast-hot {
  border-color: var(--accent);
  box-shadow: 0 0 22px var(--accent-glow), 0 18px 40px rgba(0, 0, 0, 0.55);
}

.toast-body {
  flex: 1 1 auto;
  display: block;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.toast-body:hover {
  text-decoration: none;
  background: var(--bg-surface-3);
}

.toast-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.toast-hot .toast-title {
  color: var(--accent-bright);
}

.toast-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-2);
}

.toast-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  background: var(--tile-sheen), linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.toast-close {
  flex: 0 0 auto;
  width: 2rem;
  border: 0;
  border-left: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-2);
  font-size: 1rem;
  cursor: pointer;
}

.toast-close:hover {
  color: var(--text);
  background: var(--bg-surface-3);
}

.toast-out {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 300ms ease, transform 300ms ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.battles-count {
  font-size: 0.8rem;
  color: var(--text-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  background: var(--bg-surface-2);
}

.battles-connect {
  text-align: center;
  padding-block: 2.6rem;
}

.battles-connect-sub {
  max-width: 34rem;
  margin: 0.3rem auto 0;
}

.battles-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  flex-wrap: wrap;
  overflow: hidden;
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(166, 230, 53, 0.12), transparent 55%),
    var(--bg-surface-1);
}

.battles-hero-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.battles-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.battles-sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}

.battles-counters {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.bcounter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 4.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
}

.bc-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
}

.bc-cap {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
}

.battles-cta {
  flex-shrink: 0;
}

.panel-band .battles-count {
  margin-left: auto;
}

.band-note {
  margin-left: auto;
  font-size: 0.72rem;
  text-align: right;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.6rem 1rem 1.8rem;
  text-align: center;
}

.empty-state p {
  margin: 0;
}

.empty-ico-wrap {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--bg-surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.empty-ico {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--accent);
}

.profile-frame {
  display: grid;
  place-items: center;
  width: 5.2rem;
  height: 5.2rem;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--hairline-bright);
  padding: 0.45rem;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

:where(.profile-frame) {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(166, 230, 53, 0.1), transparent 60%),
    var(--bg-surface-2);
}

.profile-frame .avatar-svg,
.profile-frame .identicon {
  width: 100%;
  height: 100%;
}

.profile-sub {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
}

.profile-tiles {
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
}

.avatar-form {
  margin: 0;
}

.avatar-save {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  flex-wrap: wrap;
}

.avatar-save .create-note {
  text-align: left;
}

.btn-replay-sm {
  padding: 0.2rem 0.65rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

.past-head .btn-replay-sm {
  margin-left: auto;
}

.avatar-equipped {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  box-shadow: 0 0 10px var(--accent-glow);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: var(--gap-3);
  margin-bottom: var(--gap-3);
}

.avatar-card {
  cursor: pointer;
}

.avatar-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem 0.55rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
  transition: border-color 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop);
}

.avatar-card:hover .avatar-card-body {
  border-color: var(--accent);
}

.avatar-card input:checked + .avatar-card-body {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft), 0 0 16px var(--accent-glow);
}

.avatar-card input:focus-visible + .avatar-card-body {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.avatar-card .avatar-svg {
  width: 3.6rem;
  height: 3rem;
}

.avatar-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.chat-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 0.4rem;
}

.chat-stream {
  flex: 1 1 60%;
  min-height: 9rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.chat-feed-head {
  flex: none;
  margin-top: 0.4rem;
}

.chat-feed {
  flex: 0 1 auto;
  max-height: 11rem;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.chat-empty {
  font-size: 0.8rem;
  margin: 0.4rem 0;
}

.chat-msgs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chat-msg {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--bg-surface-2);
}

.chat-msg-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-msg-head .identicon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.chat-msg-addr {
  font-size: 0.72rem;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-msg-time {
  font-size: 0.66rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.chat-msg-reply {
  border: 0;
  background: transparent;
  color: var(--accent-bright);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
}

.chat-msg-reply:hover {
  text-decoration: underline;
}

.chat-quote {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  margin: 0.3rem 0 0;
  padding: 0.25rem 0.5rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--bg-surface-1);
  font-size: 0.7rem;
  color: var(--text-2);
  overflow: hidden;
}

.chat-quote-addr {
  flex-shrink: 0;
  color: var(--accent-bright);
}

.chat-quote-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-msg-text {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.chat-foot {
  flex-direction: column;
  gap: 0.4rem;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-emoji-btn {
  flex-shrink: 0;
  font-size: 1rem;
}

.chat-emoji-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-emoji-panel {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.15rem;
  padding: 0.35rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 10px;
  background: var(--bg-surface-2);
}

.chat-emoji {
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1.6;
  cursor: pointer;
  border-radius: 6px;
}

.chat-emoji:hover {
  background: var(--bg-surface-3);
}

.chat-replybar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-surface-2);
  font-size: 0.72rem;
  color: var(--text-2);
}

.chat-reply-cancel {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 0.2rem;
}

.chat-reply-cancel:hover {
  color: var(--text);
}

.chat-note {
  margin: 0;
  font-size: 0.7rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: var(--gap-3);
  margin-bottom: var(--gap-3);
}

.theme-card {
  cursor: pointer;
}

.theme-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem 0.55rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-surface-2);
  transition: border-color 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop);
}

.theme-card:hover .theme-card-body {
  border-color: var(--accent);
}

.theme-card input:checked + .theme-card-body {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft), 0 0 16px var(--accent-glow);
}

.theme-card input:focus-visible + .theme-card-body {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-swatch {
  width: 100%;
  height: 2.3rem;
  border-radius: 8px;
  border: 1px solid var(--hairline-bright);
}

.tsw-0 { background: linear-gradient(135deg, #123a1e, #a6e635); }
.tsw-1 { background: linear-gradient(135deg, #101827, #5ac8fa); }
.tsw-2 { background: linear-gradient(135deg, #5b1220, #e5b13a); }
.tsw-3 { background: linear-gradient(135deg, #1d2a6b, #c8d3ff); }
.tsw-4 { background: linear-gradient(135deg, #4a1c0c, #ff9e42); }
.tsw-5 { background: linear-gradient(135deg, #2a2f38, #c3ccd9); }
.tsw-6 { background: linear-gradient(135deg, #4c4636, #efe6c8); }
.tsw-7 { background: linear-gradient(135deg, #12333d, #9fe8ff); }
.tsw-8 { background: linear-gradient(135deg, #33124a, #d8a6ff); }
.tsw-9 { background: linear-gradient(135deg, #3d2f07, #ffd75e); }
.tsw-10 { background: linear-gradient(135deg, #3a0d12, #ff6b6b); }
.tsw-11 { background: linear-gradient(135deg, #15151a, #8f96a3); }

.ptheme-0 { background: radial-gradient(130% 170% at 100% 0%, rgba(166, 230, 53, 0.16), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(18, 58, 30, 0.55), transparent 62%), var(--bg-surface-1); }
.ptheme-1 { background: radial-gradient(130% 170% at 100% 0%, rgba(90, 200, 250, 0.16), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(16, 24, 39, 0.75), transparent 62%), var(--bg-surface-1); }
.ptheme-2 { background: radial-gradient(130% 170% at 100% 0%, rgba(229, 177, 58, 0.16), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(91, 18, 32, 0.55), transparent 62%), var(--bg-surface-1); }
.ptheme-3 { background: radial-gradient(130% 170% at 100% 0%, rgba(200, 211, 255, 0.14), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(29, 42, 107, 0.55), transparent 62%), var(--bg-surface-1); }
.ptheme-4 { background: radial-gradient(130% 170% at 100% 0%, rgba(255, 158, 66, 0.16), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(74, 28, 12, 0.6), transparent 62%), var(--bg-surface-1); }
.ptheme-5 { background: radial-gradient(130% 170% at 100% 0%, rgba(195, 204, 217, 0.13), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(42, 47, 56, 0.7), transparent 62%), var(--bg-surface-1); }
.ptheme-6 { background: radial-gradient(130% 170% at 100% 0%, rgba(239, 230, 200, 0.13), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(76, 70, 54, 0.6), transparent 62%), var(--bg-surface-1); }
.ptheme-7 { background: radial-gradient(130% 170% at 100% 0%, rgba(159, 232, 255, 0.16), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(18, 51, 61, 0.6), transparent 62%), var(--bg-surface-1); }
.ptheme-8 { background: radial-gradient(130% 170% at 100% 0%, rgba(216, 166, 255, 0.16), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(51, 18, 74, 0.6), transparent 62%), var(--bg-surface-1); }
.ptheme-9 { background: radial-gradient(130% 170% at 100% 0%, rgba(255, 215, 94, 0.16), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(61, 47, 7, 0.6), transparent 62%), var(--bg-surface-1); }
.ptheme-10 { background: radial-gradient(130% 170% at 100% 0%, rgba(255, 107, 107, 0.15), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(58, 13, 18, 0.6), transparent 62%), var(--bg-surface-1); }
.ptheme-11 { background: radial-gradient(130% 170% at 100% 0%, rgba(143, 150, 163, 0.12), transparent 55%), radial-gradient(140% 160% at 0% 100%, rgba(21, 21, 26, 0.8), transparent 62%), var(--bg-surface-1); }

.account-box {
  position: relative;
  flex-shrink: 0;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 12rem;
  padding: 0.38rem 0.7rem 0.38rem 0.8rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 999px;
  background: var(--bg-surface-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 120ms var(--ease-pop), background 120ms var(--ease-pop);
}

.account-btn:hover {
  border-color: var(--accent);
  background: var(--bg-surface-3);
}

.account-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

.account-addr {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.account-chev {
  width: 0.8rem;
  height: 0.8rem;
  flex-shrink: 0;
  transform: rotate(90deg);
  color: var(--text-2);
}

.account-btn[aria-expanded="true"] .account-chev {
  transform: rotate(-90deg);
}

.account-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(19rem, calc(100vw - 1.5rem));
  padding: 0.35rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 12px;
  background: var(--bg-surface-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
}

.account-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.account-item:hover {
  background: var(--bg-surface-3);
  text-decoration: none;
}

.account-item-out {
  color: var(--danger, #ff6b6b);
  border-top: 1px solid var(--hairline);
  border-radius: 0 0 8px 8px;
  margin-top: 0.2rem;
}

.chat-input {
  flex: 1 1 auto;
  min-width: 0;
}

.chat-send {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: var(--accent-ink);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform 120ms var(--ease-pop), box-shadow 120ms var(--ease-pop);
}

.chat-send .ico {
  width: 1.05rem;
  height: 1.05rem;
  transform: translateX(-1px);
}

.chat-send:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.chat-send:active:not([disabled]) {
  transform: scale(0.94);
}

.chat-send[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 64rem) {
  .audio-range {
    display: none;
  }
}

@media (max-width: 48rem) {
  .account-btn {
    max-width: 8.5rem;
  }
  .bal-chip .bal-tag {
    display: none;
  }
  .battles-cta {
    width: 100%;
  }
  .battles-hero {
    padding-top: 1.1rem;
  }
  .toast-root {
    right: 0.6rem;
    left: 0.6rem;
    bottom: 4.2rem;
    width: auto;
  }
  .notif-panel {
    position: fixed;
    top: calc(var(--h-topbar, 3.5rem) + 0.4rem);
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
  }
  .profile-frame {
    width: 4.2rem;
    height: 4.2rem;
  }
  .past-head .btn-replay-sm {
    margin-left: 0;
  }
}

.hero::after {
  content: "";
  position: absolute;
  left: -2rem;
  bottom: -2.5rem;
  width: 34rem;
  max-width: 80%;
  height: 11rem;
  background: url("../images/decor/brush3.png") no-repeat center / contain;
  opacity: 0.13;
  pointer-events: none;
}

.panel-band {
  position: relative;
  padding-right: 2.8rem;
}

.panel-band::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.95rem;
  height: 0.95rem;
  transform: translateY(-50%);
  background: url("../images/decor/cross.png") no-repeat center / contain;
  opacity: 0.16;
  pointer-events: none;
}

.battles-hero::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  top: -3rem;
  width: 17rem;
  height: 13rem;
  background: url("../images/decor/circle-arrow-horizontal.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.promo {
  position: relative;
  overflow: hidden;
}

.promo::after {
  content: "";
  position: absolute;
  right: 6.5rem;
  top: -2rem;
  width: 8rem;
  height: 8rem;
  background: url("../images/decor/circle-1.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.promo-violet::after {
  background-image: url("../images/decor/arrow-cross.png");
  transform: rotate(12deg);
}

@media (min-width: 64rem) {
  .how-step {
    position: relative;
  }
  .how-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1.7rem;
    top: 2rem;
    width: 2.5rem;
    height: 1.7rem;
    background: url("../images/decor/arrow.png") no-repeat center / contain;
    opacity: 0.22;
    pointer-events: none;
  }
}

.winner-title {
  position: relative;
  z-index: 0;
}

.winner-title::before {
  content: "";
  position: absolute;
  inset: -0.7rem -2.4rem;
  background: url("../images/decor/brush1.png") no-repeat center / 100% 100%;
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

.decided-banner {
  position: relative;
  z-index: 0;
}

.decided-banner::before {
  content: "";
  position: absolute;
  inset: -1.1rem -2.8rem;
  background: url("../images/decor/brush4.png") no-repeat center / 100% 100%;
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 48rem) {
  .hero::after,
  .promo::after,
  .battles-hero::after {
    display: none;
  }
}

.app-body {
  container-type: inline-size;
  container-name: main;
}

@container main (max-width: 76rem) {
  .lobby-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container main (max-width: 60rem) {
  .promo-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container main (max-width: 84rem) {
  .create-form {
    grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(11rem, 1fr);
  }
  .create-go {
    grid-column: 1 / -1;
    align-items: center;
  }
}

@container main (max-width: 52rem) {
  .create-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container main (max-width: 58rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-art {
    display: none;
  }
  .hero-facts {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@container main (max-width: 46rem) {
  .battles-hero {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .battles-counters {
    justify-content: center;
  }
  .profile-id {
    flex-direction: column;
    text-align: center;
  }
}

.lb-arena {
  position: relative;
  container-type: inline-size;
  container-name: leaderboard;
  padding: var(--gap-3) var(--gap-3) var(--gap-4);
  margin-bottom: var(--gap-3);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(166, 230, 53, 0.1), transparent 60%),
    radial-gradient(60% 90% at 90% 110%, rgba(139, 108, 255, 0.07), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 90px),
    var(--bg-surface-1);
}

.lb-arena::before {
  content: "";
  position: absolute;
  left: -3rem;
  top: -3rem;
  width: 16rem;
  height: 16rem;
  background: url("../images/decor/circle-2.png") no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
}

.lb-arena::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -2rem;
  width: 13rem;
  height: 10rem;
  background: url("../images/decor/brush2.png") no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
}

.lb-head {
  text-align: center;
  margin-bottom: var(--gap-3);
}

.lb-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lb-sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}

.lb-first {
  margin: var(--gap-2) 0 0;
  text-align: center;
}

.podium-row .pod {
  animation: pod-float 7s ease-in-out infinite alternate;
}

.podium-row .pod-1 {
  animation-duration: 6s;
}

.podium-row .pod-3 {
  animation-delay: 1.6s;
}

.podium-row .pod-2 {
  animation-delay: 0.8s;
}

@keyframes pod-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-0.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .podium-row .pod {
    animation: none;
  }
}

.pod-empty {
  border-style: dashed;
  border-color: var(--hairline);
  background: rgba(21, 27, 38, 0.55);
}

.pod-ghost {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  border: 1px dashed var(--hairline-bright);
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.pod-open-name {
  color: var(--text-2);
}

.pod-open-rec {
  color: var(--text-2);
}

.pod-open-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px dashed var(--hairline-bright);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}

.app-main {
  position: relative;
}

.app-main::before,
.app-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-main::before {
  opacity: 0.05;
  background-image:
    url("../images/decor/cross.png"),
    url("../images/decor/circle-2.png"),
    url("../images/decor/arrow-cross.png"),
    url("../images/decor/cross.png"),
    url("../images/decor/circle-1.png"),
    url("../images/decor/cross.png"),
    url("../images/decor/circle-arrow.png");
  background-repeat: no-repeat;
  background-size: 1.8rem, 9rem, 3rem, 1.4rem, 7rem, 2.2rem, 5rem;
  background-position: 6% 9%, 95% 14%, 9% 36%, 88% 52%, 3% 72%, 93% 86%, 14% 96%;
}

.app-main::after {
  opacity: 0.055;
  background-image:
    url("../images/decor/brush2.png"),
    url("../images/decor/brush3.png"),
    url("../images/decor/brush1.png");
  background-repeat: no-repeat;
  background-size: 17rem, 21rem, 26rem;
  background-position: 101% 28%, -3rem 64%, 104% 94%;
}

.app-main > .page {
  position: relative;
  z-index: 1;
}

@media (max-width: 48rem) {
  .app-main::before,
  .app-main::after {
    display: none;
  }
}

.brand {
  align-items: center;
}

.brand-crest {
  width: 3.3rem;
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.45));
}

html.sidebar-mini .brand-crest {
  width: 2.35rem;
}

.brand-word {
  height: 1.7rem;
  width: auto;
  display: block;
}

.lobby-col .stat-tiles {
  gap: 0.65rem;
}

.lobby-col .stat-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(166, 230, 53, 0.65);
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(160deg, var(--accent-bright) 0%, var(--accent) 62%, #4f7d10 100%);
  color: var(--accent-ink);
  box-shadow: 0 12px 26px rgba(166, 230, 53, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lobby-col .stat-tile::before {
  content: "";
  position: absolute;
  right: -1.2rem;
  bottom: -1.4rem;
  width: 5.4rem;
  height: 5.4rem;
  background: url("../images/brand/ball.png") no-repeat center / contain;
  opacity: 0.16;
  transform: rotate(-18deg);
  pointer-events: none;
}

.lobby-col .stat-tile::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  width: 1.1rem;
  height: 1.1rem;
  background: url("../images/decor/cross.png") no-repeat center / contain;
  opacity: 0.3;
  pointer-events: none;
}

.lobby-col .stat-tile .stat-ico {
  background: rgba(10, 15, 22, 0.82);
  color: var(--accent-bright);
  border: 0;
  box-shadow: 0 3px 8px rgba(10, 15, 22, 0.35);
}

.lobby-col .stat-tile .stat-num {
  color: #0c1310;
  text-shadow: none;
  font-size: 2.3rem;
}

.lobby-col .stat-tile .stat-cap {
  color: rgba(12, 19, 16, 0.78);
  font-weight: 800;
  letter-spacing: 0.11em;
}

.lobby-col .stat-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-bright);
  border-radius: 12px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(166, 230, 53, 0.14), transparent 60%),
    var(--bg-surface-2);
}

.lobby-col .stat-strip::after {
  content: "";
  position: absolute;
  right: 0.7rem;
  bottom: -0.9rem;
  width: 3.2rem;
  height: 2.4rem;
  background: url("../images/decor/brush2.png") no-repeat center / contain;
  opacity: 0.25;
  pointer-events: none;
}

.lobby-col .stat-strip .strip-num {
  color: var(--accent-bright);
  text-shadow: 0 0 12px var(--accent-glow);
}







.profile-handle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  text-shadow: 0 0 18px var(--accent-glow);
}

.uname-form {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  flex-wrap: wrap;
}

.uname-field {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--hairline-bright);
  border-radius: 10px;
  background: var(--bg-surface-2);
  padding: 0.15rem 0.6rem 0.15rem 0.8rem;
}

.uname-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.uname-at {
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 1.05rem;
}

.uname-input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.45rem 0.2rem;
  min-width: 12rem;
  outline: none;
}

.uname-form .create-note {
  flex-basis: 100%;
  text-align: left;
}

.chat-ava {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}

:where(.chat-ava) {
  background: var(--bg-surface-1);
}

.chat-ava .chat-ava-svg {
  width: 1.25rem;
  height: 1.05rem;
}

.chat-ava .identicon {
  width: 1rem;
  height: 1rem;
}

.chat-msg-addr {
  text-decoration: none;
  color: var(--text-2);
}

.chat-msg-addr:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.chat-msg-named {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--accent-bright);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.hero-brand-crest {
  width: 3.4rem;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.hero-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero-brand-name strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  color: var(--accent-bright);
}

.editor-handle {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-bright);
  text-shadow: 0 0 14px var(--accent-glow);
  letter-spacing: 0.04em;
}

.profile-editor .uname-form {
  margin-bottom: var(--gap-3);
  padding-bottom: var(--gap-3);
  border-bottom: 1px solid var(--hairline);
}

.editor-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-3);
  margin-bottom: var(--gap-3);
}

@container main (max-width: 62rem) {
  .editor-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.editor-sub {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
}

.grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 0;
}

.grid-compact .avatar-card-body,
.grid-compact .theme-card-body {
  padding: 0.5rem 0.3rem 0.45rem;
  gap: 0.3rem;
}

.grid-compact .avatar-svg {
  width: 2.7rem;
  height: 2.25rem;
}

.grid-compact .theme-swatch {
  height: 1.8rem;
}

.grid-compact .avatar-card-name {
  font-size: 0.62rem;
}

.editor-save {
  display: flex;
  justify-content: flex-start;
}

.profile-frame.ptheme-0, .chat-ava.ptheme-0 { background: linear-gradient(150deg, #123a1e, #a6e635); }
.profile-frame.ptheme-1, .chat-ava.ptheme-1 { background: linear-gradient(150deg, #101827, #5ac8fa); }
.profile-frame.ptheme-2, .chat-ava.ptheme-2 { background: linear-gradient(150deg, #5b1220, #e5b13a); }
.profile-frame.ptheme-3, .chat-ava.ptheme-3 { background: linear-gradient(150deg, #1d2a6b, #c8d3ff); }
.profile-frame.ptheme-4, .chat-ava.ptheme-4 { background: linear-gradient(150deg, #4a1c0c, #ff9e42); }
.profile-frame.ptheme-5, .chat-ava.ptheme-5 { background: linear-gradient(150deg, #2a2f38, #c3ccd9); }
.profile-frame.ptheme-6, .chat-ava.ptheme-6 { background: linear-gradient(150deg, #4c4636, #efe6c8); }
.profile-frame.ptheme-7, .chat-ava.ptheme-7 { background: linear-gradient(150deg, #12333d, #9fe8ff); }
.profile-frame.ptheme-8, .chat-ava.ptheme-8 { background: linear-gradient(150deg, #33124a, #d8a6ff); }
.profile-frame.ptheme-9, .chat-ava.ptheme-9 { background: linear-gradient(150deg, #3d2f07, #ffd75e); }
.profile-frame.ptheme-10, .chat-ava.ptheme-10 { background: linear-gradient(150deg, #3a0d12, #ff6b6b); }
.profile-frame.ptheme-11, .chat-ava.ptheme-11 { background: linear-gradient(150deg, #15151a, #8f96a3); }

html {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-surface-3) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-3);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: content-box;
}

.chat-feed {
  max-height: clamp(5.5rem, 32dvh, 14rem);
  overflow-x: hidden;
}

.chat-feed-link {
  min-width: 0;
}

.chat-feed-mid {
  min-width: 0;
  overflow: hidden;
}

.chat-feed-res,
.chat-feed-sub {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-feed .feed-pot {
  flex-shrink: 0;
}

.chat-msg-mod {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0.1rem 0.15rem;
  opacity: 0;
  transition: opacity 120ms ease;
}

.account-claim-badge {
  display: inline-grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 12px var(--accent-glow);
}

.account-claim-badge[hidden] {
  display: none;
}

.account-claims {
  margin: 0.35rem 0;
  padding: 0.7rem;
  border: 1px solid rgba(166, 230, 53, 0.2);
  border-radius: 10px;
  background: rgba(166, 230, 53, 0.055);
}

.account-claims-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-claims-count {
  color: var(--accent);
  font-size: 0.62rem;
}

.account-claims-list {
  display: grid;
  gap: 0.45rem;
}

.account-claims-empty {
  margin: 0;
  color: var(--text-2);
  font-size: 0.75rem;
}

.account-claim-item {
  display: flex;
  width: 100%;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem;
  border: 1px solid rgba(166, 230, 53, 0.28);
  border-radius: 9px;
  background: var(--bg-surface-1);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms var(--ease-pop), background 120ms var(--ease-pop), transform 90ms var(--ease-press);
}

.account-claim-item:hover {
  border-color: var(--accent);
  background: var(--bg-surface-3);
}

.account-claim-item:active {
  transform: translateY(1px);
}

.account-claim-item:disabled {
  opacity: 0.6;
  cursor: wait;
}

.account-claim-copy {
  display: grid;
  min-width: 0;
}

.account-claim-copy strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-claim-copy small {
  margin-top: 0.15rem;
  color: var(--text-2);
  font-size: 0.66rem;
}

.account-claim-action {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

@container main (max-width: 76rem) {
  .create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .create-form > .chip-fieldset:first-child,
  .create-go {
    grid-column: 1 / -1;
  }
  .create-form > .chip-fieldset:first-child .stake-chips {
    flex-wrap: nowrap;
  }
  .create-form > .chip-fieldset:first-child .stake-chip {
    flex: 1 1 0;
    min-width: 0;
  }
}

@container main (max-width: 52rem) {
  .create-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .create-form > .chip-fieldset:first-child,
  .create-go {
    grid-column: auto;
  }
  .create-form > .chip-fieldset:first-child .stake-chips {
    flex-wrap: wrap;
  }
  .create-form > .chip-fieldset:first-child .stake-chip {
    flex: 0 1 auto;
    min-width: 3.6rem;
  }
  .create-form > .chip-fieldset:first-child .stake-chip-custom {
    min-width: 6.5rem;
  }
}

/* Mobile hardening: every bottom action owns exactly one quarter of the
   viewport. Flex items otherwise retain an intrinsic minimum width on some
   mobile engines and push the final Menu action off-screen. */
@media (max-width: 56.25rem) {
  .app-tabbar > .tab-item,
  .app-tabbar > .tab-form {
    flex: 1 1 25%;
    width: 25%;
    min-width: 0;
  }

  .app-tabbar .tab-item {
    min-width: 0;
    min-height: 44px;
    padding-inline: 0.2rem;
  }

  .wallet-box {
    margin-left: auto;
  }

  /* Chat already has a persistent bottom action on phones and tablets. */
  .app-topbar .chat-toggle-btn {
    display: none;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  button,
  .btn,
  .stake-chip,
  .mode-card {
    touch-action: manipulation;
  }
}

/* Create wager: stable component geometry across main-content widths. */
.create-panel {
  container-type: inline-size;
  container-name: create-wager;
}

.create-panel .create-form {
  --ctl-h: 3.75rem;
  display: grid;
  grid-template-columns: minmax(20rem, 1.35fr) minmax(16rem, 0.9fr) minmax(22rem, 1.35fr) minmax(14rem, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}

.create-panel .stake-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.create-panel .stake-chip,
.create-panel .stake-chip-custom {
  width: 100%;
  min-width: 0;
  padding-inline: 0.55rem;
}

.create-panel .stake-chip-num {
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  white-space: nowrap;
}

.create-panel .mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.create-panel .mode-card {
  width: 100%;
  min-width: 0;
}

.create-panel .form-select {
  text-overflow: ellipsis;
}

.create-panel .create-go {
  width: 100%;
}

.create-panel .btn-create {
  width: 100%;
}

@container main (max-width: 86rem) {
  .create-panel .create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-panel .create-form > .chip-fieldset:first-child,
  .create-panel .create-go {
    grid-column: 1 / -1;
  }

  .create-panel .create-go {
    padding-top: 0;
  }
}

@container main (max-width: 52rem) {
  .create-panel .create-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }

  .create-panel .create-form > .chip-fieldset:first-child,
  .create-panel .create-go {
    grid-column: auto;
  }
}

@container main (max-width: 32rem) {
  .create-panel .stake-chips,
  .create-panel .mode-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-panel .stake-chip-num {
    font-size: clamp(1rem, 5.5vw, 1.25rem);
  }

  .create-panel .field-note {
    max-width: 34rem;
  }
}

/* Large touch tablets can report desktop-class widths. Use input capability,
   not width alone, to avoid leaving them with a cramped permanent icon rail. */
@media (hover: none) and (pointer: coarse) and (max-width: 85rem) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--w-sidebar-open);
    height: 100dvh;
    z-index: var(--z-overlay);
    transform: translateX(-100%);
    transition: transform 200ms var(--ease-panel);
  }

  html.nav-open .app-sidebar {
    transform: translateX(0);
  }

  html.nav-open .scrim {
    display: block;
  }

  .app-tabbar {
    display: flex;
  }

  .app-main {
    padding-bottom: calc(3rem + var(--h-tabbar) + env(safe-area-inset-bottom));
  }

  .app-footer {
    padding-bottom: calc(1.6rem + var(--h-tabbar) + env(safe-area-inset-bottom));
  }

  .topbar-title {
    display: none;
  }

  .topbar-brand {
    display: inline-flex;
  }

  .topbar-menu-form,
  .app-topbar .chat-toggle-btn {
    display: none;
  }

  html:not(.chat-closed) .app-chat {
    width: 100vw;
  }

  .toast-root {
    bottom: calc(var(--h-tabbar) + env(safe-area-inset-bottom) + 0.75rem);
  }
}

@media (max-width: 30rem) {
  .app-topbar {
    gap: 0.25rem;
    padding-inline: 0.5rem;
  }

  .topbar-tagline,
  .bal-usd {
    display: none !important;
  }

  .account-btn {
    max-width: 7rem;
  }

  .account-addr {
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.chat-msg:hover .chat-msg-mod {
  opacity: 0.8;
}

.chat-msg-mod:hover {
  color: var(--danger);
}

.chat-msg-mod[disabled] {
  color: var(--accent-bright);
  cursor: default;
}

.chat-note-action {
  cursor: pointer;
  text-decoration: underline;
}

/* Final component-width authority. Keep after shell/media rules: an open chat
   rail changes the wager panel width without changing the viewport width. */
@container create-wager (max-width: 72rem) {
  .create-panel .create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-panel .create-form > .chip-fieldset:first-child,
  .create-panel .create-go {
    grid-column: 1 / -1;
  }

  .create-panel .create-go {
    padding-top: 0;
  }
}

@container create-wager (max-width: 42rem) {
  .create-panel .create-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .create-panel .create-form > .chip-fieldset:first-child,
  .create-panel .create-go {
    grid-column: auto;
  }

  .create-panel .stake-chips,
  .create-panel .mode-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container create-wager (max-width: 25rem) {
  .create-panel .stake-chip-num {
    font-size: 1rem;
  }

  .create-panel .mode-card-sub {
    font-size: 0.64rem;
  }
}

/* Long-form game explainer. The grid follows the available content rail so
   it remains readable with either sidebar or chat open. */
.how-deep {
  container-type: inline-size;
  display: grid;
  gap: 1.25rem;
  max-width: 76rem;
  margin: 0 auto;
}

.how-deep-hero {
  min-height: 25rem;
  padding: clamp(2rem, 6cqi, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 78% 18%, rgba(164, 255, 35, 0.16), transparent 38%), var(--bg-surface-1);
  border-color: rgba(164, 255, 35, 0.35);
}

.how-deep-hero h1 {
  max-width: 10ch;
  margin: .45rem 0 1rem;
  color: var(--accent-bright);
  font: clamp(3.2rem, 9cqi, 6.6rem)/.92 Anton, sans-serif;
  letter-spacing: .02em;
  text-wrap: balance;
}

.how-deep-hero>p:last-child {
  max-width: 48rem;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1rem, 1.8cqi, 1.2rem);
  line-height: 1.7;
}

.how-deep-section {
  padding: clamp(1.5rem, 4cqi, 3.25rem);
  display: grid;
  grid-template-columns: minmax(12rem, .75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5cqi, 4rem);
}

.how-deep-section h2,.how-deep-card h2,.how-deep-flow h2 {
  margin: .4rem 0;
  font: clamp(1.7rem, 3.2cqi, 2.5rem)/1.08 Anton, sans-serif;
}

.how-deep-copy { display: grid; gap: 1rem; }
.how-deep-copy p,.how-deep-card p { margin: 0; color: var(--text-2); line-height: 1.7; }
.how-deep-copy .btn { justify-self: start; margin-top: .5rem; }
.how-deep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.how-deep-card { min-width: 0; min-height: 18rem; padding: clamp(1.5rem, 3cqi, 2.3rem); overflow: hidden; }
.how-deep-card>span { color: var(--accent-bright); font-weight: 900; font-size: .78rem; letter-spacing: .14em; }
.how-deep-flow { padding: clamp(1.5rem, 4cqi, 3rem); }
.how-deep-flow ol { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; counter-reset: flow; }
.how-deep-flow li { min-width: 0; padding: 1.15rem; border: 1px solid var(--hairline-bright); border-radius: .75rem; background: rgba(8, 15, 25, .5); display: grid; align-content: start; gap: .55rem; counter-increment: flow; }
.how-deep-flow li:before { content: "0" counter(flow); color: var(--accent-bright); font: 1.25rem Anton, sans-serif; }
.how-deep-flow strong { line-height: 1.2; }
.how-deep-flow span { color: var(--text-2); font-size: .85rem; line-height: 1.5; }

/* Compact labels protect component geometry; form values remain exact. */
.stake-chip-num { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@container (max-width: 52rem) {
  .how-deep-section { grid-template-columns: 1fr; gap: 1rem; }
  .how-deep-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 36rem) {
  .how-deep { gap: .9rem; }
  .how-deep-hero { min-height: 21rem; padding: 1.5rem; }
  .how-deep-hero h1 { font-size: clamp(3rem, 16cqi, 4.6rem); }
  .how-deep-grid,.how-deep-flow ol { grid-template-columns: 1fr; }
  .how-deep-card { min-height: 0; }
  .how-deep-section,.how-deep-flow { padding: 1.35rem; }
}
