:root {
  --gold: #e8b955;
  --gold-bright: #ffe4a0;
  --gold-dark: #7e4d12;
  --ember: #ff5b19;
  --ink: #070605;
  --panel: rgba(10, 7, 6, 0.92);
  --line: rgba(232, 185, 85, 0.36);
  --text: #f6ebd3;
  --muted: #ad9b7f;
  --sidebar: 304px;
}

* { box-sizing: border-box; }
html { background: #050302; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background: #050302;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, .35));
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.embers {
  position: fixed;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    radial-gradient(circle, #ffb13c 0 1px, transparent 1.7px),
    radial-gradient(circle, #ff5b19 0 1px, transparent 1.8px);
  background-size: 180px 220px, 260px 300px;
  background-position: 20px 40px, 130px 120px;
  animation: ember-rise 18s linear infinite;
  mask-image: linear-gradient(transparent, black 35%, black);
}

@keyframes ember-rise {
  to { background-position: 20px -400px, 130px -480px; }
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--sidebar);
  padding: 22px 17px 17px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,185,85,.35) transparent;
  background:
    linear-gradient(180deg, rgba(17, 10, 7, .91), rgba(5, 4, 3, .9)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.015) 12px 13px);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
  box-shadow: 16px 0 45px rgba(0,0,0,.55);
}

.sidebar::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -25%;
  right: -1px;
  width: 1px;
  height: 25%;
  background: linear-gradient(transparent, #ffe3a0, #ff6d20, transparent);
  box-shadow: 0 0 12px rgba(255,109,32,.8);
  animation: sidebar-scan 6s ease-in-out infinite;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 8px -4px 8px auto;
  width: 7px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--gold-dark), transparent);
  clip-path: polygon(50% 0, 100% 3%, 60% 50%, 100% 97%, 50% 100%, 0 97%, 40% 50%, 0 3%);
}

.brand {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
}

.brand img {
  position: relative;
  z-index: 1;
  width: 175px;
  height: 175px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 18px rgba(255, 94, 20, .45));
  animation: logo-float 5s ease-in-out infinite;
}

.brand-glow {
  position: absolute;
  width: 155px;
  height: 105px;
  border-radius: 50%;
  background: rgba(255, 91, 25, .24);
  filter: blur(28px);
  animation: logo-glow 3.2s ease-in-out infinite;
}

.main-nav {
  display: grid;
  gap: 7px;
  margin-top: 6px;
}

.nav-group { min-width: 0; }

.nav-item {
  position: relative;
  width: 100%;
  min-height: 59px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #d6c7ac;
  text-align: left;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .035em;
  background: linear-gradient(90deg, rgba(255,255,255,.035), transparent);
  border: 1px solid rgba(232, 185, 85, .19);
  border-radius: 3px;
  cursor: pointer;
  transition: .25s ease;
}

.nav-item > span:nth-child(2) { flex: 1; }

.nav-item::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: transparent;
  transition: .25s ease;
}

.nav-item:hover, .nav-item.is-active {
  color: var(--gold-bright);
  border-color: rgba(232, 185, 85, .55);
  background: linear-gradient(90deg, rgba(186, 99, 22, .21), rgba(255,255,255,.025));
  transform: translateX(3px);
}

.nav-item:hover::after, .nav-item.is-active::after { background: var(--gold); }
.nav-item small {
  display: block;
  margin-bottom: 3px;
  color: #7f715d;
  font: 600 10px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
}
.nav-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(232,185,85,.5);
  border-radius: 50%;
}

.nav-chevron {
  flex: 0 0 auto;
  color: #7e6746;
  font: 22px/1 Arial, sans-serif;
  transition: transform .25s ease, color .25s ease;
}

.nav-group.is-expanded .nav-chevron {
  color: var(--gold);
  transform: rotate(90deg);
}

.nav-submenu {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .3s ease, opacity .22s ease;
}

.nav-submenu > div {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 3px;
  padding-inline: 13px 7px;
}

.nav-group.is-expanded .nav-submenu {
  grid-template-rows: 1fr;
  opacity: 1;
}

.nav-group.is-expanded .nav-submenu > div {
  padding-top: 6px;
  padding-bottom: 3px;
}

