/* ============================================================================
   AERYNDOR: LEGACY OF THE MONOLITHS – PREMIUM iOS LIQUID GLASS HOMEPAGE (homepage.css)
   ----------------------------------------------------------------------------
   Designrichtung: Moderne Apple iOS/macOS Glas-Architektur trifft düstere,
   epische Fantasy-Welt von AERYNDOR.
   ============================================================================ */

:root,
html[data-theme="dark"] {
  --bg-deep: #05070c;
  --bg-surface: #0b0e17;
  --bg-elevated: #111726;

  --glass-bg: rgba(14, 18, 29, 0.72);
  --glass-bg-strong: rgba(10, 13, 22, 0.88);
  --glass-bg-card: rgba(18, 24, 38, 0.64);
  --glass-border: rgba(216, 178, 92, 0.24);
  --glass-border-subtle: rgba(255, 255, 255, 0.08);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);

  --gold-light: #f5df9e;
  --gold-main: #d8b25c;
  --gold-dark: #9e7626;
  --gold-glow: rgba(216, 178, 92, 0.32);

  --ice-light: #bae6fd;
  --ice-main: #5cc8ff;
  --ice-glow: rgba(92, 200, 255, 0.28);

  --emerald-main: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);

  --crimson-main: #e11d48;
  --crimson-glow: rgba(225, 29, 72, 0.32);

  --text-primary: #f8f5ee;
  --text-secondary: #b5bece;
  --text-muted: #7a8599;

  --shadow-glass: 0 24px 60px rgba(0, 0, 0, 0.62), 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 12px 34px rgba(216, 178, 92, 0.24);
  --spring-ease: cubic-bezier(0.22, 1.15, 0.36, 1);
  --smooth-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  --bg-deep: #eef2f7;
  --bg-surface: #f8fafc;
  --bg-elevated: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-strong: rgba(255, 255, 255, 0.92);
  --glass-bg-card: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(180, 134, 42, 0.32);
  --glass-border-subtle: rgba(15, 23, 42, 0.09);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  --gold-light: #9a6b16;
  --gold-main: #b78428;
  --gold-dark: #7c5410;
  --gold-glow: rgba(183, 132, 40, 0.22);

  --ice-light: #0369a1;
  --ice-main: #0284c7;
  --ice-glow: rgba(2, 132, 199, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --shadow-glass: 0 20px 50px rgba(15, 23, 42, 0.10), 0 4px 14px rgba(15, 23, 42, 0.05);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* ============================================================================
   HINTERGRUND-ATMOSPHÄRE & PARTIKEL-CANVAS (Fixed im Hintergrund!)
   ============================================================================ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 178, 92, 0.09), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(92, 200, 255, 0.08), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 55%, var(--bg-deep) 100%);
}

#ember-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

/* ============================================================================
   2. & 3. TOP SHELL: INTERAKTIVE DYNAMIC ISLAND + SCHWEBENDE NAVIGATION
   ============================================================================ */
.top-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 0;
  pointer-events: none;
  gap: 8px;
}

.di-dock {
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.dynamic-island {
  pointer-events: auto;
  position: relative;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.96) 0%, rgba(5, 7, 13, 0.96) 100%);
  backdrop-filter: blur(32px) saturate(195%);
  -webkit-backdrop-filter: blur(32px) saturate(195%);
  border: 1px solid rgba(216, 178, 92, 0.42);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.76),
    0 0 20px rgba(216, 178, 92, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #f8f5ee;
  border-radius: 999px;
  width: max-content;
  min-width: 296px;
  max-width: calc(100vw - 28px);
  min-height: 38px;
  padding: 6px 14px;
  transition:
    width 0.46s var(--spring-ease),
    min-height 0.46s var(--spring-ease),
    border-radius 0.4s var(--smooth-ease),
    padding 0.38s var(--smooth-ease),
    border-color 0.25s ease,
    transform 0.25s var(--spring-ease),
    box-shadow 0.3s ease;
  overflow: hidden;
  outline: none;
  user-select: none;
}

.dynamic-island:hover {
  border-color: rgba(245, 223, 158, 0.65);
  transform: translateY(1px) scale(1.012);
}

.dynamic-island:focus-visible {
  border-color: var(--ice-main);
  box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.35), 0 16px 40px rgba(0, 0, 0, 0.75);
}

.dynamic-island[data-state="expanded"] {
  width: 520px;
  min-height: 170px;
  border-radius: 26px;
  padding: 16px 20px;
  border-color: rgba(245, 223, 158, 0.72);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(216, 178, 92, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Kompakte Kapsel-Zeile */
.di-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 26px;
  cursor: pointer;
}

.di-leading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.di-orb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald-main);
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.18),
    0 0 10px var(--emerald-main);
  display: inline-block;
  animation: diPulse 2.2s infinite ease-in-out;
}
.di-orb[data-tone="gold"] {
  background: var(--gold-main);
  box-shadow: 0 0 10px var(--gold-main);
}
.di-orb[data-tone="ice"] {
  background: var(--ice-main);
  box-shadow: 0 0 10px var(--ice-main);
}
.di-orb[data-tone="crimson"] {
  background: var(--crimson-main);
  box-shadow: 0 0 10px var(--crimson-main);
}

