/* ==========================================================================
   Saeko Official Website (saekobot.com) — Soft Dark Slate + Glassmorphism Theme
   Pure CSS3, Zero External Dependencies, 5-Language Ready, Cloudflare Pages
   ========================================================================== */

:root {
  --bg: #181B28;
  --bg-elev: #212638;
  --bg-soft: #262C40;
  --glass: rgba(38, 44, 64, 0.78);
  --glass-strong: rgba(30, 35, 52, 0.92);
  --border: rgba(255, 255, 255, 0.11);
  --border-glow: rgba(139, 123, 255, 0.52);
  --text: #F4F6FB;
  --text-soft: #D3DAEA;
  --text-muted: #9BA5BC;
  --violet: #8B7BFF;
  --indigo: #6366F1;
  --cyan: #38BDF8;
  --emerald: #34D399;
  --sakura-glow: rgba(244, 162, 184, 0.14);
  --radius: 16px;
  --radius-sm: 14px;
  --max-w: 1180px;
  --shadow: 0 22px 54px rgba(10, 12, 22, 0.42);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(840px 440px at 14% 34%, rgba(56, 189, 248, 0.07), transparent 65%),
    radial-gradient(900px 480px at 86% 68%, rgba(139, 123, 255, 0.10), transparent 65%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(139, 123, 255, 0.16);
  color: #D8D2FF;
  padding: 0.14em 0.45em;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* --- Shared Navbar (Soft & Warm Glass) --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(28, 32, 48, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(10, 12, 22, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
}

.brand:hover { opacity: 0.94; }

.brand-avatar {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(244, 162, 184, 0.72);
  box-shadow: 0 0 14px rgba(139, 123, 255, 0.35), 0 0 8px rgba(244, 162, 184, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 550;
}

.nav-links a { transition: color 0.18s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #FFFFFF; }
.nav-links a.active { position: relative; }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* --- 5-Language Dropdown --- */
.lang-dropdown { position: relative; }

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elev);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.lang-trigger:hover,
.lang-dropdown.open .lang-trigger {
  border-color: var(--border-glow);
  color: #FFFFFF;
  background: var(--bg-soft);
}

.lang-chevron { width: 13px; height: 13px; transition: transform 0.18s ease; }
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 176px;
  padding: 6px;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(139, 123, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(10, 12, 22, 0.55);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 120;
}

.lang-dropdown.open .lang-menu { display: flex; }

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover { background: rgba(139, 123, 255, 0.16); color: #FFFFFF; }
.lang-option.active {
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.3), rgba(56, 189, 248, 0.22));
  color: #FFFFFF;
}

.lang-code-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #BAE6FD;
  background: rgba(56, 189, 248, 0.16);
  padding: 2px 7px;
  border-radius: 999px;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* --- Polished Rounded Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(124, 108, 246, 0.38);
}

.btn-primary:hover { box-shadow: 0 14px 34px rgba(139, 123, 255, 0.55); }

.btn-glass {
  background: rgba(38, 44, 64, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-glass:hover {
  background: rgba(48, 56, 82, 0.94);
  border-color: rgba(56, 189, 248, 0.5);
}

.btn-cyan {
  background: rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(10px);
  color: #BAE6FD;
  border-color: rgba(56, 189, 248, 0.44);
}

.btn-cyan:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.72);
  color: #FFFFFF;
}

.btn-patreon {
  background: rgba(139, 123, 255, 0.18);
  backdrop-filter: blur(10px);
  color: #DDD6FF;
  border-color: rgba(139, 123, 255, 0.45);
}

.btn-patreon:hover {
  background: rgba(139, 123, 255, 0.28);
  border-color: rgba(139, 123, 255, 0.7);
}

.btn-premium {
  background: linear-gradient(135deg, rgba(245, 196, 105, 0.2), rgba(232, 184, 109, 0.14));
  color: #F5C469;
  border-color: rgba(232, 184, 109, 0.45);
  box-shadow: 0 4px 16px rgba(232, 184, 109, 0.14);
}

.btn-premium:hover {
  background: linear-gradient(135deg, rgba(245, 196, 105, 0.3), rgba(232, 184, 109, 0.22));
  border-color: #F5C469;
  color: #FFE7B3;
  box-shadow: 0 8px 22px rgba(232, 184, 109, 0.26);
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* --- Hero (Soft Dark Slate + Warm/Pink Ambient Glow) --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 72px 0 68px;
  background-color: var(--bg);
  background-image:
    radial-gradient(640px 320px at 50% 18%, var(--sakura-glow), transparent 65%),
    radial-gradient(760px 380px at 20% 25%, rgba(139, 123, 255, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(24, 27, 40, 0.45) 0%, rgba(24, 27, 40, 0.68) 65%, var(--bg) 100%),
    url("assets/hero-banner.webp");
  background-position: center, center, center, right center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-centered {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-brand-title {
  margin: 0;
  font-size: clamp(3rem, 6.6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFFFFF 12%, #BAE6FD 54%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(10, 12, 22, 0.45);
}

.hero-sakura-mark {
  width: clamp(28px, 3.8vw, 38px);
  height: clamp(28px, 3.8vw, 38px);
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(244, 162, 184, 0.42));
}

.hero-tagline {
  margin: 0 0 14px;
  font-style: italic;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: #E2D9FF;
  font-weight: 500;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.55vw, 1.09rem);
  text-shadow: 0 2px 14px rgba(10, 12, 22, 0.55);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-stats-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(33, 38, 56, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 123, 255, 0.34);
  box-shadow: 0 12px 32px rgba(10, 12, 22, 0.32);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-stat-link { transition: transform 0.16s ease, color 0.16s ease; }
.hero-stat-link:hover { transform: translateY(-1px); }
.hero-stat-link:hover .hero-stat-value { color: #BAE6FD; }

.hero-stat-value {
  font-size: 1.24rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
}

.hero-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.16);
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 10%, #BAE6FD 52%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(33, 38, 56, 0.84);
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #BAE6FD;
  font-size: 0.83rem;
  font-weight: 650;
  margin-bottom: 18px;
}

/* --- Sections --- */
section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7DD3FC;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-head p { margin: 0; color: var(--text-muted); }

/* --- Visual Modules Showcase --- */
.modules-banner-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 123, 255, 0.34);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.modules-banner-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modules-banner-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modules-banner-copy h3 { margin: 10px 0 10px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; }
.modules-banner-copy p { margin: 0; color: var(--text-soft); font-size: 0.96rem; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(139, 123, 255, 0.18);
  border: 1px solid rgba(139, 123, 255, 0.4);
  color: #DDD6FF;
}

.pill-badge.cyan {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
  color: #BAE6FD;
}

/* --- Cards Grid --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: rgba(139, 123, 255, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.18), 0 0 0 1px rgba(56, 189, 248, 0.16) inset;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.24), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(139, 123, 255, 0.34);
  display: grid;
  place-items: center;
  color: #BAE6FD;
  font-size: 1.28rem;
  margin-bottom: 14px;
}

.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.09rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

.card-tags {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.79rem;
  font-weight: 600;
  color: #9DDDFD;
}

/* --- Spotlight RPG & Rift Wars --- */
.spotlight-card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.spotlight-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.spotlight-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.spotlight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.spotlight-card:hover .spotlight-media img { transform: scale(1.03); }

.spotlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(24, 27, 40, 0.85) 100%);
  pointer-events: none;
}

.spotlight-media .pill-badge { position: absolute; left: 16px; bottom: 14px; z-index: 2; }

.spotlight-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.spotlight-body h3 { margin: 0 0 8px; font-size: 1.24rem; line-height: 1.25; }
.spotlight-body p { margin: 0 0 14px; color: var(--text-muted); font-size: 0.93rem; }
.spotlight-list { margin: 0 0 20px; padding-left: 18px; color: var(--text-soft); font-size: 0.9rem; }
.spotlight-list li { margin-bottom: 6px; }
.spotlight-body .btn { margin-top: auto; align-self: flex-start; }

/* --- Bottom CTA --- */
.cta-box {
  background:
    radial-gradient(620px 260px at 50% 0%, rgba(139, 123, 255, 0.22), transparent 70%),
    var(--glass);
  border: 1px solid var(--border-glow);
  border-radius: 22px;
  padding: 42px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.cta-box p { max-width: 640px; margin: 0 auto 24px; color: var(--text-soft); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* --- Interactive Discord Mockup Simulator --- */
.mockup-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }

.mockup-tab {
  background: var(--bg-elev);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mockup-tab:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.22); }
.mockup-tab.active {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
  border-color: transparent;
}

.discord-window {
  max-width: 780px;
  margin: 0 auto;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.discord-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #2B2D31;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
  font-weight: 700;
  color: #F2F3F5;
}

.discord-dots { display: flex; gap: 6px; }
.discord-dots span { width: 10px; height: 10px; border-radius: 50%; background: #4E5058; }

.discord-body { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }

.discord-avatar {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 2px solid rgba(139, 123, 255, 0.65);
}

.discord-msg { flex: 1; min-width: 0; }
.discord-author-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.discord-author { font-weight: 700; color: #FFFFFF; font-size: 0.98rem; }
.discord-app-tag {
  background: #5865F2;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.discord-time { color: #949BA4; font-size: 0.76rem; }

.discord-embed {
  background: #2B2D31;
  border-left: 4px solid var(--violet);
  border-radius: 6px;
  padding: 14px 16px;
  max-width: 580px;
}

.discord-embed-title { font-weight: 750; font-size: 1rem; color: #FFFFFF; margin-bottom: 6px; }
.discord-embed-desc { color: #DBDEE1; font-size: 0.9rem; margin-bottom: 12px; }
.discord-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.discord-field-name { font-size: 0.78rem; font-weight: 700; color: #FFFFFF; margin-bottom: 2px; }
.discord-field-val { font-size: 0.85rem; color: #DBDEE1; }

.discord-card-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #212638, #262C40);
  border: 1px solid rgba(139, 123, 255, 0.35);
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0;
}

.discord-card-preview img {
  width: 54px;
  height: 54px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #7DD3FC;
}

.discord-card-eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; color: #7DD3FC; font-weight: 700; }
.discord-card-user { font-size: 1.05rem; font-weight: 800; color: #FFFFFF; }
.discord-card-sub { font-size: 0.8rem; color: #9AA3B5; }
.discord-embed-footer { font-size: 0.75rem; color: #949BA4; margin-top: 8px; }

.discord-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.discord-btn {
  background: #4E5058;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 600;
}

/* --- Legal Pages --- */
.legal-wrap { max-width: 860px; width: 100%; margin: 0 auto; padding: 54px 22px 84px; }
.legal-top-nav { margin-bottom: 18px; }
.legal-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.legal-header h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 3.6vw, 2.55rem); letter-spacing: -0.025em; }
.legal-meta { color: var(--text-muted); font-size: 0.9rem; }

.legal-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 16px;
}

.legal-card h2 { margin: 0 0 10px; font-size: 1.15rem; color: #FFFFFF; }
.legal-card p, .legal-card li { color: var(--text-soft); font-size: 0.95rem; }
.legal-card ul { margin: 8px 0 0; padding-left: 20px; }
.legal-card li { margin-bottom: 6px; }

/* --- Subpage Hero & Commands Directory --- */
.page-hero {
  position: relative;
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(760px 300px at 50% 0%, rgba(139, 123, 255, 0.2), transparent 70%),
    radial-gradient(620px 260px at 85% 20%, rgba(56, 189, 248, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(24, 27, 40, 0.6) 0%, var(--bg) 100%);
}

.page-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 2.95rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 850; }
.page-hero p { margin: 0; color: var(--text-soft); font-size: clamp(0.96rem, 1.5vw, 1.06rem); }

.cmd-directory-section { padding: 42px 0 76px; }
.cmd-toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.cmd-search-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cmd-search-box { position: relative; flex: 1 1 360px; }

.cmd-search-ico {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.cmd-search-input {
  width: 100%;
  padding: 13px 44px;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cmd-search-input:focus { border-color: rgba(139, 123, 255, 0.65); box-shadow: 0 0 0 3px rgba(139, 123, 255, 0.18); }

.cmd-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
  display: none;
  place-items: center;
  cursor: pointer;
}

.cmd-search-clear.visible { display: grid; }
.cmd-search-clear:hover { background: rgba(139, 123, 255, 0.28); color: #FFFFFF; }

.cmd-meta-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmd-count-pill { padding: 8px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-soft); font-size: 0.85rem; font-weight: 600; }

.cmd-admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmd-admin-toggle:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.22); }
.cmd-admin-toggle.active { background: rgba(251, 191, 36, 0.16); border-color: rgba(251, 191, 36, 0.48); color: #FDE68A; }

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

.cmd-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elev);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmd-tab:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.22); }
.cmd-tab.active {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.3);
}

.cmd-tab-count { font-size: 0.74rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--text-soft); }
.cmd-tab.active .cmd-tab-count { background: rgba(255, 255, 255, 0.22); color: #FFFFFF; }

.cmd-sections { display: flex; flex-direction: column; gap: 32px; }
.cmd-category-section { display: flex; flex-direction: column; gap: 16px; }

.cmd-category-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.14), rgba(56, 189, 248, 0.08)), var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 123, 255, 0.34);
}

