:root {
  --bg: #100d11;
  --bg-grad-a: rgba(201, 103, 58, 0.18);
  --bg-grad-b: rgba(79, 109, 183, 0.16);
  --panel: rgba(22, 17, 25, 0.78);
  --panel-strong: rgba(18, 14, 22, 0.88);
  --line: rgba(255, 238, 214, 0.12);
  --text: #f7efe4;
  --muted: #cbbba4;
  --gold: #f0c57d;
  --gold-strong: #da9b52;
  --button-text: #24150a;
  --topbar-bg: rgba(12, 10, 16, 0.78);
  --card-bg: rgba(255, 255, 255, 0.04);
  --nav-hover: rgba(255, 255, 255, 0.06);
  --screen-overlay-a: rgba(8, 8, 10, 0.18);
  --screen-overlay-b: rgba(10, 10, 12, 0.54);
  --screen-overlay-c: rgba(76, 33, 29, 0.62);
  --screen-overlay-d: rgba(18, 17, 31, 0.76);
  --hero-overlay-left: rgba(13, 10, 14, 0.88);
  --hero-overlay-mid: rgba(13, 10, 14, 0.35);
  --hero-overlay-right: rgba(13, 10, 14, 0.82);
  --features-overlay-left: rgba(13, 10, 14, 0.9);
  --features-overlay-right: rgba(15, 16, 34, 0.62);
  --gallery-overlay-left: rgba(13, 10, 14, 0.84);
  --gallery-overlay-right: rgba(38, 17, 19, 0.44);
  --download-overlay-left: rgba(13, 10, 14, 0.9);
  --download-overlay-right: rgba(40, 22, 9, 0.42);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --max: 1240px;
}

body[data-theme="light"] {
  --bg: #efe4d4;
  --bg-grad-a: rgba(255, 225, 181, 0.9);
  --bg-grad-b: rgba(184, 213, 255, 0.75);
  --panel: rgba(255, 249, 240, 0.82);
  --panel-strong: rgba(255, 251, 244, 0.95);
  --line: rgba(91, 58, 25, 0.14);
  --text: #2e2015;
  --muted: #78604c;
  --gold: #9b6324;
  --gold-strong: #c88533;
  --button-text: #fff9f0;
  --topbar-bg: rgba(255, 249, 242, 0.88);
  --card-bg: rgba(255, 255, 255, 0.56);
  --nav-hover: rgba(122, 79, 30, 0.08);
  --screen-overlay-a: rgba(255, 248, 240, 0.18);
  --screen-overlay-b: rgba(255, 248, 240, 0.48);
  --screen-overlay-c: rgba(165, 117, 62, 0.18);
  --screen-overlay-d: rgba(206, 222, 246, 0.24);
  --hero-overlay-left: rgba(255, 246, 235, 0.72);
  --hero-overlay-mid: rgba(255, 246, 235, 0.24);
  --hero-overlay-right: rgba(255, 246, 235, 0.72);
  --features-overlay-left: rgba(251, 244, 235, 0.74);
  --features-overlay-right: rgba(232, 240, 252, 0.42);
  --gallery-overlay-left: rgba(251, 244, 235, 0.66);
  --gallery-overlay-right: rgba(255, 236, 223, 0.34);
  --download-overlay-left: rgba(251, 244, 235, 0.76);
  --download-overlay-right: rgba(255, 230, 194, 0.34);
  --shadow: 0 24px 50px rgba(89, 58, 22, 0.14);
}

