/* v33: clickable doors align with a single, uncropped corridor illustration. */
body.game-theme button.profile-open {display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;min-height:48px!important;padding:0!important;border:2px solid #f2c36f!important;border-radius:0!important;box-shadow:3px 3px 0 #08070c!important;color:#f2c36f!important}
body.game-theme button.profile-open svg {display:block;width:25px;height:25px;pointer-events:none}
body.game-theme button.profile-open:hover {background:#322b20!important}
body.game-theme button.profile-open[hidden] {display:none!important}
body.game-theme.hall-mode #scene {display:none!important}
body.game-theme.hall-mode>.shade {background:linear-gradient(180deg,#211b29,#0c0b10)!important}
body.game-theme.hall-mode #app {display:block!important;padding:8px 3vw 20px!important;min-height:calc(100svh - 108px)!important}
body.game-theme.hall-mode>footer {display:none}
.hall-game {width:100%;max-width:1400px;margin:auto}
@media(min-width:801px) {.hall-game {max-width:min(1400px,max(780px,calc(177.7svh - 610px)))}}
body.game-theme .hall-caption {text-align:center;margin:0 auto 18px}
body.game-theme .hall-caption h1 {font-size:clamp(28px,3vw,44px)!important;line-height:1.1!important;letter-spacing:0!important;margin:0 0 8px!important;color:#f2c36f;text-shadow:3px 3px 0 #000}
body.game-theme .hall-caption p {font-size:15px!important;line-height:1.5!important;margin:0!important}
.hall-viewport {width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#f2c36f #211b29;scrollbar-width:thin;border:2px solid #74647b;box-shadow:5px 5px 0 #000}
.hall-scene {position:relative;width:100%;min-width:780px;isolation:isolate}
.hall-art {display:block;width:100%;height:auto;user-select:none;pointer-events:none}
body.game-theme button.hall-door {position:absolute;left:var(--door-left);top:26.4%;width:15.9%;height:53.5%;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;transform:none!important;overflow:visible;opacity:1!important;transition:none;color:#17131e!important}
body.game-theme button.hall-door:hover,body.game-theme button.hall-door:disabled,body.game-theme button.hall-door:disabled:hover {background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;opacity:1!important}
body.game-theme button.hall-door:focus-visible {outline:4px solid #f2c36f!important;outline-offset:3px;z-index:2}
body.game-theme .hall-door-plaque {position:absolute;top:12%;left:15%;width:70%;display:block;padding:10px 7px;background:#f7f1dc;border:2px solid #625343;box-shadow:2px 3px 0 #0008;font-family:var(--gta-title)!important;font-size:clamp(16px,1.4vw,21px)!important;line-height:1.13!important;letter-spacing:0!important;text-align:center;overflow-wrap:normal;hyphens:auto;color:#211b29!important;transition:background .15s,border-color .15s}
body.game-theme .hall-door-plaque.hall-long-title {font-family:Arial,Helvetica,sans-serif!important;font-size:clamp(12px,1.05vw,15px)!important;line-height:1.2!important;padding:9px 5px;font-weight:700}
body.game-theme .hall-door-status {position:absolute;bottom:5%;left:10%;width:80%;display:block;padding:9px 4px;background:#17131eee;border:1px solid #a89bac;font-family:var(--gta-title)!important;font-size:clamp(15px,1.4vw,21px)!important;line-height:1.2!important;letter-spacing:0!important;color:#ded4e4!important;text-align:center}
body.game-theme .hall-door-open .hall-door-status {border-color:#f2c36f;color:#f2c36f!important}
body.game-theme .hall-door-open:hover .hall-door-plaque,body.game-theme .hall-door-open:focus-visible .hall-door-plaque {background:#ffda94;border-color:#f2c36f}
body.game-theme .hall-door-complete .hall-door-status {color:#bce5ce!important;border-color:#bce5ce}
.hall-checkpoint {position:absolute;left:3%;bottom:-17%;width:94%;height:30%;background:linear-gradient(180deg,#f2c36f00,#f2c36f25 45%,#f2c36f66);clip-path:polygon(30% 0,70% 0,100% 87%,90% 100%,10% 100%,0 87%);pointer-events:none;animation:checkpoint-glow 2.4s ease-in-out infinite alternate}
.hall-checkpoint:after {content:'';position:absolute;left:3%;right:3%;bottom:0;height:16%;border:3px solid #ffda94;border-radius:50%;background:#f2c36f33}
.hall-door-locked .hall-checkpoint {display:none}
.hall-door-complete .hall-checkpoint {background:linear-gradient(180deg,#bce5ce00,#bce5ce25 45%,#bce5ce66)}
.hall-door-complete .hall-checkpoint:after {border-color:#bce5ce}
@keyframes checkpoint-glow {from{opacity:.6;transform:translateY(0)}to{opacity:1;transform:translateY(-4px)}}
.hall-navigation {display:flex;justify-content:center;align-items:center;gap:22px;margin:20px auto 0}
body.game-theme .hall-arrow {width:54px;height:48px;padding:0!important;display:grid;place-items:center;flex-shrink:0;background:#17131e!important;border:2px solid #f2c36f!important;color:#f2c36f!important;font-size:28px!important;line-height:1!important;border-radius:0!important;box-shadow:3px 3px 0 #000!important}
body.game-theme .hall-arrow:hover {background:#322b20!important}
.hall-page {text-align:center}
body.game-theme .hall-page>span {font-family:var(--gta-title)!important;font-size:20px!important;color:#f2c36f}
body.game-theme .hall-page p {font-size:13px!important;line-height:1.4!important;margin:5px 0 0!important}
.hall-touch-help {display:none}
.hall-back {text-align:center;margin:14px auto 0}
@media(max-width:800px) {
 .hall-touch-help {display:inline}
 body.game-theme.hall-mode #app {padding:8px 14px 20px!important}
 body.game-theme .hall-caption p {font-size:14px!important}
 .hall-navigation {gap:12px;margin-top:16px}
 body.game-theme .hall-page p {max-width:250px;font-size:12px!important}
 body.game-theme .hall-door-plaque {font-size:16px!important}
 body.game-theme .hall-door-plaque.hall-long-title {font-size:12px!important}
}
@media(max-width:600px) {
 body.game-theme header {padding:14px 16px!important;gap:10px}
 body.game-theme .header-actions {gap:10px}
 body.game-theme .header-actions .hud {display:flex;gap:4px;max-width:120px}
 body.game-theme .hud-location {font-size:12px!important}
 body.game-theme .header-actions #reset {padding:5px 7px!important;font-size:10px!important;min-height:30px!important}
 body.game-theme .header-actions button.profile-open {width:44px;height:44px;min-height:44px!important}
 body.game-theme .brand {gap:8px}
 body.game-theme .brand>span:last-child {font-size:16px!important}
 body.game-theme .brand small {font-size:8px!important}
 body.game-theme .brand-icon {font-size:28px!important;padding:7px!important}
 body.game-theme .hall-caption h1 {font-size:29px!important}
 .hall-navigation {gap:10px}
 body.game-theme .hall-arrow {width:44px;height:44px}
 body.game-theme .hall-page>span {font-size:17px!important}
}
@media(prefers-reduced-motion:reduce) {.hall-checkpoint {animation:none}}
@media(max-width:380px) {
 body.game-theme .brand>span:last-child {font-size:14px!important}
 body.game-theme .brand small {display:none}
 body.game-theme .header-actions .hud {max-width:90px}
 body.game-theme .header-actions {gap:8px}
}