@keyframes diPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.75; }
}

.di-mini-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.di-avatar {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #090b10;
  font-weight: 800;
  font-size: 0.75rem;
  align-items: center;
  justify-content: center;
}
.di-avatar.visible {
  display: inline-flex;
}

.di-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  font-size: 0.8rem;
  white-space: nowrap;
}

.di-title {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  flex-shrink: 0;
}

.di-sep {
  color: rgba(216, 178, 92, 0.55);
  flex-shrink: 0;
}

.di-sub {
  color: #dbe4f0;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.di-trailing {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.di-wave {
  display: none;
  align-items: center;
  gap: 2px;
  height: 12px;
}
.di-wave.active {
  display: inline-flex;
}
.di-wave span {
  width: 2.5px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: diWaveBar 0.9s infinite ease-in-out;
}
.di-wave span:nth-child(2) { animation-delay: 0.15s; height: 12px; }
.di-wave span:nth-child(3) { animation-delay: 0.3s; height: 6px; }
.di-wave span:nth-child(4) { animation-delay: 0.45s; height: 10px; }

@keyframes diWaveBar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.15); }
}

.di-badge-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(216, 178, 92, 0.24) 0%, rgba(216, 178, 92, 0.12) 100%);
  border: 1px solid rgba(216, 178, 92, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #f8e4a8;
}

/* Erweiterte Dynamic Island Ansicht */
.di-expanded {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dynamic-island[data-state="expanded"] .di-expanded {
  display: flex;
}

.di-exp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.di-exp-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.di-exp-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(216, 178, 92, 0.15);
  border: 1px solid rgba(216, 178, 92, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.di-exp-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5df9e;
}

.di-exp-main {
  font-family: 'Cinzel', serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
}

.di-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.di-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.di-exp-body {
  font-size: 0.83rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.di-exp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.di-metric-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.di-metric-chip .lbl {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.di-metric-chip .val {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
}
.di-metric-chip .val.emerald { color: #34d399; }
.di-metric-chip .val.gold { color: #f5df9e; }
.di-metric-chip .val.ice { color: #7dd3fc; }

/* Download-Fortschritt in der Dynamic Island */
.di-progress-wrap {
  display: none;
  flex-direction: column;
  gap: 6px;
}
.di-progress-wrap.visible {
  display: flex;
}
.di-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e2e8f0;
}
.di-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.di-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-main), var(--ice-main));
  transition: width 0.2s ease;
}

.di-exp-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.di-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.di-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.di-btn.primary {
  background: linear-gradient(135deg, #f5df9e 0%, #d8b25c 55%, #a97c28 100%);
  border-color: rgba(255, 240, 195, 0.7);
  color: #0b0e17;
}

/* ============================================================================
   3. MODERNISIERTE SCHWEBENDE NAVIGATION (.navbar)
   ============================================================================ */
.navbar {
  pointer-events: auto;
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass), var(--glass-highlight);
  transition: all 0.35s var(--smooth-ease);
}

body.is-scrolled .navbar {
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  max-width: 1180px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(216, 178, 92, 0.4));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.nav-brand-sub {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border-subtle);
  padding: 4px;
  border-radius: 999px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: #0b0e17;
  background: linear-gradient(135deg, #f5df9e 0%, #d8b25c 100%);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(216, 178, 92, 0.32);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  border-color: var(--gold-main);
  transform: translateY(-1px);
}

.nav-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ice-light);
  background: rgba(92, 200, 255, 0.1);
  border: 1px solid rgba(92, 200, 255, 0.32);
  transition: all 0.22s ease;
  white-space: nowrap;
}
.nav-btn-secondary:hover {
  background: rgba(92, 200, 255, 0.18);
  border-color: var(--ice-main);
  transform: translateY(-1px);
}

