@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Bodoni+Moda:ital,wght@0,500;0,600;0,700;0,800;1,500;1,700&family=JetBrains+Mono:wght@400;500&display=swap');

/* =========================================
   THEME TOKENS
   ========================================= */

:root,
[data-theme="dark"] {
  --bg: #0B0B0E;
  --bg-deep: #07070A;
  --surface: rgba(21, 21, 27, 0.72);
  --surface-solid: #15151B;
  --surface-2: #1C1C24;
  --surface-3: #24242E;
  --surface-glass: rgba(21, 21, 27, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F5F5F7;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  --accent: #E8B547;
  --accent-hover: #F1C55F;
  --accent-ink: #14110A;
  --accent-glow: rgba(232, 181, 71, 0.18);
  --accent-soft: rgba(232, 181, 71, 0.10);
  --success: #34D399;
  --danger: #F87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(11, 11, 14, 0.65);
  --grid-line: rgba(255, 255, 255, 0.04);
  --grain-opacity: 0.04;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F7F6F2;
  --bg-deep: #EFEDE6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #FFFFFF;
  --surface-2: #F1EFE9;
  --surface-3: #E8E5DC;
  --surface-glass: rgba(255, 255, 255, 0.65);
  --border: rgba(15, 15, 20, 0.08);
  --border-strong: rgba(15, 15, 20, 0.16);
  --text: #0E0E14;
  --text-muted: #55544F;
  --text-dim: #8A877F;
  --accent: #9A7315;
  --accent-hover: #B88A20;
  --accent-ink: #FFFDF5;
  --accent-glow: rgba(154, 115, 21, 0.16);
  --accent-soft: rgba(154, 115, 21, 0.08);
  --success: #0B7A3D;
  --danger: #B42318;
  --shadow-sm: 0 1px 2px rgba(20, 18, 10, 0.06);
  --shadow: 0 20px 60px rgba(50, 42, 18, 0.10);
  --shadow-lg: 0 40px 120px rgba(50, 42, 18, 0.16);
  --nav-bg: rgba(247, 246, 242, 0.72);
  --grid-line: rgba(20, 16, 8, 0.04);
  --grain-opacity: 0.03;
  color-scheme: light;
}

:root {
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxury: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}

/* Grain overlay for premium feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.serif { font-family: 'Bodoni Moda', 'Times New Roman', serif; font-weight: 600; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =========================================
   3D BACKGROUND CANVAS
   ========================================= */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity .4s var(--ease);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1400px 700px at 85% -10%, var(--accent-glow), transparent 55%),
    radial-gradient(1200px 600px at 5% 105%, var(--accent-soft), transparent 55%);
  transition: background .4s var(--ease);
}

/* content sits above background */
body > * { position: relative; z-index: 3; }

/* =========================================
   LAYOUT
   ========================================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 40%, var(--accent-glow), transparent 65%),
    var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.nav-brand-mark img { width: 22px; height: 22px; object-fit: contain; }
.nav-brand span em { color: var(--accent); font-style: normal; font-weight: 700; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), transform .4s var(--ease-luxury);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-glow); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  transition: transform .15s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 14px 36px -6px var(--accent-glow); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 15px 26px; font-size: 15px; min-height: 52px; border-radius: 14px; }

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: 96px 0 72px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-family: 'Bodoni Moda', 'Times New Roman', serif;
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ip {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  padding: 11px 16px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.hero-ip button { color: var(--accent); font-weight: 600; font-size: 12px; }
.hero-ip code { color: var(--text); font-weight: 600; letter-spacing: 0; }

/* 3D hero showcase */
.hero-showcase {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin-left: auto;
  width: 100%;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 40%, rgba(68, 255, 200, 0.08), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(102, 34, 204, 0.12), transparent 50%),
    linear-gradient(155deg, #0e0b1a, #07070A);
  border: 1px solid rgba(68, 255, 200, 0.12);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(68, 200, 180, 0.06), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  transition: border-color 0.3s;
}
#hero-canvas.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
[data-theme="light"] #hero-canvas {
  background:
    radial-gradient(circle at 50% 40%, rgba(68, 200, 180, 0.10), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(120, 60, 220, 0.08), transparent 50%),
    linear-gradient(155deg, #e8e5f2, #d8d4ea);
  border-color: rgba(68, 180, 160, 0.18);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(68, 180, 160, 0.08), inset 0 1px 0 rgba(255,255,255,0.5);
}
.hero-showcase-tag {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent-glow);
  background: var(--accent-soft);
  border-radius: 8px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero-showcase-badge {
  position: absolute;
  bottom: 22px; left: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  font-size: 12px;
  color: var(--text-muted);
}
.hero-showcase-badge strong { color: var(--text); font-weight: 600; }
.hero-showcase-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 96px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px;
}
.section-head h2 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.section-head h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
.section-head p {
  color: var(--text-muted);
  max-width: 440px;
  margin-top: 12px;
  font-size: 15px;
}

/* =========================================
   CARDS (Glass)
   ========================================= */
.card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
  border: 1px solid var(--accent-glow);
}
.feature h3 { font-size: 19px; margin-bottom: 10px; font-family: 'Space Grotesk', sans-serif; }
.feature p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 64px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.stat {
  padding: 32px;
  border-right: 1px solid var(--border);
  transition: background-color .2s var(--ease);
}
.stat:hover { background: var(--surface-2); }
.stat:last-child { border-right: none; }
.stat-value {
  font-family: 'Bodoni Moda', serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  font-feature-settings: "tnum";
}
.stat-value em { color: var(--accent); font-style: italic; }
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* =========================================
   NEWS
   ========================================= */
