/* Sala Cero v21.2 · formatos independientes para móvil/iPhone y ordenador */
:root{--sc-device-accent:#f0ca78;--sc-device-bg:#07100d;--sc-device-line:rgba(255,255,255,.14)}
.sc-device-picker{position:fixed;inset:0;z-index:99990;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(1,5,4,.84);backdrop-filter:blur(15px)}
.sc-device-picker.open{display:flex}.sc-device-picker-open{overflow:hidden!important}
.sc-device-card{position:relative;width:min(690px,100%);max-height:calc(100dvh - 24px);overflow:auto;padding:30px;border:1px solid var(--sc-device-line);border-radius:27px;color:#fff8e9;background:radial-gradient(circle at 50% 0,rgba(240,202,120,.13),transparent 36%),linear-gradient(145deg,#193027,#07100d);box-shadow:0 35px 100px rgba(0,0,0,.58)}
.sc-device-close{position:absolute;right:13px;top:13px;width:40px;height:40px;border:1px solid var(--sc-device-line);border-radius:12px;color:#fff;background:rgba(255,255,255,.05);font-size:24px}
.sc-device-kicker{display:block;margin-bottom:9px;color:var(--sc-device-accent);font-size:9px;font-weight:950;letter-spacing:.17em}.sc-device-card h2{margin:0;font:600 clamp(34px,5vw,52px)/1 Georgia,serif}.sc-device-card>p{margin:12px 0 21px;color:#c9c2b3;font-size:13px;line-height:1.55}
.sc-device-options{display:grid;grid-template-columns:1fr 1fr;gap:11px}.sc-device-options>button{position:relative;min-height:168px;padding:19px 15px;display:grid;grid-template-columns:53px 1fr;gap:12px;align-items:center;text-align:left;border:1px solid var(--sc-device-line);border-radius:20px;color:#fff;background:rgba(255,255,255,.035)}.sc-device-options>button.selected{border-color:rgba(240,202,120,.72);box-shadow:0 0 0 2px rgba(240,202,120,.13);background:rgba(240,202,120,.08)}
.sc-device-icon{width:53px;height:70px;display:grid;place-items:center;border:1px solid rgba(240,202,120,.3);border-radius:15px;color:#1c1308;background:linear-gradient(145deg,#fff0b9,#bd8232);font-size:29px}.sc-device-options strong,.sc-device-options small{display:block}.sc-device-options strong{font-size:14px}.sc-device-options small{margin-top:6px;color:#c8c0b1;font-size:9px;line-height:1.45}.sc-device-recommended{position:absolute;right:10px;top:9px;display:none;color:var(--sc-device-accent);font-size:6px;letter-spacing:.11em}.sc-device-recommended.show{display:block}.sc-device-note{display:block;margin-top:15px;color:#aaa293;font-size:8px;text-align:center}
.sc-device-switch{position:fixed;z-index:8500;left:max(10px,env(safe-area-inset-left));bottom:max(10px,calc(env(safe-area-inset-bottom) + 8px));min-height:46px;padding:6px 10px;display:flex;align-items:center;gap:8px;border:1px solid rgba(240,202,120,.28);border-radius:14px;color:#fff8e9;background:rgba(4,13,10,.88);backdrop-filter:blur(14px);box-shadow:0 13px 30px rgba(0,0,0,.35)}.sc-device-switch>span:first-child{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;color:#1b1309;background:linear-gradient(145deg,#fff0b9,#bd8232);font-size:17px}.sc-device-switch>span:last-child{display:grid;text-align:left}.sc-device-switch small{font-size:5px;letter-spacing:.13em;color:#d1b575}.sc-device-switch strong{font-size:8px;white-space:nowrap}

/* Formato móvil: geometría propia, no simple reducción */
html[data-device-mode="mobile"]{--sc-content-width:430px}
html[data-device-mode="mobile"] body{min-height:var(--mobile-vh,100dvh);overscroll-behavior-y:none}
html[data-device-mode="mobile"] .sc-device-switch{left:auto;right:max(8px,env(safe-area-inset-right));bottom:max(7px,calc(env(safe-area-inset-bottom) + 5px));min-height:39px;padding:5px 8px;opacity:.92}
html[data-device-mode="mobile"] .sc-device-switch>span:first-child{width:25px;height:25px;font-size:14px}html[data-device-mode="mobile"] .sc-device-switch small{font-size:4px}html[data-device-mode="mobile"] .sc-device-switch strong{font-size:7px}

/* Portada móvil */
html[data-device-mode="mobile"] .hub-page{max-width:100vw;overflow:hidden}html[data-device-mode="mobile"] .hub-topbar{position:sticky;top:0}html[data-device-mode="mobile"] .hub-games{grid-template-columns:1fr!important}html[data-device-mode="mobile"] .hub-game{min-width:0}html[data-device-mode="mobile"] .hub-game-copy p{font-size:11px!important;line-height:1.55!important}html[data-device-mode="mobile"] .hub-footer{padding-bottom:calc(66px + env(safe-area-inset-bottom))!important}

/* Es un 10 pero... · pantalla vertical dedicada */
html[data-device-mode="mobile"] .ten-topbar{position:fixed;left:0;right:0;top:0;height:calc(54px + env(safe-area-inset-top));min-height:0;padding:env(safe-area-inset-top) 9px 0;z-index:80}
html[data-device-mode="mobile"] .ten-home{display:none}html[data-device-mode="mobile"] .ten-brand{margin:auto}html[data-device-mode="mobile"] .ten-brand strong{font-size:9px}html[data-device-mode="mobile"] .ten-brand small{font-size:4.5px}
html[data-device-mode="mobile"] .ten-main{width:100%;height:var(--mobile-vh,100dvh);min-height:0;padding:calc(58px + env(safe-area-inset-top)) 6px calc(8px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:5px;overflow:hidden}
html[data-device-mode="mobile"] .ten-copy{flex:0 0 auto;padding:3px 5px 1px;text-align:center}html[data-device-mode="mobile"] .ten-kicker{display:none}html[data-device-mode="mobile"] .ten-copy h1{font-size:clamp(31px,10vw,42px);line-height:.88;white-space:nowrap}html[data-device-mode="mobile"] .ten-copy h1 br{display:none}html[data-device-mode="mobile"] .ten-copy h1 em{margin-left:5px}html[data-device-mode="mobile"] .ten-copy p{display:none}
html[data-device-mode="mobile"] .ten-table{flex:1;min-height:0;width:100%;padding:37px 5px calc(7px + env(safe-area-inset-bottom));justify-content:flex-start;border-width:5px;border-radius:23px;overflow:hidden}
html[data-device-mode="mobile"] .ten-felt-inlay{inset:8px;border-radius:14px}html[data-device-mode="mobile"] .ten-round{top:7px;right:8px;min-width:48px;padding:4px 6px;border-radius:9px}html[data-device-mode="mobile"] .ten-round span{font-size:4.5px}html[data-device-mode="mobile"] .ten-round strong{font-size:14px}
html[data-device-mode="mobile"] .ten-deck-wrap{--card-w:min(76vw,calc((var(--mobile-vh,100dvh) - 260px)*.648),300px);flex:1;min-height:0;width:calc(var(--card-w) + 22px);height:auto;aspect-ratio:620/930;margin:auto;place-self:center}
html[data-device-mode="mobile"] .ten-shadow{bottom:2px;height:25px}html[data-device-mode="mobile"] .ten-stack-card,html[data-device-mode="mobile"] .ten-card{box-shadow:0 18px 34px rgba(0,0,0,.43)}
html[data-device-mode="mobile"] .ten-status{flex:0 0 20px;min-height:20px;margin:0;font-size:8px;line-height:20px}html[data-device-mode="mobile"] .ten-primary{flex:0 0 52px;width:min(330px,94%);min-height:52px;margin:2px auto 0;border-radius:14px}html[data-device-mode="mobile"] .ten-primary strong{font-size:10px}html[data-device-mode="mobile"] .ten-hint{display:none}

/* Póker móvil: Anton visible y seis rivales compactos */
html[data-device-mode="mobile"] .pk-shell{padding:0!important}html[data-device-mode="mobile"] .pk-game{height:calc(var(--mobile-vh,100dvh) - 56px);min-height:0;overflow:hidden}html[data-device-mode="mobile"] .pk-casino-stage{height:100%;min-height:0;padding-top:69px;padding-bottom:173px;overflow:hidden}html[data-device-mode="mobile"] .pk-dealer{top:0;width:94px;height:112px}html[data-device-mode="mobile"] .pk-dealer img{width:86px;height:104px}html[data-device-mode="mobile"] .pk-dealer-plaque{min-width:91px;bottom:-1px}html[data-device-mode="mobile"] .pk-dealer-plaque span{display:none}
html[data-device-mode="mobile"] .pk-table-wrap{width:calc(100% + 20px);height:calc(100% - 79px);min-height:405px;margin-left:-10px}html[data-device-mode="mobile"] .pk-table-felt{inset:13px}html[data-device-mode="mobile"] .pk-board{top:49%;width:72%;gap:3px}html[data-device-mode="mobile"] .pk-board .pk-card{width:clamp(39px,12vw,50px);height:auto;aspect-ratio:620/956}html[data-device-mode="mobile"] .pk-pot{top:34%;min-width:78px;padding:4px 7px}html[data-device-mode="mobile"] .pk-pot strong{font-size:15px}html[data-device-mode="mobile"] .pk-chip-inline{width:17px;height:17px}
html[data-device-mode="mobile"] .pk-seat{width:91px!important;padding:4px;border-radius:10px}html[data-device-mode="mobile"] .pk-seat-head{grid-template-columns:23px 1fr;gap:3px}html[data-device-mode="mobile"] .pk-avatar{width:23px;height:23px;font-size:6px}html[data-device-mode="mobile"] .pk-seat-name strong{font-size:6.5px}html[data-device-mode="mobile"] .pk-seat-name small{font-size:4px}html[data-device-mode="mobile"] .pk-stack{font-size:6px}html[data-device-mode="mobile"] .pk-seat-cards{height:25px}html[data-device-mode="mobile"] .pk-seat-cards .pk-card{width:18px;height:25px}html[data-device-mode="mobile"] .pk-seat-action{min-height:6px;font-size:4px}html[data-device-mode="mobile"] .pk-marker-image{width:22px;height:22px}
html[data-device-mode="mobile"] .pk-seat.seat-0{left:50%;bottom:-24px}html[data-device-mode="mobile"] .pk-seat.seat-1{left:2px;bottom:7%;top:auto}html[data-device-mode="mobile"] .pk-seat.seat-2{left:4px;top:12%}html[data-device-mode="mobile"] .pk-seat.seat-3{right:4px;left:auto;top:12%;transform:none}html[data-device-mode="mobile"] .pk-seat.seat-4{right:2px;top:auto;bottom:7%}html[data-device-mode="mobile"] .pk-seat.seat-5{right:50%;top:-16px;bottom:auto;transform:translateX(50%)}
html[data-device-mode="mobile"] .pk-hero-zone{left:5px;right:5px;bottom:105px;transform:none;width:auto;min-height:82px;padding:5px 7px}html[data-device-mode="mobile"] .pk-private-hand{min-width:89px}html[data-device-mode="mobile"] .pk-private-hand .pk-card{width:45px;height:auto;aspect-ratio:620/956}html[data-device-mode="mobile"] .pk-hand-info strong{font-size:14px}html[data-device-mode="mobile"] .pk-actions{padding-bottom:max(5px,env(safe-area-inset-bottom))}html[data-device-mode="mobile"] .pk-table-message{bottom:16%;font-size:5.5px}

/* Tute y variantes: mano protagonista, mesa secundaria */
html[data-device-mode="mobile"] .app-shell:not(.hidden),html[data-device-mode="mobile"] .local-layout,html[data-device-mode="mobile"] .multi-layout{height:calc(var(--mobile-vh,100dvh) - 56px)!important;min-height:0!important;overflow:hidden!important}
html[data-device-mode="mobile"] .player-hand,html[data-device-mode="mobile"] .private-hand,html[data-device-mode="mobile"] .player-multi-hand{scroll-padding-inline:45vw!important;overscroll-behavior-x:contain!important}
html[data-device-mode="mobile"] .app-shell:not(.hidden) .player-hand .playing-card,html[data-device-mode="mobile"] .private-hand .local-card,html[data-device-mode="mobile"] .player-multi-hand .multi-card{width:clamp(66px,19vw,78px)!important;height:auto!important;aspect-ratio:620/956!important;flex-basis:clamp(66px,19vw,78px)!important}
html[data-device-mode="mobile"] .actions-dock,html[data-device-mode="mobile"] .local-actions-dock,html[data-device-mode="mobile"] .multi-actions-dock{padding-bottom:max(6px,env(safe-area-inset-bottom))!important}

/* Generala y juegos de salón: contenido principal sin corte por la barra de Safari */
html[data-device-mode="mobile"] .g-game,html[data-device-mode="mobile"] .sg-game{height:calc(var(--mobile-vh,100dvh) - 56px)!important;padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
html[data-device-mode="mobile"] .g-score-panel,html[data-device-mode="mobile"] .sg-panel.score{bottom:max(5px,env(safe-area-inset-bottom))!important}

/* Formato ordenador explícito */
html[data-device-mode="desktop"] .sc-device-switch{left:12px;right:auto}
html[data-device-mode="desktop"] .ten-main{max-width:1180px}html[data-device-mode="desktop"] .pk-table-wrap{max-width:1100px}

@media(max-width:560px){.sc-device-picker{padding:8px}.sc-device-card{padding:24px 12px 17px;border-radius:20px}.sc-device-card h2{font-size:33px}.sc-device-card>p{font-size:10px}.sc-device-options{grid-template-columns:1fr}.sc-device-options>button{min-height:112px;padding:12px;grid-template-columns:45px 1fr}.sc-device-icon{width:45px;height:58px;font-size:23px}.sc-device-options strong{font-size:12px}.sc-device-options small{font-size:8px}}
@media(max-width:820px) and (max-height:700px){html[data-device-mode="mobile"] .ten-copy{display:none}html[data-device-mode="mobile"] .ten-main{padding-top:calc(57px + env(safe-area-inset-top))}html[data-device-mode="mobile"] .ten-deck-wrap{--card-w:min(68vw,calc((var(--mobile-vh,100dvh) - 185px)*.648),265px)}}

/* Pulido v21.2.1: selector móvil discreto y sexto asiento sin invadir a Anton */
html[data-device-mode="mobile"] .sc-device-switch{width:38px;min-width:38px;height:38px;min-height:38px;padding:4px;border-radius:12px;justify-content:center}
html[data-device-mode="mobile"] .sc-device-switch>span:first-child{width:28px;height:28px}
html[data-device-mode="mobile"] .sc-device-switch>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* En ordenador, el quinto rival se coloca a la izquierda de Anton */
html[data-device-mode="desktop"] body[data-poker-players="6"] .pk-seat.seat-5{left:34%;right:auto;top:-38px;bottom:auto;transform:translateX(-50%)}
/* En móvil se convierte en el asiento central de la columna izquierda */
html[data-device-mode="mobile"] body[data-poker-players="6"] .pk-seat.seat-5{left:2px;right:auto;top:45%;bottom:auto;transform:translateY(-50%);width:86px!important}
html[data-device-mode="mobile"] body[data-poker-players="6"] .pk-seat.seat-5 .pk-seat-cards{height:22px}
html[data-device-mode="mobile"] body[data-poker-players="6"] .pk-seat.seat-5 .pk-seat-cards .pk-card{width:16px;height:22px}
/* Posición final del selector móvil: no tapa controles de juego */
html[data-device-mode="mobile"] .sc-device-switch{top:max(62px,calc(env(safe-area-inset-top) + 60px));right:max(7px,env(safe-area-inset-right));bottom:auto;left:auto}
/* Mesa de seis en ordenador: El Tahúr junto a Anton y Señor All-In abajo a la derecha */
html[data-device-mode="desktop"] body[data-poker-players="6"] .pk-seat.seat-3{left:34%;right:auto;top:-38px;bottom:auto;transform:translateX(-50%)}
html[data-device-mode="desktop"] body[data-poker-players="6"] .pk-seat.seat-5{left:auto;right:4%;top:auto;bottom:8%;transform:none}
