:root {
  --obsidian: #0b0b0f;
  --deep-purple: #5a2d82;
  --amethyst: #a970ff;
  --moss: #6d8e2d;
  --stone: #6f6f73;
  --rune: #c8c8d0;
  --panel: rgba(20, 20, 28, 0.72);
  --panel-border: rgba(169, 112, 255, 0.32);
  --panel-border-moss: rgba(109, 142, 45, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 10%, rgba(109, 142, 45, 0.08), transparent 30%),
    radial-gradient(circle at 85% 5%, rgba(169, 112, 255, 0.16), transparent 35%),
    linear-gradient(180deg, #07080d 0%, #0b0b0f 40%, #08090e 100%);
  color: var(--rune);
  overflow-x: hidden;
}

h1,
h2,
h3,
.eyebrow,
.brand span {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 999;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(169, 112, 255, 0.2);
  background: linear-gradient(180deg, rgba(9, 9, 13, 0.95), rgba(9, 9, 13, 0.68));
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--rune);
}

.brand-logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  flex: 0 0 40px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(169, 112, 255, 0.5));
}

.desktop-nav {
  display: none;
  gap: 1.15rem;
  align-items: center;
}

.desktop-nav a,
.mobile-nav a,
.footer-grid a {
  color: var(--rune);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-grid a:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(169, 112, 255, 0.6);
}

.desktop-nav a.current,
.mobile-nav a.current {
  color: #f5eeff;
  border: 1px solid rgba(169, 112, 255, 0.45);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  background: rgba(90, 45, 130, 0.24);
  text-shadow: 0 0 14px rgba(169, 112, 255, 0.5);
}

.nav-cta {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: rgba(90, 45, 130, 0.22);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--panel-border);
  color: var(--rune);
  border-radius: 0.7rem;
  background: rgba(18, 18, 26, 0.8);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.mobile-nav {
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid rgba(169, 112, 255, 0.16);
  padding: 0.8rem 1rem 1rem;
  background: rgba(10, 10, 16, 0.98);
}

.mobile-nav a {
  padding: 0.52rem 0.6rem;
  border-radius: 0.5rem;
}

.mobile-nav a:hover {
  background: rgba(169, 112, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(109, 142, 45, 0.26);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 5, 8, 0.62), rgba(5, 5, 8, 0.82)),
    url('../images/logo-background.png') center/cover no-repeat;
  opacity: 0.62;
  z-index: -4;
}

.hero-grid,
.hero-fog {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.42;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

.hero-fog {
  background:
    radial-gradient(circle at 50% 70%, rgba(169, 112, 255, 0.2), transparent 45%),
    radial-gradient(circle at 35% 80%, rgba(109, 142, 45, 0.13), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(90, 45, 130, 0.24), transparent 40%);
  animation: fogPulse 8s ease-in-out infinite alternate;
}

.portal-ring {
  position: absolute;
  width: min(72vw, 700px);
  aspect-ratio: 1;
  border: 2px solid rgba(169, 112, 255, 0.45);
  border-radius: 22% 78% 27% 73% / 72% 22% 78% 28%;
  filter: drop-shadow(0 0 20px rgba(169, 112, 255, 0.5));
  animation: spinPortal 28s linear infinite;
}

.portal-ring::before,
.portal-ring::after {
  content: '';
  position: absolute;
  inset: 4%;
  border-radius: inherit;
  border: 1px dashed rgba(109, 142, 45, 0.4);
}

.portal-ring::after {
  inset: 12%;
  border-style: solid;
  border-color: rgba(169, 112, 255, 0.35);
  animation: spinPortal 18s linear reverse infinite;
}

.portal-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(169, 112, 255, 0.95), rgba(169, 112, 255, 0));
  border-radius: 50%;
  animation: drift 12s linear infinite;
}

.hero-content {
  position: relative;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-logo {
  width: min(30vw, 190px);
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 0 16px rgba(169, 112, 255, 0.6));
}

.hero-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(200, 200, 208, 0.78);
  font-size: 0.72rem;
}

h1 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.1;
  color: #f2ecff;
  text-shadow: 0 0 26px rgba(169, 112, 255, 0.42);
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(200, 200, 208, 0.88);
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, #6f37a6, #a970ff 45%, #5a2d82);
  box-shadow: 0 0 0 rgba(169, 112, 255, 0.2);
}

