/* A single geometry layer for the primary card tables. */
.polished-play{display:flex!important;flex-direction:column;gap:10px;min-width:0}
.polished-play .play-board{position:relative;flex:none;isolation:isolate;border:5px solid #75cdbd;border-radius:30px;background:radial-gradient(ellipse at 45% 35%,#319e8e,#207f76 65%,#1d726c);box-shadow:inset 0 0 0 2px #ffffff20,0 12px 32px #1f71651a;min-height:460px}
.polished-play .play-board>.card-seat,.polished-play .play-board>.hand-seat,.polished-play .play-board>.uno-seat{visibility:hidden;pointer-events:none}
.play-seats{position:absolute;inset:0;pointer-events:none;z-index:10}
.play-seat{position:absolute;display:flex;align-items:center;gap:8px;padding:8px 10px;background:#fff;border:1px solid #c7e4dd;border-radius:16px;color:#3d556b;min-width:100px;max-width:170px;box-shadow:0 5px 15px #0c514e20;pointer-events:auto}
.play-seat.north{top:10px;left:50%;transform:translateX(-50%)}.play-seat.south{bottom:10px;left:50%;transform:translateX(-50%)}.play-seat.east{right:10px;top:50%;transform:translateY(-50%)}.play-seat.west{left:10px;top:50%;transform:translateY(-50%)}
.play-avatar{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#e5f0ff;color:#3366ff;font-weight:800;font-size:17px;position:relative;isolation:isolate}
.play-seat.active .play-avatar:before{content:'';position:absolute;inset:-5px;border-radius:50%;background:conic-gradient(#ffc857 var(--turn-progress),#e4edf3 0);z-index:-2}.play-seat.active .play-avatar:after{content:'';position:absolute;inset:-2px;border-radius:50%;background:#e5f0ff;z-index:-1}
.play-seat.active{border-color:#ffc857;box-shadow:0 0 0 3px #ffc85730}.play-seat.urgent .play-avatar:before{background:conic-gradient(#ff795d var(--turn-progress),#e4edf3 0)}
.play-seat-time:empty{display:none}.polished-play .live-actions label{color:#526b8a;font-size:12px}.polished-play .live-actions select{border:1px solid #dce6f2;border-radius:10px;min-height:42px}
.play-seat-copy{min-width:0}.play-seat-copy b{display:block;font-size:12px;max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.play-seat-copy small{font-size:10px;color:#8095a6;display:block;margin-top:4px}.play-seat-badge{position:absolute;bottom:-9px;right:10px;border:2px solid white;border-radius:8px;padding:2px 5px;font-size:8px;background:#dff6eb;color:#26825f}.play-seat-badge.bot{background:#e5edff;color:#5574ba}.play-seat-time{font-size:10px;font-weight:700;color:#ab7b24;min-width:20px;font-variant-numeric:tabular-nums}
.polished-play .hand-felt.play-board{min-height:calc(210px + var(--north-meld-height,52px) + var(--side-meld-height,210px) + var(--south-meld-height,52px));padding:0}
.polished-play .table-melds{position:absolute;inset:90px 16px 90px;display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,1.4fr) minmax(0,1fr);grid-template-rows:var(--north-meld-height,52px) minmax(210px,var(--side-meld-height,210px)) var(--south-meld-height,52px);gap:15px 22px;pointer-events:none;overflow:visible}
.polished-play .meld-owner{position:static;transform:none;max-width:100%;min-width:0;pointer-events:auto;align-self:center}.polished-play .owner-1{grid-column:1/4;grid-row:1}.polished-play .owner-2{grid-column:1;grid-row:2}.polished-play .owner-3{grid-column:3;grid-row:2}.polished-play .owner-0{grid-column:1/4;grid-row:3}
.polished-play .meld-list{gap:14px;justify-content:center;flex-wrap:wrap}.polished-play .table-meld{min-width:0;min-height:64px;max-width:100%;border:1px solid #ffffff65;border-radius:10px;background:#ffffff12;padding:6px;box-shadow:0 3px 8px #07534f15;display:flex;flex:0 1 auto}.polished-play .table-meld .playing-card{width:46px;min-width:46px;flex:0 0 46px;margin-left:clamp(-34px,calc((180px - 46px) / max(1,var(--meld-count,4) - 1) - 46px),-18px);filter:none;opacity:1}.polished-play .table-meld .playing-card:first-child{margin-left:0}.polished-play .meld-owner>span{font-size:10px;color:#e1fff6;margin:0 0 8px;text-align:center}
.polished-play .hand-felt .play-seat.east,.polished-play .hand-felt .play-seat.west{top:calc(90px + var(--north-meld-height,52px) + 45px)}.polished-play .owner-2,.polished-play .owner-3{align-self:end}
.polished-play .hand-piles{position:absolute;top:calc(90px + var(--north-meld-height,52px) + 15px + max(210px,var(--side-meld-height,210px)) / 2);left:50%;transform:translate(-50%,-50%);gap:22px;padding:14px;border:1px solid #ffffff30;background:#ffffff0a;border-radius:18px;max-width:250px;z-index:4}.polished-play .hand-piles .playing-card{width:84px}.polished-play .hand-piles small{font-size:10px;white-space:nowrap}.polished-play .hand-piles button:not(.playing-card){border:1px solid #ffffff70;border-radius:9px;padding:8px;background:#e8faf2;color:#276d62;min-height:38px;font:inherit;font-size:11px}
.polished-play .live-trick{position:absolute;left:50%;top:52%;width:250px;height:230px;min-width:0;min-height:0;transform:translate(-50%,-50%)!important;scale:1!important;padding:0}.polished-play .trick-card.position-0,.polished-play .trick-card.position-2{left:50%;right:auto;transform:translateX(-50%)}.polished-play .trick-card.position-0{top:auto;bottom:0}.polished-play .trick-card.position-2{top:0;bottom:auto}.polished-play .trick-card.position-1{right:0;left:auto;top:65px}.polished-play .trick-card.position-3{left:0;right:auto;top:65px}.polished-play .live-trick .playing-card{width:80px!important}.polished-play .contract-chip{top:92px;right:18px;max-width:110px}
.polished-play .play-instruction{margin:0;text-align:center;font-size:12px;line-height:1.8;color:#5c748d;min-height:24px}
.polished-play .live-hand .playing-card{opacity:1}
.polished-play .live-hand svg>g>text{font-size:36px}.polished-play .live-hand svg>g>g>text{font-size:36px}
.polished-play .live-hand{min-height:175px;padding:22px 10px 8px!important;gap:0;overflow:auto hidden;scrollbar-width:thin;max-width:100%;justify-content:center;opacity:1!important;filter:none!important}
.polished-play .live-hand .playing-card{width:102px;flex:0 0 102px;margin-left:-58px;align-self:flex-start;box-shadow:0 4px 8px #1c42652b}.polished-play .live-hand .playing-card:first-child{margin-left:0}.polished-play .live-hand .playing-card.card-group{margin-top:4px;border-radius:7px;box-shadow:inset 0 -5px var(--group-color),0 4px 0 var(--group-color),0 4px 8px #1c42652b}
.polished-play .live-actions{position:relative;flex-wrap:wrap;min-height:58px;margin:0;padding:10px 12px max(14px,env(safe-area-inset-bottom));border:1px solid #e0e8f2;border-radius:18px;background:#fff;box-shadow:0 5px 20px #385d8710;gap:9px}.polished-play .live-actions button{min-height:44px;min-width:44px;touch-action:manipulation;font-size:12px}.polished-play .uno-center{gap:22px;max-width:230px;padding:12px}.polished-play .uno-pile .playing-card{width:88px}.polished-play .arena-bottom{bottom:82px;font-size:11px}
.uno-color-shelf{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;width:100%;padding:8px;background:#f5f8fd;border-radius:12px}.uno-color-shelf p{font-size:11px;margin:0 8px}.uno-color-shelf button{color:white!important;border:2px solid white!important;min-width:50px;box-shadow:0 2px 8px #243b5318}.uno-color-shelf button:nth-of-type(1){background:#d84749!important}.uno-color-shelf button:nth-of-type(2){background:#3366ff!important}.uno-color-shelf button:nth-of-type(3){background:#229c76!important}.uno-color-shelf button:nth-of-type(4){background:#ffd16d!important;color:#6c5019!important}
.play-flight svg{width:100%;height:100%;display:block}.play-flight{pointer-events:none!important;contain:layout style}
.polished-play .live-hand .playing-card.drag-origin{opacity:.25;transition:none}
.polished-play .hand-piles .stock-visual,.polished-play .uno-pile .stock-visual{width:84px;max-width:none;min-height:112px;padding:0;background:transparent;border:0;border-radius:8px;box-shadow:3px 3px 0 #e7f2eb,5px 5px 0 #8bb7a8;cursor:pointer}.stock-visual svg{display:block;width:100%;height:auto}.stock-visual:disabled{opacity:.8;cursor:default}
@media(max-width:700px){
 .polished-play .play-board{border-radius:23px;border-width:4px;min-height:400px}.polished-play .play-seat{gap:4px;padding:6px;min-width:68px;max-width:90px;border-radius:12px}.polished-play .play-avatar{width:26px;height:26px;font-size:12px}.polished-play .play-seat-copy b{font-size:9px;max-width:45px}.polished-play .play-seat-copy small{font-size:8px}.polished-play .play-seat-time{position:absolute;top:-10px;left:3px;border-radius:6px;background:#fff4d6;padding:2px 4px;font-size:8px}.polished-play .play-seat.north{top:8px}.polished-play .play-seat.south{bottom:8px}.polished-play .play-seat.east{right:5px}.polished-play .play-seat.west{left:5px}.play-seat-badge{font-size:7px;bottom:-9px;right:3px;padding:1px 4px}
 .polished-play .hand-felt.play-board{min-height:calc(390px + var(--north-meld-height,52px) + var(--side-meld-height,0px) + var(--south-meld-height,52px))}
 .polished-play .table-melds{inset:76px 8px 76px;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);grid-template-rows:var(--north-meld-height,52px) 190px var(--side-meld-height,0px) var(--south-meld-height,52px);gap:16px 8px}.polished-play .owner-2,.polished-play .owner-3{grid-row:3}.polished-play .owner-0{grid-row:4}.polished-play .table-meld .playing-card{width:44px;min-width:44px;flex-basis:44px;margin-left:clamp(-34px,calc((140px - 44px) / max(1,var(--meld-count,4) - 1) - 44px),-20px)}.polished-play .table-meld{min-height:60px;padding:4px}.polished-play .meld-list{gap:14px}.polished-play .hand-piles{top:calc(76px + var(--north-meld-height,52px) + 16px + 95px);gap:10px;padding:10px;max-width:185px}.polished-play .hand-piles .playing-card{width:66px}.polished-play .hand-piles small{font-size:8px}.polished-play .hand-piles button:not(.playing-card){padding:6px;font-size:9px;max-width:76px}.polished-play .hand-felt .play-seat.east,.polished-play .hand-felt .play-seat.west{top:calc(76px + var(--north-meld-height,52px) + 16px + 95px)}
 .polished-play .live-hand{min-height:153px;justify-content:flex-start;padding-top:20px!important}.polished-play .live-hand .playing-card{width:84px;flex-basis:84px;margin-left:clamp(-67px,calc((100vw - 110px) / max(1,var(--hand-count,15) - 1) - 84px),-32px)}.polished-play .play-instruction{font-size:11px;padding:0 8px}.polished-play .live-actions{padding:9px 8px max(12px,env(safe-area-inset-bottom));border-radius:14px;gap:6px}.polished-play .live-actions button{font-size:11px;padding:8px 11px}
 .polished-play .live-trick{width:180px;height:195px}.polished-play .live-trick .playing-card{width:62px!important}.polished-play .trick-card.position-1,.polished-play .trick-card.position-3{top:55px}.polished-play .contract-chip{top:70px;right:12px;font-size:9px;max-width:65px}.polished-play .contract-chip strong{font-size:23px}.polished-play .uno-center{gap:8px;padding:10px;max-width:180px}.polished-play .uno-pile .playing-card{width:64px}
 .polished-play .hand-piles .stock-visual,.polished-play .uno-pile .stock-visual{width:64px;min-height:86px}
}
@media(max-width:360px){.polished-play .live-trick{width:148px}.polished-play .play-seat{max-width:68px;gap:3px;padding:5px}.polished-play .play-seat-copy b{max-width:28px;font-size:8px}.polished-play .play-avatar{display:grid;width:22px;height:22px;font-size:10px}.polished-play .hand-piles{max-width:160px}.polished-play .hand-piles .playing-card{width:58px}}
.card-route .lab-header{position:relative!important;top:auto!important;z-index:15}.polished-play .discard-pile:not(:has(.playing-card)):after{display:none}.polished-play .discard-pile>span{font-size:10px;line-height:1.6;min-width:58px;text-align:center}
.polished-play .live-hand .playing-card.card-group{outline:2px solid var(--group-color);outline-offset:-2px;background:color-mix(in srgb,var(--group-color) 12%,white)}
.polished-play .live-hand .playing-card.group-start:not(:first-child){margin-left:-48px}
@media(max-width:700px){.polished-play .live-hand .playing-card.group-start:not(:first-child){margin-left:clamp(-57px,calc((100vw - 110px) / max(1,var(--hand-count,15) - 1) - 74px),-22px)}}
@media(max-height:550px) and (orientation:landscape){.polished-play{display:flex!important}.polished-play .play-board{min-height:400px}.polished-play .live-hand{min-height:155px}.polished-play .hand-felt.play-board{min-height:calc(210px + var(--north-meld-height,52px) + var(--side-meld-height,210px) + var(--south-meld-height,52px))}}
