@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

:root {
  --ice-white:    #e8f4ff;
  --ice-blue:     #a8d8f0;
  --frost:        #6db8e8;
  --deep-frost:   #2a7ab8;
  --void:         #050a14;
  --dark-navy:    #080e1e;
  --navy:         #0d1830;
  --panel:        rgba(8, 18, 40, 0.85);
  --panel-border: rgba(100, 180, 240, 0.18);
  --gold:         #c8a84b;
  --gold-light:   #f0d070;
  --rune:         #4af0c8;
  --rune-glow:    rgba(74, 240, 200, 0.4);
  --danger:       #e05050;
  --success:      #50d090;

  --font-title: 'Cinzel Decorative', serif;
  --font-sub:   'Cinzel', serif;
  --font-body:  'Crimson Pro', serif;

  --radius: 6px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--void);
  color: var(--ice-white);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%,   rgba(42, 122, 184, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(10, 40, 80, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(5, 10, 20, 0) 0%, var(--void) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(168, 216, 240, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 40%, rgba(168, 216, 240, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 70%, rgba(168, 216, 240, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 85%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 10%, rgba(168, 216, 240, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 90%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: snowdrift 20s linear infinite;
}
@keyframes snowdrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

.site-wrapper { position: relative; z-index: 1; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.5rem;
  height: 68px;
  background: rgba(5, 10, 20, 0.92);
  border-bottom: 1px solid rgba(100, 180, 240, 0.15);
  backdrop-filter: blur(12px);
}

.navbar-nav-centered {
  grid-column: 2;
  display: flex;
  justify-content: center;
}

.navbar-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: flex-end;
}

.navbar-home-link {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice-white);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(100, 180, 240, 0.25);
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-shadow: 0 0 12px rgba(100, 200, 240, 0.4);
}
.navbar-home-link:hover {
  color: var(--frost);
  border-color: rgba(100, 180, 240, 0.55);
  box-shadow: 0 0 14px rgba(100, 180, 240, 0.15);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.navbar-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--deep-frost), var(--rune));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(74,240,200,0.4); }
  50%       { box-shadow: 0 0 20px rgba(74,240,200,0.8); }
}

.navbar-logo .logo-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ice-white);
  letter-spacing: 0.06em;
  text-shadow: 0 0 16px rgba(100, 200, 240, 0.5);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.navbar-nav a {
  display: block;
  padding: 0.4rem 1rem;
  font-family: var(--font-sub);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice-blue);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--ice-white);
  background: rgba(100, 180, 240, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--deep-frost) 0%, #1a5a9a 100%);
  color: var(--ice-white);
  box-shadow: 0 0 16px rgba(42, 122, 184, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(42, 122, 184, 0.6);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--frost);
  border: 1px solid rgba(100, 180, 240, 0.3);
}
.btn-ghost:hover {
  border-color: var(--frost);
  color: var(--ice-white);
}

.btn-gold {
  background: linear-gradient(135deg, #8a6a20 0%, var(--gold) 50%, #8a6a20 100%);
  color: #1a0e00;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(200, 168, 75, 0.35);
}
.btn-gold:hover {
  box-shadow: 0 0 28px rgba(200, 168, 75, 0.65);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.9rem 2.5rem;
  font-size: 0.92rem;
}

.btn-full { width: 100%; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video-bg.loaded {
  opacity: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(5, 10, 20, 0.55) 0%,
      rgba(5, 10, 20, 0.15) 35%,
      rgba(5, 10, 20, 0.15) 60%,
      rgba(5, 10, 20, 0.75) 85%,
      var(--void) 100%
    ),
    radial-gradient(ellipse at 50% 40%, rgba(42, 100, 160, 0.3) 0%, transparent 65%);
  pointer-events: auto;
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  z-index: -1; 
  background:
    radial-gradient(ellipse at 50% 40%, rgba(42, 122, 184, 0.25) 0%, transparent 65%),
    linear-gradient(180deg, var(--dark-navy) 0%, var(--void) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--frost));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  animation: heroReveal 1.2s ease both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rune);
  margin-bottom: 1.2rem;
  animation: heroReveal 1.2s 0.1s ease both;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ice-white);
  text-shadow:
    0 0 30px rgba(100, 180, 240, 0.4),
    0 0 80px rgba(42, 122, 184, 0.2),
    0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 0.4rem;
  animation: heroReveal 1.2s 0.2s ease both;
}

.hero-title span {
  display: block;
  color: var(--frost);
  font-size: 0.6em;
  letter-spacing: normal;
  word-spacing: 0.1em;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem auto;
  animation: heroReveal 1.2s 0.3s ease both;
}
.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--frost));
}
.hero-divider::after {
  background: linear-gradient(to left, transparent, var(--frost));
}
.hero-divider-gem {
  width: 8px; height: 8px;
  background: var(--frost);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--frost);
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(232, 244, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-style: italic;
  animation: heroReveal 1.2s 0.4s ease both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroReveal 1.2s 0.5s ease both;
}

