/* Leave the original stage, tickets and background composition intact. */
.hall canvas.character-sprite{animation:none!important;aspect-ratio:1;max-width:120%;object-fit:contain}
.hall-character-fallback[hidden],.hall canvas[hidden]{display:none!important}
.hall-window{position:absolute;left:43%;right:4%;top:calc(var(--header) + 20px);bottom:24%;z-index:2;border:0;background:transparent;color:#fcf0cd;padding:0;cursor:pointer;display:flex;align-items:flex-start;justify-content:center;isolation:isolate}
.hall-window:before{content:'';position:absolute;inset:0;border-radius:45% 45% 10% 10%;opacity:0;background:radial-gradient(ellipse,#eadc9820,transparent 65%);transition:opacity .35s;pointer-events:none}
.hall-window:hover:before,.hall-window:focus-visible:before{opacity:1}
.hall-window:focus-visible{outline:1px solid #d6c89690;outline-offset:6px}
.hall-window-hint{display:flex;gap:8px;align-items:center;padding:9px 15px;border:1px solid #e6d9a756;border-radius:30px;background:#263c2e88;backdrop-filter:blur(8px);box-shadow:0 4px 18px #10251c20;font:12px var(--serif);letter-spacing:1px;pointer-events:none}
.hall-window-hint small{font:9px Georgia,serif;letter-spacing:1.2px;opacity:.65}.hall-window[aria-busy=true] .hall-window-hint{opacity:.65}
.hall-idle-hint{position:absolute;bottom:2%;left:50%;transform:translateX(-50%);color:#f4e9ca9c;font:9px var(--serif);letter-spacing:.7px;white-space:nowrap;text-shadow:0 1px 8px #163322;pointer-events:none;z-index:5}
.hall-sleep{position:absolute;right:12%;top:15%;font:italic 29px Georgia,serif;color:#ecdfb5;text-shadow:0 2px 8px #263c2c;opacity:0;transform:translateY(10px);transition:opacity 2s,transform 2s;pointer-events:none}
.hall-sleep span{display:inline-block;font-size:.65em;transform:translate(5px,-16px)}
.character-stage[data-phase=sleeping] .hall-sleep{opacity:.8;transform:translateY(-6px);animation:sleep-drift 4s ease-in-out infinite}
.character-stage[data-phase=drowsy] .hall-sleep{opacity:.25}
@keyframes sleep-drift{0%,100%{transform:translateY(-6px)}50%{transform:translateY(-16px)}}
.hall .dialogue-text .hall-spoken{display:block}.hall .hall-source a{color:#e8dca8;text-underline-offset:3px}.hall .hall-source{font:10px/1.5 var(--sans);letter-spacing:.3px}
.hall .dialogue[data-news]{min-height:105px}.hall .dialogue[data-news] .hall-spoken{font-size:clamp(12px,1.1vw,17px);line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.l-stage canvas{transform-origin:center bottom}.librarian-console[data-phase=sleeping] .l-status-dot{background:#a89871}.librarian-console[data-phase=drowsy] .l-status-dot{background:#a89871}
.no-motion .hall-sleep{animation:none!important}
@media(max-width:700px){.hall-window{left:35%;right:5%;top:calc(var(--header) + 16px);bottom:53%}.hall-window-hint{padding:7px 10px;font-size:10px;letter-spacing:.4px}.hall-window-hint small{display:none}.hall-idle-hint{bottom:0;font-size:8px}.hall-sleep{font-size:23px;right:17%;top:12%}.hall .dialogue[data-news]{height:116px;min-height:0;padding-top:12px;padding-bottom:12px}.hall .hall-source{font-size:8px;letter-spacing:0}.hall .dialogue[data-news] .hall-spoken{font-size:12px;line-height:1.5}}
@media(prefers-reduced-motion:reduce){.hall-sleep{animation:none!important}.hall-window:before{transition:none}}
@media(max-width:700px){.hall-window{left:auto;right:5%;top:calc(var(--header) + 105px);bottom:auto;width:auto;height:30px;z-index:9}.hall-window-hint{font-size:10px;padding:6px 10px}}
.hall-window-region{position:absolute;left:43%;right:4%;top:18%;bottom:24%;z-index:2;cursor:pointer}
.hall-window{left:auto;right:10%;top:calc(var(--header) + 22px);bottom:auto;width:auto;height:34px;z-index:9}
@media(max-width:700px){.hall-window{right:5%;top:calc(var(--header) + 105px);height:30px}.hall-window-region{left:62%;right:3%;top:29%;bottom:43%}}
@media(min-width:701px){.hall-window{left:55%;right:auto;transform:translateX(-50%);top:calc(var(--header) + 14px)}.hall-sleep{right:28%;top:20%}}
/* V3: fixed full-resolution character, continuous limbs, lower seating. */
.hall canvas.character-sprite{filter:none!important;image-rendering:auto;max-width:120%;transform:translateY(22px);animation:none!important}
.hall-character-fallback{filter:none!important;animation:none!important;transform:translateY(22px)}
.hall .dialogue{z-index:12;min-height:105px;overflow:visible}
.hall .dialogue-text{min-width:0;flex:1}.hall .dialogue[data-news] .hall-spoken{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:clamp(12px,1.03vw,16px);line-height:1.55}
.hall .hall-source{display:block;margin-top:4px;font-size:10px;line-height:1.45}.hall .dialogue-next{flex-shrink:0}
.hall-search-trigger{position:absolute;right:42px;top:-20px;border:0;background:#263b31d9;border-radius:12px;color:#ede2bd;font:11px var(--sans);padding:3px 9px}
.hall-idle-hint{bottom:-10px;opacity:.7}.hall-sleep{right:30%;top:24%}
#hallSearchDialog{width:min(670px,94vw);max-height:85dvh;overflow:auto;padding:0;border:1px solid #aa986a;background:#eee8d6;color:#304438;border-radius:12px}
#hallSearchDialog::backdrop{background:#14271c80;backdrop-filter:blur(3px)}.hall-search-shell{padding:25px}.hall-search-shell header{display:flex;justify-content:space-between;align-items:start}.hall-search-shell header small{font:10px Georgia;letter-spacing:1.7px}.hall-search-shell h2{font:26px var(--serif);margin:8px 0 25px}.hall-search-shell header button{border:0;background:transparent;font-size:26px}.hall-search-input{display:flex;gap:8px;margin:9px 0}.hall-search-input input{width:100%;min-width:0;padding:12px;border:1px solid #879b86;background:#fffaf0;border-radius:5px}.hall-search-input button,.hall-search-results button{padding:9px 15px;border:0;background:#344d3d;color:#f5edda;border-radius:5px;white-space:nowrap}.hall-search-scope{display:block;margin-bottom:10px}.hall-search-shell form small{display:block;color:#69745f;font-size:11px}.hall-search-results article{border-top:1px solid #b8b49b;padding:16px 0}.hall-search-results a{font-size:16px;color:#284d3b;font-weight:600}.hall-search-results small{display:block;font-size:11px;margin:7px 0;color:#6b745e}.hall-search-results p{font-size:13px;line-height:1.65}.hall-search-results button{font-size:12px}.hall-search-shell [data-search-status]{font-size:13px;line-height:1.7}
@media(max-width:700px){.hall canvas.character-sprite,.hall-character-fallback{transform:translateY(12px)}.hall .dialogue,.hall .dialogue[data-news]{height:116px;min-height:116px;left:4%;right:4%;padding:13px 23px;bottom:84px}.hall .dialogue[data-news] .hall-spoken{font-size:12px;line-height:1.5}.hall .hall-source{font-size:8px;line-height:1.4}.hall .dialogue-next{width:27px;flex-basis:27px}.hall-search-trigger{right:25px;top:-19px}.hall-sleep{right:28%;top:20%}.hall-search-shell{padding:18px}.hall .scene-weather{bottom:22px;height:43px;width:110px;right:4%}.hall .client-calendar{bottom:211px}.hall-idle-hint{display:none}}

/* Hall bust framing: retain the upper 72% of the animated square canvas.
   Lift the crop's scale, not the head/limb geometry, and anchor its lower edge
   where the full portrait previously met the dialogue frame. */
.hall canvas.character-sprite {
  height: 138.8889%;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  clip-path: inset(0 0 28% 0);
  transform: translateY(calc(28% + 22px));
  mask-image: none;
  -webkit-mask-image: none;
}

/* The static portrait has different transparent margins from the canvas. */
/* Reserve space for the existing bulletin using only the character layer.
   The original bust crop and aspect ratio stay intact on short windows. */
@media (min-width:701px) {
  body:not(.immersive) .hall .character-stage {
    bottom:172px;
    height:min(72.5%,calc(100% - var(--header) - 132px));
  }
}
.hall .hall-character-fallback {
  height: 132.4503%;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  clip-path: inset(0 0 24.5% 0);
  transform: translateY(calc(24.5% + 22px));
  mask-image: none;
  -webkit-mask-image: none;
}
@media (max-width: 700px) {
  .hall canvas.character-sprite { transform: translateY(calc(28% + 12px)); }
  .hall .hall-character-fallback { transform: translateY(calc(24.5% + 12px)); }
}
@media (max-width: 700px) and (max-height: 690px) {
  /* Share the upper area with a ticket column on short screens so the bust
     stays visible at a useful size above the larger dialogue. */
  .hall .character-stage { left: 30%; width: 58%; height: clamp(180px, calc(100% - 310px), 280px); bottom: 226px; }
  .hall .ticket-stack { display: flex; flex-direction: column; left: auto; right: 4%; top: 85px; width: 40%; height: auto; gap: 4px; }
  .hall .ticket { flex: 0 0 auto; }
  .hall .hall-search-trigger { top: auto; bottom: 10px; right: 24px; font-size: 13px; }
  .hall .hall-source { padding-right: 62px; }
  .hall canvas.character-sprite { transform: translateY(28%); }
  .hall .hall-character-fallback { transform: translateY(24.5%); }
}
