#rotate-screen[hidden]{display:none}
#rotate-screen{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:32px;text-align:center;color:#ffe4ac;background:radial-gradient(ellipse at center,#4b2916,#160c07 80%);outline:none}
#rotate-screen h1{margin:0;font:32px/1.15 var(--western)}
#rotate-screen p{margin:0;font:16px/1.5 Arial,sans-serif;color:#e1c39b}
.portrait-blocked{overflow:hidden}
#mobile-fullscreen{position:fixed;left:max(8px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));z-index:95;min-height:44px;padding:8px 12px;border:1px solid #b48b4e;border-radius:5px;background:#28150ded;color:#ffe4ac;font:14px Arial,sans-serif}
#mobile-fullscreen[hidden],.portrait-blocked #mobile-fullscreen{display:none}
.mobile-device .scene-viewport{background:url('/bang-prototipo/lobby-salao-mesa-redonda-sem-interface-light.webp') center/cover}
.mobile-device .scene-viewport:has(.battle){background-image:url('/bang-prototipo/arena-deserto-arqueiros-atras-cerca.webp')}
.mobile-device button,.mobile-device input{touch-action:manipulation}
.mobile-passive-close{display:none}
.mobile-device .mobile-passive-close{display:block;float:right;min-width:36px;min-height:36px;padding:0;border:1px solid #a9793e;background:#28150d;color:#ffe4ac;font-size:25px}
.mobile-audio-menu{position:relative;z-index:80}
.mobile-audio-menu summary{cursor:pointer;list-style:none;display:grid;place-items:center;min-width:36px;min-height:36px;font:23px Georgia,serif;color:#ffe4ac}
.mobile-audio-menu summary::-webkit-details-marker{display:none}
.mobile-audio-menu>.audio-controls{position:absolute;right:0;top:100%;padding:10px;background:#2a160ef5;border:1px solid #a9793e;border-radius:5px;flex-direction:column}
.mobile-audio-menu .music-volume,.mobile-audio-menu .effects-volume{width:140px!important}
/* Preserve the approved desktop composition; never stretch the artwork. */
@media(orientation:landscape){
 .mobile-device .approved-scene.battle .machine-anchor{top:var(--machine-y)!important}
 .mobile-device .approved-scene.battle .machine-anchor:not(.interactive-machine){pointer-events:none}
 .mobile-device .approved-scene.battle .machine-anchor.local-machine{left:800px!important;top:575px!important;transform:translateX(-50%) scale(1.5)}
 .mobile-device .approved-scene.battle .local-machine .reel{overflow:visible}
 .mobile-device .approved-scene.battle .local-machine .reel:before{content:'';position:absolute;inset:-6px;z-index:4}
 .mobile-device .approved-scene.battle .local-machine .reel-symbol{clip-path:inset(0 round 2px)}
 .mobile-device .approved-scene.battle .action-bar{transform:scale(var(--control-scale,1));transform-origin:bottom left;flex-direction:column;max-width:155px;padding:6px;gap:5px}
 .mobile-device .approved-scene.battle .action-copy{width:100%;max-width:100%;text-align:center}
 .mobile-device .approved-scene.battle .action-copy small{display:none}
 .mobile-device .approved-scene.battle .action-copy strong{font-size:14px}
 .mobile-device .approved-scene.battle .action-bar button{height:38px;font-size:12px}
 .mobile-device .approved-scene.battle .action-bar{left:calc(24px + env(safe-area-inset-left)*var(--control-scale,1))}
 .mobile-device .approved-scene.battle .topbar,.mobile-device .scene-tools{transform:scale(var(--control-scale,1));transform-origin:top right}
 .mobile-device .approved-scene.battle .topbar{left:auto;right:0;width:max-content;max-width:none}
 .mobile-device .approved-scene.battle .top-actions .text-button,.mobile-device .scene-tools .text-button{font-size:12px;min-height:36px}
 .mobile-device .audio-controls{gap:2px}
 .mobile-device .music-volume,.mobile-device .effects-volume{width:60px;min-height:36px}
 .mobile-device .approved-scene.battle .passive-overlay{left:800px!important;top:180px!important;width:290px;transform:translateX(-50%) scale(var(--control-scale,1));transform-origin:top center;font-size:14px;z-index:90}
 .mobile-device .approved-scene.battle .passive-overlay strong{font-size:26px}
 .mobile-device .approved-scene.battle .history{max-height:60vh;overflow:auto}
 .mobile-device .approved-scene.battle .ability-toggle:after{content:'';position:absolute;inset:-18px}
 .mobile-device .lobby-seat.self-seat{top:296px}
 .mobile-device .lobby-seat .nickname>[data-fit-text]{font-size:30px}
 .mobile-device .lobby-seat.self-seat .nickname>[data-fit-text]{font-size:32px}
 .mobile-device .lobby-controls-panel{height:180px;width:780px;gap:9px;padding:10px 28px 8px}
 .mobile-device .lobby-controls-panel .room-buttons{height:60px;gap:22px}
 .mobile-device .lobby-controls-panel .wood-button{width:240px}
 .mobile-device .lobby-controls-panel .wood-button.gold-button{width:260px}
 .mobile-device .lobby-controls-panel .wood-button>span{font-size:24px}
 .mobile-device .lobby-controls-panel .wood-button:after{content:'';position:absolute;inset:-12px 0}
 .mobile-device .lobby-controls-panel .invite-row{width:700px;gap:14px}
 .mobile-device .lobby-controls-panel .field{font-size:17px}
 .mobile-device .lobby-controls-panel input{height:40px;font-size:24px}
 .mobile-device .copy-invite{width:62px;height:62px}
 .mobile-device .copy-invite>svg:not(.piece){width:34px;height:34px;left:14px;top:14px}
 .mobile-device .lobby-controls-panel [data-action="leave-room"]{width:190px}
 .mobile-device .lobby-controls-panel [data-action="leave-room"]>span{font-size:21px}
}
@media(orientation:landscape) and (max-height:600px){
 .mobile-device .topbar{padding:5px 12px}
 .mobile-device .topbar .brand-logo{width:175px;height:32px}
 .mobile-device .top-actions{gap:2px;flex-wrap:nowrap}
 .mobile-device .help-hint{display:none}
 .mobile-device .entrance-lobby{min-height:100svh;padding-top:40px;padding-bottom:16px;overflow:auto}
 .mobile-device .entrance-lobby .lobby-title{margin-top:0;width:440px;max-width:46vw}
 .mobile-device .entrance-lobby .lobby-title .eyebrow{font-size:19px}
 .mobile-device .entrance-lobby .lobby-title h1{font-size:30px;margin-top:4px}
 .mobile-device .entrance-lobby .entry-panel{width:440px;max-width:46vw;margin-top:8px;padding:10px 15px;gap:8px}
 .mobile-device .entry-panel input{font-size:16px;min-height:36px;padding:6px 8px}
 .mobile-device .entry-panel .primary{min-width:150px;min-height:40px;padding:7px 18px}
 .mobile-device .entry-panel .fine-print{font-size:10px;margin-top:4px}
 .mobile-device .welcome-copy{max-width:48vw;margin-right:4vw}
 .mobile-device .welcome-copy h2{font-size:32px;margin-bottom:10px}
 .mobile-device .welcome-copy p:not(.welcome-question){font-size:25px;margin-bottom:12px}
 .mobile-device .welcome-copy .welcome-question{font-size:16px;margin-bottom:10px}
 .mobile-device .welcome-copy .primary{min-height:44px;padding:10px 25px}
 .mobile-device .selection{padding:48px 15px 18px;justify-content:flex-start;overflow:auto}
 .mobile-device .selection .eyebrow{font-size:10px}
 .mobile-device .selection h1{font-size:26px;margin:4px 0}
 .mobile-device .selection .subtitle{font-size:12px;margin:2px 0}
 .mobile-device .selection .cards{margin:10px 0;gap:26px}
 .mobile-device .selection .illustrated-card{width:clamp(112px,calc((100svh - 190px)*.708),205px)}
 .mobile-device .selection .illustrated-card h2{font-size:15px}
 .mobile-device .selection .illustrated-card p{font-size:10px}
 .mobile-device .selection .illustrated-role{width:clamp(110px,calc((100svh - 195px)*.6667),190px);margin:8px 0}
 .mobile-device .selection .role-instruction{font-size:13px;margin:4px 0;padding:6px 12px}
 .mobile-device .selection>button[data-action="choose"],.mobile-device .role-selection>button[data-action="begin"]{height:44px;font-size:16px}
 .mobile-device .victory-results{padding:5px 10px 14px;border-radius:18px;width:62%}
 .mobile-device .victory-name{font-size:11px;height:18px;padding:2px 3px;margin-bottom:2px}
 .mobile-device .victory-rematch{width:130px;height:34px;bottom:-14px}
 .mobile-device .victory-music{top:3px;right:8px}
 .mobile-device .victory-wait{font-size:9px}
}
