/* ==========================================================================
   ARCADIA BOT — LANDING PAGE STYLES
   ========================================================================== */

/* --- 1. FONTS & RESET --- */
@font-face {
  font-family: 'PixelDisplay';
  src: url('fonts/PixelDisplay.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Pixel Circle';
  src: url('fonts/GeistPixel-Circle.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050409;
  --bg-panel: #0d0a14;
  --card-bg: #15101f;          /* dark purple card fill */
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(168, 85, 247, 0.28);
  --accent: #7c3aed;           /* primary purple */
  --accent-2: #4f46e5;         /* blue-purple gradient end for CTAs */
  --accent-glow: rgba(124, 58, 237, 0.45);
  --text: #ffffff;
  --muted: #9a94a6;
  --muted-2: #c4c2c3;
  --success: #34d399;
  --danger: #fb7185;
  --gold: #fbbf24;
  --diamond: #38bdf8;
  --legendary-purple: #a855f7;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-sans: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-display: "PixelDisplay", "Geist Pixel Circle", "BubbledotICG-FinePos", monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* --- 2. AMBIENT BACKGROUND --- */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.38;
  filter: contrast(1.1) brightness(0.9);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, rgba(124, 58, 237, 0.15), transparent 60%),
              linear-gradient(180deg, rgba(5, 4, 9, 0.6) 0%, rgba(5, 4, 9, 0.95) 50%, #050409 100%);
}

.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.25;
}

.bg-glow.top-left {
  top: -100px;
  left: -100px;
  background: #7c3aed;
}

.bg-glow.center-right {
  top: 40%;
  right: -150px;
  background: #4f46e5;
}

/* --- 3. PAGE CONTAINER & VERTICAL RHYTHM --- */
.page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(48px, 8vh, 88px) 0;
  position: relative;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 36px);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- 4. TOP BAR --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin-bottom: 24px;
}

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

.logo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
  overflow: hidden;
}

.logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.identity-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.btn-topbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-topbar:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* --- 5. HERO SECTION --- */
.hero-section {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(24px, 5vh, 60px) 0 clamp(40px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 6px 16px 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.badge-stack {
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.badge-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-right: -6px;
  border: 2px solid var(--card-bg);
}

.badge-dot.crown { background: #f59e0b; color: #000; }
.badge-dot.game { background: #7c3aed; color: #fff; }
.badge-dot.fire { background: #ef4444; color: #fff; }

.wordmark {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-2);
  margin-bottom: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.headline {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.headline span {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 40%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subhead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--muted-2);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 24px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(21, 16, 31, 0.85);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(30, 22, 48, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- 6. SECTION HEADERS & EYEBROWS --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

/* --- 7. LIVE MATCH / DISCORD PANEL --- */
.live-section {
  padding-top: 0;
}

.live-card {
  padding: clamp(20px, 3vw, 32px);
  background: #0f0a1c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.badge-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
}

.channel-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
}

.channel-tag {
  font-size: 0.7rem;
  color: var(--muted);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 10px;
}

.channel-name {
  color: #ffffff;
  font-weight: 700;
}

/* Discord Thread */
.discord-thread {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.msg-bubble {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.05rem;
  flex-shrink: 0;
  overflow: hidden;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-body {
  flex: 1;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.user-name, .bot-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.bot-badge {
  background: #5865f2;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.msg-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.msg-text {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: inline-block;
  color: #e2e8f0;
  font-weight: 600;
}

.discord-embed {
  background: #140d24;
  border-right: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 580px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.embed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.embed-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
}

.timer-pill {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.embed-desc {
  font-size: 0.9rem;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.embed-target {
  background: #080410;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  padding: 16px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #d8b4fe;
  border-radius: 10px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.embed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.winner-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.time-highlight {
  color: #34d399;
}

.matched-chip {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.sim-tabs-row {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tabs-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.sim-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--muted-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-tab:hover, .sim-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* 4-Stat Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

/* --- 8. INTERACTIVE GAME SIMULATOR --- */
.game-chips-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.game-chip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted-2);
  font-family: inherit;
  transition: all 0.25s ease;
}

.game-chip:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.game-chip.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(79, 70, 229, 0.25));
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.chip-icon {
  font-size: 1.5rem;
}

.chip-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.game-playground-card {
  background: #0f0a1c;
}

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

.game-active-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-icon {
  font-size: 1.4rem;
}

.active-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.active-timer-pill {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
}

.playground-rules {
  color: var(--muted-2);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.playground-target-box {
  background: #06030b;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.target-text {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #f3e8ff;
  letter-spacing: 0.06em;
}

.playground-interactive-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.playground-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.playground-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-playground-test {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-weight: 800;
  padding: 0 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-playground-test:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.playground-feedback {
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 22px;
  transition: all 0.2s ease;
}

.playground-feedback.success { color: #34d399; }
.playground-feedback.error { color: #fb7185; }

/* --- 9. POINTS & RANK CALCULATOR --- */
.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.calc-sliders-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-value {
  font-weight: 800;
  color: #ffffff;
  font-size: 1.05rem;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-slider.slider-pink::-webkit-slider-thumb {
  border: 3px solid #ec4899;
}

.range-slider.slider-cyan::-webkit-slider-thumb {
  border: 3px solid #38bdf8;
}

.slider-helper {
  font-size: 0.8rem;
  color: var(--muted);
}

.text-pink { color: #f472b6; }
.text-cyan { color: #38bdf8; }

/* Profile Card Preview */
.profile-preview-card {
  background: #0f0a1c;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rank-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.total-pts-wrap {
  text-align: left;
}

.total-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.total-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
}

.profile-user-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
}

.profile-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.user-display-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
}

.user-status-text {
  font-size: 0.8rem;
  color: var(--muted);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-pill-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip-name {
  font-size: 0.8rem;
  color: var(--muted-2);
}

.chip-val {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}

.profile-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.progress-title {
  color: var(--muted-2);
  font-weight: 700;
}

.progress-percent {
  font-weight: 800;
  color: #c084fc;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), #c084fc);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-helper {
  font-size: 0.72rem;
  color: var(--muted);
}

/* --- 10. LEADERBOARD --- */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leader-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.leader-card:hover {
  transform: translateX(-4px);
  border-color: rgba(168, 85, 247, 0.4);
}

.rank-1-card {
  background: linear-gradient(135deg, rgba(30, 18, 48, 0.9), rgba(15, 10, 28, 0.95));
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.12);
  padding: 20px 28px;
}

.leader-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rank-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
}

.rank-pos-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #000;
  border: 2px solid var(--bg);
}

.rank-pos-badge.gold { background: #fbbf24; }
.rank-pos-badge.diamond { background: #38bdf8; }
.rank-pos-badge.platinum { background: #c084fc; color: #fff; }
.rank-pos-badge.silver { background: #94a3b8; }

.leader-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.champ-tag {
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 700;
}

.pro-tag {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 700;
}

.leader-tier {
  font-size: 0.75rem;
  font-weight: 700;
}

.tier-legendary { color: #fbbf24; }
.tier-diamond { color: #38bdf8; }
.tier-platinum { color: #c084fc; }
.tier-gold { color: #f59e0b; }
.tier-silver { color: #94a3b8; }

.pts-pill {
  text-align: left;
}

.pts-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.pts-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
}

/* --- 11. WHY ARCADIA FEATURES --- */
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.feature-tag {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.feature-heading {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.35;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--muted-2);
  line-height: 1.65;
}

.spelling-demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.spell-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.spell-chip.correct {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.spell-chip.rejected {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* --- 12. COMMANDS GUIDE --- */
.commands-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-bar-wrap {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
}

.search-input {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 48px 16px 20px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--muted-2);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 10px var(--accent-glow);
}

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

.cmd-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cmd-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cmd-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cmd-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #d8b4fe;
}

.btn-copy-cmd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--muted-2);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.cmd-card:hover .btn-copy-cmd {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.cmd-desc {
  font-size: 0.85rem;
  color: var(--muted-2);
  line-height: 1.5;
}

.cmd-example-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.cmd-example-chip {
  background: #080410;
  padding: 2px 6px;
  border-radius: 4px;
  color: #c084fc;
}

/* --- 13. FAQ ACCORDION --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  padding: 0;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: right;
  transition: color 0.2s ease;
}

.faq-trigger:hover {
  color: #c084fc;
}

.faq-chevron {
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.faq-card.open .faq-chevron {
  transform: rotate(180deg);
  color: #c084fc;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 24px;
}

.faq-card.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--muted-2);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

/* --- 14. FINAL CTA BANNER --- */
.final-cta-card {
  background: linear-gradient(180deg, #180a2e 0%, #080312 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 50px rgba(124, 58, 237, 0.2);
  text-align: center;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 48px);
}

.cta-game-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #251042;
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
}

.final-cta-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
}

.final-cta-desc {
  font-size: 1rem;
  color: var(--muted-2);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.final-cta-btn-wrap {
  display: flex;
  justify-content: center;
}

.btn-large {
  font-size: 1.05rem;
  padding: 16px 36px;
}

/* --- 15. FOOTER --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-logo {
  border-radius: 6px;
  background: #fff;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- 16. TOAST NOTIFICATION --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 9999;
}

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

/* --- 17. SCROLL ENTRANCE ANIMATIONS --- */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.anim.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .anim {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* --- 18. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .commands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-chips-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .calculator-container {
    grid-template-columns: 1fr;
  }
  .features-list {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .commands-grid {
    grid-template-columns: 1fr;
  }
  .game-chips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}
