:root {
  --bg: #050505;
  --bg-soft: #0a0b0f;
  --card: #0d0e13;
  --card-glow: rgba(0, 217, 255, 0.18);
  --text: #f4f5f7;
  --muted: #a8adb8;
  --accent: #00d9ff;
  --accent-2: #ff3fbf;
  --accent-3: #ff9a3c;
  --brand-pink: #e02380;
  --brand-blue: #0c90ba;
  --danger: #ff3b3b;
  --success: #00ff88;
  --gold: #ffd700;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.12s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Casino ambient glow */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  z-index: -1;
  animation: casinoGlow 12s ease-in-out infinite;
}

body::before {
  background: var(--accent);
  top: -200px;
  left: -150px;
}

body::after {
  background: var(--accent-2);
  bottom: -200px;
  right: -150px;
  animation-delay: 4s;
}

/* Main container - fits viewport */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px 16px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* Centered background logo + glass overlay */
.logo-bg {
  position: fixed;
  inset: 0;
  background-image: url("assets/logo.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(45vmin, 520px);
  opacity: 0.1;
  filter: saturate(1.1) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

.glass-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.35), rgba(10, 11, 15, 0.45));
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  pointer-events: none;
  z-index: 1;
}

/* Subtle grid overlay */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   HEADER
   ============================================ */

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding-block: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  position: relative;
  min-height: 72px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.25), 0 0 40px rgba(255, 63, 191, 0.15);
  animation: logoPulse 3s ease-in-out infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(30px, 2.6vw + 12px, 54px);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}

.brand-miami {
  color: var(--brand-pink);
}

.brand-club {
  color: var(--brand-blue);
  margin-left: 6px;
}

.brand {
  position: relative;
  z-index: 2;
  grid-column: 1;
  justify-self: start;
  grid-row: 1;
  align-self: center;
}

.controls {
  position: relative;
  z-index: 2;
  grid-column: 3;
  justify-self: end;
  grid-row: 1;
  align-self: center;
}

.header-marquee {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: stretch;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
  height: 100%;
}

.header-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: headerMarquee 18s linear infinite;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(34px, 3.4vw + 10px, 74px);
  letter-spacing: 8px;
  text-transform: uppercase;
  width: max-content;
  will-change: transform;
  line-height: 1;
  transform: translateY(1px);
}

.header-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-seq {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 0;
}

.header-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9em;
}


@keyframes headerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline .icon {
  width: 12px;
  height: 12px;
  stroke: var(--accent);
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
}

.toggle-ui {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.toggle input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */

button {
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #08c1ff);
  color: #050505;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.25);
  font-family: inherit;
}

button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

button:active {
  transform: translateY(0) scale(0.98);
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: none;
}

button.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.icon-btn span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button.tap-pulse {
  transform: translateY(0) scale(0.96) !important;
}

body.sync-busy [data-action] {
  cursor: progress !important;
}

body.sync-busy [data-action]:not([disabled]) {
  opacity: 0.72;
}

.settings-btn {
  padding: 8px 10px;
}

/* ============================================
   SETTINGS PANEL
   ============================================ */

.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 8;
}

.settings-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  width: min(320px, 90vw);
  padding: 14px;
  border-radius: 16px;
  background: rgba(10, 11, 15, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 9;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.settings-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--muted);
}

.settings-actions {
  display: grid;
  gap: 8px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-field input {
  width: 100%;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-ui {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-base), background var(--transition-base);
}

.switch input:checked + .switch-ui {
  background: rgba(0, 217, 255, 0.25);
  border-color: rgba(0, 217, 255, 0.5);
}

.switch input:checked + .switch-ui::after {
  transform: translateX(18px);
  background: var(--accent);
}

.payouts-off .milestones-grid {
  display: none;
}

.payouts-off .highlights {
  display: grid;
}

body.settings-open .settings-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.settings-open .settings-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.subscriber-open {
  overflow: hidden;
}

body.room-open {
  overflow: hidden;
}

/* ============================================
   EXIT BUTTON (TV MODE)
   ============================================ */

.exit-display {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.exit-display:hover {
  opacity: 1;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

/* ============================================
   MILESTONES / PAYOUTS - COMPACT
   ============================================ */

.milestones {
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(13, 14, 19, 0.95), rgba(10, 11, 15, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.milestones-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.milestones-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  font-weight: 600;
}

.milestones-title .icon {
  color: var(--gold);
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
  animation: starSparkle 2s ease-in-out infinite;
}

.milestones-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.highlights {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.subscriber-open-btn {
  opacity: 0.88;
}

.subscriber-open-btn span {
  font-size: 11px;
}

.ranking-open-btn {
  opacity: 0.9;
}

.ranking-open-btn span {
  font-size: 11px;
}

.subscriber-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
}

.subscriber-modal[hidden] {
  display: none !important;
}

.subscriber-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.subscriber-modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(10, 11, 15, 0.98), rgba(16, 18, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
  display: grid;
  gap: 10px;
}

.subscriber-access-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.subscriber-access-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text);
  font-weight: 700;
}

.subscriber-access-sub {
  font-size: 12px;
  color: var(--muted);
}

.subscriber-access-form {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr auto;
  gap: 8px;
}

.subscriber-access-form select,
.subscriber-access-form input {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 12px;
}

.subscriber-access-meta {
  font-size: 11px;
  color: var(--muted);
}

.room-modal {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
  padding: 16px;
}

.room-modal[hidden] {
  display: none !important;
}

.room-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.room-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(10, 11, 15, 0.98), rgba(16, 18, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
  display: grid;
  gap: 10px;
}

.room-access-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.room-access-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text);
  font-weight: 700;
}

.room-access-sub {
  font-size: 12px;
  color: var(--muted);
}

.room-access-form {
  display: grid;
  gap: 10px;
}

.room-access-form input {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 12px;
}

.room-access-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.room-access-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 18px;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.highlight-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.highlight-label .icon {
  width: 16px;
  height: 16px;
}