.news-list { display: grid; gap: 14px; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 30px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
}
.news-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateX(4px);
}
.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.news-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.news-excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.news-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================
   STATUS PAGE
   ========================================= */
.status-hero { padding: 72px 0 32px; }
.status-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.status-card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.status-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.status-main-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.status-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  background: var(--surface-2);
  overflow: hidden;
}
.status-icon img { width: 56px; height: 56px; image-rendering: pixelated; }
.status-main-title h3 {
  font-family: 'Bodoni Moda', serif;
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.01em;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.pill.online { background: rgba(52, 211, 153, 0.14); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.3); }
.pill.offline { background: rgba(248, 113, 113, 0.14); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.3); }
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.status-main-title p {
  color: var(--text-muted);
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 8px;
}

.status-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 22px;
}
.status-stat {
  background: var(--surface-2);
  padding: 20px 22px;
}
.status-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 500;
}
.status-stat-value {
  font-family: 'Bodoni Moda', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.players-card h4 { font-size: 16px; margin-bottom: 18px; font-family: 'Space Grotesk', sans-serif; }
.players-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 380px;
  overflow-y: auto;
}
.player-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background-color .15s var(--ease);
}
.player-row:hover { background: var(--surface-2); }
.player-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-3);
  image-rendering: pixelated;
}
.player-name { font-size: 14px; font-weight: 500; }
.player-empty { color: var(--text-dim); font-size: 14px; padding: 24px 0; text-align: center; }

.server-list-card { margin-top: 24px; }
.server-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 18px; align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  transition: background-color .15s var(--ease);
}
.server-row:hover { background: var(--surface-2); }
.server-row + .server-row { margin-top: 4px; }
.server-row-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--accent);
  border: 1px solid var(--border);
}
.server-row h5 { font-size: 16px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }
.server-row p { font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

/* =========================================
   ACCOUNT
   ========================================= */
.account-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 72px 0;
}
.account-sidebar {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-sm);
}
.account-profile {
  text-align: center;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.account-avatar {
  width: 88px; height: 88px;
  margin: 0 auto 16px;
  border-radius: 20px;
  image-rendering: pixelated;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: 'Bodoni Moda', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
}
.account-profile h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; }
.account-profile p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav button {
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 12px;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.account-nav button:hover { background: var(--surface-2); color: var(--text); }
.account-nav button.active { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-glow); }

.account-main > .card + .card { margin-top: 20px; }
.account-section h3 { font-family: 'Bodoni Moda', serif; font-size: 24px; font-weight: 600; margin-bottom: 22px; letter-spacing: -0.01em; }
.field-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.field-row:last-child { border-bottom: none; }
.field-label { font-size: 14px; color: var(--text-muted); }
.field-value { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.field-value input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 15px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field-value input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.playtime-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.playtime-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
}
.playtime-value {
  font-family: 'Bodoni Moda', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.playtime-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* Login form */
.login-wrap {
  max-width: 460px;
  margin: 96px auto;
  padding: 44px;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.login-wrap h2 { font-family: 'Bodoni Moda', serif; font-size: 32px; margin-bottom: 10px; font-weight: 600; letter-spacing: -0.02em; }
.login-wrap > p { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.login-wrap label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; margin-top: 16px; }
.login-wrap input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.login-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.login-wrap .btn { width: 100%; margin-top: 28px; }
.login-hint { color: var(--text-dim); font-size: 12px; margin-top: 18px; text-align: center; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  margin-top: 96px;
  backdrop-filter: blur(20px);
  background: var(--surface);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  margin-bottom: 36px;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h5 { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text); padding: 5px 0; opacity: 0.7; transition: opacity .15s var(--ease), color .15s var(--ease); }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-about p { color: var(--text-muted); font-size: 14px; max-width: 300px; margin-top: 14px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; color: var(--text-dim); font-size: 13px; }

/* =========================================
   DOWNLOAD SECTION
   ========================================= */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.download-card { display: flex; align-items: center; gap: 20px; padding: 28px 28px; text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); cursor: pointer; }
.download-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.download-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.download-card p { color: var(--text-muted); font-size: 13px; }
.download-icon { width: 52px; height: 52px; min-width: 52px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: 14px; color: var(--accent); }
.download-btn { margin-left: auto; white-space: nowrap; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-showcase { margin: 0 auto; max-width: 420px; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: none; }
  .status-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .news-item { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  .nav-inner { gap: 8px; }
  .nav-links a { padding: 8px 10px; font-size: 13px; }
  .nav-links a.hide-sm { display: none; }
  .hero { padding: 40px 0 24px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .stat-value { font-size: 32px; }
  .playtime-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .login-wrap { margin: 40px 16px; padding: 28px 24px; }
  .status-card { padding: 24px; }
  .hero-showcase-tag { top: 14px; right: 14px; }
  .hero-showcase-badge { bottom: 14px; left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  #bg-canvas { display: none; }
  #hero-canvas { background-image: radial-gradient(circle at 50% 45%, var(--accent-glow), transparent 60%); }
}