.cmd-category-main { display: flex; align-items: flex-start; gap: 16px; }

.cmd-category-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.26), rgba(56, 189, 248, 0.18));
  border: 1px solid rgba(139, 123, 255, 0.42);
  color: #BAE6FD;
}

.cmd-category-icon svg { width: 24px; height: 24px; }
.cmd-category-banner h2 { margin: 0 0 4px; font-size: 1.22rem; font-weight: 750; }
.cmd-category-banner p { margin: 0; color: var(--text-soft); font-size: 0.91rem; }

.cmd-category-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #BAE6FD;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.cmd-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.18s ease, transform 0.16s ease;
}

.cmd-card:hover { border-color: rgba(139, 123, 255, 0.5); transform: translateY(-1px); }
.cmd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmd-title-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.cmd-name { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.94rem; font-weight: 700; color: #C7E8FF; word-break: break-word; }

.cmd-admin-badge {
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #FDE68A;
}

.cmd-desc { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

.copy-btn {
  flex-shrink: 0;
  background: var(--bg-elev);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.79rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.16s ease;
}

.copy-btn:hover { border-color: var(--border-glow); color: #FFFFFF; }
.copy-btn.copied { background: rgba(52, 211, 153, 0.18); border-color: rgba(52, 211, 153, 0.52); color: #6EE7B7; }

.cmd-empty-state { text-align: center; padding: 46px 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border); }
.cmd-empty-state h3 { margin: 0 0 8px; font-size: 1.15rem; }
.cmd-empty-state p { margin: 0 0 18px; color: var(--text-muted); }

.rpg-promo-banner {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 20px;
  background: radial-gradient(520px 220px at 0% 50%, rgba(139, 123, 255, 0.2), transparent 70%), var(--glass);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow);
}

.rpg-promo-copy h2 { margin: 10px 0 8px; font-size: clamp(1.3rem, 2.3vw, 1.7rem); }
.rpg-promo-copy p { margin: 0 0 18px; color: var(--text-soft); font-size: 0.94rem; }
.rpg-promo-media { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); }
.rpg-promo-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* --- Soft Dark Slate RPG Guide Theme (body.page-rpg) --- */
body.page-rpg {
  background:
    radial-gradient(960px 540px at 15% 18%, rgba(139, 123, 255, 0.15), transparent 65%),
    radial-gradient(880px 520px at 86% 48%, rgba(56, 189, 248, 0.11), transparent 65%),
    radial-gradient(760px 440px at 50% 84%, rgba(244, 162, 184, 0.08), transparent 70%),
    #161926;
}

.rpg-hero {
  position: relative;
  padding: 72px 0 54px;
  border-bottom: 1px solid rgba(139, 123, 255, 0.28);
  background-color: #161926;
  background-image:
    linear-gradient(180deg, rgba(22, 25, 38, 0.42) 0%, rgba(22, 25, 38, 0.72) 65%, #161926 100%),
    linear-gradient(90deg, rgba(22, 25, 38, 0.9) 0%, rgba(22, 25, 38, 0.72) 52%, rgba(22, 25, 38, 0.44) 100%),
    url("assets/rpg-hero.webp");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  overflow: hidden;
}

.rpg-hero-inner { position: relative; z-index: 2; max-width: 780px; }

.rpg-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.09;
  letter-spacing: -0.03em;
  font-weight: 850;
  text-shadow: 0 10px 32px rgba(10, 12, 22, 0.55);
}

.rpg-hero-desc { margin: 0 0 22px; color: var(--text-soft); font-size: clamp(1rem, 1.55vw, 1.1rem); }

.rpg-p2w-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6EE7B7;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.rpg-hero-hint {
  margin-top: 14px;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(33, 38, 56, 0.84);
  border: 1px solid rgba(139, 123, 255, 0.3);
  color: var(--text-soft);
  font-size: 0.86rem;
}

.rpg-jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.rpg-jump-pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(33, 38, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.rpg-jump-pill:hover { border-color: rgba(139, 123, 255, 0.62); background: rgba(139, 123, 255, 0.18); color: #FFFFFF; }

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

.rpg-step-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 123, 255, 0.28);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rpg-step-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.48); }

