/* Loomwater Festival 2027 */

:root {
  --ink: #101431;
  --ink-2: #171c42;
  --ink-3: #1f2552;
  --line: #343b73;
  --text: #f6f0e4;
  --muted: #c5c8e0;
  --amber: #ffb547;
  --coral: #ff7a59;
  --plum: #6b2f6e;
  --teal: #5fd1c1;
  --main: #ffb547;
  --river: #6ec3f0;
  --lantern: #f59ad8;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(3, 5, 20, .45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: clip;
}

img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-family: var(--display); font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffd083; }
button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ink); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 40px); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(255, 181, 71, .3);
}
.btn-primary:hover { background: #ffc86e; color: var(--ink); transform: translateY(-2px); }
.btn-primary:disabled { background: #6c6f8f; color: #101431; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { border-color: rgba(246, 240, 228, .6); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-block { width: 100%; }

.link-button {
  background: none; border: 0; padding: 0;
  color: var(--amber); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 20, 49, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; flex: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
}
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--amber); }
.site-nav a[href="#tickets"] { background: var(--amber); color: var(--ink); }
.site-nav a[href="#tickets"]:hover { background: #ffc86e; color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center; gap: .55rem;
  min-height: 44px;
  padding: .5rem .9rem;
  background: transparent;
  border: 2px solid rgba(246, 240, 228, .5);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 720px) and (max-width: 980px) {
  .site-nav a { padding: .5rem .6rem; font-size: .92rem; }
  .brand { font-size: 1.2rem; }
}

@media (max-width: 719.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .75rem 16px 1rem; gap: .25rem; }
  .site-nav a { padding: .8rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .site-nav a[href="#tickets"] { text-align: left; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(226, 97, 79, .28), transparent 65%),
    radial-gradient(700px 500px at 10% 90%, rgba(107, 47, 110, .45), transparent 70%),
    var(--ink);
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 90px;
  background: repeating-linear-gradient(90deg, rgba(255, 181, 71, .12) 0 2px, transparent 2px 18px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
  pointer-events: none;
}
.hero-inner {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative; z-index: 1;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 6.4rem);
  letter-spacing: -.02em;
  line-height: .95;
  margin-bottom: 1.2rem;
}
.hero-title span {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}
.hero-dates {
  display: inline-block;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 700;
  padding: .35rem 1rem;
  border: 2px solid rgba(255, 181, 71, .6);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-promise { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; color: var(--muted); }
.hero-facts strong { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--text); line-height: 1; }

.hero-poster {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(1.5deg);
  aspect-ratio: 4 / 5;
  max-height: 640px;
  justify-self: center;
  width: 100%;
  max-width: 480px;
}
.hero-poster svg { display: block; width: 100%; height: 100%; }

.lantern { transform-box: fill-box; transform-origin: center; animation: drift 7s ease-in-out infinite; }
.lantern.l2 { animation-duration: 9s; animation-delay: -2s; }
.lantern.l3 { animation-duration: 8s; animation-delay: -4s; }
.lantern.l4 { animation-duration: 10s; animation-delay: -1s; }
.lantern.l5 { animation-duration: 11s; animation-delay: -6s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(6px, -14px) rotate(3deg); }
}
.poster-beams { animation: beams 5s ease-in-out infinite; transform-origin: 315px 420px; }
@keyframes beams {
  0%, 100% { transform: rotate(-4deg); opacity: .85; }
  50% { transform: rotate(4deg); opacity: 1; }
}
.poster-shimmer { animation: shimmer 3.5s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .3; } }

