/* Keep one action rail visible while the scene information is folded away. */
:root{--action-rail-width:150px;--action-rail-left:max(18px,env(safe-area-inset-left));--action-rail-right:calc(var(--action-rail-left) + var(--action-rail-width))}
.action-bar{position:absolute;top:50%;bottom:auto;left:var(--action-rail-left);right:auto;width:var(--action-rail-width);max-width:none;height:auto;max-height:calc(100dvh - 150px);overflow-y:auto;transform:translateY(-50%);display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:8px;border-radius:12px;background:#f7f5e9ed;z-index:9;scrollbar-width:thin}
.action-bar .action{display:grid;grid-template-columns:26px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;row-gap:3px;align-items:center;justify-content:initial;text-align:left;width:100%;min-width:0;min-height:56px;padding:9px 8px;border-radius:7px}
.action-bar .action svg{width:25px;height:25px;grid-column:1;grid-row:1/3}
.action-bar .action>span{font:16px var(--serif);letter-spacing:2px;grid-column:2;white-space:nowrap}
.action-bar .action small{display:block;grid-column:2;font:11px var(--text);letter-spacing:0;overflow:hidden;text-overflow:ellipsis}
.action-bar .action-divider{display:none}
.action-bar .action.selected{background:#e7dfcba8;color:#8a513b}
.action-bar .action:disabled{opacity:.55;cursor:wait}
.action-bar .hall-exit{border-top:1px solid var(--line);border-radius:0;margin-top:3px}
.action-bar .hall-exit[hidden]{display:none!important}
.introduction{left:calc(var(--action-rail-right) + 28px)}
.hall-card{left:calc(var(--action-rail-right) + 18px)}
.scene-heading,.action-bar #scene-ui-toggle{display:none}
body.inside-hall .action-bar #scene-ui-toggle{display:grid;border-top:1px solid var(--line);border-radius:0;margin-top:3px}
body.scene-focus .masthead,body.scene-focus .introduction,body.scene-focus .map-panel,body.scene-focus .hall-card,body.scene-focus .mode-controls,body.scene-focus .view-controls,body.scene-focus .visit-state,body.scene-focus .footer,body.scene-focus #landmarks,body.scene-focus #player-labels,body.scene-focus .touch-hint{visibility:hidden!important;pointer-events:none!important}
body.scene-focus .scene-heading{display:block;position:absolute;top:calc(env(safe-area-inset-top) + 16px);left:max(16px,env(safe-area-inset-left));max-width:calc(100vw - 150px);font:17px var(--serif);letter-spacing:2px;color:#46553b;padding:10px 12px;background:#f7f4e8b5;border-radius:6px;pointer-events:none;z-index:8}
body.scene-focus .toast{left:calc((100% + var(--action-rail-right)) / 2);bottom:calc(env(safe-area-inset-bottom) + 14px);font:12px/1.6 var(--text);letter-spacing:0;width:max-content;max-width:calc(100vw - var(--action-rail-right) - 28px);padding:7px 12px;white-space:normal;box-shadow:none;background:#34442bd6;z-index:10}
body.evening.scene-focus .scene-heading{background:#33483eea;color:#ede5ce;border-color:#82967955}
body.evening .action-bar .action.selected{background:#596747;color:#f2d7a6}
@media(max-width:760px),(pointer:coarse) and (max-width:1180px){
 :root{--action-rail-width:66px;--action-rail-left:max(10px,env(safe-area-inset-left))}
 .action-bar{left:var(--action-rail-left);right:auto;top:50%;bottom:auto;width:var(--action-rail-width);height:auto;max-height:calc(100dvh - 140px);transform:translateY(-50%);display:flex;grid-template-columns:none;gap:4px;padding:5px;border-radius:10px}
 .action-bar .action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;padding:5px 1px;text-align:center}
 .action-bar .action svg{width:22px;height:22px}
 .action-bar .action>span{font-size:13px;letter-spacing:1px}
 .action-bar .action small{display:none}
 .introduction{left:calc(var(--action-rail-right) + 12px);max-width:calc(100vw - var(--action-rail-right) - 24px);padding:10px}
 .introduction h1{font-size:25px;letter-spacing:2px}.introduction .intro-copy{font-size:12px;letter-spacing:0}
 .hall-card{left:calc(var(--action-rail-right) + 12px);right:14px;width:auto;max-width:520px;bottom:max(20px,env(safe-area-inset-bottom));max-height:calc(100dvh - 155px)}
 .hall-card-actions{grid-template-columns:1fr}
 body.scene-focus .scene-heading{font-size:14px;letter-spacing:1px;padding:10px 8px;max-width:calc(100vw - 133px)}
 body.inside-hall .action-bar #scene-ui-toggle{display:flex}
}
@media(max-height:620px) and (orientation:portrait){
 .action-bar{gap:2px}.action-bar .action{min-height:46px;gap:3px}.action-bar .action svg{width:20px;height:20px}
}
@media(max-height:500px) and (orientation:landscape){
 :root{--action-rail-width:128px}
 .action-bar{top:50%;bottom:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:var(--action-rail-width);height:auto;max-height:calc(100dvh - 122px);gap:4px;padding:5px}
 .action-bar .action{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:46px;padding:4px 1px;text-align:center}
 .action-bar .action>span{font-size:12px;letter-spacing:0}.action-bar .action svg{width:20px;height:20px}.action-bar .action small{display:none}
 .action-bar .hall-exit{margin-top:0;border-top:0}
 .hall-card{left:calc(var(--action-rail-right) + 12px);right:auto;width:min(350px,calc(100vw - var(--action-rail-right) - 26px));bottom:12px;max-height:calc(100dvh - 135px)}
}

@media(max-height:500px) and (orientation:landscape){body.inside-hall .action-bar #scene-ui-toggle{display:flex;margin-top:0;border:0}}
#tool-sound-state[data-error="true"]{color:#92503e}.tool-feedback{margin:12px 0 0;font:13px/1.7 var(--text);color:#92503e}

/* Entertainment notices stay in existing panels; the scene keeps one small corner label. */
.experience-notice{font:12px/1.7 var(--text);letter-spacing:0;color:#56624b;background:#eae7d877;border:1px solid #a8ae902e;border-radius:6px;padding:9px 11px}
.experience-notice strong,.experience-notice span{display:block}.experience-notice strong{font-weight:600;color:#48573d}
.gate-experience-notice{max-width:440px;margin:15px 0 20px}.gate-experience-notice span{margin-top:2px;font-size:11px}
.experience-tag{display:inline-block;margin:8px 0 0;padding:4px 7px;border:1px solid #87916d4d;border-radius:4px;color:#516243;background:#f3f1e5bd;font:11px/1.5 var(--text);letter-spacing:.5px}
.hall-experience-notice{margin:12px 0;font-size:11px}.character-experience-notice{margin:0 0 15px}
.scene-experience-notice{display:none;pointer-events:none;margin:0;position:absolute;top:calc(env(safe-area-inset-top) + 16px);right:max(16px,env(safe-area-inset-right));z-index:8;padding:6px 9px;border:1px solid #8a957b2e;border-radius:5px;background:#f5f2e6d9;color:#526247;font:11px/1.5 var(--text);letter-spacing:.5px;text-align:center}
.scene-experience-notice span{display:block}body.scene-focus .scene-experience-notice{display:block}
body.evening .experience-tag,body.evening .scene-experience-notice{background:#33463be3;color:#efe8d6;border-color:#82967955}
body.evening .hall-experience-notice{background:#33463bd9;color:#e2dfce;border-color:#82967955}
@media(max-width:760px),(pointer:coarse) and (max-width:1180px){.experience-tag{font-size:10px;letter-spacing:0}.scene-experience-notice{right:max(10px,env(safe-area-inset-right));font-size:10px;padding:6px 7px}.gate-experience-notice{margin:12px 0 16px}.experience-notice{font-size:12px}}

.gate-experience-notice span{font-size:clamp(13px,1.3vw,15px);line-height:1.6}

#hall-queue {width:min(23rem,88vw);box-sizing:border-box;padding:1.5rem;border:1px solid #bcb499;border-radius:.75rem;background:#faf6ea;color:#35463b}
#hall-queue::backdrop {background:rgb(28 38 33 / 48%)}
#hall-queue h2 {margin:0;font-family:var(--serif)}
#hall-queue-status,.hall-places {line-height:1.65}
#hall-queue button {width:100%}

.official-domain {
  --filing-height: calc(24px + env(safe-area-inset-bottom, 0px));
}
.official-domain #mountain-gate { bottom: var(--filing-height); }
.official-domain #experience {
  height: calc(100% - var(--filing-height));
  height: calc(100dvh - var(--filing-height));
}
#site-filing:not([hidden]) {
  position: fixed;
  inset: auto 0 0;
  height: var(--filing-height);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  text-align: center;
  background: #f5f3e9;
  z-index: 101;
}
#site-filing a {
  display: inline-block;
  color: #49553e;
  font: 12px/24px var(--text);
  text-underline-offset: 2px;
}
