/* NUZA — Connect. Share. Discover. · premium dark UI */
:root {
  --bg0: #120a24;
  --bg1: #180e2e;
  --bg2: #1e1238;
  --card: rgba(30, 18, 56, 0.92);
  --card-solid: #1e1238;
  --border: rgba(205, 180, 255, 0.14);
  --border-strong: rgba(201, 162, 255, 0.35);
  --ink: #fff8ee;
  --muted: #cfc3ea;
  --dim: #9a8bbe;
  --emerald: #c9a2ff;
  --emerald-deep: #7b2ff7;
  --emerald-soft: rgba(201, 162, 255, 0.12);
  --gold: #ffd23f;
  --gold-soft: rgba(255, 210, 63, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --violet: #e59bff;
  --violet-soft: rgba(229, 155, 255, 0.14);
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(201, 162, 255, 0.08), 0 8px 32px rgba(123, 47, 247, 0.18);
  --font: "Inter", "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(123, 47, 247, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(229, 155, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(255, 210, 63, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 50%, var(--bg0) 100%);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.55;
}

.app {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 16px 56px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 6px;
  gap: 12px;
  flex-wrap: wrap;
}

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

.logo-mark {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(178, 60, 255, 0.35);
}
.logo-wordmark { display: block; line-height: 0; }
.logo-word { display: block; width: 78px; height: auto; }
span.logo-mark {
  display: grid; place-items: center;
  background: linear-gradient(145deg, #ffd23f, #b23cff 55%, #b23cff);
  color: #fff; font-weight: 800; font-size: 12px;
}

.logo-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.logo-text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.logo-text .brand-tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffd23f, #e59bff 50%, #ffd23f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-badge {
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(229, 155, 255, 0.3);
}

.nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.nav-tab {
  min-width: 0;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}
.nav-tab:hover { border-color: var(--border-strong); color: var(--ink); }
.nav-tab.active {
  background: var(--emerald-soft);
  border-color: var(--border-strong);
  color: var(--emerald);
}

.screen { display: none; animation: fadeIn 0.28s ease; }
.screen.active { display: block; }

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

.hero-card, .info-card, .result-card, .pay-card, .form-card, .panel {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.screen-title-en {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.lead {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
.stat-val { display: block; font-size: 16px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 11px; color: var(--dim); margin-top: 2px; display: block; }

.duel-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

@media (max-width: 700px) {
  .duel-stage {
    grid-template-columns: 1fr;
  }
  .vs-badge-wrap {
    order: 0;
    justify-self: center;
    margin: -4px 0;
  }
  .creator-card[data-side="a"] { order: -1; }
  .creator-card[data-side="b"] { order: 1; }
}

.creator-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.creator-card.selected {
  border-color: var(--emerald);
  box-shadow: var(--glow);
}
.creator-card.winner-glow {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.35), 0 8px 32px rgba(255, 210, 63, 0.2);
}

.creator-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9a2ff, #e04bff);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.avatar.b { background: linear-gradient(145deg, #ffd23f, #ffd23f); }
.creator-meta { min-width: 0; }
.creator-meta h3 {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.creator-meta .bio { font-size: 12px; color: var(--muted); }

.video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 14;
  max-height: 360px;
  border: 1px solid var(--border);
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #140b28;
  -webkit-touch-callout: default;
}
.video-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(160deg, #180e30, #120a24);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  z-index: 1;
}
.video-fallback[hidden] { display: none !important; }
.video-fallback .vf-title { color: var(--ink); font-weight: 700; font-size: 13px; }
.video-fallback strong { color: var(--emerald); }

.upload-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.upload-row label.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.upload-row input[type="file"] { display: none; }
.clean-notice {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.4;
}

.vote-tally {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  gap: 8px;
}
.tally-bar {
  height: 6px;
  background: var(--bg0);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.tally-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-deep), var(--emerald));
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s ease;
}
.tally-fill.b { background: linear-gradient(90deg, #ffb020, var(--gold)); }

.vs-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a1a4d, #1a1030);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(255, 210, 63, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  font-family: var(--font);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(145deg, #9b4dff, #6a22e0);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-gold {
  background: linear-gradient(145deg, #ffd23f, #ffb020);
  color: #1a0e00;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-violet {
  background: linear-gradient(145deg, #b23cff, #7b2ff7);
  color: #fff;
}
.btn-sm { padding: 10px 14px; font-size: 13px; width: auto; }
.btn-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }


.pay-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 560px) {
  .pay-methods { grid-template-columns: 1fr 1fr; }
}
.pay-method {
  color: var(--ink);
  font-family: var(--font);
  padding: 16px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg0);
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}
.pay-method:hover, .pay-method:focus {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}
.pay-method .pm-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.pay-method .pm-sub { font-size: 11px; color: var(--dim); }
.pay-method.pay-stripe {
  border-color: rgba(99, 91, 255, 0.55);
  background: linear-gradient(135deg, rgba(99,91,255,0.22), rgba(155, 77, 255, 0.12));
}
.pay-method.pay-stripe:hover, .pay-method.pay-stripe:focus {
  border-color: #635bff;
  background: linear-gradient(135deg, rgba(99,91,255,0.35), rgba(155, 77, 255, 0.18));
}
.pay-method.pay-unlock {
  border-style: dashed;
}
.pay-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.45;
}


