.mode-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-top:.7rem}.mode-btn{padding:.7rem .35rem;border:1px solid #ffffff22;border-radius:12px;background:#ffffff08;color:inherit;font-size:.72rem;font-weight:800;cursor:pointer}.mode-btn.active{background:var(--yellow);color:#172019;border-color:var(--yellow);box-shadow:0 7px 20px #ffc94a30}.online-options{display:none}.online-options.active{display:block}.online-options select{display:block;width:100%;margin-top:.55rem;padding:.9rem;border:2px solid #ffffff22;border-radius:12px;background:#1b2a25;color:#fff;font:inherit}.lobby-dialog{text-align:center}.lobby-dialog h2{font-size:2.8rem}.lobby-dialog label{display:grid;gap:.5rem;text-align:left}.lobby-dialog input{padding:1rem;border:2px solid #ffffff22;border-radius:12px;background:#ffffff0d;color:white;font:inherit}.room-code{margin:1rem auto;padding:.8rem 1rem;width:max-content;border:2px dashed var(--yellow);border-radius:12px;color:var(--yellow);font-family:Fraunces;font-size:2rem;letter-spacing:.2em}.lobby-status{margin:1.2rem 0;padding:.8rem;border-radius:12px;background:#ffffff0b;color:#aebbb6}@media(max-width:600px){.mode-picker{grid-template-columns:1fr}.lobby-dialog h2{font-size:2rem}}
.player-row.extra-card{border-color:#b891ff77}.player-row.extra-card small{color:#d4baff}.penalty-count{position:absolute;right:-8px;bottom:-9px;padding:.2rem .42rem;border-radius:99px;background:#6f45a8;color:#fff;font-size:.5rem;font-style:normal;font-weight:1000;letter-spacing:.08em;box-shadow:0 5px 12px #0006;z-index:6}
.connection-status{display:none;align-items:center;gap:.4rem;padding:.38rem .62rem;border-radius:99px;background:#ffffff0b;color:#aebbb6;font-size:.62rem;font-weight:800;white-space:nowrap}.connection-status.visible{display:flex}.connection-status i{width:8px;height:8px;border-radius:50%;background:#62ce8d;box-shadow:0 0 0 4px #62ce8d18}.connection-status.syncing i,.connection-status.queued i{background:#ffc94a;animation:netPulse 1s infinite}.connection-status.offline i{background:#ff654f;box-shadow:0 0 0 4px #ff654f18}.connection-status.offline{color:#ff9c8d}@keyframes netPulse{50%{opacity:.35}}@media(max-width:700px){.connection-status{position:fixed;left:50%;top:6px;z-index:80;transform:translateX(-50%);padding:.3rem .5rem;background:#09130fee}.connection-status span{font-size:.55rem}}

/* Escala fluida para evitar amontonamiento */
@media(min-width:701px) and (max-width:1500px){.table{width:min(68vw,820px)}.piles{inset:16% 7%;gap:clamp(.35rem,1vw,.8rem)}.pile{width:clamp(76px,6.7vw,100px);height:clamp(112px,10vw,145px)}.pile-card{padding:.55rem}.pile-card b{font-size:clamp(.62rem,.85vw,.82rem)}.player-row{width:clamp(128px,11vw,150px)}.action-feed{width:clamp(170px,16vw,220px)}.bill{width:124px}.turn-compass{min-width:280px;transform:translateX(-50%) scale(.92);transform-origin:top center}.game-card{width:clamp(100px,7.5vw,116px);height:145px}.hand{gap:clamp(.45rem,.75vw,.75rem)}}
@media(max-height:760px) and (min-width:701px){.game-header{height:64px}.game-layout{height:calc(100dvh - 64px - 184px)}.hand-area{height:184px}.hand{height:142px}.game-card{height:132px}.table{height:68%;top:51%}.player-row{min-height:52px}.piles{inset:14% 8%}.pile{height:118px}.action-feed{top:3rem}.message{bottom:.15rem}}

/* Distribución despejada en escritorio */
@media(min-width:701px){.game-layout{overflow:hidden}.table{width:min(62vw,790px);height:64%;top:51%;min-height:310px;border-width:14px}.piles{inset:17% 7%;gap:clamp(.35rem,.85vw,.7rem)}.pile{width:clamp(72px,6vw,92px);height:clamp(108px,9vw,132px)}.pile-card{padding:.48rem}.pile-card .emoji{font-size:1.55rem}.pile-card b{font-size:clamp(.58rem,.75vw,.76rem)}.pile-card strong{font-size:.86rem}.bill{right:2%;bottom:5%;width:112px;padding:.8rem .55rem 1rem}.bill strong{font-size:1.8rem}.turn-compass{left:auto;right:1rem;top:1rem;transform:none;min-width:245px;max-width:280px;padding:.42rem .65rem}.turn-compass>span{width:36px;height:36px;font-size:1.35rem}.turn-compass b{font-size:.72rem}.turn-compass em{font-size:.58rem}.action-feed{left:1rem;top:1rem;width:205px;gap:.3rem}.action-event{padding:.38rem .5rem}.action-event>span{width:27px;height:27px}.action-event b{font-size:.63rem}.action-event small{font-size:.56rem}.action-event:nth-child(n+4){display:none}.player-row{width:132px;min-height:52px;padding:.45rem .5rem;grid-template-columns:36px 1fr}.player-row .avatar{width:36px;height:36px}.player-row b{font-size:.76rem}.player-row small{font-size:.58rem}.player-row .money{font-size:.62rem}.player-row:before{border-width:6px}.player-row.human-seat{width:148px}.message{bottom:1%;max-width:420px}.hand-area{height:190px;padding-top:.6rem}.hand{height:145px;gap:.55rem}.game-card{width:102px;height:134px;padding:.55rem}.game-card .emoji{font-size:1.55rem}.game-card b{font-size:.76rem}.game-card strong{font-size:.84rem}.pay-btn{padding:.7rem 1rem;font-size:.78rem}}
@media(min-width:701px) and (max-width:1100px){.table{width:60vw}.action-feed{width:165px}.action-event small{display:none}.turn-compass{max-width:230px;min-width:220px}.player-row{width:115px}.player-row.human-seat{width:130px}.pile{max-width:78px}.bill{width:100px}}