body[data-theme="epic"] {
  --bg: #0b0607;
  --bg-grad-a: rgba(216, 74, 40, 0.24);
  --bg-grad-b: rgba(41, 70, 160, 0.18);
  --panel: rgba(18, 9, 12, 0.82);
  --panel-strong: rgba(12, 6, 8, 0.94);
  --line: rgba(255, 205, 118, 0.18);
  --text: #fff4df;
  --muted: #d1b38a;
  --gold: #ffd17c;
  --gold-strong: #ffb347;
  --button-text: #2b1200;
  --topbar-bg: rgba(10, 4, 6, 0.84);
  --card-bg: rgba(255, 167, 76, 0.05);
  --nav-hover: rgba(255, 190, 92, 0.12);
  --screen-overlay-a: rgba(0, 0, 0, 0.18);
  --screen-overlay-b: rgba(0, 0, 0, 0.62);
  --screen-overlay-c: rgba(121, 28, 14, 0.5);
  --screen-overlay-d: rgba(16, 21, 44, 0.58);
  --hero-overlay-left: rgba(6, 1, 3, 0.84);
  --hero-overlay-mid: rgba(30, 6, 2, 0.24);
  --hero-overlay-right: rgba(4, 2, 10, 0.82);
  --features-overlay-left: rgba(4, 3, 10, 0.84);
  --features-overlay-right: rgba(16, 18, 55, 0.48);
  --gallery-overlay-left: rgba(10, 4, 8, 0.74);
  --gallery-overlay-right: rgba(88, 26, 8, 0.24);
  --download-overlay-left: rgba(10, 4, 4, 0.82);
  --download-overlay-right: rgba(86, 41, 5, 0.2);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.65);
}

