:root {
  --bg: #080808;
  --bg2: #121010;
  --bg3: #1a1212;
  --red: #9b1c1c;
  --red-bright: #dc2626;
  --gold: #f5c518;
  --gold-dim: #c9a012;
  --text: #f2ece4;
  --muted: #9a8f88;
  --text-body: #d4ccc4;
  --discord: #5865f2;
  --radius: 14px;
  --text-xs: 0.72rem;
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.7rem;
  --text-3xl: clamp(2rem, 5vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(155, 28, 28, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(245, 197, 24, 0.06), transparent 50%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem 1.5rem;
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 2px solid var(--red);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: Nunito, sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-owl {
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.35));
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 100%);
  color: #fff;
  border-color: rgba(245, 197, 24, 0.35);
  box-shadow: 0 2px 0 #5c0f0f, 0 0 16px rgba(220, 38, 38, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 3px 0 #5c0f0f, 0 0 22px rgba(220, 38, 38, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(245, 197, 24, 0.4);
}

.btn-nav {
  background: var(--gold);
  color: #1a0a0a;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 3px 0 var(--gold-dim);
}

.eyebrow-hu {
  opacity: 0.85;
}

.hero-hint {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

.hero-hint a {
  color: var(--gold-dim);
  text-decoration: none;
  font-weight: 600;
}

.hero-hint a:hover {
  color: var(--gold);
}

.stat-loading-owl {
  vertical-align: middle;
  margin-right: 0.35rem;
  opacity: 0.9;
}

.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hunt-mock {
  width: 100%;
  max-width: 380px;
  background: var(--bg2);
  border: 1px solid rgba(155, 28, 28, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hunt-mock-label {
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--bg3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.hunt-mock-body {
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  font-family: ui-monospace, 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.hunt-mock-body .hunt-line {
  display: block;
}

.hunt-mock-body .hunt-rare {
  color: var(--gold);
}

.hunt-mock-body strong {
  color: var(--gold);
  font-weight: 700;
}

.hero-owl-side {
  width: min(140px, 40vw);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.6));
  animation: float 5s ease-in-out infinite;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--gold-dim);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.commands-lead {
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-size: 0.98rem;
  max-width: 28rem;
}

.feature-chips {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-chips li {
  background: var(--bg3);
  border: 1px solid rgba(155, 28, 28, 0.3);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.feature-chips code {
  color: var(--gold);
  font-size: 0.9em;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.lead code,
.commands-lead code {
  background: var(--bg3);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  color: var(--red-bright);
  font-size: 0.92em;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: min(58vh, 520px);
  padding: 2rem 0 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.8);
}

.hero h1 .accent {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(245, 197, 24, 0.35);
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-line {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.hero-owl-wrap {
  position: relative;
  animation: float 5s ease-in-out infinite;
}

.hero-owl {
  width: min(340px, 88vw);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.7));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

.mood-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.5rem 0 2rem;
  border-bottom: 1px solid rgba(155, 28, 28, 0.25);
}

.mood-strip img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px;
  transition: transform 0.15s, border-color 0.15s;
}

.mood-strip img:hover {
  transform: scale(1.08);
  border-color: var(--gold-dim);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-b {
  direction: rtl;
}

.feature-b > * {
  direction: ltr;
}

.feature-text h2 {
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.feature-text p {
  color: var(--text-body);
  margin: 0;
  font-size: var(--text-lg);
}

.feature-text code {
  background: var(--bg3);
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  color: var(--red-bright);
  font-size: 0.95em;
}

.feature-bullets {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--muted);
}

.feature-bullets li {
  padding: 0.3rem 0;
}

.shot-frame {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.shot-red {
  border-color: var(--red-bright);
}

.shot-gold {
  border-color: var(--gold);
}

.shot-frame {
  transform: none;
}

.shot-img {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.shot-caption {
  padding: 0.85rem 1rem;
  background: var(--bg3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shot-caption p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cmd-pill {
  display: inline-block;
  background: rgba(245, 197, 24, 0.12);
  color: var(--gold);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(245, 197, 24, 0.25);
}

.duo-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.shot-small {
  transform: none !important;
}

.shot-small .shot-img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 0.5rem;
}

.commands {
  padding: 3rem 0;
  text-align: center;
}

.commands-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.commands-owl {
  filter: drop-shadow(0 0 12px rgba(245, 197, 24, 0.3));
}

.commands h2 {
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  margin: 0;
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.cmd-card {
  background: var(--bg2);
  border: 1px solid rgba(155, 28, 28, 0.35);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}

button.cmd-card {
  appearance: none;
}

.cmd-card:hover,
.cmd-card.cmd-copied {
  border-color: var(--gold-dim);
}

.cmd-card.cmd-copied {
  background: rgba(245, 197, 24, 0.08);
}

.cmd-copy-hint {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gold);
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
}

.cmd-card code {
  color: var(--gold);
  font-size: 0.95rem;
}

.cmd-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  margin-top: 1rem;
  background: linear-gradient(180deg, transparent, rgba(155, 28, 28, 0.12));
  border-radius: var(--radius);
  border: 1px solid rgba(155, 28, 28, 0.3);
}

.cta-owl {
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.cta-band h2 {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 4px 0 #4752c4;
  width: 100%;
  max-width: 320px;
}

.btn-discord:hover {
  box-shadow: 0 6px 0 #4752c4;
}

.hidden {
  display: none !important;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  text-align: center;
  background: var(--bg2);
  border: 1px solid rgba(155, 28, 28, 0.35);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.auth-owl {
  filter: drop-shadow(0 0 16px rgba(245, 197, 24, 0.25));
  margin-bottom: 0.5rem;
}

.auth-card h1 {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  margin: 0 0 0.75rem;
}

.auth-lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

.auth-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid var(--red-bright);
  color: #fca5a5;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-avatar {
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
}

.dash-main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.dash-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(155, 28, 28, 0.18), transparent 55%),
    var(--bg2);
  border: 1px solid rgba(155, 28, 28, 0.35);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dash-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.12), transparent 70%);
  pointer-events: none;
}

.dash-avatar {
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.12);
}

.dash-badge {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}

.dash-hero h1 {
  margin: 0;
  font-family: Nunito, sans-serif;
  font-weight: 900;
}

.dash-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: ui-monospace, monospace;
}

.dash-prestige {
  display: inline-block;
  margin: 0.55rem 0 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 24, 0.45);
  background: rgba(245, 197, 24, 0.1);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-mascot {
  margin-left: auto;
  opacity: 0.95;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.dash-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.dash-stat:hover {
  border-color: rgba(245, 197, 24, 0.35);
  transform: translateY(-1px);
}

.dash-stat-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  image-rendering: auto;
}

.dash-stat .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dash-stat .value {
  display: block;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-top: 0.15rem;
  color: var(--gold);
  line-height: 1.15;
}

.dash-owl {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(245, 197, 24, 0.1), transparent 55%),
    var(--bg2);
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.dash-owl-visual {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.dash-owl-portrait {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

.dash-owl-moon {
  position: absolute;
  right: -6px;
  bottom: -2px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.dash-owl-meta {
  min-width: 180px;
  flex: 1;
}

.dash-owl h2 {
  margin: 0 0 0.45rem;
  font-family: Nunito, sans-serif;
  font-size: 1.1rem;
  color: var(--gold);
}

.dash-owl-line {
  margin: 0;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
}

.dash-owl-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dash-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.dash-empty img {
  display: block;
  margin: 0 auto 1rem;
  width: 96px;
  height: 96px;
  opacity: 0.95;
}

.dash-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--muted);
}

.dash-loading img {
  width: 48px;
  height: 48px;
}

.auth-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(155, 28, 28, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(155, 28, 28, 0.25);
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-trust img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero,
  .feature,
  .feature-b,
  .feature-c {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hero-art {
    order: -1;
  }

  .hunt-mock {
    max-width: 100%;
  }

  .hero-owl-side {
    width: min(100px, 28vw);
  }

  .duo-shots {
    grid-template-columns: 1fr 1fr;
  }
}

.lb-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lb-preview h2 {
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.lb-preview-owl {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.lb-main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.lb-head {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.lb-head h1 {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  margin: 0;
}

.lb-lead {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lb-tab {
  background: var(--bg2);
  border: 1px solid rgba(155, 28, 28, 0.35);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
}

.lb-tab.active,
.lb-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lb-meta {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0 0 1rem;
}

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

.lb-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  align-items: center;
  background: var(--bg2);
  border: 1px solid rgba(155, 28, 28, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.lb-item-top {
  border-color: rgba(245, 197, 24, 0.35);
}

.lb-rank {
  grid-row: 1 / 3;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--gold);
}

.lb-name {
  font-weight: 600;
}

.lb-name-link {
  color: var(--text);
  text-decoration: none;
}

.lb-name-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.lb-item-you {
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.08);
}

.lb-item-you .lb-name-link {
  color: var(--gold);
  font-weight: 700;
}

.lb-item-sep {
  display: block;
  text-align: center;
  padding: 0.35rem 1rem;
  background: transparent;
  border: none;
  border-top: 1px dashed rgba(155, 28, 28, 0.35);
  border-radius: 0;
}

.lb-sep-label {
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lb-score {
  font-family: Nunito, sans-serif;
  font-weight: 800;
  color: var(--gold);
}

.lb-detail {
  grid-column: 2 / 4;
  font-size: var(--text-sm);
  color: var(--muted);
}

.lb-detail .lb-emoji {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  margin-right: 0.15em;
  object-fit: contain;
}

.lb-empty-item {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.dash-name-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--bg2);
  border: 1px solid rgba(155, 28, 28, 0.25);
  border-radius: var(--radius);
}

.dash-name-panel h2 {
  margin: 0 0 0.35rem;
  font-family: Nunito, sans-serif;
  font-size: var(--text-lg);
  color: var(--gold);
}

.dash-name-hint {
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.dash-name-readonly {
  margin: 0;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--text);
}

.dash-name-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-name-form input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(155, 28, 28, 0.35);
  background: var(--bg3);
  color: var(--text);
  font: inherit;
}

.dash-name-msg {
  margin: 0.65rem 0 0;
  font-size: var(--text-sm);
}

.dash-name-msg-ok {
  color: #6ee7a0;
}

.dash-name-msg-err {
  color: #f87171;
}

.player-main {
  max-width: 720px;
}

.player-ranks {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg2);
  border: 1px solid rgba(155, 28, 28, 0.25);
  border-radius: var(--radius);
}

.player-ranks h2 {
  margin: 0 0 0.75rem;
  font-family: Nunito, sans-serif;
  color: var(--gold);
  font-size: var(--text-lg);
}

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

.player-rank-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(155, 28, 28, 0.15);
}

.player-rank-list li:last-child {
  border-bottom: none;
}

.player-rank-cat {
  color: var(--muted);
}

.player-rank-val {
  font-family: Nunito, sans-serif;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
}

.player-rank-val:hover {
  text-decoration: underline;
}

.legal-main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  color: var(--text-body);
  line-height: 1.65;
}

.legal-main h1 {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  color: var(--gold);
}

.legal-main h2 {
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-heading, #f5f5f5);
  margin: 1.75rem 0 0.5rem;
}

.legal-main h3 {
  font-weight: 600;
  font-size: 1rem;
  margin: 1.25rem 0 0.35rem;
}

.legal-main ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-main li {
  margin: 0.35rem 0;
}

.legal-updated {
  opacity: 0.75;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.legal-app-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.legal-subtitle {
  margin-top: -0.5rem;
  opacity: 0.7;
  font-size: 1rem;
}

.legal-summary {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 6px 6px 0;
}

.legal-main code {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.legal-main a {
  color: var(--gold);
}

.mobile-invite-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 8, 8, 0.94);
  border-top: 2px solid var(--red);
  backdrop-filter: blur(10px);
}

.mobile-invite-bar .btn {
  width: 100%;
}

/* Feedback survey */
.fb-main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.fb-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--muted);
}

.fb-hero {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.fb-hero h1 {
  margin: 0 0 0.35rem;
  font-family: Nunito, sans-serif;
  color: var(--gold);
}

.fb-desc {
  color: var(--text-body);
  margin: 0 0 0.5rem;
}

.fb-reward-badge {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--gold-dim);
}

.fb-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fb-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
}

