﻿@font-face {
  font-family: "Arpona";
  src: url("../font/Arpona-Regular.woff2") format("woff2"), url("../font/Arpona-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TheOneLord";
  src: url("../font/TheOneLord.woff2") format("woff2"), url("../font/TheOneLord.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090806;
  --bg-soft: #14110d;
  --panel: rgba(20, 17, 13, 0.64);
  --panel-light: rgba(38, 31, 23, 0.5);
  --panel-solid: #17130e;
  --line: rgba(231, 190, 118, 0.22);
  --text: #f7ead5;
  --muted: #c5aa82;
  --gold: #d6a650;
  --gold-strong: #f0c067;
  --red: #9f2e28;
  --green: #55d36d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Arpona", Georgia, serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: 3px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(9, 8, 6, 0.5);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(9, 8, 6, 0.76);
  border-bottom-color: var(--line);
}

.brand img {
  width: 132px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold-strong);
}

.main-nav a.active {
  color: #211409;
  background: linear-gradient(135deg, var(--gold-strong), #a96927);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  font-weight: 700;
}

.header-actions,
.hero-actions,
.site-footer div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  justify-content: center;
}

.language-switch {
  position: relative;
  flex: 0 0 auto;
  min-width: 132px;
}

.language-switch summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.language-switch summary::-webkit-details-marker {
  display: none;
}

.language-switch summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--gold-strong);
  border-bottom: 2px solid var(--gold-strong);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.language-switch[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.language-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(9, 8, 6, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.language-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.language-menu a:hover,
.language-menu a.active {
  color: #211409;
  background: var(--gold-strong);
}

.flag {
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ghost-link,
.primary-link,
.primary-button,
.secondary-button,
.site-footer button,
.download-options a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.download-options a[aria-disabled="true"] {
  color: rgba(247, 234, 213, 0.52);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(231, 190, 118, 0.16);
  cursor: not-allowed;
}

.primary-link,
.primary-button,
.site-footer button,
.download-options a:first-child:not([aria-disabled="true"]) {
  color: #211409;
  background: linear-gradient(135deg, var(--gold-strong), #a96927);
  border-color: rgba(255, 212, 132, 0.8);
  font-weight: 700;
}

.ghost-link,
.secondary-button {
  background: rgba(255, 255, 255, 0.05);
}

.secondary-button {
  background: rgba(5, 4, 3, 0.92);
  border-color: rgba(240, 192, 103, 0.45);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.ghost-link:hover,
.primary-link:hover,
.primary-button:hover,
.secondary-button:hover,
.site-footer button:hover,
.download-options a:hover {
  transform: translateY(-1px);
  border-color: var(--gold-strong);
}

.download-options a[aria-disabled="true"]:hover {
  transform: none;
  border-color: rgba(231, 190, 118, 0.16);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  min-height: min(78vh, 720px);
  padding: 96px clamp(18px, 5vw, 86px) 48px;
  overflow: hidden;
  width: 100%;
  background: #050403;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 0;
  height: 100vh;
  max-height: 820px;
  overflow: hidden;
  background: #050403;
}

.hero-media video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 88%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 36%, rgba(9, 8, 6, 0) 0%, rgba(9, 8, 6, 0.04) 44%, rgba(9, 8, 6, 0.38) 100%),
    linear-gradient(0deg, rgba(9, 8, 6, 0.82) 0%, rgba(9, 8, 6, 0) 28%),
    linear-gradient(90deg, rgba(9, 8, 6, 0.28) 0%, rgba(9, 8, 6, 0.06) 50%, rgba(9, 8, 6, 0.28) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 120px;
  background: linear-gradient(0deg, var(--bg), rgba(9, 8, 6, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-top: clamp(220px, 30vh, 360px);
  padding: 26px;
  text-align: center;
  border-left: 0;
  background: linear-gradient(180deg, rgba(9, 8, 6, 0.08), rgba(9, 8, 6, 0));
  backdrop-filter: blur(1px);
}

.hero-logo {
  width: min(504px, 88vw);
  margin: 0 auto 8px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.62));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-strong);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(240, 192, 103, 0.28), 0 2px 8px rgba(0, 0, 0, 0.54);
}

.section-heading .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid rgba(240, 192, 103, 0.34);
  border-radius: 6px;
  background: rgba(5, 4, 3, 0.82);
}

.hero-kicker {
  position: relative;
  display: inline-flex;
  min-height: 62px;
  margin: 30px auto 20px;
  padding: 8px 34px 10px;
  align-items: center;
  justify-content: center;
  border-top: 0;
  border-bottom: 0;
  background: transparent;
  color: #f8d98c;
  font-family: "TheOneLord", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  text-shadow: 0 4px 0 rgba(74, 33, 4, 0.88), 0 0 18px rgba(255, 185, 54, 0.58), 0 16px 30px rgba(0, 0, 0, 0.8);
}

.hero-kicker::before,
.hero-kicker::after {
  content: none;
}

.hero-kicker::before {
  margin-right: 18px;
}

.hero-kicker::after {
  margin-left: 18px;
  transform: rotate(180deg);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "TheOneLord", Georgia, serif;
  font-weight: 400;
  line-height: 0.95;
}

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(56px, 8vw, 112px);
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.58);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 2.5vw, 34px);
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-copy {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: #ead6b3;
  font-size: clamp(17px, 1.8vw, 22px);
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  font-weight: 900;
}