.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group label .optional { font-weight: 500; color: var(--dim); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg0);
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--emerald); }
.form-group label.checkbox-row { display: flex; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.45; margin-bottom: 0; cursor: pointer; }
.form-group .checkbox-row input { flex: 0 0 18px; width: 18px; height: 18px; padding: 0; margin-top: 1px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg0);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.toggle-row .label-stack .ls-title { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.toggle-row .label-stack .ls-sub { display: block; font-size: 11px; color: var(--dim); }
.switch {
  position: relative;
  width: 46px; height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #3a2766;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .slider { background: var(--emerald-deep); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.pool-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.pool-box {
  background: var(--bg0);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  text-align: center;
}
.pool-box strong { display: block; color: var(--gold); font-size: 16px; }
.pool-box span { font-size: 11px; color: var(--dim); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 48px));
  opacity: 0;
  pointer-events: none;
  background: #1a1030;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: max-content;
  max-width: min(90vw, 440px);
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }


.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 90;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; }
}
.modal {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.25s ease;
}
.modal h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.modal .en-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.footer {
  margin-top: auto;
  padding: 32px 16px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer strong { color: var(--ink); font-weight: 800; letter-spacing: 0.08em; }
.footer-brand { font-size: 12px; color: var(--muted); }
.footer-legal { margin-top: 4px; }
.footer-fine { max-width: 340px; margin: 10px auto 0; font-size: 9.5px; opacity: 0.6; }
.battle-disclaimer { margin: 18px 4px 0; font-size: 10px; line-height: 1.5; color: var(--dim); opacity: 0.7; text-align: center; }

.locked-banner {
  background: var(--gold-soft);
  border: 1px solid rgba(255, 210, 63, 0.3);
  color: var(--gold);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  text-align: center;
  margin-bottom: 12px;
}


.result-winner {
  text-align: center;
  padding: 16px 0;
}
.result-winner .crown {
  font-size: 28px;
  margin-bottom: 8px;
}
.result-winner h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.countdown-box .countdown-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 6px;
}
.countdown-box {
  text-align: center;
  padding: 20px;
  background: var(--bg0);
  border-radius: 14px;
  border: 1px dashed var(--border);
}
.countdown-box .big {
  font-size: 28px;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: 0.04em;
}

.steps { list-style: none; margin-top: 12px; }
.steps li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step-body { padding-top: 3px; min-width: 0; }
.step-body .step-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.step-body .step-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 1px; }

h2.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}