.fb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  width: 0;
  transition: width 0.2s;
}

.fb-progress-label {
  font-size: var(--text-sm);
  color: var(--muted);
  min-width: 4rem;
  text-align: right;
}

.fb-section-title {
  font-family: Nunito, sans-serif;
  font-weight: 800;
  color: var(--red-bright);
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fb-q-label {
  display: block;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.fb-q-hint {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0 0 0.75rem;
}

.fb-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.fb-choice {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(155, 28, 28, 0.4);
  background: var(--bg2);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.fb-choice-active {
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.12);
  color: var(--gold);
}

.fb-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(155, 28, 28, 0.35);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
  font: inherit;
  resize: vertical;
  min-height: 4rem;
}

.fb-nps {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.fb-nps input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}

.fb-likert {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.fb-likert-btn {
  min-width: 2.5rem;
}

.fb-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.fb-upload {
  margin-top: 1rem;
}

.fb-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.fb-preview {
  position: relative;
  width: 120px;
}

.fb-preview img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(155, 28, 28, 0.35);
}

.fb-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}

.fb-done,
.fb-readonly {
  text-align: center;
  padding: 2rem 0;
}

.fb-done h1,
.fb-readonly h1 {
  font-family: Nunito, sans-serif;
  color: var(--gold);
}

.fb-reward-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0;
}

.fb-readonly-list {
  text-align: left;
  margin: 1.5rem 0;
}

.fb-readonly-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(155, 28, 28, 0.2);
}

.fb-readonly-item strong {
  display: block;
  color: var(--gold-dim);
  font-size: var(--text-sm);
  margin-bottom: 0.25rem;
}

@media (max-width: 820px) {
  .mobile-invite-bar {
    display: block;
  }

  body {
    padding-bottom: 4.5rem;
  }

  .lb-preview {
    flex-direction: column;
    text-align: center;
  }
}