@media (max-width: 440px) {
  .hero-dates { border-radius: 14px; font-size: 1rem; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-poster { max-width: 420px; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--ink-2); border-block: 1px solid rgba(255, 255, 255, .05); }
.section-head { max-width: 760px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-intro { color: var(--muted); font-size: 1.1rem; }

/* ---------- Line-up ---------- */
.lineup-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.act-card {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  text-align: left;
  padding: 0;
  background: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.act-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255, 181, 71, .5); }
.act-card:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.act-art { display: block; aspect-ratio: 4 / 3; }
.act-art svg { display: block; width: 100%; height: 100%; }
.act-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1; }
.act-genre { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--amber); }
.act-name { font-family: var(--display); font-size: 1.4rem; font-weight: 700; line-height: 1.15; color: var(--text); }
.act-desc { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.act-meta {
  margin-top: auto; padding-top: .7rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  font-size: .88rem; font-weight: 600; color: var(--text);
}
.act-more { color: var(--amber); white-space: nowrap; }
.act-card:hover .act-more { text-decoration: underline; }

/* ---------- Schedule ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-bottom: 1.25rem; }
.filter-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-group legend { font-weight: 700; margin-bottom: .5rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 42px;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--amber); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }
.chip .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .45rem; vertical-align: 0; }

.schedule-status { color: var(--muted); font-size: .95rem; min-height: 1.6em; }

.schedule { display: grid; gap: 2rem; }
.day-block h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: .9rem;
}
.day-block h3 small { font-family: var(--font); font-size: .9rem; font-weight: 600; color: var(--muted); }
.set-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.set {
  --stage: var(--main);
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, .06);
  border-left: 5px solid var(--stage);
  border-radius: 14px;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.set[data-stage="river"] { --stage: var(--river); }
.set[data-stage="lantern"] { --stage: var(--lantern); }
.set-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.set-act { min-width: 0; }
.set-name {
  background: none; border: 0; padding: 0; text-align: left;
  font-weight: 700; font-size: 1.08rem; color: var(--text);
  cursor: pointer; text-decoration: underline; text-decoration-color: rgba(246, 240, 228, .3); text-underline-offset: 4px;
}
.set-name:hover { color: var(--amber); text-decoration-color: currentColor; }
.set-genre { display: block; color: var(--muted); font-size: .9rem; }
.set-star { color: var(--amber); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-left: .4rem; white-space: nowrap; }
.stage-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: .88rem; font-weight: 700; white-space: nowrap;
}
.stage-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--stage); }
.set.is-highlighted {
  background: #2b3170;
  box-shadow: 0 0 0 2px var(--stage), 0 10px 30px rgba(0, 0, 0, .3);
  transform: translateX(4px);
}
.set.is-dimmed { opacity: .55; }

.schedule-empty {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.6rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.schedule-empty svg { width: 56px; height: 56px; flex: none; color: var(--amber); }
.schedule-empty p { margin: 0; }
.schedule-empty strong { color: var(--text); display: block; }
.empty-note { display: block; margin-top: .4rem; }
.empty-note:empty { display: none; }

@media (max-width: 640px) {
  .set { grid-template-columns: 1fr auto; gap: .35rem .75rem; }
  .set-time { grid-column: 1; }
  .set-stage { grid-column: 2; grid-row: 1; justify-self: end; }
  .set-act { grid-column: 1 / -1; }
}

/* ---------- Tickets ---------- */
.ticket-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.ticket-list { display: grid; gap: .9rem; min-width: 0; }
.ticket-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.2rem 1.3rem;
  background: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
}
.ticket-row-addon { border-style: dashed; border-color: rgba(95, 209, 193, .5); }
.ticket-row.has-error { border-color: #ff8a8a; box-shadow: 0 0 0 1px #ff8a8a; }
.ticket-info h3 { margin-bottom: .25rem; font-size: 1.15rem; }
.ticket-info p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px; background: rgba(95, 209, 193, .15); color: var(--teal); vertical-align: middle; margin-left: .3rem; }
.ticket-price { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-btn {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  font-size: 1.4rem; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { background: rgba(255, 255, 255, .08); color: var(--amber); }
.qty-btn:focus-visible { outline-offset: -3px; border-radius: 999px; }
.qty input {
  width: 3rem; height: 44px;
  border: 0; background: transparent;
  text-align: center; font-weight: 700; font-size: 1.1rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible { outline-offset: -3px; }

.friends {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(107, 47, 110, .55), rgba(226, 97, 79, .25));
  border: 1px solid rgba(255, 181, 71, .35);
  cursor: pointer;
  position: relative;
}
.friends input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; left: 1.3rem; top: 1.1rem; cursor: pointer; }
.friends-box {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  border: 2px solid var(--text);
  display: grid; place-items: center;
  margin-top: 1px;
}
.friends input:checked + .friends-box { background: var(--amber); border-color: var(--amber); }
.friends input:checked + .friends-box::after { content: ""; width: 7px; height: 13px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.friends input:focus-visible + .friends-box { outline: 3px solid var(--amber); outline-offset: 3px; }
.friends-note { display: block; color: var(--muted); font-size: .95rem; }

.order-summary {
  position: sticky; top: calc(var(--header-h) + 16px);
  padding: 1.5rem;
  background: var(--text);
  color: var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.order-summary h3 { font-family: var(--display); font-size: 1.6rem; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: .98rem; }
.summary-lines .empty { color: #4a4e6b; font-style: italic; }
.summary-totals { margin: 0 0 1rem; padding-top: .9rem; border-top: 2px dashed #c8bfae; display: grid; gap: .3rem; }
.summary-totals div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-totals dt, .summary-totals dd { margin: 0; }
.discount-line dd { color: #1d6b3a; font-weight: 700; }
.summary-totals .grand { font-size: 1.5rem; font-weight: 800; font-family: var(--display); margin-top: .3rem; }
.summary-totals dd { font-variant-numeric: tabular-nums; }
.order-messages:empty { display: none; }
.order-messages { margin-bottom: 1rem; display: grid; gap: .5rem; }
.order-messages p {
  margin: 0;
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .7rem .85rem;
  background: #ffe3dd;
  color: #7a1a0c;
  border-left: 4px solid #c7361c;
  border-radius: 10px;
  font-size: .95rem; font-weight: 600;
}
.order-messages p::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #c7361c; color: #fff; font-size: .8rem; font-weight: 800; margin-top: 2px; }
.order-summary .btn-primary { box-shadow: none; background: var(--ink); color: var(--text); }
.order-summary .btn-primary:hover { background: #2b3170; color: var(--text); }
.order-summary .btn-primary:disabled { background: #b9b4a8; color: #34354a; }
.order-summary :focus-visible { outline-color: var(--plum); }
.order-confirm { margin: .9rem 0 0; font-size: .95rem; color: #1d4d2f; font-weight: 600; }
.order-confirm:empty { display: none; }

@media (max-width: 900px) {
  .ticket-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 560px) {
  .ticket-row { grid-template-columns: 1fr auto; }
  .ticket-info { grid-column: 1 / -1; }
  .ticket-price { font-size: 1.4rem; }
}

/* ---------- Site map ---------- */
.map-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.5rem; align-items: start; }
.map-frame {
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .08);
}
.site-map { display: block; width: 100%; height: auto; }
.map-label { fill: #f6f0e4; font-family: var(--font); font-size: 15px; font-weight: 700; }
.map-label-dark { fill: #101431; }
.map-stage { cursor: pointer; outline: none; }
.map-stage .stage-glow { fill: transparent; stroke: transparent; stroke-width: 3; transition: fill .2s ease, stroke .2s ease; }
.map-stage .stage-shape { stroke: #101431; stroke-width: 2; }
.map-stage .stage-base { fill: #101431; }
.map-stage[data-stage="main"] .stage-shape { fill: var(--main); }
.map-stage[data-stage="river"] .stage-shape { fill: var(--river); }
.map-stage[data-stage="lantern"] .stage-shape { fill: var(--lantern); }
.map-stage-label { paint-order: stroke; stroke: #101431; stroke-width: 4px; stroke-linejoin: round; font-size: 16px; }
.map-stage.is-active .stage-glow,
.map-stage:hover .stage-glow { fill: rgba(255, 255, 255, .16); stroke: #fff; stroke-dasharray: 8 6; }
.map-stage:focus-visible .stage-glow { fill: rgba(255, 255, 255, .2); stroke: var(--amber); stroke-width: 5; stroke-dasharray: none; }
.map-stage.is-active .stage-shape { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .7)); }

.map-panel {
  padding: 1.5rem;
  background: var(--ink-3);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
}
.map-legend { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; font-size: .96rem; }
.map-legend li { display: flex; align-items: center; gap: .7rem; }
.key { flex: none; width: 18px; height: 18px; border-radius: 5px; }
.key-stage { background: conic-gradient(var(--main) 0 33%, var(--river) 0 66%, var(--lantern) 0); border-radius: 50%; }
.key-camp { background: #2f5a3d; border: 2px dashed #8fd0a1; }
.key-food { background: var(--plum); border: 2px solid #e7a6e0; }
.key-wc { background: #e8eef9; }
.key-gate { background: #f0e6d2; }
.stage-readout { padding: 1rem 1.1rem; border-radius: 14px; background: rgba(0, 0, 0, .2); border-left: 5px solid var(--line); min-height: 7rem; }
.stage-readout.stage-main { border-left-color: var(--main); }
.stage-readout.stage-river { border-left-color: var(--river); }
.stage-readout.stage-lantern { border-left-color: var(--lantern); }
.stage-readout h4 { margin: 0 0 .3rem; font-size: 1.15rem; }
.stage-readout p { margin: 0 0 .5rem; color: var(--muted); font-size: .95rem; }
.stage-readout ul { margin: 0; padding: 0; list-style: none; font-size: .92rem; display: grid; gap: .2rem; }
.stage-readout li.is-current { color: var(--amber); font-weight: 700; }
.readout-hint { margin: 0; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.accordion { display: grid; gap: .75rem; }
.accordion details {
  background: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  overflow: hidden;
}
.accordion details[open] { border-color: rgba(255, 181, 71, .45); }
.accordion summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 700; font-size: 1.1rem;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion summary:hover { color: var(--amber); }
.accordion summary:focus-visible { outline-offset: -3px; border-radius: 16px; }
.answer { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.answer p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0d24;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 3.5rem 0 1.5rem;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-brand { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address strong { color: var(--text); }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; }
.footer-base p { margin: 0; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---------- Dialog ---------- */
.act-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--ink-2);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  overflow: auto;
}
.act-dialog::backdrop { background: rgba(5, 7, 22, .75); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.act-dialog[open] { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog-inner { display: grid; grid-template-columns: 1fr 1.2fr; position: relative; }
.dialog-art svg { display: block; width: 100%; height: 100%; min-height: 240px; }
.dialog-body { padding: 2rem 1.75rem 1.75rem; }
.dialog-genre { color: var(--amber); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; margin-bottom: .4rem; }
.dialog-body h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); padding-right: 2rem; }
.dialog-body > p { color: var(--muted); }
.dialog-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1.25rem 0; }
.dialog-facts div { background: var(--ink-3); border-radius: 12px; padding: .7rem .8rem; }
.dialog-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.dialog-facts dd { margin: .2rem 0 0; font-weight: 700; line-height: 1.3; }
.dialog-more { font-size: .95rem; }
.dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(16, 20, 49, .85);
  color: var(--text);
  cursor: pointer;
}
.dialog-close:hover { background: var(--amber); color: var(--ink); }
.dialog-close svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-art svg { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .dialog-facts { grid-template-columns: 1fr 1fr; }
  .dialog-body { padding: 1.4rem 1.25rem 1.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .lantern, .poster-beams, .poster-shimmer { animation: none !important; }
  .btn-primary:hover, .act-card:hover, .set.is-highlighted { transform: none; }
}