.nav-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  color: #090c14;
  background: linear-gradient(135deg, #f5df9e 0%, #d8b25c 55%, #a97c28 100%);
  border: 1px solid rgba(255, 244, 210, 0.75);
  box-shadow: 0 6px 20px rgba(216, 178, 92, 0.28);
  transition: all 0.22s var(--spring-ease);
  white-space: nowrap;
}
.nav-btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 26px rgba(216, 178, 92, 0.42);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer (Standardmäßig ausgeblendet!) */
.mobile-drawer {
  display: none;
  pointer-events: auto;
  width: 100%;
  max-width: 560px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-glass);
  flex-direction: column;
  gap: 14px;
}
.mobile-drawer.open {
  display: flex;
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.03);
}
.mobile-drawer-links a.active {
  background: rgba(216, 178, 92, 0.18);
  border: 1px solid rgba(216, 178, 92, 0.4);
  color: var(--gold-light);
}
.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================================
   4. STARTSEITEN-HERO (.hero)
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 148px 24px 80px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/assets/client_ui/login/login.png') center center / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 45%, rgba(7, 10, 18, 0.45) 0%, rgba(5, 7, 12, 0.86) 72%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.65) 0%, rgba(5, 7, 12, 0.35) 45%, var(--bg-deep) 100%);
}

html[data-theme="light"] .hero-vignette {
  background:
    radial-gradient(circle at 30% 45%, rgba(255, 255, 255, 0.58) 0%, rgba(238, 242, 247, 0.88) 75%),
    linear-gradient(180deg, rgba(238, 242, 247, 0.55) 0%, var(--bg-deep) 100%);
}

.hero-grid {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(12, 16, 26, 0.76);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(216, 178, 92, 0.4);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-main);
  box-shadow: 0 0 10px var(--emerald-main);
}

.hero-status-pill .divider {
  opacity: 0.35;
}

.hero-copy h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.25rem, 4.3vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
}

.hero-copy h1 .gold-gradient {
  display: block;
  margin-top: 6px;
  background: linear-gradient(135deg, #fff3c4 0%, #e5c170 48%, #b3842d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 630px;
  line-height: 1.72;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.28s var(--spring-ease);
}

.btn-hero-primary {
  background: linear-gradient(135deg, #f7e4aa 0%, #d8b25c 52%, #a67822 100%);
  color: #090c14;
  border: 1px solid rgba(255, 246, 214, 0.85);
  box-shadow: 0 16px 38px rgba(216, 178, 92, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 22px 46px rgba(216, 178, 92, 0.48);
}

.btn-hero-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  color: var(--text-primary);
  border: 1px solid rgba(92, 200, 255, 0.42);
  box-shadow: var(--shadow-glass);
}
.btn-hero-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--ice-main);
  background: rgba(92, 200, 255, 0.14);
}

.btn-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.btn-txt {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.btn-main {
  font-size: 0.98rem;
  font-weight: 800;
}

.btn-sub {
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.82;
}

.hero-supp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 0.86rem;
}

.supp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.supp-link:hover {
  color: var(--gold-light);
}
.supp-link.gold-highlight {
  color: var(--gold-light);
}
.supp-sep {
  opacity: 0.35;
}

/* Rechte Hero-Statuskarte */
.hero-status-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-glass), var(--glass-highlight);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hsc-emblem-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.hsc-logo {
  width: 140px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(216, 178, 92, 0.35));
}

.hsc-realm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hsc-realm-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hsc-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hsc-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 18px;
  padding: 15px 14px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.hsc-stat-box:hover {
  border-color: var(--glass-border);
  transform: translateY(-2px);
}
.hsc-stat-box .val {
  font-family: 'Cinzel', serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.15;
}
.hsc-stat-box .lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hsc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.hsc-ping strong {
  color: #34d399;
  margin-left: 4px;
}

/* ============================================================================
   ALLGEMEINE SEKTIONS-CONTAINER (.section-wrap)
   ============================================================================ */
.section-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-main);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================================
   5. iOS USERPANEL, FLOATING LABELS & ITEMSHOP
   ============================================================================ */
.auth-mobile-switcher {
  display: none;
  max-width: 440px;
  margin: 0 auto 24px;
  padding: 5px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  gap: 6px;
}
.auth-mobile-switcher button {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.22s ease;
}
.auth-mobile-switcher button.active {
  background: linear-gradient(135deg, #f5df9e 0%, #d8b25c 100%);
  color: #0b0e17;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.ios-form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 34px 32px;
  box-shadow: var(--shadow-glass), var(--glass-highlight);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.ios-form-card.register-card {
  border-color: rgba(92, 200, 255, 0.34);
}

.ios-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ios-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(216, 178, 92, 0.14);
  border: 1px solid rgba(216, 178, 92, 0.35);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
}

.bonus-coins-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(216, 178, 92, 0.2), rgba(92, 200, 255, 0.12));
  border: 1px solid rgba(245, 223, 158, 0.45);
}
.bonus-coins-banner .coin-ico {
  font-size: 1.55rem;
}
.bonus-coins-banner .bonus-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.bonus-coins-banner .bonus-txt strong {
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}
.bonus-coins-banner .bonus-txt span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ios-card-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ios-card-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* iOS Floating-Label Eingabefelder */
.ios-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ios-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ios-field-icon {
  position: absolute;
  left: 16px;
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 2;
}

