/* Contain full photos in the existing frames, including tall portrait uploads. */
.seat .avatar,.win-dialog .avatar,.leaderboard-row .avatar{display:block;position:relative;overflow:hidden;isolation:isolate;box-sizing:border-box;flex:none}
.avatar.with-photo{background-image:none}
.avatar.with-photo>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:inherit}
.avatar.with-photo>img.nt-player-avatar.has-upload{object-fit:cover;border:0}
#welcomePhoto[hidden]{display:none}
.hero-stage:before,.table-stage:before{filter:blur(1.6px) saturate(.62) brightness(.78)}
/* Small gameplay cues remain visible even when decorative motion is reduced. */
.hand-panel #hand>.hand-card.playable:not(.incoming-card){animation:choose-visible-card .9s ease-in-out infinite!important;translate:0 -7px;box-shadow:0 0 18px #fff55c,0 0 28px #ffcc25}
@keyframes choose-visible-card{0%,100%{transform:translateY(-4px) rotate(calc(var(--fan) - 2deg))}35%{transform:translateY(-8px) rotate(calc(var(--fan) + 2deg))}70%{transform:translateY(-6px) rotate(calc(var(--fan) - 1deg))}}
.hand-panel #hand>.incoming-card{opacity:0!important;pointer-events:none;animation:none!important}
.table-stage .color-badge,.table-stage:has(.roster.many) .color-badge{top:46%;left:32%;width:clamp(145px,17vw,240px);transform:translateX(-50%);padding:10px 12px;border:3px solid white;border-radius:16px;font-size:clamp(12px,1.5vw,20px);font-weight:950;color:white;line-height:1.3;text-shadow:0 2px 3px #122b50;box-shadow:0 4px #152b6177,0 0 15px #fff6;animation:match-cue 1.2s ease-in-out infinite!important;z-index:8;pointer-events:none}
@keyframes match-cue{0%,100%{translate:0 0;rotate:-1deg}50%{translate:0 -3px;rotate:1deg}}
.turn-pop{white-space:nowrap;animation:turn-notice 1s ease-in-out infinite!important;max-width:220px;line-height:1.25}
.turn-pop.urgent{color:white;background:#e32238;border-color:#fff3b7;box-shadow:0 3px #8b1024,0 0 14px #ff534c}
@keyframes turn-notice{0%,100%{translate:0 0;rotate:-1deg}50%{translate:0 -2px;rotate:1deg}}
.seat.called-uno:before{display:block!important;opacity:1;z-index:0;top:-24px;margin-left:calc((var(--fire-size) + 38px)/-2);width:calc(var(--fire-size) + 38px);height:calc(var(--fire-size) + 38px);background:radial-gradient(ellipse at 50% 75%,#fff8a5 15%,#ffd21a 40%,#ff4c0b 66%,transparent 78%);animation:flame .45s alternate infinite!important;filter:drop-shadow(0 -4px 4px #ff5000)}
.seat.called-uno .avatar{outline:3px solid #ffe32a;box-shadow:0 0 0 6px #ff7020,0 -8px 20px #ff5c18!important}
.main-controls #uno{width:clamp(104px,14vw,170px);height:clamp(104px,14vw,170px);font-size:clamp(14px,1.8vw,24px);font-weight:950;line-height:1.2;padding:12px;border:5px solid #fff5b4;background:#ed3145;color:white;text-shadow:0 2px #7c122a;box-shadow:0 7px #a71832,0 0 15px #ffe02b77;opacity:1}
.main-controls #uno:disabled{opacity:.74}
.main-controls{width:clamp(104px,14vw,170px)}
.main-controls #uno:not(:disabled){animation:turn-notice 1.2s ease-in-out infinite!important}
.vote-status{font-weight:850}#challengeVoteClock{display:block;margin:10px 0;color:#9e3b13}
/* Keep long fans above the backdrop and provide a readable complete-hand view. */
.hand-panel{z-index:20;overflow:visible;max-width:calc(100vw - var(--safe-l) - var(--safe-r))}
.hand-rack{position:relative;flex:0 1 auto;width:max-content;min-width:0;max-width:calc(100% - 94px)}
.hand-panel .hand-rack>#hand{width:100%;max-width:100%;display:flex;justify-content:safe center;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#ffda3a #166bc955;touch-action:pan-x;scroll-padding-inline:35px}
.hand-rack.overflowing>#hand{justify-content:flex-start;padding-inline:35px}
.hand-rack .hand-navigation{position:absolute;z-index:25;border:2px solid #fff3ae;border-radius:12px;background:#ffd23ce8;color:#603706;box-shadow:0 3px #b67a18;font-weight:950;min-width:30px;min-height:40px;padding:3px;top:50%;transform:translateY(-50%);cursor:pointer}
.hand-rack .hand-navigation:disabled{opacity:.45;cursor:default}
.hand-rack .hand-navigation[hidden]{display:none}
#handPrevious{left:0}#handNext{right:0}
.hand-rack #handAll{top:0;right:35px;min-height:26px;font-size:10px;padding:4px 9px;transform:none}
.full-hand-dialog{width:min(960px,calc(100vw - var(--safe-l) - var(--safe-r)));max-width:calc(100vw - var(--safe-l) - var(--safe-r));max-height:calc(100dvh - var(--safe-t) - var(--safe-b));padding:14px;overflow:hidden}
.full-hand-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.full-hand-heading h2{font-size:22px;margin:0}.full-hand-dialog>p{font-size:12px;margin:8px 0;color:#153d73;font-weight:850}
.full-hand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:10px;max-height:calc(100dvh - var(--safe-t) - var(--safe-b) - 125px);overflow-y:auto;overscroll-behavior:contain;padding:18px 10px 12px;scrollbar-width:thin}
.full-hand-grid>.hand-card{width:100%;height:104px;min-height:104px;margin:0;transform:none;--fan:0deg;translate:0 0}
.full-hand-grid>.hand-card.playable{animation:choose-visible-card .9s ease-in-out infinite!important;box-shadow:0 0 14px #fff55c}
.full-hand-grid .face-symbol{font-size:36px}.full-hand-grid .corner{font-size:14px}
@media(max-height:520px) and (orientation:landscape){.hand-rack{max-width:calc(100% - 90px)}}
@media(orientation:portrait) and (max-width:760px){.hand-rack{max-width:calc(100% - 81px)}}
.seat.active:has(.speech-balloon) .turn-pop{display:block}
.seat.active[data-self=true] .speech-balloon{bottom:calc(100% + 36px)}
.seat.active:not([data-self=true]) .speech-balloon{bottom:auto;top:calc(100% + 5px)}
@media(max-height:520px) and (orientation:landscape){.turn-pop{font-size:9px;padding:4px 6px;max-width:160px}.table-stage .color-badge{top:53%;left:42%;width:145px;padding:7px 8px;font-size:11px}.table-stage:has(.roster.many) .color-badge{top:47%;left:36%;width:145px;padding:7px 8px;font-size:11px}.main-controls{width:108px}.main-controls #uno{width:108px;height:108px;font-size:16px;padding:10px}}
@media(orientation:portrait) and (max-width:760px){.table-stage .color-badge,.table-stage:has(.roster.many) .color-badge{top:51%;left:48%;width:175px}.main-controls{width:104px}.main-controls #uno{width:104px;height:104px;font-size:15px}.turn-pop{font-size:9px;max-width:150px}}