.highlight-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.highlight-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-metric {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.highlight-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.highlight-card.editable .highlight-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition-base), max-height var(--transition-base);
}

.highlight-card.editable:hover .highlight-edit,
.highlight-card.editable:focus-within .highlight-edit {
  opacity: 1;
  max-height: 48px;
}

.highlight-card.editable:hover .highlight-sub,
.highlight-card.editable:focus-within .highlight-sub {
  opacity: 0.4;
}

.highlight-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 15px;
  font-family: inherit;
}

.highlight-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition-base), max-height var(--transition-base);
}

.highlight-card:hover .highlight-actions,
.highlight-card:focus-within .highlight-actions {
  opacity: 1;
  max-height: 40px;
}

.highlight-actions .icon-btn span {
  font-size: 10px;
}

@media (hover: none) {
  .slot-actions,
  .highlight-card.editable .highlight-edit,
  .highlight-actions,
  .swap-btn {
    opacity: 1;
    max-height: none;
    pointer-events: auto;
  }

  .versus > span {
    opacity: 0.2;
  }
}

.milestone {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.milestone:hover {
  transform: translateY(-2px);
}

.milestone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: casinoShine 4s ease-in-out infinite;
}

.milestone.tier-1 {
  border-color: rgba(205, 127, 50, 0.3);
}

.milestone.tier-1:hover {
  box-shadow: 0 8px 30px rgba(205, 127, 50, 0.25);
}

.milestone.tier-2 {
  border-color: rgba(192, 192, 192, 0.3);
}

.milestone.tier-2:hover {
  box-shadow: 0 8px 30px rgba(192, 192, 192, 0.2);
}

.milestone.tier-3 {
  border-color: rgba(255, 215, 0, 0.4);
}

.milestone.tier-3:hover {
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.milestone-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.milestone-chip .icon {
  width: 16px;
  height: 16px;
}

.milestone-chip.payout {
  color: var(--accent-2);
  font-size: 20px;
}

.milestone-chip .unit {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.milestone.tier-1 .milestone-chip:first-child {
  color: #cd7f32;
}

.milestone.tier-2 .milestone-chip:first-child {
  color: #c0c0c0;
}

.milestone.tier-3 .milestone-chip:first-child {
  color: #ffd700;
}

/* ============================================
   TABLES - FILLS REMAINING SPACE
   ============================================ */

.tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.table-card {
  background: linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: cardSlideIn 0.5s ease both;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.table-card:nth-child(2) {
  animation-delay: 0.1s;
}

.table-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 217, 255, 0.15);
}

/* Top neon line */
.table-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.5;
  animation: neonLine 5s linear infinite;
  background-size: 200% 100%;
}

.table-card.live {
  border-color: rgba(0, 217, 255, 0.25);
}

.table-card.live::before {
  opacity: 1;
  height: 3px;
  animation: neonLineFast 2s linear infinite;
}

.table-card.waiting {
  border-color: rgba(255, 154, 60, 0.2);
}

.table-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 10px;
  margin-bottom: 10px;
}

.table-left,
.table-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.table-left {
  justify-self: start;
}

.table-right {
  justify-self: end;
}

.table-actions {
  display: inline-flex;
  gap: 6px;
}

.table-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
  justify-self: center;
}

.table-chip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #080808;
  background: radial-gradient(circle at 30% 30%, #fff3d1, #ffba5a 50%, #8a4500 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0 12px rgba(255, 186, 90, 0.4);
  animation: chipFloat 3s ease-in-out infinite;
}

.table-name {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.3px;
  max-width: clamp(180px, 26vw, 360px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: statusBlink 2s ease-in-out infinite;
}

.table-status.live {
  color: var(--accent);
}

.table-status.live::after {
  content: "LIVE";
}

.table-status.waiting {
  color: var(--accent-3);
}

.table-status.waiting::after {
  content: "WAITING";
}

.table-status.idle {
  color: var(--muted);
}

.table-status.idle::after {
  content: "IDLE";
}

.table-status::after {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Match Timer */
.match-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.25);
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match-timer .icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   MATCH / PLAYER SLOTS - COMPACT
   ============================================ */

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.player-slot {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 18px 20px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}

.player-slot.empty {
  color: var(--muted);
  border: 1px dashed rgba(0, 217, 255, 0.15);
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 8px,
      rgba(0, 217, 255, 0.015) 8px,
      rgba(0, 217, 255, 0.015) 16px);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.player-slot.empty .player-name {
  font-size: 16px;
  color: var(--muted);
}

.player-slot.empty .player-meta {
  font-size: 12px;
}

.player-slot.filled {
  background: linear-gradient(160deg, rgba(10, 11, 15, 0.95), rgba(16, 18, 24, 0.95));
  border-color: rgba(255, 255, 255, 0.06);
  animation: playerSlideIn 0.3s ease;
  align-items: center;
  text-align: center;
  padding-bottom: 18px;
}

.player-slot.filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.player-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-chip .icon {
  width: 18px;
  height: 18px;
}

.stat-chip .unit {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.stat-chip.win {
  color: var(--accent);
  border-color: rgba(0, 217, 255, 0.3);
}

.stat-chip.payout {
  color: var(--accent-2);
  border-color: rgba(255, 63, 191, 0.3);
}

.player-name {
  font-size: 40px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  width: 100%;
}

.player-meta {
  color: var(--muted);
  font-size: 15px;
}

.player-progress {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.player-progress progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.player-progress progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.player-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

.versus {
  font-family: "Bebas Neue", sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(0, 217, 255, 0.3);
  box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.15), 0 0 15px rgba(0, 217, 255, 0.1);
  animation: vsGlow 2s ease-in-out infinite;
  position: relative;
}

.versus > span {
  transition: opacity var(--transition-base);
}

.swap-btn {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity var(--transition-base), transform var(--transition-base);
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.35);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.2);
}