.ios-input {
  width: 100%;
  height: 58px;
  padding: 22px 18px 6px 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 11, 19, 0.66);
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  outline: none;
  transition: all 0.22s ease;
}

html[data-theme="light"] .ios-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.16);
}

.ios-input.has-toggle {
  padding-right: 48px;
}

.ios-input:focus {
  border-color: var(--gold-main);
  box-shadow: 0 0 0 4px rgba(216, 178, 92, 0.18);
}

.ios-input.ice-focus:focus {
  border-color: var(--ice-main);
  box-shadow: 0 0 0 4px rgba(92, 200, 255, 0.18);
}

.ios-floating-label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s var(--smooth-ease);
}

.ios-input:focus ~ .ios-floating-label,
.ios-input:not(:placeholder-shown) ~ .ios-floating-label {
  top: 14px;
  transform: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-light);
}

.ios-input.ice-focus:focus ~ .ios-floating-label,
.ios-input.ice-focus:not(:placeholder-shown) ~ .ios-floating-label {
  color: var(--ice-light);
}

.ios-pw-toggle {
  position: absolute;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.ios-pw-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ios-field-error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fb7185;
  padding-left: 6px;
}

.ios-field.has-error .ios-input {
  border-color: var(--crimson-main);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18);
}
.ios-field.has-error .ios-field-error {
  display: flex;
}
.ios-field.is-valid .ios-input {
  border-color: var(--emerald-main);
}

.ios-submit-btn {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: none;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s var(--spring-ease);
  margin-top: 6px;
}
.ios-submit-btn:active {
  transform: scale(0.98);
}
.ios-submit-btn.gold {
  background: linear-gradient(135deg, #f7e4aa 0%, #d8b25c 52%, #a67822 100%);
  color: #090c14;
  box-shadow: 0 12px 30px rgba(216, 178, 92, 0.28);
}
.ios-submit-btn.ice {
  background: linear-gradient(135deg, #bae6fd 0%, #38bdf8 52%, #0284c7 100%);
  color: #06101e;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.28);
}
.ios-submit-btn:hover {
  transform: translateY(-2px);
}

.ios-submit-btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0, 0, 0, 0.25);
  border-top-color: #090c14;
  border-radius: 50%;
  animation: spinAnim 0.75s linear infinite;
}
.ios-submit-btn.is-loading .spinner {
  display: inline-block;
}
@keyframes spinAnim {
  to { transform: rotate(360deg); }
}