body[data-theme="arcane"] {
  --bg: #08101f;
  --bg-grad-a: rgba(80, 138, 255, 0.2);
  --bg-grad-b: rgba(158, 94, 255, 0.18);
  --panel: rgba(9, 20, 43, 0.76);
  --panel-strong: rgba(7, 16, 34, 0.92);
  --line: rgba(157, 205, 255, 0.16);
  --text: #eef6ff;
  --muted: #a7bdd8;
  --gold: #91c7ff;
  --gold-strong: #5f9df2;
  --button-text: #f5fbff;
  --topbar-bg: rgba(7, 17, 35, 0.82);
  --card-bg: rgba(120, 177, 255, 0.06);
  --nav-hover: rgba(120, 177, 255, 0.1);
  --screen-overlay-a: rgba(5, 9, 24, 0.2);
  --screen-overlay-b: rgba(5, 12, 28, 0.62);
  --screen-overlay-c: rgba(30, 63, 116, 0.42);
  --screen-overlay-d: rgba(39, 14, 88, 0.48);
  --hero-overlay-left: rgba(5, 10, 24, 0.84);
  --hero-overlay-mid: rgba(14, 28, 62, 0.3);
  --hero-overlay-right: rgba(18, 10, 41, 0.78);
  --features-overlay-left: rgba(5, 12, 31, 0.86);
  --features-overlay-right: rgba(32, 20, 73, 0.4);
  --gallery-overlay-left: rgba(5, 14, 34, 0.74);
  --gallery-overlay-right: rgba(33, 35, 89, 0.32);
  --download-overlay-left: rgba(5, 12, 32, 0.82);
  --download-overlay-right: rgba(18, 55, 112, 0.28);
  --shadow: 0 30px 90px rgba(2, 10, 28, 0.58);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--bg-grad-a), transparent 28%),
    radial-gradient(circle at top right, var(--bg-grad-b), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, #201520 12%) 35%, color-mix(in srgb, var(--bg) 92%, #060608 8%) 100%);
  min-height: 100vh;
}
[data-aos] {
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
}
[data-aos="fade-up"] { transform: translate3d(0, 26px, 0); }
[data-aos="fade-right"] { transform: translate3d(-26px, 0, 0); }
[data-aos="fade-left"] { transform: translate3d(26px, 0, 0); }
[data-aos="zoom-in"] { transform: scale(0.96); }
[data-aos].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
.gallery-zoom-trigger:focus-visible,
.lang-toggle:focus-visible,
.menu-toggle:focus-visible,
.button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 80%, white 20%);
  outline-offset: 3px;
}
.site-shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding-bottom: 48px; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 22px; margin-top: 16px; background: var(--topbar-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 220px; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand strong, .footer strong { display: block; font-family: "Cinzel", Georgia, serif; letter-spacing: 0.06em; font-size: 1.05rem; }
.brand span, .footer span, .muted { color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); transition: 180ms ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); background: var(--nav-hover); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.button, .lang-toggle, .menu-toggle {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: 12px 18px; font-weight: 800; font-family: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover, .lang-toggle:hover, .menu-toggle:hover { transform: translateY(-1px); }
.button-gold, .lang-toggle { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 70%, #fff1cf 30%) 0%, var(--gold-strong) 58%, #8f5a2a 100%); color: var(--button-text); box-shadow: 0 18px 32px rgba(191, 130, 52, 0.25); }
.button-ghost, .menu-toggle { background: var(--nav-hover); color: var(--text); border: 1px solid var(--line); }
.menu-toggle { display: none; }
.hero, .page-hero {
  position: relative; overflow: hidden; margin-top: 22px; min-height: 78vh; border-radius: 34px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-backdrop, .page-hero::before {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--hero-overlay-left) 0%, var(--hero-overlay-mid) 46%, var(--hero-overlay-right) 100%),
    url("./media/backgrounds/bg-faction-war.png") center/cover no-repeat;
  transform: scale(1.03);
}
.page-hero-features::before { background: linear-gradient(90deg, var(--features-overlay-left) 0%, var(--features-overlay-right) 100%), url("./media/backgrounds/bg-observatory.png") center/cover no-repeat; }
.page-hero-gallery::before { background: linear-gradient(90deg, var(--gallery-overlay-left) 0%, var(--gallery-overlay-right) 100%), url("./media/backgrounds/bg-kingdom-lake.png") center/cover no-repeat; }
.page-hero-download::before { background: linear-gradient(90deg, var(--download-overlay-left) 0%, var(--download-overlay-right) 100%), url("./media/backgrounds/bg-download.png") center/cover no-repeat; }
.hero-grid, .page-hero-copy { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.95fr; gap: 28px; align-items: center; min-height: 78vh; padding: 54px; }
.page-hero-copy { max-width: 820px; padding: 72px 54px 60px; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.76rem; font-weight: 800; }
h1, h2, h3 { margin: 0 0 16px; font-family: "Cinzel", Georgia, serif; line-height: 1.08; }
h1 { font-size: clamp(2.8rem, 6vw, 5.9rem); max-width: 10ch; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: 1.22rem; }
p, li, span { line-height: 1.7; }
.lead { max-width: 64ch; color: #efe1cf; font-size: 1.08rem; }
.hero-actions, .download-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-stats li, .feature-card, .pillar-card, .class-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.hero-stats strong { display: block; margin-bottom: 6px; font-size: 1.1rem; }
.panel { background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.hero-panel { padding: 24px; }
.panel-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 18px; color: var(--muted); }
.panel-screen {
  position: relative; overflow: hidden; border-radius: 26px; min-height: 560px; padding: 26px;
  background:
    linear-gradient(180deg, var(--screen-overlay-a) 0%, var(--screen-overlay-b) 100%),
    linear-gradient(160deg, var(--screen-overlay-c) 0%, var(--screen-overlay-d) 100%),
    url("./media/gallery/screen-overview-today.png") center/cover no-repeat;
}
.panel-screen::after { content: ""; position: absolute; inset: auto -14% -18% auto; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 197, 125, 0.24), transparent 62%); }
.screen-badge, .gallery-status, .feature-detail-meta {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--gold); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em;
}
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.feature-pills span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.mini-cards { display: grid; gap: 14px; }
.mini-cards article { padding: 18px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.mini-cards span { display: block; margin-bottom: 6px; color: var(--muted); }
.section { padding: 86px 0 18px; }
.section-scenic {
  position: relative;
  overflow: hidden;
  padding: 44px 28px;
  margin-top: 18px;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.section-scenic > * {
  position: relative;
  z-index: 1;
}
.section-scenic::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}
.section-scenic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 4, 5, 0.72), rgba(7, 4, 5, 0.82));
}
.section-scenic-coast::before { background-image: url("./media/backgrounds/bg-treasure-coast.png"); }
.section-scenic-arcane::before { background-image: url("./media/backgrounds/bg-arcane-forest.png"); }
.section-scenic-raid::before { background-image: url("./media/backgrounds/bg-raid-hall.png"); }
.section-scenic-war::before { background-image: url("./media/backgrounds/bg-war-camp.png"); }
.section-scenic-kingdom::before { background-image: url("./media/backgrounds/bg-kingdom-lake.png"); }
.section-scenic-observatory::before { background-image: url("./media/backgrounds/bg-observatory.png"); }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.cards-grid, .pillar-grid, .gallery-grid, .gallery-teaser, .class-grid, .faq-grid { display: grid; gap: 18px; }
.cards-grid-3, .gallery-teaser { grid-template-columns: repeat(3, 1fr); }
.split-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.section-copy { position: sticky; top: 110px; }
.pillar-grid { grid-template-columns: repeat(3, 1fr); }
.pillar-card span { display: inline-flex; margin-bottom: 18px; color: var(--gold); font-family: "Cinzel", Georgia, serif; font-size: 1.7rem; }
.chart-card { height: 420px; padding: 22px; }
.chart-card canvas { width: 100%; height: 100%; }
.chart-fallback { display: grid; gap: 12px; padding-top: 18px; }
.fallback-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.fallback-row div { width: 100%; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fallback-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold) 0%, #8b566c 100%); }
.feature-stack { display: grid; gap: 20px; }
.feature-detail { padding: 28px; }
.feature-detail-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.feature-detail-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}
.detail-list { margin: 18px 0 0; padding-left: 18px; color: var(--muted); }
.class-grid { grid-template-columns: repeat(3, 1fr); }
.class-card { text-align: center; padding: 0; overflow: hidden; }
.class-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.class-card strong { display: block; padding: 14px; }
.gallery-grid { grid-template-columns: repeat(2, 1fr); }
.faq-grid { grid-template-columns: repeat(2, 1fr); }
.faq-card h3 { margin-bottom: 10px; }
.gallery-card { overflow: hidden; }
.gallery-image { min-height: 280px; background-size: cover; background-position: center; }
.gallery-zoom-trigger {
  position: relative;
  width: 100%;
  border: 0;
  cursor: zoom-in;
}
.gallery-zoom-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
  opacity: 0;
  transition: opacity 180ms ease;
}
.gallery-zoom-trigger:hover::after { opacity: 1; }
.gallery-zoom-label {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.45);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}
.gallery-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, rgba(240, 197, 125, 0.09), rgba(77, 127, 164, 0.12)), linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); }
.gallery-placeholder span { display: inline-flex; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.07); }
.gallery-copy { padding: 22px; }
.slot-index { display: inline-block; margin-top: 14px; color: var(--muted); }
.download-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.download-panel, .cta-card { padding: 28px; }
.facts-list { margin: 18px 0 0; padding-left: 18px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 34px 0 10px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-cookie-button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.footer-legal a:hover, .footer-cookie-button:hover { color: var(--text); }
.footer-legal a,
.footer-cookie-button {
  text-underline-offset: 3px;
}
.legal-page { padding-top: 36px; }
.legal-card { padding: 28px; }
.legal-card + .legal-card { margin-top: 18px; }
.legal-card h2 { margin-bottom: 18px; }
.legal-card h3 { margin-top: 28px; margin-bottom: 10px; }
.legal-card ul { margin: 0; padding-left: 18px; }
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.legal-callout {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 206, 120, 0.28);
  background: rgba(255, 204, 110, 0.08);
  color: var(--text);
}
.placeholder-list span {
  display: block;
  font-weight: 700;
  color: var(--gold);
}
.consent-banner {
  position: fixed;
  inset: auto 18px 18px 18px;
  z-index: 50;
}
.consent-card {
  display: grid;
  grid-template-columns: 1.35fr auto;
  gap: 18px;
  padding: 22px;
}
.consent-copy strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.consent-copy p {
  margin: 0 0 14px;
  color: var(--muted);
}
.consent-copy a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-option {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.consent-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.consent-save {
  width: 100%;
  justify-content: center;
}
.story-card { min-height: 180px; }

.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 3, 6, 0.82);
  backdrop-filter: blur(10px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--panel-strong);
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.45);
  color: var(--text);
  cursor: pointer;
}
.lightbox-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #080608;
}
.lightbox-copy {
  padding: 22px 24px 26px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] {
    opacity: 1;
    transform: none !important;
  }
}

