:root{--gold:#d6ad56;--felt:#164b38;--felt2:#0b3025}.game3d-body{background:radial-gradient(ellipse at 50% 0,#1a2940 0,#090d16 55%);min-height:100vh}.game-topbar{position:sticky;top:0;z-index:10}.brand-logo{width:46px;height:46px;object-fit:cover;border-radius:12px;border:1px solid #b58a3d}.online-pill{font-size:12px;color:#a9b6c9;border:1px solid #344258;padding:9px 12px;border-radius:30px}.online-pill i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#e4ad43;margin-right:6px}.game-wrap{max-width:1440px;margin:28px auto;padding:0 22px 90px}.lobby{padding:28px;border:1px solid #29374a}.game-heading{display:flex;justify-content:space-between;align-items:center}.game-heading h1,.gamebar h1{margin:4px 0;font-size:clamp(27px,4vw,40px)}.lobby-logo{width:88px;height:88px;object-fit:cover;border-radius:20px}.lobby-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}.lobby-card{background:#101a29;border:1px solid #2b3a4d;border-radius:18px;padding:22px}.lobby-card h2{margin:8px 0}.lobby-card p{color:#9eabc0;line-height:1.55}.lobby-card label{display:block;margin:14px 0;color:#cbd5e1;font-size:13px}.lobby-card input,.lobby-card select{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #36465d;border-radius:10px;background:#09111d;color:#fff}.lobby-icon{font-size:28px}.voice-setup{margin-top:18px;padding:18px;border:1px solid #344258;border-radius:15px;display:flex;align-items:center;gap:18px;justify-content:space-between}.voice-setup p{margin:5px 0 0;font-size:13px}.gamebar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0}.gamebar-actions{display:flex;gap:8px;flex-wrap:wrap}.table3d-shell{perspective:1200px;overflow:hidden;border-radius:30px;padding:16px;background:linear-gradient(135deg,#3a2718,#0a0d12 50%,#51371d);box-shadow:0 30px 70px #0009}.table3d{position:relative;min-height:620px;border:13px solid #5b3b20;border-radius:26px;background:radial-gradient(ellipse at center,#256047 0,#16432f 65%,#0b2b20 100%);box-shadow:inset 0 0 0 3px #c69a4e,inset 0 0 50px #0008,0 15px 25px #0009;transform:rotateX(2deg);padding:20px}.table3d:before{content:"";position:absolute;inset:14px;border:1px solid #d1ad63;border-radius:18px;pointer-events:none;opacity:.55}.seat{position:absolute;z-index:2;display:flex;align-items:center;gap:9px;color:#fff;background:#09131de8;border:1px solid #b58a47;border-radius:14px;padding:8px 12px;box-shadow:0 8px 18px #0006}.seat-name{display:flex;align-items:center;gap:8px;white-space:nowrap}.seat-name b{display:block;font-size:13px}.seat-name small{display:block;color:#b8c3d1;font-size:11px}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#34465b;font-size:21px}.seat-top{top:22px;left:50%;transform:translateX(-50%)}.seat-left{left:20px;top:50%;transform:translateY(-50%)}.seat-right{right:20px;top:50%;transform:translateY(-50%)}.seat-bottom{bottom:18px;left:50%;transform:translateX(-50%)}.you-badge{font-size:9px;background:#168a5b;padding:4px 7px;border-radius:20px}.opponent-tiles{display:flex;gap:3px}.opponent-tiles.vertical{flex-direction:column}.back-tile{width:21px;height:32px;border:2px solid #d5b56f;border-radius:5px;background:repeating-linear-gradient(45deg,#16263b,#16263b 3px,#263c57 3px,#263c57 5px);box-shadow:2px 3px 4px #0008}.vertical .back-tile{width:32px;height:19px}.chain-area{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:min(64%,760px);min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center}.chain-hint{color:#d9c18b;font-size:12px;margin-bottom:12px;text-shadow:0 2px 4px #000}.domino-chain{display:flex;justify-content:center;align-items:center;gap:4px;flex-wrap:wrap;max-width:100%;filter:drop-shadow(0 8px 6px #0007)}.domino-tile{width:58px;height:29px;display:flex;align-items:stretch;border:1px solid #b9b4a8;border-radius:5px;background:linear-gradient(145deg,#fffef5,#d8d3c6);box-shadow:0 4px 0 #8b867c,0 7px 10px #0008;color:#151515;cursor:pointer;flex:0 0 auto}.domino-tile .half{width:50%;display:grid;place-items:center;position:relative}.domino-tile .half+ .half{border-left:1px solid #555}.pip-grid{width:23px;height:23px;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:1px}.pip-grid i{width:5px;height:5px;border-radius:50%;background:transparent;align-self:center;justify-self:center}.pip-grid i.on{background:#171717;box-shadow:0 1px 1px #777}.domino-tile.playable{outline:2px solid #f1c76d;transform:translateY(-5px)}.domino-tile.selected{outline:3px solid #2de3a0;transform:translateY(-9px)}.table-center-info{position:absolute;right:24px;bottom:100px;color:#d5c08c;text-align:center;font-size:9px;letter-spacing:1px}.table-center-info b{display:block;font-size:20px;color:white;letter-spacing:0}.player-hand{display:flex;gap:5px;align-items:center}.player-hand .domino-tile{width:65px;height:34px;cursor:pointer}.player-hand .pip-grid{width:27px;height:27px}.player-hand .pip-grid i{width:6px;height:6px}.play-controls{margin-top:18px;padding:20px}.control-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.control-head h2{margin:3px 0}.turn-actions{display:flex;gap:8px}.side-picker{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px;padding:12px;background:#172337;border-radius:10px}.game-log{margin-top:12px;color:#aebbd0;font-size:13px}.score-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.score-strip>div{background:#101a29;border:1px solid #2b3a4d;border-radius:13px;padding:14px}.score-strip small{display:block;color:#94a3b8;font-size:10px}.score-strip b{font-size:24px;color:#f2ca70}.lobby-card code{color:#f0ca78}.privacy-note{font-size:12px!important;color:#aebbd0!important;line-height:1.5}.game3d-body .modal{color:#fff}.game3d-body .modal::backdrop{background:#000b}@media(max-width:800px){.lobby-grid{grid-template-columns:1fr}.gamebar{align-items:flex-start;flex-direction:column}.table3d{min-height:570px;padding:8px;border-width:8px}.seat-left{left:7px}.seat-right{right:7px}.seat{padding:6px 8px}.chain-area{width:70%;top:47%}.domino-tile{width:46px;height:24px}.pip-grid{width:19px;height:19px}.pip-grid i{width:4px;height:4px}.seat-top .opponent-tiles{display:none}.opponent-tiles.vertical{display:none}.seat-bottom{bottom:12px}.player-hand{gap:3px}.player-hand .domino-tile{width:42px;height:28px}.player-hand .pip-grid{width:22px;height:22px}.player-hand .pip-grid i{width:5px;height:5px}.table-center-info{right:12px;bottom:83px}.voice-setup{align-items:flex-start;flex-wrap:wrap}.control-head{align-items:flex-start;flex-direction:column}.turn-actions{width:100%;flex-wrap:wrap}.game-wrap{padding:0 10px 80px}.table3d-shell{padding:8px}.score-strip{gap:6px}.score-strip>div{padding:9px}.score-strip small{font-size:8px}}@media(max-width:390px){.player-hand .domino-tile{width:36px}.player-hand .pip-grid{width:18px;height:18px}.seat-name b{font-size:11px}.seat-name small{font-size:9px}.avatar{width:29px;height:29px}}


/* DOMINO PRO · Escenario inmersivo horizontal para móviles */
.game3d-body{background:radial-gradient(ellipse at 50% 0,#26354a 0,#070a10 68%);overflow-x:hidden}
.game-wrap{max-width:none;width:100%;margin:0 auto;padding:0 16px 48px}
.table3d-shell{background:linear-gradient(145deg,#6a4829 0%,#1a100b 22%,#090b10 52%,#53371f 100%);padding:clamp(8px,1.2vw,18px);border-radius:30px;box-shadow:0 24px 70px #000b,inset 0 1px 0 #f7d38a55}
.table3d{min-height:clamp(540px,68vh,780px);border:clamp(9px,1.2vw,16px) solid #654322;border-radius:24px;background:
radial-gradient(ellipse at 50% 48%,#4a3020 0%,#2c1b13 57%,#160e0a 100%);
box-shadow:inset 0 0 0 3px #d6ad56,inset 0 0 0 7px #301b10,inset 0 0 75px #000c,0 14px 28px #000b;transform:none;padding:16px}
.table3d:before{inset:12px;border:1px solid #e5c37c;opacity:.62}
.seat{background:linear-gradient(145deg,#101923f5,#05090ff5);border:1px solid #d8b66d;border-radius:16px;box-shadow:0 8px 20px #0009,0 0 0 2px #0005;padding:9px 13px}
.avatar{width:42px;height:42px;border:2px solid #d6ad56;box-shadow:0 0 12px #d6ad5640}
.seat-name b{font-size:14px}.seat-name small{font-size:11px}
.back-tile{width:25px;height:39px;border-radius:6px;border:2px solid #e0bd70;background:linear-gradient(135deg,#142d4c,#071426 55%,#1a3555);box-shadow:2px 4px 7px #000b,inset 0 0 0 2px #ffffff12}
.vertical .back-tile{width:39px;height:25px}
.domino-tile{width:72px;height:38px;border:1px solid #b99d6a;border-radius:7px;background:linear-gradient(145deg,#fffef8 0%,#e9e0cc 48%,#c8bda7 100%);box-shadow:0 3px 0 #8b7657,0 7px 0 #493322,0 11px 16px #000a,inset 0 1px 2px #fff; color:#111}
.domino-tile .half+.half{border-left:1px solid #8e8069}
.pip-grid{width:29px;height:29px;gap:1px}.pip-grid i{width:6px;height:6px;background:transparent}.pip-grid i.on{background:#101010;box-shadow:0 1px 2px #777}
.player-hand{gap:clamp(4px,.65vw,10px)}
.player-hand .domino-tile{width:clamp(58px,6.2vw,86px);height:clamp(38px,4vw,54px);border-radius:8px;box-shadow:0 4px 0 #8b7657,0 8px 0 #493322,0 12px 17px #000b,inset 0 1px 2px #fff}
.player-hand .pip-grid{width:clamp(28px,3vw,38px);height:clamp(28px,3vw,38px)}
.player-hand .pip-grid i{width:clamp(5px,.55vw,7px);height:clamp(5px,.55vw,7px)}
.chain-area{width:min(70%,980px);top:47%;min-height:210px}
.domino-chain{gap:6px;max-width:92%;max-height:250px;overflow:visible}
.table-center-info{right:30px;bottom:110px;background:#080d14c9;border:1px solid #c6a25c;border-radius:12px;padding:8px 12px}
.live-status{display:flex;align-items:center;gap:8px;color:#9fb1c6;font-size:10px;letter-spacing:1.1px;font-weight:800}
.live-dot{width:8px;height:8px;border-radius:50%;background:#22d38a;box-shadow:0 0 10px #22d38a}
.live-separator{color:#d6ad56}
.mic-live-btn{border-color:#20c985!important;color:#69e5b1!important}
.landscape-hint{display:none;color:#f5d58f;text-align:center;padding:7px 10px;font-size:12px;font-weight:700}
.gamebar{margin:12px 0;align-items:center}
.gamebar h1{font-size:clamp(22px,2.5vw,34px)}
.play-controls{background:linear-gradient(145deg,#111b29,#080d15);border:1px solid #35465d;border-radius:18px;box-shadow:0 12px 30px #0005}
.score-strip>div{background:linear-gradient(145deg,#142033,#090f19);border-color:#3a4b60}
@media (orientation:landscape) and (max-width:950px){
  .game-topbar{padding:5px 12px;min-height:52px}
  .game-topbar .brand-logo{width:36px;height:36px}
  .game-topbar .brand small{display:none}
  .game-wrap{padding:0 9px 14px}
  .gamebar{margin:5px 0;gap:8px}
  .gamebar h1{font-size:20px;margin:0}
  .gamebar .eyebrow,.gamebar .muted{display:none}
  .gamebar-actions{gap:5px}
  .gamebar-actions .target-pill{font-size:10px;padding:5px 8px}
  .gamebar-actions .secondary-btn{padding:7px 9px;font-size:11px}
  .table3d-shell{padding:6px;border-radius:18px}
  .table3d{min-height:calc(100svh - 190px);height:calc(100svh - 190px);border-width:8px;border-radius:16px;padding:5px}
  .seat{padding:5px 8px;border-radius:11px;gap:5px}
  .seat-top{top:7px}
  .seat-bottom{bottom:6px}
  .seat-left{left:7px}
  .seat-right{right:7px}
  .avatar{width:29px;height:29px;font-size:16px}
  .seat-name b{font-size:11px}.seat-name small{font-size:9px}
  .back-tile{width:17px;height:27px;border-width:1px}
  .vertical .back-tile{width:27px;height:17px}
  .chain-area{top:47%;width:69%;min-height:120px}
  .domino-chain{gap:3px;max-height:150px}
  .domino-tile{width:52px;height:28px}
  .pip-grid{width:22px;height:22px}.pip-grid i{width:4px;height:4px}
  .player-hand{gap:3px}
  .player-hand .domino-tile{width:clamp(39px,6.2vw,60px);height:clamp(28px,5vh,38px)}
  .player-hand .pip-grid{width:clamp(20px,3.1vw,26px);height:clamp(20px,3.1vw,26px)}
  .player-hand .pip-grid i{width:4px;height:4px}
  .table-center-info{right:9px;bottom:58px;padding:4px 7px;font-size:8px}
  .table-center-info b{font-size:14px}
  .play-controls{margin-top:6px;padding:8px 11px}
  .control-head{align-items:center;flex-direction:row}
  .control-head .eyebrow{display:none}
  .control-head h2{font-size:13px}
  .turn-actions .secondary-btn{padding:6px 9px;font-size:11px}
  .game-log{margin-top:4px;font-size:10px}
  .live-status{font-size:8px}
  .score-strip{margin-top:5px;gap:5px}
  .score-strip>div{padding:5px 8px}
  .score-strip small{font-size:8px}
  .score-strip b{font-size:16px}
}
@media (orientation:portrait) and (max-width:700px){
  .landscape-hint{display:block}
  .table3d{min-height:540px}
  .gamebar{align-items:flex-start;flex-direction:column}
  .table3d-shell{padding:6px}
  .seat-top .opponent-tiles{display:none}
  .opponent-tiles.vertical{display:none}
  .player-hand{justify-content:center;max-width:100%;overflow-x:auto;padding:8px 2px 12px}
  .player-hand .domino-tile{width:clamp(36px,10vw,48px);height:30px}
  .chain-area{width:72%;top:46%}
  .domino-tile{width:44px;height:24px}
  .pip-grid{width:18px;height:18px}
  .pip-grid i{width:4px;height:4px}
}
@media (display-mode:standalone) and (orientation:landscape){
  .game-topbar{display:none}
  .table3d{height:calc(100svh - 142px);min-height:0}
}

/* Historial de manos y estados de controles */
.game-history-panel{margin-top:14px;padding:16px 18px;background:linear-gradient(145deg,#111b29,#080d15);border:1px solid #35465d;border-radius:16px}
.game-history-panel h2{font-size:16px;margin:0 0 10px}
.game-history-list{display:grid;gap:7px}
.history-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:9px 11px;border-radius:9px;background:#ffffff08;color:#cbd5e1;font-size:12px}
.history-row b{color:#f2ca70}.history-row small{color:#aebbd0}
#passBtn:disabled{opacity:.48;cursor:not-allowed;filter:saturate(.45)}
@media(max-width:600px){.history-row{grid-template-columns:1fr auto}.history-row small{grid-column:1/-1}}