.button-logo,
.discord-link img,
.inline-discord img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 5px;
  object-fit: cover;
}

.discord-link,
.inline-discord {
  gap: 0;
}

.inline-discord {
  display: inline-flex;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 12px;
}

.hero-stats div,
.quick-panel,
.steps-grid article,
.feature-grid article,
.event-grid article,
.news-grid article,
.modal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-light), var(--panel));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-stats div {
  position: relative;
  display: block;
  min-height: 280px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-stats div::before {
  content: "";
  position: absolute;
  inset: 0 0 72px;
  box-sizing: border-box;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.72));
  transition: transform 180ms ease, filter 180ms ease;
}

.hero-stats div:hover::before {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.8)) brightness(1.08);
}

.hero-stats div:nth-child(1)::before {
  background-image: url("../images/rates/rate-xp.png");
}

.hero-stats div:nth-child(2)::before {
  background-image: url("../images/rates/rate-sp.png");
}

.hero-stats div:nth-child(3)::before {
  background-image: url("../images/rates/rate-adenas.png");
}

.hero-stats div:nth-child(4)::before {
  background-image: url("../images/rates/rate-drop.png");
}

.hero-stats div:nth-child(5)::before {
  background-image: url("../images/rates/rate-spoil.png");
  background-size: 88% auto;
}

.hero-stats span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.news-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.hero-stats strong {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  min-width: 108px;
  min-height: 56px;
  padding: 6px 24px 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 192, 103, 0.62);
  border-radius: 999px;
  background: rgba(8, 6, 4, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 0 18px rgba(240, 192, 103, 0.14);
  color: #f8d98c;
  font-size: 36px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.quick-panel {
  justify-self: center;
  width: min(640px, 100%);
  padding: 28px;
  border-radius: 8px;
  border-top: 3px solid rgba(240, 192, 103, 0.68);
  background: linear-gradient(180deg, rgba(32, 25, 18, 0.56), rgba(10, 8, 6, 0.48));
}

.quick-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 620px);
  align-items: center;
  justify-content: center;
  width: min(1540px, 100%);
  margin: 0 auto;
}