.btn-secondary {
  color: var(--rune);
  background: rgba(20, 20, 29, 0.85);
  border-color: rgba(109, 142, 45, 0.38);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 0 26px rgba(169, 112, 255, 0.5);
}

.btn-secondary:hover {
  border-color: rgba(169, 112, 255, 0.5);
}

.ip-display {
  margin: 1.3rem auto 0;
  width: fit-content;
  padding: 0.65rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid var(--panel-border);
  background: rgba(13, 13, 20, 0.8);
  box-shadow: 0 0 18px rgba(169, 112, 255, 0.22);
}

.ip-display span {
  font-size: 0.8rem;
  color: rgba(200, 200, 208, 0.85);
}

.ip-display strong {
  display: block;
  font-size: 1rem;
  color: #f2ecff;
}

.section-wrap {
  padding: 4.2rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 1.6rem;
}

.eyebrow {
  margin: 0;
  color: rgba(109, 142, 45, 0.92);
  font-size: 0.84rem;
  text-transform: uppercase;
}

h2 {
  margin: 0.3rem 0 0.7rem;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  color: #f1eaff;
}

.section-head p {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.stone-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(111, 111, 115, 0.06), transparent 32%),
    radial-gradient(circle at 15% 10%, rgba(109, 142, 45, 0.08), transparent 30%),
    radial-gradient(circle at 85% 90%, rgba(169, 112, 255, 0.12), transparent 30%);
}

.mode-grid,
.feature-grid,
.team-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.mode-grid,
.feature-grid,
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.panel,
.gallery-card {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15, 15, 22, 0.85), rgba(11, 11, 16, 0.9)),
    var(--panel);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.card::before,
.panel::before,
.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(125deg, rgba(169, 112, 255, 0.38), rgba(109, 142, 45, 0.18), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card {
  padding: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.panel:hover,
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 22px rgba(169, 112, 255, 0.24);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  border: 1px solid var(--panel-border-moss);
  background: rgba(109, 142, 45, 0.1);
  margin-bottom: 0.9rem;
}

.card h3,
.panel h3,
.gallery-card h3 {
  margin: 0 0 0.45rem;
  color: #f5eeff;
  font-size: 1.15rem;
}

.card p,
.panel p {
  margin: 0;
  color: rgba(200, 200, 208, 0.88);
}

.panel .btn-primary {
  margin-top: 1.2rem;
  align-self: flex-start;
}

.inventory-slots {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.32rem;
}

.inventory-slots span {
  width: 11px;
  height: 11px;
  background: linear-gradient(180deg, rgba(169, 112, 255, 0.4), rgba(109, 142, 45, 0.35));
  border: 1px solid rgba(200, 200, 208, 0.18);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.6);
}

.feature-grid .card {
  min-height: 138px;
}

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

.panel {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.stat-items {
  display: grid;
  gap: 0.8rem;
}

.stat-items span {
  display: block;
  font-size: 0.84rem;
  color: rgba(200, 200, 208, 0.8);
}

.stat-items strong {
  font-size: 1.3rem;
}

.status-dot::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #999;
}

.status-dot.online::before {
  background: #7fc94f;
  box-shadow: 0 0 12px rgba(127, 201, 79, 0.7);
}

.status-dot.offline::before {
  background: #f86d6d;
  box-shadow: 0 0 12px rgba(248, 109, 109, 0.65);
}

.announcement-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.46rem;
}

.announcement-list li {
  color: rgba(200, 200, 208, 0.9);
}

.gallery-card {
  min-height: 190px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 10, 0.2), rgba(7, 8, 12, 0.8));
}

.gallery-card h3,
.gallery-card p {
  position: relative;
  z-index: 2;
}

.gallery-card p {
  margin: 0;
}

.team-rank {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border-moss);
  color: #f2ecff;
  font-size: 0.79rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(169, 112, 255, 0.24);
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.74), rgba(8, 8, 12, 0.94));
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-top: 2.2rem;
  padding-bottom: 1.6rem;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ip-mini {
  color: rgba(169, 112, 255, 0.95);
  font-weight: 700;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(200, 200, 208, 0.12);
  color: rgba(200, 200, 208, 0.7);
  padding: 0.8rem;
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spinPortal {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fogPulse {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }
  25% {
    opacity: 0.95;
  }
  75% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(var(--dx), var(--dy), 0) scale(1.1);
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .hero-content {
    padding-top: 7.5rem;
    padding-bottom: 5.5rem;
  }

  .section-wrap {
    padding: 5.4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