.versus:hover .swap-btn,
.versus:focus-within .swap-btn {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.versus:hover > span,
.versus:focus-within > span {
  opacity: 0.2;
}

/* ============================================
   QUEUE - COMPACT
   ============================================ */

.queue {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.queue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.queue-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 20px;
}

.queue-label .icon {
  width: 16px;
  height: 16px;
}

.queue-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(0, 217, 255, 0.08);
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: scroll;
  max-height: none;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(0, 217, 255, 0.6) rgba(255, 255, 255, 0.12);
}

.queue-list::-webkit-scrollbar {
  width: 10px;
}

.queue-list::-webkit-scrollbar-thumb {
  background: rgba(0, 217, 255, 0.6);
  border-radius: 999px;
}

.queue-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.queue-list {
  padding-right: 4px;
}

.queue-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast);
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.queue-item.next-up {
  border-color: rgba(0, 217, 255, 0.35);
  background: rgba(0, 217, 255, 0.05);
}

.queue-item.subscriber {
  border-color: rgba(255, 202, 92, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 202, 92, 0.12), rgba(255, 202, 92, 0.04)),
    rgba(255, 255, 255, 0.02);
}

.queue-item.subscriber .queue-name {
  color: #ffe7b7;
}

.queue-item.subscriber.next-up {
  border-color: rgba(255, 212, 117, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 212, 117, 0.14), rgba(0, 217, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.queue-position {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  min-width: 20px;
}

.queue-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.queue-badge {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  animation: badgePulse 1.5s ease-in-out infinite;
}

.queue-badge-subscriber {
  color: #f6c96b;
  border-color: rgba(246, 201, 107, 0.45);
  background: rgba(246, 201, 107, 0.1);
  animation: none;
}

.queue-item button {
  padding: 8px 14px;
  font-size: 15px;
}

.queue-item button:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.queue-edit {
  flex: 1;
  min-width: 80px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text);
  padding: 5px 8px;
  font-size: 18px;
  font-family: inherit;
}

.queue-edit:focus {
  outline: none;
  border-color: var(--accent);
}

.queue-empty {
  color: var(--muted);
  font-size: 17px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-align: center;
}

.input-row {
  display: flex;
  gap: 6px;
}

.queue-head .input-row {
  flex: 1;
  justify-content: flex-end;
}

.queue-head .input-row input {
  max-width: 150px;
}

input[type="text"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--text);
  padding: 7px 10px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.1);
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   SLOT ACTIONS
   ============================================ */

.slot-actions {
  display: flex;
  gap: 8px;
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.slot-actions .win {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050505;
  padding: 6px 12px;
  font-weight: 700;
  flex: 1;
}

.slot-actions .win:hover {
  animation: winGlow 0.5s ease-in-out infinite;
}

.slot-actions .remove {
  border-color: rgba(255, 255, 255, 0.15);
}

.slot-actions .remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ============================================
   TOAST
   ============================================ */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(135deg, rgba(13, 14, 19, 0.98), rgba(20, 22, 28, 0.98));
  border: 1px solid rgba(0, 217, 255, 0.3);
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 217, 255, 0.15);
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================
   WIN OVERLAY
   ============================================ */

.win-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 900;
}

.win-overlay.show {
  opacity: 1;
}

.win-popup {
  padding: clamp(18px, 2vw + 10px, 34px) clamp(26px, 3vw + 12px, 54px);
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(13, 14, 19, 0.98), rgba(10, 11, 15, 0.98));
  border: 1px solid rgba(0, 217, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 217, 255, 0.2);
  text-align: center;
  min-width: min(520px, 85vw);
  animation: winDrop 0.6s ease;
}

.win-title {
  font-size: clamp(14px, 1.2vw + 6px, 22px);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
}

.win-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(32px, 4vw + 12px, 90px);
  letter-spacing: 3px;
  margin-top: 6px;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.35);
}