.quick-character {
  width: min(220px, 100%);
  max-height: 430px;
  justify-self: center;
  object-fit: contain;
  object-position: center bottom;
  border: 1px solid rgba(231, 190, 118, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

.quick-character-left {
  transform: translateY(10px);
}

.quick-character-right {
  transform: translateY(6px);
}

.quick-dragon {
  width: min(837px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 42% center;
  justify-self: start;
}

.quick-panel h2 {
  margin-bottom: 14px;
  font-size: 32px;
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(26px, 2.4vw, 34px);
}

.page-hero h2,
.article-panel h2 {
  font-size: clamp(26px, 2.5vw, 34px);
}

.quick-panel p {
  color: var(--muted);
}

.quick-panel ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.quick-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(231, 190, 118, 0.14);
}

.quick-panel strong {
  color: var(--gold-strong);
  font-size: 24px;
}

.quick-panel span {
  color: var(--muted);
  text-align: right;
}

.section {
  padding: 76px clamp(18px, 5vw, 86px);
}

main > .section:first-child {
  padding-top: 128px;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(9, 8, 6, 0.18), rgba(9, 8, 6, 0.34)),
    url("../images/bg/interlude.png") center 42% / cover fixed;
}

.feature-intro {
  background: #050403;
}

.technology-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: url("../images/bg/technology-datacenter.png") center / cover fixed;
}

.technology-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 8, 6, 0.54), rgba(9, 8, 6, 0.26));
  pointer-events: none;
}

.technology-main > * {
  position: relative;
  z-index: 2;
}

.technology-section {
  background: transparent;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-dark .section-heading {
  margin-bottom: 34px;
}

.section-dark .section-heading h2 {
  color: #fff6e5;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 18px rgba(240, 192, 103, 0.22);
}

.server-specs {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: stretch;
  gap: 20px;
  margin: 0 0 28px;
}

.server-specs-media,
.server-specs-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(38, 31, 23, 0.5), rgba(10, 8, 6, 0.62));
  box-shadow: var(--shadow);
}

.server-specs-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.server-specs-panel {
  padding: clamp(22px, 3vw, 34px);
}

.server-specs-panel h3 {
  margin: 0 0 20px;
  font-size: clamp(24px, 2.2vw, 34px);
}

.server-specs-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.server-specs-panel li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(231, 190, 118, 0.16);
}

.server-specs-panel li:last-child {
  border-bottom: 0;
}

.server-specs-panel span {
  color: var(--muted);
}

.server-specs-panel strong {
  color: var(--text);
  text-align: right;
}

.steps-grid,
.event-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps-grid + .steps-grid {
  margin-top: 24px;
}

.steps-grid article,
.event-grid article {
  min-height: 200px;
  padding: 24px;
  border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.steps-grid article {
  border-color: rgba(240, 192, 103, 0.46);
  background: linear-gradient(180deg, rgba(22, 15, 10, 0.66), rgba(5, 4, 3, 0.74));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 229, 173, 0.12);
  backdrop-filter: blur(2px);
}

.steps-grid article:hover,
.event-grid article:hover,
.feature-grid article:hover,
.news-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 192, 103, 0.5);
}

.steps-grid span,
.event-grid time {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--gold-strong);
  font-weight: 700;
}

.steps-grid span {
  color: #ffd77d;
  font-size: 20px;
  text-shadow: 0 0 16px rgba(240, 192, 103, 0.34);
}

.steps-grid h3 {
  color: #fff8ea;
  font-size: 28px;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.steps-grid p {
  color: #f0d8ae;
  font-size: 19px;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.feature-grid p,
.event-grid p,
.news-grid p,
.site-footer p,
.download-options p,
.support-note {
  color: var(--muted);
}

.features-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: url("../images/bg/elven-village.jpg") center / cover fixed;
}

.features-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 8, 6, 0.54), rgba(9, 8, 6, 0.26));
  pointer-events: none;
}

.features-main > * {
  position: relative;
  z-index: 2;
}

.feature-intro {
  background: transparent;
}