body[data-theme="light"] .brand strong,
body[data-theme="light"] .footer strong,
body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3 {
  text-shadow: none;
}

body[data-theme="light"] .panel-screen::after {
  background: radial-gradient(circle, rgba(217, 168, 95, 0.18), transparent 62%);
}

body[data-theme="light"] .topbar,
body[data-theme="light"] .panel,
body[data-theme="light"] .hero-stats li,
body[data-theme="light"] .feature-card,
body[data-theme="light"] .pillar-card,
body[data-theme="light"] .class-card,
body[data-theme="light"] .mini-cards article,
body[data-theme="light"] .section-scenic {
  backdrop-filter: blur(18px);
}

body[data-theme="light"] .section-scenic::after {
  background: linear-gradient(180deg, rgba(252, 244, 235, 0.84), rgba(252, 244, 235, 0.9));
}

body[data-theme="epic"] .brand strong,
body[data-theme="epic"] .footer strong,
body[data-theme="epic"] h1,
body[data-theme="epic"] h2,
body[data-theme="epic"] h3 {
  text-shadow: 0 0 18px rgba(255, 182, 78, 0.14);
}

body[data-theme="epic"] .topbar {
  box-shadow: 0 0 0 1px rgba(255, 193, 94, 0.06), 0 34px 90px rgba(0, 0, 0, 0.7);
}

