:root {
  --bg: #05030b;
  --bg-2: #0d0718;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.12);
  --text: #f7f4ff;
  --muted: #b9aed4;
  --purple: #8f3dff;
  --purple-2: #b46cff;
  --purple-3: #d7bcff;
  --green: #22c55e;
  --danger: #f87171;
  --shadow: 0 20px 60px rgba(113, 39, 255, 0.24);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top, rgba(143, 61, 255, 0.25), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(180, 108, 255, 0.18), transparent 18%),
    linear-gradient(180deg, #05030b 0%, #080511 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { max-width: var(--max); margin: 0 auto; padding: 20px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 20px; border: 1px solid var(--stroke); border-radius: 999px;
  background: rgba(10, 7, 18, 0.7); backdrop-filter: blur(14px); position: sticky; top: 12px; z-index: 50;
  position: sticky;
  position: -webkit-sticky;
  position: sticky;
  position: relative;
}
.brand { display:flex; align-items:center; gap:14px; min-width:0; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand strong { display:block; font-size:1.1rem; }
.brand span { display:block; color:var(--muted); font-size:.84rem; }
.nav { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.nav a:not(.btn) { color: var(--muted); font-weight: 600; }
.nav a.active, .nav a:not(.btn):hover { color: var(--text); }
.burger {
  display:none; border:none; background:rgba(255,255,255,.06); color:#fff; font-size:1.2rem;
  width:46px; height:46px; border-radius:50%; cursor:pointer;
  position: relative; z-index: 60; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:0 18px;
  border-radius:999px; font-weight:800; border:1px solid transparent; transition:.2s ease; cursor:pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%);
  box-shadow: var(--shadow);
}
.btn-outline { border-color: var(--stroke); background: rgba(255,255,255,.02); }
.btn-block { width:100%; }
.text-link { color: var(--purple-3); font-weight: 700; }
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.hero {
  display:grid; grid-template-columns: 1.15fr .85fr; gap:28px; align-items:center;
  min-height: calc(100vh - 160px); padding: 40px 0;
}
.hero-copy h1, .page-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: .98; margin: 12px 0 16px; letter-spacing: -0.04em; }
.hero-copy p, .page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 760px; }
.eyebrow {
  display:inline-flex; padding:10px 14px; border-radius:999px; font-size:.76rem; letter-spacing:.15em;
  color: var(--purple-3); background: rgba(143,61,255,.12); border: 1px solid rgba(180,108,255,.22); font-weight: 800;
}
.hero-actions, .hero-badges { display:flex; gap:14px; flex-wrap:wrap; margin-top:24px; }
.hero-badges span {
  padding:10px 14px; background:rgba(255,255,255,.04); border:1px solid var(--stroke); border-radius:999px; color:var(--muted); font-weight:600;
}
.hero-card { position:relative; padding:28px; overflow:hidden; }
.hero-card-top { display:flex; align-items:center; gap:10px; color: var(--purple-3); margin-bottom:16px; }
.card-glow {
  position:absolute; inset:auto -40px -40px auto; width:200px; height:200px;
  background: radial-gradient(circle, rgba(143,61,255,.42), transparent 70%); pointer-events:none;
}
.status-dot { width:10px; height:10px; border-radius:50%; background:#777; display:inline-block; }
.status-dot.live { background: var(--green); box-shadow: 0 0 0 6px rgba(34,197,94,.14); }
.hero-list { margin:18px 0 22px; padding-left:18px; color:var(--muted); }
.hero-list li { margin:8px 0; }
.section { padding: 24px 0 40px; }
.section-header { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:20px; }
.section-header h2 { margin:10px 0 0; font-size: clamp(2rem, 3vw, 2.8rem); }
.metrics, .cards-3, .dashboard-grid, .game-grid { display:grid; gap:18px; }
.metrics { grid-template-columns: repeat(4, 1fr); }
.metric { padding:24px; text-align:center; }
.metric strong { display:block; font-size:1.8rem; margin-bottom:8px; }
.metric span, .muted, .info-card p, .game-card p { color: var(--muted); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card, .info-card, .game-card, .panel, .detail-panel, .side-panel, .step { padding:22px; }
.tournament-card { display:flex; flex-direction:column; gap:16px; }
.tournament-top { display:flex; justify-content:space-between; gap:12px; align-items:start; }
.badge {
  display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; font-weight:800; font-size:.76rem; border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}
.badge.open { color:#d4b7ff; }
.badge.full { color:#fbbf24; }
.badge.live { color:#86efac; }
.stat-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; }
.stat-grid.compact { margin-top:16px; }
.stat-grid > div {
  padding:14px; border:1px solid var(--stroke); border-radius:18px; background: rgba(255,255,255,.03);
}
.stat-grid span, .side-info span { color: var(--muted); display:block; font-size:.8rem; margin-bottom:4px; }
.stat-grid strong, .side-info strong { font-size:1rem; }
.split { display:grid; grid-template-columns: .8fr 1.2fr; gap:22px; align-items:start; }
.steps { display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; }
.step span {
  width:44px; height:44px; border-radius:50%; display:grid; place-items:center; font-weight:800; margin-bottom:12px;
  background: rgba(143,61,255,.16); color: var(--purple-3);
}
.cta-banner {
  margin: 20px 0 40px; padding: 28px; display:flex; justify-content:space-between; gap:24px; align-items:center;
  border-radius: var(--radius); border:1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(143,61,255,.18), rgba(255,255,255,.04));
}
.footer {
  padding: 26px 0 20px; color: var(--muted); display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;
}
.footer div { display:flex; gap:18px; flex-wrap:wrap; }
.page-hero.small-hero { padding: 54px 0 8px; }
.filters { padding-top: 8px; }
.filter-row {
  padding:16px; display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;
}
.chip-group { display:flex; gap:10px; flex-wrap:wrap; }
.chip {
  border:none; padding:12px 16px; border-radius:999px; background: rgba(255,255,255,.05); color: var(--muted); font-weight:800; cursor:pointer;
}
.chip.active { background: rgba(143,61,255,.2); color: #fff; border: 1px solid rgba(180,108,255,.35); }
.detail-layout { display:grid; grid-template-columns: 1.25fr .75fr; gap:18px; }
.side-panel h3 { margin-top: 0; }
.side-info { display:grid; gap:12px; margin-top:16px; }
.bracket-wrap { padding:22px; overflow:auto; }
.bracket-grid { display:grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap:18px; min-width: 820px; }
.round-col { display:grid; gap:14px; }
.match-box {
  padding:14px; border-radius:18px; border:1px solid var(--stroke); background: rgba(255,255,255,.04);
}
.match-box p { margin:0 0 10px; color:var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; }
.match-box strong { display:block; margin:8px 0; }
.auth-shell { display:grid; place-items:center; min-height:100vh; }
.auth-layout { display:grid; grid-template-columns: 1fr 1fr; gap:22px; width:min(1100px, 100%); }
.auth-brand, .auth-card { padding:30px; }
.auth-logo { width:140px; margin-bottom:18px; }
.form-stack { display:grid; gap:14px; }
.form-stack label { display:grid; gap:8px; color:var(--muted); font-weight:600; }
input, select, textarea {
  width:100%; border-radius:16px; border:1px solid var(--stroke); background: rgba(255,255,255,.04); color:#fff;
  padding:14px 16px; font: inherit; outline:none;
}
input::placeholder, textarea::placeholder { color: #8e82aa; }
.alert {
  margin-top:14px; padding:14px; border-radius:16px; border:1px solid rgba(180,108,255,.3); background: rgba(143,61,255,.12);
}
.hidden { display:none; }
.dashboard-grid { grid-template-columns: repeat(2, 1fr); }
.panel-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.list-stack { display:grid; gap:12px; }
.list-item {
  padding:16px; border-radius:18px; border:1px solid var(--stroke); background: rgba(255,255,255,.03);
}
.list-item strong { display:block; margin-bottom:4px; }
.list-item p { margin:6px 0 0; color:var(--muted); }
.reveal { animation: fadeUp .6s ease both; }
.reveal-delay { animation: fadeUp .8s ease both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(14px);} to {opacity:1; transform:none;} }
@media (max-width: 980px) {
  .hero, .split, .detail-layout, .auth-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .cards-3, .metrics, .game-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-shell { padding: 14px; }
  .topbar { border-radius: 26px; padding: 14px 16px; }
  .burger { display:grid; place-items:center; }
  .nav {
    display:none; position:absolute; top:calc(100% + 10px); left:0; right:0; padding:14px;
    background: rgba(10,7,18,.96); border:1px solid var(--stroke); border-radius: 24px; flex-direction:column; align-items:stretch;
    z-index: 55;
  }
  .nav.open { display:flex; }
  .nav a, .nav .btn { width:100%; text-align:center; }
  .cards-3, .metrics, .game-grid, .steps { grid-template-columns: 1fr; }
  .cta-banner, .section-header, .hero-actions { flex-direction:column; align-items:stretch; }
  .hero { min-height: auto; padding-top: 26px; }
  .hero-copy h1, .page-hero h1 { font-size: 2.4rem; }
}


/* Mobile menu hardening */
@media (max-width: 760px) {
  .topbar { overflow: visible; }
  .nav { box-shadow: 0 22px 60px rgba(0,0,0,.45); }
  .nav.is-open { display: flex !important; }
}


body[data-page="dashboard"] { display:none; }
body[data-page="dashboard"].auth-ready { display:block; }
.tourney-flyer { width:100%; aspect-ratio:16 / 10; object-fit:cover; border-radius:22px 22px 0 0; }
.tournament-card { overflow:hidden; display:flex; flex-direction:column; }
.tourney-body { padding:18px; display:flex; flex-direction:column; gap:12px; }
.meta-pills { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.meta-pills span { padding:8px 10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:999px; font-size:.85rem; }
#liveTournaments, #featuredSpotlight, #allTournaments { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px; }
.auth-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; min-height:calc(100vh - 140px); align-items:center; }
.auth-copy, .auth-panel, .hero-card, .detail-card { padding:26px; }
.auth-panel form { display:grid; gap:14px; }
.auth-panel label { display:grid; gap:8px; color:var(--muted); }
.alert { margin-top:14px; min-height:20px; color:#fff; }
.detail-flyer { width:100%; border-radius:22px; margin-bottom:18px; max-height:420px; object-fit:cover; }
.detail-body { display:grid; gap:14px; }
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.info-grid > div { padding:16px; }
.nav.open { display:flex !important; }
@media (max-width: 900px) {
  .auth-grid, .info-grid { grid-template-columns:1fr; }
}


#liveTournaments, #featuredSpotlight, #allTournaments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  gap: 18px;
  justify-content: start;
}
.tournament-card {
  max-width: 360px;
  width: 100%;
  overflow: hidden;
}
.tourney-flyer {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #0b0b0f;
}
.detail-flyer {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #0b0b0f;
}
.tourney-body h3 {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.15;
  word-break: break-word;
}
.detail-body h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.05;
  word-break: break-word;
}
.join-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.join-actions .btn {
  min-width: 190px;
}
@media (max-width: 700px) {
  #liveTournaments, #featuredSpotlight, #allTournaments {
    grid-template-columns: 1fr;
  }
  .tournament-card {
    max-width: 100%;
  }
}


/* PutUp Arena luxury reskin */
:root {
  --bg: #060309;
  --bg-2: #120816;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.09);
  --stroke: rgba(255,214,120,0.18);
  --text: #fff8ec;
  --muted: #cabfda;
  --purple: #7d35ff;
  --purple-2: #ba77ff;
  --purple-3: #ecd5ff;
  --gold: #f4c768;
  --gold-2: #ffdf9a;
  --shadow: 0 25px 80px rgba(109, 32, 255, 0.28), 0 8px 30px rgba(0,0,0,0.35);
  --radius: 28px;
  --radius-sm: 18px;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(125,53,255,0.30), transparent 26%),
    radial-gradient(circle at 20% 18%, rgba(244,199,104,0.12), transparent 18%),
    radial-gradient(circle at 82% 8%, rgba(186,119,255,0.20), transparent 16%),
    linear-gradient(180deg, #040207 0%, #0b0510 44%, #09040d 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,214,120,0.14), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.018), transparent 40%);
  z-index: -1;
}
.site-shell {
  padding-top: 22px;
}
.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 28px 20px;
  border-radius: 34px;
  border: 1px solid rgba(255,214,120,0.18);
  background:
    linear-gradient(180deg, rgba(17,9,24,0.92), rgba(9,5,14,0.78));
  box-shadow: 0 18px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}
.brand {
  width: 100%;
  justify-content: center;
}
.brand > div { display: none; }
.brand img {
  width: min(460px, 88vw);
  height: auto;
  max-height: 240px;
  filter: drop-shadow(0 16px 36px rgba(125,53,255,0.32)) drop-shadow(0 8px 16px rgba(255,196,82,0.18));
}
.nav {
  justify-content: center;
  gap: 14px;
}
.nav a:not(.btn) {
  color: #efe6ff;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.nav a.active,
.nav a:not(.btn):hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(125,53,255,0.24), rgba(244,199,104,0.18));
  border-color: rgba(255,214,120,0.22);
}
.btn {
  letter-spacing: .01em;
}
.btn-primary {
  color: #14070a;
  background: linear-gradient(135deg, #f8e2a4 0%, #f4c768 32%, #a93fff 100%);
  box-shadow: 0 18px 40px rgba(169,63,255,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-outline {
  border-color: rgba(255,214,120,0.16);
  background: rgba(255,255,255,.03);
}
.btn-outline:hover {
  background: rgba(255,255,255,.07);
}
.glass,
.card, .info-card, .game-card, .panel, .detail-panel, .side-panel, .step,
.list-item, .match-box, .metric, .hero-card, .auth-panel, .auth-copy, .detail-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,214,120,0.14);
  box-shadow: var(--shadow);
}
.hero {
  min-height: auto;
  padding: 46px 0 28px;
}
.hero-copy {
  padding-top: 8px;
}
.hero-copy h1, .page-hero h1, .detail-body h1 {
  background: linear-gradient(180deg, #fffaf1 0%, #ffe8b5 48%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(125,53,255,0.16);
}
.hero-copy p, .page-hero p {
  color: #ddd0ef;
  font-size: 1.08rem;
}
.eyebrow {
  color: var(--gold-2);
  background: rgba(125,53,255,.14);
  border: 1px solid rgba(255,214,120,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.text-link { color: #f5d88d; }
.hero-card {
  position: relative;
  overflow: hidden;
}
.hero-card::after,
.cta-banner::after {
  content: "";
  position: absolute;
  inset: auto -50px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,53,255,.28), transparent 68%);
  pointer-events: none;
}
.section-header h2 {
  color: #fff6e3;
}
.tourney-flyer,
.detail-flyer {
  background: radial-gradient(circle at top, rgba(125,53,255,.14), #08050b 70%);
}
.badge {
  border-color: rgba(255,214,120,0.12);
  background: rgba(255,255,255,0.045);
}
.badge.open { color: #f4d38b; }
.badge.full { color: #ffcd72; }
.badge.live { color: #9df7bf; }
.stat-grid > div,
.meta-pills span,
.list-item,
.match-box,
input, select, textarea {
  border-color: rgba(255,214,120,0.12);
  background: rgba(255,255,255,0.035);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(186,119,255,0.55);
  box-shadow: 0 0 0 4px rgba(125,53,255,0.16);
}
.footer {
  padding-top: 34px;
  border-top: 1px solid rgba(255,214,120,0.12);
}
@media (max-width: 760px) {
  .topbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 16px;
    position: relative;
  }
  .brand {
    justify-content: flex-start;
    width: auto;
  }
  .brand img {
    width: min(230px, 56vw);
    max-height: none;
  }
  .burger {
    background: linear-gradient(135deg, rgba(125,53,255,.32), rgba(244,199,104,.18));
    border: 1px solid rgba(255,214,120,0.15);
  }
  .nav {
    top: calc(100% + 12px);
    background: rgba(12,7,18,.97);
    border-color: rgba(255,214,120,0.15);
  }
}


/* Premium second pass */
.premium-hero {
  grid-template-columns: 1.08fr .92fr;
  gap: 30px;
  align-items: stretch;
}
.premium-badges span {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-color: rgba(255,214,120,.14);
  color: #f4ebff;
}
.spotlight-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,53,255,.40), transparent 68%);
  pointer-events: none;
}
.spotlight-card h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  margin: 14px 0 12px;
}
.spotlight-stack {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.spotlight-stack > div {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,214,120,.12);
  background: rgba(255,255,255,.03);
}
.spotlight-stack strong {
  display: block;
  margin-bottom: 6px;
  color: #fff5df;
}
.spotlight-stack span {
  display: block;
  color: #d3c7e5;
  line-height: 1.5;
}
.premium-metrics {
  margin: 6px 0 8px;
}
.premium-metrics .metric {
  text-align: left;
  min-height: 150px;
}
.premium-metrics .metric strong {
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.page-hero.small-hero {
  padding: 42px 0 12px;
}
.page-hero.small-hero h1 {
  margin-bottom: 10px;
}
#liveTournaments, #featuredSpotlight, #allTournaments {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.tournament-card,
.premium-card {
  position: relative;
  max-width: none;
  min-height: 100%;
  border-radius: 28px;
}
.premium-card {
  background: linear-gradient(180deg, rgba(19,10,28,.92), rgba(8,5,12,.96));
}
.card-accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #f7dc9b, #b84cff, #f2b956);
}
.tourney-flyer {
  aspect-ratio: 16 / 10;
  max-height: 330px;
  object-fit: cover;
  background: linear-gradient(180deg, #110817, #0a0710);
}
.tourney-body {
  padding: 20px 20px 22px;
  gap: 14px;
  flex: 1;
}
.tourney-headline-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.tourney-body h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: #fff9ef;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.status-pill.open {
  color: #fff3d3;
  background: rgba(255,214,120,.12);
}
.status-pill.live {
  color: #d1ffe1;
  background: rgba(34,197,94,.16);
}
.status-pill.full {
  color: #f7d8ff;
  background: rgba(184,76,255,.16);
}
.premium-pills {
  gap: 10px;
}
.premium-pills span,
.meta-pills span {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,214,120,.10);
  color: #efe4ff;
}
.tourney-footer {
  margin-top: auto;
}
.tourney-footer .btn {
  min-height: 52px;
}
.premium-detail-card {
  border-radius: 30px;
}
.premium-detail-card .detail-body {
  gap: 18px;
}
.info-grid > div {
  border-radius: 20px;
}
.auth-copy h1,
.auth-panel h2,
.panel h2,
.card h2 {
  color: #fff6e8;
}
.auth-copy p,
.auth-panel p,
.panel p,
.card p {
  color: #d6c9e7;
}
.footer {
  border-top: 1px solid rgba(255,214,120,.10);
  margin-top: 26px;
}
@media (max-width: 980px) {
  .premium-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .brand img {
    width: min(320px, 84vw);
    max-height: none;
  }
  .topbar {
    padding: 18px 16px 16px;
  }
  .nav {
    width: 100%;
  }
  .tourney-headline-row {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* === Hotfix: tighter cards + restore admin visibility for testing === */
#liveTournaments, #featuredSpotlight, #allTournaments {
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px)) !important;
  gap: 18px !important;
  justify-content: start !important;
  align-items: stretch;
}
.tournament-card,
.premium-card {
  max-width: 340px !important;
  width: 100% !important;
  min-height: 0 !important;
}
.tourney-flyer {
  aspect-ratio: 16 / 9 !important;
  max-height: 240px !important;
  object-fit: cover !important;
}
.tourney-body {
  padding: 16px 16px 18px !important;
  gap: 10px !important;
}
.tourney-body h3 {
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
}
@media (max-width: 700px) {
  #liveTournaments, #featuredSpotlight, #allTournaments {
    grid-template-columns: 1fr !important;
  }
  .tournament-card,
  .premium-card {
    max-width: 100% !important;
  }
}