.win-count {
  margin-top: 4px;
  font-size: clamp(14px, 1.4vw + 6px, 24px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.win-sub {
  margin-top: 6px;
  font-size: clamp(12px, 1.2vw + 5px, 18px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes winDrop {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   CONFETTI
   ============================================ */

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti {
  position: absolute;
  opacity: 0;
  animation: confettiFall 3s ease-out forwards;
}

/* ============================================
   TV / DISPLAY MODE
   ============================================ */

body.display-mode .controls,
body.display-mode .admin-only,
body.display-mode .queue-item button,
body.display-mode .ghost,
body.display-mode .input-row {
  display: none !important;
}

body.display-mode .exit-display {
  opacity: 0.4;
  pointer-events: auto;
}

body.display-mode .exit-display:hover {
  opacity: 1;
}

body.display-mode .brand-logo {
  width: 72px;
  height: 72px;
}

body.display-mode .brand-name {
  font-size: clamp(34px, 3.2vw + 14px, 68px);
  letter-spacing: 3px;
}

body.display-mode .header-track {
  font-size: clamp(34px, 3.4vw + 10px, 74px);
  letter-spacing: 8px;
}

body.display-mode .table-card {
  transform: scale(1.01);
  padding: 22px;
}

body.display-mode .table-name {
  font-size: 32px;
}

body.display-mode .table-chip {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

body.display-mode .match {
  gap: 18px;
  margin-bottom: 18px;
}

body.display-mode .player-slot {
  min-height: 120px;
  padding: 18px 20px;
}

body.display-mode .player-name {
  font-size: 40px;
  line-height: 1.05;
}

body.display-mode .player-meta {
  font-size: 15px;
}

body.display-mode .player-progress progress {
  height: 8px;
}

body.display-mode .stat-chip {
  font-size: 18px;
  padding: 3px 7px;
}

body.display-mode .stat-chip .icon {
  width: 18px;
  height: 18px;
}

body.display-mode .versus {
  font-size: 30px;
  width: 64px;
  height: 64px;
  border-width: 2px;
}

body.display-mode .match-timer {
  font-size: 17px;
  padding: 8px 14px;
}

body.display-mode .queue-label {
  font-size: 20px;
}

body.display-mode .queue-count {
  font-size: 20px;
  padding: 6px 16px;
}

body.display-mode .queue-item {
  font-size: 22px;
  padding: 14px 18px;
}

.slot-actions {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.player-slot.filled:hover .slot-actions,
.player-slot.filled:focus-within .slot-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.display-mode .milestones {
  padding: 10px 14px;
}

body.display-mode .milestones-grid {
  gap: 10px;
}

body.display-mode .milestone {
  padding: 12px 10px;
}

body.display-mode .milestone-chip {
  font-size: 18px;
}

body.display-mode .milestone-chip.payout {
  font-size: 20px;
}

body.display-mode .milestone-chip .unit {
  font-size: 10px;
}

body.display-mode .highlights {
  gap: 10px;
}

body.display-mode .highlight-card {
  padding: 14px 12px;
}

body.display-mode .highlight-label {
  font-size: 11px;
}

body.display-mode .highlight-name {
  font-size: 26px;
}

body.display-mode .highlight-metric {
  font-size: 14px;
}

body.display-mode .highlight-sub {
  font-size: 12px;
}

body.display-mode .highlight-input {
  font-size: 13px;
  padding: 8px 10px;
}

body.display-mode .highlight-actions .icon-btn span {
  font-size: 10px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes casinoGlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.08;
  }

  50% {
    transform: translate(30px, -20px) scale(1.1);
    opacity: 0.12;
  }
}

@keyframes logoPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.25), 0 0 40px rgba(255, 63, 191, 0.15);
  }

  50% {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4), 0 0 50px rgba(255, 63, 191, 0.25);
  }
}

@keyframes starSparkle {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    transform: scale(1.1);
  }
}

@keyframes casinoShine {
  0% {
    transform: translateX(-100%) rotate(15deg);
  }

  20%,
  100% {
    transform: translateX(200%) rotate(15deg);
  }
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes playerSlideIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes neonLine {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes neonLineFast {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes chipFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes statusBlink {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes vsGlow {

  0%,
  100% {
    box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.15), 0 0 15px rgba(0, 217, 255, 0.1);
  }

  50% {
    box-shadow: inset 0 0 15px rgba(0, 217, 255, 0.25), 0 0 25px rgba(0, 217, 255, 0.2);
  }
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0);
  }
}

@keyframes winGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.6);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(0, 217, 255, 0);
  }
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(-50px) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .header-track {
    animation-duration: 18s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ============================================
   GOLDEN PARTICLE RAIN (Casino Premium)
   ============================================ */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFall 10s linear infinite;
}

.particle:nth-child(odd) {
  background: var(--accent);
  animation-duration: 12s;
}

.particle:nth-child(3n) {
  background: var(--accent-2);
  width: 2px;
  height: 2px;
  animation-duration: 8s;
}

@keyframes particleFall {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0);
  }

  5% {
    opacity: 0.5;
    transform: translateY(0) scale(1);
  }

  95% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(100vh) scale(0.3);
  }
}

/* ============================================
   RESPONSIVE - Adaptive Scaling
   ============================================ */

/* Large desktop */
@media (min-width: 1400px) {
  .page {
    max-width: 1600px;
    padding: 16px 28px 20px;
  }
}