.form-banner {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.form-banner.ok {
  display: block;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.form-banner.err {
  display: block;
  background: rgba(225, 29, 72, 0.14);
  border-color: rgba(225, 29, 72, 0.4);
  color: #fda4af;
}

/* ============================================================================
   EINGELOGGTES USERPANEL DASHBOARD (.up-dashboard)
   ============================================================================ */
.up-dashboard {
  display: none;
  flex-direction: column;
  gap: 32px;
}
.up-dashboard.active {
  display: flex;
}

.up-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(26px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.up-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.up-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #090c14;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.up-user-name {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.up-user-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.up-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.coin-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 16px;
  background: rgba(216, 178, 92, 0.14);
  border: 1px solid rgba(216, 178, 92, 0.4);
}
.coin-pill .coin-icon {
  font-size: 1.4rem;
}
.coin-pill .coin-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}
.coin-pill .coin-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.btn-up-action {
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-up-action:hover {
  border-color: var(--gold-main);
  transform: translateY(-1px);
}
.btn-up-action.primary {
  background: linear-gradient(135deg, #f5df9e 0%, #d8b25c 100%);
  color: #090c14;
  border-color: transparent;
}

.up-chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 20px;
}

.up-char-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: 24px;
  background: var(--glass-bg-card);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.up-char-render {
  background: radial-gradient(circle at 50% 40%, rgba(216, 178, 92, 0.18), rgba(0, 0, 0, 0.35));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}
.up-char-render img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.up-char-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.up-char-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.up-char-name {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.up-char-lvl {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(216, 178, 92, 0.18);
  border: 1px solid rgba(216, 178, 92, 0.42);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
}

.up-char-class {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.up-char-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.up-stat-chip {
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  display: flex;
  flex-direction: column;
}
.up-stat-chip .k {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.up-stat-chip .v {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.up-char-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-char-mini {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-char-mini:hover {
  background: rgba(216, 178, 92, 0.16);
  border-color: var(--gold-main);
}

/* Shop Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.shop-banner-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  min-height: 320px;
}
.shop-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.2) 0%, rgba(5, 7, 12, 0.92) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.shop-banner-overlay h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #ffffff;
}
.shop-banner-overlay p {
  font-size: 0.86rem;
  color: #cbd5e1;
}

.shop-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 22px;
}
.shop-panel h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--gold-light);
}
.shop-panel .sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.topup-grid,
.redeem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.topup-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
}
.topup-card:hover {
  border-color: var(--gold-main);
  background: rgba(216, 178, 92, 0.12);
  transform: translateY(-2px);
}
.topup-card .t-coins {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
}
.topup-card .t-bonus {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin: 4px 0;
}
.topup-card .t-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ice-light);
}

.redeem-char-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.redeem-char-select label {
  font-size: 0.84rem;
  font-weight: 700;
}
.redeem-char-select select {
  flex: 1;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(8, 11, 19, 0.8);
  color: #ffffff;
  border: 1px solid var(--glass-border);
}

.redeem-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.redeem-card .r-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}
.redeem-card .r-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
}
.redeem-card .r-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.redeem-card .r-cost {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-light);
}
.btn-redeem {
  padding: 6px 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #f5df9e, #d8b25c);
  color: #090c14;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

/* ============================================================================
   6. KLASSEN & RÜSTUNGS-SHOWCASE (.classes-grid)
   ============================================================================ */
.class-showcase-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.toggle-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}
.toggle-pill.active {
  background: linear-gradient(135deg, #f5df9e 0%, #d8b25c 100%);
  color: #090c14;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(216, 178, 92, 0.28);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.class-card {
  background: var(--glass-bg);
  backdrop-filter: blur(26px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--spring-ease), border-color 0.3s ease;
}
.class-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-light);
}

.class-img-stage {
  height: 310px;
  background: radial-gradient(circle at 50% 35%, rgba(216, 178, 92, 0.22), rgba(5, 7, 12, 0.65));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px 14px 0;
}
.class-img-stage img {
  max-width: 100%;
  max-height: 292px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.65));
}

.class-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.class-role {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-main);
}

.class-name {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.class-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.class-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bar-lbl {
  width: 58px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.bar-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-main), var(--gold-light));
}

/* ============================================================================
   7. WELTKARTE & STÄDTE (.world-showcase)
   ============================================================================ */
.world-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.world-map-frame {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  background: var(--glass-bg);
  padding: 10px;
}
.world-map-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.world-zones {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zone-card {
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-glass);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.zone-card:hover {
  transform: translateX(4px);
  border-color: var(--gold-light);
}

.zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.zone-name {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.zone-lvl {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(216, 178, 92, 0.16);
  border: 1px solid rgba(216, 178, 92, 0.38);
  color: var(--gold-light);
}

.zone-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================================
   8. LIVE-RANGLISTE (.lb-card)
   ============================================================================ */
.lb-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-glass);
}

.lb-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-refresh:hover {
  border-color: var(--gold-main);
  background: rgba(216, 178, 92, 0.14);
}

.lb-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.lb-table th {
  padding: 13px 16px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  border-bottom: 1px solid var(--glass-border);
}

.lb-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--glass-border-subtle);
  color: var(--text-primary);
}

.lb-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.07);
}
.rank-badge.r1 {
  background: linear-gradient(135deg, #fde047, #ca8a04);
  color: #090c14;
}
.rank-badge.r2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #090c14;
}
.rank-badge.r3 {
  background: linear-gradient(135deg, #fdba74, #b45309);
  color: #090c14;
}

.char-cell {
  font-weight: 800;
}

.class-pill,
.lvl-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border-subtle);
}
.lvl-pill {
  color: var(--gold-light);
  border-color: rgba(216, 178, 92, 0.35);
}
.gold-cell {
  font-weight: 700;
  color: var(--gold-light);
}

/* ============================================================================
   9. PC-CLIENT DOWNLOAD BANNER (.dl-banner) & FOOTER
   ============================================================================ */
.dl-banner {
  background: var(--glass-bg);
  backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 38px;
  box-shadow: var(--shadow-glass);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.sys-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sys-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  font-size: 0.84rem;
}
.sys-item .k {
  color: var(--text-secondary);
  font-weight: 600;
}
.sys-item .v {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}

footer {
  border-top: 1px solid var(--glass-border-subtle);
  background: rgba(5, 7, 12, 0.8);
  padding: 36px 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--gold-light);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS (TABLET & SMARTPHONE)
   ============================================================================ */
@media (max-width: 1100px) {
  .hero-grid,
  .world-showcase,
  .dl-banner,
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .auth-mobile-switcher {
    display: flex;
  }
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .auth-grid[data-active-tab="login"] #auth-card-register {
    display: none;
  }
  .auth-grid[data-active-tab="register"] #auth-card-login {
    display: none;
  }
  .up-chars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .classes-grid,
  .topup-grid,
  .redeem-grid,
  .di-exp-metrics {
    grid-template-columns: 1fr;
  }
  .up-char-card {
    grid-template-columns: 1fr;
  }
  .nav-btn-secondary {
    display: none;
  }
  .hero {
    padding-top: 136px;
  }
  .ios-form-card {
    padding: 24px 20px;
  }
}


