/* Distribución de mesa: jugadores a los lados y tablero central sin deformaciones. */
body{background-color:#092a35;background-image:linear-gradient(135deg,#103e48dd,#061c29e8),url('assets/games-pattern.svg');background-size:cover,800px 600px;background-attachment:fixed}.student-game{background:linear-gradient(140deg,#10434ac7,#082d38d9);backdrop-filter:blur(2px);overflow:visible}.play-arena{display:grid;grid-template-columns:minmax(120px,165px) minmax(0,1fr) minmax(120px,165px);gap:22px;align-items:start}.arena-roster{display:contents}.player-side{display:flex;flex-direction:column;gap:18px;min-width:0;padding-top:clamp(35px,12dvh,130px);grid-row:1}.left-side{grid-column:1}.right-side{grid-column:3}.play-arena .student-stage{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:20px;margin:8px 0 0;min-width:0}.player-side .player-badge{padding:20px 10px 16px;text-align:center;min-width:0;width:100%;border:1px solid #c7b87c;border-top:5px solid var(--p);border-left:1px solid #c7b87c;box-shadow:0 8px 24px #00151d77;border-radius:18px;background:linear-gradient(145deg,#fffef0,#dfe9e1)}.player-side .player-avatar{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;margin:0 auto 12px;background:radial-gradient(circle at 30% 25%,#fff8,var(--p));color:#fff;font-size:26px;font-weight:800;border:3px solid #fff9;box-shadow:0 3px 6px #0004}.player-side .player-badge strong{font-size:clamp(13px,1.4vw,19px);white-space:normal;overflow-wrap:anywhere;line-height:1.35;margin-bottom:7px}.player-side .player-badge small{font-size:11px;line-height:1.7}.player-side .player-badge.current{outline:2px solid #e8c665;background:linear-gradient(145deg,#fff8d4,#f1df9f);box-shadow:0 0 28px #e6be5f2b}.turn-badge{display:inline-block;margin-top:12px;padding:5px 10px;background:#21694c;color:white;border-radius:20px;font-weight:700;font-size:11px}.player-badge .player-avatar{display:none}.player-side .player-badge .player-avatar{display:flex}.board-zone{width:100%;justify-content:center}.student-game .board.original-five{background:#be872d;aspect-ratio:17/22;width:min(100%,calc((100dvh - 175px)*17/22),760px);height:auto;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));padding:3px;gap:3px;border:7px solid #b48134;box-shadow:0 7px 0 #58391b,0 15px 30px #00131d88;min-width:0;max-width:none}.student-game .original-five .board-tile{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.student-game .original-five button{min-width:0;min-height:0;overflow:visible}.student-game .original-five .token{inset:auto;width:64%;aspect-ratio:1;height:auto;left:18%;top:50%;transform:translateY(-50%);border-radius:50%;font-size:clamp(12px,1.5vw,22px)}.student-game .damas-original-wrap{width:min(100%,calc((100dvh - 175px)*402/422),850px);max-width:none;margin:0 auto}.student-game .damas-source{height:auto;aspect-ratio:402/422;object-fit:contain;image-rendering:auto}.student-game .damas-original-wrap .checker-board{width:91.74%;height:90.62%;left:5.72%;top:1.42%;aspect-ratio:auto;min-width:0}.hand-zone,.casino-hand-zone,.dama-task{width:min(100%,760px);align-self:center}.student-game .hand-zone .hand,.student-game .casino-hand-zone .hand{display:flex;flex-wrap:nowrap;justify-content:center;gap:12px;overflow-x:auto;padding:4px 4px 10px}.student-game .hand-zone .hand button,.student-game .casino-hand-zone .hand button{width:clamp(56px,5.9vw,85px);max-width:85px;flex:0 0 auto;aspect-ratio:240/340}.hand-title{margin-bottom:8px}.hand-zone .step-hint{margin:8px 0;min-height:0}.hand-zone .secondary-action{min-height:38px;margin-top:5px}.hand-zone .inspect-card{margin-top:5px;min-height:38px}.hidden-hand{padding:15px}.hidden-hand p{margin:6px 0 12px}.hidden-hand .hand-lock{display:none}.casino-table-zone{width:100%}.student-game .table-cards{min-height:min(60dvh,650px);max-height:none;width:100%;gap:18px;padding:25px;border-width:11px}.student-game .table-cards button{width:clamp(85px,8vw,135px);flex-basis:clamp(85px,8vw,135px)}.casino-hand-zone .actions{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;margin-top:12px}.casino-hand-zone .actions button{min-height:46px}.casino-hand-zone .actions label{font-size:11px}.dama-task{padding:16px 20px}.dama-task .dama-guide{display:none}.dama-task .note{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.dama-task .note h3{margin:0;width:100%;font-size:17px}.dama-task input{width:110px;margin:0;font-size:21px}.dama-task button{width:auto;flex:1}.dama-task .hint{margin:0;text-align:center}.playing main{padding:10px 14px}.student-game #status{margin:10px 0 12px}.game-toolbar{padding-bottom:4px}.match-info{margin-bottom:5px}.student-game{padding:14px 20px 24px}.player-ribbon .turn-badge{display:none}.student-game .legacy-five{width:min(100%,calc(100dvh - 180px));aspect-ratio:1}.playing .student-game{min-height:calc(100dvh - 20px)}@media(max-width:1000px){.play-arena{grid-template-columns:120px minmax(0,1fr) 120px;gap:14px}.player-side .player-badge{padding:15px 7px}.player-side .player-badge strong{font-size:14px}.player-side .player-badge small{font-size:10px}.player-side .player-avatar{width:45px;height:45px;font-size:22px}.student-game .hand-zone .hand,.student-game .casino-hand-zone .hand{justify-content:flex-start;gap:9px}.casino-hand-zone .actions{grid-template-columns:1fr 1fr}.student-game{padding:12px}.student-game .table-cards{padding:18px;gap:13px}}@media(max-width:700px){body{background-size:cover,540px 405px}.student-game{padding:10px;backdrop-filter:none}.play-arena{grid-template-columns:1fr 1fr;gap:12px}.player-side{grid-row:1;padding:0;gap:8px}.left-side{grid-column:1}.right-side{grid-column:2}.play-arena .student-stage{grid-column:1/-1;grid-row:2;width:100%;margin:0;gap:18px}.player-side .player-badge{padding:8px 8px 8px 45px;text-align:left;border-top-width:1px;border-left:4px solid var(--p);border-radius:11px;position:relative;min-height:71px}.player-side .player-badge .player-avatar{position:absolute;left:6px;top:12px;width:31px;height:31px;border-width:2px;font-size:17px;margin:0}.player-side .player-badge strong{font-size:13px;margin:0 0 2px;line-height:1.25}.player-side .player-badge small{font-size:9px;line-height:1.5}.turn-badge{font-size:8px;margin-top:4px;padding:2px 6px}.student-game .board.original-five{width:100%;aspect-ratio:17/22;border-width:5px;gap:2px;padding:2px}.student-game .damas-original-wrap{width:calc(100% - 8px)}.student-game .damas-original-wrap .checker-board{height:90.62%;width:91.74%;min-width:0}.student-game .board.original-five button{aspect-ratio:auto}.student-game .hand-zone .hand button,.student-game .casino-hand-zone .hand button{width:65px;max-width:85px}.student-game .hand-zone .hand,.student-game .casino-hand-zone .hand{padding-bottom:9px;justify-content:flex-start}.student-game .table-cards{min-height:42dvh;padding:20px 12px;gap:15px;border-width:8px}.student-game .table-cards button{width:clamp(75px,23vw,105px);flex-basis:clamp(75px,23vw,105px)}.hand-zone,.casino-hand-zone,.dama-task{padding:12px}.game-toolbar h2{font-size:19px}.student-game #status{font-size:12px;padding:8px 6px;margin:8px 0 12px}.dama-task .note{font-size:13px;padding:9px;gap:8px}.dama-task input{min-height:42px;width:90px;padding:7px}.dama-task button{min-height:42px;font-size:12px}.dama-task .note h3{font-size:15px}.playing main{padding:4px}.playing .student-game{min-height:calc(100dvh - 8px)}}@media(max-height:520px) and (orientation:landscape){.play-arena{grid-template-columns:105px minmax(0,1fr) 105px;gap:12px}.player-side{grid-row:1;padding-top:20px}.left-side{grid-column:1}.right-side{grid-column:3}.play-arena .student-stage{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:14px}.student-game .board.original-five{width:min(100%,calc((100dvh - 130px)*17/22));border-width:4px;gap:1px;padding:1px}.student-game .damas-original-wrap{width:min(100%,calc((100dvh - 125px)*402/422))}.student-game .table-cards{min-height:calc(100dvh - 145px)}.student-game .hand-zone .hand button,.student-game .casino-hand-zone .hand button{width:55px}.student-game .hand-zone .hand,.student-game .casino-hand-zone .hand{display:flex;overflow:auto;justify-content:flex-start}.player-side .player-badge{padding:12px 6px;text-align:center}.player-side .player-badge .player-avatar{position:static;display:flex;margin:0 auto 8px;width:34px;height:34px}.player-side .player-badge strong{font-size:12px}.player-side .player-badge small{font-size:9px}.student-game{padding:8px 12px}.game-toolbar h2{font-size:17px}}
.student-game{background-image:url("assets/games-pattern.svg"),linear-gradient(140deg,#10434ad9,#082d38e8);background-size:800px 600px,cover;background-position:center top,center}.student-game .original-five .board-tile{image-rendering:auto}.player-side{z-index:1}
/* Cartas bajo cada jugador y centro dedicado exclusivamente al tablero. */
.play-arena{max-width:min(100%,calc((100dvh - 140px)*17/22 + 550px));margin:0 auto;grid-template-columns:minmax(190px,245px) minmax(0,1fr) minmax(190px,245px);gap:24px}.play-arena:has(.game-damas){max-width:min(100%,calc((100dvh - 140px)*402/422 + 550px))}.play-arena:has(.game-casinos){max-width:1600px;grid-template-columns:minmax(200px,250px) minmax(0,1fr) minmax(200px,250px)}.player-side{padding-top:8px}.player-side .player-badge{padding:0 10px 12px;overflow:hidden;border-top:1px solid #c7b87c;text-align:center}.player-turn-label{display:block;background:linear-gradient(#f7d778,#e0b34b);color:#1e453d;font-size:13px;font-weight:900;letter-spacing:1px;margin:0 -10px 12px;padding:9px 6px;border-bottom:1px solid #b99640}.player-turn-label.waiting-label{background:#d8e7e1;color:#526f70;border-bottom-color:#bfcec4;font-size:10px;font-weight:600;letter-spacing:.6px}.player-side .player-badge .player-avatar{width:44px;height:44px;font-size:22px;margin:0 auto 7px}.player-side .player-badge strong{font-size:16px;margin-bottom:3px}.player-side .player-badge small{font-size:10px;line-height:1.5}.seat-pocket{margin:12px -3px 0;padding-top:12px;border-top:1px solid #bfd1c7;text-align:left;min-width:0}.seat-pocket .hand-zone,.seat-pocket .casino-hand-zone,.seat-pocket .dama-task{width:100%;padding:0;background:transparent;border:0;box-shadow:none;margin:0;border-radius:0}.seat-pocket .hand-title h3{font-size:12px}.seat-pocket .hand-title span{font-size:10px}.seat-pocket .hand-zone .hand,.seat-pocket .casino-hand-zone .hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:center;gap:8px;overflow:visible;padding:3px 3px 7px;margin:0}.seat-pocket .hand-zone .hand button,.seat-pocket .casino-hand-zone .hand button{width:100%;max-width:90px;min-width:0;margin:0;aspect-ratio:240/340}.seat-pocket .hidden-hand{padding:12px 7px;font-size:12px}.seat-pocket .hidden-hand p{font-size:12px;margin:0 0 10px}.seat-pocket .hidden-hand button{font-size:12px;min-height:40px;padding:8px}.seat-pocket .step-hint{font-size:12px;line-height:1.5;margin:8px 0}.seat-pocket .inspect-card{font-size:11px;padding:7px;min-height:36px}.seat-pocket .secondary-action{font-size:11px;min-height:36px;padding:8px}.opponent-hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:3px;min-width:0}.card-back{display:flex;aspect-ratio:240/340;align-items:center;justify-content:center;background:repeating-linear-gradient(45deg,#164753 0 5px,#205e67 5px 7px);border:3px solid #d3ad5a;border-radius:7px;box-shadow:0 3px 0 #805a2c,0 5px 8px #0002;position:relative}.card-back:before{content:'';position:absolute;inset:5px;border:1px solid #ecd17b99;border-radius:3px}.card-back>span{font-size:22px;color:#ecd17b}.private-hand-note{font-size:10px;text-align:center;margin:8px 0 0;color:#5d7377}.remaining-pieces{font-size:13px;color:#4c6a61;text-align:center;margin:2px 0}.seat-pocket .casino-hand-zone .actions{display:grid;grid-template-columns:1fr;gap:7px;margin:10px 0 0}.seat-pocket .casino-hand-zone .actions label{font-size:11px}.seat-pocket .casino-hand-zone .actions input,.seat-pocket .casino-hand-zone .actions select{min-height:38px;padding:7px;font-size:12px;margin-top:4px}.seat-pocket .casino-hand-zone .actions button{font-size:12px;min-height:39px;padding:8px}.seat-pocket .dama-task .note{display:block;background:#fffdf2;font-size:13px;padding:10px}.seat-pocket .dama-task .note h3{font-size:14px;margin-bottom:8px}.seat-pocket .dama-task input{display:block;width:100%;margin:9px 0;font-size:22px;min-height:44px}.seat-pocket .dama-task button{width:100%;font-size:12px;min-height:42px}.seat-pocket .dama-task .hint{font-size:12px;line-height:1.6}.play-arena .student-stage{gap:0;margin-top:8px}.student-game .board.original-five{width:100%;max-width:none;aspect-ratio:17/22;margin:0 auto 12px}.student-game .damas-original-wrap{width:calc(100% - 8px);max-width:none}.student-game .legacy-five{width:100%}.student-game .table-cards{min-height:calc(100dvh - 205px);max-height:none}.student-game .table-cards button{width:clamp(75px,9vw,140px);flex-basis:clamp(75px,9vw,140px)}.game-toolbar h2{font-size:24px}.student-game #status{font-size:13px;padding:7px;margin:6px 0 10px}.match-info{font-size:10px}.player-side .player-badge.current{box-shadow:0 0 22px #e6be5f3b}.student-game .original-five .token{width:58%;left:21%}@media(max-width:1100px) and (min-width:701px){.play-arena,.play-arena:has(.game-casinos){grid-template-columns:minmax(165px,200px) minmax(0,1fr) minmax(165px,200px);gap:16px;max-width:100%}.player-side .player-badge{padding-left:8px;padding-right:8px}.player-turn-label{margin-left:-8px;margin-right:-8px}.seat-pocket{margin-left:0;margin-right:0}.seat-pocket .hand-zone .hand,.seat-pocket .casino-hand-zone .hand,.opponent-hand{gap:6px}.seat-pocket .hand-title h3{font-size:11px}.game-toolbar h2{font-size:21px}}@media(max-width:700px){.play-arena,.play-arena:has(.game-damas),.play-arena:has(.game-casinos){grid-template-columns:1fr 1fr;max-width:none;gap:16px 12px}.play-arena .student-stage{grid-row:1;grid-column:1/-1;margin:0;gap:0}.player-side{grid-row:2;padding:0;gap:12px}.left-side{grid-column:1}.right-side{grid-column:2}.player-side .player-badge{padding:0 7px 10px;text-align:center;border-left:1px solid #c7b87c;border-top:1px solid #c7b87c}.player-side .player-badge .player-avatar{position:static;width:34px;height:34px;font-size:18px;margin:0 auto 5px}.player-turn-label{margin:0 -7px 8px;padding:7px 4px;font-size:11px}.player-turn-label.waiting-label{font-size:9px}.player-side .player-badge strong{font-size:13px}.player-side .player-badge small{font-size:9px}.seat-pocket{margin:8px 0 0;padding-top:8px}.seat-pocket .hand-title{display:block;text-align:center;margin-bottom:5px}.seat-pocket .hand-title h3{font-size:11px;margin-bottom:2px}.seat-pocket .hand-title span{font-size:9px}.seat-pocket .hand-zone .hand,.seat-pocket .casino-hand-zone .hand,.opponent-hand{gap:6px;padding:2px}.seat-pocket .inspect-card{font-size:10px;min-height:36px}.seat-pocket .step-hint{font-size:10px}.seat-pocket .secondary-action{font-size:10px;min-height:36px}.seat-pocket .hidden-hand{padding:8px 4px}.seat-pocket .hidden-hand p{font-size:11px}.seat-pocket .hidden-hand button{padding:7px 4px;font-size:11px}.seat-pocket .casino-hand-zone .actions label{font-size:10px}.seat-pocket .casino-hand-zone .actions button{font-size:11px}.seat-pocket .casino-hand-zone .actions input,.seat-pocket .casino-hand-zone .actions select{font-size:11px;width:100%;padding:6px}.private-hand-note{font-size:9px}.card-back{border-width:2px}.card-back>span{font-size:17px}.student-game .board.original-five{width:100%;aspect-ratio:17/22}.student-game .table-cards{min-height:42dvh}.student-game #status{font-size:12px;padding:8px 6px}.game-toolbar h2{font-size:18px}.seat-pocket .dama-task .note{padding:7px;font-size:12px}.seat-pocket .dama-task button{font-size:11px;padding:7px}.seat-pocket .dama-task input{font-size:20px}.remaining-pieces{font-size:11px}}@media(max-height:520px) and (orientation:landscape){.play-arena,.play-arena:has(.game-damas),.play-arena:has(.game-casinos){grid-template-columns:160px minmax(0,1fr) 160px;max-width:100%;gap:14px}.play-arena .student-stage{grid-row:1;grid-column:2}.player-side{grid-row:1;padding-top:8px}.left-side{grid-column:1}.right-side{grid-column:3}.player-side .player-badge .player-avatar{width:31px;height:31px;font-size:16px}.player-side .player-badge strong{font-size:12px}.player-side .player-badge small{font-size:9px}.seat-pocket .hand-zone .hand,.seat-pocket .casino-hand-zone .hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible}.student-game .board.original-five{width:100%}.student-game .damas-original-wrap{width:calc(100% - 8px)}.player-turn-label{font-size:10px;padding:6px}.student-game .table-cards{min-height:calc(100dvh - 170px)}}
