.game-language{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;max-width:100%;margin:.8rem 0;font:400 .9rem/1.5 system-ui,sans-serif;color:inherit}
.game-language select{font:inherit;max-width:100%;padding:.4rem .65rem;color:inherit;background:#182028;border:1px solid #958565;border-radius:.3rem}
.game-language option{color:#f6f1e3;background:#182028}
.game-language-error{position:fixed;z-index:100000;inset:auto 1rem 1rem;max-width:40rem;margin:auto;padding:1rem;color:#f9f5ed;background:#182028;border:1px solid #958565;border-radius:.5rem;font:1rem/1.5 system-ui,sans-serif}
.game-language-error button{margin:.4rem .6rem 0 0;padding:.5rem .8rem}
.game-script-font{font-family:'UAPRAD Game Text',system-ui,sans-serif}
.game-script-font body,.game-script-font button,.game-script-font input,.game-script-font select,.game-script-font textarea,.game-script-font p,.game-script-font h1,.game-script-font h2,.game-script-font h3,.game-script-font strong,.game-script-font label,.game-script-font span,.game-script-font dt,.game-script-font dd{font-family:'UAPRAD Game Text',system-ui,sans-serif!important;letter-spacing:normal!important}
.game-script-font #manor-title,.game-script-font #manor-title span{font-family:'Grongle Gothic',serif!important}
.game-script-font svg text{font-family:'UAPRAD Game Text',system-ui,sans-serif!important}
.game-text-rtl :is(p,h1,h2,h3,h4,dt,dd,label,summary,button,option,[role=status],[role=alert],.app-document-body){direction:rtl;unicode-bidi:plaintext}
.game-text-rtl :is(input[type=range],canvas,.manor-stick,.game-language select){direction:ltr}
[data-game-locale]:not([data-game-locale=en]) :is(button,.entry-copy,.app-dialog,.entry-card){overflow-wrap:anywhere}
[data-game-locale]:not([data-game-locale=en]) .app-dialog button{white-space:normal}
.halloween-welcome .entry-actions{flex-wrap:wrap;row-gap:8px}
.halloween-welcome #manor-start,.halloween-welcome .hunt-mode{flex-shrink:0}
.halloween-welcome .entry-actions .game-language{flex-shrink:0;margin:0}
[data-game-locale]:not([data-game-locale=en]) .halloween-welcome #manor-start{white-space:nowrap;overflow-wrap:normal;font-size:clamp(24px,2.8vw,38px)}
@media(max-width:540px){.game-language{font-size:.85rem;margin:.5rem 0}.game-language select{padding:.3rem .45rem}}
@media(max-height:420px){
 .halloween-welcome .welcome-copy{row-gap:3px;grid-template-rows:auto minmax(0,1fr) auto auto auto}
 .halloween-welcome .manor-loading{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
 .halloween-welcome .manor-loading #manor-load-status{grid-row:auto;min-height:0;margin:0;font-size:12px;line-height:1.2}
 .halloween-welcome #manor-load-progress{height:12px;margin:0}
 .halloween-welcome #manor-load-count{margin:0;font-size:12px;line-height:1.2}
 /* Use each script font's full line metrics so its inline box cannot cover the progress row. */
 .game-script-font .halloween-welcome .manor-loading :is(#manor-load-status,#manor-load-count){line-height:normal}
}