/* Tablet / Small laptop */
@media (max-width: 1100px) {
  .tables {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body {
    overflow-y: auto;
  }

  .page {
    height: auto;
    min-height: 100vh;
  }
}

/* Small screens - height based scaling */
@media (max-height: 850px) and (max-width: 1100px) {
  .page {
    padding: 10px 16px 14px;
    gap: 8px;
  }

  .topbar {
    padding-bottom: 8px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 20px;
    letter-spacing: 1.5px;
  }


  .milestones {
    padding: 8px 12px;
  }

  .milestones-head {
    margin-bottom: 6px;
  }

  .milestones-title {
    font-size: 12px;
  }

  .milestones-grid {
    gap: 8px;
  }

  .milestone {
    padding: 10px 8px;
    gap: 12px;
  }

  .milestone-chip {
    font-size: 16px;
    gap: 4px;
  }

  .milestone-chip .icon {
    width: 14px;
    height: 14px;
  }

  .milestone-chip.payout {
    font-size: 18px;
  }

  .tables {
    gap: 10px;
  }

  .table-card {
    padding: 12px;
    border-radius: 14px;
  }

  .table-head {
    margin-bottom: 8px;
  }

  .table-chip {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .table-name {
    font-size: 17px;
  }

  .match {
    gap: 8px;
    margin-bottom: 8px;
  }

  .player-slot {
    padding: 8px 10px;
    min-height: 58px;
    border-radius: 10px;
  }

  .player-name {
    font-size: 14px;
  }

  .player-meta {
    font-size: 9px;
  }

  .player-progress progress {
    height: 4px;
  }

  .stat-chip {
    padding: 2px 5px;
    font-size: 10px;
  }

  .versus {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-width: 1px;
  }

  .slot-actions {
    margin-top: 5px;
    gap: 6px;
  }

  .slot-actions button {
    padding: 5px 10px;
    font-size: 10px;
  }

  .queue {
    margin-top: 0;
  }

  .queue-head {
    margin-bottom: 4px;
  }

  .queue-label {
    font-size: 10px;
  }

  .queue-count {
    font-size: 10px;
    padding: 1px 6px;
  }

  .queue-list {
    max-height: none;
    gap: 3px;
  }

  .queue-item {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
  }

  .queue-head .input-row input {
    max-width: 120px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .queue-head .input-row button {
    padding: 5px 10px;
  }
}

/* Extra small height */
@media (max-height: 700px) and (max-width: 1100px) {
  .page {
    padding: 8px 12px 10px;
    gap: 6px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 18px;
    letter-spacing: 1.2px;
  }


  .tagline {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .milestones {
    padding: 6px 10px;
  }

  .milestone {
    padding: 8px 6px;
    gap: 10px;
  }

  .milestone-chip {
    font-size: 14px;
  }

  .milestone-chip.payout {
    font-size: 16px;
  }

  .table-card {
    padding: 10px;
  }

  .table-name {
    font-size: 15px;
  }

  .player-slot {
    min-height: 50px;
    padding: 6px 8px;
  }

  .player-name {
    font-size: 13px;
  }

  .versus {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .queue-list {
    max-height: 55px;
  }
}

/* Mobile width */
@media (max-width: 600px) {
  .page {
    padding: 10px 12px;
  }

  .controls {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .subscriber-open-btn span {
    display: none;
  }

  .ranking-open-btn span {
    display: none;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 20px;
    letter-spacing: 1.4px;
  }


  .milestones-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .highlights {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .milestone {
    padding: 10px;
    flex-direction: row;
    justify-content: space-between;
  }

  .table-name {
    font-size: 16px;
  }

  .player-name {
    font-size: 14px;
  }

  .match {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .versus {
    margin: 0 auto;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .subscriber-modal {
    padding: 10px;
  }

  .subscriber-modal-card {
    padding: 12px;
  }
}

/* Landscape small screens */
@media (max-height: 500px) and (max-width: 1100px) and (orientation: landscape) {
  .milestones {
    display: none;
  }

  .page {
    padding: 6px 10px;
    gap: 6px;
  }

  .topbar {
    padding-bottom: 4px;
  }

  .tables {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ============================================
   RANKING PAGE
   ============================================ */

body.ranking {
  overflow-y: auto;
}

body.ranking .page {
  max-width: 1500px;
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.ranking-main {
  display: grid;
  gap: 18px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ranking-top-card {
  background: linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.ranking-top-label {
  font-size: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.ranking-top-name {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.ranking-top-metric {
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.ranking-top-sub {
  font-size: 14px;
  color: var(--muted);
}

.ranking-board {
  background: linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.ranking-board .panel-title {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.ranking-meta {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.ranking-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 59, 59, 0.35);
  background: rgba(255, 59, 59, 0.08);
  color: #ffd6d6;
}

.ranking-table-wrap {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: auto;
}

.ranking-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 16px;
  vertical-align: middle;
}

.ranking-table th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.ranking-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ranking-table td.is-rank {
  color: var(--accent);
  font-weight: 700;
  font-size: 22px;
  width: 84px;
}

.ranking-table td.is-player {
  font-weight: 600;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  width: 34%;
}

.ranking-table td:not(.is-player):not(.is-rank) {
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 600;
}

.ranking-placeholder td {
  color: var(--muted);
}

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

  .ranking-meta {
    width: 100%;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 12px 12px;
    font-size: 14px;
  }

  .ranking-table td.is-player {
    font-size: 21px;
  }

  .ranking-table td.is-rank {
    font-size: 18px;
    width: 58px;
  }

  .ranking-table td:not(.is-player):not(.is-rank) {
    font-size: 15px;
  }
}

/* ============================================
   TOURNAMENT PAGE
   ============================================ */

body.tournament .page {
  max-width: 1600px;
}

.tournament-main {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.tourney-setup .tournament-main {
  grid-template-columns: minmax(280px, 560px);
  justify-content: center;
}

.tourney-setup .roster-panel {
  max-width: 900px;
  margin-inline: auto;
}

.tourney-setup .bracket-panel {
  display: none;
}

.tourney-panel {
  background: linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  font-size: 22px;
  font-weight: 600;
}

.panel-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.panel-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bracket-intel {
  display: grid;
  gap: 14px;
}

.bracket-intel[hidden] {
  display: none !important;
}

.bracket-intel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bracket-intel-copy {
  display: grid;
  gap: 4px;
}

.round-stage-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.stage-card {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.12), transparent 45%);
  display: grid;
  gap: 4px;
  min-height: 112px;
}

.stage-card.stage-current {
  border-color: rgba(0, 217, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.2), 0 12px 30px rgba(0, 217, 255, 0.12);
}

.stage-card.stage-done {
  border-color: rgba(0, 255, 136, 0.28);
  background:
    linear-gradient(145deg, rgba(0, 255, 136, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.stage-card.stage-upcoming {
  opacity: 0.82;
}

.stage-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.stage-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.stage-stats {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.stage-sub {
  font-size: 12px;
  color: var(--muted);
}

.opening-round-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 22px;
  background: rgba(3, 4, 6, 0.82);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
}

.opening-round-overlay[hidden] {
  display: none !important;
}

.opening-round-panel {
  width: min(1320px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(18, 20, 28, 0.98), rgba(7, 8, 12, 0.98));
  display: grid;
  gap: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.opening-round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.opening-round-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.opening-round-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.opening-round-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.opening-card {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 10px;
}

.opening-card.status-live {
  border-color: rgba(0, 217, 255, 0.34);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.14);
}

.opening-card.status-complete,
.opening-card.status-bye {
  border-color: rgba(0, 255, 136, 0.26);
}

.opening-card-head,
.opening-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.opening-card-index {
  font-size: 12px;
  font-weight: 700;
}

.opening-card-status {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.opening-card-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.opening-player {
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  text-align: center;
}

.opening-player.winner {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.12);
}

.opening-versus {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.opening-winner {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.opening-winner.muted {
  color: var(--muted);
}

.opening-table {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

body.opening-round-open {
  overflow: hidden;
}

.live-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(10, 11, 15, 0.9), rgba(12, 14, 20, 0.95));
  box-shadow: inset 0 0 24px rgba(0, 217, 255, 0.08);
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.summary-card {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 4px;
}

.summary-card.summary-highlight {
  border-color: rgba(0, 255, 136, 0.25);
  background: linear-gradient(160deg, rgba(0, 255, 136, 0.08), rgba(12, 14, 20, 0.9));
}

.summary-card.has-champion {
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.16);
}

.summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.summary-value {
  font-size: 22px;
  font-weight: 600;
}

.summary-sub {
  font-size: 12px;
  color: var(--muted);
}

.roster-strip {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.roster-strip-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.roster-strip-list {
  display: grid;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
  max-height: 35vh;
}

.roster-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  width: 100%;
  justify-content: space-between;
}

.roster-chip-index {
  font-size: 11px;
  color: var(--accent);
}

.roster-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-chip.empty {
  color: var(--muted);
  border-style: dashed;
}

.stepper {
  display: grid;
  gap: 6px;
}

.step {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--muted);
}

.step.active {
  color: var(--text);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.12);
}

.bulk-add {
  display: grid;
  gap: 8px;
}

.bulk-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.bulk-add textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.6;
  resize: vertical;
  min-height: 200px;
}

.bulk-add textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.1);
}

.roster-panel .input-row input {
  flex: 1;
}

.roster-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 6px;
  min-height: 140px;
}

.roster-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.roster-item.editing {
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.12);
}

.roster-index {
  font-weight: 600;
  color: var(--accent);
}

.roster-name {
  font-weight: 500;
}

.roster-edit {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 8px;
  font-size: 15px;
  font-family: inherit;
}

.roster-actions {
  display: inline-flex;
  gap: 6px;
}

.roster-actions .icon-btn {
  padding: 4px 8px;
}

.roster-actions .icon-btn span {
  display: none;
}

.roster-actions .icon {
  width: 12px;
  height: 12px;
}

.roster-actions .icon-btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.roster-actions {
  justify-self: end;
}

.roster-item .ghost {
  min-height: 28px;
}

.roster-actions button {
  box-shadow: none;
}

.roster-actions .ghost:hover {
  transform: none;
}

.roster-actions .ghost {
  border-radius: 8px;
}

.empty-state {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.roster-footer {
  display: grid;
  gap: 8px;
}

.bracket-panel {
  min-height: 0;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 14px;
  min-height: 0;
  flex: 1;
}

.live-sidebar,
.live-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.live-main {
  order: 1;
}

.live-sidebar {
  order: 2;
}

.next-panel {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
}

.next-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.next-title {
  font-weight: 600;
  font-size: 14px;
}

.next-list {
  display: grid;
  gap: 8px;
  max-height: 28vh;
  overflow-y: auto;
  padding-right: 4px;
}

.next-item {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.next-round {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.next-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.next-vs {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.next-actions {
  display: inline-flex;
  gap: 6px;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}

.tables-grid .empty-state {
  grid-column: 1 / -1;
}

.table-lane {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
  min-height: 150px;
}

.table-lane.live {
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.table-lane.complete {
  border-color: rgba(0, 255, 136, 0.3);
}

.table-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.table-lane-chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: radial-gradient(circle at 30% 30%, #fff3d1, #ffba5a 50%, #8a4500 100%);
  color: #050505;
}

.table-lane-title {
  font-weight: 600;
}

.table-lane-status {
  font-size: 12px;
  color: var(--muted);
}

.table-lane-body {
  display: grid;
  gap: 10px;
}

.lane-empty {
  color: var(--muted);
}

.lane-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.lane-player {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.lane-player:hover {
  transform: translateY(-1px);
}

.lane-vs {
  color: var(--muted);
  font-size: 12px;
}

.lane-actions {
  display: flex;
  gap: 8px;
}

.bracket-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 340px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: auto;
  padding: 4px 6px 10px 2px;
  min-height: 0;
  flex: 1;
  align-items: start;
  align-content: start;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: auto;
  scrollbar-color: rgba(0, 217, 255, 0.7) rgba(255, 255, 255, 0.12);
}

.bracket-scrollbar-shell {
  padding: 0 4px 2px;
}

.bracket-scrollbar {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 16px;
  background: transparent;
  cursor: pointer;
}

.bracket-scrollbar:disabled {
  opacity: 0.45;
  cursor: default;
}

.bracket-scrollbar::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bracket-scrollbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 16px;
  margin-top: -4px;
  border-radius: 999px;
  border: 2px solid rgba(10, 11, 15, 0.9);
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.92), rgba(255, 63, 191, 0.78));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.bracket-scrollbar::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bracket-scrollbar::-moz-range-thumb {
  width: 88px;
  height: 16px;
  border: 2px solid rgba(10, 11, 15, 0.9);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.92), rgba(255, 63, 191, 0.78));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.round-column {
  min-width: 300px;
  height: max-content;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  scroll-snap-align: start;
}

.round-column.is-current {
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.18), 0 16px 34px rgba(0, 217, 255, 0.1);
}

.round-column.is-complete {
  border-color: rgba(0, 255, 136, 0.2);
}

.round-column.is-upcoming {
  opacity: 0.84;
}

.round-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.round-title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--muted);
}

.round-meta,
.round-subline {
  font-size: 12px;
  color: var(--muted);
}

.round-meta {
  font-weight: 600;
  color: var(--accent);
}

.round-matches {
  display: grid;
  gap: 10px;
}

.match-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 12px;
}

.match-card.status-live {
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.18);
}

.match-card.status-complete {
  border-color: rgba(0, 255, 136, 0.3);
}

.match-card.status-bye {
  border-color: rgba(255, 154, 60, 0.3);
}

.match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-label {
  font-weight: 600;
}

.match-round-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.match-badges {
  display: inline-flex;
  gap: 6px;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.badge-table {
  border-color: rgba(0, 217, 255, 0.35);
  color: var(--accent);
}

.badge-status {
  border-color: rgba(255, 255, 255, 0.15);
}

.match-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.match-players.is-condensed {
  grid-template-columns: 1fr;
}

.player-btn {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.player-btn:hover:not([disabled]) {
  transform: translateY(-1px);
  border-color: rgba(0, 217, 255, 0.4);
}

.player-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.player-btn.winner {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.15);
}

.match-line {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.match-line.winner-line {
  border-color: rgba(0, 255, 136, 0.38);
  color: var(--success);
}

.match-line.match-line-meta {
  font-size: 12px;
  color: var(--muted);
}

.match-vs {
  color: var(--muted);
  font-size: 12px;
}

.match-winner {
  font-size: 12px;
  color: var(--success);
}

.match-footer {
  display: grid;
  gap: 8px;
}

.match-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.match-actions .ghost,
.match-undo {
  width: 100%;
  justify-content: center;
}

.match-undo {
  min-height: 32px;
}

.match-footer .icon-btn span {
  font-size: 10px;
}

.match-footer .ghost {
  min-height: 28px;
}

.match-footer .ghost[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.match-card.is-condensed {
  gap: 10px;
}

.match-card.is-condensed .match-footer {
  padding-top: 2px;
}

.bracket-panel > .panel-head {
  display: none;
}

.tourney-live .roster-panel .input-row,
.tourney-live .roster-panel .roster-actions,
.tourney-live .roster-panel .roster-footer,
.tourney-live .roster-panel .panel-actions,
.tourney-live .roster-panel .bulk-add,
.tourney-live .roster-panel #toggleBulkBtn {
  opacity: 0.5;
  pointer-events: none;
}

.tourney-live .tournament-main {
  grid-template-columns: 1fr;
}

.tourney-live .roster-panel {
  display: none;
}

.tourney-live .roster-strip {
  display: none;
}

@media (max-width: 1100px) {
  .tournament-main {
    grid-template-columns: 1fr;
  }

  .tables-grid {
    grid-template-columns: 1fr;
  }

  .live-layout {
    grid-template-columns: 1fr;
  }

  .bracket-scroll {
    grid-auto-columns: minmax(240px, 84vw);
  }
}

@media (max-width: 720px) {
  .round-stage-rail,
  .opening-round-grid {
    grid-template-columns: 1fr;
  }

  .opening-round-overlay {
    padding: 10px;
  }

  .opening-round-panel {
    max-height: calc(100vh - 20px);
    padding: 14px;
    border-radius: 16px;
  }

  .bracket-intel-head,
  .opening-round-head {
    align-items: stretch;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-players,
  .lane-players {
    grid-template-columns: 1fr;
  }

  .match-vs,
  .lane-vs {
    display: none;
  }

  .opening-card-body {
    grid-template-columns: 1fr;
  }

  .opening-versus {
    display: none;
  }
}

/* Tournament header link */
a.ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: none;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-fast);
}

a.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

@media (max-width: 900px) {
  .subscriber-access-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscriber-access-form {
    grid-template-columns: 1fr;
  }

  .subscriber-access-form .icon-btn {
    width: 100%;
    justify-content: center;
  }

  .subscriber-modal {
    padding: 12px;
  }
}

/* ============================================
   LANDING PAGE
   ============================================ */

body.landing {
  overflow-y: auto;
}

body.landing .page {
  max-width: 1480px;
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

.landing-page {
  gap: 18px;
}

.landing-topbar {
  grid-template-columns: auto 1fr auto;
}

.landing-nav {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.landing-main {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
}

.landing-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.stage-hero-card,
.stage-visual-card,
.access-card,
.ribbon-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.stage-hero-card {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 63, 191, 0.2), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 217, 255, 0.15), transparent 40%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 460px;
}

.stage-mark {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.stage-title {
  display: grid;
  gap: 4px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(70px, 9vw, 150px);
  line-height: 0.88;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stage-title span:nth-child(2) {
  color: var(--brand-pink);
}

.stage-title span:nth-child(3) {
  color: var(--brand-blue);
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-visual-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(12, 13, 18, 0.96), rgba(8, 9, 12, 0.98)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 14px;
  min-height: 460px;
}

.visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.visual-score-wall {
  display: grid;
  gap: 12px;
}

.score-panel {
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 14px;
  min-height: 150px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-panel.neon-cyan {
  box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.18), 0 0 24px rgba(0, 217, 255, 0.12);
}

.score-panel.neon-gold {
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.18), 0 0 24px rgba(255, 215, 0, 0.08);
}

.score-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.score-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.score-player {
  border-radius: 16px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  text-align: center;
  letter-spacing: 2px;
}

.score-center {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.score-foot {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.signal-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.signal-card.accent {
  background: linear-gradient(160deg, rgba(255, 63, 191, 0.12), rgba(255, 255, 255, 0.03));
}

.signal-k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.signal-v {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.landing-access-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.access-card {
  padding: 24px;
  min-height: 250px;
  text-decoration: none;
  color: var(--text);
  display: grid;
  align-content: space-between;
  gap: 14px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.access-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 255, 0.25);
}

.access-card-tables {
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
}

.access-card-ranking {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
}

.access-card-tournament {
  background:
    radial-gradient(circle at top right, rgba(255, 63, 191, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
}

.access-badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted);
}

.access-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(48px, 4vw, 72px);
  line-height: 0.94;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.access-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.access-mini span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  letter-spacing: 0.4px;
}

.club-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ribbon-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.ribbon-k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.ribbon-v {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 18px;
}

.hero-copy-card,
.hero-preview-card,
.story-card,
.landing-roadmap,
.quick-access-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-copy-card {
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(0, 217, 255, 0.18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(255, 63, 191, 0.12), transparent 32%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
  display: grid;
  gap: 18px;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.landing-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(54px, 6vw, 102px);
  line-height: 0.94;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  max-width: 12ch;
}

.landing-copy {
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-primary {
  min-height: 50px;
  padding-inline: 20px;
}

.landing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-badge {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--text);
}

.hero-preview-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(12, 13, 18, 0.96), rgba(8, 9, 12, 0.98)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 14px;
}

.preview-window {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.preview-head,
.mini-table-top,
.story-card,
.roadmap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.preview-chip,
.preview-status,
.mini-pill {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.preview-chip {
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--accent);
}

.preview-status {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.preview-columns {
  display: grid;
  gap: 12px;
}

.mini-table-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 12px;
}

.mini-table-name {
  font-size: 20px;
  font-weight: 700;
}

.mini-pill.live {
  color: var(--accent);
  border: 1px solid rgba(0, 217, 255, 0.32);
}

.mini-pill.ready {
  color: var(--success);
  border: 1px solid rgba(0, 255, 136, 0.24);
}

.mini-match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
}

.mini-match-row span:nth-child(2) {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.2px;
}

.mini-queue {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-side-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.hero-stat-card.accent {
  background: linear-gradient(160deg, rgba(0, 217, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-color: rgba(0, 217, 255, 0.24);
}

.hero-stat-k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.hero-stat-v {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
}

.hero-stat-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.landing-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-access-card {
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  display: grid;
  gap: 12px;
  min-height: 250px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.quick-access-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 217, 255, 0.28);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.quick-tables {
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.16), transparent 35%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
}

.quick-ranking {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.15), transparent 35%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
}

.quick-tournament {
  background:
    radial-gradient(circle at top right, rgba(255, 63, 191, 0.15), transparent 35%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
}

.quick-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.quick-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(34px, 3vw, 50px);
  letter-spacing: 1.4px;
  line-height: 0.98;
  text-transform: uppercase;
}

.quick-copy,
.story-copy,
.roadmap-copy {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.quick-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.landing-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.story-card {
  padding: 24px;
  background: linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
  border-radius: 22px;
  display: grid;
  gap: 12px;
}

.story-dark {
  background:
    radial-gradient(circle at bottom left, rgba(255, 63, 191, 0.12), transparent 32%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
}

.story-metric {
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.12), transparent 32%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
}

.story-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--accent);
}

.story-title,
.roadmap-title {
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.02;
  font-weight: 700;
  max-width: 16ch;
}

.landing-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.landing-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.landing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.landing-roadmap {
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 16px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-card {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
}

.roadmap-step {
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  letter-spacing: 1.2px;
  color: var(--accent);
  line-height: 1;
}

.roadmap-name {
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .landing-stage,
  .landing-access-wall,
  .club-ribbon {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .landing-story-grid,
  .landing-quick-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .hero-side-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body.landing .page {
    padding-inline: 14px;
  }

  .landing-nav {
    justify-content: flex-start;
  }

  .landing-title {
    font-size: clamp(42px, 13vw, 72px);
  }

  .landing-copy {
    font-size: 16px;
  }

  .stage-hero-card,
  .stage-visual-card,
  .access-card,
  .ribbon-card {
    border-radius: 18px;
  }

  .stage-hero-card,
  .stage-visual-card,
  .access-card {
    padding: 18px;
  }

  .stage-title {
    font-size: clamp(54px, 16vw, 86px);
  }

  .score-vs {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy-card,
  .hero-preview-card,
  .story-card,
  .landing-roadmap,
  .quick-access-card {
    padding: 18px;
    border-radius: 18px;
  }

  .preview-head,
  .mini-table-top,
  .roadmap-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-match-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LANDING MINIMAL
   ============================================ */

body.landing-minimal .page {
  max-width: 1380px;
}

.landing-page-minimal {
  gap: 22px;
}

.landing-topbar-simple {
  grid-template-columns: 1fr;
}

.landing-main-simple {
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}

.landing-hero-simple {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.landing-hero-copy,
.landing-hero-visual {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.landing-hero-copy {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 63, 191, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 217, 255, 0.16), transparent 40%),
    linear-gradient(160deg, rgba(13, 14, 19, 0.98), rgba(8, 9, 12, 0.98));
  display: grid;
  gap: 20px;
  align-content: center;
  min-height: 500px;
}

.landing-mark-simple {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
}

.landing-title-simple {
  display: grid;
  gap: 2px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(78px, 10vw, 170px);
  line-height: 0.86;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.landing-title-simple span:last-child {
  color: var(--brand-pink);
}

.landing-sub-simple {
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 600;
  color: var(--text);
}

.landing-main-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.landing-entry {
  min-height: 176px;
  padding: 18px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--text);
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.landing-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

.landing-entry-primary {
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.24), transparent 42%),
    linear-gradient(160deg, rgba(8, 17, 22, 0.98), rgba(8, 9, 12, 0.98));
}

.landing-entry-secondary {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.22), transparent 42%),
    linear-gradient(160deg, rgba(24, 19, 8, 0.98), rgba(8, 9, 12, 0.98));
}

.landing-entry-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(46px, 4vw, 78px);
  line-height: 0.92;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.landing-hero-visual {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(12, 13, 18, 0.96), rgba(8, 9, 12, 0.98)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 500px;
}

.landing-table-stage {
  border-radius: 24px;
  padding: 20px;
  min-height: 170px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-table-stage.stage-one {
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.22), transparent 38%),
    rgba(255, 255, 255, 0.03);
}

.landing-table-stage.stage-two {
  background:
    radial-gradient(circle at top right, rgba(255, 63, 191, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.03);
}

.landing-table-chip {
  width: 94px;
  height: 94px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 56px;
  letter-spacing: 1px;
  color: #050505;
  background: linear-gradient(145deg, #fff4cf, #ffd46a 55%, #d8891c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.landing-table-meta {
  display: grid;
  gap: 6px;
}

.landing-table-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(42px, 4vw, 70px);
  letter-spacing: 1.4px;
  line-height: 0.92;
  text-transform: uppercase;
}

.landing-versus-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.landing-versus-strip span {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

@media (max-width: 1100px) {
  .landing-hero-simple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .landing-topbar-simple {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .landing-hero-copy,
  .landing-hero-visual {
    padding: 18px;
    border-radius: 18px;
  }

  .landing-hero-copy,
  .landing-hero-visual {
    min-height: auto;
  }

  .landing-title-simple {
    font-size: clamp(58px, 18vw, 92px);
  }

  .landing-main-actions {
    grid-template-columns: 1fr;
  }

  .landing-table-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-table-chip {
    width: 76px;
    height: 76px;
    font-size: 44px;
  }

  .landing-table-name {
    font-size: clamp(34px, 10vw, 56px);
  }

  .shortcut-title {
    font-size: clamp(44px, 14vw, 70px);
  }
}