.feature-section {
  background: transparent;
  padding-bottom: clamp(520px, 78vh, 780px);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.feature-image {
  display: none;
}

.feature-image img {
  max-height: 560px;
  margin: 0 auto;
  object-fit: contain;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(120px, 18vh, 240px);
}

.feature-grid article {
  min-height: 190px;
  padding: 22px;
  border-radius: 8px;
  border-color: rgba(240, 192, 103, 0.34);
  background: linear-gradient(180deg, rgba(22, 15, 10, 0.66), rgba(5, 4, 3, 0.74));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 229, 173, 0.1);
  backdrop-filter: blur(2px);
}

.feature-grid h3 {
  color: #fff8ea;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.feature-grid p {
  color: #f4d69a;
  font-size: 18px;
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.events-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: url("../images/bg/gyran-castle-events.png") center / cover fixed;
}

.events-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 192, 103, 0.12), rgba(9, 8, 6, 0) 34%),
    linear-gradient(rgba(9, 8, 6, 0.18), rgba(9, 8, 6, 0.42));
  pointer-events: none;
}

.events-main > * {
  position: relative;
  z-index: 2;
}

.event-section {
  min-height: 100vh;
  padding-top: 128px;
  padding-bottom: 150px;
  background: transparent;
  overflow: hidden;
}

.event-section .event-grid article {
  background: linear-gradient(180deg, rgba(38, 31, 23, 0.34), rgba(10, 8, 6, 0.30));
  border-color: rgba(240, 192, 103, 0.38);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(3px);
}

.news-section {
  background: var(--bg-soft);
}

.news-grid article {
  border-radius: 8px;
  overflow: hidden;
}

.news-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-grid div {
  padding: 20px;
}

.page-shell {
  min-height: 100vh;
  padding: 128px clamp(18px, 5vw, 86px) 70px;
  background:
    linear-gradient(rgba(9, 8, 6, 0.58), rgba(9, 8, 6, 0.9)),
    url("../images/bg/news.webp") center top / cover fixed;
}

.donation-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 4, 3, 0.10), rgba(5, 4, 3, 0.28)),
    url("../images/bg/donations-interlude.png") center / cover fixed;
}

.contact-page .donation-page {
  background:
    linear-gradient(rgba(5, 4, 3, 0.08), rgba(5, 4, 3, 0.24)),
    url("../images/bg/contact-interlude3.jpg") center / cover fixed;
}

.radio-page .donation-page {
  min-height: calc(100vh - 92px);
  background:
    linear-gradient(rgba(5, 4, 3, 0.08), rgba(5, 4, 3, 0.20)),
    url("../images/bg/elvenradio.png") center / cover fixed;
}

.donation-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 192, 103, 0.10), rgba(9, 8, 6, 0) 34%),
    linear-gradient(rgba(9, 8, 6, 0.08), rgba(9, 8, 6, 0.20));
  pointer-events: none;
}

.donation-page > * {
  position: relative;
  z-index: 2;
}

.page-container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.page-hero {
  display: grid;
  gap: 12px;
  width: min(504px, 100%);
  margin: 0 auto 28px;
  text-align: center;
}

.page-logo {
  width: min(504px, 88vw);
  margin: 0 auto -4px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6));
}

.section-page-logo {
  display: block;
  width: min(504px, 88vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6));
}

.feature-rates {
  gap: 11px;
  max-width: 690px;
  margin: 0 auto 24px;
}

.feature-rates div {
  min-height: 140px;
  padding: 0 5px;
}

.feature-rates div::before {
  inset: 0 0 36px;
}

.feature-rates div:nth-child(5)::before {
  background-size: 74% auto;
}

.feature-rates div:hover::before {
  transform: translateY(-2px) scale(1.02);
}

.feature-rates strong {
  bottom: 22px;
  min-width: 54px;
  min-height: 28px;
  padding: 3px 12px 4px;
  font-size: 18px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.55), inset 0 0 9px rgba(240, 192, 103, 0.14);
}

.feature-video-panel {
  width: min(820px, 100%);
  margin: 0 auto 30px;
  padding: 20px;
  border: 1px solid rgba(240, 192, 103, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 25, 18, 0.42), rgba(10, 8, 6, 0.36));
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.46);
  text-align: center;
}