.nav-submenu button {
  position: relative;
  min-height: 44px;
  padding: 10px 10px 10px 50px;
  color: #d8cbb5;
  text-align: left;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  white-space: normal;
  background: linear-gradient(90deg, rgba(232,185,85,.05), transparent);
  border: 0;
  border-left: 1px solid rgba(232,185,85,.2);
  cursor: pointer;
  transition: .2s ease;
}

.nav-submenu button::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #4e3920;
  border: 1px solid #9e7136;
  transform: translateY(-50%) rotate(45deg);
}

.nav-submenu button i {
  position: absolute;
  left: 17px;
  top: 50%;
  color: #967342;
  font: 700 10px/1 Tahoma, "Segoe UI", Arial, sans-serif;
  transform: translateY(-50%);
}

.nav-submenu .submenu-copy {
  display: block;
}

.nav-submenu .submenu-copy small {
  display: block;
  margin-top: 3px;
  color: #897a64;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  transition: color .2s ease;
}

.nav-submenu button.has-meta {
  min-height: 58px;
}

.nav-submenu button:hover .submenu-copy small,
.nav-submenu button.is-active .submenu-copy small {
  color: #c9a96f;
}

.nav-submenu button:hover,
.nav-submenu button.is-active {
  padding-left: 52px;
  color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(207,112,29,.18), transparent);
  border-left-color: var(--gold);
}

.nav-submenu button:hover::before,
.nav-submenu button.is-active::before {
  background: var(--ember);
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(255,91,25,.75);
}

.nav-download {
  color: #191009;
  background: linear-gradient(135deg, #ffe39a, #b66a1b 62%, #673309);
  border-color: #ffe09a;
  text-shadow: 0 1px rgba(255,255,255,.3);
}
.nav-download small { color: rgba(34, 20, 9, .62); }
.nav-download .nav-icon { color: #2d1908; border-color: rgba(41,21,5,.4); }
.nav-download:hover { color: #180e06; background: linear-gradient(135deg, #fff1bd, #da8f32 62%, #8b4a12); }

.community {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 10px;
}
.community a {
  min-height: 48px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  color: #c7b797;
  text-decoration: none;
  text-transform: uppercase;
  font: 700 12.5px/1.35 Tahoma, "Segoe UI", Arial, sans-serif;
  letter-spacing: .055em;
  background: linear-gradient(90deg, rgba(232,185,85,.07), rgba(255,255,255,.012));
  border: 1px solid rgba(232,185,85,.2);
  transition: .22s ease;
}
.community a:hover {
  color: var(--gold-bright);
  padding-left: 19px;
  border-color: rgba(232,185,85,.5);
  background: linear-gradient(90deg, rgba(195,99,24,.2), rgba(255,255,255,.02));
  box-shadow: inset 0 0 18px rgba(255,100,24,.05);
}
.community span {
  margin-right: 10px;
  color: var(--gold);
  font-size: 16px;
}

.hero {
  --parallax-x: 0px;
  --parallax-y: 0px;
  position: relative;
  min-height: 100vh;
  height: 100vh;
  margin-left: var(--sidebar);
  padding: 22px 31px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  background: #050302;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: -30px;
  pointer-events: none;
  background: url("assets/banner.png") center / cover no-repeat;
  filter: blur(22px) brightness(.42) saturate(1.15);
  transform: scale(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.2), transparent 15%, transparent 85%, rgba(0,0,0,.2)),
    linear-gradient(180deg, rgba(0,0,0,.14), transparent 65%, rgba(0,0,0,.22));
  box-shadow: inset 0 0 70px rgba(0,0,0,.36);
  pointer-events: none;
}

.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("assets/banner.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position:
    calc(50% + var(--parallax-x))
    calc(50% + var(--parallax-y));
  will-change: transform, filter;
  transition: background-position .35s ease-out;
  animation: hero-breathe 10s ease-in-out infinite;
}

.hero-light {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 13%, rgba(255,142,46,.13), transparent 20%),
    radial-gradient(circle at 16% 74%, rgba(255,55,8,.11), transparent 22%),
    radial-gradient(circle at 85% 67%, rgba(255,74,15,.09), transparent 22%);
  mix-blend-mode: screen;
  animation: fire-glow 4.8s ease-in-out infinite;
}

.hero-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 42%, rgba(216,230,255,.19) 49.8%, transparent 50.5%);
  opacity: 0;
  animation: lightning 11s linear infinite;
}