body[data-theme="epic"] .hero,
body[data-theme="epic"] .page-hero,
body[data-theme="epic"] .panel {
  box-shadow: 0 0 0 1px rgba(255, 211, 124, 0.06), var(--shadow);
}

body[data-theme="epic"] .panel-screen::after {
  background: radial-gradient(circle, rgba(255, 172, 56, 0.34), transparent 62%);
}

body[data-theme="epic"] .section-scenic {
  background: rgba(12, 6, 8, 0.58);
}

body[data-theme="epic"] .section-scenic::after {
  background:
    linear-gradient(180deg, rgba(8, 4, 5, 0.72), rgba(8, 4, 5, 0.84)),
    radial-gradient(circle at top right, rgba(255, 184, 78, 0.1), transparent 26%);
}

body[data-theme="arcane"] .brand strong,
body[data-theme="arcane"] .footer strong,
body[data-theme="arcane"] h1,
body[data-theme="arcane"] h2,
body[data-theme="arcane"] h3 {
  text-shadow: 0 0 20px rgba(125, 177, 255, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

body[data-theme="arcane"] .topbar {
  box-shadow: 0 0 0 1px rgba(145, 199, 255, 0.08), 0 30px 90px rgba(2, 10, 28, 0.68);
  border-radius: 22px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(183, 228, 255, 0.08), rgba(183, 228, 255, 0.02)),
    rgba(7, 17, 35, 0.78);
}

body[data-theme="arcane"] .panel,
body[data-theme="arcane"] .hero,
body[data-theme="arcane"] .page-hero,
body[data-theme="arcane"] .hero-stats li,
body[data-theme="arcane"] .feature-card,
body[data-theme="arcane"] .pillar-card,
body[data-theme="arcane"] .class-card,
body[data-theme="arcane"] .mini-cards article,
body[data-theme="arcane"] .section-scenic {
  backdrop-filter: blur(20px);
}

body[data-theme="arcane"] .panel {
  background:
    linear-gradient(180deg, rgba(175, 222, 255, 0.05) 0%, rgba(131, 169, 255, 0.02) 100%),
    var(--panel);
  border-radius: 26px;
}

body[data-theme="arcane"] .panel-screen::after {
  background: radial-gradient(circle, rgba(132, 177, 255, 0.3), transparent 62%);
}

body[data-theme="arcane"] .button-gold,
body[data-theme="arcane"] .lang-toggle {
  background: linear-gradient(135deg, #d6ebff 0%, #89b8ff 56%, #4f78d8 100%);
}

body[data-theme="arcane"] .screen-badge,
body[data-theme="arcane"] .gallery-status,
body[data-theme="arcane"] .feature-detail-meta {
  color: #d3e8ff;
}

body[data-theme="arcane"] .brand img {
  filter: drop-shadow(0 0 16px rgba(120, 188, 255, 0.28));
}

body[data-theme="arcane"] .main-nav a {
  border-radius: 14px;
}

body[data-theme="arcane"] .main-nav a:hover,
body[data-theme="arcane"] .main-nav a.is-active {
  box-shadow: inset 0 0 0 1px rgba(154, 207, 255, 0.14);
}

body[data-theme="arcane"] .hero,
body[data-theme="arcane"] .page-hero {
  border-radius: 36px;
  overflow: hidden;
}

body[data-theme="arcane"] .hero::after,
body[data-theme="arcane"] .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(132, 177, 255, 0.06) 49.5%, transparent 50.5%, transparent 100%),
    linear-gradient(transparent 0%, rgba(132, 177, 255, 0.04) 49.5%, transparent 50.5%, transparent 100%);
  background-size: 100% 100%, 100% 140px;
  pointer-events: none;
  mix-blend-mode: screen;
}