.status-bar {
  background: rgba(8, 18, 40, 0.9);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sub);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-blue);
}
.status-item strong {
  color: var(--ice-white);
  font-size: 1.1rem;
  font-family: var(--font-sub);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 2s ease-in-out infinite;
}
.status-dot.offline { background: var(--danger); box-shadow: 0 0 8px var(--danger); animation: none; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.section {
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rune);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ice-white);
  text-shadow: 0 0 20px rgba(100,180,240,0.3);
}
.section-sub {
  margin-top: 0.8rem;
  color: rgba(232,244,255,0.6);
  font-size: 1rem;
  font-style: italic;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.features-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .features-grid--3 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--frost), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 180, 240, 0.4);
  box-shadow: 0 8px 32px rgba(42, 122, 184, 0.15);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.feature-title {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ice-white);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}
.feature-text {
  font-size: 0.95rem;
  color: rgba(232,244,255,0.6);
  line-height: 1.6;
}

.rune-divider {
  text-align: center;
  margin: 0.5rem 0;
  font-size: 1.5rem;
  color: rgba(74, 240, 200, 0.2);
  letter-spacing: 1.5rem;
  user-select: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 5, 15, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--dark-navy);
  border: 1px solid rgba(100, 180, 240, 0.25);
  border-radius: 8px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 40px rgba(42,122,184,0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none;
  border: none;
  color: rgba(232,244,255,0.4);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--ice-white); }

.modal-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--ice-white);
  margin-bottom: 0.4rem;
  text-shadow: 0 0 12px rgba(100,180,240,0.4);
}
.modal-sub {
  font-size: 0.9rem;
  color: rgba(232,244,255,0.5);
  margin-bottom: 2rem;
  font-style: italic;
}

.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ice-blue);
  margin-bottom: 0.45rem;
}
.form-input {
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(5, 15, 35, 0.8);
  border: 1px solid rgba(100, 180, 240, 0.2);
  border-radius: var(--radius);
  color: var(--ice-white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  border-color: var(--frost);
  box-shadow: 0 0 0 3px rgba(109, 184, 232, 0.12);
}
.form-input::placeholder { color: rgba(168, 216, 240, 0.25); }

.form-hint {
  font-size: 0.8rem;
  color: rgba(232,244,255,0.4);
  margin-top: 0.35rem;
}

.form-divider {
  text-align: center;
  margin: 1.2rem 0;
  position: relative;
  color: rgba(232,244,255,0.3);
  font-size: 0.85rem;
}
.form-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(100,180,240,0.15);
  transform: translateY(-50%);
}
.form-divider span {
  position: relative;
  background: var(--dark-navy);
  padding: 0 0.8rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  display: none;
}
.alert.show { display: block; }
.alert-error {
  background: rgba(224, 80, 80, 0.12);
  border: 1px solid rgba(224, 80, 80, 0.35);
  color: #f09090;
}
.alert-success {
  background: rgba(80, 208, 144, 0.12);
  border: 1px solid rgba(80, 208, 144, 0.35);
  color: #80f0b0;
}

.footer {
  border-top: 1px solid var(--panel-border);
  padding: 3rem 2.5rem 2rem;
  text-align: center;
  background: rgba(5, 8, 18, 0.6);
}
.footer-logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--ice-white);
  text-shadow: 0 0 16px rgba(100,200,240,0.4);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-style: italic;
  color: rgba(232,244,255,0.4);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-links a {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 216, 240, 0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--ice-white); }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(232,244,255,0.2);
}

.player-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 2rem;
  display: none;
}
.player-panel.visible { display: block; }

.player-greeting {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rune);
  margin-bottom: 0.3rem;
}
.player-name {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--ice-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.news-card-header {
  padding: 1.5rem 1.8rem 0;
}
.news-date {
  font-family: var(--font-sub);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rune);
  margin-bottom: 0.5rem;
}
.news-title {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  color: var(--ice-white);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.news-excerpt {
  padding: 0 1.8rem 1.5rem;
  font-size: 0.92rem;
  color: rgba(232,244,255,0.6);
  line-height: 1.6;
}
.news-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(42, 122, 184, 0.2);
  border: 1px solid rgba(42, 122, 184, 0.3);
  border-radius: 3px;
  font-family: var(--font-sub);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost);
  margin-bottom: 0.7rem;
}

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(232,244,255,0.2);
  border-top-color: var(--frost);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar { padding: 0 1.2rem; }
  .section { padding: 4rem 1.2rem; }
  .status-bar { gap: 1.5rem; padding: 0.8rem 1.2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: rgba(100, 180, 240, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 180, 240, 0.5); }

html {
  
  background: var(--void);
}

body {
  animation: pageFadeIn 0.35s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.navbar-nav a,
.navbar-home-link,
.sidebar-nav-item,
.footer-links a {
  will-change: color, background;
}

.site-wrapper {
  min-height: 100vh;
  contain: layout style;
}