/* ── Battles mode (gamer neon accent on Battles only) ── */
:root {
  --neon: #ffd23f;
  --neon-soft: rgba(255, 210, 63, 0.14);
  --neon-glow: 0 0 0 1px rgba(255, 210, 63, 0.2), 0 8px 28px rgba(255, 210, 63, 0.15);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.mode-btn {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}
.mode-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.mode-btn.active[data-mode="duels"] {
  background: var(--emerald-soft);
  border-color: var(--border-strong);
  color: var(--emerald);
}
.mode-btn.active[data-mode="battles"] {
  background: var(--neon-soft);
  border-color: rgba(255, 210, 63, 0.45);
  color: var(--neon);
  box-shadow: var(--neon-glow);
}

.duels-only.hidden, .battles-only.hidden { display: none !important; }

.wallet-card {
  background: linear-gradient(145deg, rgba(255, 210, 63, 0.12), rgba(155, 77, 255, 0.08));
  border: 1px solid rgba(255, 210, 63, 0.28);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--neon-glow);
}
.wallet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.wallet-box {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.wallet-box strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--neon);
  letter-spacing: -0.02em;
}
.wallet-box span { font-size: 11px; color: var(--dim); }

.wa-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
  text-align: left;
}
.wa-cta .wa-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.wa-cta .wa-text { flex: 1; min-width: 0; }
.wa-cta .wa-text .wa-title { display: block; font-size: 14.5px; font-weight: 700; color: #4be38a; }
.wa-cta .wa-text .wa-sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 1px; }

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.modes-grid .mode-card {
  min-height: 140px;
}
.mode-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  cursor: pointer;
  text-align: left;
  transition: 0.2s;
  box-shadow: var(--shadow);
  font-family: var(--font);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}
