@font-face{font-family:Rye;src:url('/bang-prototipo/fonts/rye.ttf') format('truetype');font-display:swap}
:root{--western:Rye,Georgia,serif}
html,body,#app{min-height:100%;margin:0}
.scene-viewport{height:100dvh}
.approved-scene.battle,.approved-scene.battle.salvo,.mobile-device .scene-viewport:has(.battle){background-image:url('/bang-prototipo/calangos/arena.webp')!important}
.entrance-lobby{background-image:url('/bang-prototipo/calangos/entrance.webp')!important;background-position:center;background-size:cover;background-repeat:no-repeat}
.welcome-screen{background-image:linear-gradient(90deg,transparent 34%,#13080255 65%,#1308029e),url('/bang-prototipo/calangos/welcome.webp')!important;background-position:center;background-size:cover;background-repeat:no-repeat}
.selection h1,.selection .eyebrow,.selection .subtitle,.selection>.fine-print,.role-instruction,.selection>button{font-family:var(--western)!important}
.selection .eyebrow{font-size:clamp(17px,2vw,25px);color:#ffd28a;text-shadow:0 2px 4px #000;letter-spacing:.02em}
.selection>.fine-print,.selection .subtitle{font-size:clamp(14px,1.3vw,19px);color:#ffe5b4;text-shadow:0 2px 3px #000}
.role-selection .role-instruction{font-size:clamp(15px,1.5vw,21px);line-height:1.5;max-width:620px}
.role-selection .subtitle{font:16px/1.5 Georgia,serif!important}
.selection .illustrated-card h2{font-family:var(--western);font-size:clamp(12px,1.9vh,20px);line-height:1.15;top:64%;height:10%;overflow-wrap:anywhere}
.selection .illustrated-card p{font:clamp(10px,1.4vh,14px)/1.22 Georgia,serif;inset:77% 10% 4%;height:auto;min-height:0;overflow:hidden}
.selection .illustrated-card .card-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill!important}
.approved-scene.battle .combat-player.dead .combat-info,.approved-scene.battle .combat-player.dead .ability-toggle,.approved-scene.battle .combat-player.dead .sheriff-star{display:none}
.approved-scene.battle .combat-player.dead .dead-role{display:block;position:absolute;top:calc(38% - 35px);left:50%;transform:translateX(-50%);font:22px var(--western);color:#fff0d1;text-shadow:2px 2px #341b10;white-space:nowrap}
.approved-scene.battle .combat-player[data-seat="0"]{height:250px}
.approved-scene.battle .combat-player[data-seat="1"],.approved-scene.battle .combat-player[data-seat="4"]{height:230px}
.approved-scene.battle .combat-player[data-seat="2"],.approved-scene.battle .combat-player[data-seat="3"]{height:200px}
.approved-scene.battle .combat-player[data-seat="0"] .combat-info{left:calc(100% + 35px)}
.approved-scene.battle .combat-info .stats{width:205px}
.approved-scene.battle .hud-left .combat-info .stats{margin-left:-59px}
.approved-scene.battle .stats .health,.approved-scene.battle .stats .arrows{justify-content:flex-start}
.approved-scene.battle .stats .health>span,.approved-scene.battle .stats .arrows>span{min-width:145px;flex:none}
.approved-scene.battle .stats img{flex:none}
.approved-scene.battle .combat-player .avatar-button .figure.pose-aim{width:auto;max-width:none;flex-shrink:0}
.approved-scene.battle .combat-player:has(.figure.pose-aim) .combat-info{z-index:4}
.approved-scene.battle .combat-player[data-seat="2"] .avatar-button{left:-16px}
.approved-scene.battle .combat-player[data-seat="3"] .avatar-button{left:-24px}
.approved-scene.battle .combat-player[data-seat="4"] .avatar-button{left:-28px}
.approved-scene.battle .combat-player .avatar-button .figure[src$="-birds.webp"]{height:75%}
.approved-scene.battle .combat-player .avatar-button .figure[src$="-shootout.webp"]{width:auto;max-width:none;height:100%;flex-shrink:0}
.approved-scene.battle .stats .arrows img,.approved-scene.battle .reserve-arrow,.approved-scene.battle .reel-symbol[src$="arrow.webp"]{filter:drop-shadow(1.5px 0 #17100d) drop-shadow(-1.5px 0 #17100d) drop-shadow(0 1.5px #17100d) drop-shadow(0 -1.5px #17100d)}
.approved-scene.battle .reserve-portrait{border-radius:50%;border:2px solid #bf8b46;background:#40200caa;object-fit:cover;box-shadow:0 2px 5px #0009}
.approved-scene.battle .persistent-role{bottom:8px;right:35px;width:165px;height:248px;transform:rotate(8deg)}
.approved-scene.battle .battle-logo{bottom:8px}
.beer-choice{bottom:0;left:90px;height:325px;width:440px}
.beer-choice .beer-hand{width:350px;height:300px;transform:translateY(58px);animation:calango-toast .8s ease-out both!important}
@keyframes calango-toast{0%{transform:translateY(135px)}55%{transform:translateY(44px)}78%{transform:translateY(66px)}100%{transform:translateY(58px)}}
.beer-remaining{font:22px/1.3 var(--western);top:127px;left:0;padding:6px 10px}
.approved-scene.battle .action-bar{left:24px;bottom:30px;max-width:430px;border:0;background:transparent;padding:0;gap:8px}
.approved-scene.battle .action-buttons{gap:10px}
.approved-scene.battle .action-bar button{width:205px;height:64px;font:18px/1.2 var(--western);padding:8px 18px;background:url('/bang-prototipo/calangos/action-plaque.webp') center/100% 100% no-repeat;color:#27150b;text-shadow:none;border:0;box-shadow:none}
.approved-scene.battle .roll-count{font:20px/1.3 var(--western);top:-28px;bottom:auto;right:-30px;padding:3px 8px}
.approved-scene.battle .machine-label.mine{font-size:29px;-webkit-text-stroke:3px #57301d}
.battle-menu{position:relative;pointer-events:auto;margin-left:auto;color:#ffe6b0}
.approved-scene.battle .topbar{z-index:60}
.battle-menu>summary{list-style:none;cursor:pointer;padding:10px 16px;background:#321b10ed;border:1px solid #ab8145;border-radius:5px;font:18px var(--western)}
.battle-menu>summary::-webkit-details-marker{display:none}
.battle-menu:not([open])>.top-actions{display:none}
.battle-menu:not([open])>.menu-close{display:none}
.approved-scene.battle .battle-menu>.menu-close{position:absolute;right:7px;top:calc(100% + 5px);z-index:2;width:30px;height:30px;border:1px solid #ba915d;border-radius:4px;background:#26140ef5;color:#ffe5b3;font:26px/1 Arial,sans-serif}
.approved-scene.battle .battle-menu>.top-actions{position:absolute;right:0;top:100%;display:flex;flex-wrap:wrap;width:330px;gap:8px;padding:40px 12px 12px;background:#29170ff5;border:1px solid #ab8145}
.approved-scene.battle .battle-menu:not([open])>.top-actions{display:none}
.battle-menu .audio-controls{width:100%;flex-wrap:wrap;justify-content:center}
.battle-menu input[type=range]{width:170px;min-height:36px}
.battle-menu .mobile-audio-menu{width:100%}
.battle-menu .mobile-audio-menu summary{display:none}
.battle-menu .mobile-audio-menu>.audio-controls{position:static;display:flex!important}
.approved-scene.battle.is-paused{filter:grayscale(1)}
.pause-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#0005;z-index:22;pointer-events:none;font:90px var(--western);color:#fff;text-shadow:4px 5px #222}
#mobile-fullscreen{left:auto;right:8px;bottom:8px;z-index:150;min-height:30px;font-size:12px;padding:5px 9px}
.victory-heading{position:absolute;top:2%;left:18%;width:64%;height:25%;margin:0;z-index:5;pointer-events:none}
.victory-heading img{display:block;width:100%;height:100%;object-fit:contain}
.victory-birds .victory-heading{left:17%;width:66%;top:2%}
.victory-birds{background-image:url('/bang-prototipo/calangos/arena.webp')!important}
.birds-winner{position:absolute;top:18%;left:26%;width:48%;height:54%;object-fit:contain}
.victory-actors{inset:27% 20% 22%}
.victory-results{bottom:4%;height:25%}
.approved-scene.battle .history,.approved-scene.battle .role-tip{padding-top:36px}
.approved-scene.battle .history{top:78px}
.approved-scene.battle .panel-close{position:sticky;top:0;float:right;margin:-29px -7px 6px 8px;width:31px;height:31px;border:1px solid #ba915d;border-radius:5px;background:#26140ef5;color:#ffe5b3;font:26px/1 Arial,sans-serif;z-index:2;cursor:pointer}
#app.stage-enter{animation:western-dust .55s ease-out both!important}
@keyframes western-dust{from{opacity:.25;filter:sepia(.7) brightness(1.8)}to{opacity:1;filter:none}}
@media(orientation:landscape){
 .mobile-device .approved-scene.battle .battle-menu>summary{font:14px var(--western);padding:8px}
 .mobile-device .approved-scene.battle .battle-menu>.top-actions{width:250px}
 .mobile-device .approved-scene.battle .action-bar{transform:scale(1.35);max-width:310px}
 .mobile-device .approved-scene.battle .action-bar button{height:64px;width:190px;font-size:17px}
 .mobile-device .selection .eyebrow{font-size:14px}
 .mobile-device .selection>.fine-print{font-size:12px}
 .mobile-device .role-selection .role-instruction{font-size:13px}
 .mobile-device .selection .illustrated-card h2{font-size:13px}
 .mobile-device .selection .illustrated-card p{font-size:10px}
}

/* Keep copy inside the wooden artwork on short mobile viewports. */
.selection .illustrated-card p{overflow-wrap:break-word;scrollbar-width:thin;touch-action:pan-y}
.approved-scene.battle .passive-overlay{box-sizing:border-box;overflow-wrap:anywhere;white-space:normal}
.victory-leave{position:absolute;top:12px;left:14px;z-index:12;min-height:42px;padding:8px 16px;border:1px solid #e2b578;border-radius:5px;background:#28130ded;color:#ffe8bd;font:16px/1.1 var(--western);text-shadow:0 2px #1c0a06}
.mobile-device .victory-leave{transform:scale(var(--control-scale,1));transform-origin:top left}
@media(orientation:landscape){
 .mobile-device .selection .illustrated-card{width:clamp(170px,26vw,205px)}
 .mobile-device .approved-scene.battle .passive-overlay{max-height:450px;overflow-y:auto}
 .mobile-device .welcome-copy{max-height:calc(100dvh - 48px);overflow-y:auto;overflow-x:hidden}
 .mobile-device .welcome-copy h2{white-space:normal;overflow-wrap:normal}
 .mobile-device .welcome-copy button.primary{width:min(240px,100%);min-width:0;min-height:54px;padding:8px 18px;background-size:100% 100%!important;white-space:normal;font-size:clamp(14px,2.3vw,18px);line-height:1.1}
}