body[data-theme="arcane"] .hero-grid {
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
}

body[data-theme="arcane"] .eyebrow {
  color: #bfdfff;
  letter-spacing: 0.22em;
}

body[data-theme="arcane"] .hero-copy .lead,
body[data-theme="arcane"] .section-heading p,
body[data-theme="arcane"] .feature-detail p,
body[data-theme="arcane"] .gallery-copy p,
body[data-theme="arcane"] .download-panel p {
  color: #c7d7ec;
}

body[data-theme="arcane"] .hero-stats {
  grid-template-columns: repeat(3, 1fr);
}

body[data-theme="arcane"] .hero-stats li,
body[data-theme="arcane"] .feature-card,
body[data-theme="arcane"] .pillar-card,
body[data-theme="arcane"] .class-card,
body[data-theme="arcane"] .mini-cards article,
body[data-theme="arcane"] .feature-detail {
  background:
    linear-gradient(180deg, rgba(194, 233, 255, 0.06), rgba(94, 126, 215, 0.04)),
    rgba(8, 18, 39, 0.72);
  border-color: rgba(151, 205, 255, 0.16);
}

body[data-theme="arcane"] .hero-stats li,
body[data-theme="arcane"] .feature-card,
body[data-theme="arcane"] .pillar-card,
body[data-theme="arcane"] .class-card {
  border-radius: 24px;
}

body[data-theme="arcane"] .hero-panel {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(216, 237, 255, 0.05), rgba(112, 132, 255, 0.04)),
    rgba(7, 14, 31, 0.62);
}

