:root {
  --bg: #0b0f1a;
  --bg-2: #0e1322;
  --ink: #f2f5ff;
  --muted: #b6bdd6;
  --accent: #7a6dff;
  --accent-2: #3f63ff;
  --stone: #1d2234;
  --stone-2: #141827;
  --edge: rgba(158, 170, 220, 0.2);
  --glow: rgba(122, 109, 255, 0.55);
  --shadow: 0 24px 60px rgba(5, 8, 18, 0.65);
}

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

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg-layer {
  position: absolute;
  inset: 0;
}

.fireflies {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.bg-base {
  background: radial-gradient(circle at top, #1b2135 0%, var(--bg) 45%, #05070e 100%);
}

.bg-banner {
  background-image: url("assets/hyt_3.webp");
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.5) saturate(0.7);
  transform: scale(1.05);
  opacity: 0.6;
}

.bg-mist {
  background: radial-gradient(circle at 20% 20%, rgba(90, 120, 255, 0.15), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(122, 109, 255, 0.2), transparent 65%),
    radial-gradient(circle at 40% 80%, rgba(80, 90, 180, 0.2), transparent 60%);
  filter: blur(20px);
  opacity: 0.8;
}

.bg-sparks {
  background-image: radial-gradient(circle, rgba(140, 170, 255, 0.25) 0, rgba(0, 0, 0, 0) 40%),
    radial-gradient(circle, rgba(110, 90, 255, 0.25) 0, rgba(0, 0, 0, 0) 45%);
  background-size: 420px 420px;
  background-position: 20% 30%, 70% 60%;
  opacity: 0.3;
}

.bg-vignette {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 30%, rgba(2, 4, 10, 0.85) 100%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 18px 6vw;
  background: rgba(9, 12, 22, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(120, 130, 190, 0.2);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  justify-self: start;
}

.logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(120, 130, 255, 0.5));
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-cta {
  border: 1px solid var(--edge);
  background: linear-gradient(120deg, rgba(60, 70, 130, 0.8), rgba(120, 110, 255, 0.5));
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(10, 15, 35, 0.5);
}

.nav-ip {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(12, 16, 28, 0.85);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-option {
  transition: color 0.2s ease;
}

.lang-option.is-active {
  color: var(--ink);
}

.lang-divider {
  width: 1px;
  height: 14px;
  background: rgba(120, 130, 200, 0.5);
}

.ip-copy {
  border: 1px solid var(--edge);
  background: rgba(10, 14, 26, 0.7);
  color: var(--ink);
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(8, 12, 24, 0.45);
}

.ip-tooltip {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 10px;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(120, 130, 200, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.ip-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: center;
  padding: 60px 6vw 40px;
}

.hero-left {
  max-width: 640px;
}

.hero-logo {
  position: relative;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-logo.large {
  max-width: 640px;
  margin-bottom: 8px;
}

.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(20, 30, 70, 0.6));
}

.logo-energy {
  position: absolute;
  inset: -10% 10% 40% 10%;
  background: radial-gradient(circle, rgba(120, 160, 255, 0.35), transparent 70%);
  filter: blur(16px);
  opacity: 0.8;
  pointer-events: none;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.08;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(140, 150, 210, 0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(135deg, #88a4ff 0%, #5564d9 45%, #3c49b4 100%);
  color: #0a0f1f;
  box-shadow: 0 18px 30px rgba(60, 90, 255, 0.35);
}

.btn.primary::after,
.btn.stone::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.btn.stone {
  background: linear-gradient(145deg, rgba(40, 48, 74, 0.95), rgba(14, 18, 32, 0.95));
  border-color: rgba(120, 130, 200, 0.4);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(10, 15, 30, 0.5);
}

.ip-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  background: linear-gradient(120deg, rgba(18, 22, 36, 0.95), rgba(24, 30, 52, 0.85));
  border: 1px solid var(--edge);
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ip-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(120, 150, 255, 0.15), transparent 60%);
  opacity: 0.4;
}

.ip-main {
  position: relative;
  z-index: 1;
}

.ip-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--muted);
}

#server-ip {
  display: block;
  font-family: "Cinzel", serif;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: 3px;
  color: #dfe6ff;
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.ip-status {
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.status-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 130, 200, 0.35);
  background: rgba(12, 16, 28, 0.85);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

.badge.online {
  color: #e6ffe9;
  border-color: rgba(80, 200, 120, 0.5);
  background: rgba(12, 24, 18, 0.85);
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d07a;
  box-shadow: 0 0 10px rgba(56, 208, 122, 0.8);
}

.hero-right {
  display: grid;
  gap: 22px;
  align-items: end;
}

.hero-illustration {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 130, 200, 0.35);
  box-shadow: var(--shadow);
  background: rgba(12, 16, 28, 0.8);
}

.hero-illust-main {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.1);
}

.hero-illust-glow {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0.5;
  mix-blend-mode: screen;
  filter: blur(12px);
}

.hero-illust-sigil {
  position: absolute;
  right: 12px;
  bottom: -20px;
  width: 140px;
  filter: drop-shadow(0 0 24px rgba(120, 150, 255, 0.7));
}

.relic-card {
  background: linear-gradient(140deg, rgba(20, 24, 40, 0.95), rgba(10, 12, 22, 0.92));
  border: 1px solid var(--edge);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.relic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(90, 120, 255, 0.1), transparent 70%);
  opacity: 0.6;
}

.relic-card h3 {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-emblem {
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(18, 22, 40, 0.95), rgba(10, 12, 22, 0.9));
  border: 1px solid rgba(120, 130, 200, 0.3);
  box-shadow: var(--shadow);
}

