:root{--glass:rgba(35,40,23,.53);--line:rgba(255,230,170,.65)}
.layer-controls{border:1px solid #c8b98255;border-radius:12px;margin:15px 0;padding:8px 12px}.layer-controls legend{font-size:11px;color:#efdbac;padding:0 6px}#camera-yaw{width:100%;accent-color:#d5b470;min-height:32px}#yaw-value{float:right;font-variant-numeric:tabular-nums}#settings .check-label{min-height:32px;margin:5px 0}
.topbar{top:max(12px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right))}
.brand{border-radius:28px;padding:7px 19px 7px 13px;gap:10px}.brand strong{font-size:20px}.brand small{margin-top:2px;letter-spacing:1.3px}.cross{font-size:39px}.clock{border-radius:24px;padding:7px 15px}.clock time{font-size:22px}
.bottom-ui{bottom:max(20px,env(safe-area-inset-bottom));grid-template-columns:140px minmax(0,580px) 165px;gap:22px}.dialogue{border-radius:17px;padding:10px 15px;min-height:76px;gap:13px}.dialogue p{font-size:16px}.speaker strong{font-size:20px}.portrait{height:52px;width:48px;border:0;border-radius:13px}.dpad{width:118px;height:118px}.movement>small{display:none}.camera-tools .icon{min-width:44px;height:44px;border-radius:13px}.world-label{font-size:9px;opacity:0!important}.vignette{box-shadow:inset 0 0 70px #0a160c15;background:linear-gradient(transparent 80%,#10170c22)}.scene-hint{bottom:110px;opacity:.8}.check-label{display:flex!important;align-items:center;gap:8px}.check-label input{width:18px;height:18px;accent-color:#d7b879}#settings a{display:block}#settings{background:#19231deb}#viewport{cursor:grab}#viewport:active{cursor:grabbing}.top-actions .icon{height:44px;min-width:44px}
@media(max-width:760px){.brand{padding:8px 11px}.brand strong{font-size:14px}.brand small{font-size:8px}.cross{font-size:29px}.clock{padding:8px 10px}.clock time{font-size:18px}.clock small{font-size:8px}.top-actions .icon{min-width:40px;height:44px}.bottom-ui{grid-template-columns:1fr 1fr;gap:12px;bottom:max(14px,env(safe-area-inset-bottom))}.dialogue{grid-column:1/-1;min-height:74px;padding:9px 12px}.dialogue p{font-size:13px}.portrait{height:46px;width:40px}.dpad{width:105px;height:105px}.scene-hint{bottom:215px;font-size:9px}.speaker span{font-size:9px}#settings{top:88px}}
@media(max-width:370px){.brand strong{font-size:12px}.brand small{font-size:7px}.clock #light-icon{display:none}.topbar{gap:5px}.clock time{font-size:17px}.top-actions{gap:4px}}
@media(max-height:520px) and (orientation:landscape){.bottom-ui{grid-template-columns:100px minmax(0,540px) 155px;gap:15px;bottom:max(8px,env(safe-area-inset-bottom))}.dialogue{grid-column:2;grid-row:1;min-height:62px}.dialogue p{font-size:12px}.dpad{width:90px;height:90px}.camera-tools .icon{min-width:42px;height:42px}.scene-hint{bottom:88px}.brand strong{font-size:16px}.brand{padding:6px 12px}.topbar{top:max(7px,env(safe-area-inset-top))}#settings{top:70px}}

.chapel-light-entry{position:absolute;z-index:4;top:calc(max(16px,env(safe-area-inset-top)) + 70px);left:max(16px,env(safe-area-inset-left));display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:20px;color:#fff4d8;font:500 14px/1.4 system-ui,sans-serif;text-decoration:none}
.chapel-light-entry span{font-size:18px;color:#f5c57a}
@media(max-width:760px),(max-height:520px){.chapel-light-entry{top:calc(max(10px,env(safe-area-inset-top)) + 58px);left:12px}}