body[data-theme="arcane"] .panel-head {
  padding: 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-theme="arcane"] .panel-screen {
  border-radius: 30px;
  border: 1px solid rgba(154, 207, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(5, 9, 24, 0.28) 0%, rgba(5, 12, 28, 0.7) 100%),
    linear-gradient(160deg, rgba(30, 63, 116, 0.34) 0%, rgba(39, 14, 88, 0.5) 100%),
    url("./media/gallery/screen-overview-today.png") center/cover no-repeat;
}

body[data-theme="arcane"] .screen-badge {
  background: rgba(130, 187, 255, 0.12);
  border: 1px solid rgba(161, 213, 255, 0.18);
}

body[data-theme="arcane"] .feature-pills span {
  background: rgba(112, 163, 255, 0.08);
  border-color: rgba(151, 205, 255, 0.16);
  border-radius: 14px;
}

body[data-theme="arcane"] .mini-cards {
  grid-template-columns: 1fr;
}

body[data-theme="arcane"] .mini-cards article {
  position: relative;
  overflow: hidden;
}

body[data-theme="arcane"] .mini-cards article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #a7d2ff, #6f95ff);
}

body[data-theme="arcane"] .section-heading {
  max-width: 820px;
}

body[data-theme="arcane"] .feature-detail-top {
  justify-content: flex-start;
}

body[data-theme="arcane"] .feature-detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(132, 177, 255, 0.1);
  border-color: rgba(151, 205, 255, 0.18);
  box-shadow: inset 0 0 20px rgba(132, 177, 255, 0.08);
}

body[data-theme="arcane"] .feature-detail-meta {
  background: rgba(132, 177, 255, 0.08);
  border: 1px solid rgba(151, 205, 255, 0.16);
}

body[data-theme="arcane"] .gallery-card {
  border-radius: 28px;
}

body[data-theme="arcane"] .gallery-image {
  min-height: 320px;
}

body[data-theme="arcane"] .gallery-copy {
  padding: 24px;
}

body[data-theme="arcane"] .gallery-placeholder {
  background:
    radial-gradient(circle at center, rgba(129, 178, 255, 0.16), transparent 48%),
    linear-gradient(135deg, rgba(80, 138, 255, 0.12), rgba(158, 94, 255, 0.12)),
    rgba(8, 18, 39, 0.72);
}

body[data-theme="arcane"] .chart-card {
  background:
    linear-gradient(180deg, rgba(216, 237, 255, 0.05), rgba(112, 132, 255, 0.04)),
    rgba(7, 14, 31, 0.72);
}

body[data-theme="arcane"] .cta-card {
  background:
    radial-gradient(circle at top right, rgba(141, 191, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(216, 237, 255, 0.05), rgba(112, 132, 255, 0.04)),
    rgba(7, 14, 31, 0.74);
}

body[data-theme="arcane"] .section-scenic::after {
  background:
    linear-gradient(180deg, rgba(5, 12, 30, 0.76), rgba(6, 14, 34, 0.86)),
    radial-gradient(circle at top center, rgba(126, 164, 255, 0.12), transparent 26%);
}

body[data-theme="arcane"] .footer {
  padding-top: 44px;
}
@media (max-width: 1080px) {
  .hero-grid, .split-section, .download-layout, .cards-grid-3, .gallery-teaser, .pillar-grid { grid-template-columns: 1fr; }
  .section-copy { position: static; }
  .hero-stats, .gallery-grid, .class-grid, .faq-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { max-width: 12ch; }
  .legal-grid, .consent-card { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .site-shell { width: min(calc(100% - 18px), var(--max)); }
  .topbar { flex-wrap: wrap; border-radius: 30px; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; }
  .main-nav.is-open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .page-hero-copy { padding: 32px 22px; }
  .hero-stats, .gallery-grid, .class-grid, .faq-grid { grid-template-columns: 1fr; }
  .panel-screen { min-height: auto; }
  .footer { flex-direction: column; align-items: flex-start; }
  .consent-banner { inset: auto 10px 10px 10px; }
}