/* ============================================================================
   10. DUAL-LOGO BRANDING, SCROLL-ANIMATIONEN, LIGHTBOX & SUBPAGES (/lore, /systeme)
   ============================================================================ */

/* Dual-Logo in Navbar & Hero */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand-crest {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 11px;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.35));
  transition: transform 0.35s var(--spring-ease);
}
.nav-brand:hover .nav-brand-crest {
  transform: scale(1.08) rotate(-3deg);
}
.nav-brand-wordmark {
  height: 36px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.65));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.nav-brand:hover .nav-brand-wordmark {
  filter: drop-shadow(0 4px 14px rgba(216, 178, 92, 0.45));
}

.hero-wordmark-wrap {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.hero-wordmark-logo {
  width: 100%;
  max-width: 430px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 22px rgba(56, 189, 248, 0.22));
  animation: floatHeroWordmark 6s ease-in-out infinite;
}

@keyframes floatHeroWordmark {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.hsc-logo {
  animation: pulseCrestFloat 5.5s ease-in-out infinite;
}
@keyframes pulseCrestFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(56, 189, 248, 0.28));
  }
  50% {
    transform: translateY(-6px) scale(1.03);
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 26px rgba(216, 178, 92, 0.42));
  }
}

.footer-brand-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand-logos .crest {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.footer-brand-logos .wordmark {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* Scroll-Reveal Animation & Spotlight Hover */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(216, 178, 92, 0.11),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.spotlight-card:hover::after {
  opacity: 1;
}

/* Portal Teaser Cards auf der Homepage (Verlinkung zu /lore und /systeme) */
.portal-teasers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.portal-teaser-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(26px);
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 390px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.38s var(--spring-ease), border-color 0.35s ease, box-shadow 0.35s ease;
}
.portal-teaser-card:hover {
  transform: translateY(-7px);
  border-color: var(--gold-light);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.72), 0 0 36px rgba(216, 178, 92, 0.22);
}
.portal-teaser-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  filter: brightness(0.78) saturate(1.1);
}
.portal-teaser-card:hover .portal-teaser-bg {
  transform: scale(1.06);
  filter: brightness(0.9) saturate(1.2);
}
.portal-teaser-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.08) 0%, rgba(5, 7, 12, 0.78) 45%, rgba(5, 7, 12, 0.96) 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.portal-teaser-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(216, 178, 92, 0.2);
  border: 1px solid rgba(216, 178, 92, 0.45);
  color: var(--gold-light);
}
.portal-badge.ice {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--ice-light);
}
.portal-teaser-overlay h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.portal-teaser-overlay p {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.62;
}
.portal-cta-inline {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold-light);
}
.portal-teaser-card:hover .portal-cta-inline {
  color: #ffffff;
}

/* Ranglisten-Filter & Suche */
.lb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border-subtle);
}
.lb-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lb-pill:hover {
  color: var(--text-primary);
  border-color: var(--glass-border);
}
.lb-pill.active {
  background: linear-gradient(135deg, #f5df9e 0%, #d8b25c 100%);
  color: #090c14;
  border-color: transparent;
}
.lb-search-wrap {
  position: relative;
  min-width: 230px;
}
.lb-search-input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(5, 7, 12, 0.55);
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.lb-search-input:focus {
  border-color: var(--gold-main);
}
.lb-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  pointer-events: none;
}

/* Lightbox Modal für Bilder & Weltkarte */
.zoomable-media {
  cursor: zoom-in;
  position: relative;
}
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 6, 11, 0.9);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lightbox-modal.open {
  display: flex;
  animation: fadeInLightbox 0.22s ease;
}
@keyframes fadeInLightbox {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-box {
  position: relative;
  max-width: 1180px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-box img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(216, 178, 92, 0.45);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85);
}
.lightbox-caption {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold-light);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(10, 14, 24, 0.92);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   11. SUBPAGE HERO & LORE-CHRONIK STYLES (/lore)
   ============================================================================ */
.subpage-hero {
  position: relative;
  padding: 158px 24px 64px;
  text-align: center;
  overflow: hidden;
}
.subpage-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.subpage-logos-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.subpage-logos-bar .crest-lg {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(56, 189, 248, 0.35));
}
.subpage-logos-bar .wordmark-lg {
  height: 76px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.75));
}