.rpg-step-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #BAE6FD;
  margin-bottom: 10px;
}

.rpg-step-card h3 { margin: 0 0 8px; font-size: 1.04rem; }
.rpg-step-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* --- 10 Classes Interactive Panel --- */
.rpg-classes-shell {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 123, 255, 0.38);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.classes-interactive { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }

.class-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 10px;
  border-radius: 13px;
  background: rgba(24, 27, 40, 0.78);
  border: 1px solid var(--border);
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 650;
  font-size: 0.87rem;
  transition: all 0.18s ease;
}

.class-btn .cls-ico { font-size: 1.4rem; }
.class-btn:hover { border-color: rgba(56, 189, 248, 0.52); color: #FFFFFF; transform: translateY(-2px); }

.class-btn.active {
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.3), rgba(56, 189, 248, 0.2));
  border-color: rgba(139, 123, 255, 0.78);
  color: #FFFFFF;
  box-shadow: 0 0 22px rgba(139, 123, 255, 0.28);
}

.class-showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(24, 27, 40, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.class-head-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }

.class-emblem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  background: rgba(139, 123, 255, 0.18);
  border: 1px solid rgba(139, 123, 255, 0.42);
  flex-shrink: 0;
}

.class-head-row h3 { margin: 0 0 4px; font-size: 1.35rem; }
.class-role-pill { display: inline-block; font-size: 0.76rem; font-weight: 700; color: #BAE6FD; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.32); border-radius: 999px; padding: 2px 10px; }
.class-summary-text { margin: 0 0 14px; color: var(--text-soft); font-size: 0.94rem; }

.class-sig-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(139, 123, 255, 0.14);
  border: 1px solid rgba(139, 123, 255, 0.34);
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.class-sig-box span { color: var(--text-muted); }
.class-sig-box strong { color: #FFFFFF; }

.class-evos-title, .class-stats-title { font-size: 0.79rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }
.class-evo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.class-evo-card { padding: 12px 14px; border-radius: 12px; background: rgba(33, 38, 56, 0.88); border: 1px solid rgba(56, 189, 248, 0.3); }
.class-evo-tier { font-size: 0.72rem; font-weight: 700; color: #7DD3FC; margin-bottom: 4px; }
.class-evo-name { font-size: 0.96rem; font-weight: 750; color: #FFFFFF; }

.class-stats-list { display: flex; flex-direction: column; gap: 10px; }
.stat-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 46px; align-items: center; gap: 10px; }
.stat-label { font-size: 0.8rem; font-weight: 750; color: var(--text-soft); }
.stat-track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.stat-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: width 0.25s ease; }
.stat-val { text-align: right; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.84rem; font-weight: 700; color: #FFFFFF; }

.rpg-slots-footnote { margin: 16px 0 0; text-align: center; font-size: 0.86rem; color: var(--text-muted); }

.cmd-chip-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.79rem;
  color: #9DDDFD;
}

/* --- Rift Wars Comparison & Mechanics --- */
.pvp-strip { background: var(--glass); border: 1px solid rgba(139, 123, 255, 0.34); border-radius: 16px; padding: 20px 24px; margin-bottom: 22px; }
.pvp-strip h3 { margin: 8px 0 6px; font-size: 1.16rem; }
.pvp-strip p { margin: 0; color: var(--text-soft); font-size: 0.94rem; }

.rift-hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.38);
  margin-bottom: 22px;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(24, 27, 40, 0.22) 0%, rgba(24, 27, 40, 0.88) 100%),
    url("assets/rift-wars-banner.webp");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.rift-hero-copy { max-width: 680px; }
