:root {
  color-scheme: dark;
  --ink: #1c121c;
  --deep: #160f19;
  --plum: #2b1a26;
  --paper: #fff1db;
  --soft: #e3cdbb;
  --muted: #c2a998;
  --gold: #fbd198;
  --ember: #f98c49;
  --line: #775043;
  --faint-line: #68463685;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.6 var(--body); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #fff6be; outline-offset: 4px; }
::selection { background: #f4ac66; color: #231420; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }
section[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: 1rem auto auto 1rem; background: var(--gold); color: #281620; padding: .6rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.eyebrow { color: var(--gold); font-size: .875rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.rule { display: flex; align-items: center; gap: .65rem; }
.rule::before { content: ""; width: 2rem; height: 1px; flex: 0 0 auto; background: #e8a16b; }
.button { display: inline-flex; min-height: 3.2rem; align-items: center; justify-content: center; gap: .65rem; padding: .65rem 1.15rem; border: 1px solid #ffcb8d; border-radius: .32rem; background: linear-gradient(180deg,#ffd994,#f1a85b); color: #2a1720; text-decoration: none; white-space: nowrap; font-size: .95rem; line-height: 1.25; font-weight: 760; box-shadow: 0 .35rem 1.2rem #120a1440; transition: background .18s ease, transform .18s ease; }
.button:hover { background: #ffdc9c; transform: translateY(-2px); }
.button-small { min-height: 2.6rem; padding-inline: .95rem; }
.button-line { color: var(--paper); background: #2718239c; border-color: #e5bb907d; }
.button-line:hover { color: var(--paper); background: #4b2d3b; }
.text-link { color: var(--gold); text-underline-offset: .23em; text-decoration-thickness: 1px; }
.text-link:hover { color: #fff0c6; }

.site-header { position: relative; z-index: 3; background: #211521; border-bottom: 1px solid #7c534e7d; }
.masthead { min-height: 4.7rem; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.wordmark { display: inline-flex; align-items: center; gap: .64rem; white-space: nowrap; text-decoration: none; color: #ffe5b5; }
.wordmark img { flex: 0 0 auto; }
.wordmark span { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1; letter-spacing: .015em; }
.primary-nav { display: flex; gap: clamp(1.1rem, 4vw, 3rem); align-items: center; }
.primary-nav a { color: var(--soft); text-decoration: none; font-size: .9rem; font-weight: 680; }
.primary-nav a:hover { color: var(--gold); }
.menu-button { display: none; border: 1px solid var(--line); background: var(--plum); color: var(--paper); padding: .42rem .7rem; border-radius: .28rem; cursor: pointer; min-height: 2.65rem; }

.hero { position: relative; isolation: isolate; min-height: clamp(37rem, 49vw, 46rem); overflow: hidden; background: #472335; display: flex; align-items: center; border-bottom: 1px solid #b87c55a1; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-media img { object-fit: cover; object-position: center 49%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #1a0e1cf5 1%, #201021df 22%, #27132485 47%, #2e142918 72%, #26132313 100%), linear-gradient(0deg, #1b111bd9 0%, #1b111b00 29%, #1b111b00 86%, #25162640 100%); }
.hero-inner { padding-block: 3.75rem 5.1rem; }
.hero h1 { font-size: clamp(5.5rem, 10.3vw, 10rem); line-height: .73; margin: 1.35rem 0 1.45rem -.055em; letter-spacing: -.088em; color: #fff0c9; text-shadow: 0 3px 18px #211020a0; }
.hero h1 span { color: #ffc578; }
.hero-intro { font: 500 clamp(1.53rem, 2.98vw, 2.45rem)/1.14 var(--display); letter-spacing: -.025em; color: var(--paper); }
.hero-body { color: #f5e0d1; max-width: 26rem; margin-block: .65rem 1.4rem; font-size: 1.06rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.availability { color: #f2d8ba; font-size: .88rem; margin-top: .92rem; }
.hero-location { position: absolute; pointer-events: none; bottom: 1rem; left: 50%; transform: translateX(-50%); text-align: right; font-size: .88rem; color: #fff2dd; text-shadow: 0 1px 6px #1a0f1c,0 2px 12px #1a0f1c; }
.hero-location span { color: #ffbd76; margin-right: .3rem; }

.stat-band { background: #291a26; border-bottom: 1px solid var(--faint-line); }
.stat-grid { background: linear-gradient(90deg, #3b2234aa, #2c1c2960 48%, #3b2234aa); display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.stat-grid p { display: flex; gap: .52rem; padding: .67rem 1rem; align-items: center; justify-content: center; color: var(--soft); font-weight: 650; text-align: center; }
.stat-grid p + p { border-left: 1px solid var(--faint-line); }
.stat-grid strong { color: var(--gold); font: 500 clamp(1.8rem, 3.5vw, 2.9rem)/1.15 var(--display); }

.section { padding-block: clamp(3.3rem, 6.8vw, 6.3rem); }
.section-heading { max-width: 46rem; margin-bottom: clamp(1.6rem, 3.8vw, 2.55rem); }
.section-heading h2, .join-banner h2 { margin: .15rem 0 .55rem; font-size: clamp(2.6rem, 5.3vw, 5rem); letter-spacing: -.063em; line-height: 1.02; }
.section-heading > p:last-child { color: var(--soft); max-width: 38rem; font-size: 1.06rem; }
.map-section { background: radial-gradient(ellipse at 80% 25%, #37232e, transparent 60%), var(--ink); }
.atlas { display: grid; grid-template-columns: minmax(0, 1.54fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.map-board { background: #2b1c27; border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; display: flex; flex-direction: column; }
.map-top, .map-bottom { min-height: 3.1rem; padding: .55rem .95rem; display: flex; justify-content: space-between; gap: .45rem 1.1rem; flex-wrap: wrap; align-items: center; }
.map-top strong { font-family: var(--display); font-size: 1.3rem; line-height: 1.15; }
.map-key, .map-bottom { color: var(--soft); font-size: .86rem; }
.map-key { display: flex; align-items: center; gap: .42rem; }
.map-key span { width: 1.5rem; border-top: 2px dashed #daa37a; }
.map-canvas { position: relative; min-height: 20rem; flex: 1; isolation: isolate; overflow: clip; background: radial-gradient(ellipse at 54% 60%, #654038, #48333c 47%, #332536 90%); border-block: 1px solid var(--faint-line); }
.map-contours { position: absolute; inset: -9%; opacity: .48; z-index: -1; background: repeating-radial-gradient(ellipse at 46% 69%, transparent 0%, transparent 5%, #ec9c702a 5.15%, transparent 5.6%, transparent 9.2%), repeating-radial-gradient(ellipse at 85% 7%, transparent 0%, transparent 9%, #eba78228 9.3%, transparent 10%, transparent 14%); transform: rotate(-8deg); }
.map-routes { position: absolute; width: 100%; height: 100%; inset: 0; pointer-events: none; }
.map-routes path { fill: none; stroke-width: 1.1px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.map-ridge { stroke: #b58878; opacity: .24; }
.map-water { stroke: #99c6b9; opacity: .38; }
.map-routes .map-lanes { stroke: #e2a77d; stroke-dasharray: 5 5; opacity: .82; }
.map-routes .map-path-highlight { stroke: #ffce8d; stroke-width: 2px; filter: drop-shadow(0 0 4px #ffad6e); }
.map-pin { position: absolute; left: var(--x); top: var(--y); display: flex; flex-direction: column; align-items: center; gap: .12rem; transform: translate(-50%, -.72rem); min-width: 3rem; min-height: 3rem; padding: .1rem .12rem; color: #ffefcf; border: 0; background: transparent; font-weight: 700; font-size: .875rem; line-height: 1.25; text-align: center; cursor: pointer; }
.map-pin i { width: 1.22rem; height: 1.22rem; display: block; background: #623c42; border: 2px solid #f8c28a; border-radius: 50%; box-shadow: 0 1px 5px #180e1c, inset 0 0 0 2px #392331; }
.map-pin span { padding: .17rem .3rem; border-radius: .2rem; background: #2b1a25eb; }
.map-pin:hover span, .map-pin[aria-pressed="true"] span { color: #291825; background: #ffd494; }
.map-pin[aria-pressed="true"] i { background: #ffcc82; box-shadow: 0 0 1.25rem #ffb467bf, inset 0 0 0 2px #653747; }
.map-geography { position: absolute; right: 1rem; bottom: .7rem; font-size: .8rem; letter-spacing: .16em; color: #c5ded3; font-family: var(--display); opacity: .7; pointer-events: none; }
.compass { position: absolute; top: .75rem; right: .95rem; display: grid; place-items: center; color: #f5c28e; pointer-events: none; text-shadow: 0 1px 4px #1d101a; line-height: .98; }
.compass b { font-size: .89rem; font-family: var(--display); }
.compass span { font-size: 2rem; }
.map-caption { color: var(--muted); font-size: .91rem; margin-top: .75rem; }
.district-info { min-width: 0; }
.district { margin-bottom: .7rem; height: 100%; overflow: hidden; background: linear-gradient(155deg, #362431 0%, #2b1b28 69%); border: 1px solid var(--line); border-radius: .65rem; }
.district > img { width: 100%; aspect-ratio: 2.12; object-fit: cover; border-bottom: 1px solid var(--faint-line); }
.district > div { padding: 1rem 1.2rem 1.2rem; }
.district h3 { margin-top: .12rem; font-size: clamp(1.8rem, 3.1vw, 2.65rem); letter-spacing: -.045em; line-height: 1.04; }
.district h3 + p { margin-top: .5rem; color: var(--soft); }
.district-tags { margin: .75rem 0 .75rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.district-tags li { color: #ffe7c6; background: #56343b; border: 1px solid #8d5a4f90; border-radius: .23rem; padding: .15rem .45rem; font-size: .875rem; }
.district-note { color: var(--muted); font-size: .875rem; border-top: 1px solid var(--faint-line); padding-top: .65rem; }
[data-enhanced] .district { margin: 0; }

.guide-section { background: linear-gradient(130deg,#251926, #211723 60%,#2c1d2b); border-block: 1px solid var(--faint-line); }
.guide-grid { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.guide-grid > li { display: grid; grid-template-columns: minmax(6.5rem,.76fr) minmax(0,1fr); border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; background: #2e1f2d; min-height: 12.4rem; }
.guide-media { position: relative; display: flex; color: var(--paper); min-height: 100%; background: #160f19; }
.guide-media img { width: 100%; height: 100%; min-height: 10rem; object-fit: cover; }
.guide-media:hover img { filter: brightness(1.11); }
.guide-media:focus-visible { outline-offset: -4px; z-index: 1; }
.guide-media span { position: absolute; inset: auto 0 0; padding: .35rem .55rem; color: #ffe4c4; background: #231621ef; font-size: .8rem; line-height: 1.35; }
.guide-copy { padding: 1.12rem 1.1rem; align-self: center; }
.guide-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.77rem); letter-spacing: -.035em; line-height: 1.12; margin-bottom: .42rem; }
.guide-copy p { color: var(--soft); }
.controls { margin-top: 1rem; color: var(--soft); border: 1px solid var(--line); border-radius: .48rem; background: #2b1d29; }
.controls summary { padding: .85rem 1rem; color: var(--paper); cursor: pointer; font-weight: 670; }
.controls summary:hover { color: var(--gold); }
.control-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; padding: .2rem 1rem 1rem; }
.control-grid h3 { font-size: 1.25rem; color: var(--gold); margin-bottom: .2rem; }
kbd { font-size: .87rem; white-space: nowrap; color: var(--paper); background: #241823; border: 1px solid #796057; box-shadow: 0 1px 0 #796057; border-radius: .25rem; padding-inline: .28rem; }

.events-section { background: radial-gradient(ellipse at 25% 70%,#472b3a80,transparent 62%),var(--ink); }
.event-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: 1rem; }
.event-feature, .event-item { border-radius: .6rem; border: 1px solid var(--line); overflow: hidden; background: #2f202c; }
.event-feature > img { width: 100%; aspect-ratio: 2.6; object-fit: cover; object-position: center 58%; border-bottom: 1px solid var(--faint-line); }
.event-feature-copy, .event-item > div { padding: 1.05rem 1.2rem 1.15rem; }
.event-feature h3, .event-item h3, .raid-teaser h3 { font-size: clamp(1.5rem, 3.25vw, 2.58rem); letter-spacing: -.045em; line-height: 1.07; margin-block: .1rem .42rem; }
.event-feature p, .event-item p, .raid-teaser p { color: var(--soft); }
.event-feature .eyebrow, .event-item .eyebrow, .raid-teaser .eyebrow { color: var(--gold); }
.event-item h3 { font-size: clamp(1.5rem, 2.4vw, 1.92rem); }
.event-stack { display: grid; gap: 1rem; }
.event-item { display: grid; grid-template-columns: minmax(5rem,.42fr) minmax(0,1fr); }
.event-item img { width: 100%; height: 100%; object-fit: cover; }
.schedule { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .65rem; color: var(--gold); background: #452930; border: 1px solid #8b5749; padding: .54rem .7rem; border-radius: .27rem; margin-top: .8rem; }
.schedule strong { color: #ffe3a7; }
.schedule time { font-variant-numeric: tabular-nums; }
#festival-zone, .event-feature .event-note { font-size: .875rem; color: var(--muted); }
.event-feature .event-note { margin-top: .5rem; }
.raid-teaser { margin-top: 1rem; text-wrap: pretty; display: flex; align-items: center; gap: 1rem; padding: .95rem 1.1rem; background: #2d1e2b; border: 1px solid var(--line); border-radius: .6rem; }
.raid-crest { flex: 0 0 auto; }
.raid-teaser h3 { font-size: clamp(1.38rem, 2.9vw, 1.85rem); }

.join-banner { color: #261923; background: radial-gradient(ellipse at 60% -135%, #ffedbe 25%, transparent 78%), linear-gradient(106deg, #b15f51, #e89e64 65%, #da8450); border-block: 1px solid #ffc588; }
.join-inner { min-height: 12.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.join-banner .eyebrow { color: #341e27; }
.join-banner .rule::before { background: #65313a; }
.join-banner h2 { margin-bottom: 0; color: #261923; }
.join-banner .button { background: #2b1928; color: #ffe0a8; border-color: #392133; }
.join-banner .button:hover { background: #4b293a; }
.site-footer { background: #1a111b; border-top: 1px solid #713f4b; }
.footer-inner { min-height: 5.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.2rem; }
.footer-inner p, .footer-inner a:last-child { color: var(--soft); font-size: .92rem; }

.image-dialog { max-width: min(92vw,68rem); max-height: 92vh; overflow: auto; border: 1px solid var(--line); background: var(--deep); padding: .35rem; border-radius: .55rem; color: var(--paper); }
.image-dialog::backdrop { background: #160e1acf; }
.image-dialog figure { margin: 0; }
.image-dialog figure img { display: block; width: 100%; max-height: 74vh; border-radius: .3rem; object-fit: contain; }
.image-dialog figcaption { padding: .62rem 1rem; }
.image-close { position: absolute; inset: .75rem .75rem auto auto; width: 2.75rem; height: 2.75rem; border-radius: .35rem; border: 1px solid var(--gold); color: var(--paper); background: #261826; font-size: 1.65rem; cursor: pointer; line-height: 1; }

@media (max-width: 65rem) {
  .shell { width: min(100% - 3rem,76rem); }
  .guide-grid > li { grid-template-columns: 1fr; min-height: 0; }
  .guide-media { aspect-ratio: 2; min-height: 0; }
  .guide-media img { min-height: 0; }
  .guide-copy { align-self: start; }
}
@media (max-width: 48rem) {
  .masthead { min-height: 4.1rem; }
  .shell { width: calc(100% - 2.25rem); }
  .masthead { gap: .55rem; flex-wrap: wrap; padding-block: .5rem; }
  [data-enhanced] .masthead { flex-wrap: nowrap; }
  .wordmark img { width: 2.1rem; height: 2.1rem; }
  .wordmark span { font-size: 1.18rem; }
  .button-small { padding-inline: .55rem; font-size: .86rem; }
  .primary-nav { order: 3; flex-basis: 100%; gap: .8rem 1.3rem; flex-wrap: wrap; justify-content: center; }
  [data-enhanced] .primary-nav:not([data-open]) { display: none; }
  [data-enhanced] .primary-nav { position: absolute; top: 100%; inset-inline: 0; z-index: 4; padding: .7rem 1.1rem 1.05rem; background: #281b27; border-bottom: 1px solid var(--line); }
  [data-enhanced] .primary-nav a { color: var(--paper); padding-block: .3rem; }
  [data-enhanced] .menu-button { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; }
  .hero { min-height: 0; }
  .hero-media img { object-position: 61% center; }
  .hero::after { background: linear-gradient(90deg,#1d1221df,#2815277c 83%),linear-gradient(0deg,#1a101cdd,transparent 74%); }
  .hero-inner { padding-block: 3.2rem 3.7rem; }
  .hero h1 { font-size: clamp(5rem,16vw,7.5rem); margin-block: 1.35rem 1.2rem; }
  .hero-location { bottom: .65rem; }
  .stat-grid p { flex-direction: column; gap: 0; font-size: .88rem; padding: .6rem .45rem; line-height: 1.2; }
  .section { padding-block: 3.1rem; }
  .atlas, .event-grid { grid-template-columns: minmax(0,1fr); }
  .district > img { aspect-ratio: 2.45; }
  .map-canvas { min-height: 19rem; }
  .map-top, .map-bottom { padding-inline: .65rem; }
  .map-pin { font-size: .84rem; }
  .control-grid { grid-template-columns: 1fr; gap: .8rem; }
  .join-inner { min-height: 0; flex-wrap: wrap; padding-block: 2rem; }
}
@media (max-width: 29rem) {
  .wordmark { gap: .35rem; }
  .wordmark img { width: 1.86rem; height: 1.86rem; }
  .wordmark span { font-size: 1rem; }
  .menu-button { padding-inline: .45rem; font-size: .84rem; }
  .masthead { gap: .45rem; }
  .hero .eyebrow { font-size: .8rem; letter-spacing: .08em; }
  .hero-body { font-size: 1rem; }
  .hero-actions .button { font-size: .9rem; padding-inline: .72rem; }
  .guide-grid { grid-template-columns: minmax(0,1fr); }
  .event-feature-copy, .event-item > div { padding-inline: .85rem; }
  .event-item .eyebrow { letter-spacing: .075em; }
}
@media (max-width: 23rem) {
  .masthead > .play-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.map-pin[data-district="frostglass"] { --x:22%; --y:28%; }
.map-pin[data-district="skywalk"] { --x:52%; --y:16%; }
.map-pin[data-district="cinder"] { --x:72%; --y:28%; }
.map-pin[data-district="circuit"] { --x:21%; --y:68%; }
.map-pin[data-district="valley"] { --x:51%; --y:64%; }
.map-pin[data-district="tideharbor"] { --x:84%; --y:68%; }
.map-pin:disabled { cursor: default; }