.feature-video-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 44px);
}

.feature-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(240, 192, 103, 0.32);
  border-radius: 8px;
  background: #050403;
}

.feature-video-frame iframe,
.youtube-preview-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.youtube-preview-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff4d6;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 800;
  text-decoration: none;
  background:
    linear-gradient(rgba(5, 4, 3, 0.2), rgba(5, 4, 3, 0.5)),
    url("https://img.youtube.com/vi/I4W5K2XRok0/maxresdefault.jpg") center / cover;
}

.youtube-preview-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(240, 192, 103, 0.2), transparent 34%);
  pointer-events: none;
}

.youtube-preview-link:hover {
  color: #fff;
}

.youtube-play-button {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 58px;
  border-radius: 16px;
  background: rgba(218, 42, 32, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  transition: transform 0.2s ease;
}

.youtube-preview-link:hover .youtube-play-button {
  transform: scale(1.05);
}

.youtube-play-button::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 17px;
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.youtube-preview-link span:last-child {
  position: relative;
  z-index: 1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.86);
}

.page-hero .eyebrow {
  margin-bottom: 4px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--gold-strong);
}

.news-page-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.page-panel,
.article-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(38, 31, 23, 0.58), rgba(10, 8, 6, 0.58));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.donation-page .page-panel {
  background: linear-gradient(180deg, rgba(32, 25, 18, 0.38), rgba(10, 8, 6, 0.34));
  border-color: rgba(240, 192, 103, 0.34);
  backdrop-filter: blur(3px);
}

.page-panel,
.article-panel {
  padding: clamp(20px, 3vw, 34px);
}

.donation-layout,
.donation-grid {
  display: grid;
  gap: 18px;
}

.donation-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  margin-bottom: 18px;
}

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

.donation-panel h2,
.donation-panel h3 {
  margin-top: 0;
}

.donation-panel p {
  color: var(--muted);
}

.donation-button {
  width: fit-content;
  margin-top: 10px;
}

.radio-player-panel {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 26px;
  text-align: center;
}

.radio-page .donation-layout {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.radio-player-frame {
  display: inline-flex;
  width: min(320px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(240, 192, 103, 0.42);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.78);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.48);
}

.radio-player-frame iframe {
  display: block;
  width: 320px;
  max-width: 100%;
}

.contact-value {
  margin-top: 12px;
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  word-break: break-word;
}

.contact-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-mail-row {
  margin-top: 10px;
}

.contact-copy-row .donation-button {
  margin-top: 0;
}

.copy-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240, 192, 103, 0.55);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(12, 10, 8, 0.72);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.copy-contact-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-contact-button:hover,
.copy-contact-button.is-copied {
  border-color: var(--gold);
  background: rgba(218, 165, 66, 0.2);
  transform: translateY(-1px);
}

