/* Shared Pokélandia palette, matched to the personality and knowledge quizzes. */
:root {
  color-scheme: dark;
  --ink: #f3f3f5;
  --muted: #c0bfd1;
  --night: #201d36;
  --night-soft: #313157;
  --panel: rgba(49, 49, 87, .92);
  --line: rgba(243, 243, 245, .16);
  --accent: #cf224f;
  --accent-deep: #a2274a;
  --highlight: #ff91b1;
}
.brand-with-logo { flex-direction: column; align-items: center; gap: 2px; }
.brand-logo { display: block; width: 150px; height: auto; object-fit: contain; }
.brand-with-logo small { margin-top: 0; font-size: 10px; }
.topbar:has(.brand-with-logo) { padding-top: 16px; padding-bottom: 16px; }
.kiosk-brand .brand-logo { margin: 0 auto 8px; width: 165px; }
.kiosk-brand { margin-top: 0; margin-bottom: 20px; }
.kiosk-brand > span { display: block; font-size: 12px; letter-spacing: .18em; }
.print-card .print-logo { display: block; width: 100px; height: auto; margin: 0 auto 10px; }
.map-panel:has(.map-tools:not([hidden])) { padding: 24px; }
.map-tools { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 20px; margin-bottom: 24px; }
.map-tools h2 { font-size: 24px; margin-top: 0; }
.map-tools p { font-size: 14px; margin: 8px 0 0; }
.map-tools a { flex-shrink: 0; font-size: 14px; text-decoration: none; text-align: center; }
.map-panel #museum-map { display: block; width: 100%; max-height: none; height: auto; border-radius: 12px; }
@media (max-width: 650px) {
  .brand-logo { width: 112px; }
  .brand-with-logo small { font-size: 9px; }
  .map-tools { flex-direction: column; align-items: stretch; gap: 16px; }
  .map-panel:has(.map-tools:not([hidden])) { padding: 16px; }
}
html { color-scheme: dark; background: var(--night); }
body, body.kiosk-body {
  color: var(--ink);
  background: linear-gradient(90deg, #201d36d9, #201d36ba 48%, #201d36d9), url('pokelandia-background.jpg') center / cover fixed;
  background-color: var(--night);
  min-height: 100vh;
}
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: #ffb4cb; }
.topbar, .tabs, footer { border-color: var(--line); }
.brand small, .visit-label, .eyebrow, .list-helper, .tabs > span, footer { color: var(--muted); }
.brand-mark { background: var(--accent); color: white; }
.brand-mark span { color: white; }
.language { background: #313157df; border: 1px solid var(--line); }
.language button { color: #d5d1e5; }
.language button[aria-pressed=true] { background: var(--accent); color: white; box-shadow: 0 2px 12px #cf224f33; }
.time-pill { background: #cf224f20; border: 1px solid #e7628a66; color: #ffe4ed; }
.tabs button { color: var(--muted); }
.tabs button.selected { background: #cf224f28; box-shadow: inset 0 0 0 1px #e7628a88; color: #fff; }
.player-card { background: linear-gradient(135deg, #632344ed, #252039f7 60%); border: 1px solid #ed74904d; box-shadow: inset 0 1px #ffffff12, 0 14px 35px #08051340; }
.player-topline { color: #d4c4df; }
.player-topline > span:last-child { color: #ff91b1; }
.chapter-disc { background: #302b4ef2; border-color: #aa71995e; box-shadow: 0 0 0 15px #cf224f09, 0 0 0 30px #cf224f05; }
.chapter-disc > span { color: #fff0f5; }
.chapter-disc svg { background: var(--accent); border-color: #35213f; stroke: white; }
.station-label { color: #f892ae; }
.chapter-description { color: #d3ccdf; }
.audio-missing { border-color: #b692b644; background: #201d3655; }
.audio-missing > span { color: #ff91b1; }
.audio-missing p, .audio-status, .track-times { color: #d3ccdf; }
.chapter-step { border-color: var(--line); }
.chapter-step > span { color: #c0bfd1; }
.list-count { background: #313157c9; border-color: var(--line); color: #e2dce9; }
.chapter-list { scrollbar-color: #79678c transparent; }
.chapter-row { background: var(--panel); border-color: var(--line); color: var(--ink); }
.chapter-row:hover:not(:disabled) { border-color: #ef719966; background: #3e355df5; }
.chapter-row[aria-current=true] { background: linear-gradient(115deg, #632344ee, #302744f5); border-color: #f26c94; box-shadow: inset 3px 0 var(--accent), 0 0 22px #cf224f12; }
.chapter-row .num { background: #ffffff09; color: #e4deec; border: 1px solid #ffffff12; }
.chapter-row[aria-current=true] .num { background: var(--accent); border-color: transparent; color: white; }
.chapter-row small { color: var(--muted); }
.row-state { color: #d3c5dd; }
.chapter-row[aria-current=true] .row-state { color: #ff91b1; }
.play-control { background: var(--accent); color: white; box-shadow: 0 4px 25px #cf224f33; }
#seek { accent-color: #f26c94; }
.round-control { color: #e0d1e8; }
.gate-icon { background: var(--accent); box-shadow: 7px 8px 0 #12102180; }
.gate-icon svg { stroke: white; }
.gate > p { color: #d3ccdf; }
.gate-facts span { background: #313157e6; border-color: var(--line); color: #ece7f2; }
.gate .notice { background: #313157ed; border: 1px solid #ce9abe33; color: #f0e6f1; }
.primary { background: var(--accent); color: white; }
.map-panel { background: #28233fec; border-color: var(--line); }
.map-symbol { color: #f58daf; }
.map-panel p { color: #d3ccdf; }
.connection-status { color: #ffb4cb; }
.kiosk-brand, .kiosk-badge { color: #ff91b1; }
.kiosk-badge { background: #cf224f1f; border-color: #ed749066; }
.kiosk-shell p, .qr-meta { color: #ded3e8; }
.kiosk-shell .primary { background: var(--accent); color: white; }
.kiosk-shell input { background: #29243e; border-color: #a28aa5; color: white; }
.kiosk-shell .secondary { background: #313157bb; color: #f0e7f5; border-color: #b3a0c144; }
.qr-progress { background: #544362; }
.qr-progress span { background: #f26c94; }
/* QR contrast and quiet zone stay black-on-white for reliable scanning. */
.qr-frame { background: white; border-color: white; color: #201d36; }
.print-controls input { background: #313157; color: white; border-color: #a28aa5; }
.print-card { background: white; color: #201d36; border-color: #d5ccda; }
.print-card .downloads button { color: #a2274a; }
@media print {
  html, body { color-scheme: light; background: white !important; color: #201d36; }
  .print-card { border-color: #888; }
}

/* Adventure map: protected illustration with real, accessible chapter buttons. */
.adventure-panel:has(.map-tools:not([hidden])) { background: linear-gradient(150deg,#302341f7,#171a35f7); padding: 24px; }
.adventure-panel .map-tools { align-items: center; margin-bottom: 20px; }
.adventure-panel .map-tools .eyebrow { font-size: 11px; color: #ff91b1; margin: 0 0 7px; }
.adventure-panel .map-tools h2 { font-size: clamp(25px,3vw,34px); margin: 0; }
.map-zoom-controls { display:flex; flex-shrink:0; gap:5px; padding:4px; border:1px solid #c0b5df33; border-radius:14px; background:#201d36; }
.map-zoom-controls button { background:transparent; color:#fff; min-width:40px; min-height:40px; border-radius:9px; font-size:22px; }
.map-zoom-controls #map-fit { font-size:13px; font-weight:700; padding:0 10px; }
.map-zoom-controls button:hover:not(:disabled) { background:#cf224f44; }
.map-viewport { overflow:auto; max-height:75vh; border:1px solid #9d6eae66; border-radius:20px; background:#11172f; scrollbar-color:#cf224f #201d36; scrollbar-width:thin; overscroll-behavior:contain; }
.map-stage { position:relative; width:100%; min-width:100%; }
.map-panel .map-stage #museum-map { width:100%; height:auto; max-width:none; max-height:none; border-radius:0; }
.map-pins { position:absolute; inset:0; pointer-events:none; }
.map-pin { position:absolute; transform:translate(-50%,-50%); display:flex; align-items:center; gap:8px; pointer-events:auto; min-height:42px; padding:5px 12px 5px 5px; background:#211c36f5; color:#fff; border:1px solid #ffe0a8bb; border-radius:24px; box-shadow:0 4px 14px #060716aa; white-space:nowrap; }
.map-pin-number { display:grid; place-items:center; border-radius:50%; background:#a2274a; width:29px; height:29px; font-size:12px; font-weight:850; flex-shrink:0; }
.map-pin-name { font-size:14px; font-weight:800; }
.map-pin[aria-pressed=true] { background:#a2274a; border-color:#fff0c9; box-shadow:0 0 0 3px #ffe0a833,0 4px 14px #060716aa; }
.map-pin[aria-pressed=true] .map-pin-number { background:#fff0d3; color:#422236; }
.map-pin:hover:not(:disabled) { background:#cf224f; filter:none; }
.map-caption { text-align:left; font-size:12px; color:#c0bfd1; margin:13px 2px 18px!important; }
.map-regions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.map-region { display:flex; align-items:center; gap:10px; min-height:50px; padding:9px 12px; border:1px solid #ffffff20; border-radius:12px; background:#313157c9; color:#f3f3f5; text-align:left; }
.map-region > span:first-child { font-size:12px; color:#ff91b1; font-weight:800; }
.map-region strong { font-size:15px; }
.map-region .region-arrow { margin-left:auto; color:#c0bfd1; }
.map-region[aria-pressed=true] { background:#632344; border-color:#f26c94; }
@media(max-width:650px){
 .adventure-panel:has(.map-tools:not([hidden])){padding:16px 12px;}
 .adventure-panel .map-tools{align-items:stretch;gap:14px;}
 .map-zoom-controls{align-self:flex-start;}
 .map-viewport{border-radius:14px;max-height:60vh;}
 .map-pin{min-height:32px;min-width:32px;padding:2px;gap:5px;}
 .map-pin-number{width:26px;height:26px;font-size:11px;}
 .map-pin-name{display:none;font-size:12px;}
 .map-stage[data-zoom="2"] .map-pin{padding-right:8px;}
 .map-stage[data-zoom="2"] .map-pin-name{display:block;}
 .map-regions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 .map-region{padding:8px;gap:7px;}
 .map-region strong{font-size:14px;}
 .map-caption{font-size:12px;}
}

.track-list{display:grid;gap:8px;margin:20px 0;text-align:left}.track-choice{padding:13px 15px;border:1px solid #ffffff28;border-radius:12px;background:#201d36;color:#f3f3f5;text-align:left;font:inherit;cursor:pointer}.track-choice[aria-pressed="true"]{border-color:#ee4777;background:#cf224f28}.track-choice:focus-visible{outline:3px solid #ee4777;outline-offset:3px}

/* Bonus recordings live outside the nine map regions. */
.special-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
.special-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}
.special-heading .eyebrow{margin:0 0 5px;color:#ff91b1}
.special-heading h3{margin:0;font-size:22px;letter-spacing:-.025em}
.special-helper{margin:9px 0 15px;color:var(--muted);font-size:13px}
.special-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.special-row{display:flex;align-items:center;gap:10px;min-width:0;padding:11px;border:1px solid var(--line);border-radius:14px;background:#292544dd;color:var(--ink);text-align:left}
.special-row:hover:not(:disabled){filter:none;border-color:#ef719966;background:#3e355df5}
.special-row[aria-current=true]{border-color:#f26c94;background:linear-gradient(115deg,#632344ee,#302744f5);box-shadow:inset 3px 0 var(--accent)}
.special-badge{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:#cf224f2e;color:#ffb4cb;font-size:12px;font-weight:850}
.special-row[aria-current=true] .special-badge{background:var(--accent);color:#fff}
.special-copy{min-width:0;flex:1}
.special-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.special-copy small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.special-row .row-state{font-size:18px}
@media(max-width:850px){.special-list{grid-template-columns:1fr}}
@media(max-width:650px){.special-section{margin-top:24px;padding-top:21px}.special-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.special-list{grid-template-columns:1fr}}