.hero-light::after {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -28%;
  width: 140%;
  height: 48%;
  background: radial-gradient(ellipse, rgba(255,75,12,.16), transparent 68%);
  filter: blur(20px);
  animation: ground-fire 5.5s ease-in-out infinite alternate;
}

.energy-field {
  position: absolute;
  z-index: 0;
  inset: -45%;
  pointer-events: none;
  opacity: .12;
  background:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg 8deg,
      rgba(255,132,42,.16) 9deg,
      transparent 10deg 22deg
    );
  mask-image: radial-gradient(circle, black 0 18%, transparent 58%);
  animation: energy-rotate 42s linear infinite;
}

.smoke-field {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .58;
}

.smoke-field i {
  position: absolute;
  bottom: -18%;
  width: 42vw;
  height: 38vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(95,59,45,.28), rgba(36,25,22,.1) 45%, transparent 70%);
  filter: blur(30px);
  mix-blend-mode: screen;
  animation: smoke-drift 13s ease-in-out infinite alternate;
}

.smoke-field i:nth-child(1) { left: -10%; animation-delay: -2s; }
.smoke-field i:nth-child(2) { left: 20%; width: 50vw; animation-delay: -8s; animation-duration: 17s; }
.smoke-field i:nth-child(3) { right: 10%; animation-delay: -5s; animation-duration: 15s; }
.smoke-field i:nth-child(4) { right: -16%; width: 48vw; animation-delay: -11s; animation-duration: 19s; }

.cinematic-field {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.light-sweep {
  position: absolute;
  top: -25%;
  left: -42%;
  width: 24%;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(255,216,142,.16), rgba(255,104,30,.08), transparent);
  filter: blur(4px);
  mix-blend-mode: screen;
  transform: skewX(-18deg);
  animation: light-sweep 10s ease-in-out infinite;
}

.rune-halo {
  position: absolute;
  top: -27vw;
  left: 50%;
  width: min(72vw, 920px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,158,56,.13);
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255,181,82,.16) 0 1deg,
      transparent 1deg 13deg,
      rgba(255,85,19,.1) 13deg 14deg,
      transparent 14deg 27deg
    );
  mask-image: radial-gradient(circle, transparent 0 57%, black 58% 59%, transparent 60% 64%, black 65% 65.5%, transparent 66%);
  transform: translateX(-50%);
  animation: rune-spin 48s linear infinite;
  opacity: .55;
}

.heat-wave {
  position: absolute;
  bottom: -18%;
  width: 34%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,100,24,.09), transparent 67%);
  filter: blur(11px);
  backdrop-filter: blur(1.4px);
  opacity: 0;
  animation: heat-rise 6.5s ease-in-out infinite;
}

.heat-wave-1 { left: 1%; animation-delay: -1s; }
.heat-wave-2 { left: 34%; width: 40%; animation-delay: -4.2s; animation-duration: 8s; }
.heat-wave-3 { right: -2%; animation-delay: -6s; animation-duration: 7.2s; }

.meteor-field {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.meteor {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--length);
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,217,149,.9), #ff6b20);
  box-shadow: 0 0 8px rgba(255,105,31,.75);
  opacity: 0;
  transform: rotate(28deg);
  animation: meteor-fall var(--duration) ease-in var(--delay) infinite;
}

.cursor-flare {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,143,48,.13), rgba(255,66,12,.035) 35%, transparent 70%);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--cursor-x, -400px) - 50%), calc(var(--cursor-y, -400px) - 50%), 0);
  transition: opacity .25s ease;
}

.hero.has-pointer .cursor-flare { opacity: 1; }