.mode-card:hover, .mode-card:focus {
  border-color: rgba(255, 210, 63, 0.5);
  box-shadow: var(--neon-glow);
  outline: none;
}
.mode-card .mc-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.mode-card[data-mode-id="pubg-perkill"] .mc-icon,
.mode-card[data-mode-id="pubg-survival"] .mc-icon {
  background: linear-gradient(145deg, #e04bff, #c98a00);
}
.mode-card[data-mode-id="yalla-win"] .mc-icon,
.mode-card[data-mode-id="yalla-sixes"] .mc-icon {
  background: linear-gradient(145deg, #ffd23f, #ffb020);
}
.mode-card[data-mode-id="pool-win"] .mc-icon,
.mode-card[data-mode-id="pool-bo3"] .mc-icon {
  background: linear-gradient(145deg, #e59bff, #7b2ff7);
}
.mode-card .mc-game {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neon);
}
.mode-card .mc-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}
.mode-card .mc-title { font-size: 16px; }
.mode-card .mc-desc {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}
.mode-card .mc-fee {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.battle-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--neon);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  font-family: var(--font);
  padding: 0;
}
.room-code-box {
  text-align: center;
  padding: 20px;
  background: var(--bg0);
  border: 1px dashed rgba(255, 210, 63, 0.4);
  border-radius: 14px;
  margin: 14px 0;
}
.room-code-box .label {
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.room-code-box .code {
  font-size: clamp(24px, 7.4vw, 32px);
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}
.room-code-box .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.rules-list {
  list-style: none;
  margin: 12px 0;
}
.rules-list li {
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.battle-flow-steps {
  margin: 12px 0 0;
}
.nav-tabs.battles-nav .nav-tab.active {
  background: var(--neon-soft);
  border-color: rgba(255, 210, 63, 0.45);
  color: var(--neon);
}

/* NUZA hero tagline */
.hero-tagline {
  font-family: var(--font);
  font-size: clamp(1.45rem, 5.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 2px 0 10px;
  background: linear-gradient(90deg, #ffd23f, #e59bff 50%, #ffd23f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== NUZA identity · purple + yellow (logo A1) ===== */
:root {
  --nz-violet: #7b2ff7;
  --nz-purple: #b23cff;
  --nz-orchid: #e04bff;
  --nz-lav: #c9a2ff;
  --nz-gold: #ffd23f;
  --nz-amber: #ffb020;
  --nz-grad: linear-gradient(120deg, #7b2ff7 0%, #b23cff 55%, #e04bff 100%);
  --nz-grad-text: linear-gradient(90deg, #c9a2ff 0%, #e59bff 55%, #ffd23f 100%);
  --display: "Nunito", "Inter", system-ui, sans-serif;
}
.logo { gap: 11px; }
svg.logo-mark { display: block; flex-shrink: 0; width: 42px; height: 42px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 14px rgba(155, 59, 255, 0.45)); }
.logo-text { gap: 4px; }
.logo-wordmark { display: block; line-height: 0; }
svg.logo-word { display: block; width: 86px; height: 26px; }
.logo-text .brand-tagline {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #cfc3ea;
  white-space: nowrap;
}
.logo-text .brand-tagline i { font-style: normal; color: var(--nz-gold); }
.btn-primary {
  background: var(--nz-grad);
  color: #fff;
  text-shadow: 0 1px 1px rgba(40, 8, 90, 0.3);
  box-shadow: 0 10px 28px rgba(155, 59, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-violet {
  background: linear-gradient(120deg, #5b1fd1 0%, #9b3bff 100%);
  box-shadow: 0 8px 22px rgba(123, 47, 247, 0.3);
}
.btn-gold {
  background: linear-gradient(120deg, #ffd23f 0%, #ffb020 100%);
  color: #1a0e00;
  box-shadow: 0 8px 22px rgba(255, 190, 40, 0.22);
}
h1, h2, .screen-title, .hero-tagline { font-family: var(--display); }
.hero-tagline {
  display: inline-block;
  background: var(--nz-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}
.eyebrow { color: var(--nz-gold); letter-spacing: 0.1em; }
.header-badge {
  border-color: rgba(255, 210, 63, 0.4);
  color: var(--nz-gold);
  background: rgba(255, 210, 63, 0.1);
}
.mode-btn.active[data-mode="duels"] {
  background: linear-gradient(120deg, rgba(123, 47, 247, 0.38), rgba(224, 75, 255, 0.22));
  border-color: rgba(178, 60, 255, 0.7);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(178, 60, 255, 0.2), 0 8px 26px rgba(123, 47, 247, 0.3);
}
.mode-btn.active[data-mode="battles"] {
  background: linear-gradient(120deg, rgba(255, 210, 63, 0.2), rgba(255, 176, 32, 0.12));
  border-color: rgba(255, 210, 63, 0.6);
  color: var(--nz-gold);
}
.nav-tab.active { color: #fff; border-color: rgba(178, 60, 255, 0.65); background: linear-gradient(120deg, rgba(123, 47, 247, 0.32), rgba(224, 75, 255, 0.18)); }
.avatar { background: linear-gradient(145deg, #7b2ff7, #e04bff); }
.avatar.b { background: linear-gradient(145deg, #ffd23f, #ffb020); color: #1a0e00; }
.mode-card[data-mode-id="pubg-perkill"] .mc-icon,
.mode-card[data-mode-id="pubg-survival"] .mc-icon { background: linear-gradient(145deg, #ffd23f, #ffb020); color: #1a0e00; }
.mode-card[data-mode-id="yalla-win"] .mc-icon,
.mode-card[data-mode-id="yalla-sixes"] .mc-icon { background: linear-gradient(145deg, #9b4dff, #6a22e0); }
.mode-card[data-mode-id="pool-win"] .mc-icon,
.mode-card[data-mode-id="pool-bo3"] .mc-icon { background: linear-gradient(145deg, #e04bff, #a225d9); }
.pay-method.pay-stripe { background: linear-gradient(135deg, rgba(99, 91, 255, 0.22), rgba(178, 60, 255, 0.14)); }
.room-code-box .code { color: var(--nz-gold); text-shadow: 0 0 22px rgba(255, 210, 63, 0.25); }
h1, h2, .lead, .step-sub, .screen-title-en { text-wrap: pretty; }

@media (min-width: 700px) {
  .br-m { display: none; }
  h1 { font-size: 1.85rem; }
  .lead { max-width: 640px; }
}

/* Backend build: honeypot field (hidden from people, visible to bots) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Vote quantity picker */
.qty-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.qty-btn { padding: 10px 0; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.qty-btn.active { background: linear-gradient(135deg, #7B2FF7, #B23CFF); border-color: transparent; color: #fff; box-shadow: 0 0 0 2px rgba(255, 210, 63, 0.55); }
.qty-hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.qty-hint strong { color: var(--nz-gold, #FFD23F); }
.modal { max-height: 92vh; overflow-y: auto; }
