/* ───────── Base ───────── */
:root {
  --ink: #f3ead6;
  --muted: #b9ad94;
  --gold: #e7c77d;
  --panel: #1a1712;
  --panel-2: #241f18;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #0f0d0a;
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0 .35em; margin: 0 .1em;
  border: 1px solid rgba(255,255,255,.25); border-bottom-width: 2px; border-radius: 4px;
  font: 500 .78em/1.5 var(--sans); text-align: center; background: rgba(255,255,255,.06);
}
[hidden] { display: none !important; }

/* ───────── HUD ───────── */
#hud {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 18px 12px;
  background: linear-gradient(rgba(10,9,7,.88), rgba(10,9,7,.55) 80%, transparent);
}
.brand {
  color: var(--gold); text-decoration: none; white-space: nowrap;
  font: 600 1.3rem/1 var(--serif); letter-spacing: .04em;
}
.brand-mark { font-size: .8em; }
#chapters { display: flex; gap: 2px; flex: 1; justify-content: center; flex-wrap: wrap; }
#chapters button, #map-btn {
  background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 6px 12px; font-size: .82rem; color: var(--muted); letter-spacing: .02em;
  transition: color .2s, border-color .2s, background .2s;
}
#chapters button:hover, #map-btn:hover { color: var(--ink); }
#chapters button[aria-current="true"] { color: #1a1712; background: var(--gold); }
#chapters .num { font-family: var(--serif); font-weight: 600; margin-right: .35em; opacity: .8; }
#map-btn { border-color: rgba(255,255,255,.18); white-space: nowrap; }
#music-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(231,199,125,.5);
  background: none; color: var(--gold); font-size: 1rem; line-height: 1; animation: fadein .4s;
}
#music-btn:hover { background: rgba(231,199,125,.12); }
#music-btn.off { color: var(--muted); border-color: rgba(255,255,255,.18); }
#map-btn kbd { font-size: .7em; }
#progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
#progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s linear; }

#hint {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%);
  z-index: 15; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(15,13,10,.72); backdrop-filter: blur(6px); font-size: .82rem; color: var(--muted);
  transition: opacity .8s;
}
#hint.gone { opacity: 0; pointer-events: none; }

#where {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 70px); transform: translate(-50%, -6px); z-index: 16; pointer-events: none;
  padding: 8px 18px 9px; border-radius: 999px; background: rgba(15,13,10,.78); backdrop-filter: blur(6px);
  text-align: center; white-space: nowrap; opacity: 0; transition: opacity .4s, transform .4s;
  font: italic 500 1.05rem/1.2 var(--serif); color: var(--ink);
}
#where small { font: 600 .66rem/1 var(--sans); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-right: .7em; }
#where.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Viewport & world ───────── */
#viewport { position: fixed; inset: 0; overflow: hidden; }
#viewport.fade #world { opacity: 0; }
#world {
  position: absolute; left: 0; top: 0; height: 720px;
  transform-origin: 0 0; will-change: transform; transition: opacity .22s;
}

.room {
  position: absolute; top: 0; height: 720px;
  --wall: #e7dfcf; --wall-2: #d9cfbb; --trim: #fbf6ea; --base: #6e5a43;
  --floor: #8a6a48; --floor-2: #7a5c3d; --ceiling: #2a241c; --ink: #3b3126; --accent: #9c7a3c;
  --pattern: none;
}
.room::before { /* ceiling, extends upward for tall screens */
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 2000px; background: var(--ceiling);
}
.room::after { /* floor, extends downward */
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 2000px; background: var(--floor-2);
}
.wall {
  position: absolute; inset: 0 0 172px;
  background-color: var(--wall); background-image: var(--pattern);
  box-shadow: inset 0 24px 0 var(--ceiling), inset 0 30px 0 var(--trim), inset 0 60px 40px -20px rgba(0,0,0,.25);
}
.wall::after { /* wainscot */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: var(--wall-2); border-top: 6px solid var(--trim);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.08);
}
.baseboard { position: absolute; left: 0; right: 0; top: 548px; height: 16px; background: var(--base); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.floor {
  position: absolute; left: 0; right: 0; top: 564px; bottom: 0;
  background:
    linear-gradient(rgba(0,0,0,.28), transparent 40px),
    repeating-linear-gradient(90deg, var(--floor) 0 118px, rgba(0,0,0,.15) 118px 120px),
    var(--floor);
}
.floor::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.25)); }