/* === Dashboard data panels === */
.dashboard-metrics { margin-top: 8px; }
.dashboard-stack {
  display: grid;
  gap: 18px;
}
.dashboard-payout-stack {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.dashboard-card-item {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22,11,34,.88), rgba(8,6,12,.96));
  border: 1px solid rgba(255,214,120,.10);
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
}
.dashboard-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.dashboard-card-item h3 {
  margin: 6px 0 8px;
  color: #fff8eb;
}
.dashboard-actions {
  margin-top: 14px;
}
.dashboard-actions .btn {
  min-height: 46px;
}
.small-meta {
  font-size: .92rem;
}
.compact-item strong {
  font-size: 1.35rem;
  color: #fff3d3;
}


/* v5 fixes */
.nav a[href="signup.html"]{display:inline-flex}
body.auth-ready .nav a[href="signup.html"]{display:none !important}
.nav [data-admin-link]{background:linear-gradient(135deg, rgba(128,76,255,.18), rgba(255,194,67,.18)); border:1px solid rgba(180,140,255,.38)}
.dashboard-card-item h3{margin:0 0 8px; font-size:1.15rem; line-height:1.15}
.dashboard-stack{display:grid; gap:16px}
.small-meta{font-size:.9rem}
#dashboardJoinedTournaments .dashboard-card-item,
#dashboardPayouts .dashboard-card-item{padding:20px}

