/* Quiet navigation, with visible keyboard focus and no permanent frames. */
.scenario-open{position:absolute;z-index:6;right:94px;top:22px;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 15px;border:0;border-radius:13px;background:#fffaf256;color:#4e5960;backdrop-filter:blur(10px);font:500 13px Figtree,sans-serif;cursor:pointer}
.scenario-open svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.room-experience .language-toggle{border:0;box-shadow:none;border-radius:12px;background:#fffaf256}
.halloween-edition .scenario-open,.room-experience:has([data-period='night']) .scenario-open{background:#37283d66;color:#f6e2cd}
.room-experience:has([data-period='night']) .language-toggle,.halloween-edition .language-toggle{background:#37283d66}
.scenario-open:hover,.room-experience .language-toggle:hover{background:#fffaf28c}
.halloween-edition .scenario-open:hover,.halloween-edition .language-toggle:hover,.room-experience:has([data-period='night']) .scenario-open:hover,.room-experience:has([data-period='night']) .language-toggle:hover{background:#f4d8e21a}

/* The cards share the dialog's paper/plum surface, without grey panels. */
.room-experience .scenario-dialog{width:min(600px,calc(100% - 32px));padding:26px;border:0;border-radius:25px;background:#fff9ef;color:#4e5960;box-shadow:0 24px 80px #26374726}
.room-experience:has([data-period='night']) .scenario-dialog,.halloween-edition .scenario-dialog{--ink:#f6e6d1;--muted:#cbb2c6;background:#2b2038;color:var(--ink);border:0;box-shadow:0 24px 90px #100a2259}
.room-experience .scenario-dialog::backdrop{background:#28243b55;backdrop-filter:blur(7px)}
.halloween-edition .scenario-dialog::backdrop,.room-experience:has([data-period='night']) .scenario-dialog::backdrop{background:#140d246b}
.scenario-dialog .dialog-heading{margin-bottom:0;align-items:center;gap:16px}
.scenario-dialog .icon-button{background:#6c7f7110;color:#77687e;flex-shrink:0;border:0;width:44px;height:44px}
.room-experience:has([data-period='night']) .scenario-dialog .icon-button,.halloween-edition .scenario-dialog .icon-button{background:#e6c9db12;color:#d8bfd0}
.room-experience .scenario-dialog h2{font-size:29px;line-height:1.25}
.scenario-dialog .scenario-intro{font-size:13px;line-height:1.6;color:var(--muted);margin:12px 0 0}
.scenario-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:23px}
.scenario-card{display:flex;flex-direction:column;min-width:0;padding:0;border:0;border-radius:15px;text-align:left;color:inherit;background:transparent;cursor:pointer;position:relative;box-shadow:none;outline:none;transition:transform .18s ease}
.scenario-card:hover{transform:translateY(-2px)}
.scenario-preview{position:relative;display:block;overflow:hidden;width:100%;border-radius:14px;isolation:isolate;background:#cddfe0;box-shadow:0 0 0 1px #687b7029}
.scenario-card img{display:block;width:100%;height:auto;object-fit:contain}
.scenario-card-copy{display:block;padding:13px 2px 0;min-width:0}
.scenario-card strong{display:block;font-size:18px;font-weight:500;line-height:1.3;margin:0}
.scenario-card small{display:block;font-size:12px;line-height:1.55;margin:5px 0 0;color:var(--muted)}
.scenario-card[aria-pressed='true'] .scenario-preview{box-shadow:0 0 0 2px #789884}
.halloween-edition .scenario-card[aria-pressed='true'] .scenario-preview{box-shadow:0 0 0 2px #d5a271}
.scenario-card[aria-pressed='true'] .scenario-preview:after{content:'✓';position:absolute;right:9px;top:9px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff3dd;color:#556d5d;font-size:16px;box-shadow:0 1px 8px #1722331a}
.halloween-edition .scenario-card[aria-pressed='true'] .scenario-preview:after{background:#f9dfb9;color:#76513e}
.room-experience .scenario-card:focus-visible{outline:2px solid #6e927c;outline-offset:5px}
.halloween-edition .scenario-card:focus-visible{outline-color:#edb277}
.scenario-status{min-height:18px;font-size:12px;line-height:1.5;margin:18px 0 0;color:var(--muted)}
.scenario-status:empty{display:none}
/* One wordmark across scenes: theme changes only its colour. */
.room-experience .wordmark,
.room-experience.halloween-edition .wordmark{
 font-family:Delius,cursive;font-size:30px;font-weight:400;line-height:1.2;letter-spacing:0;text-shadow:none;
}
.room-experience:not(.halloween-edition) .wordmark{color:#51405f}
.room-experience:not(.halloween-edition):has([data-period='night']) .wordmark{color:#e7ddf1}
.room-experience.halloween-edition .wordmark{color:#e3b9e9}
.room-experience .topbar,.room-experience.halloween-edition .topbar{top:20px;left:40px;display:block}
/* Matching layout avoids a camera jump as the theme or song title changes. */
@media(min-width:780px){.room-experience.quiet-controls .control-panel,.room-experience.quiet-controls:has([data-period='night']) .control-panel{left:40px}.room-experience .topbar{left:40px}}
.room-experience.quiet-controls .track-choice{height:58px;min-height:58px}
.room-experience.quiet-controls .track-choice strong{display:block;-webkit-line-clamp:unset;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
@media(max-width:779px){
 .scenario-open{right:68px;top:14px;padding:0 11px;gap:6px;font-size:11px;border-radius:12px}
 .room-experience .topbar,.room-experience.halloween-edition .topbar{top:14px;left:18px}
 .room-experience .wordmark,.room-experience.halloween-edition .wordmark{font-size:26px}
 .scenario-grid{gap:14px;margin-top:20px}
 .scenario-dialog .scenario-intro{font-size:12px}
 .room-experience .scenario-dialog{padding:22px}
 .room-experience .scenario-dialog h2{font-size:27px}
 .scenario-card strong{font-size:17px}
 .scenario-card small{font-size:11px}
}
@media(max-width:479px){
 .scenario-open{right:66px;padding:0 10px}.scenario-open svg{display:none}
 .scenario-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .scenario-card{display:grid;grid-template-columns:43% minmax(0,1fr);gap:15px;align-items:center}
 .scenario-card-copy{padding:0}
 .scenario-card[aria-pressed='true'] .scenario-preview:after{top:7px;right:7px;width:22px;height:22px;font-size:14px}
}
@media(min-width:600px) and (max-width:779px) and (max-height:539px){.room-experience.quiet-controls .control-panel{left:16px}}
@media(prefers-reduced-motion:reduce){.scenario-card{transition:none}.scenario-card:hover{transform:none}}
.halloween-one-shots{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}.halloween-one-shots button{flex:1;min-height:38px;font-size:11px;border:1px solid #d6a6bc30;border-radius:10px;padding:0 8px;color:inherit;background:#f4c58e0b}.halloween-one-shots button[aria-pressed='true']{background:#b7795538;border-color:#e2aa6c88}#halloween-sound-note{font-size:10px;line-height:1.5;opacity:.7;margin:7px 0 8px}.halloween-visit{width:100%;min-height:38px;font-size:11px;border:1px solid #d6a6bc30;border-radius:10px;background:transparent;color:inherit;margin-bottom:8px}.halloween-visit:hover{background:#f4c58e0b}#halloween-audio-toggle{padding-top:0;padding-bottom:0;min-height:38px;font-size:11px}.halloween-sound-section{border-top:1px solid #d6a6bc25;margin-top:10px;padding-top:2px}
.scenario-open:disabled{cursor:wait;opacity:.7}
@media(min-width:780px){.room-experience .control-panel{max-height:calc(var(--app-height,100dvh) - var(--panel-bottom) - 145px)}}
@media(min-width:600px) and (max-height:540px){.room-experience .control-panel{max-height:calc(var(--app-height,100dvh) - var(--panel-bottom) - 92px)}}
.room-experience .wordmark{transition:color .45s ease}.room-experience .control-panel{transition:color .8s ease,border-color .8s ease,opacity .3s ease,transform .45s ease,visibility .3s}

@media(prefers-reduced-motion:reduce){.room-experience .wordmark,.room-experience .control-panel{transition:none}}
.room-experience:has(.scene.motion-paused) .wordmark{transition:none}