.particle-field {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fire-particle {
  position: absolute;
  left: var(--x);
  bottom: -12px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #ffc25b;
  box-shadow: 0 0 7px #ff681e, 0 0 14px rgba(255,70,12,.6);
  opacity: 0;
  animation: particle-rise var(--duration) linear var(--delay) infinite;
}

.ash-particle {
  position: absolute;
  top: -8px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(216,198,177,.62);
  filter: blur(.35px);
  opacity: 0;
  animation: ash-fall var(--duration) linear var(--delay) infinite;
}

.spark-streak {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: var(--length);
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #ffd580, #ff5d18);
  box-shadow: 0 0 7px rgba(255,90,19,.7);
  opacity: 0;
  transform: rotate(var(--angle));
  animation: spark-shoot var(--duration) ease-out var(--delay) infinite;
}

.cursor-spark {
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  pointer-events: none;
  background: #ffe0a0;
  box-shadow: 0 0 6px #ff7a23, 0 0 12px rgba(255,76,14,.75);
  transform: translate3d(var(--x), var(--y), 0);
  animation: cursor-spark .7s ease-out forwards;
}

@keyframes hero-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1) saturate(1); }
  50% { transform: scale(1.012); filter: brightness(1.07) saturate(1.08); }
}

@keyframes fire-glow {
  0%, 100% { opacity: .62; }
  50% { opacity: 1; }
}

@keyframes lightning {
  0%, 67%, 70%, 100% { opacity: 0; }
  67.4% { opacity: .52; }
  67.8% { opacity: 0; }
  68.2% { opacity: .25; }
  69% { opacity: 0; }
}

@keyframes ground-fire {
  from { transform: translateX(-3%) scale(.96); opacity: .55; }
  to { transform: translateX(3%) scale(1.06); opacity: .9; }
}

@keyframes particle-rise {
  0% { transform: translate3d(0, 0, 0) scale(.45); opacity: 0; }
  12% { opacity: .9; }
  70% { opacity: .55; }
  100% { transform: translate3d(var(--drift), -78vh, 0) scale(.1); opacity: 0; }
}

@keyframes ash-fall {
  0% { transform: translate3d(0, -4vh, 0) rotate(0); opacity: 0; }
  15% { opacity: .42; }
  70% { opacity: .25; }
  100% { transform: translate3d(var(--drift), 108vh, 0) rotate(440deg); opacity: 0; }
}

@keyframes spark-shoot {
  0%, 76% { transform: translate3d(0, 0, 0) rotate(var(--angle)) scaleX(.1); opacity: 0; }
  80% { opacity: .9; }
  100% { transform: translate3d(var(--travel), -90px, 0) rotate(var(--angle)) scaleX(1); opacity: 0; }
}

@keyframes smoke-drift {
  0% { transform: translate3d(-7%, 4%, 0) scale(.9); opacity: .3; }
  50% { transform: translate3d(4%, -8%, 0) scale(1.08); opacity: .72; }
  100% { transform: translate3d(10%, -14%, 0) scale(.96); opacity: .4; }
}

@keyframes energy-rotate {
  to { transform: rotate(360deg); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes logo-glow {
  0%, 100% { opacity: .52; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes sidebar-scan {
  0% { top: -25%; opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: .7; }
  100% { top: 105%; opacity: 0; }
}

@keyframes light-sweep {
  0%, 12% { left: -42%; opacity: 0; }
  18% { opacity: .9; }
  46% { left: 118%; opacity: .7; }
  52%, 100% { left: 118%; opacity: 0; }
}

@keyframes rune-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes heat-rise {
  0% { transform: translate3d(-5%, 20%, 0) scale(.8); opacity: 0; }
  25% { opacity: .55; }
  70% { opacity: .3; }
  100% { transform: translate3d(10%, -55%, 0) scale(1.3); opacity: 0; }
}

@keyframes meteor-fall {
  0%, 72% { transform: translate3d(-140px, -100px, 0) rotate(28deg) scaleX(.2); opacity: 0; }
  76% { opacity: 1; }
  100% { transform: translate3d(42vw, 33vh, 0) rotate(28deg) scaleX(1); opacity: 0; }
}

@keyframes cursor-spark {
  0% { opacity: 1; transform: translate3d(var(--x), var(--y), 0) scale(1); }
  100% { opacity: 0; transform: translate3d(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy)), 0) scale(.1); }
}

@keyframes storm-shake {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, 0); }
  75% { transform: translate(0, -1px); }
}

.hero.storm-hit { animation: storm-shake .22s linear; }
.hero.storm-hit::after {
  background:
    linear-gradient(rgba(224,236,255,.13), rgba(224,236,255,.13)),
    linear-gradient(90deg, rgba(0,0,0,.12), transparent 15%, transparent 85%, rgba(0,0,0,.12));
}

