: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}}

/* DOMINO PRO - real-time local table feedback */
.computer-played{animation:computerTileDrop .72s cubic-bezier(.2,.8,.2,1) both;box-shadow:0 0 0 2px rgba(255,205,105,.7),0 10px 26px rgba(0,0,0,.35)}
@keyframes computerTileDrop{0%{opacity:.25;transform:translateY(-22px) scale(.88) rotate(-5deg)}65%{opacity:1;transform:translateY(3px) scale(1.04) rotate(1deg)}100%{transform:translateY(0) scale(1) rotate(0)}}
#playedCount,#remainingCount{font-variant-numeric:tabular-nums;color:#f6d58b}
#playerHand .domino-tile.playable{outline:2px solid rgba(64,217,154,.65);outline-offset:2px}
#playerHand .domino-tile:not(.playable){opacity:.7}

/* DOMINO PRO v8 — compact connected players, free chat and mobile-first table */
.player-strip{display:flex;gap:7px;align-items:center;justify-content:center;flex-wrap:wrap;margin:8px auto 12px;max-width:100%}
.player-chip{display:flex;align-items:center;gap:6px;min-width:0;padding:6px 10px;border:1px solid rgba(255,255,255,.11);border-radius:999px;background:rgba(10,18,29,.78);color:#e9edf4;font-size:12px;line-height:1.2}
.player-chip b{font-weight:700;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.player-chip small{color:#b6c0ce;font-size:10px;white-space:nowrap}
.player-chip.is-active{border-color:#d8b66d;box-shadow:0 0 0 1px rgba(216,182,109,.2);background:rgba(95,71,30,.28)}
/* The board itself stays clear: seat labels are represented by the strip above. */
.table3d .seat-name{display:none!important}
.table3d .seat{pointer-events:none}
.chat-panel{margin-top:14px;padding:14px}
.chat-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.chat-head h2{margin:0}
.chat-mode{font-size:11px;padding:5px 9px;border-radius:20px;background:rgba(255,255,255,.08);color:#d9c28f}
.chat-messages{height:150px;overflow:auto;display:flex;flex-direction:column;gap:7px;padding:9px;margin:10px 0;border-radius:12px;background:rgba(0,0,0,.18);overscroll-behavior:contain}
.chat-message{display:grid;grid-template-columns:auto 1fr auto;align-items:baseline;gap:8px;font-size:13px;padding:5px 7px;border-bottom:1px solid rgba(255,255,255,.06)}
.chat-message b{color:#e5c887}.chat-message span{overflow-wrap:anywhere}.chat-message small{font-size:10px;color:#8995a5}
.chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.chat-compose input{min-width:0;width:100%;border-radius:10px;padding:12px;background:#111a28;border:1px solid rgba(255,255,255,.15);color:#fff}
.chat-compose button{white-space:nowrap}
.chat-voice-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:9px}
@media(max-width:700px){
 .game-wrap{width:100%;padding:8px}
 .gamebar{gap:8px;align-items:flex-start}
 .gamebar h1{font-size:clamp(20px,5vw,28px)}
 .gamebar-actions{display:flex;flex-wrap:wrap;gap:6px}
 .target-pill{font-size:10px;padding:5px 7px}
 .player-strip{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:2px 1px 7px;scrollbar-width:none}
 .player-strip::-webkit-scrollbar{display:none}
 .player-chip{flex:0 0 auto;padding:6px 8px}
 .table3d-shell{width:100%;overflow:hidden;border-radius:16px}
 .table3d{min-height:clamp(310px,74vw,490px);padding:clamp(8px,2vw,16px)}
 .seat-top,.seat-left,.seat-right{opacity:.7;transform:scale(.82)}
 .seat-bottom{max-width:100%}
 .player-hand{max-width:100%;overflow-x:auto;display:flex;gap:4px;padding:7px 2px;scrollbar-width:thin}
 .domino-tile{flex:0 0 auto}
 .domino-chain{max-width:100%;overflow-x:auto;display:flex;flex-wrap:nowrap;justify-content:flex-start;scrollbar-width:thin}
 .control-head{gap:8px;flex-wrap:wrap}
 .turn-actions{display:flex;gap:6px;flex-wrap:wrap}
 .turn-actions button{font-size:12px;padding:9px 10px}
 .score-strip{gap:6px}
 .score-strip>div{min-width:0;padding:8px 5px}
 .score-strip small{font-size:9px}
 .chat-panel{padding:10px}
 .chat-messages{height:125px}
}
@media(max-width:420px){
 .gamebar-actions .secondary-btn{font-size:11px;padding:8px}
 .table3d{min-height:330px}
 .domino-tile{transform:scale(.9);transform-origin:center}
 .score-strip b{font-size:20px}
 .chat-compose button{padding:9px 11px}
}
@media(orientation:landscape) and (max-height:540px){
 .game-wrap{padding:5px}
 .gamebar{margin-bottom:5px}
 .player-strip{margin:4px auto}
 .table3d{min-height:270px;max-height:68vh}
 .chat-messages{height:85px}
}

/* v9 — realistic ivory double-six tiles based on the supplied physical reference.
   All 28 combinations are drawn from the canonical 0–6 pip matrix in game3d.js. */
.domino-tile{
  position:relative!important;
  box-sizing:border-box;
  width:38px!important;
  height:72px!important;
  min-width:38px;
  flex:0 0 38px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  overflow:visible!important;
  padding:3px!important;
  border:1px solid #aaa99f!important;
  border-radius:9px!important;
  background:
    linear-gradient(112deg,rgba(255,255,255,.95) 0%,rgba(250,249,242,.98) 24%,rgba(229,228,220,.98) 70%,rgba(207,207,199,.98) 100%)!important;
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,.98),
    inset -1px -2px 3px rgba(90,88,80,.18),
    0 1px 0 #b8b7ae,
    0 3px 0 #88877f,
    0 5px 0 #66665f,
    0 8px 12px rgba(0,0,0,.48)!important;
  color:#111!important;
  transform-style:preserve-3d;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.domino-tile::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:7px;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.34),transparent 42%,rgba(60,58,50,.05));
}
.domino-tile .half{
  width:100%!important;
  height:50%!important;
  min-height:0;
  display:grid!important;
  place-items:center!important;
  position:relative;
  z-index:1;
}
.domino-tile .half+.half{border:0!important}
.domino-tile .tile-seam{
  display:block;
  height:3px;
  flex:0 0 3px;
  margin:0 2px;
  border-radius:5px;
  position:relative;
  z-index:2;
  background:linear-gradient(180deg,#080909,#292a29 45%,#050606);
  box-shadow:0 1px 1px rgba(255,255,255,.75),0 -1px 1px rgba(0,0,0,.25);
}
.pip-grid{
  width:27px!important;
  height:27px!important;
  display:grid!important;
  grid-template:repeat(3,1fr)/repeat(3,1fr)!important;
  gap:1px!important;
}
.pip-grid i{
  width:7px!important;
  height:7px!important;
  border-radius:50%!important;
  background:transparent!important;
  align-self:center;
  justify-self:center;
}
.pip-grid i.on{
  background:radial-gradient(circle at 32% 28%,#555 0%,#171717 34%,#030303 78%)!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.28),0 1px 1px rgba(0,0,0,.6)!important;
}
.domino-tile.playable{outline:2px solid #e8bd62!important;outline-offset:2px;transform:translateY(-4px) rotateX(3deg)}
.domino-tile.selected{outline:3px solid #35dca1!important;outline-offset:2px;transform:translateY(-7px) rotateX(4deg)}
.player-hand .domino-tile{width:42px!important;height:78px!important;flex-basis:42px!important}
.player-hand .pip-grid{width:29px!important;height:29px!important}
.player-hand .pip-grid i{width:7px!important;height:7px!important}
.domino-chain .domino-tile{width:34px!important;height:64px!important;flex-basis:34px!important;border-radius:8px!important}
.domino-chain .pip-grid{width:24px!important;height:24px!important}
.domino-chain .pip-grid i{width:6px!important;height:6px!important}
.opponent-tiles .back-tile{border-radius:5px}
@media(max-width:700px){
 .player-hand .domino-tile{width:37px!important;height:69px!important;flex-basis:37px!important}
 .player-hand .pip-grid{width:25px!important;height:25px!important}
 .player-hand .pip-grid i{width:6px!important;height:6px!important}
 .domino-chain .domino-tile{width:30px!important;height:57px!important;flex-basis:30px!important}
 .domino-chain .pip-grid{width:21px!important;height:21px!important}
 .domino-chain .pip-grid i{width:5.5px!important;height:5.5px!important}
}

/* DOMINO PRO v11 — definitive 3D ivory tile renderer. Keep this block last. */
.domino-real{
  appearance:none!important;
  -webkit-appearance:none!important;
  box-sizing:border-box!important;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  align-items:stretch!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:82px!important;
  min-height:82px!important;
  max-height:82px!important;
  flex:0 0 44px!important;
  padding:4px!important;
  margin:0 0 7px 0!important;
  overflow:visible!important;
  border:1px solid #aaa99c!important;
  border-radius:8px!important;
  background:linear-gradient(115deg,#fffef7 0%,#f5f3e8 38%,#e6e3d7 78%,#d1cec2 100%)!important;
  box-shadow:inset 1px 1px 2px #fff,inset -2px -2px 4px #aaa79a,0 2px 0 #aaa79a,0 4px 0 #77766e,0 7px 0 #4a4a45,0 10px 14px #0008!important;
  color:#111!important;
  transform:perspective(500px) rotateX(2deg)!important;
}
.domino-real::before{
  content:"";
  position:absolute;
  left:4px;right:4px;top:50%;
  height:4px;
  transform:translateY(-50%);
  border-radius:4px;
  background:linear-gradient(#050505,#353530 45%,#050505);
  box-shadow:0 1px 1px #fff9,inset 0 1px 2px #000;
  z-index:4;
  pointer-events:none;
}
.domino-real::after{
  content:"";
  position:absolute;inset:2px;border-radius:6px;
  background:linear-gradient(135deg,#ffffff55,transparent 42%,#5b584b18);
  pointer-events:none;z-index:5;
}
.domino-real .half{
  display:grid!important;
  place-items:center!important;
  width:100%!important;height:calc(50% - 2px)!important;
  min-height:0!important;flex:1 1 50%!important;
  position:relative!important;z-index:2!important;
  border:0!important;
}
.domino-real .tile-seam{display:none!important}
.domino-real .pip-grid{
  display:grid!important;
  width:30px!important;height:30px!important;
  grid-template-columns:repeat(3,1fr)!important;
  grid-template-rows:repeat(3,1fr)!important;
  gap:0!important;place-items:center!important;
  position:relative!important;z-index:3!important;
}
.domino-real .pip-grid i{
  display:block!important;width:7px!important;height:7px!important;
  min-width:7px!important;min-height:7px!important;
  border-radius:50%!important;background:transparent!important;
  box-shadow:none!important;
}
.domino-real .pip-grid i.on{
  background:radial-gradient(circle at 30% 25%,#555 0%,#171717 38%,#020202 82%)!important;
  box-shadow:inset 0 1px 1px #ffffff55,0 1px 1px #0009!important;
}
.player-hand .domino-real{width:48px!important;min-width:48px!important;max-width:48px!important;height:88px!important;min-height:88px!important;max-height:88px!important;flex-basis:48px!important}
.domino-chain .domino-real{width:39px!important;min-width:39px!important;max-width:39px!important;height:74px!important;min-height:74px!important;max-height:74px!important;flex-basis:39px!important}
.domino-real.playable{outline:2px solid #e8bd62!important;outline-offset:2px;filter:brightness(1.04)}
.domino-real.selected{outline:3px solid #32dca1!important;outline-offset:3px}
@media(max-width:700px){
 .player-hand .domino-real{width:42px!important;min-width:42px!important;max-width:42px!important;height:78px!important;min-height:78px!important;max-height:78px!important;flex-basis:42px!important}
 .player-hand .domino-real .pip-grid{width:27px!important;height:27px!important}
 .player-hand .domino-real .pip-grid i{width:6px!important;height:6px!important;min-width:6px!important;min-height:6px!important}
 .domino-chain .domino-real{width:32px!important;min-width:32px!important;max-width:32px!important;height:60px!important;min-height:60px!important;max-height:60px!important;flex-basis:32px!important}
 .domino-chain .domino-real .pip-grid{width:22px!important;height:22px!important}
 .domino-chain .domino-real .pip-grid i{width:5px!important;height:5px!important;min-width:5px!important;min-height:5px!important}
}


/* DOMINO PRO v12 — mesa completa en móviles Android */
.room-panel{margin-top:14px;padding:15px;border:1px solid #3a5068;border-radius:14px;background:#0b1725;color:#e8eef7}
.room-panel h3{margin:0 0 8px}.room-panel p{color:#b8c5d5;font-size:13px;line-height:1.45}
.room-request{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #304055}
.room-request span{font-size:12px;color:#aab8c9}.room-request button{border:0;border-radius:8px;padding:8px 10px;font-weight:700}
.room-accept{background:#176b4d;color:#fff}.room-deny{background:#6b2933;color:#fff}
.table3d-shell{overflow:hidden;max-width:100%;padding:clamp(5px,1.5vw,16px)}
.table3d{min-height:clamp(360px,60vw,620px);padding:clamp(7px,1.5vw,20px);border-width:clamp(5px,1.2vw,13px)}
.chain-area{width:min(70%,760px);max-height:56%;overflow:hidden}
.domino-chain{gap:clamp(2px,.4vw,4px)}
.seat{max-width:29%;padding:6px 8px;gap:5px}
.seat-name{gap:5px;min-width:0}.seat-name b{max-width:105px;overflow:hidden;text-overflow:ellipsis}
.seat-top{top:9px}.seat-bottom{bottom:8px}.seat-left{left:8px}.seat-right{right:8px}
.table-center-info{right:10px;bottom:75px}
@media(max-width:700px){
 .game-wrap{margin:10px auto;padding:0 8px 65px}
 .gamebar{align-items:flex-start;flex-direction:column;margin:12px 0;gap:8px}
 .gamebar h1{font-size:25px}.gamebar-actions{gap:5px}
 .target-pill{font-size:10px;padding:6px 8px}
 .player-strip{display:none!important}
 .table3d-shell{border-radius:15px;padding:4px}
 .table3d{min-height:clamp(330px,106vw,480px);border-radius:13px;padding:5px;transform:none}
 .table3d:before{inset:5px;border-radius:8px}
 .seat{max-width:32%;padding:4px 5px;border-radius:9px;gap:3px}
 .avatar{width:23px;height:23px;font-size:14px}
 .seat-name{gap:3px}.seat-name b{font-size:10px;max-width:66px}.seat-name small{font-size:8px}
 .seat-top{top:8px}.seat-bottom{bottom:7px}.seat-left{left:5px}.seat-right{right:5px}
 .opponent-tiles{gap:1px;max-width:80px;overflow:hidden}
 .back-tile{width:12px;height:18px;border-width:1px;border-radius:3px}
 .vertical .back-tile{width:18px;height:11px}
 .chain-area{top:49%;width:76%;min-height:100px;max-height:48%;overflow:hidden}
 .chain-hint{font-size:9px;margin-bottom:5px;text-align:center}
 .domino-tile{width:clamp(29px,8vw,42px);height:clamp(15px,4vw,22px);border-radius:3px}
 .domino-tile .pip-grid{width:clamp(12px,3.4vw,18px);height:clamp(12px,3.4vw,18px);gap:0}
 .domino-tile .pip-grid i{width:clamp(2px,.8vw,4px);height:clamp(2px,.8vw,4px)}
 .table-center-info{right:7px;bottom:58px;font-size:7px;letter-spacing:0}
 .table-center-info b{font-size:13px}
 .seat-bottom .player-hand{gap:2px;max-width:45vw;overflow-x:auto;overscroll-behavior-x:contain}
 .player-hand .domino-tile{width:clamp(32px,8vw,43px);height:clamp(18px,4.5vw,23px)}
 .player-hand .pip-grid{width:clamp(14px,3.5vw,19px);height:clamp(14px,3.5vw,19px)}
 .seat-bottom .you-badge{font-size:7px;padding:2px 4px}
 .play-controls{padding:12px}.control-head{gap:8px;align-items:flex-start;flex-wrap:wrap}
 .control-head h2{font-size:17px}
 .score-strip{gap:6px}.score-strip>div{padding:9px 6px}.score-strip small{font-size:8px}
 .lobby{padding:14px}.lobby-grid{grid-template-columns:1fr;gap:12px}.lobby-card{padding:15px}
}
@media(max-width:390px){
 .table3d{min-height:340px}
 .seat-name b{max-width:54px}
 .seat{max-width:34%}
 .chain-area{width:70%}
 .domino-chain{gap:1px}
 .domino-tile{width:27px;height:14px}
 .player-hand .domino-tile{width:29px;height:17px}
}