.hero-emblem img {
  width: 160px;
  filter: drop-shadow(0 0 30px rgba(110, 140, 255, 0.6));
}

.section {
  padding: 80px 6vw;
}

.section-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(28px, 4vw, 44px);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--muted);
}



.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wiki-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
  padding: 70px 6vw 40px;
}

.wiki-hero-premium {
  position: relative;
  overflow: hidden;
}


.wiki-hero-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.7;
  animation: orbFloat 10s ease-in-out infinite;
  pointer-events: none;
  display: none;
}

.wiki-hero-orb.orb-1 {
  top: -40px;
  right: 12%;
  background: radial-gradient(circle, rgba(120, 150, 255, 0.6), transparent 70%);
  animation-delay: 0s;
}

.wiki-hero-orb.orb-2 {
  bottom: -60px;
  left: 10%;
  background: radial-gradient(circle, rgba(90, 120, 255, 0.45), transparent 70%);
  animation-delay: 2s;
}

.wiki-hero-premium .wiki-hero-content,
.wiki-hero-premium .wiki-hero-media {
  position: relative;
  z-index: 1;
}

.wiki-hero-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(120, 130, 200, 0.35);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 360px;
}

.hero-float {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(12, 16, 28, 0.85);
  border: 1px solid rgba(120, 130, 200, 0.4);
  box-shadow: 0 18px 40px rgba(6, 10, 22, 0.6);
  backdrop-filter: blur(10px);
  animation: floatCard 6s ease-in-out infinite;
}

.hero-float span {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.hero-float strong {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.float-a {
  top: 12%;
  left: -8%;
}

.float-b {
  bottom: 12%;
  right: -6%;
  animation-delay: 1.5s;
}

.wiki-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

.meta-pill {
  border: 1px solid rgba(120, 130, 200, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  background: rgba(12, 16, 28, 0.7);
}

.wiki-grid-section {
  padding-top: 40px;
}

.wiki-highlight-section {
  padding-top: 20px;
}

.wiki-highlight-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight-card {
  background: linear-gradient(155deg, rgba(24, 28, 48, 0.98), rgba(12, 16, 28, 0.92));
  border: 1px solid rgba(140, 160, 255, 0.35);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 26px 60px rgba(8, 12, 26, 0.7);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: -30% 20% 60% 20%;
  background: radial-gradient(circle, rgba(120, 150, 255, 0.2), transparent 70%);
  opacity: 0.6;
}

.highlight-card > * {
  position: relative;
  z-index: 1;
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(10, 14, 28, 0.78);
}

.highlight-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  color: var(--muted);
}

.highlight-card h3 {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes orbFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.wiki-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.wiki-card {
  background: linear-gradient(150deg, rgba(20, 24, 40, 0.95), rgba(10, 12, 22, 0.92));
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wiki-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(6, 10, 22, 0.7);
}

.wiki-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  filter: saturate(0.9) contrast(1.05);
}

.wiki-card h3 {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wiki-columns {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wiki-panel {
  background: linear-gradient(150deg, rgba(22, 26, 42, 0.95), rgba(12, 16, 28, 0.92));
  border: 1px solid var(--edge);
  padding: 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.wiki-panel h3 {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.wiki-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wiki-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.wiki-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.wiki-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border: 1px solid rgba(120, 130, 200, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.command-table-wrap {
  background: linear-gradient(150deg, rgba(20, 24, 40, 0.95), rgba(10, 12, 22, 0.92));
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.command-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.command-table th,
.command-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(120, 130, 200, 0.2);
}

.command-table th {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  color: var(--muted);
}

.command-table code {
  background: rgba(20, 28, 50, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(120, 130, 200, 0.3);
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.wiki-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.feature-card {
  background: linear-gradient(140deg, rgba(20, 24, 40, 0.98), rgba(12, 16, 28, 0.92));
  border: 1px solid var(--edge);
  padding: 22px;
  border-radius: 12px;
  min-height: 180px;
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  filter: saturate(0.9) contrast(1.05);
}

.feature-card h3,
.system-row h3 {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.systems-list {
  display: grid;
  gap: 22px;
}

.system-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(150deg, rgba(22, 26, 42, 0.95), rgba(12, 16, 28, 0.92));
  border: 1px solid var(--edge);
  padding: 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.system-icon {
  font-family: "Cinzel", serif;
  font-size: 20px;
  color: var(--accent);
  border: 1px solid rgba(120, 130, 200, 0.4);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(18, 22, 36, 0.8);
}

.world-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.world-card {
  background: linear-gradient(160deg, rgba(18, 22, 36, 0.95), rgba(10, 12, 22, 0.9));
  border: 1px solid var(--edge);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.world-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.1);
}

.world-card figcaption {
  padding: 16px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.join {
  padding-bottom: 120px;
}

.join-actions {
  display: flex;
  gap: 12px;
}

.footer {
  padding: 30px 6vw 60px;
  border-top: 1px solid rgba(120, 130, 190, 0.2);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: -1;
  }

  .nav-links {
    display: none;
    position: static;
    transform: none;
  }

  .nav-ip {
    display: none;
  }

  .ip-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-hero {
    grid-template-columns: 1fr;
  }

  .float-a,
  .float-b {
    position: static;
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .join-actions {
    flex-direction: column;
  }

  .system-row {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .wiki-grid {
    grid-template-columns: 1fr;
  }

  .hero-illust-main {
    height: 200px;
  }
}