.hero-topline {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server-status {
  color: #b4a385;
  text-transform: uppercase;
  font: 10px Arial, sans-serif;
  letter-spacing: .2em;
}
.server-status i {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #8bf05d;
  box-shadow: 0 0 12px #76e746;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.sound-toggle {
  width: 31px; height: 31px;
  color: var(--gold);
  background: rgba(8,5,4,.63);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.sound-toggle.is-muted { color: #695f51; }

.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f5cb72;
  color: #211205;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: linear-gradient(135deg, #ffe9aa, #d58c2b 55%, #8b4b10);
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.55), 0 5px 20px rgba(0,0,0,.35);
  transition: .22s;
}
.gold-button:hover {
  filter: brightness(1.17);
  transform: translateY(-2px);
}

.mobile-header { display: none; }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,1,1,.82);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 70px));
  height: min(860px, calc(100vh - 40px));
  min-height: 0;
  max-height: none;
  padding: 35px 40px 38px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(rgba(12,8,6,.965), rgba(6,5,4,.98)),
    url("assets/background.png") center / cover;
  border: 1px solid rgba(232,185,85,.48);
  box-shadow: 0 30px 100px #000, inset 0 0 55px rgba(172,65,15,.1);
  transform: translateY(18px) scale(.98);
  transition: .28s ease;
}
.modal.is-open .modal-card { transform: none; }
.modal-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(232,185,85,.09);
}
.modal-close {
  position: absolute;
  z-index: 2;
  right: 17px; top: 12px;
  width: 34px; height: 34px;
  color: var(--gold);
  font: 27px Arial, sans-serif;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.modal-heading {
  flex: 0 0 auto;
  text-align: center;
  margin-bottom: 28px;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 14px 18px 3px;
  color: #c5b79f;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,185,85,.48) rgba(255,255,255,.03);
}

.modal-body p,
.modal-body li,
.modal-body small,
.modal-body span,
.modal-body b,
.modal-body strong,
.modal-body time,
.modal-body button {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif !important;
}

.modal-body p,
.modal-body li {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}

.modal-body h3 {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.modal-body small {
  font-size: 12.5px;
  line-height: 1.5;
}

.modal-body code {
  font-family: Consolas, "Courier New", monospace !important;
}

.modal-body::-webkit-scrollbar { width: 7px; }
.modal-body::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }
.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(#8d591d, #e4b75f, #8d591d);
  border-radius: 8px;
}
.eyebrow {
  color: #8d7854;
  font: 9px Arial, sans-serif;
  letter-spacing: .32em;
}
.modal-heading h2 {
  margin: 7px 0 8px;
  color: var(--gold-bright);
  text-transform: uppercase;
  font-size: clamp(24px, 4vw, 37px);
  font-weight: normal;
  letter-spacing: .07em;
  text-shadow: 0 3px 16px rgba(255,113,32,.25);
}
.heading-ornament { display: flex; justify-content: center; align-items: center; gap: 10px; }
.heading-ornament i { width: 85px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.heading-ornament i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.heading-ornament b { color: var(--ember); font-size: 8px; }
.modal-corner { position: absolute; width: 45px; height: 45px; top: -1px; border-top: 2px solid var(--gold); }
.modal-corner-tl { left: -1px; border-left: 2px solid var(--gold); }
.modal-corner-tr { right: -1px; border-right: 2px solid var(--gold); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.feature-grid article {
  position: relative;
  padding: 18px 18px 18px 55px;
  background: linear-gradient(120deg, rgba(111,53,16,.2), rgba(255,255,255,.018));
  border: 1px solid rgba(232,185,85,.16);
}
.feature-grid article > span {
  position: absolute;
  left: 15px; top: 17px;
  color: #8d5d22;
  font-size: 20px;
}
.feature-grid h3, .download-panel h3, .register-panel h3 {
  margin: 0 0 7px;
  color: #e4c681;
  font-size: 18px;
  font-weight: normal;
}
.feature-grid p, .download-panel p, .register-panel p, .timeline p {
  margin: 0;
  color: #aa9c86;
  font: 13px/1.55 Arial, sans-serif;
}
.info-note {
  margin-top: 18px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-left: 2px solid var(--ember);
  background: rgba(255,93,23,.07);
}
.info-note b { color: var(--gold-bright); }
.info-note span { color: #a9987e; font-size: 13px; }

.muted { color: #766b5d; text-align: center; font: 11px/1.5 Arial, sans-serif; }

.content-sections,
.download-options {
  display: grid;
  gap: 10px;
}

.content-sections article,
.download-options article {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 17px;
  padding: 15px 17px;
  background: linear-gradient(100deg, rgba(139,72,19,.15), rgba(255,255,255,.015));
  border: 1px solid rgba(232,185,85,.14);
  transition: border-color .2s ease, transform .2s ease;
}

.content-sections article:hover,
.download-options article:hover {
  border-color: rgba(232,185,85,.4);
  transform: translateX(3px);
}

.content-sections article > span,
.download-options article > span {
  align-self: center;
  color: #9d7135;
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
}

.content-sections h3,
.download-options h3 {
  margin: 0 0 5px;
  color: #dfc68d;
  font-size: 17px;
  font-weight: normal;
}

.content-sections p,
.download-options p {
  margin: 0;
  color: #9c8f7c;
  font: 12px/1.55 "Segoe UI", Arial, sans-serif;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.command-grid article {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(232,185,85,.13);
}

.command-grid code {
  min-width: 72px;
  color: #ffca69;
  font-size: 13px;
}

.command-grid p {
  margin: 0;
  color: #958977;
  font: 11px/1.4 "Segoe UI", Arial, sans-serif;
}

.reward-grid,
.date-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ranking-event + .ranking-event {
  margin-top: 32px;
  padding-top: 27px;
  border-top: 1px solid rgba(232,185,85,.16);
}

.event-title {
  margin-bottom: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(151,75,18,.18), transparent 70%);
  border-left: 2px solid var(--ember);
}

.event-title > span {
  flex: 0 0 35px;
  color: #b77c32;
  font-size: 18px;
  text-align: center;
}

.event-title h3 {
  margin: 0 0 3px;
  color: var(--gold-bright);
}

.event-title p { margin: 0; color: #948777; }

.reward-grid article,
.date-cards article {
  padding: 22px 15px;
  text-align: center;
  background: linear-gradient(145deg, rgba(134,67,16,.18), rgba(255,255,255,.018));
  border: 1px solid rgba(232,185,85,.19);
}

.reward-grid article:nth-child(1),
.reward-card--top-1 {
  border-color: rgba(255,211,110,.48);
  box-shadow: inset 0 0 28px rgba(255,181,49,.07);
}

.reward-grid article:nth-child(2),
.reward-card--top-2 { border-color: rgba(210,216,224,.3); }
.reward-grid article:nth-child(3),
.reward-card--top-3 { border-color: rgba(190,115,53,.34); }

.reward-grid b,
.date-cards small {
  display: block;
  color: #8f7042;
  font: 10px/1.2 "Segoe UI", Arial, sans-serif;
  letter-spacing: .14em;
}

.reward-grid strong,
.date-cards strong {
  display: block;
  margin: 10px 0 7px;
  color: var(--gold-bright);
  font-size: 20px;
  font-weight: normal;
}

.reward-grid p,
.date-cards p {
  color: #8f8373;
  font: 11px/1.45 "Segoe UI", Arial, sans-serif;
}

.reward-note {
  margin-top: 14px;
  padding: 12px 15px;
  display: flex;
  gap: 9px;
  color: #958874;
  background: rgba(255,255,255,.025);
  border-left: 1px solid rgba(232,185,85,.35);
}

.reward-note b { color: #d0b77f; }

.date-cards { grid-template-columns: repeat(2, 1fr); }
.date-cards article.highlight { border-color: rgba(255,130,36,.52); box-shadow: inset 0 0 30px rgba(255,75,15,.08); }
.date-cards span { color: #d89d4d; font-size: 13px; }

.timeline { padding: 3px 20px; }
.timeline article {
  display: grid;
  grid-template-columns: 105px 20px 1fr;
  gap: 15px;
  min-height: 78px;
}
.timeline time { padding-top: 4px; color: #9a8767; font-size: 12px; }
.timeline article > span {
  position: relative;
  width: 1px;
  height: 100%;
  background: rgba(232,185,85,.25);
}
.timeline article > span::before {
  content: "";
  position: absolute;
  top: 5px; left: -4px;
  width: 9px; height: 9px;
  background: #332313;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.timeline article.highlight > span::before { background: var(--ember); box-shadow: 0 0 15px var(--ember); }
.timeline b { color: #dfc68c; font-size: 17px; font-weight: normal; }
.timeline p { margin-top: 5px; }

.download-panel, .register-panel {
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  background: linear-gradient(135deg, rgba(130,64,16,.17), rgba(255,255,255,.018));
  border: 1px solid rgba(232,185,85,.18);
}
.download-mark, .big-rune {
  flex: 0 0 auto;
  width: 82px; height: 82px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 43px;
  border: 1px solid rgba(232,185,85,.42);
  border-radius: 50%;
  box-shadow: inset 0 0 25px rgba(229,125,33,.1);
}
.gold-button {
  min-width: 175px;
  margin-top: 14px;
  padding: 12px 18px;
  font-size: 11px;
}

.download-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.download-actions .gold-button {
  min-width: 135px;
  margin-top: 0;
}

.register-panel { text-align: center; flex-direction: column; }
.register-panel .big-rune { margin: auto auto 17px; }

.toast {
  position: fixed;
  z-index: 200;
  left: 50%; bottom: 25px;
  padding: 12px 20px;
  color: #231406;
  background: linear-gradient(135deg, #ffedb5, #c9862d);
  border: 1px solid #ffe4a1;
  box-shadow: 0 10px 35px rgba(0,0,0,.55);
  font: 12px Arial, sans-serif;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  :root { --sidebar: 276px; }
  .sidebar { padding-inline: 13px; }
  .brand { height: 156px; }
  .brand img { width: 145px; height: 145px; }
  .nav-item { min-height: 52px; font-size: 12px; }
  .hero { padding-inline: 20px; }
}

@media (max-width: 760px) {
  body.menu-open { overflow: hidden; }
  .mobile-header {
    position: fixed;
    z-index: 30;
    inset: 0 0 auto;
    height: 67px;
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7,4,3,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .mobile-logo { width: 57px; height: 57px; object-fit: contain; mix-blend-mode: screen; }
  .menu-toggle {
    width: 43px; height: 39px;
    padding: 10px;
    display: grid;
    align-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--line);
  }
  .menu-toggle span { width: 100%; height: 1px; background: var(--gold); transition: .25s; }
  .sidebar {
    width: min(340px, 90vw);
    padding-top: 72px;
    transform: translateX(-105%);
    transition: .28s ease;
  }
  body.menu-open .sidebar { transform: none; }
  .brand { display: none; }
  .community { margin-top: 20px; }
  .hero {
    margin-left: 0;
    padding: 78px 13px 23px;
    min-height: 100vh;
    height: 100svh;
  }
  .hero-topline { margin-bottom: 13px; }
  .hero-art { background-size: 100% 100%; }
  .hero::before { filter: blur(18px) brightness(.36) saturate(1.2); }
  .energy-field { opacity: .07; }
  .smoke-field { opacity: .38; }
  .rune-halo { opacity: .28; }
  .cursor-flare { display: none; }
  .modal { padding: 14px; }
  .modal-card {
    width: calc(100vw - 28px);
    height: calc(100svh - 28px);
    padding: 32px 18px 20px;
    max-height: none;
  }
  .modal-heading { margin-bottom: 20px; }
  .modal-body { padding-right: 7px; }
  .feature-grid { grid-template-columns: 1fr; }
  .command-grid, .reward-grid { grid-template-columns: 1fr; }
  .content-sections article, .download-options article { grid-template-columns: 66px 1fr; }
  .info-note { flex-direction: column; gap: 6px; text-align: center; }
  .timeline { padding-inline: 0; }
  .timeline article { grid-template-columns: 82px 14px 1fr; gap: 10px; }
  .download-panel { flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
  .server-status { font-size: 8px; letter-spacing: .13em; }
  .hero-art { background-size: 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .particle-field, .smoke-field, .energy-field, .cinematic-field, .meteor-field, .cursor-flare { display: none; }
}
