:root {
  --night: #080713;
  --ink: #100d20;
  --panel: #171229;
  --panel-2: #211936;
  --gold: #f0c85a;
  --gold-soft: #f8e6a5;
  --violet: #8d5ec1;
  --violet-bright: #b98be4;
  --sea: #53c4c5;
  --ember: #e66c4e;
  --text: #f8f2e4;
  --muted: #b9afc9;
  --line: rgba(240, 200, 90, .28);
  --max: 1180px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--night); color: var(--text); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: var(--gold); color: #18101e; font-weight: 800; border-radius: .4rem; }
.skip-link:focus { top: 1rem; }

.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(240, 200, 90, .18); background: rgba(8, 7, 19, .86); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.brand-mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid var(--gold); background: linear-gradient(135deg, #332250, #151024); box-shadow: inset 0 0 0 4px #0e0a1a, 0 0 22px rgba(141, 94, 193, .25); }
.brand-mark span { transform: rotate(-45deg); color: var(--gold-soft); font-family: Cinzel, Georgia, serif; font-weight: 800; }
.brand-copy { line-height: 1.08; }
.brand-copy strong { display: block; color: var(--gold-soft); font: 700 1rem/1.1 Cinzel, Georgia, serif; letter-spacing: .05em; }
.brand-copy small { color: var(--muted); font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.main-nav a { padding: .7rem .75rem; color: #d9d0e3; font-size: .9rem; font-weight: 650; text-decoration: none; border-radius: .35rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-soft); background: rgba(141, 94, 193, .14); }
.nav-play { margin-left: .55rem; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 42px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: .4rem; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.25rem; border: 1px solid rgba(255,255,255,.15); border-radius: .4rem; background: linear-gradient(180deg, #4f3172, #2c1c46); color: #fff7da; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.24); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--violet-bright); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 30px rgba(92,50,135,.28); }
.button-gold { border-color: #ffe69a; background: linear-gradient(180deg, #f8d96e, #c98b25); color: #241425; text-shadow: 0 1px rgba(255,255,255,.28); }
.button-ghost { background: rgba(11, 9, 24, .55); border-color: rgba(248,230,165,.35); }
.button-small { min-height: 42px; padding: .55rem .9rem; font-size: .88rem; }

.hero { position: relative; min-height: 760px; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,6,16,.96) 0%, rgba(7,6,16,.77) 38%, rgba(7,6,16,.16) 72%), linear-gradient(0deg, var(--night) 0%, transparent 36%), radial-gradient(circle at 65% 35%, transparent 0 20%, rgba(6,5,14,.32) 70%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1; background: linear-gradient(transparent, var(--night)); }
.hero-content { padding-block: 9rem 6rem; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; color: var(--gold); font-weight: 800; font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { margin-top: 0; font-family: Cinzel, Georgia, serif; line-height: 1.12; text-wrap: balance; }
h1 { margin-bottom: 1.25rem; font-size: clamp(3rem, 7.8vw, 6.7rem); letter-spacing: -.045em; }
h1 .gold, h2 .gold { color: var(--gold-soft); }
.hero-lead { max-width: 650px; color: #e2dce8; font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin: 2rem 0 0; padding: 0; list-style: none; color: #d7cedf; font-size: .9rem; }
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts li::before { content: "◆"; color: var(--sea); font-size: .6rem; }

.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 9rem 0 5.5rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 25%, rgba(102,61,151,.32), transparent 34%), linear-gradient(135deg, #171029, #080713 70%); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; background-image: linear-gradient(rgba(240,200,90,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(240,200,90,.16) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent, #000 65%); }
.page-hero h1 { max-width: 900px; margin-bottom: 1rem; font-size: clamp(2.7rem, 7vw, 5.8rem); }
.page-hero p { max-width: 760px; margin: 0; color: #d4cbdd; font-size: clamp(1.05rem, 2vw, 1.28rem); }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-tight { padding-block: 4rem; }
.section-dark { background: #0c0918; }
.section-glow { background: radial-gradient(circle at 15% 50%, rgba(40,142,146,.12), transparent 28%), radial-gradient(circle at 85% 50%, rgba(141,94,193,.13), transparent 30%), #0b0917; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-head h2, .prose h2 { margin-bottom: 0; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.kicker { margin-bottom: .65rem; color: var(--sea); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }

.stat-ribbon { position: relative; z-index: 3; margin-top: -1px; border-block: 1px solid var(--line); background: rgba(18,13,35,.96); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { min-height: 132px; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { color: var(--gold-soft); font: 700 clamp(1.25rem, 2.4vw, 1.8rem)/1.2 Cinzel, Georgia, serif; }
.stat span { margin-top: .35rem; color: var(--muted); font-size: .88rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { min-height: 250px; padding: 1.6rem; border: 1px solid rgba(240,200,90,.18); border-radius: .65rem; background: linear-gradient(145deg, rgba(34,26,56,.82), rgba(15,12,29,.92)); box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1.4rem; border: 1px solid rgba(83,196,197,.45); background: rgba(35,119,123,.12); color: var(--sea); transform: rotate(45deg); }
.feature-icon span { transform: rotate(-45deg); font-size: 1.25rem; }
.feature h3 { margin-bottom: .65rem; color: var(--gold-soft); font-size: 1.28rem; }
.feature p { margin: 0; color: var(--muted); }

.story-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.story-split.reverse .story-copy { order: 2; }
.story-split.reverse .story-visual { order: 1; }
.story-copy h2 { margin-bottom: 1.2rem; font-size: clamp(2.2rem, 5vw, 4.25rem); }
.story-copy p { color: #c9c0d2; font-size: 1.05rem; }
.story-list { display: grid; gap: .85rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.story-list li { position: relative; padding-left: 1.6rem; color: #ded6e5; }
.story-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.story-visual { position: relative; }
.image-frame { position: relative; overflow: hidden; border: 1px solid rgba(248,230,165,.38); border-radius: .7rem; background: #0d0a19; box-shadow: 0 28px 80px rgba(0,0,0,.4), inset 0 0 0 5px #171126; }
.image-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(4,3,10,.5); }
.image-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-caption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: .4rem; background: rgba(8,7,19,.78); backdrop-filter: blur(8px); }
.image-caption strong { font-family: Cinzel, Georgia, serif; color: #fff4c9; }
.image-caption span { color: #c9c0d2; font-size: .8rem; }

.device-stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .55fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.desktop-device { padding: .75rem; border: 1px solid #69507d; border-radius: .8rem; background: #171320; box-shadow: 0 25px 70px rgba(0,0,0,.42); }
.desktop-bar { height: 34px; display: flex; align-items: center; gap: .38rem; padding-inline: .5rem; }
.desktop-bar i { width: 9px; height: 9px; border-radius: 50%; background: #71566f; }
.desktop-screen { position: relative; overflow: hidden; border-radius: .3rem; background: #05040a; }
.desktop-screen img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.game-hud { position: absolute; inset: .6rem .6rem auto; display: flex; justify-content: space-between; gap: .5rem; }
.hud-chip { padding: .35rem .55rem; border: 1px solid #d5b55c; background: rgba(19,13,32,.82); color: #ffe9a4; font-size: clamp(.52rem, 1vw, .72rem); box-shadow: 2px 2px #090611; }
.phone-device { width: min(100%, 290px); justify-self: center; padding: .65rem; border: 2px solid #766289; border-radius: 2rem; background: #17131d; box-shadow: 0 25px 70px rgba(0,0,0,.45); }
.phone-screen { position: relative; overflow: hidden; border-radius: 1.45rem; background: #07050d; }
.phone-screen img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.phone-screen::before { content: ""; position: absolute; left: 35%; right: 35%; top: .4rem; height: 5px; z-index: 3; border-radius: 1rem; background: #09070e; }
.device-note { margin-top: 1rem; color: var(--muted); text-align: center; font-size: .88rem; }

.region-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.region-card { position: relative; min-height: 330px; overflow: hidden; border: 1px solid rgba(240,200,90,.2); border-radius: .65rem; background: #171126; text-decoration: none; }
.region-card:nth-child(1), .region-card:nth-child(4) { grid-column: span 7; }
.region-card:nth-child(2), .region-card:nth-child(3) { grid-column: span 5; }
.region-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.region-card:hover img { transform: scale(1.04); }
.region-card::after { content: ""; position: absolute; inset: 20% 0 0; background: linear-gradient(transparent, rgba(6,5,14,.94)); }
.region-card div { position: absolute; z-index: 2; left: 1.35rem; right: 1.35rem; bottom: 1.3rem; }
.region-card h3 { margin: 0; color: #fff2bd; font-size: 1.45rem; }
.region-card p { margin: .35rem 0 0; color: #d2c8dc; font-size: .92rem; }

.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.path-card { padding: 2rem; border-top: 3px solid var(--violet); background: linear-gradient(180deg, rgba(39,29,62,.8), rgba(16,12,30,.8)); }
.path-card:nth-child(2) { border-color: var(--ember); }
.path-card:nth-child(3) { border-color: var(--sea); }
.path-card h3 { color: var(--gold-soft); font-size: 1.5rem; }
.path-card p { color: var(--muted); }

.timeline { position: relative; display: grid; gap: 1rem; max-width: 880px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 0 3.2rem; }
.timeline-item::before { content: ""; position: absolute; left: 7px; top: .55rem; width: 13px; height: 13px; transform: rotate(45deg); border: 2px solid var(--gold); background: var(--night); }
.timeline-item time { color: var(--sea); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.timeline-item h2, .timeline-item h3 { margin: .3rem 0 .45rem; color: var(--gold-soft); font-size: clamp(1.35rem, 3vw, 2rem); }
.timeline-item p { margin: 0; color: var(--muted); }

.prose { max-width: 850px; }
.prose h2 { margin-top: 3rem; margin-bottom: 1rem; font-size: 2rem; }
.prose h3 { margin-top: 2rem; color: var(--gold-soft); }
.prose p, .prose li { color: #c9c0d2; }
.prose a { color: var(--gold-soft); }
.prose strong { color: #fff5d5; }
.faq-list { display: grid; gap: .75rem; max-width: 900px; }
.faq-list details { border: 1px solid var(--line); border-radius: .5rem; background: rgba(26,20,43,.75); }
.faq-list summary { padding: 1.25rem 3.4rem 1.25rem 1.25rem; color: #fff2bd; font: 700 1.08rem/1.4 Cinzel, Georgia, serif; cursor: pointer; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); color: var(--sea); font: 400 1.5rem/1 Inter, sans-serif; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 1.25rem 1.3rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; align-items: start; }
.contact-copy, .contact-form { padding: clamp(1.4rem, 4vw, 2.3rem); border: 1px solid var(--line); border-radius: .65rem; background: linear-gradient(145deg, rgba(34,26,56,.82), rgba(15,12,29,.94)); }
.contact-copy h2, .contact-form h2 { font-size: 2rem; }
.contact-copy p { color: var(--muted); }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { color: #e9dfed; font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #58476b; border-radius: .35rem; background: #0c0918; color: var(--text); padding: .85rem .9rem; }
.field textarea { min-height: 170px; resize: vertical; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 1.7rem; margin: 0; color: var(--muted); }
.form-status.success { color: #78d7b2; }
.form-status.error { color: #ff9a88; }

.cta-band { position: relative; overflow: hidden; padding-block: 5.5rem; border-block: 1px solid var(--line); background: radial-gradient(circle at 50% 140%, rgba(83,196,197,.18), transparent 46%), linear-gradient(135deg, #24183a, #0d0a1a); text-align: center; }
.cta-band h2 { margin-bottom: 1rem; font-size: clamp(2.25rem, 6vw, 4.6rem); }
.cta-band p { max-width: 680px; margin: 0 auto 1.6rem; color: #cfc5d7; font-size: 1.08rem; }

.site-footer { padding: 4rem 0 2rem; border-top: 1px solid rgba(240,200,90,.16); background: #07060f; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .7fr; gap: 2.5rem; }
.footer-intro p { max-width: 420px; color: var(--muted); }
.footer-col h2 { color: var(--gold-soft); font-size: 1rem; }
.footer-col a { display: block; width: fit-content; margin: .45rem 0; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); color: #8f869c; font-size: .82rem; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav { position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); display: none; padding: .7rem; border: 1px solid var(--line); border-radius: .6rem; background: rgba(13,10,26,.98); box-shadow: 0 20px 45px rgba(0,0,0,.45); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: .85rem 1rem; }
  .nav-play { margin: .4rem 0 0; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand-copy small { display: none; }
  .hero { min-height: 700px; }
  .hero::before { background: linear-gradient(0deg, var(--night) 0%, rgba(7,6,16,.7) 55%, rgba(7,6,16,.25)), linear-gradient(90deg, rgba(7,6,16,.75), transparent); }
  .hero-content { padding-block: 7.5rem 4rem; }
  .hero-actions .button { width: 100%; }
  .feature-grid, .path-grid, .story-split, .footer-grid { grid-template-columns: 1fr; }
  .story-split.reverse .story-copy, .story-split.reverse .story-visual { order: initial; }
  .story-visual { width: min(100%, 290px); justify-self: center; }
  .image-caption { left: .6rem; right: .6rem; bottom: .6rem; padding: .65rem; }
  .image-caption span { display: none; }
  .wiki-map-preview { width: min(100%, 260px); margin-inline: auto; }
  .wiki-map-preview .image-caption { left: .55rem; right: .55rem; bottom: .55rem; padding: .6rem; }
  .device-stage { grid-template-columns: minmax(0, 1.55fr) minmax(88px, .55fr); gap: .75rem; align-items: start; }
  .device-stage > div { min-width: 0; }
  .desktop-device { padding: .38rem; border-radius: .5rem; }
  .desktop-bar { height: 18px; gap: .22rem; padding-inline: .25rem; }
  .desktop-bar i { width: 5px; height: 5px; }
  .game-hud { inset: .3rem .3rem auto; gap: .2rem; }
  .hud-chip { padding: .18rem .25rem; font-size: clamp(.35rem, 1.55vw, .56rem); }
  .hud-chip:last-child { display: none; }
  .phone-device { width: min(100%, clamp(88px, 24vw, 150px)); padding: .3rem; border-width: 1px; border-radius: 1.1rem; }
  .phone-screen { border-radius: .82rem; }
  .phone-screen::before { top: .22rem; height: 3px; }
  .device-note { margin-top: .55rem; font-size: .7rem; line-height: 1.4; }
  .region-card, .region-card:nth-child(n) { grid-column: 1 / -1; min-height: 210px; }
  .region-card div { left: 1rem; right: 1rem; bottom: .9rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .feature-grid, .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  h1 { font-size: 2.85rem; }
  .page-hero { padding-top: 7rem; }
  .section { padding-block: 4rem; }
}

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