.rift-hero-copy h3 { margin: 10px 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.rift-hero-copy p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

.rift-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.rift-mode-card { background: var(--glass); backdrop-filter: blur(12px); border-radius: 18px; padding: 24px; border: 1px solid var(--border); }
.rift-mode-card.ranked { border-color: rgba(245, 158, 11, 0.45); background: radial-gradient(420px 180px at 0% 0%, rgba(245, 158, 11, 0.12), transparent 70%), var(--glass); }
.rift-mode-card.friendly { border-color: rgba(56, 189, 248, 0.45); background: radial-gradient(420px 180px at 0% 0%, rgba(56, 189, 248, 0.12), transparent 70%), var(--glass); }
.rift-mode-card h3 { margin: 10px 0 10px; font-size: 1.18rem; }
.rift-mode-card ul { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: 0.92rem; }
.rift-mode-card li { margin-bottom: 6px; }
.pill-badge.amber { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.45); color: #FDE68A; }
.rpg-cmd-footer-link { margin-top: 22px; text-align: center; }

/* --- Shared Footer --- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(20, 23, 35, 0.96);
  padding: 32px 0;
}

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

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand-meta { display: flex; flex-direction: column; gap: 2px; }
.footer-brand-meta strong { font-size: 1rem; color: #FFFFFF; line-height: 1.2; }
.footer-brand small { display: block; color: var(--text-muted); font-size: 0.82rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: 0.89rem; color: var(--text-soft); }
.footer-links a { transition: color 0.16s ease; }
.footer-links a:hover { color: #FFFFFF; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .modules-banner-card { grid-template-columns: 1fr; }
  .rpg-promo-banner { grid-template-columns: 1fr; }
  .rpg-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classes-interactive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-showcase-panel { grid-template-columns: 1fr; }
  .rift-compare-grid { grid-template-columns: 1fr; }
  .cmd-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hero {
    min-height: 520px;
    padding: 52px 0 46px;
    background-image:
      radial-gradient(520px 260px at 50% 20%, var(--sakura-glow), transparent 65%),
      linear-gradient(180deg, rgba(24, 27, 40, 0.68) 0%, rgba(24, 27, 40, 0.85) 58%, var(--bg) 100%),
      url("assets/hero-banner.webp");
    background-position: center, center, 72% center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(24, 27, 40, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 22px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: inline-grid; place-items: center; }
  .grid-2, .grid-3, .rpg-steps-grid { grid-template-columns: 1fr; }
  .discord-fields { grid-template-columns: 1fr; }
  .class-evo-cards { grid-template-columns: 1fr; }
  .cmd-category-banner { flex-direction: column; align-items: flex-start; }
  .hero-stats-bar { gap: 16px; padding: 12px 18px; border-radius: 22px; }
  .hero-stat-value { font-size: 1.08rem; }
  .hero-stat-label { font-size: 0.66rem; }
}
