/* =========================================================
   HOUSE OF VAELOR: the royal finish (loaded last)
   Slim hairline buttons, no zooming at the gate, a sparkle
   entrance, and the arrival moment in the Grand Hall.
   ========================================================= */

/* ---------- Buttons: slim, hairline gold, deep plum ---------- */
.btn {
  min-height: 40px;
  padding: .5em 1.7em;
  border-radius: 999px;
  border: 1px solid #C9A24E;
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  box-shadow: none;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.btn:hover { transform: none; }
.btn::after { background: linear-gradient(115deg, transparent 35%, rgba(255, 244, 214, .35) 50%, transparent 65%); }
/* main action: deep plum, a fine gold rule inside the gold edge */
.btn--gold, .btn--plum {
  background: linear-gradient(180deg, #4A0B3C, #34022A);
  color: #F3DFA6;
  border-color: #C9A24E;
  box-shadow: inset 0 0 0 2px #34022A, inset 0 0 0 3px rgba(217, 174, 85, .45);
}
.btn--gold:hover, .btn--plum:hover { background: linear-gradient(180deg, #5A1449, #3E0532); color: #FBEBC0; box-shadow: inset 0 0 0 2px #3E0532, inset 0 0 0 3px rgba(242, 193, 78, .75); }
/* quiet action: hairline only */
.btn--ghost, .btn--ghost-light { background: transparent; border-color: rgba(201, 162, 78, .9); box-shadow: none; }
.btn--ghost { color: var(--plum); }
.btn--ghost:hover { background: rgba(201, 162, 78, .1); }
.btn--ghost-light { color: #F6EBD3; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); background: rgba(26, 8, 21, .2); }
.btn--ghost-light:hover { background: rgba(26, 8, 21, .45); }
/* the City: silver instead of gold */
html.is-night .btn--gold, html.is-night .btn--plum { background: linear-gradient(180deg, #2A2230, #18121C); color: #E6E8EE; border-color: #A9B0BC; box-shadow: inset 0 0 0 2px #18121C, inset 0 0 0 3px rgba(201, 206, 214, .4); }
html.is-night .btn--ghost, html.is-night .btn--ghost-light { border-color: rgba(201, 206, 214, .8); color: #E6E8EE; }
/* header controls match */
.pill, .side-switch { min-height: 34px; }
.side-switch__opt { padding: .45em .95em; }
.pill { padding: 0 1.1em; border-width: 1px; }
.room__back { font-weight: 500; letter-spacing: .03em; }

/* ---------- The gate: still photograph, no zoom ---------- */
.gate .walk__frame img,
.gate.at-door .walk__frame:last-of-type img,
.gate.is-through .walk__frame:last-of-type img,
.gate.walk--live.is-through .walk__frame:last-of-type img { animation: none !important; transform: none !important; transition: none !important; }
.gate .gate__flash { display: none; }
.gate.is-opening .walk__door-glow { transform: translate(-50%, -50%) scale(1.8); }
.gate.is-through .walk__door-glow { transform: translate(-50%, -50%) scale(2.6); opacity: .9; transition: transform 1.4s ease, opacity 1.4s ease; }
.gate.is-through .walk__frame { filter: brightness(1.08) saturate(1.05); transition: filter 1.2s ease; }
.gate.is-through { transition: opacity 1s ease .9s; }

/* the entrance: gold sparkles rise from the gate */
.gate__sparkles { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.gate__sparkles i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  background: radial-gradient(circle, #FFFBEA 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 40deg, rgba(255, 236, 170, .95) 45deg, transparent 50deg 130deg, rgba(255, 236, 170, .95) 135deg, transparent 140deg 220deg, rgba(255, 236, 170, .95) 225deg, transparent 230deg 310deg, rgba(255, 236, 170, .95) 315deg, transparent 320deg);
  filter: drop-shadow(0 0 4px rgba(242, 193, 78, .9));
  opacity: 0; transform: translate(-50%, -50%) scale(.2);
  animation: sparkleRise var(--t) cubic-bezier(.2, .7, .3, 1) var(--d) forwards;
}
@keyframes sparkleRise {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(160deg); }
}
.gate__veil { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: radial-gradient(70% 60% at 56% 62%, rgba(255, 244, 214, .55), rgba(52, 2, 42, .0) 70%); transition: opacity 1.2s ease; }
.gate.is-through .gate__veil { opacity: 1; }

/* ---------- The gate's words: quieter, more regal ---------- */
.gate .gate__title { font-weight: 500; letter-spacing: .04em; }
.gate .gate__choices { gap: 12px; }
.gate .gate__choices .btn { flex: 0 1 auto; min-width: 0; max-width: none; min-height: 40px; padding-inline: 1.6em; font-size: 1rem; }
.gate__skip { min-height: 34px; padding: .35em 1em; font-size: .95rem; font-weight: 500; letter-spacing: .04em; border-width: 1px; }
@media (orientation: portrait) {
  .gate .gate__choices { flex-wrap: wrap; }
  .gate .gate__choices .btn { flex: 1 1 140px; padding-inline: 1em; font-size: .98rem; }
}

/* =========================================================
   THE GRAND HALL: an arrival moment before the doors
   ========================================================= */
.hall__arrival { display: none; }
html.scene-mode #hall[data-stage="arrival"] .hall__arrival {
  display: grid; position: absolute; inset: 0; z-index: 3; place-items: end center;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 72px) max(16px, env(safe-area-inset-left, 0px));
  animation: arrivalIn 1.2s ease both;
}
html.scene-mode #hall[data-stage="arrival"] > .wrap { visibility: hidden; opacity: 0; }
html.scene-mode #hall[data-stage="doors"] > .wrap { animation: doorsIn 1s ease both; }
@keyframes arrivalIn { from { opacity: 0; } }
@keyframes doorsIn { from { opacity: 0; transform: translateY(14px); } }
.hall__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #1E0A18; }
.hall__media video, .hall__media .hall__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hall__poster { background:
  radial-gradient(40% 30% at 50% 18%, rgba(255, 236, 190, .3), transparent 70%),
  repeating-linear-gradient(90deg, rgba(255, 248, 236, .04) 0 2px, transparent 2px 12.5%),
  linear-gradient(180deg, #3A0731 0, #2A0221 62%, #1A0C14 62.4%, #120810 100%),
  url("../img/plum-damask-tile.webp") center top / 480px auto; }
.hall__media video { opacity: 0; transition: opacity 1.2s ease; }
.hall__media.has-video video { opacity: 1; }
.hall__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 4, 16, .1) 0%, rgba(20, 4, 16, 0) 40%, rgba(20, 4, 16, .78) 100%); }
.hall__media-note { position: absolute; z-index: 1; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 10px); left: 50%; transform: translateX(-50%); margin: 0; padding: 3px 10px; border: 1px dashed rgba(255, 248, 236, .5); border-radius: 4px; color: rgba(255, 248, 236, .8); font-size: .9rem; font-style: italic; white-space: nowrap; }
.hall__media.has-video .hall__media-note { display: none; }
.hall__welcome { position: relative; display: grid; justify-items: center; gap: 10px; max-width: 560px; text-align: center; color: var(--ivory); }
.hall__welcome .eyebrow { margin: 0; color: #F2C14E; }
.hall__welcome h2 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); line-height: 1.05; letter-spacing: .02em; text-shadow: 0 2px 24px rgba(20, 4, 16, .8); }
.hall__welcome p { margin: 0; font-style: italic; font-size: 1.18rem; color: #F3EBDD; text-shadow: 0 1px 12px rgba(20, 4, 16, .9); }
.hall__rule { width: 140px; height: 12px; color: #C9A24E; }
.hall__welcome .btn { margin-top: 8px; }
html.scene-mode #hall[data-stage="arrival"] .hall__bg { display: none; }
html.scene-mode #hall[data-stage="arrival"] .hall__temp { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gate__sparkles { display: none; }
  html.scene-mode #hall[data-stage="arrival"] .hall__arrival, html.scene-mode #hall[data-stage="doors"] > .wrap { animation: none; }
}
@media (orientation: portrait) {
  .gate .gate__choices { flex-wrap: nowrap; gap: 10px; }
  .gate .gate__choices .btn { flex: 1 1 0; white-space: nowrap; min-height: 40px; padding: .5em .6em; font-size: .95rem; letter-spacing: .03em; }
}
.gate__sparkles i { filter: drop-shadow(0 0 6px rgba(255, 220, 140, 1)) drop-shadow(0 0 2px #fff); }

/* =========================================================
   THE HALLWAY: walk forward and back to each door
   ========================================================= */
.hallway { display: none; }
html.scene-mode #hall[data-stage="doors"] .hallway { display: block; position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #1E0A18; touch-action: none; }
/* in the hallway, the old door grid steps aside (it stays for screen readers and the sign-up) */
html.scene-mode #hall[data-stage="doors"] .hall__head,
html.scene-mode #hall[data-stage="doors"] .hall__doors,
html.scene-mode #hall[data-stage="doors"] .hall__temp,
html.scene-mode #hall[data-stage="doors"] .hall__bg { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
html.scene-mode #hall.is-scene[data-stage="doors"] { padding: 0; }
html.scene-mode #hall[data-stage="doors"] > .wrap { position: static; padding: 0; min-height: 0; animation: none; }
.hall__poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the footage always covers the screen; --pan turns the camera toward a door on narrow screens */
.hallway__stage {
  --pan: .5;
  position: absolute; top: 50%; left: 50%;
  width: max(100vw, 100vh * 16 / 9); width: max(100%, 100dvh * 16 / 9); aspect-ratio: 16 / 9;
  transform: translate(calc(var(--pan) * -100%), -50%);
  transition: transform 1.3s cubic-bezier(.45, .05, .25, 1);
}
.hw-view { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; backface-visibility: hidden; transform: translateZ(0); }
.hw-view:first-of-type { opacity: 1; }
.hallway.is-moving .hw-door { opacity: 0; pointer-events: none; transition: opacity .2s; }
.hw-door[hidden] { display: none; }
.hallway__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 80% at 50% 45%, transparent 55%, rgba(20, 4, 16, .55) 100%), linear-gradient(180deg, rgba(20, 4, 16, .35) 0%, transparent 18%, transparent 72%, rgba(20, 4, 16, .7) 100%); }

/* doors: no game markers. Each door has a small engraved brass plate on the wall beside it,
   sized to the door (--dh = the door's height on screen). The open door has warm light
   coming from under it; the sealed doors stay dark. */
.hw-door { position: absolute; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; color: #2A1A08; --dh: 400px; }
.hw-door::after { content: ""; position: absolute; inset: -10px; } /* larger tap area */
.hw-door__frame { position: absolute; inset: 0; border-radius: 2px; transition: box-shadow .6s ease, background .5s ease; }
.hw-door__plate {
  position: absolute; top: 17%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: .3em .55em .34em;
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(7px, calc(var(--dh) * .026), 17px); letter-spacing: .06em; line-height: 1;
  color: #3B2709; text-shadow: 0 1px 0 rgba(255, 240, 200, .55);
  background: linear-gradient(170deg, #F4DA9A 0%, #C9A04A 38%, #E7C77B 55%, #A87D2E 100%);
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(90, 58, 12, .55), inset 0 1px 0 rgba(255, 246, 214, .7), 0 1px 2px rgba(30, 14, 4, .55), 0 3px 8px -3px rgba(30, 14, 4, .5);
  filter: saturate(.8) brightness(.94);
  transition: filter .6s ease;
}
.hw-door.is-current .hw-door__plate { filter: saturate(.95) brightness(1.05); }
/* warm light from the open room: a line under the door and a soft pool on the marble */
.hw-door__light { position: absolute; left: 6%; right: 6%; bottom: -.5%; height: 1.6%; border-radius: 50%; background: #FFD98A; filter: blur(2px); opacity: .85; pointer-events: none; }
.hw-door__light::after { content: ""; position: absolute; left: -60%; right: -60%; top: 50%; height: calc(var(--dh) * .16); background: radial-gradient(50% 50% at 50% 0%, rgba(255, 214, 140, .55), rgba(255, 196, 110, 0) 100%); mix-blend-mode: screen; }
.hallway.is-moving .hw-door__plate { transition: none; }
.hw-door:focus-visible { outline: none !important; }
.hw-door:focus-visible .hw-door__frame { box-shadow: 0 0 0 2px #FFF3C8, 0 0 0 4px #7A5810; }
.hw-door.is-rattling .hw-door__plate { animation: rattle .55s cubic-bezier(.36, .07, .19, .97); }
.hw-door.is-rattling .hw-door__plate { translate: -50% 0; }
.hallway.is-entering .hw-door.is-current .hw-door__frame { background: linear-gradient(90deg, rgba(255, 236, 190, .0), rgba(255, 236, 190, .9) 50%, rgba(255, 236, 190, 0)); box-shadow: 0 0 60px 20px rgba(255, 220, 150, .45); }

/* a filmed look: calmer colour and a fine grain, so the footage feels less glossy */
/* the City at night: the same hall by candlelight */
html.is-night .hall__poster-img { filter: brightness(.62) saturate(.7) contrast(1.08) hue-rotate(-8deg); }
/* the City's evening: a still tint laid over the pictures (no filter on the moving pictures, so walking stays smooth) */
.hallway__stage::after { z-index: 3; }
.hallway__stage::before { z-index: 3; }
.hw-door { z-index: 4; }
html.is-night .hallway__stage::after { background: radial-gradient(90% 80% at 50% 45%, transparent 55%, rgba(8, 4, 16, .6) 100%), linear-gradient(rgba(22, 14, 40, .5), rgba(14, 8, 26, .55)); }
.hallway__stage::before, .hall__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* walking controls */
.hallway__nav {
  position: absolute; z-index: 3; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 5px 6px;
  border: 1px solid rgba(201, 162, 78, .75); border-radius: 999px;
  background: rgba(30, 6, 24, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hallway__step { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(201, 162, 78, .6); background: none; color: #F3DFA6; }
.hallway__step svg { width: 18px; height: 18px; }
.hallway__step:disabled { opacity: .3; cursor: default; }
.hallway__stops { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.hallway__stops button { min-height: 36px; padding: 0 .8em; border: 0; border-radius: 999px; background: none; color: #F3EBDD; font-family: var(--f-display); font-size: 1rem; font-weight: 500; letter-spacing: .03em; transition: background-color .4s, color .4s; }
.hallway__stops button[aria-current] { background: rgba(201, 162, 78, .22); color: #F3DFA6; box-shadow: inset 0 0 0 1px rgba(201, 162, 78, .7); }
.hallway__hint { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); margin: 0; padding: 0 16px; text-align: center; font-style: italic; font-size: 1rem; color: #F3EBDD; text-shadow: 0 1px 10px rgba(20, 4, 16, .9); transition: opacity .8s; }
.hallway.is-moving .hallway__hint { opacity: 0; transition-duration: .2s; }

/* the hall's other objects become a slim row at the top */
html.scene-mode #hall[data-stage="doors"] .hall__objects {
  position: absolute; z-index: 3; left: 50%; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 10px); transform: translateX(-50%);
  flex-wrap: nowrap; gap: 4px; padding: 4px 8px; border: 1px solid rgba(201, 162, 78, .5); border-radius: 999px; background: rgba(30, 6, 24, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html.scene-mode #hall[data-stage="doors"] .hall-obj, html.scene-mode #hall[data-stage="doors"] .hall__objects .letter { width: auto; max-width: none; display: flex; align-items: center; gap: 6px; padding: 2px 8px; }
html.scene-mode #hall[data-stage="doors"] .hall-obj__icon { width: 28px; height: 28px; border-color: rgba(201, 162, 78, .5); background: none; }
html.scene-mode #hall[data-stage="doors"] .hall-obj__icon svg { width: 18px; height: 18px; }
html.scene-mode #hall[data-stage="doors"] .hall-obj__label, html.scene-mode #hall[data-stage="doors"] .letter__label { font-size: .95rem; font-weight: 500; white-space: nowrap; max-width: none; }
html.scene-mode #hall[data-stage="doors"] .letter__envelope { width: 30px; transform: none; }
html.scene-mode #hall[data-stage="doors"] .letter__seal { width: 12px; font-size: .55rem; box-shadow: 0 0 0 1px #7A1526; }
@media (max-width: 760px) {
  .hallway__stops button { padding: 0 .55em; font-size: .95rem; }
  .hallway__nav { gap: 4px; left: auto; right: max(12px, env(safe-area-inset-right, 0px)); transform: none; width: calc(100% - 84px); justify-content: space-between; }
  .hallway__stops button { padding: 0 .4em; font-size: .9rem; }
  html.scene-mode #hall[data-stage="doors"] .hall-obj__label, html.scene-mode #hall[data-stage="doors"] .letter__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html.scene-mode #hall[data-stage="doors"] .hall-obj, html.scene-mode #hall[data-stage="doors"] .hall__objects .letter { padding: 2px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hallway__stage { transition: none; }
}

/* =========================================================
   NAVIGATION (section 3): Shop Chapter I + Menu everywhere
   ========================================================= */
.shop-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; flex: none;
  border-radius: 999px; background: var(--color-plum); color: var(--ivory); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--color-antique-gold), inset 0 0 0 3px var(--color-plum), inset 0 0 0 4px rgba(217, 174, 85, .45);
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
  transition: background var(--duration-fast), box-shadow var(--duration-fast);
}
.shop-cta:hover, .shop-cta:focus-visible { background: #4A0B3C; box-shadow: inset 0 0 0 1px var(--color-honey-gold), inset 0 0 0 3px #4A0B3C, inset 0 0 0 4px rgba(242, 193, 78, .6); }
html.is-night .shop-cta { background: #1E1A22; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--color-silver), inset 0 0 0 3px #1E1A22, inset 0 0 0 4px rgba(201, 206, 214, .45); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; flex: none;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; cursor: pointer;
}
.menu-btn__lines { position: relative; width: 16px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.menu-btn__lines::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%); }

/* the header */
.header-aside { display: flex; align-items: center; gap: 10px; }
.header-aside .pill { display: none; }
.site-nav a[aria-current="page"] { color: var(--gold); }
@media (min-width: 1101px) { .site-header .menu-btn { display: none; } }
@media (max-width: 1100px) { .site-nav { display: none; } }
@media (max-width: 760px) {
  .site-header .side-switch { display: none; }
  .header-aside { gap: 8px; }
  .site-header .shop-cta { min-height: 38px; padding: 0 14px; font-size: 1rem; }
  .site-header .menu-btn { min-height: 38px; padding: 0 11px; font-size: 0; gap: 0; }   /* icon only on small phones */
  .site-header .menu-btn .menu-btn__lines { width: 18px; height: 12px; }
}
@media (max-width: 760px) and (min-width: 400px) { .site-header .menu-btn { font-size: 1rem; gap: 8px; padding: 0 13px; } }

/* room bars: sentence case, and the shop + menu at the right */
.room__back { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.piece-skip { font-family: var(--font-serif); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.room__bar .shop-cta--bar { margin-left: auto; min-height: 38px; padding: 0 14px; font-size: 1rem; }
.room__bar .shop-cta--bar ~ .satchel-btn { margin-left: 0; }
.room__bar .menu-btn--bar { min-height: 38px; padding: 0 12px; }
.room__bar .satchel-btn + .menu-btn--bar { margin-left: 0; }
.room__bar > .room__back + .menu-btn--bar, .room__bar > .piece-skip + .menu-btn--bar { margin-left: auto; }
.room__bar .room__back { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 480px) {
  .room__bar { gap: 6px; }
  .room__bar .menu-btn--bar { font-size: 0; gap: 0; padding: 0 11px; }
  .room__bar .shop-cta--bar { padding: 0 12px; font-size: .95rem; }
}

/* =========================================================
   THE MENU PANEL
   ========================================================= */
.menu { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; background: transparent; color: var(--color-plum); overflow: visible; }
.menu::backdrop { background: rgba(26, 8, 21, .55); }
.menu[open] { animation: drawerIn var(--duration-base) var(--ease-out) both; }
.menu.is-leaving { animation: drawerOut .24s ease-in both; }
.menu__panel {
  height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: radial-gradient(120% 50% at 50% 0%, #FFF8EC, #F3EBDD 55%, #EADCC2 100%);
  border-left: 1px solid var(--color-antique-gold);
  box-shadow: -30px 0 60px -30px rgba(26, 8, 21, .6), inset 10px 0 0 -9px rgba(217, 174, 85, .5);
}
.menu__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(217, 174, 85, .6); }
.menu__emblem { width: 52px; height: auto; }
.menu__title { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; line-height: 1.1; }
.menu__close { width: 44px; height: 44px; border: 1px solid var(--color-antique-gold); border-radius: 50%; background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.menu__places ul { list-style: none; margin: 0; padding: 0; }
.menu__places a { display: grid; gap: 1px; padding: 12px 4px 12px 22px; position: relative; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(217, 174, 85, .3); }
.menu__places a::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--color-antique-gold); transition: background var(--duration-fast); }
.menu__places a:hover::before, .menu__places a:focus-visible::before, .menu__places a[aria-current]::before { background: var(--color-antique-gold); }
.menu__name { font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.menu__note { font-style: italic; font-size: 1rem; color: var(--gold-ink); }
.menu__places a.is-shop .menu__name { font-weight: 600; }
.menu__places a[aria-current] .menu__name { color: var(--color-rose-deep); }
.menu__worlds { display: flex; padding: 3px; border: 1px solid var(--color-antique-gold); border-radius: 999px; }
.menu__worlds button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-family: var(--font-serif); font-size: 1.05rem; cursor: pointer; }
.menu__worlds button[aria-pressed="true"] { background: var(--color-plum); color: var(--ivory); font-weight: 600; }
.menu__satchel { display: inline-flex; align-items: center; gap: 10px; align-self: start; color: inherit; font-size: 1.15rem; font-weight: 600; }
.menu__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--color-plum); color: var(--ivory); font-family: var(--font-caps); font-size: .8rem; }
.menu__foot { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(217, 174, 85, .4); font-size: 1rem; }
.menu__foot a { color: var(--gold-ink); }
.menu__small { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .95rem; }
html.is-night .menu { color: var(--ivory); }
html.is-night .menu__panel { background: radial-gradient(120% 50% at 50% 0%, #2A2230, #161018 55%, #0E0A10 100%); border-color: var(--color-silver-deep); }
html.is-night .menu__note, html.is-night .menu__foot a { color: var(--color-silver); }
html.is-night .menu__places a[aria-current] .menu__name { color: var(--color-rose); }
html.is-night .menu__worlds button[aria-pressed="true"] { background: var(--color-silver); color: var(--color-black); }
html.is-night .menu__count { background: var(--color-silver); color: var(--color-black); }
@media (prefers-reduced-motion: reduce) { .menu[open], .menu.is-leaving { animation: none; } }
/* push everything after the back link to the right, whatever is hidden in between */
.room__bar .room__back { margin-right: auto; }
.room__bar .shop-cta--bar, .room__bar .satchel-btn, .room__bar .menu-btn--bar, .room__bar .piece-skip { margin-left: 0 !important; }
.menu__replay { align-self: start; min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit; font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--color-antique-gold); cursor: pointer; }

/* Walking: a soft rise and fall with each step, and the turn toward a door happens after arriving */
.hallway__stage { transition: transform 1.1s cubic-bezier(.4, 0, .2, 1); }
@keyframes hwStep {
  from { translate: 0 0; rotate: -.12deg; scale: 1.004; }
  to   { translate: 0 -0.55%; rotate: .12deg; scale: 1.012; }
}
@media (prefers-reduced-motion: reduce) { .hallway.is-moving .hallway__stage { animation: none; } }
.hallway__stage { transition: transform .9s cubic-bezier(.45, .05, .25, 1); will-change: transform; }
/* in the City the door plates are silver, like the City's jewelry */
html.is-night .hw-door__plate { color: #22262E; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); background: linear-gradient(170deg, #EEF0F4 0%, #AEB5C0 40%, #D9DDE4 56%, #8A919C 100%); box-shadow: inset 0 0 0 1px rgba(40, 44, 52, .5), inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(0, 0, 0, .6), 0 3px 8px -3px rgba(0, 0, 0, .5); }
