/* ==========================================================
   Dominó Cuba Core 1.0.40
   Hoja consolidada. Una sola fuente de verdad por componente.
   ========================================================== */

:root{
  --dcc-green:#0d6b45;
  --dcc-green-dark:#064c34;
  --dcc-bg:#f3f5f4;
  --dcc-card:#fff;
  --dcc-text:#17231d;
  --dcc-border:#dfe6e2;
  --dcc-gold:#ffd54a;
  --dcc-wood:#5b341d;
  --dcc-shadow:0 8px 28px rgba(0,0,0,.12);
}

/* ---------- Web normal ---------- */
.dcc-wrap{max-width:980px;margin:24px auto;padding:0 14px;color:var(--dcc-text);box-sizing:border-box}
.dcc-card{background:var(--dcc-card);border:1px solid var(--dcc-border);border-radius:16px;padding:18px;margin-bottom:16px;box-shadow:0 4px 18px rgba(0,0,0,.04);box-sizing:border-box}
.dcc-auth{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.dcc-card input,.dcc-card select{width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid #cfd9d4;border-radius:10px;margin:6px 0;font-size:16px;background:#fff;color:var(--dcc-text)}
.dcc-pass{position:relative}.dcc-pass input{padding-right:88px}.dcc-show-pass{position:absolute;right:8px;top:14px;border:0;background:transparent;cursor:pointer}
.dcc-btn{display:inline-block;border:0;border-radius:10px;padding:10px 14px;background:#e8eeeb;color:#17231d;text-decoration:none;cursor:pointer;margin:4px;font:inherit;line-height:1.2}
.dcc-btn:hover{filter:brightness(.98)}.dcc-primary{background:var(--dcc-green);color:#fff}.dcc-msg{margin-top:8px}.dcc-muted{opacity:.68}
.dcc-hero{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,var(--dcc-green),var(--dcc-green-dark));color:#fff;border-radius:18px;padding:18px;margin-bottom:18px}
.dcc-hero h2{margin:0}.dcc-domino-mark{font-size:54px;line-height:1}.dcc-avatar{border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.75);box-sizing:border-box}.dcc-initial{background:#e8efe9;color:#154d37;font-weight:700}
.dcc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dcc-tile{min-height:120px;border:1px solid var(--dcc-border);background:#fff;border-radius:16px;padding:18px;text-decoration:none;color:var(--dcc-text);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;font-size:28px;cursor:pointer;text-align:left;box-sizing:border-box}
.dcc-tile strong{font-size:19px;margin-top:8px}.dcc-tile span{font-size:13px;opacity:.66;margin-top:4px}.dcc-profile-head{display:flex;align-items:center;gap:14px}
.dcc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0}.dcc-stats div{text-align:center;background:#f5f8f6;border-radius:12px;padding:10px}.dcc-stats b{display:block;font-size:20px}.dcc-stats span{font-size:12px}
.dcc-hidden{display:none!important}.dcc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1ef;padding:10px 0}.dcc-row small{display:block;opacity:.65}.dcc-searchline{display:flex;gap:8px}.dcc-table{overflow:auto}.dcc-table table{width:100%;border-collapse:collapse}.dcc-table th,.dcc-table td{padding:10px;border-bottom:1px solid #edf1ef;text-align:left}.dcc-table tr.me{background:#edf8f2}.dcc-history{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1ef}.dcc-history small{display:block;opacity:.65}.dcc-contact-select{display:flex;align-items:center;gap:8px;padding:8px}.dcc-contact-select input{width:auto}.dcc-partner{margin-left:auto}.dcc-guest-home-hero{min-height:74px}

/* ---------- Pantalla de búsqueda ---------- */
.dcc-match-overlay{position:fixed;inset:0;z-index:999998;background:rgba(4,34,24,.82);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;backdrop-filter:blur(3px)}
.dcc-match-scene{position:relative;width:min(780px,94vw);min-height:430px;border:8px solid var(--dcc-wood);border-radius:28px;background:radial-gradient(circle at 50% 45%,#168158 0,var(--dcc-table-color,var(--dcc-green)) 58%,#075039 100%);box-shadow:0 22px 60px rgba(0,0,0,.5),inset 0 0 0 2px rgba(255,255,255,.08);overflow:hidden;color:#fff;padding:28px;box-sizing:border-box}
.dcc-match-table-art{position:absolute;inset:0;pointer-events:none;opacity:.18}.dcc-match-table-art .back{position:absolute;width:28px;height:50px;border:1px solid rgba(255,255,255,.75);border-radius:4px;background:#fff var(--dcc-tile-back,none) center/cover no-repeat;box-shadow:0 4px 8px rgba(0,0,0,.28)}
.dcc-match-table-art .b1{left:6%;top:12%;transform:rotate(-18deg)}.dcc-match-table-art .b2{left:13%;bottom:10%;transform:rotate(24deg)}.dcc-match-table-art .b3{right:8%;top:13%;transform:rotate(17deg)}.dcc-match-table-art .b4{right:15%;bottom:8%;transform:rotate(-28deg)}.dcc-match-table-art .b5{left:44%;top:7%;transform:rotate(72deg)}.dcc-match-table-art .b6{right:42%;bottom:5%;transform:rotate(83deg)}
.dcc-match-title{position:relative;text-align:center;font-weight:900;font-size:24px;margin:2px 0 28px;text-shadow:0 2px 5px rgba(0,0,0,.28);z-index:2}.dcc-match-dots{display:inline-block;margin-left:6px;letter-spacing:3px;animation:dccPulse 1s infinite}
.dcc-match-slots{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;align-items:center;z-index:2}.dcc-match-slot{text-align:center;transition:.25s ease;opacity:.68}.dcc-match-avatar{width:82px;height:82px;margin:0 auto 9px;border-radius:50%;background:rgba(0,0,0,.22);border:3px dashed rgba(255,255,255,.55);display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 6px 16px rgba(0,0,0,.2)}.dcc-match-avatar img{width:100%;height:100%;object-fit:cover}.dcc-match-silhouette,.dcc-match-person{font-size:34px;line-height:1;filter:grayscale(1);opacity:.85}.dcc-match-slot.searching .dcc-match-avatar{animation:dccSearchPulse 1.2s infinite ease-in-out}.dcc-match-slot.filled{opacity:1;transform:translateY(-3px)}.dcc-match-slot.filled .dcc-match-avatar{border-style:solid;border-color:#ffe270;box-shadow:0 0 0 4px rgba(255,226,112,.13),0 7px 18px rgba(0,0,0,.26)}.dcc-match-slot b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dcc-match-slot small{font-size:11px;opacity:.82}.dcc-match-status{position:relative;text-align:center;margin-top:34px;font-weight:700;z-index:2}.dcc-match-cancel{position:relative;display:block;margin:18px auto 0!important;z-index:2}.dcc-match-overlay.ready .dcc-match-scene{box-shadow:0 0 0 3px rgba(255,226,112,.35),0 22px 60px rgba(0,0,0,.5)}
@keyframes dccSearchPulse{0%,100%{transform:scale(.94);opacity:.65}50%{transform:scale(1.04);opacity:1}}@keyframes dccPulse{50%{opacity:.35}}

/* ---------- Ficha base ---------- */
.dcc-domino{appearance:none;-webkit-appearance:none;border:1px solid rgba(0,0,0,.2);background:var(--dcc-tile-front,#fff);padding:0;margin:0;display:flex;overflow:hidden;box-sizing:border-box;color:#111;position:relative;cursor:default}
.dcc-half{position:relative;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);align-items:center;justify-items:center;box-sizing:border-box;min-width:0;min-height:0;padding:8%;direction:ltr;writing-mode:horizontal-tb}
.dcc-divider{background:rgba(0,0,0,.7);flex:0 0 1px}.dcc-dot{display:block;width:8px;height:8px;border-radius:50%;background:#111;transform:none}
.dcc-dot.pos-1{grid-column:1;grid-row:1}.dcc-dot.pos-2{grid-column:2;grid-row:1}.dcc-dot.pos-3{grid-column:3;grid-row:1}.dcc-dot.pos-4{grid-column:1;grid-row:2}.dcc-dot.pos-5{grid-column:2;grid-row:2}.dcc-dot.pos-6{grid-column:3;grid-row:2}.dcc-dot.pos-7{grid-column:1;grid-row:3}.dcc-dot.pos-8{grid-column:2;grid-row:3}.dcc-dot.pos-9{grid-column:3;grid-row:3}
/* Colores fijos por valor. */
.dcc-half.p1 .dcc-dot{background:var(--dcc-pip-1,#d71920)}.dcc-half.p2 .dcc-dot{background:var(--dcc-pip-2,#1f9d55)}.dcc-half.p3 .dcc-dot{background:var(--dcc-pip-3,#1769aa)}.dcc-half.p4 .dcc-dot{background:var(--dcc-pip-4,#f28c00)}.dcc-half.p5 .dcc-dot{background:var(--dcc-pip-5,#7b2cbf)}.dcc-half.p6 .dcc-dot{background:var(--dcc-pip-6,#008c95)}.dcc-half.p7 .dcc-dot{background:var(--dcc-pip-7,#e83e8c)}.dcc-half.p8 .dcc-dot{background:var(--dcc-pip-8,#8a5a00)}.dcc-half.p9 .dcc-dot{background:var(--dcc-pip-9,#111111)}

/* ---------- Mesa ----------
   PC: permanece como mesa grande dentro de la página.
   Móvil: ocupa todo el viewport disponible. */
body.dcc-game-desktop #dcc-game{
  position:relative;
  width:100%;
  min-height:680px;
  max-width:1180px;
  margin:18px auto;
  overflow:hidden;
  background-color:var(--dcc-table-color,#0d6b45);
  background-image:var(--dcc-table-image,none);
  background-size:cover;
  background-position:center;
  box-sizing:border-box;
  border-radius:26px;
}
html.dcc-game-html,html.dcc-game-html body,body.dcc-game-mobile{
  margin:0!important;padding:0!important;width:100%!important;height:100%!important;
  min-height:100%!important;overflow:hidden!important;overscroll-behavior:none!important;
  background:#073f2e!important;
}
body.dcc-game-mobile > *:not(#dcc-game):not(.dcc-flying-piece):not(script):not(style):not(link){display:none!important}
body.dcc-game-mobile > .dcc-flying-piece{display:flex!important;visibility:visible!important;opacity:1!important}
body.dcc-game-mobile #wpadminbar{display:none!important}
body.dcc-game-mobile #dcc-game{
  display:block!important;position:fixed!important;inset:0!important;
  width:100vw!important;height:100vh!important;height:100dvh!important;
  max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;
  overflow:hidden!important;z-index:2147483000!important;
  background-color:var(--dcc-table-color,#0d6b45);
  background-image:var(--dcc-table-image,none);
  background-size:cover;background-position:center;box-sizing:border-box;
}
.dcc-game:before{content:"";position:absolute;inset:10px;border:8px solid var(--dcc-wood);border-radius:30px;pointer-events:none;box-shadow:inset 0 0 0 2px rgba(255,255,255,.05);z-index:1}
.dcc-game-exit{position:absolute;top:9px;right:9px;z-index:50;border:0;border-radius:11px;padding:9px 13px;background:rgba(0,44,31,.9);color:#fff;font-size:16px;cursor:pointer}

/* Tres jugadores ajenos arriba. Las clases left/top/right son relativas al usuario, no posiciones físicas. */
.dcc-seat{position:absolute;z-index:14;color:#fff;font-size:12px;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.dcc-seat.left,.dcc-seat.top,.dcc-seat.right{top:7px;bottom:auto;transform:none;width:29%;max-width:29%;min-width:0;text-align:center}
.dcc-seat.left{left:3%}.dcc-seat.top{left:35.5%}.dcc-seat.right{right:5%}
.dcc-seat-shell{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}.dcc-seat.left .dcc-seat-shell,.dcc-seat.top .dcc-seat-shell,.dcc-seat.right .dcc-seat-shell{flex-direction:row;white-space:nowrap}
.dcc-seat .dcc-avatar{width:42px;height:42px;flex:0 0 42px}.dcc-seat-info{min-width:0}.dcc-seat-info b{display:block;font-size:13px;line-height:1.08;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dcc-seat-info small{display:block;font-size:9px;line-height:1.2}.dcc-thinking{display:inline-flex;align-items:center;gap:3px;color:var(--dcc-gold);font-weight:800}.dcc-thinking i{width:4px;height:4px;border-radius:50%;background:var(--dcc-gold);animation:dccThinking .9s infinite}.dcc-thinking i:nth-child(2){animation-delay:.15s}.dcc-thinking i:nth-child(3){animation-delay:.3s}.dcc-thinking b{font-size:9px}.dcc-seat.active-turn .dcc-avatar{box-shadow:0 0 0 3px var(--dcc-gold),0 0 18px rgba(255,213,74,.5)}
@keyframes dccThinking{50%{opacity:.2}}
.dcc-seat .backs{display:flex;align-items:center;gap:2px;max-width:104px;overflow:hidden}.mini-back{display:block;width:9px;height:17px;flex:0 0 9px;margin:0;border:1px solid rgba(255,255,255,.85);border-radius:2px;background-color:#fff;background-image:var(--dcc-tile-back,linear-gradient(135deg,#fff 0 38%,#1e4e8c 39% 56%,#fff 57% 68%,#d52b1e 69%));background-size:cover;background-position:center}.dcc-seat-stock{display:flex;align-items:center;gap:4px;min-width:0}.dcc-count-badge{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:#fff;color:#111;font-weight:900;font-size:11px;box-shadow:0 1px 4px rgba(0,0,0,.25)}.dcc-player-card{cursor:pointer}.dcc-player-card:focus-visible{outline:2px solid var(--dcc-gold);outline-offset:2px}
/* Mi perfil es mínimo y no compite con la mano. */
.dcc-seat.bottom{left:8px;bottom:8px;max-width:90px}.dcc-seat.bottom .backs,.dcc-seat.bottom .dcc-seat-info small{display:none}.dcc-seat.bottom .dcc-avatar{width:28px;height:28px;flex-basis:28px}.dcc-seat.bottom .dcc-seat-info b{font-size:10px}

/* ---------- Zona de juego ---------- */
.dcc-board{position:absolute;left:2.5%;right:2.5%;top:10%;bottom:21%;z-index:5;overflow:hidden}.dcc-chain{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}.dcc-chain-piece{position:absolute!important;border-radius:7px!important;box-shadow:0 2px 4px rgba(0,0,0,.28);pointer-events:none}
.dcc-chain-piece.piece-horizontal{flex-direction:row!important}.dcc-chain-piece.piece-horizontal>.dcc-half{width:50%;height:100%}.dcc-chain-piece.piece-horizontal>.dcc-divider{width:1px;height:100%}.dcc-chain-piece.piece-vertical{flex-direction:column!important}.dcc-chain-piece.piece-vertical>.dcc-half{width:100%;height:50%}.dcc-chain-piece.piece-vertical>.dcc-divider{width:100%;height:1px;flex-basis:1px}.dcc-chain-piece .dcc-dot{width:9px;height:9px}
.dcc-end-target{display:none;position:absolute;z-index:25;width:36px;height:36px;border-radius:50%;border:3px solid var(--dcc-gold);background:rgba(0,55,38,.82);box-shadow:0 0 0 4px rgba(255,213,74,.18),0 4px 12px rgba(0,0,0,.35);cursor:pointer;animation:dccEndPulse .9s infinite alternate}.dcc-game.choosing-end .dcc-end-target{display:block}.dcc-game.choosing-end .dcc-end-target:after{content:"";position:absolute;inset:9px;border-radius:50%;background:var(--dcc-gold)}@keyframes dccEndPulse{from{transform:scale(.92)}to{transform:scale(1.08)}}
.dcc-turn{position:absolute;left:50%;bottom:18%;transform:translateX(-50%);z-index:18;display:flex;align-items:center;gap:8px;border-radius:24px;background:rgba(0,61,43,.92);color:#fff;padding:8px 14px;font-size:13px;white-space:nowrap;box-shadow:0 4px 10px rgba(0,0,0,.18)}.dcc-turn span{color:var(--dcc-gold);font-weight:800}.dcc-turn .dots{letter-spacing:3px;animation:dccPulse 1s infinite}

/* ---------- Mano ---------- */
.dcc-hand{position:absolute;left:50%;bottom:4px;transform:translateX(-50%);z-index:16;display:flex;align-items:flex-end;justify-content:center;gap:3px;max-width:94vw;overflow:visible}.dcc-domino.hand{width:clamp(72px,7.2vw,92px);height:clamp(132px,13vw,166px);flex-direction:column;border-radius:7px;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 3px 6px rgba(0,0,0,.25)}.dcc-domino.hand .dcc-half{width:100%;height:50%}.dcc-domino.hand .dcc-divider{width:100%;height:1px}.dcc-domino.hand .dcc-dot{width:clamp(11px,1vw,14px);height:clamp(11px,1vw,14px)}.dcc-domino.hand.playable.highlight-valid{outline:3px solid var(--dcc-gold);outline-offset:-2px}.dcc-domino.hand.selected{transform:translateY(-10px);box-shadow:0 0 0 3px var(--dcc-gold),0 10px 18px rgba(0,0,0,.3)}.dcc-domino.hand.dcc-dragging{z-index:50;transform:translateY(-14px) scale(1.04);box-shadow:0 14px 24px rgba(0,0,0,.42);pointer-events:none}

/* ---------- Pase y animación ---------- */
.dcc-pass-pop{position:fixed;z-index:1000004;min-width:94px;padding:8px 12px;border:2px solid var(--dcc-gold);border-radius:12px;background:rgba(6,39,29,.95);color:#fff;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.35)}.dcc-pass-pop strong{display:block;font-size:20px}.dcc-pass-pop small{display:block;font-size:10px;opacity:.8}.dcc-flying-piece{position:fixed!important;pointer-events:none!important;z-index:2147483647!important;filter:drop-shadow(0 12px 9px rgba(0,0,0,.42));will-change:left,top;visibility:visible!important}

/* ---------- Final de partida ---------- */
.dcc-game.game-finished .dcc-board,.dcc-game.game-finished .dcc-hand,.dcc-game.game-finished .dcc-seat{filter:none;opacity:1}.dcc-result{position:absolute;top:6px;left:50%;transform:translateX(-50%);z-index:30;width:min(760px,calc(100vw - 120px));text-align:center;pointer-events:none}.dcc-result .box{width:100%;box-sizing:border-box;padding:8px 13px;background:#fff;color:#17231d;border:1px solid rgba(0,0,0,.16);box-shadow:0 10px 28px rgba(0,0,0,.28);border-radius:14px;pointer-events:auto}.dcc-result .box h2{font-size:19px;margin:2px 0 4px}.dcc-rank-delta{font-weight:700;margin:4px 0}.dcc-result-winner{font-weight:800;font-size:14px;margin:3px 0}.dcc-result-actions{display:flex;gap:4px;justify-content:center;flex-wrap:wrap}.dcc-result-actions .dcc-btn{padding:7px 11px;margin:2px}.dcc-team-score{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px auto;max-width:620px}.dcc-team-score span{background:#f1f5f3;border-radius:8px;padding:6px 8px;font-size:12px}.dcc-team-score b{display:block}.dcc-team-score strong{font-size:18px;margin-right:3px}
.dcc-reveal-hand{display:flex;gap:2px;margin-top:4px;justify-content:center;flex-wrap:wrap;max-width:130px}.dcc-reveal-empty{display:block;font-size:8px;opacity:.75;margin-top:3px}.dcc-domino.reveal{width:34px;height:18px;min-width:34px;flex-direction:row;border-radius:3px;pointer-events:none}.dcc-domino.reveal .dcc-half{width:50%;height:100%;padding:1px}.dcc-domino.reveal .dcc-divider{width:1px;height:100%}.dcc-domino.reveal .dcc-dot{width:3px;height:3px}.dcc-seat.left .dcc-reveal-hand,.dcc-seat.right .dcc-reveal-hand{max-width:82px;display:grid;grid-template-columns:repeat(2,34px)}
.dcc-hand.dcc-finish-hand{bottom:10px;width:min(900px,76vw);max-width:76vw;display:block;z-index:12}.dcc-finish-pair-hands{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:end;background:rgba(3,57,39,.82);border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:8px 12px;backdrop-filter:blur(4px)}.dcc-finish-hand-group{min-width:0;text-align:center;color:#fff}.dcc-finish-hand-group>b{display:block;font-size:12px;margin-bottom:5px}.dcc-finish-tiles{display:flex;gap:3px;justify-content:center;align-items:center;min-height:35px;flex-wrap:wrap}.dcc-domino.finish{width:52px;height:27px;min-width:52px;flex-direction:row;border-radius:4px;pointer-events:none}.dcc-domino.finish .dcc-half{width:50%;height:100%;padding:2px}.dcc-domino.finish .dcc-divider{width:1px;height:100%}.dcc-domino.finish .dcc-dot{width:5px;height:5px}

/* ---------- Responsive web ---------- */
@media(max-width:760px){.dcc-auth,.dcc-grid{grid-template-columns:1fr}.dcc-stats{grid-template-columns:repeat(2,1fr)}.dcc-wrap{margin:12px auto}.dcc-row{align-items:flex-start;flex-direction:column}.dcc-searchline{flex-direction:column}.dcc-match-scene{min-height:390px;padding:22px 12px}.dcc-match-slots{gap:7px}.dcc-match-avatar{width:62px;height:62px}.dcc-match-title{font-size:20px}}

/* ================================================================
   MESA · DOS MODOS, UNA SOLA LÓGICA S34
   10 + 2 + 10 + 2 + 10. El JS rota el mismo recorrido para horizontal.
   ================================================================ */
.dcc-board,.dcc-chain{overflow:hidden}
.dcc-chain-piece{transform:none;transform-origin:center center;transition:transform .16s ease}
.dcc-chain-piece.piece-horizontal{flex-direction:row}
.dcc-chain-piece.piece-horizontal>.dcc-half{width:50%;height:100%}
.dcc-chain-piece.piece-horizontal>.dcc-divider{width:1px;height:100%;flex:0 0 1px}
.dcc-chain-piece.piece-vertical{flex-direction:column}
.dcc-chain-piece.piece-vertical>.dcc-half{width:100%;height:50%}
.dcc-chain-piece.piece-vertical>.dcc-divider{width:100%;height:1px;flex:0 0 1px}
.dcc-chain-endpoint{transform:scale(1.3);z-index:9;box-shadow:0 3px 9px rgba(0,0,0,.38)}

/* ---------- Móvil horizontal ----------
   Mis 10 fichas permanecen en una sola fila. La mesa usa la misma S34,
   rotada 90 grados por el motor JS. */
@media (orientation:landscape) and (max-width:1100px){
 body.dcc-game-mobile #dcc-game{border-radius:0!important;background-position:center}
 .dcc-game:before{inset:2px;border-width:4px;border-radius:16px}
 .dcc-game-exit{top:5px;right:5px;padding:6px 8px;font-size:11px}
 .dcc-seat.left,.dcc-seat.top,.dcc-seat.right{top:2px;width:29%;max-width:29%;font-size:9px}.dcc-seat.left{left:2%}.dcc-seat.top{left:35.5%}.dcc-seat.right{right:5%}
 .dcc-seat .dcc-avatar{width:30px;height:30px;flex-basis:30px}.dcc-seat-info b{font-size:10px;max-width:72px}.dcc-seat-info small{font-size:7px}.dcc-seat .backs{max-width:76px;gap:1px}.mini-back{width:7px;height:13px;flex-basis:7px;margin:0}.dcc-count-badge{width:18px;height:18px;flex-basis:18px;font-size:9px}.dcc-seat-stock{gap:3px}
 .dcc-seat.bottom{left:4px;bottom:3px}.dcc-seat.bottom .dcc-seat-info{display:none}.dcc-seat.bottom .dcc-avatar{width:24px;height:24px;flex-basis:24px}
 .dcc-board{left:1.5%;right:1.5%;top:9%;bottom:25%}
 .dcc-chain-piece>.dcc-half{padding:9%;column-gap:3%;row-gap:3%}.dcc-chain-piece .dcc-dot{width:clamp(4px,1vw,7px);height:clamp(4px,1vw,7px)}
 .dcc-hand:not(.dcc-finish-hand){left:50%;right:auto;bottom:3px;transform:translateX(-50%);width:96vw;max-width:96vw;display:flex;flex-wrap:nowrap;justify-content:center;gap:2px}
 .dcc-domino.hand{width:clamp(42px,calc((94vw - 24px)/10),72px);height:calc(clamp(42px,calc((94vw - 24px)/10),72px)*1.78);min-width:0}.dcc-domino.hand .dcc-dot{width:clamp(5px,1vw,9px);height:clamp(5px,1vw,9px)}
 .dcc-turn{bottom:23%;font-size:10px;padding:4px 8px}
 .dcc-result{top:3px;width:min(680px,calc(100vw - 55px))}.dcc-finish-pair-hands{gap:7px;padding:5px 7px}.dcc-domino.finish{width:42px;height:22px;min-width:42px}.dcc-domino.finish .dcc-dot{width:4px;height:4px}
}
@media (orientation:landscape) and (max-width:1100px) and (max-height:430px){
 .dcc-board{top:10%;bottom:27%}.dcc-turn{bottom:25%}.dcc-hand.dcc-finish-hand{bottom:2px;width:84vw;max-width:84vw}
}

/* ---------- Móvil vertical ----------
   10-8 fichas: cinco arriba + cinco abajo conservando huecos.
   7-1: una sola fila anclada a la derecha. */
@media (orientation:portrait) and (max-width:1100px){
 body.dcc-game-mobile #dcc-game{background-position:center;border-radius:0!important}
 .dcc-game:before{inset:2px;border-width:4px;border-radius:16px}
 .dcc-game-exit{top:6px;right:6px;padding:5px 7px;font-size:10px;border-radius:8px}

 .dcc-seat.left,.dcc-seat.top,.dcc-seat.right{top:8px!important;bottom:auto!important;width:30%!important;max-width:30%!important;transform:none!important;text-align:center!important}
 .dcc-seat.left{left:2%!important}.dcc-seat.top{left:35%!important}.dcc-seat.right{left:auto!important;right:3%!important}
 .dcc-seat-shell{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:'avatar info' 'stock stock'!important;gap:1px 3px!important;justify-content:center!important;align-items:center!important}
 .dcc-seat .dcc-avatar{grid-area:avatar;width:24px!important;height:24px!important;flex:0 0 24px!important;border-width:1px}
 .dcc-seat-info{grid-area:info;min-width:0!important;text-align:left!important}.dcc-seat-info b{font-size:9px!important;line-height:1.05!important;max-width:68px!important}.dcc-seat-info small{font-size:6.5px!important;line-height:1.05!important;max-width:70px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.dcc-province{display:block!important;opacity:.88!important}
 .dcc-seat-stock{grid-area:stock;justify-content:center!important;gap:2px!important;min-height:17px}.dcc-count-badge{width:17px!important;height:17px!important;flex:0 0 17px!important;font-size:8px!important}.dcc-seat .backs{display:flex!important;gap:1px!important;max-width:82px!important;overflow:hidden!important}.mini-back{width:6px!important;height:11px!important;flex:0 0 6px!important;margin:0!important;border-width:1px!important}
 .dcc-thinking{gap:1px!important}.dcc-thinking i{width:3px!important;height:3px!important}.dcc-thinking b{font-size:7px!important}.dcc-seat.bottom{display:none!important}

 .dcc-board{left:2%!important;right:2%!important;top:9.5%!important;bottom:23.5%!important;transition:bottom .22s ease}
 .dcc-game.dcc-hand-one-row-active .dcc-board{bottom:12.5%!important}.dcc-game.dcc-hand-two-rows-active .dcc-board{bottom:23.5%!important}
 .dcc-chain-piece>.dcc-half{padding:8%!important;column-gap:2%!important;row-gap:2%!important}.dcc-chain-piece .dcc-dot{width:clamp(4px,1.35vw,6px)!important;height:clamp(4px,1.35vw,6px)!important}

 .dcc-hand:not(.dcc-finish-hand){left:50%!important;right:auto!important;bottom:5px!important;transform:translateX(-50%)!important;width:96vw!important;max-width:96vw!important;justify-content:center!important;align-items:end!important;gap:2px!important}
 .dcc-hand.dcc-hand-two-rows:not(.dcc-finish-hand){display:grid!important;grid-template-columns:repeat(5,clamp(42px,10.5vw,52px))!important;width:auto!important;max-width:96vw!important;gap:2px 3px!important}
 .dcc-hand.dcc-hand-one-row:not(.dcc-finish-hand){display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end!important;padding-right:2vw!important;box-sizing:border-box!important}
 .dcc-domino.hand{width:clamp(42px,10.5vw,52px)!important;height:calc(clamp(42px,10.5vw,52px)*1.78)!important;min-width:0!important;border-radius:5px!important}
 .dcc-hand.dcc-hand-one-row .dcc-domino.hand{width:clamp(40px,calc((94vw - 12px)/7),52px)!important;height:calc(clamp(40px,calc((94vw - 12px)/7),52px)*1.78)!important}
 .dcc-domino.hand .dcc-half{padding:7%!important}.dcc-domino.hand .dcc-dot{width:clamp(5px,1.6vw,7px)!important;height:clamp(5px,1.6vw,7px)!important}
 .dcc-domino.hand.selected{transform:translateY(-7px)!important}.dcc-domino.hand.dcc-hand-flipped{transform:rotate(180deg)!important}.dcc-domino.hand.dcc-hand-flipped.selected{transform:translateY(-7px) rotate(180deg)!important}.dcc-domino.hand.dcc-hand-flipped.dcc-dragging{transform:translateY(-14px) scale(1.04) rotate(180deg)!important}

 .dcc-turn{left:50%!important;bottom:22.5%!important;transform:translateX(-50%)!important;font-size:9px!important;padding:4px 8px!important;gap:4px!important;max-width:74vw!important;overflow:hidden!important;text-overflow:ellipsis!important;transition:bottom .22s ease}
 .dcc-game.dcc-hand-one-row-active .dcc-turn{bottom:11.5%!important}.dcc-game.dcc-hand-two-rows-active .dcc-turn{bottom:22.5%!important}
 .dcc-end-target{width:30px!important;height:30px!important}.dcc-result{top:42px!important;width:calc(100vw - 24px)!important}
}

/* Sincronización visual */
.dcc-game.dcc-visual-lock .dcc-hand .dcc-domino,.dcc-game.dcc-visual-lock .dcc-end-target{pointer-events:none!important}.dcc-pass-center{left:50%!important;top:50%!important;transform:translate(-50%,-50%) scale(.92);opacity:0;transition:opacity .18s ease,transform .18s ease}.dcc-pass-center.show{opacity:1;transform:translate(-50%,-50%) scale(1)}#dcc-show-result{position:absolute;z-index:31;top:8px;left:50%;transform:translateX(-50%);font-size:11px;padding:6px 9px}

/* Flujo de turnos ordenado + fichas más cuadradas */
.dcc-chain-piece,.dcc-domino.hand,.dcc-flying-piece{border-radius:3px!important}
.dcc-game.dcc-visual-lock .dcc-hand .dcc-domino{pointer-events:none!important}


/* V1.0.41 - flying domino must remain visible above the mobile game shell */
.dcc-flying-piece{
    position:fixed!important;
    pointer-events:none!important;
    z-index:2147483647!important;
}