.sticky-subnav {
  position: sticky;
  top: 126px;
  z-index: 90;
  max-width: 1220px;
  margin: 0 auto 36px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-subnav::-webkit-scrollbar {
  display: none;
}
.sticky-subnav a {
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.sticky-subnav a:hover,
.sticky-subnav a.active {
  background: rgba(216, 178, 92, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(216, 178, 92, 0.38);
}

/* Lore Triad & Chapter Cards */
.legacy-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}
.legacy-pillar-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legacy-pillar-card .pillar-icon {
  font-size: 1.8rem;
}
.legacy-pillar-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.18rem;
  color: var(--gold-light);
}
.legacy-pillar-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

.lore-story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.lore-chapter-card {
  background: var(--glass-bg);
  backdrop-filter: blur(26px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lore-chapter-card.full-span {
  grid-column: 1 / -1;
}
.lore-chapter-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(216, 178, 92, 0.16);
  border: 1px solid rgba(216, 178, 92, 0.38);
  color: var(--gold-light);
}
.lore-chapter-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--text-primary);
}
.lore-chapter-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* 5 Seltenheiten der Rissmonolithen */
.rarity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.rarity-card {
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  border-radius: 22px;
  padding: 22px 18px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.rarity-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.rarity-card.r-normal { border-top: 3px solid #f8fafc; }
.rarity-card.r-instabil { border-top: 3px solid #2dd4bf; box-shadow: 0 12px 32px rgba(45, 212, 191, 0.14); }
.rarity-card.r-verdorben { border-top: 3px solid #a855f7; }
.rarity-card.r-uralt { border-top: 3px solid #fb923c; }
.rarity-card.r-legendaer { border-top: 3px solid #facc15; box-shadow: 0 12px 32px rgba(250, 204, 21, 0.16); }

.rarity-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rarity-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.rarity-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

/* Ursprungsspalt Highlight Banner */
.ursprungsspalt-banner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 12, 32, 0.92), rgba(8, 11, 21, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 28px;
  padding: 32px;
  margin-top: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(168, 85, 247, 0.18);
}
.ursprungsspalt-banner img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(216, 178, 92, 0.4);
  object-fit: cover;
}

/* 8-Kapitel Story-Timeline (Level 1 bis 90) */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.timeline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}
.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.timeline-chap {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold-main);
}
.timeline-lvl {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: var(--ice-light);
}
.timeline-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.22rem;
  color: var(--text-primary);
}
.timeline-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* ============================================================================
   12. SPIELSYSTEME & ERWEITERBARE GALERIE (/systeme)
   ============================================================================ */
.sys-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.sys-feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(26px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--spring-ease), border-color 0.3s ease;
}
.sys-feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-light);
}
.sys-feature-media {
  position: relative;
  height: 245px;
  background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.16), rgba(5, 7, 12, 0.85));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sys-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.sys-feature-media img.contain-img {
  object-fit: contain;
  padding: 16px;
}
.sys-feature-card:hover .sys-feature-media img {
  transform: scale(1.05);
}
.sys-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(8, 11, 19, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 178, 92, 0.45);
  color: var(--gold-light);
}
.sys-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(8, 11, 19, 0.78);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.sys-feature-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.sys-feature-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.38rem;
  color: var(--text-primary);
}
.sys-feature-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.sys-bullet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.sys-bullet-tag {
  padding: 5px 11px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-primary);
}

/* Erweiterbares Screenshot- & Medien-Archiv Grid */
.ext-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ext-gallery-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.ext-gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-light);
}
.ext-gallery-thumb {
  height: 200px;
  background: rgba(5, 7, 12, 0.75);
  overflow: hidden;
  position: relative;
}
.ext-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.ext-gallery-card:hover .ext-gallery-thumb img {
  transform: scale(1.06);
}
.ext-gallery-meta {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ext-gallery-meta .g-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-main);
}
.ext-gallery-meta h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.02rem;
  color: var(--text-primary);
}
.ext-gallery-meta p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 1100px) {
  .portal-teasers-grid,
  .lore-story-grid,
  .ursprungsspalt-banner,
  .timeline-grid,
  .sys-showcase-grid {
    grid-template-columns: 1fr;
  }
  .rarity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .legacy-triad-grid,
  .ext-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rarity-grid,
  .legacy-triad-grid,
  .ext-gallery-grid {
    grid-template-columns: 1fr;
  }
  .nav-brand-wordmark {
    max-width: 125px;
    height: 28px;
  }
  .sticky-subnav {
    top: 112px;
  }
}


/* ============================================================================
   13. UNIFIED HERO SERVER-INFOS & USERPANEL HUB (OBEN IM HERO INTEGRIERT)
   ============================================================================ */
.hero-server-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border-subtle);
}
.hero-spec-chip {
  background: rgba(8, 12, 22, 0.58);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-spec-chip .k {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-main);
}
.hero-spec-chip .v {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-hub-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-glass), var(--shadow-gold);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border-subtle);
}
.hero-hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-hub-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(56, 189, 248, 0.35));
}
.hero-hub-brand-txt .t1 {
  font-family: 'Cinzel', serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}
