@import url("./assets/ui/tokens.css");
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
html[data-language-pending] body { visibility: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; position: relative; isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 9% 4%, var(--gold), transparent 46%),
    radial-gradient(ellipse at 87% 28%, #c7a76baa, transparent 44%),
    radial-gradient(ellipse at 16% 70%, #c7a76b80, transparent 45%),
    radial-gradient(ellipse at 84% 94%, var(--gold), transparent 48%),
    linear-gradient(135deg, #c7a76b99, #c7a76b55 44%, #c7a76bcc 72%, #c7a76b80);
  opacity: .22;
  -webkit-mask: url("/assets/wow-doodles-layout.svg") 0 0 / 920px 920px repeat;
  mask: url("/assets/wow-doodles-layout.svg") 0 0 / 920px 920px repeat;
}
.hero-copy, .section-heading, .steps li, .faq-list {
  text-shadow: 0 1px 2px #000;
}
html[data-background="muted"] body::after { opacity: .08; }
html[data-background="none"] body::after { display: none; }
.download-button { text-shadow: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
#download-risk { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: clamp(20px, 4vw, 36px); border: 1px solid var(--gold); border-radius: 12px; background: var(--bg); color: var(--text); }
#download-risk::backdrop { background: #000b; }
#download-risk h2 { color: var(--gold); font-size: 28px; line-height: 1.2; margin-top: 0; }
#download-risk p { color: var(--text); }
.risk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.risk-actions button { flex: 1 1 180px; cursor: pointer; }
#risk-cancel { border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--text); min-height: 48px; padding: 12px; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.header { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; min-height: 96px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.header-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; width: auto; }
.header-logo img { display: block; width: 210px; height: auto; }
.header-beta { display: block; width: 192px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: help; }
.header-beta img { display: block; width: 100%; height: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 750; letter-spacing: -1px; }
.wordmark img { display: block; width: 48px; height: 48px; object-fit: contain; }
.wordmark b { color: var(--gold); font-weight: inherit; }
nav { display: flex; gap: 34px; align-items: center; font-size: 14px; }
.language-switch { display: inline-flex; gap: 2px; flex-shrink: 0; }
.language-switch button { color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 7px 6px; cursor: pointer; font-size: 12px; }
.language-switch button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
@media (max-width: 600px) { .header { flex-wrap: wrap; gap: 8px; padding-block: 12px; } .header nav { flex-wrap: wrap; gap: 8px; } }
.header nav { flex-wrap: wrap; }
nav a { padding-block: 10px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
nav a:hover, .footer a:hover { color: var(--gold); }
nav .nav-download { color: var(--text); }
.nav-download span { margin-left: 14px; color: var(--gold); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 42px; padding-block: 92px 78px; }
.eyebrow { color: var(--gold); letter-spacing: 2px; font-size: 11px; font-weight: 650; margin: 0 0 22px; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin: 0 8px 1px 0; }
h1 { font-size: clamp(36px, 4.3vw, 58px); line-height: 1.13; letter-spacing: -2px; margin: 0 0 24px; font-weight: 650; }
h1 span { color: var(--gold); }
.intro { color: var(--muted); font-size: 17px; max-width: 480px; margin: 0 0 30px; }
.download-button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 58px; padding: 12px 26px; background: var(--gold); border: 1px solid var(--gold); color: #211b10; font-weight: 700; border-radius: 5px; }
.download-button:hover { background: #f3cd85; }
.download-button[aria-disabled="true"] { opacity: .55; cursor: default; }
.download-button > span { font-size: 24px; font-weight: 400; }
.release-meta { font-size: 12px; color: var(--muted); min-height: 20px; margin: 10px 0; }
.local-note { font-size: 12px; color: var(--gold); max-width: 400px; margin-block: 12px; padding-left: 12px; border-left: 2px solid #6e5730; }
.account-note { font-size: 12px; color: var(--muted); margin: 22px 0 0; }
.retry { background: transparent; color: var(--gold); border: 1px solid var(--line); border-radius: 4px; padding: 7px 12px; cursor: pointer; }
.hero-art { min-height: 440px; padding-bottom: 30px; position: relative; display: grid; place-items: center; isolation: isolate; background: radial-gradient(ellipse, #51371944, transparent 66%); }
.hero-art > .eye-emblem { position: relative; display: block; width: 400px; max-width: 100%; height: auto; z-index: 1; filter: drop-shadow(0 18px 22px #0008); }
.eye-emblem img { display: block; width: 100%; height: auto; }
.eye-emblem .eye-energy { position: absolute; inset: 0; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .eye-emblem .eye-energy { display: none; } }
.art-ring { position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1px solid #e8bd6824; outline: 1px solid #e8bd680c; outline-offset: 23px; }
.art-ring::before, .art-ring::after { content: ""; position: absolute; background: #e8bd6820; }
.art-ring::before { height: 1px; width: 390px; top: 50%; left: -35px; }
.art-ring::after { width: 1px; height: 390px; left: 50%; top: -35px; }
.art-caption { position: absolute; bottom: 0; left: 10%; right: 10%; display: flex; justify-content: space-between; gap: 16px; color: #89847a; font-size: 9px; letter-spacing: 2px; }
.feature-strip { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; border-block: 1px solid var(--line); color: #c3bba9; font-size: 13px; }
.feature-strip span::before { content: "✦"; font-size: 10px; color: var(--gold); margin-right: 12px; }
.installation { padding-block: 76px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { font-size: 30px; font-weight: 550; line-height: 1.25; margin: 0; letter-spacing: -.6px; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.step-number { color: var(--gold); font-size: 12px; }
h3 { margin: 12px 0 10px; font-size: 19px; font-weight: 550; }
.steps p, .faq-list p { margin: 0; font-size: 14px; color: var(--muted); }
.questions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; padding-block: 10px 80px; }
.questions .section-heading { min-width: 0; }
.faq-engineer { display: block; width: min(100%, 420px); height: auto; margin: 24px auto 0; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 28px 18px 0; font-size: 15px; }
summary:hover { color: var(--gold); }
.faq-list p { padding-bottom: 20px; }
.footer { display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); min-height: 100px; font-size: 12px; color: var(--muted); }
.footer > a:last-child { margin-left: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 10px; background: var(--bg); z-index: 2; }
.skip-link:focus { top: 10px; }
@media (max-width: 850px) {
  .header nav { width: 100%; gap: 12px 22px; justify-content: space-between; }
  .wrap { width: calc(100% - 40px); }
  .hero { gap: 15px; padding-block: 58px; }
  .hero-art { min-height: 340px; }
  .hero-art > .eye-emblem { width: 320px; }
  .art-ring { width: 210px; height: 210px; }
  .art-ring::before, .art-ring::after { display: none; }
  .art-caption { letter-spacing: 1px; left: 0; right: 0; }
  .feature-strip { flex-wrap: wrap; justify-content: flex-start; gap: 14px 28px; }
  .steps { gap: 24px; }
}
@media (max-width: 600px) {
  body::after { -webkit-mask-size: 804px 804px; mask-size: 804px 804px; opacity: .19; }
  .header { min-height: 78px; }
  .header-brand { gap: 8px; }
  .header-logo img { width: 130px; }
  .header-beta { width: 128px; }
  .wordmark { font-size: 22px; gap: 7px; }
  .wordmark img { width: 36px; height: 36px; }
  nav { gap: 18px; font-size: 12px; }
  nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 30px; }
  h1 { font-size: 40px; }
  .intro { font-size: 16px; }
  .hero-art { min-height: 300px; margin-top: 28px; }
  .hero-art > .eye-emblem { width: 270px; max-width: 95%; }
  .art-ring { width: 190px; height: 190px; }
  .art-caption { bottom: 0; left: 5%; right: 5%; }
  .feature-strip { display: grid; grid-template-columns: 1fr 1fr; font-size: 11px; gap: 15px 8px; }
  .feature-strip span::before { margin-right: 6px; }
  .installation { padding-block: 48px; }
  h2 { font-size: 27px; }
  .steps, .questions { grid-template-columns: 1fr; gap: 26px; }
  .faq-engineer { width: min(72%, 240px); margin-top: 16px; }
  .steps { margin-top: 28px; }
  .questions { padding-bottom: 48px; }
  .footer { flex-wrap: wrap; padding-block: 24px; gap: 10px 20px; }
  .footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The lantern is stationary; only the light inside it moves. */
.theme-mobile { display: none; }
.theme-mobile > span { display: grid; place-items: center; width: 100%; height: 100%; }
.theme-mobile .elune-moon { display: block; width: 24px; height: 24px; }
.theme-lamp { position: absolute; z-index: 3; top: 80px; right: 0; width: 113.333px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lamp-scene { display: block; position: relative; width: 100%; aspect-ratio: 2 / 3; pointer-events: none; }
.theme-lamp .lamp-image { position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; filter: none; object-fit: contain; }
.lamp-on { opacity: 0; }
.lamp-glow { position: absolute; z-index: 2; left: 22%; top: 57%; width: 58%; height: 43%; border-radius: 50%; background: radial-gradient(ellipse, #ffc46465, #ed921123 45%, transparent 72%); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.lamp-flame { position: absolute; z-index: 3; left: 47.6%; top: 74.5%; width: 6.5%; height: 6.8%; border-radius: 60% 35% 45% 45%; background: radial-gradient(ellipse at 50% 80%, #fffde5 5%, #ffe2a3 30%, #ffb442 55%, #ee741500 80%); filter: blur(.4px); transform-origin: 50% 100%; opacity: 0; pointer-events: none; }
[data-theme="light"] .lamp-on { opacity: 1; }
[data-theme="light"] .lamp-off { opacity: 0; }
[data-theme="light"] .lamp-glow { opacity: 1; animation: lamp-glow 3.7s ease-in-out infinite alternate; }
[data-theme="light"] .lamp-flame { opacity: 1; animation: lamp-fire 1.7s ease-in-out infinite alternate; }
@keyframes lamp-fire { 0%,100% { transform: scale(.9,1) rotate(-5deg); opacity: .85; } 24% { transform: scale(1.07,.84) rotate(4deg); opacity: 1; } 53% { transform: scale(.82,1.14) rotate(-3deg); opacity: .8; } 78% { transform: scale(.97,.93) rotate(6deg); opacity: .95; } }
@keyframes lamp-glow { 0%,100% { opacity: .65; transform: scale(.96); } 38% { opacity: 1; transform: scale(1.07); } 71% { opacity: .82; transform: scale(1); } }
[data-theme="light"] body::before { background: radial-gradient(ellipse at 92% 9%, #ffefc3 0, transparent 55%), var(--bg); }
[data-theme="light"] body::after { background: var(--gold); opacity: .16; }
[data-theme="light"] .hero-copy, [data-theme="light"] .section-heading, [data-theme="light"] .steps li, [data-theme="light"] .faq-list { text-shadow: none; }
[data-theme="light"] .feature-strip, [data-theme="light"] .art-caption { color: var(--muted); }
[data-theme="light"] .hero-art { background: radial-gradient(ellipse, #d0a35125, transparent 68%); }
[data-theme="light"] .art-ring { border-color: #85602430; outline-color: #85602415; }
[data-theme="light"] .art-ring::before, [data-theme="light"] .art-ring::after { background: #85602425; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }
@media (max-width: 1100px) { .theme-lamp { width: 86.667px; } }
@media (max-width: 850px) { .theme-lamp { width: 80px; } }
@media (max-width: 600px) {
  .theme-lamp { display: none; }
  nav { gap: 10px; }
  .theme-mobile { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--gold); font-size: 23px; line-height: 1; cursor: pointer; }
}
@media (max-width: 360px) { nav .nav-questions { display: none; } }
@media (prefers-reduced-motion: reduce) { .lamp-flame, .lamp-glow { animation: none !important; } }

#header-account.signed-in { padding: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--gold, #b99856); border-radius: 50%; overflow: hidden; text-decoration: none; }
#header-account img { display: block; width: 100%; height: 100%; object-fit: cover; }
#header-account.signed-in span { font-size: 18px; font-weight: 600; }

.footer .info-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* Shared client illustrations. */
html[data-background="orcs"] body::after { mask-image: url("/assets/backgrounds/orcs.svg"); mask-size: 640px; }
html[data-background="night-elves"] body::after { mask-image: url("/assets/backgrounds/night-elves.svg"); mask-size: 640px; }
html[data-background="trolls"] body::after { mask-image: url("/assets/backgrounds/trolls.svg"); mask-size: 640px; }
html[data-background="dwarves"] body::after { mask-image: url("/assets/backgrounds/dwarves.svg"); mask-size: 640px; }
html[data-background="undead"] body::after { mask-image: url("/assets/backgrounds/undead.svg"); mask-size: 640px; }