/* Room themes */
.theme-lobby {
  --wall: #ece5d6; --wall-2: #ddd3bf; --trim: #fbf7ee; --base: #5b4a37; --floor: #d8d0c2; --floor-2: #c9c0b0; --ceiling: #2b2620;
  --pattern: linear-gradient(115deg, transparent 40%, rgba(160,140,110,.10) 41%, transparent 43%), linear-gradient(65deg, transparent 60%, rgba(160,140,110,.08) 61%, transparent 62%);
}
.theme-lobby .floor { background: linear-gradient(rgba(0,0,0,.2), transparent 40px), repeating-conic-gradient(#e2dbcf 0 25%, #c7bfb1 0 50%) 0 0 / 80px 80px; }
.theme-origin {
  --wall: #a24a35; --wall-2: #7f3526; --trim: #efe6d4; --base: #3d2a1f; --floor: #6f5038; --floor-2: #5d422e; --ceiling: #241612; --ink: #fff3e6;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Cpath d='M0 15.5h64M0 31.5h64M16 0v16M48 16v16' stroke='%23e8d6c0' stroke-opacity='.22' stroke-width='2'/%3E%3C/svg%3E");
}
.theme-education {
  --wall: #233a6b; --wall-2: #1a2c55; --trim: #ffb81c; --base: #121d38; --floor: #6b5338; --floor-2: #58442d; --ceiling: #0e1730; --ink: #f4ecd4;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='200'%3E%3Cpath d='M20 200 V80 Q60 20 100 80 V200' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='3'/%3E%3C/svg%3E");
}
.theme-work {
  --wall: #10161c; --wall-2: #0b1015; --trim: #2f6b4a; --base: #070a0d; --floor: #bfc6cf; --floor-2: #a7afba; --ceiling: #05080a; --ink: #c9f7d8;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 .5h24M.5 0v24' stroke='%233dff7a' stroke-opacity='.06'/%3E%3C/svg%3E");
}
.theme-work .floor { background: linear-gradient(rgba(0,0,0,.3), transparent 40px), repeating-linear-gradient(90deg, transparent 0 78px, #8d96a2 78px 80px), repeating-linear-gradient(0deg, transparent 0 38px, #8d96a2 38px 40px), #c3cad3; }
.theme-trail {
  --wall: #6b4a2f; --wall-2: #553a24; --trim: #c7a26b; --base: #2c1e12; --floor: #4f3a26; --floor-2: #42301f; --ceiling: #1e150d; --ink: #f6ead2;
  --pattern: repeating-linear-gradient(0deg, transparent 0 34px, rgba(0,0,0,.18) 34px 36px);
}
.theme-abroad {
  --wall: #e9e1f0; --wall-2: #2e3c6a; --trim: #f7f3ea; --base: #1f2847; --floor: #9a6d47; --floor-2: #855c3a; --ceiling: #1d2140; --ink: #2b2a4a;
  --pattern: repeating-linear-gradient(90deg, transparent 0 28px, rgba(46,60,106,.09) 28px 34px);
}
.theme-play {
  --wall: #2a1f3d; --wall-2: #1d1530; --trim: #8f6cff; --base: #110b1d; --floor: #2d2738; --floor-2: #241f2d; --ceiling: #0d0916; --ink: #efe7ff;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect x='18' y='18' width='4' height='4' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E");
}
.theme-epilogue {
  --wall: #f4efe5; --wall-2: #e6dfd0; --trim: #fffdf8; --base: #8a6a44; --floor: #c9b08a; --floor-2: #b79e78; --ceiling: #3a3229; --ink: #3b3126;
}

/* Title plaque at the start of each room */
.plaque {
  position: absolute; top: 96px; width: 440px; padding: 36px 36px 30px;
  color: var(--ink); text-align: left;
}
.plaque .chap { font: 600 .78rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--trim); opacity: .95; }
.theme-lobby .plaque .chap, .theme-epilogue .plaque .chap, .theme-abroad .plaque .chap { color: var(--accent); }
.theme-work .plaque .chap { color: #3dff7a; }
.plaque h1 { margin: 14px 0 6px; font: 600 4.4rem/0.95 var(--serif); letter-spacing: -.01em; }
.plaque .sub { margin: 0 0 18px; font: italic 500 1.35rem/1.3 var(--serif); opacity: .85; }
.plaque .intro { margin: 0; font: 400 1rem/1.6 var(--sans); opacity: .8; max-width: 34ch; }
.plaque .rule { width: 64px; height: 2px; background: currentColor; opacity: .4; margin: 18px 0; }
.plaque .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.plaque .links a { color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: .9rem; pointer-events: auto; }
.plaque .links a:hover { background: var(--ink); color: var(--wall); }
.theme-lobby .plaque h1 { font-size: 5.2rem; }

/* Exhibits */
.exhibit { position: absolute; top: 0; width: 460px; height: 548px; margin: 0; cursor: pointer; }
.spot {
  position: absolute; left: 50%; top: 24px; width: 640px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255,240,200,.30), transparent 70%);
  opacity: .45; transition: opacity .4s; pointer-events: none;
}
.lamp { position: absolute; left: 50%; top: 24px; width: 70px; height: 12px; transform: translateX(-50%); background: #222; border-radius: 0 0 8px 8px; box-shadow: 0 6px 18px 2px rgba(255,236,190,.5); }
.frame {
  position: absolute; left: 8px; top: 92px; width: 444px; height: 344px; padding: 18px;
  background: linear-gradient(135deg, #c9a45c, #8a6a2e 40%, #e5c87e 60%, #7a5a22);
  box-shadow: 0 18px 30px -10px rgba(0,0,0,.55), inset 0 0 0 3px rgba(0,0,0,.25), inset 0 0 0 4px rgba(255,240,200,.25);
  transition: transform .3s, box-shadow .3s;
}
.theme-work .frame { background: linear-gradient(135deg, #3a3f46, #1c1f23 50%, #4a5058); }
.theme-play .frame { background: linear-gradient(135deg, #3c2f5c, #1a1330 50%, #5a4690); }
.theme-epilogue .frame, .theme-lobby .frame { background: linear-gradient(135deg, #3b2a1b, #1f150c 50%, #4d3826); }
.frame svg { display: block; width: 100%; height: 100%; background: #000; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); }
.placard {
  position: absolute; left: 50%; top: 458px; transform: translateX(-50%); width: 250px;
  padding: 10px 14px; background: #f8f4ea; color: #2f281f; text-align: left;
  box-shadow: 0 3px 8px rgba(0,0,0,.3); border-left: 3px solid var(--accent);
}
.theme-work .placard { background: #0a0f0c; color: #9ef0b8; border-color: #3dff7a; font-family: var(--mono); }
.placard b { display: block; font: 600 1.05rem/1.2 var(--serif); }
.theme-work .placard b { font-family: var(--mono); font-size: .9rem; }
.placard span { display: block; font-size: .72rem; opacity: .7; margin-top: 3px; }
.prompt {
  position: absolute; left: 50%; top: 36px; transform: translate(-50%, 8px);
  padding: 6px 14px; border-radius: 999px; background: #fff; color: #1a1712; white-space: nowrap;
  font: 600 .85rem/1.2 var(--sans); box-shadow: 0 6px 20px rgba(0,0,0,.35);
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.exhibit.near .spot { opacity: 1; }
.exhibit.near .frame { transform: translateY(-4px); box-shadow: 0 26px 40px -10px rgba(0,0,0,.6), 0 0 0 2px rgba(255,236,190,.35), inset 0 0 0 3px rgba(0,0,0,.25); }
.exhibit.near .prompt { opacity: 1; transform: translate(-50%, 0); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }

/* Doorways between chapters */
.door { position: absolute; top: 0; width: 260px; height: 564px; transform: translateX(-50%); pointer-events: none; }
.door .arch {
  position: absolute; left: 30px; right: 30px; top: 150px; bottom: 16px;
  border-radius: 100px 100px 0 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 50%, rgba(0,0,0,.55));
  border: 12px solid var(--door-trim, #e8dcc2); border-bottom: 0;
  box-shadow: inset 0 0 40px rgba(0,0,0,.6);
}
.door .label {
  position: absolute; left: 20px; right: 20px; top: 64px; padding: 10px 8px 12px; text-align: center; color: #f3ead6;
  font: 600 1.5rem/1.1 var(--serif); background: rgba(20,16,12,.88); border: 1px solid rgba(231,199,125,.45);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.door .label small { display: block; color: var(--gold); font: 600 .68rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .8; }

/* Decor */
.bench { position: absolute; top: 566px; width: 220px; height: 52px; filter: brightness(.85); pointer-events: none; }
.bench::before { content: ''; position: absolute; inset: 0 0 34px; background: #3a2a1c; border-radius: 4px; box-shadow: 0 4px 0 #2a1d12; }
.bench::after { content: ''; position: absolute; left: 14px; right: 14px; top: 26px; bottom: 0; border-left: 10px solid #2a1d12; border-right: 10px solid #2a1d12; }
.column { position: absolute; top: 24px; width: 54px; height: 524px; pointer-events: none;
  background: linear-gradient(90deg, #d8cfbd, #f6f1e6 30%, #e6dfd0 55%, #c4baa6); }
.column::before, .column::after { content: ''; position: absolute; left: -10px; right: -10px; height: 26px; background: #e8e0cf; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.column::before { top: 0; } .column::after { bottom: 0; }
.rope { position: absolute; top: 590px; height: 40px; pointer-events: none; }
.rope::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 20px; border-bottom: 4px solid #8a1f2a; border-radius: 0 0 50% 50%; }

/* Visitor */
#visitor { position: absolute; top: 512px; width: 64px; height: 164px; z-index: 5; pointer-events: none; }
#visitor .body { width: 100%; height: 100%; transition: transform .12s; }
#visitor.left .body { transform: scaleX(-1); }
#visitor svg { width: 100%; height: 100%; overflow: visible; }
#visitor .leg, #visitor .arm { transform-box: view-box; }
#visitor .leg { transform-origin: 32px 96px; }
#visitor .arm { transform-origin: 32px 54px; }
#visitor.walking .leg.a, #visitor.walking .arm.b { animation: swing var(--stride, .55s) ease-in-out infinite alternate; }
#visitor.walking .leg.b, #visitor.walking .arm.a { animation: swing var(--stride, .55s) ease-in-out infinite alternate-reverse; }
#visitor.walking .torso { animation: bounce calc(var(--stride, .55s) / 1) ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-2px); } }
#visitor .shadow { position: absolute; left: 50%; bottom: -4px; width: 60px; height: 10px; transform: translateX(-50%); border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(2px); }

/* SVG bits */
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.led { animation: led 2.4s steps(1) infinite; animation-delay: var(--d); }
@keyframes led { 30% { opacity: .25; } 60% { opacity: 1; } 85% { opacity: .5; } }
.steam { animation: steam 3s ease-in-out infinite; }
@keyframes steam { 50% { transform: translateY(-4px); opacity: .2; } }
#inspect .tl { opacity: 0; animation: reveal .01s forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes reveal { to { opacity: 1; } }

/* ───────── Overlays ───────── */
.overlay {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: rgba(8,7,5,.82); backdrop-filter: blur(8px);
  animation: fadein .25s ease-out;
}
@keyframes fadein { from { opacity: 0; } }
.ins-card {
  width: min(1100px, 100%); max-height: 100%; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center;
  animation: rise .3s ease-out;
}
@keyframes rise { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.ins-art { padding: 14px; background: linear-gradient(135deg, #c9a45c, #8a6a2e 40%, #e5c87e 60%, #7a5a22); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.ins-art svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #000; }
.ins-text { user-select: text; -webkit-user-select: text; }
.ins-chapter { margin: 0; font: 600 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.ins-text h2 { margin: 12px 0 4px; font: 600 2.6rem/1.05 var(--serif); }
.ins-meta { margin: 0 0 20px; font: italic 500 1.15rem/1.3 var(--serif); color: var(--muted); }
.ins-body p { margin: 0 0 14px; line-height: 1.65; color: #e6dcc6; font-size: 1rem; }
.ins-nav { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.ins-nav button, .map-head button {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 16px; font-size: .85rem;
}
.ins-nav button:hover, .map-head button:hover { background: rgba(255,255,255,.14); }
.ins-nav button[data-act="close"] { background: var(--gold); color: #1a1712; border-color: var(--gold); }

.map-card { width: min(720px, 100%); max-height: 100%; overflow: auto; background: var(--panel); border: 1px solid rgba(231,199,125,.3); padding: 24px 28px 28px; box-shadow: 0 30px 60px rgba(0,0,0,.6); animation: rise .3s ease-out; }
.map-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.map-head h2 { margin: 0; font: 600 2rem/1 var(--serif); color: var(--gold); }
#map-list { list-style: none; margin: 0; padding: 0; }
#map-list > li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); }
#map-list .room-btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0; font: 600 1.35rem/1.2 var(--serif); }
#map-list .room-btn small { font: 500 .78rem/1 var(--sans); color: var(--muted); letter-spacing: .05em; margin-left: .6em; }
#map-list .room-btn .num { color: var(--gold); display: inline-block; min-width: 2.2em; }
#map-list ul { list-style: none; margin: 6px 0 0 2.2em; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
#map-list ul button { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 4px 12px; font-size: .8rem; color: #ddd2bb; }
#map-list button:hover, #map-list button:focus-visible { color: #fff; border-color: var(--gold); outline: none; }
#map-list .room-btn:hover, #map-list .room-btn:focus-visible { color: var(--gold); }
#map-list .here { color: var(--gold); font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-left: .8em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ───────── Touch controls ───────── */
#touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  #touch {
    position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); z-index: 18;
    display: flex; justify-content: space-between; align-items: flex-end; padding: 0 16px; pointer-events: none;
  }
  #touch button {
    pointer-events: auto; width: 64px; height: 64px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25); background: rgba(15,13,10,.6); backdrop-filter: blur(6px);
    font-size: 1.3rem; touch-action: none;
  }
  #touch button.on { background: rgba(231,199,125,.85); color: #1a1712; }
  #touch .mid { display: flex; gap: 12px; }
  #touch .mid button { width: 54px; height: 54px; }
  #hint { display: none; }
}

/* ───────── Small screens ───────── */
@media (max-width: 760px) {
  #hud { flex-wrap: wrap; gap: 8px; padding-inline: 12px; }
  #chapters { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  #chapters::-webkit-scrollbar { display: none; }
  #chapters button { padding: 5px 10px; white-space: nowrap; }
  .brand { flex: 1; order: 1; }
  #music-btn { order: 2; }
  #map-btn { order: 2; }
  #hint { display: none; }
  .ins-card { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .ins-text h2 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.noscript { position: fixed; inset: 0; display: grid; place-items: center; font: 1.4rem var(--serif); background: #0f0d0a; z-index: 99; margin: 0; }