.featured-news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.featured-news article,
.news-list article {
  overflow: hidden;
  border: 1px solid rgba(231, 190, 118, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.featured-news img,
.article-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-news div,
.news-list div {
  padding: 18px;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.news-list img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.tag {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-meta,
.article-content {
  color: var(--muted);
}

.article-banner {
  margin: 24px 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(231, 190, 118, 0.18);
}

.article-content h3 {
  margin-top: 28px;
  color: var(--gold-strong);
}

.article-content table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
}

.article-content th,
.article-content td {
  padding: 14px;
  border-bottom: 1px solid rgba(231, 190, 118, 0.12);
  text-align: left;
}

.article-content a {
  color: var(--gold-strong);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 5vw, 86px) 16px 18px;
  background: #050403;
  border-top: 1px solid var(--line);
}

.donation-page + .site-footer {
  position: relative;
  z-index: 3;
}

.site-footer > img {
  grid-column: 2;
  grid-row: 1;
  width: 130px;
}

.site-footer .discord-link img {
  width: 22px;
  height: 22px;
}

.site-footer .discord-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(240, 192, 103, 0.45);
  border-radius: 6px;
  background: rgba(5, 4, 3, 0.92);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.site-footer p {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  max-width: 620px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.site-footer > div {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.event-page .site-footer {
  gap: 16px;
  padding: 10px clamp(18px, 5vw, 86px);
}

.event-page .site-footer > img {
  width: 130px;
}

.event-page .site-footer .discord-link img {
  width: 22px;
  height: 22px;
}

.event-page .site-footer button,
.event-page .site-footer .discord-link {
  min-height: 34px;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
}

.download-modal.is-open {
  display: grid;
}

.audio-toggle {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(240, 192, 103, 0.45);
  border-radius: 6px;
  background: rgba(5, 4, 3, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.audio-toggle::before {
  content: "♪";
  color: var(--gold-strong);
  font-size: 22px;
  line-height: 1;
}

.audio-toggle.is-muted::before {
  content: "x";
  font-size: 18px;
  font-weight: 900;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(720px, 92vh);
  padding: clamp(22px, 4vw, 38px);
  overflow: auto;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.download-options article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.download-options div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-note {
  margin: 20px 0 0;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .header-actions {
    grid-column: 1 / -1;
    display: none;
  }

  .main-nav.is-open,
  .header-actions.is-open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .main-nav a {
    padding: 12px 0;
    border-top: 1px solid rgba(231, 190, 118, 0.12);
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions a,
  .header-actions button {
    flex: 1;
  }

  .header-actions .language-switch,
  .header-actions .language-switch summary,
  .header-actions .language-menu a {
    flex: 0 0 auto;
  }

  .hero,
  .feature-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer > img,
  .site-footer p,
  .site-footer > div {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  .site-footer p {
    text-align: center;
  }

  .site-footer > div {
    justify-content: center;
  }

  .quick-showcase {
    grid-template-columns: 1fr;
  }

  .quick-character {
    display: none;
  }

  .steps-grid,
  .event-grid,
  .news-grid,
  .server-specs,
  .donation-layout,
  .donation-grid,
  .news-page-grid {
    grid-template-columns: 1fr;
  }

  .feature-image {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 122px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-media {
    max-height: 540px;
    background-position: center top;
    background-size: cover;
  }

  .hero-actions,
  .hero-stats,
  .feature-grid,
  .download-options {
    grid-template-columns: 1fr;
  }

  .hero-kicker {
    min-height: 48px;
    padding: 7px 14px 9px;
    font-size: 30px;
  }

  .hero-kicker::before,
  .hero-kicker::after {
    width: 28px;
  }

  .hero-kicker::before {
    margin-right: 10px;
  }

  .hero-kicker::after {
    margin-left: 10px;
  }

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

  .hero-stats div {
    min-height: 150px;
  }

  .hero-stats div::before {
    inset: 0 0 48px;
  }

  .hero-stats strong {
    bottom: 18px;
    min-width: 48px;
    min-height: 26px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(360px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    display: grid;
  }

  .featured-news,
  .news-list article {
    grid-template-columns: 1fr;
  }

  .server-specs-media img {
    min-height: 220px;
  }

  .server-specs-panel li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .server-specs-panel strong {
    text-align: left;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .feature-section {
    padding-bottom: clamp(340px, 62vh, 540px);
  }

  .feature-grid {
    margin-bottom: clamp(80px, 14vh, 160px);
  }

  .audio-toggle {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


.youtube-brand-logo {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  margin: 12px auto 0;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.youtube-video-panel {
  width: min(1180px, 100%);
  margin-top: 18px;
  padding: clamp(16px, 2.4vw, 28px);
}

.youtube-page .feature-video-frame {
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border-color: rgba(240, 192, 103, 0.48);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.56);
}

.youtube-page .youtube-embed {
  background: #050403;
}

.youtube-file-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .youtube-page .feature-video-frame {
    min-height: auto;
  }
}