.hero-hub-brand-txt .t2 {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.hero-mini-stat {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 14px;
  padding: 9px 6px;
  text-align: center;
}
.hero-mini-stat .val {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.15;
}
.hero-mini-stat .lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Tab-Switcher für Login / Registrierung direkt im Hero-Hub */
.hero-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(5, 7, 12, 0.65);
  border: 1px solid var(--glass-border-subtle);
}
.hero-auth-tab-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
}
.hero-auth-tab-btn.active {
  background: linear-gradient(135deg, #f5df9e 0%, #d8b25c 100%);
  color: #090c14;
  box-shadow: 0 6px 18px rgba(216, 178, 92, 0.28);
}

.hero-auth-stage[data-active-tab="login"] #auth-card-register {
  display: none;
}
.hero-auth-stage[data-active-tab="register"] #auth-card-login {
  display: none;
}

.hero-auth-stage .ios-form-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 11, 19, 0.55);
  box-shadow: none;
}
.hero-auth-stage .ios-card-header {
  margin-bottom: 14px;
}
.hero-auth-stage .ios-card-header h3 {
  font-size: 1.2rem;
}
.hero-auth-stage .ios-card-header p {
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .hero-mini-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-server-specs {
    grid-template-columns: 1fr;
  }
}

/* Clean alignment for Hero Left Specs & Right Hub Card */
.hero-server-specs {
  width: 100%;
  max-width: 630px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding-top: 18px;
}
.hero-spec-chip {
  background: rgba(10, 14, 24, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(216, 178, 92, 0.24);
  border-radius: 16px;
  padding: 13px 14px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.hero-spec-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 178, 92, 0.55);
}
.hero-auth-tab-btn {
  white-space: nowrap;
}


/* ============================================================================
   14. NEXT-GEN POLISH: CUSTOM SCROLLBAR, PAGE TRANSITION, STAGGERED REVEAL & REALM PULSE
   ============================================================================ */

/* Edle Gold-Obsidian Scrollbar & Text-Selektion */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #05070c;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(216, 178, 92, 0.45), rgba(56, 189, 248, 0.35));
  border-radius: 999px;
  border: 2px solid #05070c;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(216, 178, 92, 0.75), rgba(56, 189, 248, 0.6));
}

::selection {
  background: rgba(216, 178, 92, 0.32);
  color: #fff8dc;
}

/* Sanfter Seiten-Einstieg beim Wechsel zwischen Start, Lore, Systeme, Rangliste & Download */
body {
  animation: pageEnterFade 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pageEnterFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gestaffelte Einblend-Verzögerungen für Grid-Elemente */
.hero-server-specs .hero-spec-chip:nth-child(1) { transition-delay: 0.04s; }
.hero-server-specs .hero-spec-chip:nth-child(2) { transition-delay: 0.08s; }
.hero-server-specs .hero-spec-chip:nth-child(3) { transition-delay: 0.12s; }
.hero-server-specs .hero-spec-chip:nth-child(4) { transition-delay: 0.16s; }
.hero-server-specs .hero-spec-chip:nth-child(5) { transition-delay: 0.20s; }
.hero-server-specs .hero-spec-chip:nth-child(6) { transition-delay: 0.24s; }

/* 3-Spalten Portal Bento Grid auf der Startseite */
.portal-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portal-bento-grid .portal-teaser-card {
  min-height: 360px;
}
.portal-bento-grid .portal-teaser-overlay {
  padding: 26px;
}
.portal-bento-grid .portal-teaser-overlay h3 {
  font-size: 1.42rem;
}
.portal-bento-grid .portal-teaser-overlay p {
  font-size: 0.88rem;
}

/* Live Realm-Puls: Städte-Gleichgewicht (Kaeryu vs. Seiryu) & Instabile Monolithen-Radar */
.realm-pulse-bar {
  margin-top: 26px;
  background: var(--glass-bg);
  backdrop-filter: blur(26px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 24px 28px;
  box-shadow: var(--shadow-glass);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.faction-balance-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faction-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 800;
}
.faction-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.faction-side img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.faction-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.faction-fill-kaeryu {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.faction-fill-seiryu {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.monolith-radar-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--glass-border-subtle);
}
.monolith-radar-title {
  font-family: 'Cinzel', serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.monolith-radar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mono-Node-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.38);
  color: #5eead4;
}
.mono-Node-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
  animation: monoPulse 2s infinite;
}
@keyframes monoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

@media (max-width: 1100px) {
  .portal-bento-grid,
  .realm-pulse-bar {
    grid-template-columns: 1fr;
  }
  .monolith-radar-box {
    padding-left: 0;
    border-left: none;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border-subtle);
  }
}

/* Ultra-Clean Footer (nur Wordmark-Logo 2 + Copyright) */
footer {
  border-top: 1px solid var(--glass-border-subtle);
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(18px);
  padding: 26px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.footer-brand .wordmark {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7));
}
