/* Reference deck: shared by 十三水、牛牛、炸金花; original game rules stay server-side. */
.classic-card-art.reference-card-art{width:100%;height:100%;object-fit:fill;display:block;pointer-events:none}
.nn-card.reference-card{padding:0!important;background:#fff;isolation:isolate}
.nn-card.reference-card>b,.nn-card.reference-card>small,.nn-card.reference-card>em{display:none!important}
.nn-card.reference-card>.reference-card-art{position:absolute;inset:0}
.nn-back,.reference-back,.reference-card .card-back{background:#9e3033 url('./reference-deck/back.webp') center/100% 100%!important;border:0!important}
.nn-back::after,.nn-back>span,.reference-back>i{display:none}
.nn-card.nn-joker-art{padding:0!important}
.nn-card.nn-joker-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.nn-hand-name .nn-rank-art{width:100%;height:100%;object-fit:contain;display:block}
.nn-scene{--footer-h:clamp(40px,6cqh,64px);--own-h:11.5cqh;--stage-top:148px;--stage-bottom:calc(var(--footer-h) + var(--own-h) + 98px);--seat-text-h:13px;--seat-step:calc((100cqh - var(--stage-top) - var(--stage-bottom))/var(--nn-rows));--portrait:min(6.7dvh,13cqw,calc(var(--seat-step) - 2px));--mini-h:min(10.4cqw,calc(var(--seat-step) - var(--seat-text-h) - 2px));--mini-w:calc(var(--mini-h)*.75);--card-step:calc(var(--mini-w)*.36);display:block;max-width:600px;background:radial-gradient(ellipse at 50% 55%,#288951 0,#187947 56%,#125936 100%);contain:layout style;container-type:size}
.nn-scene>header,.nn-scene>section,.nn-scene>footer,.nn-scene>div{grid-column:auto;grid-row:auto}
.nn-scene::before{opacity:.15;background:repeating-linear-gradient(45deg,#7edb9833 0 1px,transparent 1px 3px),repeating-linear-gradient(-45deg,#022a1c44 0 1px,transparent 1px 3px)}
.nn-scene::after{content:'';position:absolute;z-index:-1;left:-12%;top:-2%;width:124%;height:25%;border-radius:0 0 50% 50%;background:linear-gradient(#29101e,#783241 39%,#361e30 48%,#111b2f 50%,#171e31 92%,#b79a39 94%,#f3df69 96%,#477e48 98%);box-shadow:0 5px 12px #123f3044;pointer-events:none;transform:scaleY(-1)}
.nn-scene .nn-header{position:absolute;z-index:5;top:max(2px,env(safe-area-inset-top));left:16%;width:68%;height:37px;min-height:0;padding:0;background:none;border:0;gap:0;justify-content:center}
.nn-scene .nn-header>div{flex:1;text-align:center;display:grid;gap:0;min-width:0}
.nn-scene .nn-header b{font-size:11px;color:#ffe2a0;font-weight:700}
.nn-scene .nn-header span{font-size:11px;color:#fff;white-space:nowrap;background:#190e1b99;border-radius:4px;padding:2px 0}
.nn-scene .nn-header>button{width:26px;height:32px;flex:none}
.nn-scene .nn-header>button[data-action="invite-room"]{display:none}
.nn-scene .nn-header svg{width:17px;height:17px}
.nn-scene .nn-header .table-sound-entry{min-width:26px;min-height:30px;padding:0;border:0;background:none;box-shadow:none}
.nn-scene .nn-header .table-sound-entry>span{display:none}
.nn-scene .nn-top-controls{position:absolute;z-index:5;left:32%;right:32%;top:43px;display:grid;justify-items:center;gap:4px}
.nn-top-controls button{min-height:26px;border:1px solid #eed88c44;background:#142733dd;color:#ffe393;border-radius:10px;padding:3px 9px;font-size:11px;font-weight:700;white-space:nowrap;display:flex;align-items:center;gap:3px}
.nn-top-controls .nn-auto{background:transparent;border-color:transparent;padding:0;min-height:24px;font-size:11px;color:#ffe393}
.nn-top-controls .nn-auto svg{width:15px;height:15px}
.nn-top-controls .nn-auto[aria-pressed=true]{color:#ffdc48}
.nn-scene .nn-rule-bar{position:absolute;z-index:3;top:98px;left:22%;width:56%;height:auto;min-height:0;display:grid;justify-items:center;gap:2px;padding:0;font-size:11px;color:#ffe9b5;pointer-events:none}
.nn-scene .nn-stage{position:absolute;top:var(--stage-top);bottom:var(--stage-bottom);left:1%;right:1%;margin:0;min-height:0}
.nn-scene .nn-felt-ring{display:none}
.nn-scene[data-capacity] .nn-seat{position:absolute;top:calc(var(--row)*(100% - max(var(--portrait),calc(var(--mini-h) + var(--seat-text-h))))/max(1,var(--rows) - 1));transform:none;width:47%;height:max(var(--portrait),calc(var(--mini-h) + var(--seat-text-h)));display:block;padding:0;border:0;background:none;overflow:visible;contain:layout style;text-align:left}
.nn-scene[data-capacity] .nn-seat.nn-left{left:0}
.nn-scene[data-capacity] .nn-seat.nn-right{right:0;text-align:right}
.nn-scene[data-capacity] .nn-seat .nn-portrait{position:absolute;left:0;top:0;width:var(--portrait);height:var(--portrait);max-width:none;max-height:none;box-sizing:border-box;border-radius:2px;border:1px solid #d1dfb28c;background:#102e27}
.nn-scene[data-capacity] .nn-seat.nn-right .nn-portrait{left:auto;right:0}
.nn-scene[data-capacity] .nn-seat .nn-portrait:has(.nn-multiplier){max-width:none;max-height:none}
.nn-scene .nn-portrait img,.nn-scene .nn-portrait .avatar-fallback{border-radius:1px;object-fit:cover}
.nn-scene[data-capacity] .nn-seat .nn-person{position:absolute;left:0;bottom:0;width:var(--portrait);height:auto;max-width:none;min-width:0;display:grid;gap:0;background:#061c22bc;text-align:center;border-radius:0 0 2px 2px;pointer-events:none;container-type:normal}
.nn-scene[data-capacity] .nn-seat.nn-right .nn-person{left:auto;right:0}
.nn-scene[data-capacity] .nn-person>b{display:block;font-size:11px;line-height:1.2;max-width:100%;width:100%;margin:0;padding:0 1px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#fff}
.nn-scene[data-capacity] .nn-person>strong{position:static;display:block;font:700 11px/1.15 Arial,sans-serif;color:#ffdf68;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nn-scene[data-capacity] .nn-seat .nn-seat-hand{position:absolute;left:21cqw;right:auto;top:0;transform:none;width:calc(var(--mini-w) + 4*var(--card-step));max-width:none;min-width:0;height:var(--mini-h);display:flex;align-items:center;justify-content:flex-start;gap:0;padding:0;overflow:visible}
.nn-scene[data-capacity] .nn-seat.nn-right .nn-seat-hand{right:21cqw;left:auto;justify-content:flex-end}
.nn-scene[data-capacity] .nn-seat .nn-card{width:var(--mini-w);height:var(--mini-h);min-width:0;max-width:none;max-height:none;flex:0 0 var(--mini-w);margin:0 0 0 calc(var(--card-step) - var(--mini-w));padding:0;border-radius:2px;box-shadow:0 1px 2px #0004;overflow:hidden}
.nn-scene[data-capacity] .nn-seat .nn-card:first-child{margin-left:0}
.nn-scene[data-capacity] .nn-seat .nn-card.nn-bull-group{margin-right:0}
.nn-scene[data-capacity] .nn-seat .nn-seat-state{position:absolute;left:0;right:0;bottom:-13px;text-align:center;font-size:11px;line-height:12px;color:#fff4c5;max-width:none;overflow:visible;white-space:nowrap;text-shadow:0 1px 2px #082b1c}
.nn-scene[data-capacity] .nn-seat .nn-seat-hand:has(.nn-hand-name) .nn-seat-state{bottom:0;top:0;display:flex;justify-content:center;align-items:center;gap:0;pointer-events:none}
.nn-scene .nn-seat .nn-hand-name{width:74px;height:32px;max-width:100%;display:block;position:relative;background:none;padding:0;border:0;transform:translateY(5px)}
.nn-scene .nn-seat .nn-net{position:absolute;top:calc(100% + 1px);left:0;right:0;font-size:11px;font-weight:800;line-height:12px}
.nn-scene[data-capacity] .nn-seat.nn-empty{display:flex;justify-content:center;align-items:center;width:var(--portrait);height:var(--portrait);min-height:0;max-height:none;border:1px solid #d9e8bc77;border-radius:2px;background:#09221d66;color:#d5e6bd99}
.nn-scene .nn-empty>span{display:none}
.nn-scene .nn-empty>small{font-size:11px}
.nn-scene .nn-empty:disabled{opacity:.8}
.nn-scene .nn-multiplier{top:50%;transform:translateY(-50%);left:calc(100% + 2px);font:900 clamp(13px,3.8vw,21px)/1.1 "Arial Black","PingFang SC",sans-serif;letter-spacing:-1px;color:#ffdf35;-webkit-text-stroke:.35px #8c4b00;text-shadow:0 1px #fff4ac,1px 2px 1px #603500}
.nn-scene .nn-right .nn-multiplier{left:auto;right:calc(100% + 2px)}
.nn-scene .nn-rob-choice{font-size:13px;letter-spacing:-.5px}
.nn-scene .nn-center{top:-31px;left:50%;transform:translateX(-50%);width:94%;height:26px;display:flex;align-items:center;justify-content:center;gap:7px;z-index:1;white-space:nowrap}
.nn-scene .nn-brand{opacity:.22;position:absolute;top:100px;width:100%;color:#655b26;display:block}
.nn-scene .nn-brand>span,.nn-scene .nn-brand>small{display:none}
.nn-scene .nn-brand>b{font:italic 25px/1.4 "STKaiti","KaiTi",serif;letter-spacing:3px}
.nn-scene .nn-phase{color:#ffe56d;font-size:12px;font-weight:600;text-shadow:0 1px #315c23}
.nn-scene .nn-clock{min-width:26px;width:26px;height:26px;border:2px solid #d99832;box-shadow:0 0 0 2px #f4d97a,inset 0 0 4px #9d6c24;background:linear-gradient(#fffef1,#e3ce9a);color:#744c20;font:500 16px/1 Georgia,serif}
.nn-scene .nn-center-note{color:#fff2bd;font-size:11px;text-shadow:0 1px 2px #12402d;max-width:44%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nn-scene .nn-clock:empty{display:none}
.nn-scene .nn-clock.is-waiting{width:auto;min-width:0;height:auto;flex:none;padding:0;border:0;border-radius:0;box-shadow:none;background:none;color:#ffe56d;font:inherit;font-size:11px;font-weight:600;line-height:1.35;white-space:nowrap}
.nn-scene .nn-bank{font-size:11px}
.nn-scene .nn-self{position:absolute;bottom:calc(var(--footer-h) + 20px);left:0;right:0;height:var(--own-h);padding:0;border:0;background:none}
.nn-scene .nn-self-meta{position:absolute;left:2%;top:10%;bottom:0;width:17%;min-height:0;margin:0;display:block;text-align:center}
.nn-scene .nn-self-avatar{position:absolute;top:0;left:0;width:min(100%,7cqh);height:70%;min-height:30px;margin:0;border-radius:2px}
.nn-scene .nn-self-meta>div{position:absolute;left:0;bottom:23%;width:100%;display:block;font-size:11px;background:#082b1ea8}
.nn-scene .nn-self-meta>div>b{display:block;font-size:11px;line-height:1.15;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.nn-scene .nn-self-meta>div>small{display:none}
.nn-scene .nn-self-meta>strong{position:absolute;left:0;bottom:4%;width:100%;margin:0;display:block;font-size:13px;color:#ffdf79;background:#082b1ea8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nn-scene .nn-self-meta>strong>small{display:none}
.nn-scene .nn-self-avatar .nn-multiplier{top:0;left:0;font-size:20px;transform:translateY(-115%)}
.nn-scene .nn-own-cards{position:absolute;left:0;right:0;top:0;height:11.5cqh;max-height:none;margin:0;display:block}
.nn-scene .nn-own-card{position:absolute;left:calc(28% + var(--card-index)*15% - 3.4cqh);top:0;width:min(8.5cqh,19cqw);height:11.5cqh;max-height:none;min-width:0;max-width:none;aspect-ratio:auto;margin:0!important;perspective:none}
.nn-scene .nn-own-cards.nn-grouped .nn-own-card:nth-child(-n+3){left:calc(22% + var(--card-index)*9%)}
.nn-scene .nn-own-cards.nn-grouped .nn-own-card:nth-child(4){left:56%}
.nn-scene .nn-own-cards.nn-grouped .nn-own-card:nth-child(5){left:66%}
.nn-scene[data-capacity] .nn-seat .nn-seat-hand.nn-grouped{width:calc(var(--mini-w) + 4*var(--card-step) + 4cqw)}
.nn-scene[data-capacity] .nn-seat .nn-seat-hand.nn-grouped .nn-card:nth-child(4){margin-left:calc(var(--card-step) - var(--mini-w) + 4cqw)}
.nn-scene .nn-own-card .nn-card{border-radius:4px;padding:0;box-shadow:0 1px 3px #001b2680}
.nn-scene .nn-own-card>small{font-size:11px;bottom:3px;color:#ffefac;background:#6b202680}
.nn-scene .nn-own-result{position:absolute;inset:0 0 0 22%;transform:none;max-width:none;padding:0;border:0;display:flex;align-items:center;justify-content:center;gap:0;pointer-events:none;background:none}
.nn-scene .nn-own-result .nn-hand-name{display:block;width:45%;max-width:135px;height:68%;padding:0;background:none;border:0}
.nn-scene .nn-own-result>b{position:absolute;bottom:-15px;left:0;right:0;text-align:center;font-size:17px;text-shadow:0 1px 2px #183b21}
.nn-scene .nn-actions{position:absolute;left:18%;right:4%;bottom:calc(100% + 12px);min-height:30px;display:flex;justify-content:center;gap:5px;padding:0;background:none;margin:0}
.nn-scene .nn-actions>button{font-size:14px;min-height:35px;padding:5px 9px;border-radius:7px;flex:1;max-width:150px}
.nn-scene .nn-actions>span{font-size:11px;color:#ffeb92;line-height:1.4;text-align:center}
.nn-scene .nn-actions .nn-gold{background:linear-gradient(#fff2a9,#e2b559);color:#58360d;border:1px solid #ffeab4;text-shadow:none;font-weight:800}
.nn-scene .nn-actions .nn-secondary{background:#143f33;color:#ffedc3;border:1px solid #c5bb7b}
.nn-scene .nn-wait-reason{position:absolute;left:18%;right:4%;bottom:calc(100% + 34px);margin:0;font-size:11px;color:#f6edc7;text-align:center}
.nn-scene .nn-no-hand{width:100%;font-size:12px;color:#ffedb2;text-align:center}
.nn-scene .nn-self:has(.nn-no-hand) .nn-actions{left:18%;right:18%}
.nn-scene .nn-self:has(.nn-no-hand) .nn-wait-reason{left:18%;right:18%;top:24px;bottom:auto}
.nn-scene .nn-footer{position:absolute;left:0;right:0;bottom:0;height:var(--footer-h);min-height:0;max-height:none;display:flex;align-items:center;justify-content:space-around;gap:0;padding:0 4px;background:linear-gradient(#63a875cc,#407f60);border-top:1px solid #cdd79488}
.nn-scene .nn-footer>button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:3px;color:#f2f9d7;font-size:11px;line-height:1.2;padding:4px;height:100%;max-height:100%;box-sizing:border-box;min-height:30px;border:0;background:transparent;white-space:nowrap}
.nn-scene .nn-footer svg{width:20px;height:20px;stroke-width:1.7}
.nn-scene:not(:has(.nn-self-avatar)) .nn-self-meta{width:90%;left:5%;display:flex;align-items:center;justify-content:center;gap:15px}
.nn-scene:not(:has(.nn-self-avatar)) .nn-self-meta>div{position:static;width:auto;background:none}
.nn-scene .nn-squeeze-board{width:min(42vw,210px)}
@media (orientation:landscape) and (max-height:600px){
 .nn-scene{max-width:900px;--stage-top:100px;--stage-bottom:calc(var(--footer-h) + var(--own-h) + 80px);--seat-text-h:6px;--portrait:min(28px,calc(var(--seat-step) - 1px));--mini-h:min(24px,calc(var(--seat-step) - 8px));--mini-w:calc(var(--mini-h)*.75);--card-step:calc(var(--mini-w)*.36)}
 .nn-scene .nn-stage{top:var(--stage-top);left:2%;right:2%;bottom:var(--stage-bottom)}.nn-scene .nn-seat{max-width:42%}
 .nn-scene .nn-self{left:18%;right:18%;height:var(--own-h);bottom:calc(var(--footer-h) + 18px)}.nn-scene .nn-self-meta{width:15%}
 .nn-scene .nn-own-cards{top:0;height:100%}.nn-scene .nn-footer{height:9%;max-height:none}
 .nn-scene .nn-rule-bar{top:58px}.nn-scene .nn-top-controls{top:32px;display:flex;justify-content:center}
 .nn-scene .nn-header{left:30%;width:40%}.nn-scene .nn-center{top:-30px}.nn-scene .nn-brand{top:80px}
 .nn-scene[data-capacity="23"],.nn-scene[data-capacity="21"],.nn-scene[data-capacity="19"]{--portrait:min(24px,calc(var(--seat-step) - 1px))}
 .nn-scene .nn-person>b{font-size:11px}.nn-scene .nn-person>strong{font-size:11px}
}

/* Restore 九州’s original green felt; the shared reference deck stays. */
.nn-scene{background-image:radial-gradient(ellipse at 50% 38%,var(--felt),var(--felt-edge));background-position:center;background-size:100% 100%;background-repeat:no-repeat}
.nn-scene::before{display:block;opacity:.13;background:repeating-linear-gradient(38deg,#cde5cf22 0 1px,transparent 1px 3px),repeating-linear-gradient(118deg,#001e1c44 0 1px,transparent 1px 4px)}
.nn-scene::after{display:none}
.nn-scene .nn-brand{display:none}
.nn-scene .nn-stage::after{display:none}

/* A readable face remains underneath the raster when the network is slow or fails. */
.card-art-fallback{position:absolute;inset:0;display:block;background:#fff;color:#111;overflow:hidden;border-radius:inherit;font-family:Arial,sans-serif;container-type:size;pointer-events:none}
.card-art-fallback>b{position:absolute;left:6%;top:3%;font:600 34cqh/1 Arial,sans-serif;letter-spacing:-.06em}
.card-art-fallback>small{position:absolute;left:6%;top:31%;font:500 23cqh/1 Arial,sans-serif}
.card-art-fallback>em{position:absolute;right:8%;bottom:6%;font:normal 48cqh/1 Arial,sans-serif}
.card-art-fallback.is-red{color:#c21b25}
.classic-card-art{z-index:1}
/* Idle public cards are flat. Avoid mobile WebKit's persistent 3D backface layer. */
.live-screen .playing-card.classic-card{perspective:none}
.live-screen .classic-card .card-inner{transform-style:flat}
.live-screen .classic-card .card-face{backface-visibility:visible;-webkit-backface-visibility:visible}
.live-screen .classic-card .card-back{display:none}
@keyframes live-card-reveal{0%{opacity:.4;transform:scaleX(.12) translateY(-5px)}100%{opacity:1;transform:scaleX(1) translateY(0)}}
@keyframes live-river-reveal{0%,42%{opacity:0;transform:scaleX(.08)}43%{opacity:1;transform:scaleX(.08)}78%{transform:scale(1.06)}100%{opacity:1;transform:scale(1)}}
@keyframes river-back-reveal{0%,40%{opacity:1;transform:scale(1)}65%,100%{opacity:0;transform:scaleX(.05)}}

@media (orientation:portrait) and (max-height:700px){
 .nn-scene{--stage-top:108px;--seat-text-h:7px}
 .nn-scene .nn-header{height:29px}
 .nn-scene .nn-top-controls{top:31px;left:19%;right:19%;display:flex;justify-content:center;gap:8px}
 .nn-scene .nn-top-controls button{font-size:11px;min-height:24px}
 .nn-scene .nn-rule-bar{top:61px;font-size:11px}
 .nn-scene .nn-center{top:-28px;height:24px;gap:4px}
 .nn-scene .nn-phase{font-size:11px}
 .nn-scene .nn-center-note,.nn-scene .nn-bank{font-size:11px}
 .nn-scene .nn-clock{min-width:22px;width:22px;height:22px;font-size:13px}
 .nn-scene .nn-seat .nn-net{font-size:11px;line-height:12px;top:100%}
 .nn-scene[data-capacity] .nn-person>b{font-size:11px;line-height:1}
 .nn-scene[data-capacity] .nn-person>strong{font-size:11px;line-height:1}
}
@media (orientation:portrait) and (max-width:350px){
 .nn-scene .nn-self-meta>strong{font-size:11px}
}
@media (orientation:landscape) and (max-height:600px){
 .nn-scene .nn-seat .nn-net{font-size:11px;line-height:12px;top:100%}
 .nn-scene .nn-clock{min-width:22px;width:22px;height:22px}
 .nn-scene .nn-center-note,.nn-scene .nn-bank{font-size:11px}
 .nn-scene .nn-center{height:24px}
}


/* Dense tables keep names and scores beside the portrait, with results beside the cards. */
@media (orientation:portrait), (orientation:landscape) and (max-height:600px){
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]){--seat-label-width:calc(22cqw - var(--portrait) - 3px);--seat-text-h:0px}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-person{left:calc(var(--portrait) + 2px);top:50%;bottom:auto;width:var(--seat-label-width);display:grid;gap:0;background:none;transform:translateY(-50%);text-align:left}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat.nn-right .nn-person{left:auto;right:calc(var(--portrait) + 2px);text-align:right}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-person>b{max-width:none;padding:0;line-height:1}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-person>strong{line-height:1}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-multiplier{left:50%;right:auto;top:auto;bottom:0;transform:translateX(-50%);font-size:11px;letter-spacing:-.5px}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-multiplier.nn-rob-choice{font-size:11px!important}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-seat-hand{height:100%;left:22cqw}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat.nn-right .nn-seat-hand{left:auto;right:22cqw}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-seat-state,.nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-seat-hand:has(.nn-hand-name) .nn-seat-state{display:grid;align-content:center;justify-items:center;top:0;bottom:0;left:calc(100% + 2px);right:auto;width:max(29px,calc(24cqw - 100%));line-height:11px}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-right .nn-seat-state,.nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-right .nn-seat-hand:has(.nn-hand-name) .nn-seat-state{left:auto;right:calc(100% + 2px)}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-hand-name{width:100%;height:12px;transform:none}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-net{position:static;line-height:11px}
}
@media (orientation:portrait){
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]){--portrait:min(36px,calc(var(--seat-step) - 2px),calc(22cqw - 47px));--mini-h:min(8.5cqw,calc(var(--seat-step) - 2px))}
}
@media (orientation:landscape) and (max-height:600px){
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-person{display:flex;align-items:center;gap:6px}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat.nn-right .nn-person{flex-direction:row-reverse}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-person>b{flex:0 1 auto;width:auto}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-seat-state,.nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-seat-hand:has(.nn-hand-name) .nn-seat-state{grid-auto-flow:column;align-items:center;justify-content:start;gap:2px}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-right .nn-seat-hand .nn-seat-state{justify-content:end}
 .nn-scene:is([data-capacity="17"],[data-capacity="19"],[data-capacity="21"],[data-capacity="23"]) .nn-seat .nn-hand-name{width:32px}
}

.nn-scene button[aria-disabled="true"] { opacity: .55; cursor: default; }