.form-grid-two { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; }
.small-eyebrow { padding:8px 12px; font-size:.68rem; }
.dashboard-profile-hero { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-top:18px; padding:18px 20px; }
.dashboard-profile-hero h3 { margin:8px 0 6px; font-size:1.4rem; }
.gamer-profile-card { padding:18px; display:grid; gap:12px; }
.gamer-profile-card.current-user { border-color: rgba(180,108,255,.5); box-shadow: 0 0 0 1px rgba(180,108,255,.2), var(--shadow); }
.gamer-profile-card.ready { background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(143,61,255,.10)); }
.gamer-profile-top { display:flex; justify-content:space-between; gap:12px; align-items:start; }
.players-live-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.tournament-extras { padding-top: 8px; }
.compact-header { margin-bottom:16px; }
.compact-pills span { font-size:.8rem; }
.lobby-actions { align-items:center; }
.bracket-preview-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.bracket-matchup-card { padding:16px; display:grid; gap:10px; }
.bracket-round-label { color: var(--purple-3); font-size:.76rem; letter-spacing:.12em; text-transform:uppercase; font-weight:800; }
.bracket-player { padding:14px; border-radius:18px; border:1px solid var(--stroke); background: rgba(255,255,255,.04); display:grid; gap:4px; }
.bracket-player span { color: var(--muted); font-size:.88rem; }
.bracket-player.waiting { opacity:.72; }
.is-disabled { pointer-events:none; opacity:.55; }
.profile-stat-line { color: var(--muted); }
@media (max-width: 900px) {
  .form-grid-two, .dashboard-profile-hero { grid-template-columns:1fr; display:grid; }
}
