:root{color-scheme:dark;--bg:#0b111b;--panel:#121d2b;--panel-2:#172536;--line:#26394d;--text:#f5f7fb;--muted:#a9b8c8;--mint:#52e0b1;--gold:#f3c96b;--red:#ff6475;--blue:#8eb7ff;--felt:#103d38;--shadow:0 24px 70px rgba(0,0,0,.28);font-family:'DM Sans','Noto Sans KR',sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:var(--bg)}body{margin:0;min-height:100vh;color:var(--text);background:radial-gradient(ellipse at 50% -20%,#203752 0,transparent 58%),var(--bg)}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.hidden{display:none!important}.muted,small{color:var(--muted)}.eyebrow{margin:0 0 8px;color:var(--mint);font:500 .73rem 'DM Mono',monospace;letter-spacing:.16em;text-transform:uppercase}.brand{font:500 .8rem 'DM Mono',monospace;letter-spacing:.11em;color:#dbe5ed}.loading{display:grid;place-content:center;min-height:100vh;text-align:center;color:var(--muted)}.spinner{width:28px;height:28px;border:2px solid var(--line);border-top-color:var(--mint);border-radius:50%;margin:0 auto 16px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;z-index:30;bottom:24px;left:50%;max-width:min(90vw,620px);padding:12px 18px;background:#27384c;border:1px solid #455c73;border-radius:12px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transform:translate(-50%,12px);transition:.2s;color:var(--text)}#toast.visible{opacity:1;transform:translate(-50%,0)}
.form-card,.notice-card{width:min(100% - 32px,480px);margin:clamp(28px,8vh,90px) auto;padding:clamp(24px,5vw,40px);background:linear-gradient(145deg,#172637,#101a27);border:1px solid #2c4054;border-radius:24px;box-shadow:var(--shadow)}.form-card h1,.notice-card h1{margin:12px 0;font-size:clamp(1.8rem,8vw,2.7rem);line-height:1.14;letter-spacing:-.045em}.form-card>p:not(.eyebrow),.notice-card>p{color:var(--muted);line-height:1.65}.form-card form{display:grid;gap:18px;margin-top:26px}.form-card label,.settings-grid label,.raise-control{display:grid;gap:8px;color:#dce6ef;font-size:.9rem;font-weight:600}.form-card input,.settings-grid input,.raise-control input,.inline-form input{width:100%;min-height:48px;padding:12px 14px;color:var(--text);background:#0b1420;border:1px solid #34485d;border-radius:12px;outline:none}.form-card input:focus,.settings-grid input:focus,.raise-control input:focus,.inline-form input:focus{border-color:var(--mint);box-shadow:0 0 0 3px #52e0b122}.form-card small{font-size:.77rem;font-weight:400}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:12px;font-weight:700;transition:transform .14s,filter .14s;user-select:none}.button:hover{filter:brightness(1.08);transform:translateY(-1px)}.button:active{transform:translateY(1px)}.button.primary{color:#062219;background:var(--mint)}.button.secondary{color:var(--text);background:#233448;border-color:#3a5068}.button.danger{color:#fff;background:#a73c50}.button.gold{color:#312406;background:var(--gold)}.button.timechip{color:#edf3ff;background:#30445f;border-color:#567397}.button.full{width:100%}.error{min-height:1.3em;margin:0;color:#ff9aa5;font-size:.87rem}.tab-row{display:flex;gap:6px;padding:5px;background:#0b1420;border-radius:14px;margin-top:24px}.tab{flex:1;padding:10px 8px;color:var(--muted);background:transparent;border:0;border-radius:10px}.tab.active{color:var(--text);background:#2a3b4f}.check-row{grid-template-columns:20px 1fr!important;align-items:center}.check-row input{width:18px;min-height:18px}.text-link{display:inline-block;margin-top:20px;color:#b9cbdb;text-decoration:underline;text-underline-offset:4px}.callout{display:grid;gap:6px;margin:16px 0;padding:14px;border-radius:12px;line-height:1.5}.callout.success{background:#173b34;border:1px solid #27725e}.code-value{font:600 .98rem 'DM Mono',monospace;color:var(--gold);letter-spacing:.12em}.avatar{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border:1px solid #43576c;border-radius:14px;background:#25394c;font-size:1.4rem}.avatar.large{width:68px;height:68px;margin:0 auto 20px;border-radius:22px;font-size:2rem}.join-card{text-align:center}.join-card form{text-align:left}.avatar-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.avatar-choice{display:grid;justify-items:center;gap:5px;padding:8px 3px;color:var(--muted);background:#0b1420;border:1px solid #283b50;border-radius:12px}.avatar-choice span{font-size:1.45rem}.avatar-choice small{font-size:.62rem}.avatar-choice.selected{color:var(--text);border-color:var(--mint);background:#1e3c3b}
.tv-setup{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);align-items:center;gap:4vw;min-height:100vh;padding:6vw 8vw;background:radial-gradient(ellipse at 75% 45%,#173943,transparent 50%)}.tv-welcome h1{margin:20px 0;font-size:clamp(3rem,7vw,7.2rem);line-height:.98;letter-spacing:-.065em}.tv-welcome>p:not(.eyebrow){max-width:670px;color:#bdcbd6;font-size:clamp(1.05rem,1.6vw,1.4rem);line-height:1.7}.feature-list{display:grid;gap:16px;margin-top:38px;color:#dce9ea;font-size:1.08rem}.pair-qr,.waiting-qr{display:grid;justify-items:center;gap:14px;padding:clamp(18px,3vw,32px);color:#18222d;background:#fff;border-radius:24px;box-shadow:0 28px 100px #0008;text-align:center}.pair-qr .qr-image{width:min(28vw,320px);height:auto;aspect-ratio:1}.pair-qr strong,.waiting-qr b{font-size:1.15rem}.pair-qr small,.waiting-qr small{color:#526174;line-height:1.5}.qr-image{display:block;max-width:100%;height:auto;background:white;border-radius:7px}.qr-fallback{max-width:250px;padding:20px;background:#f0f1f4;overflow-wrap:anywhere;font-size:.9rem}
.tv-shell{min-height:100vh;padding:22px clamp(20px,4vw,68px) 32px}.tv-header,.phone-header,.admin-header{display:flex;align-items:center;justify-content:space-between;gap:18px}.tv-header{min-height:48px}.tv-header>a:last-child,.admin-header a:not(.brand){color:#a8bac8;font-size:.87rem}.family-pill{display:inline-flex;align-items:center;padding:8px 13px;color:#d3f7e9;background:#15372f;border:1px solid #286653;border-radius:999px;font-size:.85rem;font-weight:600}.waiting-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5vw;max-width:1460px;margin:8vh auto}.waiting-main h1{margin:12px 0;font-size:clamp(2.8rem,7vw,6rem);letter-spacing:-.06em}.waiting-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}.waiting-player{display:flex;align-items:center;gap:10px;min-width:155px;padding:9px 14px;background:#162535;border:1px solid #2b4055;border-radius:15px}.presence{width:8px;height:8px;margin-left:auto;background:var(--mint);border-radius:50%;box-shadow:0 0 12px var(--mint)}.presence-note{color:var(--muted)}.waiting-qr{width:min(30vw,285px);padding:18px}.waiting-qr .qr-image{width:100%;max-width:220px}.locked-panel{display:grid;place-content:center;min-width:260px;min-height:200px;padding:24px;text-align:center;color:var(--muted);background:#172434;border:1px dashed #43556a;border-radius:18px;line-height:1.7}.locked-panel.compact{min-width:auto;min-height:60px;padding:12px}
.game-screen{display:flex;flex-direction:column;max-height:100vh;overflow:hidden}.game-meta{color:#bdcad5;font:500 .78rem 'DM Mono',monospace}.poker-table{position:relative;display:grid;place-items:center;flex:1;min-height:420px;margin:22px auto 16px;width:min(100%,1450px);max-height:calc(100vh - 180px);aspect-ratio:16/8.4;background:radial-gradient(ellipse,#236252 0,#155045 53%,#0d3430 73%,#17222b 74%,#111a24 77%,#0c121a 100%);border:12px solid #202a31;border-radius:48%/44%;box-shadow:inset 0 0 0 4px #536052,inset 0 0 60px #051c19,0 24px 90px #0008}.table-glow{position:absolute;inset:12%;border:1px solid #71c4a336;border-radius:50%;pointer-events:none}.seat-grid{position:absolute;inset:2%;display:grid;grid-template-columns:repeat(3,minmax(135px,1fr));grid-template-rows:repeat(2,minmax(105px,1fr));align-items:center;justify-items:center;gap:3%;pointer-events:none}.seat{position:relative;width:min(100%,260px);min-height:90px;padding:10px 13px;background:#101c28eF;border:1px solid #526a78;border-radius:15px;box-shadow:0 10px 24px #06120f77;pointer-events:auto}.seat:nth-child(1){grid-column:1;grid-row:1}.seat:nth-child(2){grid-column:2;grid-row:1}.seat:nth-child(3){grid-column:3;grid-row:1}.seat:nth-child(4){grid-column:3;grid-row:2}.seat:nth-child(5){grid-column:2;grid-row:2}.seat:nth-child(6){grid-column:1;grid-row:2}.seat:nth-child(n+7){display:none}.seat.active{border-color:var(--gold);box-shadow:0 0 0 2px #f3c96b44,0 10px 30px #06120f}.seat.folded,.seat.eliminated{opacity:.52}.seat-top{display:flex;align-items:center;gap:8px}.seat-top .avatar{width:34px;height:34px;font-size:1.15rem;border-radius:11px}.seat-top>div{display:grid;gap:3px;min-width:0}.seat-top strong{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem}.seat-top small,.seat-foot{font-size:.68rem;color:var(--muted)}.stack{margin-left:auto;color:var(--gold);font:500 .78rem 'DM Mono',monospace}.seat-cards{display:flex;gap:3px;margin:6px 0}.playing-card{display:grid;place-items:center;width:31px;height:43px;color:#16202a;background:#f8f8f4;border:1px solid #d4dae0;border-radius:5px;font:700 .8rem 'DM Mono',monospace}.playing-card b{align-self:end}.playing-card span{align-self:start;margin-top:-2px}.playing-card.red{color:#d73a50}.card-back{color:#f7e6c5;background:repeating-linear-gradient(45deg,#6247a4,#6247a4 4px,#372c71 4px,#372c71 8px);border-color:#a99cd8}.seat-foot{display:flex;justify-content:space-between}.turn-chip{position:absolute;top:-9px;right:9px;padding:3px 8px;color:#342704;background:var(--gold);border-radius:999px;font-size:.62rem;font-weight:800}.board-zone{z-index:1;display:grid;justify-items:center;gap:9px;text-align:center}.board-zone>p{margin:0;color:#bbd8d1;font-size:.76rem;letter-spacing:.1em;text-transform:uppercase}.board-cards{display:flex;justify-content:center;gap:7px;min-height:78px}.board-cards .playing-card{width:49px;height:69px;font-size:1rem;border-radius:8px}.board-placeholder{align-self:center;color:#9ec5b9;font-size:.8rem}.pot-pill{display:flex;align-items:center;gap:10px;padding:7px 16px;background:#0d2928;border:1px solid #5a9a83;border-radius:999px;color:#bbd5cc;font:500 .7rem 'DM Mono',monospace}.pot-pill strong{color:var(--gold);font-size:1rem}.turn-label{min-height:1em}.tv-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:54px;color:#b4c5ce;font-size:.9rem}.winner-strip{color:var(--gold)}.top-three{display:flex;gap:10px}.rank-row{display:flex;gap:7px;align-items:center;padding:7px 10px;background:#1b2b39;border-radius:9px;font-size:.75rem}.rank-row b{color:var(--gold)}
.phone-screen{min-height:100vh;padding:14px 16px max(28px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% -10%,#254153,transparent 52%),#0b111b}.phone-header{max-width:560px;margin:0 auto;padding:7px 3px 15px}.phone-header .brand{font-size:.7rem}.phone-game{display:grid;gap:15px;width:min(100%,560px);margin:0 auto}.phone-card{width:min(100% - 28px,500px);margin:5vh auto;padding:25px;background:#142130;border:1px solid #293e52;border-radius:22px}.phone-card h1{font-size:2rem;line-height:1.2}.phone-card .waiting-list{display:grid}.my-hand,.phone-table-details,.rebuy-box{padding:20px;background:#142130;border:1px solid #2c4053;border-radius:20px}.hand-title{display:flex;align-items:center;justify-content:space-between}.hand-title h1{margin:0;font-size:1.7rem}.hand-countdown{color:var(--gold);font:600 1.25rem 'DM Mono',monospace}.private-cards{display:flex;justify-content:center;gap:12px;min-height:154px;padding:16px;margin:12px 0 5px;touch-action:none;user-select:none}.private-cards .playing-card{width:clamp(92px,34vw,150px);height:clamp(125px,45vw,195px);font-size:2rem;border-radius:14px;box-shadow:0 14px 24px #0004}.private-cards .playing-card b{font-size:1.7rem}.private-cards .playing-card span{font-size:1.5rem}.private-cards:not(.revealed) .playing-card{color:#d5cbed;background:repeating-linear-gradient(45deg,#57429b,#57429b 6px,#322c6b 6px,#322c6b 12px);border:4px solid #c3b7dd}.privacy-note{text-align:center;color:#9eacbc;font-size:.76rem}.status-line{margin:14px 0 0;color:var(--mint);font-weight:600}.action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.action-grid .button{min-height:50px}.raise-control{grid-column:1/-1;grid-template-columns:1fr 1fr auto;align-items:center;padding:12px;background:#142130;border:1px solid #2c4053;border-radius:14px}.raise-control span{grid-column:1/-1}.raise-control input{min-width:0}.raise-control .button{min-width:80px}.rebuy-box{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rebuy-box p{grid-column:1/-1}.phone-table-details{color:#c7d3de}.phone-table-details summary{cursor:pointer;font-weight:700}.phone-table-details p{color:var(--muted)}.mini-player{display:flex;gap:7px;padding:8px 0;border-top:1px solid #26394b}.mini-player span{margin-left:auto;color:var(--gold)}
.admin-screen{min-height:100vh;padding:18px 20px 60px}.admin-header{max-width:1280px;margin:0 auto;padding:8px 0 18px;border-bottom:1px solid #25384b}.admin-header>div{display:flex;align-items:center;gap:18px}.admin-content{display:grid;gap:18px;max-width:1280px;margin:28px auto}.admin-title{display:flex;align-items:center;justify-content:space-between;gap:24px}.admin-title h1{margin:0;font-size:clamp(2rem,5vw,3.4rem);letter-spacing:-.05em}.admin-title .muted{margin:9px 0}.admin-qr{display:grid;justify-items:center;gap:7px;padding:10px;color:#18222d;background:white;border-radius:14px;font-size:.75rem;font-weight:700}.admin-qr .qr-image{width:125px}.admin-actions{display:flex;flex-wrap:wrap;gap:9px}.admin-card{padding:clamp(18px,3vw,28px);background:#121e2b;border:1px solid #293c50;border-radius:19px}.admin-card h2{margin:0 0 16px;font-size:1.28rem}.participant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;margin:16px 0 24px}.participant-option{display:flex;align-items:center;gap:9px;padding:10px;background:#0d1722;border:1px solid #2a3d51;border-radius:13px;cursor:pointer}.participant-option input{accent-color:var(--mint)}.participant-option span:nth-of-type(2){display:grid;gap:4px}.participant-option small{font-size:.7rem}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:13px;margin-bottom:20px}.settings-grid label{font-size:.8rem}.settings-grid input{min-height:44px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.card-heading h2{margin:0}.card-heading>span,.card-heading>b{color:var(--gold)}.active-game .card-heading{margin-bottom:18px}.admin-player-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin:20px 0}.admin-player{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:4px 9px;padding:10px;background:#0d1722;border-radius:12px}.admin-player .avatar{grid-row:span 2;width:36px;height:36px;font-size:1.15rem}.admin-player>span:nth-of-type(2){color:var(--gold);font:500 .75rem 'DM Mono',monospace}.admin-player small{grid-column:2/-1}.results-list{display:grid}.result-row{display:grid;grid-template-columns:minmax(90px,1fr) 60px minmax(100px,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #26384b;font-size:.86rem}.result-row:last-child{border:0}.result-row b{color:var(--gold)}.result-row small{font-size:.7rem}.inline-form{display:flex;flex-wrap:wrap;gap:8px}.inline-form input{flex:1 1 180px;min-height:44px}.inline-form button{flex:0 0 auto}.notice-card .button{margin-top:14px}
@media(max-width:900px){.tv-setup:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-template-columns:1fr;gap:34px;padding:8vw}.tv-welcome h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:clamp(3.4rem,12vw,6rem)}.pair-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:min(100%,360px);justify-self:center}.pair-qr .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:min(68vw,290px)}.poker-table:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:500px;aspect-ratio:auto;border-radius:36px}.game-screen:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){overflow:auto;max-height:none}.seat-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){inset:3%;grid-template-columns:repeat(2,minmax(115px,1fr));grid-template-rows:repeat(5,minmax(78px,auto));gap:7px}.seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:80px;padding:8px}.seat:nth-child(1):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:1;grid-row:1}.seat:nth-child(2):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:2;grid-row:1}.seat:nth-child(3):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:2;grid-row:2}.seat:nth-child(4):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:2;grid-row:4}.seat:nth-child(5):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:1;grid-row:4}.seat:nth-child(6):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:1;grid-row:2}.seat:nth-child(n+7):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:block}.seat:nth-child(7):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:1;grid-row:3}.seat:nth-child(8):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:2;grid-row:3}.seat:nth-child(9):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:1;grid-row:5}.board-zone:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);width:76%}.seat:nth-child(n+7):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:none}.board-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:38px;height:55px}.tv-footer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){align-items:flex-start;flex-wrap:wrap}.waiting-main:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){margin:5vh auto}.waiting-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:min(32vw,240px)}}
@media(max-width:560px){.tv-setup:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:100vh;padding:28px 22px}.tv-welcome h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:3.1rem}.feature-list:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:12px;margin-top:24px;font-size:.9rem}.pair-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:16px;border-radius:18px}.pair-qr .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:210px}.tv-shell:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:14px 12px}.tv-header:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){flex-wrap:wrap}.game-meta:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){order:4;width:100%;font-size:.66rem}.waiting-main:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-template-columns:1fr;gap:25px;margin:35px auto}.waiting-main h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:3rem}.waiting-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:100%;grid-template-columns:115px 1fr;justify-items:start;text-align:left;padding:12px}.waiting-qr .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-row:span 2;width:105px}.waiting-qr b:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.waiting-qr small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){align-self:end}.waiting-qr small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){align-self:start}.poker-table:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:480px;margin-top:14px;border:8px solid #202a31;border-radius:28px}.seat-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){inset:2%;grid-template-rows:repeat(4,minmax(79px,auto));gap:6px}.seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-width:0;width:100%;padding:7px}.seat-top:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:5px}.seat-top .avatar:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:29px;height:29px;font-size:1rem}.seat-top strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){max-width:70px;font-size:.72rem}.stack:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.65rem}.seat-foot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.58rem}.playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:25px;height:36px;font-size:.68rem}.seat-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){margin:4px 0}.board-zone:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){top:52%}.board-zone>p:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.65rem}.board-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:4px;min-height:60px}.board-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:31px;height:45px;font-size:.8rem}.pot-pill:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:5px 11px}.turn-label:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.68rem}.tv-footer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.75rem}.top-three:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){flex-wrap:wrap}.rank-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.65rem}.admin-screen:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:13px 12px 40px}.admin-header>div:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:8px}.admin-header .family-pill:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.7rem;padding:6px 9px}.admin-header a:not(.brand):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.75rem}.admin-title:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){align-items:flex-start}.admin-title .admin-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){max-width:110px;font-size:.65rem}.admin-qr .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:85px}.admin-title h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:1.9rem}.admin-title .muted:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.75rem}.admin-actions .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){flex:1 1 44%;font-size:.78rem;padding:8px}.admin-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:16px}.result-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-template-columns:1fr 42px 1.2fr;gap:6px;font-size:.75rem}.result-row small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:1/-1;text-align:right}.form-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.notice-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){margin:20px auto;padding:22px;border-radius:19px}.avatar-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:5px}.avatar-choice:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:7px 1px}.avatar-choice span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:1.25rem}.avatar-choice small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.56rem}}
@media(max-width:560px){.game-screen:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){overflow:visible}.poker-table:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:flex;flex-direction:column;justify-content:flex-start;gap:9px;min-height:0;height:auto;padding:9px;aspect-ratio:auto;border-radius:28px}.poker-table .seat-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.poker-table .seat-grid.seat-count-many:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){position:relative;inset:auto;display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:6px;padding:2px}.poker-table .seat-grid.seat-count-many:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-template-columns:repeat(3,minmax(0,1fr))}.poker-table .seat-grid .seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.poker-table .seat-grid .seat:nth-child(n):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:block;width:100%;min-width:0;min-height:78px;grid-column:auto;grid-row:auto;transform:none;padding:6px}.poker-table .seat-grid .seat:nth-child(n+7):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:block}.poker-table .seat-top .avatar:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:26px;height:26px;font-size:.9rem}.poker-table .seat-top strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){max-width:62px;font-size:.68rem}.poker-table .seat-grid.seat-count-many .seat-top strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){max-width:48px;font-size:.61rem}.poker-table .seat-grid.seat-count-many .stack:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.57rem}.poker-table .board-zone:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){position:relative;top:auto;left:auto;width:100%;margin:auto;padding:10px 2px;transform:none}}
.community-card{display:grid;perspective:500px}.board-card-empty{display:block;width:49px;height:69px;border:1px dashed #9ec5b988;border-radius:8px;background:#0d292866}.deal-card-enter{animation:deal-card-arrive .42s cubic-bezier(.2,.75,.25,1) both}.deal-card-flight{display:grid;animation:deal-card-arrive .42s cubic-bezier(.2,.75,.25,1) var(--deal-delay,0ms) both}.board-card-enter>.playing-card{animation:board-card-reveal .58s cubic-bezier(.2,.75,.25,1) both}@keyframes deal-card-arrive{from{opacity:0;transform:translate(-22px,-25px) rotate(-18deg) scale(.72)}to{opacity:1;transform:translate(0,0) rotate(0) scale(1)}}@keyframes board-card-reveal{0%{opacity:0;transform:rotateY(88deg) translateY(-14px)}100%{opacity:1;transform:rotateY(0) translateY(0)}}.shuffle-stage{display:grid;justify-items:center;gap:4px;min-width:170px;padding:3px 8px;color:#e4f1eb;font-size:.72rem}.shuffle-stage strong{color:var(--gold)}.shuffle-stage small{color:#a7c7bd;font-size:.61rem}.shuffle-deck{position:relative;width:76px;height:43px}.shuffle-deck .playing-card{position:absolute;left:22px;top:0;width:31px;height:43px;animation:shuffle-cards .75s ease-in-out infinite alternate}.shuffle-deck .playing-card:nth-child(2){animation-delay:.15s}.shuffle-deck .playing-card:nth-child(3){animation-delay:.3s}@keyframes shuffle-cards{from{transform:translateX(-10px) rotate(-13deg)}to{transform:translateX(10px) rotate(13deg)}}.deal-progress{width:min(180px,70vw);height:5px;overflow:hidden;border-radius:999px;background:#0a231f;border:1px solid #7bc9a94d}.deal-progress span{display:block;height:100%;background:linear-gradient(90deg,#64d6a1,#f4cc67);transition:width .25s ease}.card-waiting{color:#789080!important;background:linear-gradient(135deg,#dce4d9,#abb9ac)!important;border:1px dashed #829587!important;box-shadow:none!important}.private-cards.dealing .card-waiting{animation:waiting-card-pulse 1s ease-in-out infinite alternate}@keyframes waiting-card-pulse{from{opacity:.48}to{opacity:.9}}@media(max-width:900px){.board-card-empty:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:38px;height:55px}.shuffle-stage:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:3px;padding:0 2px}.shuffle-deck:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){height:38px}.shuffle-deck .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:27px;height:38px}}@media(max-width:560px){.board-card-empty:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:31px;height:45px;border-radius:6px}.board-cards .community-card .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:31px;height:45px}.shuffle-stage:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-width:0}.shuffle-stage small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.56rem}}@media(prefers-reduced-motion:reduce){.deal-card-enter,.deal-card-flight,.board-card-enter>.playing-card,.shuffle-deck .playing-card,.private-cards.dealing .card-waiting{animation:none!important}.deal-progress span{transition:none}}
.stack-settings{margin:14px 0 18px;padding:14px;background:#0d1722;border:1px solid #2a3d51;border-radius:13px}.stack-settings summary{cursor:pointer;font-weight:700}.custom-stack-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.custom-stack-list label{display:grid;gap:6px;color:#dce6ef;font-size:.78rem}.custom-stack-list input{min-height:40px;padding:9px 11px;color:var(--text);background:#0b1420;border:1px solid #34485d;border-radius:10px}
.event-list{display:grid;max-height:370px;overflow:auto}.event-row{display:grid;grid-template-columns:55px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid #26384b;font-size:.84rem}.event-row time{color:#93a5b7;font:500 .72rem 'DM Mono',monospace}.event-row:last-child{border:0}
.recovery-picker{display:grid;gap:5px;min-width:180px;color:#a9b9c9;font-size:.75rem}.recovery-picker select{min-height:40px;padding:7px 10px;color:var(--text);background:#0b1420;border:1px solid #34485d;border-radius:10px}.recovery-qr-overlay{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:18px;background:rgba(5,10,16,.82)}.recovery-qr-card{position:relative;display:grid;justify-items:center;gap:12px;width:min(100%,360px);padding:28px 24px;color:#17202a;background:#fff;border-radius:20px;text-align:center}.recovery-qr-card h2,.recovery-qr-card p{margin:0}.recovery-qr-card .qr-image{width:min(62vw,220px);height:auto}.recovery-qr-card .button{width:100%;color:#fff;background:#172b3e}.recovery-qr-close{position:absolute;top:8px;right:10px;width:38px;height:38px;border:0;border-radius:50%;color:#17202a;background:#edf2f7;font-size:1.5rem;cursor:pointer}

.game-settings-card > .settings-grid > .game-voice-setting,
.game-settings-card > .settings-grid > .game-card-deck-setting{
    grid-column:1 / -1;
}

.form-card > p.pair-error-expired{
    min-height:0;
    margin:16px 0 10px;
    padding:12px 14px;
    color:#ffe6a4;
    background:linear-gradient(135deg,#503a13,#342a18);
    border:1px solid #d6a83f;
    border-radius:14px;
    box-shadow:0 8px 22px #0003;
    font-weight:800;
    line-height:1.55;
}

.pair-code-fallback{
    margin-top:12px;
    padding:16px;
    color:#eaf1f8;
    background:linear-gradient(145deg,#1c3040,#142332);
    border:1px solid #4a6b78;
    border-radius:16px;
    box-shadow:0 12px 28px #0003;
}

.pair-code-fallback[hidden]{
    display:none;
}

.pair-code-fallback-heading{
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    align-items:start;
    gap:12px;
}

.pair-code-fallback-icon{
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    color:#ffe6a4;
    background:#58451f;
    border:1px solid #c59a3d;
    border-radius:13px;
    font-size:1.15rem;
}

.pair-code-fallback h2{
    margin:1px 0 6px;
    color:#fff1c5;
    font-size:1.03rem;
    line-height:1.35;
}

.pair-code-fallback-heading p{
    margin:0;
    color:#c5d2df;
    font-size:.85rem;
    line-height:1.55;
}

.pair-code-fallback form{
    gap:10px;
    margin-top:15px;
}

.pair-code-fallback label{
    color:#ecf3fa;
}

.pair-code-fallback input{
    font:800 1.15rem 'DM Mono',monospace;
    letter-spacing:.13em;
}

.pair-code-fallback-hint{
    margin-top:-4px;
    color:#8fe5cc;
    font-size:.84rem;
    font-weight:700;
}

.pair-code-fallback button:disabled{
    cursor:wait;
    opacity:.68;
}

.pair-code-fallback .error{
    margin-top:1px;
}

.game-settings-card > .settings-grid > .game-rule-set-row{
    display:grid;
    grid-column:1 / -1;
    grid-template-columns:minmax(0, 1fr) 48px;
    grid-template-areas:'label label' 'select help' 'hint hint';
    grid-template-rows:auto auto auto;
    align-items:center;
    gap:7px 9px;
}

.game-rule-set-row > .game-rule-set-label{
    grid-area:label;
    min-width:0;
}

.game-rule-set-row select{
    grid-area:select;
    min-height:44px;
    padding:10px 12px;
    color:var(--text);
    background:#0b1420;
    border:1px solid #34485d;
    border-radius:12px;
}

.game-rule-help{
    grid-area:help;
    width:48px;
    min-height:48px;
    padding:0;
    border-radius:50%;
    font-size:1.4rem;
}

.game-rule-set-row > small{
    grid-area:hint;
}
.private-cards{cursor:pointer;outline-offset:3px}.private-cards:focus-visible{outline:3px solid var(--gold)}

/* 가족 대기실 모임, 이모티콘 말풍선, 휴대폰 게임 조작을 위한 화면 크기 조정 */
.waiting-welcome{min-width:0}.family-gathering{position:relative;display:block;width:min(100%,720px);height:clamp(300px,48vh,470px);margin:22px 0 0;overflow:hidden;border:1px dashed #3d7667;border-radius:50%;background:radial-gradient(ellipse,#184e43 0,#12392f 44%,#10251f 73%,transparent 74%)}.waiting-family-center{position:absolute;top:50%;left:50%;display:grid;place-items:center;gap:7px;width:138px;height:138px;color:#d8f4e5;background:linear-gradient(145deg,#205f4d,#12372d);border:2px solid #4c9976;border-radius:50%;box-shadow:0 0 55px #61c49533;transform:translate(-50%,-50%)}.waiting-family-center span{font-size:2.6rem;color:#f1cc68}.waiting-family-center b{font-size:.87rem}.waiting-player.family-member{position:absolute;z-index:2;display:grid;justify-items:center;gap:5px;min-width:122px;max-width:160px;padding:8px 13px;color:#f2f6f8;background:#142535eF;border:1px solid #496078;border-radius:18px;box-shadow:0 9px 20px #0005;transform:translate(-50%,-50%)}.waiting-player.family-member .avatar{width:52px;height:52px;font-size:1.8rem}.waiting-avatar-wrap{position:relative;display:inline-grid;place-items:center}.waiting-bubble{position:absolute;z-index:5;bottom:calc(100% - 2px);left:50%;display:grid;place-items:center;min-width:40px;height:38px;padding:0 8px;color:#17202a;background:#fff;border:2px solid #f4d16c;border-radius:19px;font-size:1.45rem;box-shadow:0 4px 12px #0006;transform:translateX(-50%);animation:waiting-bubble-pop .18s ease-out both}.waiting-bubble:after{position:absolute;bottom:-7px;left:50%;width:11px;height:11px;content:"";background:#fff;border-right:2px solid #f4d16c;border-bottom:2px solid #f4d16c;transform:translateX(-50%) rotate(45deg)}@keyframes waiting-bubble-pop{from{opacity:0;transform:translateX(-50%) translateY(7px) scale(.75)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}.waiting-phone-card{max-width:560px}.waiting-self{display:flex;align-items:center;gap:15px;margin:18px 0;padding:15px;background:#0e1b29;border:1px solid #293e52;border-radius:18px}.waiting-self h1{margin:0;font-size:1.55rem}.waiting-self p{margin:5px 0 0;font-size:.85rem}.waiting-self .avatar.large{width:58px;height:58px;font-size:1.8rem}.waiting-emoji-picker{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:8px;margin:12px 0 24px}.waiting-emoji-button{min-width:44px;min-height:44px;color:#fff;background:#182b3d;border:1px solid #36516b;border-radius:13px;font-size:1.25rem;cursor:pointer}.waiting-emoji-button:active{background:#285843;transform:scale(.95)}.waiting-phone-card>h2{margin:20px 0 8px;font-size:1.05rem}.phone-waiting-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.phone-waiting-list .waiting-player{min-width:0;justify-content:flex-start;padding:9px 10px}.phone-waiting-list .waiting-avatar-wrap .avatar{width:34px;height:34px;font-size:1.1rem}.phone-waiting-list .waiting-player>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cancellation-screen{display:grid;place-items:center;min-height:100vh;text-align:center;background:radial-gradient(ellipse at center,#3a3021,#101827 70%)}.cancellation-notice{display:grid;justify-items:center;gap:14px;width:min(90vw,820px);padding:clamp(28px,6vw,68px);background:#1b2634;border:1px solid #e0b951;border-radius:28px;box-shadow:0 25px 90px #0008}.cancellation-notice h1{margin:0;color:#ffe8a7;font-size:clamp(2rem,5vw,4rem)}.cancellation-notice p{margin:0;color:#c4d0da;font-size:clamp(1rem,2vw,1.4rem)}.cancellation-notice strong{color:#ffe08c;font-size:2rem}.game-selector{display:grid;gap:7px;max-width:360px;margin:14px 0;color:#c7d3de;font-weight:650}.game-selector select{min-height:44px;padding:9px 12px;color:#f0f5f7;background:#0e1925;border:1px solid #40566a;border-radius:11px}.account-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-form label{display:grid;gap:7px;color:#c7d3de}.account-form label:first-child{grid-column:1/-1}.account-form input{min-width:0;padding:11px 12px;color:#f2f5f8;background:#0e1925;border:1px solid #34485d;border-radius:10px}.account-form .button{align-self:end;min-height:44px}@media(max-width:900px){.family-gathering:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){height:340px}.waiting-player.family-member:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-width:104px;max-width:130px;padding:7px 9px}.waiting-player.family-member .avatar:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:46px;height:46px}.waiting-family-center:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:116px;height:116px}.tv-shell.waiting-room .waiting-main:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-template-columns:minmax(0,1fr);gap:22px}.waiting-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){justify-self:center;width:min(100%,360px)}.account-form:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-template-columns:1fr}.account-form label:first-child:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:auto}}@media(max-width:560px){.family-gathering:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){height:300px;margin-top:16px;border-radius:32px}.waiting-player.family-member:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-width:84px;max-width:100px;padding:6px 5px;font-size:.68rem}.waiting-player.family-member .avatar:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:37px;height:37px;font-size:1.25rem}.waiting-player.family-member .presence:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:none}.waiting-family-center:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:90px;height:90px;gap:2px}.waiting-family-center span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:1.8rem}.waiting-family-center b:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.7rem}.waiting-player.family-member .waiting-bubble:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-width:31px;height:29px;font-size:1.1rem}.waiting-phone-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:16px}.waiting-emoji-picker:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:6px}.waiting-emoji-button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:46px}.phone-game:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:9px}.my-hand:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:14px}.private-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:112px;padding:8px;margin:7px 0 0;gap:9px}.private-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:clamp(68px,21vw,88px);height:clamp(94px,29vw,118px);font-size:1.45rem;border-radius:11px}.private-cards .playing-card b:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:1.25rem}.private-cards .playing-card span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:1.1rem}.phone-screen:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:10px 13px max(20px,env(safe-area-inset-bottom))}.action-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){position:sticky;z-index:5;bottom:max(6px,env(safe-area-inset-bottom));gap:8px;padding:8px;background:rgba(11,17,27,.96);border:1px solid #34485d;border-radius:16px;box-shadow:0 -9px 24px #0006}.action-grid .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:50px;padding:9px 8px;font-size:.85rem}.raise-control:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:9px}.phone-table-details:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:15px}.phone-table-details summary:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:34px;display:flex;align-items:center}.cancellation-notice:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:26px 18px;border-radius:20px}}
/* 카드 분배 애니메이션은 Web Animations 미지원·동작 줄이기 환경에서도 CSS로 재생합니다. */
.deal-card-flight{
    display:grid;
    opacity:0;
    animation:none!important;
}

.deal-card-flight.deal-card-web-animation{
    animation:none!important;
}

.deal-card-flight.deal-card-css-fallback{
    animation:deal-card-flight-fallback var(--deal-duration,620ms) cubic-bezier(.18,.68,.22,1) var(--deal-delay,0ms) both!important;
}

@keyframes deal-card-flight-fallback{
    0%
    {
        opacity:0;
        transform:translate(var(--deal-from-x,0),var(--deal-from-y,0)) rotate(-18deg) scale(.7);
    }
    1%
    {
        opacity:.85;
    }
    100%
    {
        opacity:1;
        transform:translate(0,0) rotate(0) scale(1);
    }
}

/* CSS 애니메이션 지연·속도는 외부 스타일시트의 클래스로 지정해 CSP를 유지합니다. */
.deal-card-flight.deal-delay-0{--deal-delay:0ms}
.deal-card-flight.deal-delay-50{--deal-delay:50ms}
.deal-card-flight.deal-delay-100{--deal-delay:100ms}
.deal-card-flight.deal-delay-150{--deal-delay:150ms}
.deal-card-flight.deal-delay-200{--deal-delay:200ms}
.deal-card-flight.deal-delay-250{--deal-delay:250ms}
.deal-card-flight.deal-delay-300{--deal-delay:300ms}
.deal-card-flight.deal-delay-350{--deal-delay:350ms}
.deal-card-flight.deal-delay-400{--deal-delay:400ms}
.deal-card-flight.deal-delay-450{--deal-delay:450ms}
.deal-card-flight.deal-delay-500{--deal-delay:500ms}
.deal-card-flight.deal-delay-550{--deal-delay:550ms}
.deal-card-flight.deal-delay-600{--deal-delay:600ms}
.deal-card-flight.deal-delay-650{--deal-delay:650ms}
.deal-card-flight.deal-delay-700{--deal-delay:700ms}
.deal-card-flight.deal-delay-750{--deal-delay:750ms}
.deal-card-flight.deal-delay-800{--deal-delay:800ms}
.deal-card-flight.deal-delay-850{--deal-delay:850ms}
.deal-card-flight.deal-delay-900{--deal-delay:900ms}
.deal-card-flight.deal-delay-950{--deal-delay:950ms}
.deal-card-flight.deal-delay-1000{--deal-delay:1000ms}
.deal-card-flight.deal-delay-1050{--deal-delay:1050ms}
.deal-card-flight.deal-delay-1100{--deal-delay:1100ms}
.deal-card-flight.deal-delay-1150{--deal-delay:1150ms}
.deal-card-flight.deal-delay-1200{--deal-delay:1200ms}
.deal-card-flight.deal-delay-1250{--deal-delay:1250ms}
.deal-card-flight.deal-delay-1300{--deal-delay:1300ms}
.deal-card-flight.deal-delay-1350{--deal-delay:1350ms}
.deal-card-flight.deal-delay-1400{--deal-delay:1400ms}
.deal-card-flight.deal-delay-1450{--deal-delay:1450ms}
.deal-card-flight.deal-delay-1500{--deal-delay:1500ms}
.deal-card-flight.deal-delay-1550{--deal-delay:1550ms}
.deal-card-flight.deal-delay-1600{--deal-delay:1600ms}
.deal-card-flight.deal-delay-1650{--deal-delay:1650ms}
.deal-card-flight.deal-delay-1700{--deal-delay:1700ms}
.deal-card-flight.deal-delay-1750{--deal-delay:1750ms}
.deal-card-flight.deal-delay-1800{--deal-delay:1800ms}
.deal-card-flight.deal-delay-1850{--deal-delay:1850ms}
.deal-card-flight.deal-delay-1900{--deal-delay:1900ms}
.deal-card-flight.deal-delay-1950{--deal-delay:1950ms}
.deal-card-flight.deal-delay-2000{--deal-delay:2000ms}
.deal-card-flight.deal-delay-2050{--deal-delay:2050ms}
.deal-card-flight.deal-delay-2100{--deal-delay:2100ms}
.deal-card-flight.deal-delay-2150{--deal-delay:2150ms}
.deal-card-flight.deal-delay-2200{--deal-delay:2200ms}
.deal-card-flight.deal-delay-2250{--deal-delay:2250ms}
.deal-card-flight.deal-delay-2300{--deal-delay:2300ms}
.deal-card-flight.deal-delay-2350{--deal-delay:2350ms}
.deal-card-flight.deal-delay-2400{--deal-delay:2400ms}
.deal-card-flight.deal-delay-2450{--deal-delay:2450ms}
.deal-card-flight.deal-delay-2500{--deal-delay:2500ms}
.deal-card-flight.deal-delay-2550{--deal-delay:2550ms}
.deal-card-flight.deal-delay-2600{--deal-delay:2600ms}
.deal-card-flight.deal-delay-2650{--deal-delay:2650ms}
.deal-card-flight.deal-delay-2700{--deal-delay:2700ms}
.deal-card-flight.deal-delay-2750{--deal-delay:2750ms}
.deal-card-flight.deal-delay-2800{--deal-delay:2800ms}
.deal-card-flight.deal-delay-2850{--deal-delay:2850ms}
.deal-card-flight.deal-delay-2900{--deal-delay:2900ms}
.deal-card-flight.deal-delay-2950{--deal-delay:2950ms}
.deal-card-flight.deal-delay-3000{--deal-delay:3000ms}
.deal-card-flight.deal-delay-3050{--deal-delay:3050ms}
.deal-card-flight.deal-delay-3100{--deal-delay:3100ms}
.deal-card-flight.deal-delay-3150{--deal-delay:3150ms}
.deal-card-flight.deal-delay-3200{--deal-delay:3200ms}
.deal-card-flight.deal-delay-3250{--deal-delay:3250ms}
.deal-card-flight.deal-delay-3300{--deal-delay:3300ms}
.deal-card-flight.deal-delay-3350{--deal-delay:3350ms}
.deal-card-flight.deal-delay-3400{--deal-delay:3400ms}
.deal-card-flight.deal-delay-3450{--deal-delay:3450ms}
.deal-card-flight.deal-delay-3500{--deal-delay:3500ms}
.deal-card-flight.deal-delay-3550{--deal-delay:3550ms}
.deal-card-flight.deal-delay-3600{--deal-delay:3600ms}
.deal-card-flight.deal-delay-3650{--deal-delay:3650ms}
.deal-card-flight.deal-delay-3700{--deal-delay:3700ms}
.deal-card-flight.deal-delay-3750{--deal-delay:3750ms}
.deal-card-flight.deal-delay-3800{--deal-delay:3800ms}
.deal-card-flight.deal-delay-3850{--deal-delay:3850ms}
.deal-card-flight.deal-delay-3900{--deal-delay:3900ms}
.deal-card-flight.deal-delay-3950{--deal-delay:3950ms}
.deal-card-flight.deal-delay-4000{--deal-delay:4000ms}
.deal-card-flight.deal-delay-4050{--deal-delay:4050ms}
.deal-card-flight.deal-delay-4100{--deal-delay:4100ms}
.deal-card-flight.deal-delay-4150{--deal-delay:4150ms}
.deal-card-flight.deal-delay-4200{--deal-delay:4200ms}
.deal-card-flight.deal-delay-4250{--deal-delay:4250ms}
.deal-card-flight.deal-delay-4300{--deal-delay:4300ms}
.deal-card-flight.deal-delay-4350{--deal-delay:4350ms}
.deal-card-flight.deal-delay-4400{--deal-delay:4400ms}
.deal-card-flight.deal-delay-4450{--deal-delay:4450ms}
.deal-card-flight.deal-delay-4500{--deal-delay:4500ms}
.deal-card-flight.deal-delay-4550{--deal-delay:4550ms}
.deal-card-flight.deal-delay-4600{--deal-delay:4600ms}
.deal-card-flight.deal-delay-4650{--deal-delay:4650ms}
.deal-card-flight.deal-delay-4700{--deal-delay:4700ms}
.deal-card-flight.deal-delay-4750{--deal-delay:4750ms}
.deal-card-flight.deal-delay-4800{--deal-delay:4800ms}
.deal-card-flight.deal-delay-4850{--deal-delay:4850ms}
.deal-card-flight.deal-delay-4900{--deal-delay:4900ms}
.deal-card-flight.deal-delay-4950{--deal-delay:4950ms}
.deal-card-flight.deal-delay-5000{--deal-delay:5000ms}
.deal-card-flight.deal-duration-50{--deal-duration:50ms}
.deal-card-flight.deal-duration-100{--deal-duration:100ms}
.deal-card-flight.deal-duration-150{--deal-duration:150ms}
.deal-card-flight.deal-duration-200{--deal-duration:200ms}
.deal-card-flight.deal-duration-250{--deal-duration:250ms}
.deal-card-flight.deal-duration-300{--deal-duration:300ms}
.deal-card-flight.deal-duration-350{--deal-duration:350ms}
.deal-card-flight.deal-duration-400{--deal-duration:400ms}
.deal-card-flight.deal-duration-450{--deal-duration:450ms}
.deal-card-flight.deal-duration-500{--deal-duration:500ms}
.deal-card-flight.deal-duration-550{--deal-duration:550ms}
.deal-card-flight.deal-duration-600{--deal-duration:600ms}
.deal-card-flight.deal-duration-650{--deal-duration:650ms}
.deal-card-flight.deal-flight-from-left.deal-progress-0{--deal-from-x:25.00vw;--deal-from-y:-9.00vh;--deal-from-opacity:0.350;--deal-from-rotate:-18.00deg;--deal-from-scale:0.700}
.deal-card-flight.deal-flight-from-right.deal-progress-0{--deal-from-x:-25.00vw;--deal-from-y:-9.00vh;--deal-from-opacity:0.350;--deal-from-rotate:-18.00deg;--deal-from-scale:0.700}
.deal-card-flight.deal-flight-from-center.deal-progress-0{--deal-from-x:0;--deal-from-y:-18.00vh;--deal-from-opacity:0.350;--deal-from-rotate:-18.00deg;--deal-from-scale:0.700}
.deal-card-flight.deal-flight-from-left.deal-progress-5{--deal-from-x:23.75vw;--deal-from-y:-8.55vh;--deal-from-opacity:0.382;--deal-from-rotate:-17.10deg;--deal-from-scale:0.715}
.deal-card-flight.deal-flight-from-right.deal-progress-5{--deal-from-x:-23.75vw;--deal-from-y:-8.55vh;--deal-from-opacity:0.382;--deal-from-rotate:-17.10deg;--deal-from-scale:0.715}
.deal-card-flight.deal-flight-from-center.deal-progress-5{--deal-from-x:0;--deal-from-y:-17.10vh;--deal-from-opacity:0.382;--deal-from-rotate:-17.10deg;--deal-from-scale:0.715}
.deal-card-flight.deal-flight-from-left.deal-progress-10{--deal-from-x:22.50vw;--deal-from-y:-8.10vh;--deal-from-opacity:0.415;--deal-from-rotate:-16.20deg;--deal-from-scale:0.730}
.deal-card-flight.deal-flight-from-right.deal-progress-10{--deal-from-x:-22.50vw;--deal-from-y:-8.10vh;--deal-from-opacity:0.415;--deal-from-rotate:-16.20deg;--deal-from-scale:0.730}
.deal-card-flight.deal-flight-from-center.deal-progress-10{--deal-from-x:0;--deal-from-y:-16.20vh;--deal-from-opacity:0.415;--deal-from-rotate:-16.20deg;--deal-from-scale:0.730}
.deal-card-flight.deal-flight-from-left.deal-progress-15{--deal-from-x:21.25vw;--deal-from-y:-7.65vh;--deal-from-opacity:0.448;--deal-from-rotate:-15.30deg;--deal-from-scale:0.745}
.deal-card-flight.deal-flight-from-right.deal-progress-15{--deal-from-x:-21.25vw;--deal-from-y:-7.65vh;--deal-from-opacity:0.448;--deal-from-rotate:-15.30deg;--deal-from-scale:0.745}
.deal-card-flight.deal-flight-from-center.deal-progress-15{--deal-from-x:0;--deal-from-y:-15.30vh;--deal-from-opacity:0.448;--deal-from-rotate:-15.30deg;--deal-from-scale:0.745}
.deal-card-flight.deal-flight-from-left.deal-progress-20{--deal-from-x:20.00vw;--deal-from-y:-7.20vh;--deal-from-opacity:0.480;--deal-from-rotate:-14.40deg;--deal-from-scale:0.760}
.deal-card-flight.deal-flight-from-right.deal-progress-20{--deal-from-x:-20.00vw;--deal-from-y:-7.20vh;--deal-from-opacity:0.480;--deal-from-rotate:-14.40deg;--deal-from-scale:0.760}
.deal-card-flight.deal-flight-from-center.deal-progress-20{--deal-from-x:0;--deal-from-y:-14.40vh;--deal-from-opacity:0.480;--deal-from-rotate:-14.40deg;--deal-from-scale:0.760}
.deal-card-flight.deal-flight-from-left.deal-progress-25{--deal-from-x:18.75vw;--deal-from-y:-6.75vh;--deal-from-opacity:0.512;--deal-from-rotate:-13.50deg;--deal-from-scale:0.775}
.deal-card-flight.deal-flight-from-right.deal-progress-25{--deal-from-x:-18.75vw;--deal-from-y:-6.75vh;--deal-from-opacity:0.512;--deal-from-rotate:-13.50deg;--deal-from-scale:0.775}
.deal-card-flight.deal-flight-from-center.deal-progress-25{--deal-from-x:0;--deal-from-y:-13.50vh;--deal-from-opacity:0.512;--deal-from-rotate:-13.50deg;--deal-from-scale:0.775}
.deal-card-flight.deal-flight-from-left.deal-progress-30{--deal-from-x:17.50vw;--deal-from-y:-6.30vh;--deal-from-opacity:0.545;--deal-from-rotate:-12.60deg;--deal-from-scale:0.790}
.deal-card-flight.deal-flight-from-right.deal-progress-30{--deal-from-x:-17.50vw;--deal-from-y:-6.30vh;--deal-from-opacity:0.545;--deal-from-rotate:-12.60deg;--deal-from-scale:0.790}
.deal-card-flight.deal-flight-from-center.deal-progress-30{--deal-from-x:0;--deal-from-y:-12.60vh;--deal-from-opacity:0.545;--deal-from-rotate:-12.60deg;--deal-from-scale:0.790}
.deal-card-flight.deal-flight-from-left.deal-progress-35{--deal-from-x:16.25vw;--deal-from-y:-5.85vh;--deal-from-opacity:0.577;--deal-from-rotate:-11.70deg;--deal-from-scale:0.805}
.deal-card-flight.deal-flight-from-right.deal-progress-35{--deal-from-x:-16.25vw;--deal-from-y:-5.85vh;--deal-from-opacity:0.577;--deal-from-rotate:-11.70deg;--deal-from-scale:0.805}
.deal-card-flight.deal-flight-from-center.deal-progress-35{--deal-from-x:0;--deal-from-y:-11.70vh;--deal-from-opacity:0.577;--deal-from-rotate:-11.70deg;--deal-from-scale:0.805}
.deal-card-flight.deal-flight-from-left.deal-progress-40{--deal-from-x:15.00vw;--deal-from-y:-5.40vh;--deal-from-opacity:0.610;--deal-from-rotate:-10.80deg;--deal-from-scale:0.820}
.deal-card-flight.deal-flight-from-right.deal-progress-40{--deal-from-x:-15.00vw;--deal-from-y:-5.40vh;--deal-from-opacity:0.610;--deal-from-rotate:-10.80deg;--deal-from-scale:0.820}
.deal-card-flight.deal-flight-from-center.deal-progress-40{--deal-from-x:0;--deal-from-y:-10.80vh;--deal-from-opacity:0.610;--deal-from-rotate:-10.80deg;--deal-from-scale:0.820}
.deal-card-flight.deal-flight-from-left.deal-progress-45{--deal-from-x:13.75vw;--deal-from-y:-4.95vh;--deal-from-opacity:0.643;--deal-from-rotate:-9.90deg;--deal-from-scale:0.835}
.deal-card-flight.deal-flight-from-right.deal-progress-45{--deal-from-x:-13.75vw;--deal-from-y:-4.95vh;--deal-from-opacity:0.643;--deal-from-rotate:-9.90deg;--deal-from-scale:0.835}
.deal-card-flight.deal-flight-from-center.deal-progress-45{--deal-from-x:0;--deal-from-y:-9.90vh;--deal-from-opacity:0.643;--deal-from-rotate:-9.90deg;--deal-from-scale:0.835}
.deal-card-flight.deal-flight-from-left.deal-progress-50{--deal-from-x:12.50vw;--deal-from-y:-4.50vh;--deal-from-opacity:0.675;--deal-from-rotate:-9.00deg;--deal-from-scale:0.850}
.deal-card-flight.deal-flight-from-right.deal-progress-50{--deal-from-x:-12.50vw;--deal-from-y:-4.50vh;--deal-from-opacity:0.675;--deal-from-rotate:-9.00deg;--deal-from-scale:0.850}
.deal-card-flight.deal-flight-from-center.deal-progress-50{--deal-from-x:0;--deal-from-y:-9.00vh;--deal-from-opacity:0.675;--deal-from-rotate:-9.00deg;--deal-from-scale:0.850}
.deal-card-flight.deal-flight-from-left.deal-progress-55{--deal-from-x:11.25vw;--deal-from-y:-4.05vh;--deal-from-opacity:0.708;--deal-from-rotate:-8.10deg;--deal-from-scale:0.865}
.deal-card-flight.deal-flight-from-right.deal-progress-55{--deal-from-x:-11.25vw;--deal-from-y:-4.05vh;--deal-from-opacity:0.708;--deal-from-rotate:-8.10deg;--deal-from-scale:0.865}
.deal-card-flight.deal-flight-from-center.deal-progress-55{--deal-from-x:0;--deal-from-y:-8.10vh;--deal-from-opacity:0.708;--deal-from-rotate:-8.10deg;--deal-from-scale:0.865}
.deal-card-flight.deal-flight-from-left.deal-progress-60{--deal-from-x:10.00vw;--deal-from-y:-3.60vh;--deal-from-opacity:0.740;--deal-from-rotate:-7.20deg;--deal-from-scale:0.880}
.deal-card-flight.deal-flight-from-right.deal-progress-60{--deal-from-x:-10.00vw;--deal-from-y:-3.60vh;--deal-from-opacity:0.740;--deal-from-rotate:-7.20deg;--deal-from-scale:0.880}
.deal-card-flight.deal-flight-from-center.deal-progress-60{--deal-from-x:0;--deal-from-y:-7.20vh;--deal-from-opacity:0.740;--deal-from-rotate:-7.20deg;--deal-from-scale:0.880}
.deal-card-flight.deal-flight-from-left.deal-progress-65{--deal-from-x:8.75vw;--deal-from-y:-3.15vh;--deal-from-opacity:0.772;--deal-from-rotate:-6.30deg;--deal-from-scale:0.895}
.deal-card-flight.deal-flight-from-right.deal-progress-65{--deal-from-x:-8.75vw;--deal-from-y:-3.15vh;--deal-from-opacity:0.772;--deal-from-rotate:-6.30deg;--deal-from-scale:0.895}
.deal-card-flight.deal-flight-from-center.deal-progress-65{--deal-from-x:0;--deal-from-y:-6.30vh;--deal-from-opacity:0.772;--deal-from-rotate:-6.30deg;--deal-from-scale:0.895}
.deal-card-flight.deal-flight-from-left.deal-progress-70{--deal-from-x:7.50vw;--deal-from-y:-2.70vh;--deal-from-opacity:0.805;--deal-from-rotate:-5.40deg;--deal-from-scale:0.910}
.deal-card-flight.deal-flight-from-right.deal-progress-70{--deal-from-x:-7.50vw;--deal-from-y:-2.70vh;--deal-from-opacity:0.805;--deal-from-rotate:-5.40deg;--deal-from-scale:0.910}
.deal-card-flight.deal-flight-from-center.deal-progress-70{--deal-from-x:0;--deal-from-y:-5.40vh;--deal-from-opacity:0.805;--deal-from-rotate:-5.40deg;--deal-from-scale:0.910}
.deal-card-flight.deal-flight-from-left.deal-progress-75{--deal-from-x:6.25vw;--deal-from-y:-2.25vh;--deal-from-opacity:0.838;--deal-from-rotate:-4.50deg;--deal-from-scale:0.925}
.deal-card-flight.deal-flight-from-right.deal-progress-75{--deal-from-x:-6.25vw;--deal-from-y:-2.25vh;--deal-from-opacity:0.838;--deal-from-rotate:-4.50deg;--deal-from-scale:0.925}
.deal-card-flight.deal-flight-from-center.deal-progress-75{--deal-from-x:0;--deal-from-y:-4.50vh;--deal-from-opacity:0.838;--deal-from-rotate:-4.50deg;--deal-from-scale:0.925}
.deal-card-flight.deal-flight-from-left.deal-progress-80{--deal-from-x:5.00vw;--deal-from-y:-1.80vh;--deal-from-opacity:0.870;--deal-from-rotate:-3.60deg;--deal-from-scale:0.940}
.deal-card-flight.deal-flight-from-right.deal-progress-80{--deal-from-x:-5.00vw;--deal-from-y:-1.80vh;--deal-from-opacity:0.870;--deal-from-rotate:-3.60deg;--deal-from-scale:0.940}
.deal-card-flight.deal-flight-from-center.deal-progress-80{--deal-from-x:0;--deal-from-y:-3.60vh;--deal-from-opacity:0.870;--deal-from-rotate:-3.60deg;--deal-from-scale:0.940}
.deal-card-flight.deal-flight-from-left.deal-progress-85{--deal-from-x:3.75vw;--deal-from-y:-1.35vh;--deal-from-opacity:0.902;--deal-from-rotate:-2.70deg;--deal-from-scale:0.955}
.deal-card-flight.deal-flight-from-right.deal-progress-85{--deal-from-x:-3.75vw;--deal-from-y:-1.35vh;--deal-from-opacity:0.902;--deal-from-rotate:-2.70deg;--deal-from-scale:0.955}
.deal-card-flight.deal-flight-from-center.deal-progress-85{--deal-from-x:0;--deal-from-y:-2.70vh;--deal-from-opacity:0.902;--deal-from-rotate:-2.70deg;--deal-from-scale:0.955}
.deal-card-flight.deal-flight-from-left.deal-progress-90{--deal-from-x:2.50vw;--deal-from-y:-0.90vh;--deal-from-opacity:0.935;--deal-from-rotate:-1.80deg;--deal-from-scale:0.970}
.deal-card-flight.deal-flight-from-right.deal-progress-90{--deal-from-x:-2.50vw;--deal-from-y:-0.90vh;--deal-from-opacity:0.935;--deal-from-rotate:-1.80deg;--deal-from-scale:0.970}
.deal-card-flight.deal-flight-from-center.deal-progress-90{--deal-from-x:0;--deal-from-y:-1.80vh;--deal-from-opacity:0.935;--deal-from-rotate:-1.80deg;--deal-from-scale:0.970}
.deal-card-flight.deal-flight-from-left.deal-progress-95{--deal-from-x:1.25vw;--deal-from-y:-0.45vh;--deal-from-opacity:0.967;--deal-from-rotate:-0.90deg;--deal-from-scale:0.985}
.deal-card-flight.deal-flight-from-right.deal-progress-95{--deal-from-x:-1.25vw;--deal-from-y:-0.45vh;--deal-from-opacity:0.967;--deal-from-rotate:-0.90deg;--deal-from-scale:0.985}
.deal-card-flight.deal-flight-from-center.deal-progress-95{--deal-from-x:0;--deal-from-y:-0.90vh;--deal-from-opacity:0.967;--deal-from-rotate:-0.90deg;--deal-from-scale:0.985}
.deal-card-flight.deal-flight-from-left.deal-progress-100{--deal-from-x:0.00vw;--deal-from-y:0.00vh;--deal-from-opacity:1.000;--deal-from-rotate:0.00deg;--deal-from-scale:1.000}
.deal-card-flight.deal-flight-from-right.deal-progress-100{--deal-from-x:0.00vw;--deal-from-y:0.00vh;--deal-from-opacity:1.000;--deal-from-rotate:0.00deg;--deal-from-scale:1.000}
.deal-card-flight.deal-flight-from-center.deal-progress-100{--deal-from-x:0;--deal-from-y:0.00vh;--deal-from-opacity:1.000;--deal-from-rotate:0.00deg;--deal-from-scale:1.000}

.phone-hand-wait{
    display:grid;
    justify-items:center;
    gap:16px;
    width:min(100%, 560px);
    margin:8vh auto;
    padding:clamp(26px, 7vw, 44px);
    text-align:center;
    background:radial-gradient(ellipse at 50% 0, #243c4c, transparent 62%), #142130;
    border:1px solid #38516a;
    border-radius:26px;
    box-shadow:var(--shadow);
}

.phone-hand-wait h1{
    margin:0;
    font-size:clamp(1.7rem, 7vw, 2.5rem);
}

.phone-hand-wait>p:not(.eyebrow){
    max-width:38ch;
    color:#c4d1dc;
    line-height:1.6;
}

.wait-avatar{
    display:grid;
    place-items:center;
    width:76px;
    height:76px;
    background:#23394a;
    border:2px solid #708b9a;
    border-radius:23px;
    font-size:2.5rem;
}

.wait-action{
    padding:8px 15px;
    color:#e6f4ed;
    background:#254338;
    border:1px solid #58aa86;
    border-radius:999px;
}

.wait-action.wait-all-in{
    color:#ffe5a5;
    background:#5b2533;
    border-color:#ee7081;
}

.wait-stack{
    display:flex;
    justify-content:space-between;
    width:min(100%, 320px);
    padding:12px 17px;
    color:#cad6df;
    background:#0c1723;
    border-radius:13px;
}

.wait-stack b{
    color:var(--gold);
    font-family:'DM Mono', monospace;
}

.phone-hand-wait>small{
    color:#9fb2c0;
}

.join-choice-actions{
    display:grid;
    gap:14px;
    margin-top:22px;
}

.join-choice-actions .button{
    min-height:50px;
}

.admin-tabs{
    position:sticky;
    top:0;
    z-index:15;
    display:flex;
    gap:8px;
    margin:8px 0 18px;
    padding:8px 0;
    overflow-x:auto;
    background:#0c1520f2;
    border-bottom:1px solid #33475a;
}

.admin-tab{
    flex:0 0 auto;
    min-height:42px;
    padding:9px 16px;
    color:#c7d5df;
    background:#152230;
    border:1px solid #3a4d60;
    border-radius:12px;
    font-weight:750;
    cursor:pointer;
}

.admin-tab.active{
    color:#172219;
    background:#9bdfc0;
    border-color:#b7f0d6;
}

.admin-tab-panel[hidden]{
    display:none !important;
}

.admin-entry-layout{
    display:grid;
    grid-template-columns:minmax(180px,240px) minmax(0,1fr);
    align-items:center;
    gap:26px;
}

.admin-entry-qr{
    display:grid;
    justify-items:center;
    gap:8px;
    width:min(100%,220px);
    margin:0;
}

.admin-entry-qr .qr-image{
    width:min(100%,180px);
}

.admin-entry-links{
    min-width:0;
}

.admin-entry-links h3{
    margin:0 0 7px;
}

.admin-link-actions,
.wallet-direction-buttons,
.wallet-reason-choices{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.family-code-badge{
    flex:0 0 auto;
    padding:8px 12px;
    color:#ffe39b;
    background:#263422;
    border:1px solid #a38a47;
    border-radius:12px;
    font:800 .95rem 'DM Mono',monospace;
}

.wallet-member-list,
.wallet-logs,
.game-history-list,
.standing-log-list,
.ranking-list{
    display:grid;
    gap:8px;
}

.wallet-member-row{
    display:grid;
    grid-template-columns:auto minmax(120px,1fr) minmax(165px,auto) minmax(135px,auto);
    align-items:center;
    gap:12px;
    width:100%;
    min-height:66px;
    padding:10px 12px;
    color:#e8eef2;
    background:#111e2a;
    border:1px solid #31475b;
    border-radius:13px;
    text-align:left;
    cursor:pointer;
}

.wallet-member-row:hover{
    border-color:#9bdfc0;
}

.wallet-member-name,
.wallet-member-row time,
.game-history-row,
.wallet-log-row{
    display:grid;
    gap:4px;
}

.wallet-member-title{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
}

.member-admin-badge{
    display:inline-grid;
    place-items:center;
    flex:0 0 auto;
    width:22px;
    height:22px;
    color:#ffdf88;
    background:#302b1d;
    border:1px solid #947c42;
    border-radius:50%;
    font-size:.78rem;
}

.wallet-member-name small,
.wallet-member-row time,
.wallet-log-row time,
.wallet-log-row small,
.game-history-row small,
.game-history-row em{
    color:#9eb0bd;
    font-size:.76rem;
    font-style:normal;
}

.wallet-member-row time{
    white-space:nowrap;
}

.wallet-member-money{
    display:grid;
    justify-items:end;
    gap:3px;
    min-width:0;
    max-width:clamp(92px,28vw,180px);
}

.wallet-member-money>*{
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
}

.wallet-member-money>b{
    color:#ffdc83;
    text-align:right;
}

.reserve-card{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin:16px 0;
    padding:16px;
    background:linear-gradient(135deg,#17312e,#122332);
    border:1px solid #3d7062;
    border-radius:14px;
}

.reserve-card>div,
.reserve-modal,
.reserve-modal label,
.reserve-log,
.reserve-log dl>div{
    min-width:0;
}

.reserve-balance{
    color:#9bdfc0;
    font-size:1.25rem;
    font-variant-numeric:tabular-nums;
    overflow-wrap:anywhere;
}

.reserve-hint{
    margin:6px 0 0;
    color:#aebdca;
    font-size:.78rem;
    line-height:1.5;
    overflow-wrap:anywhere;
}

.reserve-modal h2{
    padding-right:36px;
}

.reserve-modal label,
.reserve-logs{
    display:grid;
    gap:8px;
}

.reserve-settings-save{
    margin-top:16px;
}

.reserve-log{
    padding:12px;
    background:#101e2b;
    border:1px solid #31475b;
    border-radius:12px;
    overflow-wrap:anywhere;
}

.reserve-log-heading,
.reserve-pages{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:8px;
}

.reserve-log p{
    margin:8px 0;
    white-space:pre-wrap;
}

.reserve-log dl{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
    gap:8px 16px;
    margin:0;
    font-size:.76rem;
}

.reserve-log dt{
    color:#9eb0bd;
}

.reserve-log dd{
    margin:3px 0 0;
    font-variant-numeric:tabular-nums;
}

.reserve-pages{
    justify-content:center;
}

.reserve-pages [aria-current="page"]{
    border-color:#9bdfc0;
    color:#9bdfc0;
}

.wallet-member-game-balance,
.wallet-dialog-game-balance{
    color:#9eb0bd;
    font-size:.72rem;
    font-weight:600;
    text-align:right;
    white-space:normal;
    overflow-wrap:anywhere;
}

.wallet-modal-overlay{
    position:fixed;
    inset:0;
    z-index:40;
    display:grid;
    place-items:center;
    padding:18px;
    background:#060b12d9;
}

.wallet-modal{
    position:relative;
    display:grid;
    gap:12px;
    width:min(100%,660px);
    max-height:min(92vh,820px);
    padding:24px;
    overflow:auto;
    color:#eef2f5;
    background:#142130;
    border:1px solid #77917c;
    border-radius:20px;
    box-shadow:0 18px 70px #000c;
}

.member-action-modal{
    align-self:center;
    align-content:start;
    width:min(100%,560px);
    max-height:calc(100dvh - 20px);
    gap:15px;
    border-color:#355d57;
    background:linear-gradient(155deg,#182939 0%,#101b28 72%);
}

.member-action-title-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-right:42px;
}

.member-action-title-row h2{
    min-width:0;
    overflow-wrap:anywhere;
}

.member-action-description{
    margin:-7px 0 0;
    color:#aebdca;
    font-size:.88rem;
    line-height:1.5;
}

.member-online-pill{
    display:inline-flex;
    align-items:center;
    gap:7px;
    flex:0 0 auto;
    padding:7px 10px;
    color:#a8b5c2;
    background:#243344;
    border:1px solid #3b5065;
    border-radius:999px;
    font-size:.75rem;
    font-weight:800;
}

.member-online-pill i{
    width:8px;
    height:8px;
    background:#8a98a5;
    border-radius:50%;
}

.member-online-pill.is-online{
    color:#7ce3c3;
    background:#12362f;
    border-color:#286652;
}

.member-online-pill.is-online i{
    background:#55dfb4;
    box-shadow:0 0 12px #55dfb477;
}

.member-action-buttons{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}

.member-action-buttons .button{
    min-height:46px;
    justify-content:center;
}

.member-action-buttons .button:disabled{
    opacity:.42;
    filter:saturate(.45);
    cursor:not-allowed;
}

.member-login-key-card{
    display:grid;
    gap:13px;
    padding:17px;
    background:radial-gradient(ellipse at 90% 0%,#29594f88,transparent 58%),linear-gradient(145deg,#102b2c,#101b27 72%);
    border:1px solid #527d70;
    border-radius:17px;
    box-shadow:inset 0 1px #ffffff0a,0 12px 30px #0003;
}

.member-login-key-card.is-empty{
    gap:10px;
    background:linear-gradient(145deg,#182737,#111c29);
    border-color:#354b60;
    box-shadow:none;
}

.member-login-key-heading{
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
}

.member-login-key-icon{
    display:grid;
    place-items:center;
    flex:0 0 40px;
    width:40px;
    height:40px;
    color:#ffe08a;
    background:#dba83a24;
    border:1px solid #e4bb5a77;
    border-radius:13px;
    font-size:1.65rem;
    font-weight:900;
}

.member-login-key-heading>div{
    min-width:0;
    flex:1 1 auto;
}

.member-login-key-heading .eyebrow{
    margin:0 0 3px;
}

.member-login-key-heading h3{
    margin:0;
    color:#f4f5f4;
    font-size:1rem;
}

.member-login-key-countdown{
    flex:0 0 auto;
    padding:6px 9px;
    color:#ffe08a;
    background:#3b301d;
    border:1px solid #826b37;
    border-radius:999px;
    font-size:.72rem;
    font-weight:800;
    white-space:nowrap;
}

.member-login-key-digits{
    display:grid;
    place-items:center;
    min-height:76px;
    padding:8px;
    background:#0a1720;
    border:1px solid #315d52;
    border-radius:13px;
    box-shadow:inset 0 0 24px #56dcb410;
}

.member-login-key-digits span{
    color:#fff0bd;
    font:800 clamp(2rem,8vw,2.65rem)/1 'DM Mono',monospace;
    letter-spacing:.26em;
    padding-left:.26em;
    text-shadow:0 0 18px #ffcf5c55;
    font-variant-numeric:tabular-nums;
}

.member-login-key-progress{
    height:4px;
    overflow:hidden;
    background:#ffffff12;
    border-radius:99px;
}

.member-login-key-progress span{
    display:block;
    height:100%;
    background:linear-gradient(90deg,#56dfba,#ffd875);
    border-radius:inherit;
    transition:width .4s linear;
}

.member-login-key-description,
.member-login-key-status{
    margin:0;
    color:#b3c0cb;
    font-size:.82rem;
    line-height:1.55;
}

.member-login-key-status{
    padding:11px 12px;
    color:#dce7ec;
    background:#0d1823;
    border:1px solid #2d4053;
    border-radius:11px;
}

.member-login-key-card.is-empty .member-login-key-status{
    color:#bed1d5;
}

.wallet-modal-close{
    position:absolute;
    top:12px;
    right:14px;
    width:40px;
    height:40px;
    color:#fff;
    background:#253649;
    border:1px solid #52687a;
    border-radius:50%;
    font-size:1.5rem;
    cursor:pointer;
}

.wallet-modal h2,
.wallet-modal h3{
    margin:0;
}

.wallet-modal label,
.admin-mode-options label{
    display:grid;
    gap:6px;
    color:#cfdae2;
}

.wallet-modal input,
.wallet-modal textarea,
.admin-mode-options input{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    color:#f1f5f7;
    background:#0c1723;
    border:1px solid #40566a;
    border-radius:10px;
}

.wallet-modal textarea{
    resize:vertical;
}

.wallet-balance-now{
    margin:0;
    color:#aebcc6;
}

.wallet-balance-now strong{
    margin-left:8px;
    color:#ffdc83;
    font-size:1.15rem;
}

.wallet-balance-now .wallet-dialog-game-balance{
    display:block;
    margin:4px 0 0 0;
    text-align:left;
}

.wallet-amount-presets{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
}

.wallet-amount-presets .button{
    min-width:0;
    min-height:40px;
    padding:8px 10px;
    font-size:.86rem;
    font-weight:800;
}

.wallet-reason-panel[hidden]{
    display:none;
}

.wallet-log-row{
    grid-template-columns:minmax(130px,auto) minmax(120px,1fr) auto;
    align-items:center;
    padding:9px 10px;
    background:#0f1a26;
    border:1px solid #273b4d;
    border-radius:10px;
}

.wallet-log-row>span small{
    display:block;
    margin-top:3px;
}

.wallet-log-row>small{
    grid-column:2/-1;
}

.amount-positive{
    color:#91e4b8;
}

.amount-negative{
    color:#ff9b91;
}

.admin-mode-options{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin:18px 0;
    padding:16px;
    background:#101c28;
    border:1px solid #30465a;
    border-radius:14px;
}

.admin-mode-options[hidden]{
    display:none !important;
}

.settings-grid label[hidden]{
    display:none !important;
}

.admin-mode-options label[hidden]{
    display:none !important;
}

.admin-mode-options h3{
    grid-column:1/-1;
    margin:0;
}

.admin-mode-options .check-row{
    display:flex;
    align-items:center;
    gap:8px;
}

.admin-mode-options .check-row input{
    width:20px;
    min-height:20px;
}

.admin-mode-options small,
.standing-mode-hint{
    color:#9eb0bd;
    font-size:.78rem;
}

.admin-timechip-options > small{
    grid-column:1 / -1;
    line-height:1.45;
}

.admin-timechip-options input:disabled{
    opacity:.55;
}

.standing-mode-hint{
    margin:12px 0;
    padding:12px;
    color:#d8e9d9;
    background:#18362d;
    border:1px solid #3b7961;
    border-radius:10px;
}

.wallet-insufficient{
    opacity:.55;
}

.game-history-row{
    grid-template-columns:minmax(155px,auto) minmax(130px,auto) minmax(150px,1fr) auto;
    align-items:center;
    padding:10px 12px;
    background:#101c28;
    border:1px solid #2d4154;
    border-radius:10px;
}

.game-history-row>span{
    color:#aebdc7;
    font-size:.8rem;
}

.ranking-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.ranking-row{
    display:grid;
    grid-template-columns:32px 38px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    min-height:52px;
    padding:7px 10px;
    background:#101c28;
    border:1px solid #2d4154;
    border-radius:10px;
}

.ranking-row>b,
.ranking-row>span:last-child{
    color:#ffdc83;
}

.admin-logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    justify-self:end;
    gap:9px;
    min-width:190px;
    min-height:48px;
    margin:8px 0 0;
    padding:0 18px;
    color:#ffd5da;
    background:linear-gradient(135deg,#38212c,#211a26);
    border:1px solid #76505b;
    border-radius:14px;
    font:750 .88rem 'Noto Sans KR','Malgun Gothic','맑은 고딕',system-ui,sans-serif;
    letter-spacing:.01em;
    cursor:pointer;
    transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.admin-logout svg{
    width:19px;
    height:19px;
    color:#ff9eaa;
}

.admin-logout:hover{
    background:linear-gradient(135deg,#542b39,#30202b);
    border-color:#c97988;
    box-shadow:0 8px 22px #0005,0 0 18px #c3577140;
    transform:translateY(-1px);
}

.admin-logout:focus-visible{
    outline:3px solid #ff9eaa;
    outline-offset:3px;
}

@media(max-width:720px){
    .admin-entry-layout:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.ranking-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0,1fr);
    }

    .admin-entry-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:160px;
        margin:0 auto;
    }

    .wallet-member-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:auto minmax(90px,1fr) auto;
        gap:8px;
    }

    .wallet-member-row time:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:2/-1;
        grid-row:2;
        font-size:.68rem;
    }

    .wallet-member-money:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:3;
        grid-row:1/span 2;
        align-self:center;
    }

    .admin-mode-options:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0,1fr);
    }

    .game-history-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:1fr auto;
    }

    .game-history-row>small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1/-1;
    }

    .wallet-log-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:1fr auto;
    }

    .wallet-log-row>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1/-1;
    }

    .wallet-log-row>small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1/-1;
    }
}

@media(max-width:560px){
    .tv-table-wrap>.seat-grid.tv-seat-mobile:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .tv-table-wrap>.seat-grid.tv-seat-mobile>.seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:92px;
    }

    .join-choice-actions:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:16px;
        margin-top:24px;
    }
}


/* CSP에서 인라인 스타일 없이 가족 대기실 좌석을 원형으로 배치합니다. */
.family-gathering .family-seat-1{left:50%;top:16%}
.family-gathering .family-seat-2{left:76%;top:20%}
.family-gathering .family-seat-3{left:89%;top:43%}
.family-gathering .family-seat-4{left:85%;top:70%}
.family-gathering .family-seat-5{left:64%;top:88%}
.family-gathering .family-seat-6{left:36%;top:88%}
.family-gathering .family-seat-7{left:15%;top:70%}
.family-gathering .family-seat-8{left:11%;top:43%}
.family-gathering .family-seat-9{left:24%;top:20%}

/* 캐릭터 말풍선은 테이블 원 가장자리 밖으로도 표시합니다. */
.family-gathering{overflow:visible}

/* 딜·결과 레이어는 같은 높이 슬롯에 담아 중앙 보드 위치를 고정합니다. */
.board-deal-slot{display:grid;place-items:center;width:100%;min-height:112px}
.board-result-slot{display:grid;place-items:center;width:100%;min-height:190px}
.champion-table-reveal{display:grid;justify-items:center;gap:4px;width:100%;color:#ffe39b;text-align:center}
.champion-table-reveal>strong{font-size:clamp(.8rem,1.3vw,1.08rem);line-height:1.25}
.champion-table-reveal .champion-board-cards{align-items:center;min-height:112px}
.champion-phone-cards{display:flex;justify-content:center;gap:12px;margin:16px 0}
.champion-phone-cards .playing-card{width:clamp(76px,25vw,112px);height:clamp(104px,34vw,152px);font-size:1.7rem;border-radius:12px}
.champion-phone-cards .playing-card b{font-size:1.35em}
.champion-phone-cards .playing-card span{font-size:1.15em}
.champion-finale{display:grid;justify-items:center;gap:12px;width:min(100%,520px);margin:20px auto;padding:24px 20px 28px;text-align:center;background:linear-gradient(145deg,#1a2c3a,#101a27);border:1px solid #7c6b42;border-radius:24px;box-shadow:0 18px 54px #0007}
.champion-finale h1{margin:0;font-size:clamp(1.8rem,8vw,2.8rem);line-height:1.15;overflow-wrap:anywhere}
.champion-finale-status,.champion-countdown{margin:0;color:#f1d88d;line-height:1.5}
.champion-trophy{font-size:3rem}
.champion-finale .button{width:min(100%,380px)}
.avatar-choice{position:relative}
.avatar-choice.taken{opacity:.64;border-color:#53606c;background:#17212d;cursor:not-allowed}
.avatar-choice.taken>span,.avatar-choice.taken>small{filter:blur(1.2px)}
.avatar-taken-label{position:absolute;inset:auto 3px 4px;color:#fff;background:#111c;border-radius:6px;font-size:.58rem;line-height:1.4;pointer-events:none}
.avatar-choice-note{display:block;margin-top:8px;color:#9daebe;font-size:.75rem;line-height:1.45}
.avatar-choice.taken.identity-conflict{z-index:1;opacity:1;border:2px solid #ff6478;box-shadow:0 0 0 3px #ff647844,0 0 18px #ff647866;background:#3b202a}
.avatar-choice.taken.identity-conflict>span,.avatar-choice.taken.identity-conflict>small{filter:none}
.avatar-selection-hint{box-sizing:border-box;display:flex;align-items:center;min-height:3.4em;margin:9px 0 0;padding:8px 10px;color:#b7c6d4;background:#122232;border:1px solid #2d4357;border-radius:10px;font-size:.76rem;line-height:1.45;text-align:left}
.avatar-selection-hint.is-warning{color:#ffe1e4;background:#381d27;border-color:#ec5c70;font-weight:700;box-shadow:inset 3px 0 #ec5c70}
.cancellation-notice{box-sizing:border-box;max-width:calc(100vw - 24px)}
.cancellation-notice h1{width:100%;max-width:100%;font-size:clamp(1.45rem,6.6vw,3.8rem);line-height:1.22;overflow-wrap:anywhere;text-wrap:balance}

/* 시작 자산과 오디오 조작을 첫 화면에서 알기 쉽게 표시합니다. */
.loading-track{
    width:min(76vw,420px);
    height:12px;
    margin:18px auto 8px;
    overflow:hidden;
    background:#26394b;
    border:1px solid #496276;
    border-radius:999px;
}

.loading-track>span{
    display:block;
    width:0;
    height:100%;
    background:linear-gradient(90deg,#48c6a4,#f3c96b);
    transition:width .16s ease-out;
}

.loading-detail{
    display:block;
    max-width:min(84vw,520px);
    margin:0 auto;
    color:#899bad;
    font-size:.74rem;
    overflow-wrap:anywhere;
}

.raise-range-hint{
    display:block;
    color:#d7e3eb;
    font-size:.78rem;
}

.short-all-in-hint{
    grid-column:1/-1;
    margin:0;
    color:#f4dc9b;
    font-size:.82rem;
}

.tv-broadcast.is-showdown{
    border-color:#f4d778;
    background:linear-gradient(110deg,#70520ceF,#332b19f2 55%,#70520ceF);
}

.tv-broadcast.is-showdown>strong{
    color:#ffe99d;
}

@media(max-width:900px){
    .tv-broadcast.is-champion:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:54px;
        gap:2px;
        padding:5px 9px;
    }

    .tv-broadcast.is-champion .champion-table-reveal:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:2px;
        width:100%;
        padding:0;
        background:transparent;
        border:0;
        border-radius:0;
        box-shadow:none;
    }

    .tv-broadcast.is-champion .champion-table-reveal>strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(.86rem,3.5vw,1.15rem);
        line-height:1.12;
    }

    .tv-broadcast.is-champion .champion-table-reveal>small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.65rem;
        line-height:1.1;
    }
}

@media(max-width:900px){
    .board-deal-slot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:96px}
    .board-result-slot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:140px}
    .champion-table-reveal .champion-board-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:62px}
}

@media(max-width:560px){
    .board-deal-slot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:88px}
    .board-result-slot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:140px}
    .champion-table-reveal:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:2px;font-size:.68rem}
    .champion-table-reveal .champion-board-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:52px}
    .champion-phone-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:9px}
    .champion-finale:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:20px 14px 24px}
    .avatar-taken-label:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.52rem}
}

/* 대기 이모티콘은 폴링 화면 교체에도 만료 시각까지 계속 보입니다. */
.waiting-bubble{
    animation:none;
    opacity:1;
}

/* 베팅 다이얼은 휴대폰에서 숫자와 슬라이더를 함께 조작할 수 있게 합니다. */
.raise-control input[type="range"]{
    min-height:30px;
    padding:0;
    accent-color:#f3c96b;
    touch-action:pan-x;
}

.raise-control output{
    justify-self:center;
    min-width:7ch;
    padding:7px 12px;
    color:#ffe08c;
    background:#0b1420;
    border:1px solid #806d43;
    border-radius:10px;
    font:700 1.05rem 'DM Mono',monospace;
    text-align:center;
}

/* 칩 액수에 맞춰 서로 다른 액면가를 세로 더미로 구성합니다. */
.chip-bank{
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:5px;
    min-height:40px;
}

.chip-denomination{
    display:grid;
    justify-items:center;
    gap:2px;
    min-width:27px;
    color:#fff;
    text-shadow:0 1px 3px #000;
}

.chip-denomination small{
    font:600 .48rem 'DM Mono',monospace;
    white-space:nowrap;
}

.chip-denomination-pile{
    display:flex;
    flex-direction:column-reverse;
    align-items:center;
    min-height:30px;
    padding:0 2px;
    filter:drop-shadow(0 2px 2px #0009);
}

.chip-denomination-pile i{
    display:block;
    width:24px;
    height:9px;
    margin-top:-3px;
    border:2px dashed #fff9;
    border-radius:48%;
    box-shadow:0 1px 3px #000b;
}

.chip-denomination-10000 .chip-denomination-pile i{background:#8f5ac9}
.chip-denomination-5000 .chip-denomination-pile i{background:#edc64b}
.chip-denomination-1000 .chip-denomination-pile i{background:#54b879}
.chip-denomination-500 .chip-denomination-pile i{background:#499be0}
.chip-denomination-100 .chip-denomination-pile i{background:#e34c5b}
.chip-denomination-25 .chip-denomination-pile i{background:#e8e9ec}
.chip-denomination-5 .chip-denomination-pile i{background:#e88a42}
.chip-denomination-1 .chip-denomination-pile i{background:#8f9ba2}
.chip-bank-empty{color:#aeb9b8}
.stack-chips{position:relative;right:auto;bottom:auto;display:flex;align-items:flex-end;height:auto}
.seat-chip-front .stack-chips{filter:drop-shadow(0 3px 2px #000a)}
.seat-chip-front .stack-balance{display:grid;justify-items:center;gap:2px;line-height:1.1}
.seat-chip-front .stack-balance small{color:#d8e5df;font-size:.55rem}
.seat-chip-front .seat-stack-balance{color:#ffe08c;font:800 .9rem 'DM Mono',monospace;text-shadow:0 2px 4px #000}
.seat-bet-on-felt .chip-bank{min-height:25px}
.seat-bet-on-felt .chip-denomination{min-width:20px}
.seat-bet-on-felt .chip-denomination-pile{min-height:20px}
.seat-bet-on-felt .chip-denomination-pile i{width:17px;height:7px}
.seat-bet-on-felt .chip-denomination small{font-size:.4rem}
.pot-chip-stack .chip-bank{max-width:170px;min-height:43px;flex-wrap:wrap;align-content:flex-end}
.pot-chip-stack .chip-denomination-pile{min-height:27px}

/* 위치표는 버튼과 두 블라인드를 각 좌석의 위치 정보로 보여줍니다. */
.position-badges{
    display:flex;
    flex:0 0 auto;
    flex-wrap:wrap;
    gap:3px;
}

.position-badge{
    display:inline-flex;
    align-items:center;
    min-height:20px;
    padding:2px 5px;
    color:#10221b;
    border:1px solid #fff8;
    border-radius:6px;
    font:900 .52rem 'DM Mono',monospace;
}

.position-button{background:#fff0ac}
.position-small-blind{background:#8fd5f4}
.position-big-blind{background:#f59b80}
.seat-action-banner.is-active{color:#162213;background:linear-gradient(180deg,#eff9cb,#a6cf72);border-color:#f0ffbb}

/* 새 공용 카드는 딜러가 뒷면으로 놓은 다음 앞면으로 뒤집습니다. */
.community-card.board-card-enter{
    position:relative;
    transform-style:preserve-3d;
}

.board-card-dealer-back,.board-card-dealer-front{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    backface-visibility:hidden;
}

.board-card-dealer-back{z-index:2;animation:dealer-board-back .9s ease both}
.board-card-dealer-front{animation:dealer-board-front .9s ease both}
.community-card.board-card-enter{width:clamp(94px,5.5vw,112px);height:clamp(132px,8vw,154px)}

@keyframes dealer-board-back{
    0%{opacity:0;transform:translateY(-18px) rotate(-9deg) scale(.9)}
    16%{opacity:1;transform:translateY(0) rotate(0) scale(1)}
    55%{opacity:1;transform:rotateY(0)}
    65%,100%{opacity:0;transform:rotateY(90deg)}
}

@keyframes dealer-board-front{
    0%,55%{opacity:0;transform:rotateY(90deg)}
    100%{opacity:1;transform:rotateY(0)}
}

/* 행동 시간이 10초 이하일 때만 양쪽 화면에서 좌석을 붉게 점멸합니다. */
.seat.timer-critical,.phone-screen.timer-critical .my-hand{
    outline:3px solid #ff4057;
    outline-offset:2px;
    animation:timer-critical-pulse .72s ease-in-out infinite alternate;
}

.phone-screen.timer-critical{
    box-shadow:inset 0 0 0 4px #ff4057, inset 0 0 30px #ff405755;
}

@keyframes timer-critical-pulse{
    from{outline-color:#8d172b;box-shadow:0 0 7px #f3163970}
    to{outline-color:#ff7786;box-shadow:0 0 24px #ff2b4dbb}
}

/* TV의 경고는 좌석 전체의 그림자를 다시 그리지 않고 고정된 테두리만 점멸합니다. */
.game-screen .seat.timer-critical{
    animation:none;
    box-shadow:0 0 0 2px #ff405766,0 0 18px #ff2b4d70;
}

.game-screen .seat.timer-critical::before{
    position:absolute;
    inset:1px;
    content:"";
    border:2px solid #ff7786;
    border-radius:inherit;
    box-shadow:inset 0 0 10px #ff2b4d60;
    pointer-events:none;
    animation:tv-frame-glow-opacity .72s ease-in-out infinite alternate;
}

@keyframes tv-frame-glow-opacity{
    from{opacity:.35}
    to{opacity:1}
}

/* 결과는 공개 카드와 남은 초를 고정된 보드 영역에 정리합니다. */
.hand-result-panel{display:grid;justify-items:center;gap:8px;width:min(94vw,760px)}
.hand-result-banner{width:100%;max-width:760px}
.next-hand-countdown{color:#563d0b;font-size:.8em;font-weight:800}
.winner-reveal-cards{display:grid;justify-items:center;gap:2px;color:#ffedbb;font-weight:800}
.winner-reveal-cards>.board-cards{gap:8px;min-height:0}
.winner-card-pair{display:flex;align-items:center;gap:6px}
.winner-card-pair small{color:#ffe8a7;font-size:.68rem}
.winner-reveal-cards .playing-card{width:clamp(75px,5.5vw,112px);height:clamp(105px,8vw,154px);border-radius:11px;font-size:1.45rem}
.winner-cards-closed{color:#d4dfdb;font-size:.78rem}
.winner-party-border{animation:winner-party-frame 1.4s linear infinite;outline:3px solid #ffd44f;outline-offset:2px}

@keyframes winner-party-frame{
    0%{box-shadow:0 0 0 3px #ffe15d,0 0 18px #ff564f}
    33%{box-shadow:0 0 0 3px #ff68bc,0 0 20px #ff68bc}
    66%{box-shadow:0 0 0 3px #57dcff,0 0 20px #57dcff}
    100%{box-shadow:0 0 0 3px #ffe15d,0 0 18px #ff564f}
}

/* 우승 프레임은 금색을 유지하며 투명도만 바꾸고 카드·좌석 위치는 그대로 둡니다. */
.game-screen .seat.winner-party-border{
    animation:none;
    box-shadow:0 0 0 3px #ffe15d,0 0 20px #ffe15d88;
}

.game-screen .seat.winner-party-border::before{
    position:absolute;
    inset:1px;
    content:"";
    border:2px solid #fff2a3;
    border-radius:inherit;
    box-shadow:inset 0 0 12px #ffe15d66;
    pointer-events:none;
    animation:tv-frame-glow-opacity 1.4s ease-in-out infinite alternate;
}

.board-result-slot{min-height:260px}
.winner-reveal-cards .board-cards{flex-wrap:wrap}

@media(max-width:560px){
    .chip-bank:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:2px;min-height:32px}
    .chip-denomination:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-width:20px}
    .chip-denomination-pile:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:24px}
    .chip-denomination-pile i:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:17px;height:7px}
    .chip-denomination small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.4rem}
    .seat-chip-front .seat-stack-balance:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.78rem}
    .position-badge:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:18px;padding:1px 4px;font-size:.45rem}
    .hand-result-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:6px}
    .winner-reveal-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:clamp(48px,14vw,70px);height:clamp(68px,19vw,98px);font-size:1rem}
    .board-result-slot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:185px}
    .community-card.board-card-enter:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:31px;height:45px}
}

@media(min-width:561px) and (max-width:900px){
    .community-card.board-card-enter:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:58px;height:80px}
}

@media(prefers-reduced-motion:reduce){
    .community-card.board-card-enter .board-card-dealer-back,.community-card.board-card-enter .board-card-dealer-front,.seat.timer-critical,.phone-screen.timer-critical .my-hand,.winner-party-border,.game-screen .seat.timer-critical::before,.game-screen .seat.winner-party-border::before{
        animation:none!important;
    }

    .community-card.board-card-enter .board-card-dealer-back{
        display:none;
    }

    .community-card.board-card-enter .board-card-dealer-front{
        display:grid;
        opacity:1;
        transform:none;
        visibility:visible;
    }
}

/* 관전 휴대폰·태블릿 화면은 세로 흐름과 상단 조작 공간을 사용합니다. */
@media(max-width:900px){
    body.observer-mode:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        overflow-x:hidden;
    }

    body.observer-mode .observer-screen-controls:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:max(6px,env(safe-area-inset-top));
        left:10px;
        right:10px;
        gap:8px;
    }

    body.observer-mode .observer-screen-controls button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:36px;
        box-shadow:0 4px 14px #0008;
    }

    body.observer-mode .tv-shell.game-screen:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:100svh;
        max-height:none;
        overflow:visible;
        padding:calc(52px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom));
    }

    body.observer-mode .tv-header:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        align-items:center;
        gap:6px 8px;
        min-height:0;
        margin-bottom:8px;
    }

    body.observer-mode .tv-header .brand:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),body.observer-mode .tv-header .tv-rejoin-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:none;
    }

    body.observer-mode .tv-header .family-pill:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        justify-self:start;
        max-width:65vw;
        overflow:hidden;
        padding:5px 9px;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:.72rem;
    }

    body.observer-mode .tv-header .game-meta:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        order:initial;
        width:auto;
        min-width:0;
        text-align:right;
        font-size:.67rem;
    }

    body.observer-mode .tv-header .tv-blind-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1 / -1;
        order:initial;
        display:grid;
        grid-template-columns:auto auto;
        justify-content:center;
        align-items:center;
        gap:2px 10px;
        width:100%;
        min-width:0;
        margin:0;
        padding:7px 9px;
        border-radius:12px;
    }

    body.observer-mode .tv-blind-panel>strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.68rem;
        white-space:nowrap;
    }

    body.observer-mode .tv-blind-panel>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.84rem;
        white-space:nowrap;
    }

    body.observer-mode .tv-blind-panel>small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1 / -1;
        font-size:.62rem;
        line-height:1.25;
    }

    body.observer-mode .tv-table-wrap:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:flex;
        flex:0 0 auto;
        flex-direction:column;
        gap:8px;
        width:100%;
        min-height:0;
        margin:0 auto 8px;
        padding-top:0;
    }

    body.observer-mode .tv-dealer-seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:none;
    }

    body.observer-mode .tv-broadcast-slot-below-dealer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;
        top:auto;
        left:auto;
        width:100%;
        min-height:0;
        transform:none;
    }

    body.observer-mode .tv-broadcast-slot-below-dealer .tv-broadcast:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:48px;
        gap:5px;
        padding:7px 9px;
    }

    body.observer-mode .tv-broadcast-slot-below-dealer .tv-broadcast>strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.68rem;
    }

    body.observer-mode .tv-broadcast-slot-below-dealer .tv-broadcast>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(.8rem,3.2vw,1rem);
        line-height:1.25;
    }

    body.observer-mode .game-screen .tv-table-wrap>.poker-table:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:230px;
        padding:10px 7px;
        border-width:6px;
        border-radius:22px;
    }

    body.observer-mode .tv-table-wrap .board-zone:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:5px;
        padding:4px 0;
    }

    body.observer-mode .tv-table-wrap .board-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:58px;
        gap:3px;
    }

    body.observer-mode .tv-table-wrap .board-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),body.observer-mode .tv-table-wrap .board-card-empty:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:clamp(27px,8.1vw,40px);
        height:clamp(39px,11.8vw,58px);
    }

    body.observer-mode .tv-table-wrap>.seat-grid.tv-seat-mobile:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:6px;
    }

    body.observer-mode .tv-table-wrap>.seat-grid.tv-seat-mobile>.seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:76px;
        padding:6px;
    }

    body.observer-mode .tv-table-wrap .tv-seat-mobile .seat-top strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:100%;
        font-size:.67rem;
    }

    body.observer-mode .tv-table-wrap .tv-seat-mobile .stack:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.59rem;
    }

    body.observer-mode .tv-table-wrap .tv-seat-mobile .seat-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:2px;
        margin:4px 0 0;
    }

    body.observer-mode .tv-table-wrap .tv-seat-mobile .seat-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:23px;
        height:32px;
        font-size:.6rem;
    }

    body.observer-mode .tv-footer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        align-items:flex-start;
        flex-wrap:wrap;
        gap:6px 10px;
        min-height:0;
        font-size:.68rem;
    }

    body.observer-mode .tv-footer .winner-strip:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex:1 1 100%;
    }
}

.family-lobby-layout{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(230px, 300px);
    align-items:center;
    gap:18px;
    max-width:1040px;
}

.family-lobby-layout .family-gathering{
    width:100%;
}

.family-winner-ranking{
    display:grid;
    gap:9px;
    padding:20px;
    color:#e9f2ee;
    background:linear-gradient(155deg,#172c31,#13212a);
    border:1px solid #3f7162;
    border-radius:20px;
    box-shadow:0 16px 40px #0005;
}

.family-winner-ranking .eyebrow,
.family-winner-ranking h2{
    margin:0;
}

.family-winner-ranking h2{
    margin-top:4px;
    color:#f4d77d;
    font-size:1.05rem;
}

.family-ranking-list,
.family-recent-wins{
    display:grid;
    gap:7px;
    max-height:260px;
    overflow-y:auto;
    overscroll-behavior:contain;
}

.family-winner-ranking .family-recent-title{
    margin-top:5px;
    font-size:.92rem;
}

.family-latest-winner{
    display:grid;
    gap:4px;
    padding:10px 12px;
    background:#0d1b20;
    border:1px solid #947c3d;
    border-radius:12px;
}

.family-latest-winner span{
    color:#c3cbd0;
    font-size:.78rem;
}

.family-latest-winner strong{
    color:#ffe395;
    font-size:.95rem;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.family-ranking-row{
    display:grid;
    grid-template-columns:32px minmax(0,1fr) auto;
    align-items:center;
    gap:7px;
    padding:7px 9px;
    background:#20333a;
    border-radius:9px;
    font-size:.83rem;
}

.family-ranking-row b,
.family-ranking-row strong{
    color:#f4d77d;
}

.family-recent-win{
    display:grid;
    gap:3px;
    padding:7px 9px;
    color:#cbd5d9;
    background:#172a31;
    border-radius:9px;
    font-size:.75rem;
    line-height:1.35;
}

.family-recent-win b{
    color:#e8d69e;
}

.family-recent-win span{
    overflow-wrap:anywhere;
}

.family-ranking-row span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.family-ranking-empty{
    margin:0;
    color:#aab7bf;
    font-size:.83rem;
    line-height:1.5;
}

.waiting-player.family-champion{
    border-color:#e6c45e;
    box-shadow:0 0 0 2px #e6c45e44,0 9px 25px #0007;
}

.waiting-crown{
    position:absolute;
    z-index:6;
    top:-25px;
    left:50%;
    font-size:1.65rem;
    line-height:1;
    filter:drop-shadow(0 3px 4px #0008);
    transform:translateX(-50%);
}

.waiting-player.family-member .family-champion-label{
    color:#ffe395;
    font-size:.62rem;
    font-weight:750;
}

.family-champion .waiting-bubble{
    right:-27px;
    bottom:-3px;
    left:auto;
    transform:none;
}

.family-champion .waiting-bubble:after{
    left:14px;
    transform:rotate(45deg);
}

.table-champion-crown{
    position:absolute;
    top:-.92em;
    left:50%;
    font-size:.76em;
    line-height:1;
    transform:translateX(-50%);
}

.champion-win-line{
    color:#fff0bc;
    font-size:clamp(.72rem,1.05vw,.92rem);
    line-height:1.35;
    overflow-wrap:anywhere;
}

@media(max-width:1100px){
    .family-lobby-layout:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0,1fr);
        justify-items:center;
    }

    .family-winner-ranking:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:min(100%,720px);
        box-sizing:border-box;
    }
}

@media(max-width:560px){
    .family-winner-ranking:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:15px;
        border-radius:15px;
    }

    .family-ranking-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.75rem;
    }

    .waiting-crown:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:-20px;
        font-size:1.35rem;
    }
}

/* 플레이어 위치 코인은 펠트의 칩 위치에 붙이고 이름 전체를 줄바꿈해 표시합니다. */
.seat-chip-front .table-position-coins{
    position:absolute;
    top:50%;
    left:-54px;
    display:flex;
    flex-direction:column;
    gap:4px;
    transform:translateY(-50%);
}

.table-position-coin{
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    color:#182129;
    background:radial-gradient(circle at 35% 28%,#fff6cb,#e8bd48 53%,#9a6820 57%,#e4c362 67%,#684916 72%);
    border:3px solid #f8e7a4;
    border-radius:50%;
    box-shadow:0 3px 8px #000b,0 0 14px #f4d77599,inset 0 0 0 2px #805b20;
    font:900 .72rem 'DM Mono',monospace;
    text-shadow:0 1px #fff7;
}

.table-position-coin.position-small-blind{
    background:radial-gradient(circle at 35% 28%,#e9fbff,#54acd7 54%,#23577c 58%,#8ed5ef 69%,#244967 73%);
}

.table-position-coin.position-big-blind{
    background:radial-gradient(circle at 35% 28%,#fff0e6,#e67c53 54%,#843a29 58%,#ffc0a1 69%,#6f352a 73%);
}

.tv-seat-circle .seat-top strong{
    max-width:clamp(125px,11vw,220px);
    overflow:visible;
    overflow-wrap:anywhere;
    text-overflow:clip;
    white-space:normal;
    line-height:1.12;
}

.seat.active{
    border-color:#53ff9c;
    box-shadow:0 0 0 2px #53ff9c66,0 10px 30px #06120f,0 0 25px #2aff8c55;
}

.seat.active::after{
    position:absolute;
    right:10%;
    bottom:-5px;
    left:10%;
    height:4px;
    content:"";
    background:#62ff9b;
    border-radius:999px;
    box-shadow:0 0 9px #42ff93,0 0 21px #2aff8c;
    animation:turn-line-glow .7s ease-in-out infinite alternate;
}

@keyframes turn-line-glow{
    from{opacity:.52;box-shadow:0 0 6px #42ff93}
    to{opacity:1;box-shadow:0 0 14px #42ff93,0 0 28px #2aff8c}
}

.game-screen .seat.active::after{
    animation:tv-turn-line-opacity .7s ease-in-out infinite alternate;
}

.game-screen .seat.active.timer-critical::after{
    background:#ff7786;
    box-shadow:0 0 9px #ff4057,0 0 21px #ff2b4d;
}

@keyframes tv-turn-line-opacity{
    from{opacity:.52}
    to{opacity:1}
}

.turn-countdown-box{
    position:absolute;
    z-index:10;
    top:-13px;
    left:-13px;
    display:grid;
    place-items:center;
    width:39px;
    height:39px;
    color:#fff;
    background:linear-gradient(145deg,#f53b4e,#85172b);
    border:2px solid #ffe3e4;
    border-radius:11px;
    box-shadow:0 0 15px #ff334fbb;
    font:900 1.05rem 'DM Mono',monospace;
    animation:timer-countdown-pulse .62s ease-in-out infinite alternate;
}

.turn-countdown-box[data-turn-warning-countdown][hidden]{
    display:none!important;
}

.hand-title .turn-countdown-box{
    position:static;
    flex:0 0 auto;
    width:43px;
    height:43px;
    font-size:1.2rem;
}

@keyframes timer-countdown-pulse{
    from{filter:brightness(.88);transform:scale(.96)}
    to{filter:brightness(1.2);transform:scale(1.04)}
}

@media(min-width:901px){
    .tv-dealer-seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:11%;
    }

    .tv-broadcast-slot-below-dealer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:31%;
    }

    .game-screen .tv-table-wrap>.poker-table:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        inset:23.6% 19% 24%;
    }

    .tv-table-wrap .board-zone:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        transform:translateY(4vh);
    }
}

@media(max-width:900px){
    .tv-table-wrap:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding-top:245px;
    }

    .tv-header .tv-blind-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        order:5;
        flex:1 1 100%;
        min-width:0;
        width:min(100%,420px);
        margin:0 auto;
        padding:9px 12px;
    }

    .tv-blind-panel>strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.78rem;
    }

    .tv-blind-panel>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:1.1rem;
    }

    .tv-blind-panel>small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.68rem;
        line-height:1.25;
    }

    .tv-dealer-seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:68px;
    }

    .tv-broadcast-slot-below-dealer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:180px;
        left:50%;
        width:calc(100% - 20px);
        transform:translateX(-50%);
    }

    .tv-broadcast-slot-below-dealer .tv-broadcast:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:54px;
        gap:8px;
        padding:6px 10px;
        border-radius:13px;
    }

    .tv-broadcast-slot-below-dealer .tv-broadcast>strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.78rem;
    }

    .tv-broadcast-slot-below-dealer .tv-broadcast>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(.95rem,3.5vw,1.4rem);
    }

    .game-screen .tv-table-wrap>.poker-table:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:500px;
        padding:0 12px 20px;
    }

    .tv-pause-overlay:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:14px;
    }

    .tv-pause-overlay strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:100%;
        padding:15px 18px;
        font-size:clamp(1rem,4vw,1.65rem);
    }

    .champion-table-reveal:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:100%;
        padding:7px 9px;
    }

    .champion-table-reveal .champion-board-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:clamp(48px,10vw,72px);
        height:clamp(68px,14vw,98px);
    }

    .tv-seat-mobile .seat-chip-front .table-position-coins:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        left:-39px;
    }

    .tv-table-wrap .tv-seat-mobile .seat-top strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:150px;
        overflow:visible;
        overflow-wrap:anywhere;
        text-overflow:clip;
        white-space:normal;
        line-height:1.12;
    }

    .tv-seat-mobile .table-position-coin:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:34px;
        height:34px;
        border-width:2px;
        font-size:.57rem;
    }

    .seat.timer-critical .turn-countdown-box:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:-9px;
        left:-9px;
        width:32px;
        height:32px;
        font-size:.85rem;
    }
}

@media(max-width:560px){
    .tv-table-wrap:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding-top:275px;
    }

    .tv-header .tv-blind-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:min(100%,340px);
    }

    .tv-dealer-seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:105px;
    }

    .tv-broadcast-slot-below-dealer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:215px;
    }

    .tv-table-wrap .tv-seat-mobile .seat-top strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:110px;
        overflow:visible;
        overflow-wrap:anywhere;
        text-overflow:clip;
        white-space:normal;
    }

    .tv-pause-overlay:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:8px;
    }
}

@media(prefers-reduced-motion:reduce){
    .seat.active::after,.turn-countdown-box,.phone-game-screen .my-hand.player-turn-active{
        animation:none!important;
    }
}

/* README 카드 그림은 기존 카드 프레임을 유지한 채 안쪽에 맞춰 표시합니다. */
.playing-card.card-image{overflow:hidden;padding:0;background:#fff}
.playing-card.card-image .card-face-image{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit;pointer-events:none}

.bet-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.bet-presets .button{flex:1 1 88px;min-width:0;padding:10px 8px;font-size:.9rem}
.bet-presets .button:disabled{opacity:.45;cursor:not-allowed}
.showdown-hole-card{display:inline-block;perspective:900px;vertical-align:top}
.showdown-hole-card.is-revealing{animation:showdown-card-flip .6s ease both;transform-origin:center}
@keyframes showdown-card-flip{0%{opacity:.55;transform:rotateY(88deg) scale(.92)}65%{opacity:1;transform:rotateY(-8deg) scale(1.03)}100%{transform:rotateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.showdown-hole-card.is-revealing{animation:none}}

.betting-control-panel{
    display:grid;
    gap:9px;
    min-width:0;
}

.betting-control-panel.waiting-turn{
    opacity:.72;
    filter:saturate(.62);
}

.betting-control-panel .action-unavailable{
    opacity:.4;
    filter:saturate(.32);
    cursor:not-allowed;
    pointer-events:none;
}

.bet-sizing-panel{
    display:grid;
    gap:5px;
    min-width:0;
}

.betting-control-panel .action-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

/* 휴대폰 배팅 패널의 세로 공간을 줄이고 주요 동작 버튼은 누르기 쉽게 둡니다. */
@media(max-width:560px){
    .betting-control-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:6px;
        padding-bottom:env(safe-area-inset-bottom);
    }

    .bet-sizing-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:3px;
    }

    .action-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:6px;
        padding:6px;
        border-radius:13px;
    }

    .action-grid .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:44px;
        padding:6px;
        font-size:.78rem;
        line-height:1.1;
    }

    .raise-control:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr) auto;
        gap:4px 8px;
        padding:7px;
    }

    .raise-control>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.76rem;
    }

    .raise-control>.raise-range-hint:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1/-1;
        margin-top:-2px;
        font-size:.67rem;
    }

    .raise-control>input[type="range"]:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1/-1;
        min-height:24px;
    }

    .raise-control>output:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1;
        justify-self:start;
        min-width:6ch;
        padding:4px 7px;
        font-size:.9rem;
    }

    .raise-control>.button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:2;
        min-width:96px;
        min-height:40px;
        padding:6px 8px;
        font-size:.73rem;
    }

    .bet-presets:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1/-1;
        gap:5px;
        margin-top:4px;
    }

    .bet-presets .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:38px;
        flex:1 1 64px;
        padding:5px;
        font-size:.7rem;
    }
}

.admin-invite-link{
    display:grid;
    gap:7px;
    width:min(100%,440px);
    min-width:0;
    color:#d4e0e7;
    font-size:.82rem;
}

.admin-invite-link>div{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.admin-invite-link input{
    flex:1 1 230px;
    min-width:0;
    min-height:44px;
    padding:9px 11px;
    color:#f5f4e8;
    background:#0e1925;
    border:1px solid #40566a;
    border-radius:10px;
    font-size:.76rem;
}

.admin-invite-link small{
    color:#aebdc7;
    line-height:1.4;
}

.hand-winner-hand .seat-cards,
.showdown-revealing .seat-cards{
    justify-content:center;
    gap:7px;
    margin:9px 0 2px;
}

.showdown-revealing .seat-cards .showdown-hole-card{
    flex:0 1 calc((100% - 7px) / 2);
    width:calc((100% - 7px) / 2);
    max-width:104px;
}

.hand-winner-hand .seat-cards .playing-card{
    flex:0 1 calc((100% - 7px) / 2);
    width:calc((100% - 7px) / 2);
    max-width:104px;
    height:auto;
    aspect-ratio:5 / 7;
    border-radius:10px;
    font-size:1.3rem;
}

.showdown-revealing .seat-cards .showdown-hole-card .playing-card{
    width:100%;
    max-width:none;
    height:auto;
    aspect-ratio:5 / 7;
    border-radius:10px;
    font-size:1.3rem;
}

.winning-combination-card{
    position:relative;
    z-index:2;
    border:3px solid #ffe65c;
    box-shadow:0 0 0 3px #ffcf4d66,0 0 19px 7px #ffe65caa;
    animation:winning-combination-pulse .82s ease-in-out infinite alternate;
}

@keyframes winning-combination-pulse{
    from{filter:brightness(1);box-shadow:0 0 0 2px #ffcf4d66,0 0 12px 4px #ffe65c88}
    to{filter:brightness(1.16);box-shadow:0 0 0 4px #ffe65caa,0 0 26px 10px #ffe65cdd}
}

/* 카드 이미지 위에 레이어를 덮지 않고 고정 발광과 작은 투명도 변화로 강조합니다. */
.game-screen .winning-combination-card{
    animation:tv-winning-card-opacity .82s ease-in-out infinite alternate;
}

@keyframes tv-winning-card-opacity{
    from{opacity:.92}
    to{opacity:1}
}

@media(prefers-reduced-motion:reduce){
    .game-screen .winning-combination-card{
        animation:none!important;
    }
}

@media(max-width:900px){
    .admin-invite-link:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:min(100%,360px);
    }

    .hand-winner-hand .seat-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:82px;
        font-size:1.05rem;
    }

    .showdown-revealing .seat-cards .showdown-hole-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:82px;
    }

    .showdown-revealing .seat-cards .showdown-hole-card .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:1.05rem;
    }
}

@media(max-width:560px){
    .admin-title:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex-wrap:wrap;
    }

    .admin-invite-link:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex:1 1 100%;
        width:100%;
        max-width:none;
    }

    .admin-invite-link input:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex-basis:100%;
    }

    .hand-winner-hand .seat-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:68px;
        font-size:.9rem;
    }
}

/* 가족 대기실과 게임 좌석에서 캐릭터 이모티콘이 원형 테두리 밖으로 나가지 않게 합니다. */
.avatar-icon{
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    overflow:hidden;
    border-radius:inherit;
    line-height:1;
    transform:scale(.88);
}

.game-screen .seat-top .avatar{
    position:relative;
    display:grid;
    place-items:center;
    overflow:visible;
    border-radius:50%;
}

.game-screen .seat-top .avatar-icon{
    border-radius:50%;
}

.family-wallet-balance{
    color:#ffe394;
    font:700 .78rem 'DM Mono',monospace;
    line-height:1.15;
    white-space:nowrap;
}

/* 휴대폰 게임은 헤더·손패·배팅 컨트롤이 문서와 함께 한 번에 스크롤됩니다. */
.phone-game-screen{
    overflow-x:clip;
    overflow-y:visible;
}

.phone-game-screen .phone-header{
    position:static;
    min-height:44px;
    padding:6px 3px;
    background:transparent;
}

.phone-game-screen .phone-game{
    gap:9px;
    padding-bottom:max(18px, env(safe-area-inset-bottom));
}

.phone-game-screen .my-hand{
    position:relative;
    padding:12px 14px;
    background:#142130;
    box-shadow:none;
}

.phone-game-screen .action-grid{
    position:static;
    bottom:auto;
}

.phone-game-screen .my-hand.player-turn-active{
    outline:3px solid #4fb7ff;
    outline-offset:2px;
    animation:player-turn-blue-pulse .9s ease-in-out infinite alternate;
}

.phone-game-screen .my-hand.player-turn-active.timer-critical{
    outline-color:#ff4057;
    animation:timer-critical-pulse .72s ease-in-out infinite alternate;
}

@keyframes player-turn-blue-pulse{
    from{outline-color:#1974b9;box-shadow:0 0 8px #238ee777,0 8px 22px #0007}
    to{outline-color:#62c4ff;box-shadow:0 0 24px #2da8ffcc,0 8px 22px #0007}
}

.phone-game-screen .hand-title{
    gap:10px;
}

.phone-game-screen .hand-title h1{
    font-size:1.35rem;
}

.hand-clock-stack{
    display:grid;
    justify-items:end;
    gap:3px;
    flex:0 0 auto;
}

.phone-game-screen .hand-countdown{
    font-size:1rem;
    line-height:1.1;
}

.phone-game-screen .hand-clock-stack .turn-countdown-box{
    position:absolute;
    top:43px;
    right:10px;
    width:33px;
    height:33px;
    font-size:.95rem;
}

.phone-game-screen .timechip{
    min-height:32px;
    padding:4px 8px;
    font-size:.73rem;
    line-height:1.1;
    white-space:nowrap;
}

.phone-game-screen .private-cards{
    min-height:0;
    margin:7px 0 0;
    padding:5px 8px;
}

.hand-status-line{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:5px;
    min-height:44px;
}

.hand-status-line .status-line{
    flex:1 1 auto;
    min-width:0;
    margin:0;
    font-size:.82rem;
    line-height:1.25;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}

.hand-status-line .card-help-open{
    position:absolute;
    top:92px;
    left:8px;
    display:grid;
    z-index:4;
    flex:0 0 40px;
    place-items:center;
    width:40px;
    min-height:40px;
    padding:0;
    color:#152316;
    background:#f3c96b;
    border-color:#fff0b2;
    border-radius:50%;
    font-size:1.55rem;
    font-weight:900;
    box-shadow:0 4px 12px #0005;
}

.hand-result-reveal-action{
    margin:10px 0 0;
    color:#ffe29a;
    text-align:center;
    font-size:.92rem;
    font-weight:750;
}

.hand-reveal-actions{
    display:grid;
    gap:4px;
    margin:8px 0 0;
}

.hand-reveal-actions .hand-result-reveal-action{
    margin:0;
}

.hand-reveal-actions .reveal-both-cards{
    margin:2px 0 8px;
}

.public-card-reveal-option{
    display:block;
    width:auto;
    min-width:0;
    margin:0;
    padding:0;
    color:inherit;
    background:transparent;
    border:0;
    border-radius:14px;
    line-height:0;
    cursor:pointer;
    touch-action:manipulation;
}

.public-card-reveal-option:focus-visible{
    outline:3px solid var(--gold);
    outline-offset:4px;
}

.public-card-reveal-option:disabled{
    opacity:.7;
    cursor:wait;
}

.champion-phone-cards .public-card-reveal-option{
    border-radius:12px;
}

.champion-final-details{
    display:grid;
    justify-items:center;
    gap:10px;
    width:100%;
    margin:2px 0 4px;
    padding:14px 12px;
    border:1px solid #647b83;
    border-radius:16px;
    background:#0b1821b8;
}

.champion-final-details h2{
    margin:0;
    color:#c3d7df;
    font-size:1rem;
}

.champion-final-board,
.champion-final-loser-cards{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    width:100%;
}

.champion-final-board .playing-card{
    width:clamp(38px,12vw,58px);
    height:auto;
    aspect-ratio:.68;
    font-size:.85rem;
}

.champion-final-rank{
    color:#ffe08a;
    font-size:clamp(1.2rem,5vw,1.65rem);
    line-height:1.2;
}

.champion-final-loser{
    display:grid;
    justify-items:center;
    gap:7px;
    width:100%;
    padding-top:8px;
    border-top:1px solid #52636b;
    color:#c5ced4;
}

.champion-final-loser-cards .playing-card{
    width:clamp(36px,10vw,48px);
    height:auto;
    aspect-ratio:.68;
    font-size:.72rem;
    opacity:.82;
}

.champion-final-loser-cards .playing-card b{
    font-size:1.05em;
}

.betting-control-panel{
    gap:7px;
}

.bet-sizing-panel{
    margin:0;
}

.bet-sizing-panel .open-bet-dial{
    width:100%;
    min-height:50px;
    font-size:1.04rem;
}

.check-call-actions,
.risk-actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
}

.check-call-actions .button,
.risk-actions .button{
    min-width:0;
    min-height:54px;
    padding:8px 6px;
    font-size:.94rem;
}

.check-call-actions .call-primary{
    min-height:60px;
    font-size:1.15rem;
}

.check-call-actions .button:disabled,
.risk-actions .button:disabled,
.timechip:disabled{
    opacity:.42;
    filter:saturate(.55);
    cursor:not-allowed;
}

.bet-presets{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:6px;
    margin:0;
}

.bet-presets .button{
    display:grid;
    align-content:center;
    gap:3px;
    min-width:0;
    min-height:58px;
    padding:6px 3px;
    text-align:center;
}

.bet-presets .button span{
    font-size:.91rem;
    font-weight:850;
    line-height:1.05;
}

.bet-presets .button small{
    color:#d1dae3;
    font:600 .68rem 'DM Mono',monospace;
    line-height:1.05;
}

.risk-actions .button.gold{
    color:#302306;
    background:linear-gradient(180deg,#ffe28a,#d4a236);
    border-color:#fff0ae;
}

.risk-actions .button.danger{
    background:linear-gradient(180deg,#7c3140,#4a1d29);
    border-color:#d57b85;
}

@media(max-width:560px){
    .phone-game-screen .phone-header:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        margin:0;
    }

    .phone-game-screen .my-hand:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:10px 11px;
        border-radius:15px;
    }

    .phone-game-screen .private-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:clamp(68px, 21vw, 88px);
        height:clamp(94px, 29vw, 118px);
    }

    .phone-game-screen .hand-status-line .status-line:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.78rem;
    }

    .phone-game-screen .hand-status-line .card-help-open:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex-basis:40px;
        width:40px;
        min-height:40px;
    }

    .phone-game-screen .betting-control-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding-bottom:env(safe-area-inset-bottom);
    }

    .bet-presets:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:5px;
    }

    .bet-presets .button span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.85rem;
    }

    .bet-presets .button small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.64rem;
    }
}

/* 짧은 TV 화면에서는 가족 대기 테이블과 랭킹, 참가 QR을 한 화면에 담습니다. */
@media(min-width:901px) and (max-height:620px){
    .tv-shell.waiting-room:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:grid;
        grid-template-rows:34px minmax(0, 1fr);
        gap:4px;
        width:100%;
        height:100vh;
        height:100dvh;
        min-height:0;
        overflow:hidden;
        padding:5px 10px 7px;
    }

    .tv-shell.waiting-room .tv-header:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:0;
        gap:8px;
        padding:0 5px;
    }

    .tv-shell.waiting-room .tv-header .brand:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.tv-shell.waiting-room .tv-header>a:last-child:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.72rem;
        white-space:nowrap;
    }

    .tv-shell.waiting-room .tv-header .family-pill:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:4px 9px;
        font-size:.7rem;
    }

    .tv-shell.waiting-room .waiting-main:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:grid;
        grid-template-columns:minmax(0, 1fr) 138px;
        align-items:stretch;
        gap:10px;
        width:100%;
        max-width:none;
        min-height:0;
        margin:0;
    }

    .tv-shell.waiting-room .waiting-welcome:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:grid;
        grid-template-rows:auto auto auto minmax(0, 1fr) auto auto;
        min-width:0;
        min-height:0;
        gap:2px;
    }

    .tv-shell.waiting-room .waiting-welcome>.eyebrow:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.tv-shell.waiting-room .waiting-welcome>h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.tv-shell.waiting-room .waiting-welcome>p:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        margin:0;
    }

    .tv-shell.waiting-room .waiting-welcome>.eyebrow:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.63rem;
        line-height:1.1;
    }

    .tv-shell.waiting-room .waiting-welcome>h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(1.2rem, 3.2vh, 1.65rem);
        line-height:1.05;
        letter-spacing:-.035em;
    }

    .tv-shell.waiting-room .waiting-welcome>p.muted:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        overflow:hidden;
        font-size:.67rem;
        line-height:1.15;
        white-space:nowrap;
        text-overflow:ellipsis;
    }

    .tv-shell.waiting-room .family-lobby-layout:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr) minmax(155px, 205px);
        align-items:stretch;
        gap:8px;
        width:100%;
        max-width:none;
        min-height:0;
    }

    .tv-shell.waiting-room .family-gathering:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:100%;
        height:100%;
        min-height:0;
        margin:0;
        overflow:visible;
        border-radius:42% / 48%;
    }

    .tv-shell.waiting-room .waiting-family-center:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:clamp(78px, 14vh, 108px);
        height:clamp(78px, 14vh, 108px);
        gap:2px;
    }

    .tv-shell.waiting-room .waiting-family-center span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:1.8rem;
    }

    .tv-shell.waiting-room .waiting-player.family-member:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-width:92px;
        max-width:126px;
        gap:2px;
        padding:5px 8px;
        font-size:.68rem;
    }

    .tv-shell.waiting-room .waiting-player.family-member .avatar:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:39px;
        height:39px;
        font-size:1.3rem;
    }

    .tv-shell.waiting-room .waiting-player.family-member .presence:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:6px;
        height:6px;
    }

    .tv-shell.waiting-room .waiting-bubble:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        z-index:20;
        min-width:34px;
        height:32px;
        font-size:1.12rem;
    }

    .tv-shell.waiting-room .family-winner-ranking:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:5px;
        min-width:0;
        padding:9px;
        overflow:hidden;
        border-radius:13px;
    }

    .tv-shell.waiting-room .family-winner-ranking .eyebrow:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.58rem;
    }

    .tv-shell.waiting-room .family-winner-ranking h2:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        margin:0;
        font-size:.78rem;
    }

    .tv-shell.waiting-room .family-ranking-list:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.tv-shell.waiting-room .family-recent-wins:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:3px;
        max-height:78px;
        overflow:auto;
    }

    .tv-shell.waiting-room .family-ranking-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:22px minmax(0, 1fr) auto;
        gap:4px;
        padding:4px 5px;
        font-size:.62rem;
    }

    .tv-shell.waiting-room .family-latest-winner:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:2px;
        padding:5px 6px;
    }

    .tv-shell.waiting-room .family-latest-winner span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.tv-shell.waiting-room .family-recent-win:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.58rem;
    }

    .tv-shell.waiting-room .family-latest-winner strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.68rem;
        line-height:1.2;
    }

    .tv-shell.waiting-room .family-recent-title:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.68rem;
    }

    .tv-shell.waiting-room .family-recent-win:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:1px;
        padding:4px 5px;
    }

    .tv-shell.waiting-room .presence-note:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        margin:0;
        font-size:.64rem;
        line-height:1.1;
    }

    .tv-shell.waiting-room .standing-lobby-start:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:grid;
        grid-template-columns:minmax(0, 1fr) minmax(180px, 230px);
        align-items:center;
        gap:3px 10px;
    }

    .tv-shell.waiting-room .standing-lobby-start p:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        margin:0;
        font-size:.62rem;
        line-height:1.15;
    }

    .tv-shell.waiting-room .standing-lobby-start .standing-eligibility-note:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1;
    }

    .tv-shell.waiting-room .standing-lobby-start .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:2;
        grid-row:1/3;
        min-height:38px;
        padding:5px 8px;
        font-size:.7rem;
    }

    .tv-shell.waiting-room .waiting-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:grid;
        align-content:center;
        justify-items:center;
        gap:6px;
        width:auto;
        min-width:0;
        padding:7px;
        text-align:center;
        background:#132130;
        border:1px solid #344c60;
        border-radius:14px;
    }

    .tv-shell.waiting-room .waiting-qr .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:min(100%, 112px);
        height:auto;
    }

    .tv-shell.waiting-room .waiting-qr b:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.72rem;
    }

    .tv-shell.waiting-room .waiting-qr small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.57rem;
        line-height:1.25;
    }
}

.wallet-direction-buttons{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
}

.wallet-reason-panel{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:start;
    gap:10px;
    padding:14px;
    background:#0e1a25;
    border:1px solid #3b5666;
    border-radius:14px;
}

.wallet-reason-panel label{
    grid-column:1/-1;
}

.wallet-reason-choices{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.wallet-reason-choices .button{
    min-height:42px;
}

.wallet-reason-panel #wallet-error{
    grid-column:1/-1;
}

.wallet-direction-buttons .button{
    min-height:52px;
    font-weight:800;
}

.wallet-logs{
    max-height:min(25vh, 220px);
    overflow:auto;
    overscroll-behavior:contain;
}

.standing-eligibility-note{
    margin:8px 0;
    padding:8px 10px;
    color:#ffe4a0;
    background:#302918;
    border:1px solid #856e31;
    border-radius:9px;
    font-size:.82rem;
    line-height:1.4;
}

.settings-status{
    min-height:1.3em;
    margin:8px 0 0;
    color:#9fe3c7;
    font-size:.82rem;
}

.seat-rank-label{
    display:block;
    width:max-content;
    max-width:100%;
    margin:1px auto 0;
    padding:3px 9px;
    overflow:visible;
    color:#e8f2f4;
    background:#19343a;
    border:1px solid #4e8790;
    border-radius:12px;
    font-size:.875rem;
    font-weight:800;
    line-height:1.15;
    letter-spacing:-.03em;
    text-align:center;
    overflow-wrap:anywhere;
    white-space:normal;
}

.seat-rank-label.winner-rank-label{
    padding:4px 11px;
    color:#302306;
    background:linear-gradient(180deg, #fff0a0, #e4b848);
    border-color:#fff0a0;
    box-shadow:0 0 12px #ffe16b99;
    font-size:1rem;
}

.hand-winner-hand .seat-cards,
.showdown-revealing .seat-cards{
    display:flex;
    align-items:flex-start;
    width:100%;
    min-width:0;
    max-width:100%;
    flex-wrap:nowrap;
    overflow:hidden;
}

.hand-winner-hand .seat-cards .showdown-hole-card,
.showdown-revealing .seat-cards .showdown-hole-card{
    display:block;
    flex:0 1 calc((100% - 7px) / 2);
    width:calc((100% - 7px) / 2);
    min-width:0;
    max-width:104px;
}

.hand-winner-hand .seat-cards .showdown-hole-card .playing-card{
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:5 / 7;
}

.winning-combination-card{
    transform:translateY(-5px) scale(1.025);
}

.audio-unlock-prompt{
    position:fixed;
    z-index:1000;
    right:16px;
    bottom:16px;
    max-width:min(94vw, 440px);
    min-height:56px;
    padding:12px 18px;
    color:#062219;
    background:#89e7c4;
    border:2px solid #d1ffec;
    border-radius:16px;
    box-shadow:0 12px 34px #0009;
    font-size:1rem;
    font-weight:800;
    cursor:pointer;
}

.bet-dial-overlay,
.card-help-overlay{
    position:fixed;
    z-index:80;
    inset:0;
    display:grid;
    place-items:center;
    padding:18px;
}

.bet-dial-overlay[hidden],
.card-help-overlay[hidden]{
    display:none !important;
}

.bet-dial-backdrop,
.card-help-backdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    background:#030811d9;
    border:0;
}

.bet-dial-dialog,
.card-help-dialog{
    position:relative;
    z-index:2;
    display:grid;
    gap:14px;
    width:min(100%, 460px);
    padding:26px;
    color:#f3f7f8;
    background:#172536;
    border:2px solid #64c7a6;
    border-radius:22px;
    box-shadow:0 22px 80px #000d;
}

.bet-dial-dialog .eyebrow,
.bet-dial-dialog h2,
.card-help-dialog .eyebrow,
.card-help-dialog h2,
.card-help-dialog p{
    margin:0;
}

.bet-dial-dialog h2,
.card-help-dialog h2{
    font-size:1.5rem;
}

.bet-dial-dialog input[type="range"]{
    width:100%;
    min-height:52px;
    accent-color:#6fe1bb;
}

.bet-dial-dialog output{
    justify-self:center;
    min-width:8ch;
    padding:9px 15px;
    color:#ffe08c;
    background:#0d1722;
    border-radius:12px;
    font-size:1.35rem;
    font-weight:800;
    text-align:center;
}

.bet-dial-actions{
    display:grid;
    grid-template-columns:1fr 1.4fr;
    gap:10px;
}

.bet-dial-actions .button{
    min-height:58px;
    font-size:1.05rem;
}

.bet-dial-close{
    position:absolute;
    top:10px;
    right:12px;
    width:44px;
    height:44px;
    color:#fff;
    background:#273a50;
    border:1px solid #71879b;
    border-radius:50%;
    font-size:1.6rem;
}

.private-card-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:8px;
    color:#c5d4df;
}

.card-help-open{
    width:48px;
    min-height:48px;
    padding:0;
    border-radius:50%;
    font-size:1.55rem;
    font-weight:900;
}

.phone-screen.card-help-active .private-cards{
    position:relative;
    z-index:85;
    outline:5px solid #ffe16b;
    outline-offset:4px;
    border-radius:14px;
    box-shadow:0 0 36px 12px #ffe16bcc;
}

.card-help-dialog{
    position:absolute;
    top:var(--card-help-dialog-top, 12px);
    left:50%;
    width:min(calc(100vw - 32px), 500px);
    max-width:calc(100vw - 32px);
    box-sizing:border-box;
    max-height:calc(100dvh - 24px);
    margin:0;
    padding:clamp(18px, 6vw, 26px);
    overflow-y:auto;
    overscroll-behavior:contain;
    border-color:#f0cd63;
    transform:translateX(-50%);
}

.card-help-dialog p:not(.eyebrow){
    color:#d5e0e8;
    font-size:clamp(.96rem, 4vw, 1.06rem);
    line-height:1.6;
    overflow-wrap:anywhere;
}

.card-help-dialog .button{
    min-height:60px;
    font-size:1.12rem;
}

@media(max-width:350px){
    .card-help-dialog:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:10px;
        padding:14px 15px;
    }

    .card-help-dialog h2:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:1.22rem;
    }

    .card-help-dialog p:not(.eyebrow):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.88rem;
        line-height:1.35;
    }

    .card-help-dialog .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:48px;
        font-size:1rem;
    }
}

.card-help-overlay{
    z-index:1000;
    align-items:start;
    justify-items:center;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.card-help-backdrop{
    position:absolute;
    background:radial-gradient(circle at var(--card-help-x, 50%) var(--card-help-y, 36%), transparent 0, transparent var(--card-help-radius, 90px), #030811c9 calc(var(--card-help-radius, 90px) + 22px), #030811c9 100%);
}

.action-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px 14px;
}

.action-grid .button{
    min-height:58px;
    padding:10px 13px;
    font-size:1rem;
    line-height:1.15;
}

.action-grid [data-action="FOLD"]{
    grid-column:1;
}

.action-grid [data-action="ALL_IN"]{
    grid-column:2;
}

.action-grid .call-primary{
    grid-column:1/-1;
    min-height:70px;
    font-size:1.2rem;
}

.action-grid .timechip{
    min-height:48px;
    font-size:.85rem;
}

.bet-sizing-panel{
    display:grid;
    gap:8px;
    margin-bottom:9px;
}

.open-bet-dial{
    min-height:56px;
    font-size:1.02rem;
}

.bet-presets{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
}

.bet-presets .button{
    min-height:50px;
    padding:8px;
    font-size:.9rem;
}

@media(max-width:560px){
    .wallet-modal-overlay:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        align-items:stretch;
        padding:10px;
    }

    .wallet-modal:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        align-content:start;
        max-height:calc(100dvh - 20px);
        padding:20px 15px;
        overflow:auto;
    }

    .wallet-reason-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:1fr;
        padding:11px;
    }

    .wallet-reason-panel label:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.wallet-reason-panel #wallet-error:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1;
    }

    .wallet-reason-choices .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex:1 1 110px;
    }

    .wallet-amount-presets:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:6px;
    }

    .wallet-amount-presets .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:42px;
        padding:7px 4px;
        font-size:.78rem;
    }

    .action-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:8px 12px;
    }

    .action-grid .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:58px;
        font-size:.98rem;
    }

    .action-grid .call-primary:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:68px;
        font-size:1.15rem;
    }

    .bet-dial-dialog:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.card-help-dialog:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:22px 16px;
    }
}

/* 직접 배팅과 체크 또는 콜을 한 줄에서 같은 크기로 보여줍니다. */
.bet-primary-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    min-width:0;
}

.bet-primary-actions>.bet-sizing-panel,
.bet-primary-actions>.check-call-action{
    min-width:0;
    margin:0;
}

.bet-primary-actions>.check-call-action:only-child{
    grid-column:1/-1;
}

.bet-primary-actions .open-bet-dial,
.bet-primary-actions .call-check-primary{
    display:grid;
    align-content:center;
    justify-items:center;
    gap:2px;
    width:100%;
    min-width:0;
    min-height:60px;
    padding:7px 5px;
    font-size:1rem;
    line-height:1.1;
}

.bet-primary-actions .call-check-primary span{
    font-size:1.02rem;
    font-weight:850;
}

.bet-primary-actions .call-check-primary small{
    color:#ffe08c;
    font:700 .82rem 'DM Mono',monospace;
    line-height:1.05;
}

.bet-primary-actions .call-check-primary{
    color:#f4f8fc;
    background:linear-gradient(145deg,#285a78,#18374f);
    border-color:#72b5d8;
}

.admin-ingame-link{
    white-space:nowrap;
}

@media(max-width:560px){
    .admin-header:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex-wrap:wrap;
    }

    .admin-header>div:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex-wrap:wrap;
        justify-content:flex-end;
    }
}

@media(max-width:560px){
    .bet-primary-actions:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:6px;
    }
}

.reveal-both-cards{
    min-height:50px;
    margin:8px 0 12px;
    font-weight:850;
}

.phone-hand-wait .wait-private-cards{
    width:100%;
    min-height:clamp(144px,42vw,190px);
    justify-content:center;
    gap:12px;
    margin:12px 0 18px;
}

.phone-hand-wait .wait-private-cards .playing-card{
    width:clamp(96px,30vw,138px);
    height:clamp(136px,42vw,188px);
    font-size:clamp(1.65rem,6vw,2.4rem);
}

.waiting-game-card{
    display:grid;
    gap:8px;
    margin:18px 0 22px;
    padding:16px;
    background:linear-gradient(145deg,#182b3b,#122030);
    border:1px solid #507160;
    border-radius:16px;
}

.waiting-game-card h2,
.waiting-game-card p{
    margin:0;
}

.waiting-game-card .waiting-game-status{
    color:#d6e4eb;
    line-height:1.5;
}

.admin-entry-reset{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 14px;
    margin:12px 0;
    padding:12px;
    color:#d5e0e8;
    background:#132130;
    border:1px solid #344d5e;
    border-radius:12px;
}

.admin-entry-reset>span{
    flex:1 1 210px;
}

.admin-entry-reset small{
    display:block;
    margin-top:3px;
    color:#b8c8d1;
}

@media(min-width:901px) and (max-width:1200px) and (max-height:620px){
    .game-screen .tv-broadcast-slot-below-dealer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:min(calc(100% - 24px),520px);
    }

    .game-screen .tv-broadcast-slot-below-dealer .tv-broadcast.is-champion:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:100%;
        max-width:100%;
        padding:6px 10px;
    }

    .game-screen .tv-broadcast-slot-below-dealer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        left:50%;
        transform:translateX(-50%);
    }

    .game-screen .tv-table-wrap .seat.showdown-revealing .seat-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.game-screen .tv-table-wrap .seat.hand-winner-hand .seat-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:5px;
    }

    .game-screen .tv-table-wrap .seat.showdown-revealing .seat-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.game-screen .tv-table-wrap .seat.hand-winner-hand .seat-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:46px;
        height:66px;
        font-size:1.05rem;
    }

    .game-screen .tv-table-wrap .tv-seat-column.seat-count-many .seat.showdown-revealing .seat-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.game-screen .tv-table-wrap .tv-seat-column.seat-count-many .seat.hand-winner-hand .seat-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:39px;
        height:56px;
        font-size:.9rem;
    }
}

@media(max-width:560px){
    .waiting-game-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:13px;
    }

    .reveal-both-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:54px;
        margin:6px 0 10px;
    }
}

/* 960×540 최종 결과에서는 공용 카드와 우승 카드를 서로 다른 높이에 둡니다. */
@media(min-width:901px) and (max-width:1200px) and (max-height:620px){
    .game-screen.game-finale-screen .tv-table-wrap .community-board-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:absolute;
        top:-133px;
        left:50%;
        height:96px;
        transform:translateX(-50%);
    }

    .game-screen.game-finale-screen .tv-table-wrap .board-result-slot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        height:96px;
        min-height:96px;
    }

    .game-screen.game-finale-screen .tv-table-wrap .champion-board-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        height:96px;
        min-height:96px;
    }

    .game-screen.game-finale-screen .tv-return-lobby:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        transform:translateY(-5px);
    }
}


/* TV와 대기 화면의 한글 글꼴을 또렷하고 넓게 표시합니다. */
:root{
    font-family:'Noto Sans KR','Malgun Gothic','맑은 고딕',system-ui,sans-serif;
    font-synthesis:weight;
    font-weight:500;
}

.tv-shell{
    letter-spacing:.012em;
}

.tv-welcome h1,
.waiting-main h1{
    font-family:'Noto Sans KR','Malgun Gothic','맑은 고딕',system-ui,sans-serif;
    font-weight:850;
    letter-spacing:-.035em;
}

.game-screen .tv-header .brand{
    font-weight:700;
    letter-spacing:.13em;
}

.game-screen .game-meta,
.game-screen .tv-blind-panel,
.game-screen .tv-footer,
.game-screen .tv-broadcast,
.game-screen .turn-label,
.game-screen .seat-top strong,
.game-screen .seat-top small,
.game-screen .rank-row{
    font-family:'Noto Sans KR','Malgun Gothic','맑은 고딕',system-ui,sans-serif;
    font-weight:700;
}

.game-screen .tv-blind-panel>strong,
.game-screen .tv-broadcast strong,
.game-screen .tv-return-lobby{
    font-weight:850;
    letter-spacing:.015em;
}

.betting-control-panel.controls-muted{
    filter:blur(1.4px) saturate(.45);
    opacity:.52;
    pointer-events:none;
    user-select:none;
}

.betting-control-panel.controls-muted.waiting-turn{
    opacity:.72;
}

.hand-status-line .hand-rank-open{
    position:absolute;
    top:136px;
    left:8px;
    display:grid;
    z-index:4;
    flex:0 0 40px;
    place-items:center;
    width:40px;
    min-height:40px;
    padding:0;
    color:#e4fff4;
    background:#1a3440;
    border-color:#83d9bd;
    border-radius:50%;
    box-shadow:0 4px 12px #0005;
}

.hand-status-line .hand-rank-open svg{
    width:24px;
    height:24px;
}

.hand-rank-overlay{
    position:fixed;
    z-index:90;
    inset:0;
    display:grid;
    place-items:center;
    padding:max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
}

.hand-rank-overlay[hidden]{
    display:none !important;
}

.hand-rank-backdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    background:#030811df;
    border:0;
}

.hand-rank-dialog{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-rows:auto auto auto minmax(0, 1fr) auto;
    gap:11px;
    width:min(100%, 620px);
    height:min(84dvh, 820px);
    max-height:calc(100dvh - 20px);
    box-sizing:border-box;
    padding:clamp(16px, 4vw, 24px);
    overflow:hidden;
    color:#f3f7f8;
    background:#172536;
    border:2px solid #f0cd63;
    border-radius:22px;
    box-shadow:0 22px 80px #000d;
}
.hand-rank-dialog.player-hand-rank-dialog{
    grid-template-rows:auto auto minmax(0, 1fr) auto;
}

.hand-rank-title .eyebrow,
.hand-rank-title h2,
.hand-rank-note{
    margin:0;
}

.hand-rank-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    padding:4px;
    background:#0b1420;
    border:1px solid #30455b;
    border-radius:12px;
}

.hand-rank-tab{
    min-height:40px;
    color:#c8d6e1;
    background:transparent;
    border:1px solid transparent;
    border-radius:9px;
    font-weight:800;
}

.hand-rank-tab.selected{
    color:#182016;
    background:var(--gold);
    border-color:#ffe6a3;
}

.hand-rank-title .eyebrow{
    color:#7fe0c1;
    font-size:.78rem;
    font-weight:800;
}

.hand-rank-title h2{
    margin-top:3px;
    font-size:clamp(1.25rem, 5vw, 1.6rem);
}

.hand-rank-note{
    color:#c8d6e1;
    font-size:.86rem;
    line-height:1.45;
}

.hand-rank-list{
    display:grid;
    gap:7px;
    min-height:0;
    margin:0;
    padding:0 4px 0 0;
    overflow-y:auto;
    overscroll-behavior:contain;
    overflow-anchor:none;
    scrollbar-gutter:stable;
    scroll-behavior:auto;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    list-style:none;
}

.hand-rank-item{
    display:grid;
    gap:4px;
    min-width:0;
    padding:8px 10px;
    background:#0e1b29;
    border:1px solid #344d60;
    border-radius:11px;
}

.hand-rank-heading{
    display:grid;
    gap:2px;
}

.hand-rank-heading b{
    color:#ffe39c;
    font-size:.94rem;
}

.hand-rank-heading span{
    color:#c6d3de;
    font-size:.78rem;
    line-height:1.35;
}

.hand-rank-example{
    display:flex;
    align-items:center;
    gap:clamp(3px, 1vw, 6px);
    max-width:100%;
    overflow-x:auto;
    white-space:nowrap;
    scrollbar-width:thin;
}

.hand-rank-example .playing-card.card-image{
    flex:0 0 clamp(34px, 10vw, 50px);
    width:clamp(34px, 10vw, 50px);
    height:auto;
    aspect-ratio:0.68;
    border:1px solid #d4dae0;
    border-radius:5px;
    box-shadow:0 2px 6px #0005;
}

.hand-rank-dialog > .button{
    min-height:50px;
    margin-top:1px;
}

@media(max-width:380px){
    .hand-rank-dialog:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:8px;
        padding:14px 12px;
    }

    .hand-rank-list:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:5px;
    }

    .hand-rank-item:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:7px 8px;
    }

    .hand-rank-heading span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.74rem;
    }

    .hand-rank-example .playing-card.card-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex-basis:34px;
        width:34px;
    }
}
/* 가로형 작은 TV에서도 입장 QR을 화면 안에 보여 줍니다. */
@media (min-width:600px) and (max-width:900px) and (orientation:landscape){
    .tv-setup:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1.25fr) minmax(190px, .75fr);
        align-content:center;
        gap:clamp(16px, 3vw, 28px);
        min-height:100vh;
        padding:clamp(16px, 4vw, 36px);
    }

    .tv-welcome:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-width:0;
    }

    .tv-welcome h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(2.25rem, 7vw, 3.7rem);
        line-height:1.02;
        letter-spacing:-.06em;
    }

    .tv-welcome>p:not(.eyebrow):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(.95rem, 1.6vw, 1.05rem);
        line-height:1.45;
    }

    .feature-list:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:8px;
        margin-top:16px;
        font-size:clamp(.85rem, 1.5vw, 1rem);
    }

    .pair-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:100%;
        min-width:0;
        gap:clamp(7px, 1.5vw, 12px);
        padding:clamp(12px, 2vw, 20px);
        border-radius:18px;
    }

    .pair-qr .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:min(26vw, 220px);
        height:auto;
    }

    .pair-qr strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(.9rem, 1.7vw, 1.1rem);
    }

    .pair-qr small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(.72rem, 1.3vw, .85rem);
    }
}

/* 플레이어는 보유 칩과 공개 보드를 확인하고, 카드가 보일 때만 현재 족보를 확인합니다. */
.phone-game-screen .player-wallet{
    color:#ffe08c;
    font-size:.82rem;
    font-weight:800;
    line-height:inherit;
    white-space:nowrap;
}

.phone-game-screen .hand-title .eyebrow{
    display:flex;
    align-items:baseline;
    gap:5px;
    white-space:nowrap;
}

.phone-game-screen .private-hand-rank{
    margin:0 auto 3px;
    color:#ffe08c;
    font-size:.88rem;
    font-weight:850;
    line-height:1.15;
    text-align:center;
}

.phone-game-screen .my-hand:not(.private-hand-revealed) .private-hand-rank{
    visibility:hidden;
}

.phone-game-screen .private-board-preview{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    box-sizing:border-box;
    height:clamp(33px, 9.5vw, 47px);
    min-height:clamp(33px, 9.5vw, 47px);
    flex:0 0 clamp(33px, 9.5vw, 47px);
    margin:2px auto 0;
}

.phone-game-screen .private-board-label{
    margin-right:2px;
    color:#9fb3c4;
    font-size:.66rem;
    font-weight:750;
    white-space:nowrap;
}

.phone-game-screen .private-board-preview .playing-card,
.phone-game-screen .private-board-slot{
    box-sizing:border-box;
    flex:0 0 auto;
    width:clamp(24px, 7vw, 34px);
    height:clamp(33px, 9.5vw, 47px);
    border-radius:5px;
}

.phone-game-screen .private-board-slot{
    display:block;
    border:1px dashed #536b78;
    background:rgba(10, 25, 31, .48);
    box-shadow:0 2px 5px #0005;
}

/* 영문 화면의 긴 잔액·타임칩 문구가 모바일 레이아웃의 최소 너비를 늘리지 않도록 고정합니다. */
.phone-game-screen .phone-game{
    grid-template-columns:minmax(0, 1fr);
}

.phone-game-screen .phone-game > *,
.phone-game-screen .my-hand,
.phone-game-screen .betting-control-panel,
.phone-game-screen .phone-table-details{
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
}

.phone-game-screen .hand-title > div:first-child{
    flex:1 1 auto;
    min-width:0;
}

.phone-game-screen .hand-title .eyebrow{
    min-width:0;
    flex-wrap:wrap;
    white-space:normal;
}

.phone-game-screen .player-wallet{
    white-space:nowrap;
}

.phone-game-screen .hand-clock-stack{
    min-width:0;
    max-width:100%;
}

.phone-game-screen .timechip{
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
}

.dimmed-combination-card .card-face-image{
    filter:brightness(.66) saturate(.62);
}

@media(max-width:560px){
    .phone-game-screen .player-wallet:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.75rem;
    }

    .phone-game-screen .private-board-preview:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        height:40px;
        min-height:40px;
        flex-basis:40px;
        gap:3px;
    }

    .phone-game-screen .private-board-preview .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.phone-game-screen .private-board-slot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:clamp(22px, 7vw, 29px);
        height:40px;
    }
}


/* 대기실 이모티콘은 캐릭터 이미지에 고정하고, QR은 인게임 헤더 크기로 유지합니다. */
.waiting-character{
    position:relative;
    isolation:isolate;
}

.waiting-character>.waiting-bubble{
    right:auto;
    top:-2px;
    bottom:auto;
    left:50%;
    transform:translate(-50%, -100%);
}

.waiting-character>.waiting-bubble:after{
    left:50%;
    transform:translateX(-50%) rotate(45deg);
}

.family-champion .waiting-character{
    z-index:7;
}

.family-champion .waiting-character>.waiting-bubble{
    right:auto;
    top:-36px;
    bottom:auto;
    left:50%;
    transform:translate(-50%, -100%);
}

.family-champion .waiting-character>.waiting-bubble:after{
    left:50%;
    transform:translateX(-50%) rotate(45deg);
}

@keyframes waiting-bubble-pop{
    from
    {
        opacity:0;
        transform:translate(-50%, calc(-100% + 7px)) scale(.75);
    }

    to
    {
        opacity:1;
        transform:translate(-50%, -100%) scale(1);
    }
}

.tv-shell.waiting-room .waiting-main{
    grid-template-columns:minmax(0, 1fr);
}

.tv-shell.waiting-room .waiting-lobby-qr{
    box-sizing:border-box;
    display:grid;
    flex:0 0 56px;
    place-items:center;
    width:56px;
    min-width:56px;
    height:56px;
    min-height:56px;
    margin-left:auto;
    padding:3px;
    overflow:hidden;
    background:#fff;
    border:1px solid #42586b;
    border-radius:10px;
    box-shadow:0 5px 18px #0006;
}

.tv-shell.waiting-room .waiting-lobby-qr .qr-image{
    box-sizing:border-box;
    display:block;
    width:50px;
    min-width:50px;
    max-width:50px;
    height:50px;
    min-height:50px;
    max-height:50px;
    aspect-ratio:1 / 1;
    object-fit:contain;
}

.tv-shell.waiting-room .waiting-lobby-qr .qr-fallback{
    box-sizing:border-box;
    width:50px;
    max-width:50px;
    max-height:50px;
    padding:2px;
    overflow:hidden;
    font-size:.46rem;
}

.tv-shell.waiting-room .waiting-entry-locked{
    flex:0 0 auto;
    margin-left:auto;
    padding:8px 11px;
    color:#aab9c6;
    background:#182635;
    border:1px solid #394d60;
    border-radius:999px;
    font-size:.76rem;
}

@media(max-width:560px){
    .tv-shell.waiting-room .waiting-lobby-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex-basis:50px;
        width:50px;
        min-width:50px;
        height:50px;
        min-height:50px;
    }

    .tv-shell.waiting-room .waiting-lobby-qr .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:44px;
        min-width:44px;
        max-width:44px;
        height:44px;
        min-height:44px;
        max-height:44px;
    }
}

@media(min-width:901px) and (max-height:620px){
    .tv-shell.waiting-room:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-rows:56px minmax(0, 1fr);
    }
}

/* 관리자 콘솔: 모바일에서도 제목, 메뉴, 입력 항목의 정렬과 터치 영역을 일정하게 유지합니다. */
.admin-screen{
    min-height:100vh;
    padding:clamp(14px, 3vw, 30px) clamp(12px, 3vw, 28px) max(32px, env(safe-area-inset-bottom));
    overflow-x:clip;
    color:#edf3f8;
    background:radial-gradient(ellipse at 50% -18%, #21374a 0, transparent 56%), #0b111b;
    font-family:system-ui, 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    letter-spacing:-.012em;
    font-feature-settings:'tnum' 1;
}

.admin-screen :is(.admin-header, .admin-content, .admin-tabs, .admin-title, .admin-card, .admin-tab-panel){
    min-width:0;
}

.admin-screen .admin-header{
    width:min(100%, 1160px);
    min-height:48px;
    margin:0 auto;
    padding:0 0 12px;
    border-bottom:1px solid #2a3e52;
}

.admin-screen .admin-header .brand{
    font-size:.76rem;
    letter-spacing:.14em;
}

.admin-screen .admin-header>div{
    gap:10px;
}

.admin-screen .admin-header .family-pill{
    min-height:38px;
    padding:7px 13px;
    font-size:.84rem;
    white-space:nowrap;
}

.admin-screen .admin-header .admin-ingame-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 12px;
    color:#c8d5df;
    background:#132130;
    border:1px solid #33495d;
    border-radius:11px;
    font-size:.82rem;
    font-weight:700;
    white-space:nowrap;
}

.admin-screen .admin-header .admin-ingame-link:hover{
    color:#effff8;
    border-color:#58bd9e;
    background:#18332f;
}

.admin-screen .admin-content{
    width:min(100%, 1160px);
    gap:16px;
    margin:20px auto 0;
}

.admin-screen .admin-title{
    display:block;
    padding:22px 24px;
    background:linear-gradient(125deg, #172838, #111d2a 72%);
    border:1px solid #30475b;
    border-radius:20px;
    box-shadow:0 12px 34px #0002;
}

.admin-screen .admin-title>div{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    grid-template-areas:'eyebrow action' 'heading action' 'summary action';
    align-items:center;
    column-gap:22px;
    row-gap:3px;
}

.admin-screen .admin-title .eyebrow{
    grid-area:eyebrow;
    margin:0 0 3px;
    font-size:.7rem;
    letter-spacing:.16em;
}

.admin-screen .admin-title h1{
    grid-area:heading;
    min-width:0;
    margin:0;
    font-size:clamp(1.8rem, 4vw, 2.6rem);
    font-weight:780;
    line-height:1.16;
    letter-spacing:-.045em;
    overflow-wrap:anywhere;
}

.admin-screen .admin-title .muted{
    grid-area:summary;
    margin:5px 0 0;
    color:#aebdca;
    font-size:.86rem;
    line-height:1.45;
}

.admin-screen #admin-start-shortcut{
    grid-area:action;
    min-width:126px;
    min-height:46px;
    padding:10px 15px;
    border-radius:12px;
    font-size:.86rem;
    white-space:nowrap;
}

.admin-screen .admin-tabs{
    position:sticky;
    top:max(4px, env(safe-area-inset-top));
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:6px;
    margin:0;
    padding:6px;
    overflow:visible;
    background:#0d1722eF;
    border:1px solid #2c4053;
    border-radius:15px;
    box-shadow:0 8px 24px #0003;
    backdrop-filter:blur(16px);
}

.admin-screen .admin-tab{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:44px;
    padding:8px 6px;
    color:#aebdca;
    background:transparent;
    border:1px solid transparent;
    border-radius:10px;
    font-size:.86rem;
    font-weight:700;
    letter-spacing:-.035em;
    white-space:nowrap;
    transition:background .16s ease, color .16s ease, border-color .16s ease;
}

.admin-screen .admin-tab:hover{
    color:#e8f4f5;
    background:#192a39;
}

.admin-screen .admin-tab.active{
    color:#dffbf1;
    background:#1a3a36;
    border-color:#397a68;
    box-shadow:inset 0 1px #ffffff12;
}

.admin-screen :is(.admin-tab, .button, .admin-logout, .admin-ingame-link, .wallet-member-row):focus-visible{
    outline:3px solid #6ce2bc;
    outline-offset:2px;
}

.admin-screen .admin-tab-panel{
    display:grid;
    gap:14px;
}

.admin-screen .admin-card{
    padding:clamp(17px, 2.4vw, 24px);
    color:#eaf0f5;
    background:linear-gradient(145deg, #142231, #111c29);
    border:1px solid #2c4155;
    border-radius:18px;
    box-shadow:0 10px 28px #00000018;
}

.admin-screen .admin-card h2{
    margin:0 0 13px;
    color:#f4f7fa;
    font-size:1.13rem;
    font-weight:750;
    line-height:1.35;
    letter-spacing:-.025em;
}

.admin-screen .admin-card.reserve-card{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:center;
    justify-self:stretch;
    gap:24px;
    width:100%;
    min-width:0;
    max-width:100%;
    margin:0;
    background:linear-gradient(135deg,#17312e,#122332);
    border-color:#3d7062;
}

.admin-screen .reserve-card-summary{
    min-width:0;
    overflow-wrap:anywhere;
}

.admin-screen .reserve-card .reserve-card-title{
    margin:0 0 10px;
    color:#9bdfc0;
}

.admin-screen .reserve-card>.admin-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
    width:100%;
    min-width:0;
    max-width:100%;
}

.admin-screen .reserve-card>.admin-actions>.button{
    width:100%;
    min-width:0;
    min-height:48px;
    padding:10px 12px;
    line-height:1.4;
    text-align:center;
    white-space:normal;
    overflow-wrap:anywhere;
}

@media(max-width:900px){
    .admin-screen .admin-card.reserve-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0,1fr);
        gap:18px;
    }

    .admin-screen .reserve-card-summary:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        text-align:center;
    }

    .admin-screen .reserve-card .reserve-hint:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:68ch;
        margin-inline:auto;
    }
}

@media(max-width:560px){
    .admin-screen .reserve-card>.admin-actions:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0,1fr);
    }
}

.admin-screen .admin-card h3{
    margin:18px 0 10px;
    color:#dfe9ef;
    font-size:.96rem;
    font-weight:720;
}

.admin-screen .card-heading{
    align-items:flex-start;
    gap:12px;
    margin-bottom:16px;
}

.admin-screen .card-heading>div{
    min-width:0;
}

.admin-screen .card-heading .eyebrow{
    margin-bottom:6px;
}

.admin-screen .card-heading>span,
.admin-screen .card-heading>b{
    flex:0 0 auto;
    padding:5px 9px;
    color:#e5c879;
    background:#29281f;
    border:1px solid #5f5535;
    border-radius:999px;
    font-size:.75rem;
    line-height:1.25;
}

.admin-screen .admin-card :is(.muted, .standing-mode-hint){
    color:#a9bac8;
    font-size:.83rem;
    line-height:1.55;
}

.admin-screen .admin-card .button,
.admin-screen .admin-actions .button,
.admin-screen .admin-link-actions .button,
.admin-screen .account-form .button{
    min-height:46px;
    border-radius:11px;
    font-size:.84rem;
    font-weight:730;
}

.admin-screen .admin-actions{
    gap:9px;
}

.admin-screen .settings-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    align-items:start;
    gap:14px 16px;
}

.admin-screen .settings-grid label,
.admin-screen .account-form label{
    min-width:0;
    gap:7px;
    color:#d0dbe4;
    font-size:.82rem;
    font-weight:680;
    line-height:1.4;
}

.admin-screen .settings-grid :is(input, select),
.admin-screen .account-form input{
    min-width:0;
    min-height:48px;
    padding:10px 12px;
    color:#f1f5f8;
    background:#0b1520;
    border:1px solid #354b60;
    border-radius:11px;
    font-size:.9rem;
    font-weight:550;
}

.admin-screen .settings-grid :is(input, select):focus,
.admin-screen .account-form input:focus{
    border-color:#58c9a4;
    box-shadow:0 0 0 3px #52e0b125;
    outline:none;
}

.admin-screen .settings-grid label small,
.admin-screen .account-form label small{
    color:#9fb0bd;
    font-size:.72rem;
    font-weight:450;
    line-height:1.45;
}

.admin-screen .admin-tv-language{
    display:grid;
    gap:12px;
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid #293c50;
}

.admin-screen .admin-tv-language .card-heading{
    align-items:center;
}

.admin-screen .admin-tv-language .eyebrow{
    margin:0 0 5px;
}

.admin-screen .admin-tv-language h3{
    margin:0;
    font-size:1.08rem;
}

.admin-screen .tv-language-settings-grid{
    grid-template-columns:minmax(0, 1fr);
    max-width:560px;
    margin:0;
}

.admin-screen .admin-tv-language-status{
    max-width:680px;
    margin:0;
    line-height:1.5;
}

.admin-screen .admin-observer-settings{
    max-width:760px;
}

.admin-screen .observer-allow-setting{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    margin:0;
    color:#e4edf4;
    font-weight:700;
}

.admin-screen .observer-allow-setting input{
    width:20px;
    height:20px;
    accent-color:#43d7ad;
}

.admin-screen .admin-observer-settings .settings-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin:0;
}

.observer-screen-controls{
    position:fixed;
    z-index:500;
    top:12px;
    left:16px;
    right:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    pointer-events:none;
}

/* 취소 안내는 제목 묶음과 카드 사이 간격을 유지합니다. */
.cancellation-header{display:grid;justify-items:center;gap:12px;max-width:100%}
body.observer-mode .cancellation-screen{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;min-height:100svh;padding:72px 18px 32px;box-sizing:border-box}
body.observer-mode .cancellation-header .brand{font-size:.72rem;letter-spacing:.08em}
body.observer-mode .cancellation-header .family-pill{max-width:100%;overflow-wrap:anywhere}
body.observer-mode .cancellation-notice{width:min(100%,560px);padding:30px 22px;gap:16px}
body.observer-mode .cancellation-notice h1{font-size:clamp(1.5rem,5.5vw,2.4rem)}
body.observer-mode .cancellation-notice p{font-size:.95rem;line-height:1.5}

/* 관전 보드·팟·공지와 좌석은 실제 콘텐츠 높이를 가진 독립 행으로 배치합니다. */
@media(max-width:900px){
    body.observer-mode .game-screen .tv-table-wrap .tv-broadcast-slot-below-dealer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;inset:auto;align-self:stretch;display:flex;align-items:center;justify-content:center;
        width:100%;max-width:none;min-width:0;min-height:86px;margin:0;transform:none;box-sizing:border-box;
    }
    body.observer-mode .game-screen .tv-table-wrap .tv-broadcast-slot-below-dealer .tv-broadcast:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:4px;
        width:100%;max-width:100%;min-height:0;margin:0;padding:9px 12px;box-sizing:border-box;
        justify-items:center;text-align:center;transform:none;
    }
    body.observer-mode .game-screen .tv-broadcast>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){white-space:normal;overflow-wrap:anywhere;font-size:.85rem;line-height:1.35}
    body.observer-mode .game-screen .tv-broadcast>small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.7rem}
    body.observer-mode .game-screen .tv-table-wrap>.poker-table:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:block;flex:0 0 auto;width:100%;height:auto;min-height:0;max-height:none;
        margin:0;padding:14px 8px;border-width:6px;border-radius:22px;aspect-ratio:auto;
    }
    body.observer-mode .game-screen .tv-table-wrap>.poker-table .board-zone:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr);
        grid-template-rows:16px 38px 70px 40px auto 20px;align-content:start;justify-items:center;
        gap:5px;width:100%;height:auto;min-width:0;min-height:0;max-width:none;margin:0;padding:0;
        box-sizing:border-box;transform:none;
    }
    body.observer-mode .game-screen .tv-table-wrap>.poker-table .board-zone>p:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;inset:auto;align-self:center;max-width:100%;margin:0;
        overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.65rem;line-height:1.3;transform:none;
    }
    body.observer-mode .game-screen .tv-table-wrap>.poker-table .board-deal-slot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;display:grid;place-items:center;width:100%;min-width:0;min-height:0;height:38px;
    }
    body.observer-mode .game-screen .board-deal-slot .shuffle-stage:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:14px 5px 13px;gap:2px 8px;padding:0;max-width:100%}
    body.observer-mode .game-screen .board-deal-slot .shuffle-deck:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:1;grid-row:1 / 4;width:46px;height:38px}
    body.observer-mode .game-screen .board-deal-slot .shuffle-deck .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){left:9px}
    body.observer-mode .game-screen .board-deal-slot .shuffle-stage>strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),body.observer-mode .game-screen .board-deal-slot .shuffle-stage>small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),body.observer-mode .game-screen .board-deal-slot .deal-progress:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:2;margin:0;font-size:.65rem;line-height:1.1}
    body.observer-mode .game-screen .tv-table-wrap>.poker-table .community-board-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;inset:auto;display:flex;align-items:center;justify-content:center;gap:7px;
        width:100%;min-width:0;min-height:70px;height:70px;margin:0;box-sizing:border-box;transform:none;
    }
    body.observer-mode .game-screen .tv-table-wrap>.poker-table .community-board-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),body.observer-mode .game-screen .tv-table-wrap>.poker-table .board-card-empty:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:40px;height:56px;
    }
    body.observer-mode .game-screen .tv-table-wrap>.poker-table .pot-pill:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;inset:auto;align-self:center;justify-self:center;display:flex;
        width:max-content;max-width:100%;min-height:32px;margin:0;padding:5px 12px;transform:none;
    }
    body.observer-mode .game-screen .tv-table-wrap>.poker-table .pot-pill .pot-chip-stack:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:none}
    body.observer-mode .game-screen .tv-table-wrap>.poker-table .board-result-slot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;inset:auto;display:grid;width:100%;height:auto;min-width:0;min-height:0;
        max-width:100%;margin:0;overflow:visible;box-sizing:border-box;
    }
    body.observer-mode .game-screen .tv-table-wrap>.poker-table .felt-pot-pile:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:none}
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){align-items:stretch;gap:10px}
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:flex;flex-direction:column;align-items:stretch;gap:5px;min-height:0;height:auto;padding:10px 8px;overflow:visible;
    }
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat>.seat-action-banner:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        position:relative;inset:auto;align-self:center;order:3;max-width:100%;width:auto;min-height:22px;
        margin:0;padding:3px 6px;font-size:.68rem;line-height:1.25;white-space:normal;transform:none;
    }
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-top:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:36px;flex-shrink:0}
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;
        height:auto;min-height:62px;max-height:none;margin:0;padding:5px;overflow:visible;box-sizing:border-box;
    }
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-cards>.playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-cards>.showdown-hole-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-cards>.deal-card-flight:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        display:block;flex:0 1 56px;width:56px;min-width:0;max-width:56px;height:78.4px;box-sizing:border-box;
    }
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-cards>.showdown-hole-card>.playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-cards>.deal-card-flight>.playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:100%;height:100%;max-width:100%;box-sizing:border-box;
    }
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){transform:none}
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-rank-label:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){max-width:100%;margin:0 auto;font-size:.72rem;line-height:1.3}
    body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-chip-front:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),body.observer-mode .game-screen .tv-table-wrap .tv-seat-mobile>.seat .seat-bet-on-felt:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){position:absolute;visibility:hidden}
}

.observer-screen-controls button{
    pointer-events:auto;
}

.observer-mode-mark{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:5px 13px;
    border:1px solid rgba(83,221,181,.7);
    border-radius:999px;
    background:rgba(9,35,37,.92);
    color:#69e9c1;
    font-size:15px;
    font-weight:850;
    letter-spacing:.04em;
    box-shadow:0 4px 16px rgba(0,0,0,.3);
}

.observer-stop-button{
    min-height:36px;
    padding:7px 13px;
    border:1px solid rgba(255,226,155,.78);
    border-radius:999px;
    background:rgba(27,35,45,.94);
    color:#ffe9b0;
    font-weight:800;
}

.observer-wait-screen{
    position:fixed;
    inset:0;
    display:grid;
    place-items:center;
    padding:24px;
    background:radial-gradient(ellipse at 50% 42%,#143e37 0%,#10252e 46%,#09111e 100%);
    color:#f4f7fb;
}

.observer-wait-card{
    width:min(520px,100%);
    padding:34px 28px;
    border:1px solid #39556a;
    border-radius:22px;
    background:rgba(16,31,46,.9);
    text-align:center;
    box-shadow:0 18px 55px rgba(0,0,0,.32);
}

@media (max-width:640px){
    .admin-screen .admin-observer-settings .settings-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0,1fr);
    }

    .observer-screen-controls:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        top:7px;
        left:8px;
        right:8px;
    }

    .observer-mode-mark:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:30px;
        padding:4px 10px;
        font-size:13px;
    }

    .observer-stop-button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:32px;
        padding:6px 10px;
        font-size:12px;
    }
}

.admin-auth-actions{
    display:grid;
    gap:10px;
    margin-top:18px;
}

.admin-login-back{
    gap:9px;
}

.admin-login-back span:first-child{
    font-size:1.15rem;
    line-height:1;
}

.tv-home-loading{
    display:grid;
    grid-template-rows:auto 1fr;
    min-height:100vh;
    padding:24px clamp(20px, 4vw, 68px);
    background:radial-gradient(ellipse at 70% 45%, #173943, transparent 52%), #0b111b;
}

.tv-home-loading-panel{
    display:flex;
    align-items:center;
    gap:13px;
    place-self:center;
    padding:17px 21px;
    color:#dce6ef;
    background:#142130;
    border:1px solid #2c4053;
    border-radius:16px;
    box-shadow:0 14px 42px #0004;
}

.tv-home-loading-panel p{
    margin:0;
    font-weight:650;
}

.tv-home-loading-indicator{
    width:18px;
    height:18px;
    border:2px solid #40566b;
    border-top-color:var(--mint);
    border-radius:50%;
    animation:tv-home-loading-spin .75s linear infinite;
}

@keyframes tv-home-loading-spin{
    to { transform:rotate(360deg); }
}

@media(prefers-reduced-motion:reduce){
    .tv-home-loading-indicator{
        animation:none;
        border-color:var(--mint);
    }
}

.admin-screen .game-rule-help{
    min-width:48px;
    min-height:48px;
    border-radius:12px;
    font-size:1rem;
    font-weight:800;
}

.admin-screen .wallet-member-list,
.admin-screen .wallet-logs,
.admin-screen .game-history-list,
.admin-screen .standing-log-list,
.admin-screen .ranking-list{
    gap:9px;
}

.admin-screen .wallet-member-row{
    grid-template-columns:42px minmax(0, 1fr) minmax(136px, auto) minmax(124px, auto);
    gap:8px 12px;
    min-height:72px;
    padding:11px 13px;
    background:#101d2a;
    border-color:#2e4458;
    border-radius:14px;
    transition:background .16s ease, border-color .16s ease, transform .16s ease;
}

.admin-screen .wallet-member-row:hover{
    background:#152637;
    border-color:#4b9d83;
    transform:translateY(-1px);
}

.admin-screen .wallet-member-title strong{
    min-width:0;
    font-size:.91rem;
    font-weight:720;
    overflow-wrap:anywhere;
}

.admin-screen .wallet-member-row time,
.admin-screen .wallet-member-name small{
    font-size:.7rem;
}

.admin-screen .wallet-member-money>b{
    color:#ffdc83;
    font-size:.91rem;
    font-weight:760;
    font-variant-numeric:tabular-nums;
}

.admin-screen .wallet-member-game-balance{
    color:#a9bac8;
    font-size:.67rem;
}

.admin-screen .admin-entry-layout{
    gap:22px;
}

.admin-screen .admin-entry-qr{
    align-self:start;
    padding:12px;
    background:#f7f9fb;
    border:1px solid #e3e8ed;
    border-radius:16px;
    box-shadow:0 8px 24px #0002;
}

.admin-screen .admin-entry-qr .qr-image{
    border-radius:8px;
}

.admin-screen .admin-entry-links>p{
    margin:10px 0 0;
}

.admin-screen .admin-logout{
    justify-self:end;
    min-width:172px;
    min-height:46px;
    border-radius:12px;
}

@media(max-width:720px){
    .admin-screen .admin-title:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:18px;
    }

    .admin-screen .admin-entry-layout:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:16px;
    }
}

@media(max-width:560px){
    .admin-screen:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:12px 12px max(28px, env(safe-area-inset-bottom));
    }

    .admin-screen .admin-header:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:42px;
        gap:8px;
        padding-bottom:10px;
    }

    .admin-screen .admin-header .brand:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.66rem;
        letter-spacing:.12em;
    }

    .admin-screen .admin-header>div:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:6px;
    }

    .admin-screen .admin-header .family-pill:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.admin-screen .admin-header .admin-ingame-link:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:34px;
        padding:6px 9px;
        font-size:.71rem;
    }

    .admin-screen .admin-content:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:12px;
        margin-top:14px;
    }

    .admin-screen .admin-title:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:15px;
        border-radius:16px;
    }

    .admin-screen .admin-title>div:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr) auto;
        column-gap:10px;
        row-gap:2px;
    }

    .admin-screen .admin-title .eyebrow:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.62rem;
    }

    .admin-screen .admin-title h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(1.48rem, 7vw, 1.9rem);
        line-height:1.18;
    }

    .admin-screen .admin-title .muted:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.72rem;
    }

    .admin-screen #admin-start-shortcut:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-width:0;
        min-height:42px;
        padding:8px 10px;
        font-size:.72rem;
    }

    .admin-screen .admin-tabs:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:3px;
        padding:4px;
        border-radius:12px;
    }

    .admin-screen .admin-tab:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:42px;
        padding:7px 2px;
        border-radius:8px;
        font-size:.72rem;
        letter-spacing:-.06em;
    }

    .admin-screen .admin-tab-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:11px;
    }

    .admin-screen .admin-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:15px;
        border-radius:15px;
    }

    .admin-screen .admin-card h2:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        margin-bottom:11px;
        font-size:1.04rem;
    }

    .admin-screen .card-heading:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex-wrap:wrap;
        gap:8px;
        margin-bottom:13px;
    }

    .admin-screen .card-heading>div:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex:1 1 100%;
        width:100%;
        min-width:0;
    }

    .admin-screen .card-heading>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.admin-screen .card-heading>b:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex:0 1 auto;
        max-width:100%;
        white-space:normal;
        overflow-wrap:anywhere;
    }

    .admin-screen .card-heading h2:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        word-break:keep-all;
        overflow-wrap:anywhere;
    }

    .admin-screen .card-heading>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.admin-screen .card-heading>b:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:4px 7px;
        font-size:.68rem;
    }

    .admin-screen .settings-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr);
        gap:12px;
    }

    .admin-screen .settings-grid label:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.admin-screen .account-form label:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.8rem;
    }

    .admin-screen .game-rule-set-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr) 44px;
        gap:7px 8px;
    }

    .admin-screen .game-rule-help:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:44px;
        min-width:44px;
        min-height:48px;
    }

    .admin-screen .wallet-member-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:38px minmax(0, 1fr) minmax(92px, auto);
        grid-template-rows:auto auto;
        grid-template-areas:'avatar identity money' 'avatar joined money';
        gap:3px 9px;
        min-height:66px;
        padding:9px 10px;
        border-radius:12px;
    }

    .admin-screen .wallet-member-row>.avatar:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-area:avatar;
        width:36px;
        height:36px;
        font-size:1.18rem;
        border-radius:11px;
    }

    .admin-screen .wallet-member-name:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-area:identity;
        min-width:0;
        align-self:end;
        gap:1px;
    }

    .admin-screen .wallet-member-name small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.64rem;
    }

    .admin-screen .wallet-member-row time:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-area:joined;
        grid-column:auto;
        grid-row:auto;
        align-self:start;
        overflow:hidden;
        font-size:.6rem;
        text-overflow:ellipsis;
    }

    .admin-screen .wallet-member-money:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-area:money;
        grid-column:auto;
        grid-row:1 / span 2;
        align-self:center;
        gap:2px;
    }

    .admin-screen .wallet-member-money>b:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.79rem;
    }

    .admin-screen .wallet-member-game-balance:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:100%;
        font-size:.58rem;
        white-space:normal;
        overflow-wrap:anywhere;
    }

    .admin-screen .admin-entry-layout:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr);
        gap:13px;
    }

    .admin-screen .admin-entry-qr:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:142px;
        padding:9px;
    }

    .admin-screen .admin-entry-qr .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:112px;
    }

    .admin-screen .admin-entry-links:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        text-align:center;
    }

    .admin-screen .admin-link-actions:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        justify-content:center;
    }

    .admin-screen .admin-link-actions .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex:1 1 145px;
    }

    .admin-screen .admin-actions .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        flex:1 1 calc(50% - 8px);
        min-height:46px;
    }

    .admin-screen .account-form:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr);
        gap:11px;
    }

    .admin-screen .account-form label:first-child:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:auto;
    }

    .admin-screen .admin-logout:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        justify-self:stretch;
        width:100%;
        margin-top:3px;
    }
}

@media(max-width:360px){
    .admin-screen .admin-title>div:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr);
        grid-template-areas:'eyebrow' 'heading' 'summary' 'action';
    }

    .admin-screen #admin-start-shortcut:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        justify-self:start;
        margin-top:8px;
    }

    .admin-screen .admin-tab:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.66rem;
    }
}
/* 본인 닉네임의 브라우저 언어 선택 */
.player-locale-nickname{display:inline; padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:inherit; cursor:pointer; border-radius:6px; overflow-wrap:anywhere;}
.player-locale-nickname > span{font-size:.6em; opacity:.7; vertical-align:middle;}
.player-locale-nickname:focus-visible{outline:2px solid #88c7ff; outline-offset:4px;}
.client-language-dialog{width:min(380px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:24px; border:1px solid #40516b; border-radius:20px; background:#172238; color:#f4f7fc; box-shadow:0 24px 80px #0008;}
.client-language-dialog::backdrop{background:#070d19b8;}
.client-language-dialog h2{margin:0 0 12px; font-size:1.35rem;}
.client-language-dialog p{font-size:.9rem; line-height:1.5; color:#c2ccdc;}
.client-language-dialog label{display:block; margin:18px 0 8px;}
.client-language-dialog select{display:block; width:100%; min-height:44px; padding:10px 12px; border:1px solid #61728e; border-radius:10px; background:#0d172a; color:#fff; font:inherit;}
.client-language-dialog .error{color:#ffb5b5; min-height:1.4em; margin:12px 0;}
.client-language-actions{display:flex; justify-content:flex-end; gap:10px;}
.client-language-actions button{min-height:44px;}
.client-language-dialog :disabled{opacity:.6; cursor:wait;}

/* 최초 TV 연결 화면의 상시 로그인 번호와 진입 버튼 */
.tv-pair-setup{box-sizing:border-box;width:min(100%,360px);justify-self:center;gap:9px;padding:clamp(14px,2.2vw,24px)}
.tv-pair-setup .qr-image{width:clamp(180px,24vw,260px);height:auto;aspect-ratio:1}
.tv-pair-login-code{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;width:100%;padding:9px 12px;color:#243448;background:#eef3f7;border:1px solid #ccd7e1;border-radius:12px;text-align:left}
.tv-pair-login-code span{font-size:.84rem;font-weight:700}
.tv-pair-login-code b{color:#102437;font:800 clamp(1.4rem,3vw,1.9rem) 'DM Mono',monospace;letter-spacing:.14em}
.tv-pair-login-expiry{display:flex;align-items:baseline;gap:5px}
.tv-pair-actions{display:grid;grid-template-columns:1fr;gap:7px;width:100%}
.tv-pair-actions .button{min-height:40px;margin:0}
@media(max-width:900px){.tv-pair-setup:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:min(100%,360px)}.tv-pair-setup .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:clamp(180px,42vw,250px)}}

/* 960×540 화면은 QR과 로그인 번호를 유지하면서 첫 화면의 세로 공간을 아낍니다. */
@media (min-width:901px) and (max-height:620px){
    .tv-setup:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        box-sizing:border-box;
        grid-template-columns:minmax(0, 1.25fr) minmax(280px, .75fr);
        gap:clamp(16px, 2.5vw, 28px);
        min-height:100vh;
        min-height:100dvh;
        padding:clamp(14px, 3vh, 22px) clamp(20px, 4vw, 40px);
    }

    .tv-setup .tv-welcome h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        margin:12px 0;
        font-size:clamp(2.15rem, 5vw, 3.3rem);
        line-height:1;
    }

    .tv-setup .tv-welcome>p:not(.eyebrow):where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:clamp(.9rem, 1.4vw, 1.05rem);
        line-height:1.45;
    }

    .tv-setup .feature-list:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:9px;
        margin-top:18px;
        font-size:clamp(.82rem, 1.35vw, .98rem);
    }

    .tv-pair-setup:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:min(100%, 340px);
        gap:5px;
        padding:12px 16px;
        border-radius:18px;
    }

    .tv-pair-setup .qr-image:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:180px;
        height:180px;
    }

    .tv-pair-setup>strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.98rem;
    }

    .tv-pair-setup>small:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.76rem;
        line-height:1.3;
    }

    .tv-pair-login-code:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:8px;
        padding:7px 10px;
    }

    .tv-pair-login-code b:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:1.3rem;
    }

    .tv-pair-actions:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:5px;
    }

    .tv-pair-actions .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:36px;
        padding:6px 10px;
    }
}

/* 가로형 휴대폰은 손패와 배팅 조작을 나란히 두어 첫 화면에서 바로 행동할 수 있게 합니다. */
@media (min-width:600px) and (max-width:900px) and (orientation:landscape) and (max-height:520px){
    .phone-screen:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        padding:6px 12px max(12px, env(safe-area-inset-bottom));
    }

    .phone-header:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:900px;
        padding:2px 4px 6px;
    }

    .phone-game-screen .phone-game:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr) minmax(0, 1.15fr);
        align-items:start;
        gap:8px;
        width:100%;
        max-width:900px;
    }

    .phone-game-screen .phone-game>.my-hand:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1;
        grid-row:1;
        min-width:0;
        width:100%;
        margin:0;
        padding:10px;
    }

    .phone-game-screen .phone-game>.betting-control-panel:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:2;
        grid-row:1;
        align-self:start;
        min-width:0;
        width:100%;
        margin:0;
        padding:9px;
    }

    .phone-game-screen .phone-game>.phone-table-details:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.phone-game-screen .phone-game>.rebuy-box:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1 / -1;
    }

    .phone-game-screen .phone-game>.phone-table-details:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-row:2;
        width:100%;
    }

    .phone-game-screen .phone-game>.rebuy-box:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-row:3;
    }

    .phone-game-screen .phone-game .hand-title h1:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:1.25rem;
    }

    .phone-game-screen .phone-game .private-cards:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:0;
        gap:7px;
        margin:5px 0 2px;
        padding:5px;
    }

    .phone-game-screen .phone-game .private-cards .playing-card:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        width:clamp(66px, 11vw, 92px);
        height:clamp(90px, 15vw, 125px);
        border-radius:10px;
    }

    .phone-game-screen .phone-game .hand-status-line:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        margin-top:6px;
    }
}

.join-observer-action{
    display:grid;
    gap:12px;
    margin-top:30px;
    padding-top:22px;
    border-top:1px solid #2c4054;
    text-align:center;
}

.join-observer-hint{
    margin:0;
    color:var(--muted);
    line-height:1.5;
}

.join-observer-action .button{
    min-height:50px;
}

.join-observer-action .button:disabled,
.join-observer-action .button:disabled:hover{
    cursor:not-allowed;
    opacity:.56;
    filter:saturate(.45);
    transform:none;
}

/* 방 개설 이후 관리자가 직접 선택하는 게임 화면 진입 영역입니다. */
.admin-screen .admin-game-screen-entry{
    display:grid;
    gap:9px;
    margin:0 0 20px;
    padding:16px;
    border:1px solid #396653;
    border-radius:14px;
    background:#18332c66;
}

.admin-screen .admin-game-screen-entry .button{
    min-width:0;
    white-space:normal;
}

.admin-screen .admin-game-screen-entry p{
    margin:0;
    line-height:1.5;
}

.admin-screen .admin-game-screen-entry .error:empty{
    display:none;
}

/* 가족 선택 대신 접속 현황과 게임별 접근 설정을 표시합니다. */
.admin-room-member-list{
    display:grid;
    gap:8px;
    margin-top:16px;
}

.admin-room-member{
    display:grid;
    grid-template-columns:36px minmax(0, 1fr) auto;
    align-items:center;
    gap:10px;
    min-width:0;
    padding:10px;
    background:#0d1924;
    border:1px solid #2c4153;
    border-radius:12px;
}

.admin-room-member .avatar{
    width:36px;
    height:36px;
    font-size:1.2rem;
}

.admin-room-member-name{
    display:grid;
    gap:4px;
    min-width:0;
    overflow-wrap:anywhere;
}

.admin-room-member-name small,
.admin-room-manager{
    color:var(--muted);
    font-size:.7rem;
}

.admin-room-member.is-blocked{
    border-color:#795c38;
}

.admin-room-member.is-blocked .admin-room-member-name small{
    color:var(--gold);
}

.admin-screen .admin-room-member .admin-room-access{
    min-height:34px;
    max-width:112px;
    padding:6px 9px;
    border-radius:9px;
    font-size:.7rem;
    line-height:1.3;
    white-space:normal;
}

.admin-screen .admin-room-start .button{
    margin-top:14px;
}

/* 시험용 봇은 이름과 조절 패널을 나눠 속도·성향 안내를 읽기 쉽게 표시합니다. */
.admin-screen .admin-bot-create-button{
    min-width:0;
    white-space:normal;
}

.admin-screen .admin-room-member.is-bot{
    grid-template-columns:36px minmax(0,1fr);
    border-color:#457a72;
    background:linear-gradient(135deg,#10241f,#111e2c 58%,#142334);
    box-shadow:inset 3px 0 #4ecfac;
}

.admin-bot-roster-actions{
    display:grid;
    grid-column:1/-1;
    grid-template-columns:minmax(0,1fr) minmax(104px,120px);
    align-items:start;
    gap:10px;
    min-width:0;
}

.admin-bot-settings{
    min-width:0;
    overflow:hidden;
    border:1px solid #314b5b;
    border-radius:12px;
    background:#0c1823a8;
}

.admin-bot-settings[open]{
    border-color:#438b7a;
    background:#0b191f;
}

.admin-bot-settings summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    min-height:42px;
    padding:7px 10px;
    cursor:pointer;
    list-style:none;
}

.admin-bot-settings summary::-webkit-details-marker{
    display:none;
}

.admin-bot-settings summary::after{
    flex:0 0 auto;
    color:#93b5bd;
    content:"⌄";
    font-size:.9rem;
    font-weight:900;
    transition:transform .16s ease;
}

.admin-bot-settings[open] summary::after{
    transform:rotate(180deg);
}

.admin-bot-settings-title{
    flex:0 0 auto;
    color:#86e3c5;
    font-size:.76rem;
    font-weight:800;
}

.admin-bot-current-settings{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:5px;
    min-width:0;
}

.admin-bot-current-settings span{
    max-width:100%;
    padding:3px 7px;
    overflow:hidden;
    color:#dce9e8;
    background:#203746;
    border:1px solid #395467;
    border-radius:999px;
    font-size:.64rem;
    font-weight:750;
    line-height:1.35;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.admin-bot-current-settings [data-bot-current-setting="speed"]{
    color:#ffdf8a;
    background:#3b311f;
    border-color:#75623a;
}

.admin-bot-setting-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:0 10px 10px;
    padding-top:10px;
    border-top:1px solid #293f4b;
}

.admin-bot-settings:not([open]) > .admin-bot-setting-grid{
    display:none;
}

.admin-bot-setting-grid label{
    display:grid;
    align-content:start;
    gap:6px;
    min-width:0;
    padding:9px;
    color:#c7d5dd;
    background:#142331;
    border:1px solid #2c4353;
    border-radius:10px;
    font-size:.7rem;
    font-weight:700;
}

.admin-bot-setting-grid select{
    width:100%;
    min-width:0;
    min-height:40px;
    padding:6px 8px;
    font-size:.75rem;
    text-overflow:ellipsis;
}

.admin-bot-setting-grid .admin-bot-setting-hint{
    min-height:2.8em;
    color:#9fb1bd;
    font-size:.66rem;
    font-weight:500;
    line-height:1.4;
    overflow-wrap:anywhere;
}

.admin-screen .admin-bot-roster-actions .button{
    grid-column:2;
    align-self:start;
    min-width:0;
    min-height:42px;
    padding:8px 10px;
    border-radius:11px;
    font-size:.75rem;
    font-weight:800;
    white-space:normal;
}

.admin-bot-overlay{
    position:fixed;
    inset:0;
    z-index:45;
    display:grid;
    place-items:center;
    padding:12px;
    background:#060b12df;
}

.admin-bot-modal{
    position:relative;
    width:min(100%,440px);
    max-height:calc(100dvh - 24px);
    padding:clamp(18px,4vw,28px);
    overflow:auto;
    color:#eef2f5;
    background:#142130;
    border:1px solid #77917c;
    border-radius:18px;
    box-shadow:0 18px 70px #000c;
}

.admin-bot-modal h2{
    margin:4px 0 8px;
}

.admin-bot-modal .muted{
    margin:0 0 16px;
}

.admin-bot-close{
    position:absolute;
    top:10px;
    right:12px;
    border:0;
    background:transparent;
    color:inherit;
    font-size:1.6rem;
    cursor:pointer;
}

#admin-bot-create-form{
    display:grid;
    gap:14px;
}

#admin-bot-create-form label{
    display:grid;
    gap:7px;
    min-width:0;
}

#admin-bot-create-form :is(input,select){
    width:100%;
    min-width:0;
    min-height:44px;
}

.admin-bot-fixed-amount{
    margin-top:-10px;
    color:var(--muted);
}

.admin-bot-modal-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}

.admin-bot-modal-actions .button{
    min-width:0;
    white-space:normal;
}

@media(max-width:560px){
    .admin-room-member.is-bot:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:36px minmax(0,1fr);
    }

    .admin-bot-roster-actions:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0,1fr);
        gap:8px;
    }

    .admin-bot-roster-actions .button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-column:1;
        min-width:0;
        min-height:44px;
    }

    .admin-bot-setting-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0,1fr);
    }

    .admin-bot-setting-grid .admin-bot-setting-hint:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        min-height:0;
    }
}

.phone-screen .waiting-game-card{
    min-width:0;
    overflow-wrap:anywhere;
}

.waiting-entry-window{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.5fr);
    align-items:center;
    gap:6px 12px;
    min-height:68px;
    margin:16px 0;
    padding:12px;
    border:1px solid #395b57;
    border-radius:12px;
    background:#193d333d;
}

.waiting-entry-window>span,
.waiting-entry-window>small{
    color:var(--muted);
    font-size:.75rem;
    line-height:1.4;
}

.waiting-entry-window>span{
    min-width:0;
    overflow-wrap:normal;
    word-break:keep-all;
}

.waiting-entry-window>strong{
    min-width:0;
    max-width:100%;
    color:var(--mint);
    font-size:clamp(1rem, 4vw, 1.2rem);
    font-variant-numeric:tabular-nums;
    text-align:right;
    line-height:1.35;
    overflow-wrap:normal;
    word-break:keep-all;
}

.waiting-entry-window>small{
    grid-column:1/-1;
}

.waiting-entry-window.is-closed>strong{
    color:var(--gold);
}

.waiting-game-capacity{
    margin:10px 0;
    color:var(--muted);
    font-size:.8rem;
}

.waiting-entry-blocked{
    border-color:#7a474a;
}

@media(max-width:560px){
    .waiting-entry-window:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0, 1fr);
        align-items:start;
        gap:4px;
    }

    .waiting-entry-window>strong:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        justify-self:stretch;
        text-align:right;
    }
}

/* 기록 재생 조작부는 게임 렌더링과 분리하고 실제 높이만큼 화면 공간을 확보합니다. */
.system-replay-controls{
    position:fixed;z-index:900;top:max(8px,env(safe-area-inset-top));left:12px;right:12px;
    display:grid;gap:8px;padding:12px 16px;border:1px solid #365767;border-radius:14px;
    color:#ebf7fa;background:rgba(12,27,40,.97);box-shadow:0 8px 28px #0006;
    font-family:'Noto Sans KR','Malgun Gothic',system-ui,sans-serif;font-size:.8rem;line-height:1.4;
}
.system-replay-heading{display:flex;align-items:center;gap:12px;min-width:0}
.system-replay-heading>strong{flex-shrink:0;color:#65e1bc}
.system-replay-heading>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.system-replay-heading>a{margin-left:auto;flex-shrink:0;color:#d2e4ed;font-size:.75rem;text-decoration:underline;text-underline-offset:3px}
.system-replay-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.system-replay-actions>button{min-height:36px;padding:6px 15px;border:1px solid #4f857e;border-radius:8px;background:#173c38;color:#e4fff6;font:inherit;font-weight:700}
.system-replay-actions>button:disabled{opacity:.45;cursor:default}
.system-replay-actions>span{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap;color:#c6d7e0}
.system-replay-timeline{display:flex;align-items:center;gap:12px;min-width:0;color:#c6d7e0}
.system-replay-timeline>span{flex:0 0 auto;font-size:.75rem}
.system-replay-timeline>input{
    appearance:none;-webkit-appearance:none;display:block;flex:1;min-width:0;width:100%;height:28px;margin:0;
    border:0;background:transparent;cursor:pointer;accent-color:#65e1bc;
}
.system-replay-timeline>input::-webkit-slider-runnable-track{
    height:6px;border-radius:999px;background:linear-gradient(to right,#65e1bc var(--replay-seek-progress,0%),#365363 var(--replay-seek-progress,0%));
}
.system-replay-timeline>input::-webkit-slider-thumb{
    appearance:none;-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border:2px solid #d1fff0;border-radius:50%;background:#65e1bc;
}
.system-replay-timeline>input::-moz-range-track{height:6px;border-radius:999px;background:#365363}
.system-replay-timeline>input::-moz-range-progress{height:6px;border-radius:999px;background:#65e1bc}
.system-replay-timeline>input::-moz-range-thumb{width:14px;height:14px;border:2px solid #d1fff0;border-radius:50%;background:#65e1bc}
.system-replay-hand-jump{display:flex;align-items:center;gap:10px;min-width:0;margin:0}
.system-replay-hand-jump>[data-replay-hand-total]{margin-right:auto;font-size:.75rem;font-variant-numeric:tabular-nums;color:#c6d7e0}
.system-replay-hand-jump select,.system-replay-hand-number>input{
    min-width:0;min-height:36px;margin:0;padding:6px 10px;border:1px solid #365767;border-radius:8px;
    background:#0b1a28;color:#e3f3f7;font:inherit;
}
.system-replay-hand-jump select{width:190px;max-width:100%;text-overflow:ellipsis}
.system-replay-hand-number{display:flex;align-items:center;gap:6px;min-width:0}
.system-replay-hand-number>input{width:110px}
.system-replay-hand-number>button{flex-shrink:0;min-height:36px;padding:6px 14px;border:1px solid #4f857e;border-radius:8px;background:#173c38;color:#e4fff6;font:inherit;font-weight:700}
.system-replay-hand-number>input[aria-invalid="true"]{border-color:#ef8793}
.system-replay-hand-error,.system-replay-hand-note{margin:0;font-size:.72rem;overflow-wrap:anywhere}
.system-replay-hand-error{color:#ffadb7}
.system-replay-hand-note{color:#ffdb88}
.system-replay-controls [hidden]{display:none}
.system-replay-controls input:disabled,.system-replay-controls select:disabled,.system-replay-hand-number>button:disabled{opacity:.45;cursor:default}
.system-replay-controls input:focus-visible,.system-replay-controls select:focus-visible,.system-replay-controls button:focus-visible{outline:2px solid #90e8d0;outline-offset:3px}
.system-replay-status{display:flex;gap:8px 14px;flex-wrap:wrap;min-width:0;color:#a8c2d3;font-size:.72rem}
.system-replay-status>[data-replay-partial]{color:#ffdb88}
.system-replay-status>[hidden]{display:none}
body.replay-mode #app{padding-top:var(--replay-controls-height,140px)}
body.replay-mode.observer-mode .tv-shell.game-screen,
body.replay-mode .tv-shell.waiting-room,
body.replay-mode.observer-mode .cancellation-screen{
    min-height:calc(100svh - var(--replay-controls-height,140px));max-height:none;overflow:visible;
    padding-top:12px;
}
body.replay-mode .waiting-entry-locked{display:none}
body.replay-mode.replay-paused #app *{animation-play-state:paused!important}
.system-replay-message{display:grid;justify-items:center;gap:20px;max-width:650px;min-height:300px;margin:30px auto;padding:32px 24px;text-align:center;align-content:center}
.system-replay-message h1{font-size:1.6rem;margin:0}
.system-replay-message p{line-height:1.7;color:#bdd2df;margin:0}
@media(max-width:600px){
    .system-replay-controls:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){left:8px;right:8px;padding:10px;gap:7px;font-size:.75rem}
    .system-replay-heading:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:8px}
    .system-replay-heading>a:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.67rem}
    .system-replay-heading>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){max-width:24vw}
    .system-replay-actions>button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:6px 11px;min-height:36px}
    .system-replay-actions>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.72rem}
    .system-replay-timeline:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:8px}
    .system-replay-timeline>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.68rem}
    .system-replay-hand-jump:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
    .system-replay-hand-jump>[data-replay-hand-total]:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:1/-1;font-size:.7rem}
    .system-replay-hand-jump select:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:100%;padding:6px;font-size:.7rem}
    .system-replay-hand-number>input:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:100%;padding:6px;font-size:.7rem}
    .system-replay-hand-number>button:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:6px 10px}
    .system-replay-hand-error:where(:not(.tv-fixed-stage, .tv-fixed-stage *)),.system-replay-hand-note:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.66rem}
    .system-replay-status:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:.66rem}
}

/* 관리자 게임 기록은 기본 화면을 가볍게 유지하고 요청한 종류만 레이어로 표시합니다. */
.admin-log-open-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.admin-log-open{
    display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:86px;
    padding:16px;border:1px solid #345369;border-radius:15px;background:#112637;color:#e8f5fa;
    text-align:left;font:inherit;cursor:pointer;
}
.admin-log-open:hover,.admin-log-open:focus-visible{border-color:#74d6bb;background:#173546}
.admin-log-open>span:first-child{display:grid;gap:5px;min-width:0}
.admin-log-open strong{font-size:.96rem;overflow-wrap:anywhere}
.admin-log-open small{color:#a8c4d1;font-size:.75rem;line-height:1.45}
.admin-log-open>span:last-child{color:#74d6bb;font-size:1.8rem;line-height:1}

/* 회수된 손패는 카드 그림 없이 두 장의 점선 자리만 표시합니다. */
.seat-cards>.collected-card-slot,
.private-cards.cards-collected>.collected-card-slot{
    visibility:visible;opacity:1;background:transparent;border:1px dashed #8fbaad;
    box-shadow:none;pointer-events:none;
}
.private-cards.cards-collected{cursor:default;touch-action:pan-y}

/* 보드의 다섯 점선 자리는 손패 회수와 분리해 항상 표시하고 화면 폭에 눌리지 않게 합니다. */
.community-board-cards>.board-card-empty,
.phone-game-screen .private-board-preview>.private-board-slot{
    display:block;box-sizing:border-box;flex:0 0 auto;visibility:visible;opacity:1;
    border:2px dashed #8fbaad;background:rgba(13,41,40,.4);pointer-events:none;
}
.admin-game-log-dialog[open]{
    display:flex;flex-direction:column;width:min(880px,calc(100vw - 28px));height:min(780px,calc(100dvh - 28px));
    max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #436779;border-radius:19px;
    background:#122234;color:#edf8fc;box-shadow:0 22px 80px #000b;
    font-family:'Noto Sans KR','Malgun Gothic',system-ui,sans-serif;
}
.admin-game-log-dialog::backdrop{background:rgba(3,10,18,.76)}
.admin-game-log-dialog [hidden]{display:none!important}
.admin-log-dialog-head{display:flex;flex-shrink:0;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 24px 13px}
.admin-log-dialog-head>div:first-child{min-width:0}
.admin-log-dialog-head .eyebrow{margin:0 0 3px;color:#76dfbd}
.admin-log-dialog-head h2{margin:0;font-size:1.5rem;line-height:1.28}
.admin-log-meta,.admin-log-scope{margin:5px 0 0;color:#b6c9d3;font-size:.78rem;line-height:1.45}
.admin-log-scope{color:#e4c98d}
.admin-log-head-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.admin-log-refresh,.admin-log-close{
    min-height:38px;padding:7px 11px;border:1px solid #51748a;border-radius:9px;background:#1b3549;
    color:#e8f8fa;font:inherit;font-size:.76rem;font-weight:700;cursor:pointer;
}
.admin-log-close{width:38px;padding:3px;font-size:1.5rem;line-height:1}
.admin-log-tabs{display:flex;flex-shrink:0;gap:7px;overflow-x:auto;padding:0 24px 14px;scrollbar-width:thin}
.admin-log-tabs button{flex:0 0 auto;min-height:38px;padding:7px 13px;border:1px solid #45677a;border-radius:10px;background:#192d3d;color:#cbdde7;font:inherit;font-size:.81rem;font-weight:700;cursor:pointer}
.admin-log-tabs button.is-current{border-color:#69cbae;background:#1c5048;color:#f5fff9}
.admin-log-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;padding:0 24px 15px;scrollbar-gutter:stable}
.admin-log-list{display:grid;gap:12px;overflow-anchor:none}
.admin-log-page{display:grid;gap:8px;min-width:0}
.admin-log-row{display:grid;grid-template-columns:148px minmax(0,1fr) auto;align-items:start;gap:8px 14px;padding:13px 14px;border:1px solid #304b5e;border-radius:12px;background:#0d1b2a}
.admin-log-row time{color:#a9bdcb;font-size:.76rem;font-variant-numeric:tabular-nums}
.admin-log-row-main{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.admin-log-row-main strong{font-size:.88rem;font-weight:700}
.admin-log-row-main small{color:#abbfcb;font-size:.75rem;line-height:1.55}
.admin-log-state-badge{padding:3px 8px;border:1px solid #6d8b79;border-radius:999px;color:#baf1d4;font-size:.72rem;white-space:nowrap}
.admin-log-scroll>.admin-log-status,.admin-log-error{margin:14px 2px;color:#aabfca;font-size:.81rem;line-height:1.5}
.admin-log-error{color:#ffbac0}
.admin-log-scroll>.admin-log-status:empty,.admin-log-error:empty{display:none}
.admin-log-retry,.admin-log-more{margin:0 0 14px}
.admin-log-dialog-footer{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;min-height:65px;padding:11px 24px;border-top:1px solid #355267;background:#14283a;border-radius:0 0 19px 19px}
.admin-log-dialog-footer>span{color:#b8cbd5;font-size:.73rem;line-height:1.4}
.admin-log-pages{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px}
.admin-log-pages button{min-width:34px;min-height:34px;padding:4px 7px;border:1px solid #547183;border-radius:8px;background:#1b3547;color:#e6f5f8;font:inherit;font-size:.8rem;cursor:pointer}
.admin-log-pages button.is-current{border-color:#82dcc2;background:#235746;color:#fff;font-weight:800}
.admin-log-pages button:disabled{opacity:.4;cursor:default}
.admin-log-pages>span{padding:0 2px;color:#a9bdca}
.admin-game-log-dialog button:focus-visible,.admin-log-scroll:focus-visible{outline:2px solid #8ce8d0;outline-offset:2px}
@media(max-width:680px){
    .admin-log-open-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-template-columns:1fr}
    .admin-log-open:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){min-height:65px;padding:12px 14px}
    .admin-game-log-dialog[open]:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){width:calc(100vw - 14px);height:calc(100dvh - 14px);border-radius:13px}
    .admin-log-dialog-head:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:16px 14px 12px}
    .admin-log-dialog-head h2:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){font-size:1.22rem}
    .admin-log-head-actions:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){gap:5px}
    .admin-log-refresh:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){max-width:95px;line-height:1.3}
    .admin-log-tabs:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:0 14px 10px}
    .admin-log-scroll:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){padding:0 14px 10px;scrollbar-gutter:auto}
    .admin-log-row:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:11px}
    .admin-log-row time:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){grid-column:1/-1}
    .admin-log-dialog-footer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){display:grid;gap:6px;padding:9px 14px}
    .admin-log-pages:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){justify-content:flex-start}
}

.player-game-timer{
    justify-items:end;
    gap:1px;
    font-size:.72rem;
}

.player-game-timer>span{
    font-size:.62rem;
}

.player-game-timer>b{
    font-size:.78rem;
}

.timer-waiting-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    padding:10px 12px;
    border:1px solid #56d8b044;
    border-radius:12px;
    background:#0d2b27a8;
    color:#d9fff1;
}

.timer-waiting-summary strong{
    color:#ffe49b;
    font-variant-numeric:tabular-nums;
}

@media (max-width:600px){
    .game-screen .tv-game-timer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:1px;
        padding-top:2px;
    }

    .game-screen .tv-game-timer>span:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.47rem;
        white-space:nowrap;
    }

    .game-screen .tv-game-timer>b:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        font-size:.56rem;
        white-space:nowrap;
    }

    .phone-game-screen .player-game-timer:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:82px;
    }
}

.admin-screen .admin-applied-settings{
    display:grid;
    gap:14px;
    border-color:#3b655d;
    background:linear-gradient(145deg,#152831,#111d29 62%);
}

.admin-screen .admin-applied-settings .card-heading{
    align-items:flex-start;
}

.admin-screen .admin-applied-settings .card-heading h2{
    margin:0;
}

.admin-screen .admin-applied-settings-badge{
    flex:0 0 auto;
    padding:7px 10px;
    border:1px solid #3f947b;
    border-radius:999px;
    color:#a6f0d7;
    background:#12382f;
    font-size:.76rem;
    font-weight:750;
    line-height:1.2;
}

.admin-screen .admin-applied-settings-hint{
    margin:0;
    font-size:.84rem;
    line-height:1.55;
}

.admin-screen .admin-applied-settings-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin:0;
}

.admin-screen .admin-applied-setting{
    min-width:0;
    padding:12px 13px;
    border:1px solid #2e4656;
    border-radius:12px;
    background:#0e1925;
}

.admin-screen .admin-applied-setting dt{
    margin:0 0 6px;
    color:#a9bac8;
    font-size:.75rem;
    font-weight:650;
    line-height:1.35;
}

.admin-screen .admin-applied-setting dd{
    margin:0;
    color:#f2f5f7;
    font-size:.96rem;
    font-weight:750;
    line-height:1.45;
    overflow-wrap:anywhere;
}

.admin-screen .admin-applied-setting:last-child{
    grid-column:1 / -1;
}

@media (max-width:600px){
    .admin-screen .admin-applied-settings-grid:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        grid-template-columns:minmax(0,1fr);
    }

    .admin-screen .admin-applied-settings .card-heading:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        gap:10px;
    }

    .admin-screen .admin-applied-settings-badge:where(:not(.tv-fixed-stage, .tv-fixed-stage *)){
        max-width:45%;
        white-space:normal;
        text-align:center;
    }
}
/* 960×540 게임 무대를 화면 중앙에 놓고 16:9를 유지합니다. */
html.tv-fixed-view{
    --tv-stage-scale:1;
    overflow:hidden;
}

html.tv-fixed-view body{
    overflow:hidden;
}

.game-screen.tv-fixed-stage{
    position:fixed !important;
    top:50% !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    width:960px !important;
    min-width:960px !important;
    max-width:960px !important;
    height:540px !important;
    min-height:540px !important;
    max-height:540px !important;
    margin:0 !important;
    transform:translate(-50%,-50%) scale(var(--tv-stage-scale,1)) !important;
    transform-origin:center center;
    background:radial-gradient(ellipse at 50% -20%,#203752 0,transparent 58%),var(--bg);
}

/* Generated fixed TV projection: 960 x 540. Edit CSS source modules. */
:root:where(.tv-fixed-stage, .tv-fixed-stage *){color-scheme:dark;--bg:#0b111b;--panel:#121d2b;--panel-2:#172536;--line:#26394d;--text:#f5f7fb;--muted:#a9b8c8;--mint:#52e0b1;--gold:#f3c96b;--red:#ff6475;--blue:#8eb7ff;--felt:#103d38;--shadow:0 24px 70px rgba(0,0,0,.28);font-family:'DM Sans','Noto Sans KR',sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}
*:where(.tv-fixed-stage, .tv-fixed-stage *){box-sizing:border-box}html:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:320px;min-height:100%;background:var(--bg)}body:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;min-height:540px;color:var(--text);background:radial-gradient(ellipse at 50% -20%,#203752 0,transparent 58%),var(--bg)}button:where(.tv-fixed-stage, .tv-fixed-stage *),input:where(.tv-fixed-stage, .tv-fixed-stage *){font:inherit}button:where(.tv-fixed-stage, .tv-fixed-stage *){cursor:pointer}a:where(.tv-fixed-stage, .tv-fixed-stage *){color:inherit;text-decoration:none}.hidden:where(.tv-fixed-stage, .tv-fixed-stage *){display:none!important}.muted:where(.tv-fixed-stage, .tv-fixed-stage *),small:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--muted)}.eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0 0 8px;color:var(--mint);font:500 .73rem 'DM Mono',monospace;letter-spacing:.16em;text-transform:uppercase}.brand:where(.tv-fixed-stage, .tv-fixed-stage *){font:500 .8rem 'DM Mono',monospace;letter-spacing:.11em;color:#dbe5ed}.loading:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;place-content:center;min-height:540px;text-align:center;color:var(--muted)}.spinner:where(.tv-fixed-stage, .tv-fixed-stage *){width:28px;height:28px;border:2px solid var(--line);border-top-color:var(--mint);border-radius:50%;margin:0 auto 16px;animation:tv960-spin .8s linear infinite}@keyframes tv960-spin{to{transform:rotate(360deg)}}#toast:where(.tv-fixed-stage, .tv-fixed-stage *){position:fixed;z-index:30;bottom:24px;left:50%;max-width:min(864px,620px);padding:12px 18px;background:#27384c;border:1px solid #455c73;border-radius:12px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transform:translate(-50%,12px);transition:.2s;color:var(--text)}#toast.visible:where(.tv-fixed-stage, .tv-fixed-stage *){opacity:1;transform:translate(-50%,0)}
.form-card:where(.tv-fixed-stage, .tv-fixed-stage *),.notice-card:where(.tv-fixed-stage, .tv-fixed-stage *){width:min(100% - 32px,480px);margin:clamp(28px,43.2px,90px) auto;padding:clamp(24px,48px,40px);background:linear-gradient(145deg,#172637,#101a27);border:1px solid #2c4054;border-radius:24px;box-shadow:var(--shadow)}.form-card h1:where(.tv-fixed-stage, .tv-fixed-stage *),.notice-card h1:where(.tv-fixed-stage, .tv-fixed-stage *){margin:12px 0;font-size:clamp(1.8rem,76.8px,2.7rem);line-height:1.14;letter-spacing:-.045em}.form-card>p:not(.eyebrow):where(.tv-fixed-stage, .tv-fixed-stage *),.notice-card>p:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--muted);line-height:1.65}.form-card form:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:18px;margin-top:26px}.form-card label:where(.tv-fixed-stage, .tv-fixed-stage *),.settings-grid label:where(.tv-fixed-stage, .tv-fixed-stage *),.raise-control:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:8px;color:#dce6ef;font-size:.9rem;font-weight:600}.form-card input:where(.tv-fixed-stage, .tv-fixed-stage *),.settings-grid input:where(.tv-fixed-stage, .tv-fixed-stage *),.raise-control input:where(.tv-fixed-stage, .tv-fixed-stage *),.inline-form input:where(.tv-fixed-stage, .tv-fixed-stage *){width:100%;min-height:48px;padding:12px 14px;color:var(--text);background:#0b1420;border:1px solid #34485d;border-radius:12px;outline:none}.form-card input:focus:where(.tv-fixed-stage, .tv-fixed-stage *),.settings-grid input:focus:where(.tv-fixed-stage, .tv-fixed-stage *),.raise-control input:focus:where(.tv-fixed-stage, .tv-fixed-stage *),.inline-form input:focus:where(.tv-fixed-stage, .tv-fixed-stage *){border-color:var(--mint);box-shadow:0 0 0 3px #52e0b122}.form-card small:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.77rem;font-weight:400}.button:where(.tv-fixed-stage, .tv-fixed-stage *){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:12px;font-weight:700;transition:transform .14s,filter .14s;user-select:none}.button:hover:where(.tv-fixed-stage, .tv-fixed-stage *){filter:brightness(1.08);transform:translateY(-1px)}.button:active:where(.tv-fixed-stage, .tv-fixed-stage *){transform:translateY(1px)}.button.primary:where(.tv-fixed-stage, .tv-fixed-stage *){color:#062219;background:var(--mint)}.button.secondary:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--text);background:#233448;border-color:#3a5068}.button.danger:where(.tv-fixed-stage, .tv-fixed-stage *){color:#fff;background:#a73c50}.button.gold:where(.tv-fixed-stage, .tv-fixed-stage *){color:#312406;background:var(--gold)}.button.timechip:where(.tv-fixed-stage, .tv-fixed-stage *){color:#edf3ff;background:#30445f;border-color:#567397}.button.full:where(.tv-fixed-stage, .tv-fixed-stage *){width:100%}.error:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:1.3em;margin:0;color:#ff9aa5;font-size:.87rem}.tab-row:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;gap:6px;padding:5px;background:#0b1420;border-radius:14px;margin-top:24px}.tab:where(.tv-fixed-stage, .tv-fixed-stage *){flex:1;padding:10px 8px;color:var(--muted);background:transparent;border:0;border-radius:10px}.tab.active:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--text);background:#2a3b4f}.check-row:where(.tv-fixed-stage, .tv-fixed-stage *){grid-template-columns:20px 1fr!important;align-items:center}.check-row input:where(.tv-fixed-stage, .tv-fixed-stage *){width:18px;min-height:18px}.text-link:where(.tv-fixed-stage, .tv-fixed-stage *){display:inline-block;margin-top:20px;color:#b9cbdb;text-decoration:underline;text-underline-offset:4px}.callout:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:6px;margin:16px 0;padding:14px;border-radius:12px;line-height:1.5}.callout.success:where(.tv-fixed-stage, .tv-fixed-stage *){background:#173b34;border:1px solid #27725e}.code-value:where(.tv-fixed-stage, .tv-fixed-stage *){font:600 .98rem 'DM Mono',monospace;color:var(--gold);letter-spacing:.12em}.avatar:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border:1px solid #43576c;border-radius:14px;background:#25394c;font-size:1.4rem}.avatar.large:where(.tv-fixed-stage, .tv-fixed-stage *){width:68px;height:68px;margin:0 auto 20px;border-radius:22px;font-size:2rem}.join-card:where(.tv-fixed-stage, .tv-fixed-stage *){text-align:center}.join-card form:where(.tv-fixed-stage, .tv-fixed-stage *){text-align:left}.avatar-grid:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.avatar-choice:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:5px;padding:8px 3px;color:var(--muted);background:#0b1420;border:1px solid #283b50;border-radius:12px}.avatar-choice span:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:1.45rem}.avatar-choice small:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.62rem}.avatar-choice.selected:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--text);border-color:var(--mint);background:#1e3c3b}
.tv-setup:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);align-items:center;gap:38.4px;min-height:540px;padding:57.6px 76.8px;background:radial-gradient(ellipse at 75% 45%,#173943,transparent 50%)}.tv-welcome h1:where(.tv-fixed-stage, .tv-fixed-stage *){margin:20px 0;font-size:clamp(3rem,67.2px,7.2rem);line-height:.98;letter-spacing:-.065em}.tv-welcome>p:not(.eyebrow):where(.tv-fixed-stage, .tv-fixed-stage *){max-width:670px;color:#bdcbd6;font-size:clamp(1.05rem,15.36px,1.4rem);line-height:1.7}.feature-list:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:16px;margin-top:38px;color:#dce9ea;font-size:1.08rem}.pair-qr:where(.tv-fixed-stage, .tv-fixed-stage *),.waiting-qr:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:14px;padding:clamp(18px,28.8px,32px);color:#18222d;background:#fff;border-radius:24px;box-shadow:0 28px 100px #0008;text-align:center}.pair-qr .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){width:min(268.8px,320px);height:auto;aspect-ratio:1}.pair-qr strong:where(.tv-fixed-stage, .tv-fixed-stage *),.waiting-qr b:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:1.15rem}.pair-qr small:where(.tv-fixed-stage, .tv-fixed-stage *),.waiting-qr small:where(.tv-fixed-stage, .tv-fixed-stage *){color:#526174;line-height:1.5}.qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){display:block;max-width:100%;height:auto;background:white;border-radius:7px}.qr-fallback:where(.tv-fixed-stage, .tv-fixed-stage *){max-width:250px;padding:20px;background:#f0f1f4;overflow-wrap:anywhere;font-size:.9rem}
.tv-shell:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:540px;padding:22px clamp(20px,38.4px,68px) 32px}.tv-header:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-header:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-header:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;justify-content:space-between;gap:18px}.tv-header:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:48px}.tv-header>a:last-child:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-header a:not(.brand):where(.tv-fixed-stage, .tv-fixed-stage *){color:#a8bac8;font-size:.87rem}.family-pill:where(.tv-fixed-stage, .tv-fixed-stage *){display:inline-flex;align-items:center;padding:8px 13px;color:#d3f7e9;background:#15372f;border:1px solid #286653;border-radius:999px;font-size:.85rem;font-weight:600}.waiting-main:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:48px;max-width:1460px;margin:43.2px auto}.waiting-main h1:where(.tv-fixed-stage, .tv-fixed-stage *){margin:12px 0;font-size:clamp(2.8rem,67.2px,6rem);letter-spacing:-.06em}.waiting-list:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}.waiting-player:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:10px;min-width:155px;padding:9px 14px;background:#162535;border:1px solid #2b4055;border-radius:15px}.presence:where(.tv-fixed-stage, .tv-fixed-stage *){width:8px;height:8px;margin-left:auto;background:var(--mint);border-radius:50%;box-shadow:0 0 12px var(--mint)}.presence-note:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--muted)}.waiting-qr:where(.tv-fixed-stage, .tv-fixed-stage *){width:min(288px,285px);padding:18px}.waiting-qr .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){width:100%;max-width:220px}.locked-panel:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;place-content:center;min-width:260px;min-height:200px;padding:24px;text-align:center;color:var(--muted);background:#172434;border:1px dashed #43556a;border-radius:18px;line-height:1.7}.locked-panel.compact:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:auto;min-height:60px;padding:12px}
.game-screen:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;flex-direction:column;max-height:540px;overflow:hidden}.game-meta:where(.tv-fixed-stage, .tv-fixed-stage *){color:#bdcad5;font:500 .78rem 'DM Mono',monospace}.poker-table:where(.tv-fixed-stage, .tv-fixed-stage *){position:relative;display:grid;place-items:center;flex:1;min-height:420px;margin:22px auto 16px;width:min(100%,1450px);max-height:calc(540px - 180px);aspect-ratio:16/8.4;background:radial-gradient(ellipse,#236252 0,#155045 53%,#0d3430 73%,#17222b 74%,#111a24 77%,#0c121a 100%);border:12px solid #202a31;border-radius:48%/44%;box-shadow:inset 0 0 0 4px #536052,inset 0 0 60px #051c19,0 24px 90px #0008}.table-glow:where(.tv-fixed-stage, .tv-fixed-stage *){position:absolute;inset:12%;border:1px solid #71c4a336;border-radius:50%;pointer-events:none}.seat-grid:where(.tv-fixed-stage, .tv-fixed-stage *){position:absolute;inset:2%;display:grid;grid-template-columns:repeat(3,minmax(135px,1fr));grid-template-rows:repeat(2,minmax(105px,1fr));align-items:center;justify-items:center;gap:3%;pointer-events:none}.seat:where(.tv-fixed-stage, .tv-fixed-stage *){position:relative;width:min(100%,260px);min-height:90px;padding:10px 13px;background:#101c28eF;border:1px solid #526a78;border-radius:15px;box-shadow:0 10px 24px #06120f77;pointer-events:auto}.seat:nth-child(1):where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:1;grid-row:1}.seat:nth-child(2):where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:2;grid-row:1}.seat:nth-child(3):where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:3;grid-row:1}.seat:nth-child(4):where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:3;grid-row:2}.seat:nth-child(5):where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:2;grid-row:2}.seat:nth-child(6):where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:1;grid-row:2}.seat:nth-child(n+7):where(.tv-fixed-stage, .tv-fixed-stage *){display:none}.seat.active:where(.tv-fixed-stage, .tv-fixed-stage *){border-color:var(--gold);box-shadow:0 0 0 2px #f3c96b44,0 10px 30px #06120f}.seat.folded:where(.tv-fixed-stage, .tv-fixed-stage *),.seat.eliminated:where(.tv-fixed-stage, .tv-fixed-stage *){opacity:.52}.seat-top:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:8px}.seat-top .avatar:where(.tv-fixed-stage, .tv-fixed-stage *){width:34px;height:34px;font-size:1.15rem;border-radius:11px}.seat-top>div:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:3px;min-width:0}.seat-top strong:where(.tv-fixed-stage, .tv-fixed-stage *){max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem}.seat-top small:where(.tv-fixed-stage, .tv-fixed-stage *),.seat-foot:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.68rem;color:var(--muted)}.stack:where(.tv-fixed-stage, .tv-fixed-stage *){margin-left:auto;color:var(--gold);font:500 .78rem 'DM Mono',monospace}.seat-cards:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;gap:3px;margin:6px 0}.playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;place-items:center;width:31px;height:43px;color:#16202a;background:#f8f8f4;border:1px solid #d4dae0;border-radius:5px;font:700 .8rem 'DM Mono',monospace}.playing-card b:where(.tv-fixed-stage, .tv-fixed-stage *){align-self:end}.playing-card span:where(.tv-fixed-stage, .tv-fixed-stage *){align-self:start;margin-top:-2px}.playing-card.red:where(.tv-fixed-stage, .tv-fixed-stage *){color:#d73a50}.card-back:where(.tv-fixed-stage, .tv-fixed-stage *){color:#f7e6c5;background:repeating-linear-gradient(45deg,#6247a4,#6247a4 4px,#372c71 4px,#372c71 8px);border-color:#a99cd8}.seat-foot:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;justify-content:space-between}.turn-chip:where(.tv-fixed-stage, .tv-fixed-stage *){position:absolute;top:-9px;right:9px;padding:3px 8px;color:#342704;background:var(--gold);border-radius:999px;font-size:.62rem;font-weight:800}.board-zone:where(.tv-fixed-stage, .tv-fixed-stage *){z-index:1;display:grid;justify-items:center;gap:9px;text-align:center}.board-zone>p:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;color:#bbd8d1;font-size:.76rem;letter-spacing:.1em;text-transform:uppercase}.board-cards:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;justify-content:center;gap:7px;min-height:78px}.board-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){width:49px;height:69px;font-size:1rem;border-radius:8px}.board-placeholder:where(.tv-fixed-stage, .tv-fixed-stage *){align-self:center;color:#9ec5b9;font-size:.8rem}.pot-pill:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:10px;padding:7px 16px;background:#0d2928;border:1px solid #5a9a83;border-radius:999px;color:#bbd5cc;font:500 .7rem 'DM Mono',monospace}.pot-pill strong:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--gold);font-size:1rem}.turn-label:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:1em}.tv-footer:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:54px;color:#b4c5ce;font-size:.9rem}.winner-strip:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--gold)}.top-three:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;gap:10px}.rank-row:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;gap:7px;align-items:center;padding:7px 10px;background:#1b2b39;border-radius:9px;font-size:.75rem}.rank-row b:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--gold)}
.phone-screen:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:540px;padding:14px 16px max(28px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% -10%,#254153,transparent 52%),#0b111b}.phone-header:where(.tv-fixed-stage, .tv-fixed-stage *){max-width:560px;margin:0 auto;padding:7px 3px 15px}.phone-header .brand:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.7rem}.phone-game:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:15px;width:min(100%,560px);margin:0 auto}.phone-card:where(.tv-fixed-stage, .tv-fixed-stage *){width:min(100% - 28px,500px);margin:27px auto;padding:25px;background:#142130;border:1px solid #293e52;border-radius:22px}.phone-card h1:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:2rem;line-height:1.2}.phone-card .waiting-list:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid}.my-hand:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-table-details:where(.tv-fixed-stage, .tv-fixed-stage *),.rebuy-box:where(.tv-fixed-stage, .tv-fixed-stage *){padding:20px;background:#142130;border:1px solid #2c4053;border-radius:20px}.hand-title:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;justify-content:space-between}.hand-title h1:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;font-size:1.7rem}.hand-countdown:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--gold);font:600 1.25rem 'DM Mono',monospace}.private-cards:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;justify-content:center;gap:12px;min-height:154px;padding:16px;margin:12px 0 5px;touch-action:none;user-select:none}.private-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){width:clamp(92px,326.4px,150px);height:clamp(125px,432px,195px);font-size:2rem;border-radius:14px;box-shadow:0 14px 24px #0004}.private-cards .playing-card b:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:1.7rem}.private-cards .playing-card span:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:1.5rem}.private-cards:not(.revealed) .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){color:#d5cbed;background:repeating-linear-gradient(45deg,#57429b,#57429b 6px,#322c6b 6px,#322c6b 12px);border:4px solid #c3b7dd}.privacy-note:where(.tv-fixed-stage, .tv-fixed-stage *){text-align:center;color:#9eacbc;font-size:.76rem}.status-line:where(.tv-fixed-stage, .tv-fixed-stage *){margin:14px 0 0;color:var(--mint);font-weight:600}.action-grid:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.action-grid .button:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:50px}.raise-control:where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:1/-1;grid-template-columns:1fr 1fr auto;align-items:center;padding:12px;background:#142130;border:1px solid #2c4053;border-radius:14px}.raise-control span:where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:1/-1}.raise-control input:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:0}.raise-control .button:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:80px}.rebuy-box:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:1fr 1fr;gap:10px}.rebuy-box p:where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:1/-1}.phone-table-details:where(.tv-fixed-stage, .tv-fixed-stage *){color:#c7d3de}.phone-table-details summary:where(.tv-fixed-stage, .tv-fixed-stage *){cursor:pointer;font-weight:700}.phone-table-details p:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--muted)}.mini-player:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;gap:7px;padding:8px 0;border-top:1px solid #26394b}.mini-player span:where(.tv-fixed-stage, .tv-fixed-stage *){margin-left:auto;color:var(--gold)}
.admin-screen:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:540px;padding:18px 20px 60px}.admin-header:where(.tv-fixed-stage, .tv-fixed-stage *){max-width:1280px;margin:0 auto;padding:8px 0 18px;border-bottom:1px solid #25384b}.admin-header>div:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:18px}.admin-content:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:18px;max-width:1280px;margin:28px auto}.admin-title:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;justify-content:space-between;gap:24px}.admin-title h1:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;font-size:clamp(2rem,48px,3.4rem);letter-spacing:-.05em}.admin-title .muted:where(.tv-fixed-stage, .tv-fixed-stage *){margin:9px 0}.admin-qr:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:7px;padding:10px;color:#18222d;background:white;border-radius:14px;font-size:.75rem;font-weight:700}.admin-qr .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){width:125px}.admin-actions:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;flex-wrap:wrap;gap:9px}.admin-card:where(.tv-fixed-stage, .tv-fixed-stage *){padding:clamp(18px,28.8px,28px);background:#121e2b;border:1px solid #293c50;border-radius:19px}.admin-card h2:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0 0 16px;font-size:1.28rem}.participant-grid:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;margin:16px 0 24px}.participant-option:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:9px;padding:10px;background:#0d1722;border:1px solid #2a3d51;border-radius:13px;cursor:pointer}.participant-option input:where(.tv-fixed-stage, .tv-fixed-stage *){accent-color:var(--mint)}.participant-option span:nth-of-type(2):where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:4px}.participant-option small:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.7rem}.settings-grid:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:13px;margin-bottom:20px}.settings-grid label:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.8rem}.settings-grid input:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:44px}.card-heading:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;justify-content:space-between;gap:20px}.card-heading h2:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0}.card-heading>span:where(.tv-fixed-stage, .tv-fixed-stage *),.card-heading>b:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--gold)}.active-game .card-heading:where(.tv-fixed-stage, .tv-fixed-stage *){margin-bottom:18px}.admin-player-list:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin:20px 0}.admin-player:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:4px 9px;padding:10px;background:#0d1722;border-radius:12px}.admin-player .avatar:where(.tv-fixed-stage, .tv-fixed-stage *){grid-row:span 2;width:36px;height:36px;font-size:1.15rem}.admin-player>span:nth-of-type(2):where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--gold);font:500 .75rem 'DM Mono',monospace}.admin-player small:where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:2/-1}.results-list:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid}.result-row:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:minmax(90px,1fr) 60px minmax(100px,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #26384b;font-size:.86rem}.result-row:last-child:where(.tv-fixed-stage, .tv-fixed-stage *){border:0}.result-row b:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--gold)}.result-row small:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.7rem}.inline-form:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;flex-wrap:wrap;gap:8px}.inline-form input:where(.tv-fixed-stage, .tv-fixed-stage *){flex:1 1 180px;min-height:44px}.inline-form button:where(.tv-fixed-stage, .tv-fixed-stage *){flex:0 0 auto}.notice-card .button:where(.tv-fixed-stage, .tv-fixed-stage *){margin-top:14px}



.community-card:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;perspective:500px}.board-card-empty:where(.tv-fixed-stage, .tv-fixed-stage *){display:block;width:49px;height:69px;border:1px dashed #9ec5b988;border-radius:8px;background:#0d292866}.deal-card-enter:where(.tv-fixed-stage, .tv-fixed-stage *){animation:tv960-deal-card-arrive .42s cubic-bezier(.2,.75,.25,1) both}.deal-card-flight:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;animation:tv960-deal-card-arrive .42s cubic-bezier(.2,.75,.25,1) var(--deal-delay,0ms) both}.board-card-enter>.playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){animation:tv960-board-card-reveal .58s cubic-bezier(.2,.75,.25,1) both}@keyframes tv960-deal-card-arrive{from{opacity:0;transform:translate(-22px,-25px) rotate(-18deg) scale(.72)}to{opacity:1;transform:translate(0,0) rotate(0) scale(1)}}@keyframes tv960-board-card-reveal{0%{opacity:0;transform:rotateY(88deg) translateY(-14px)}100%{opacity:1;transform:rotateY(0) translateY(0)}}.shuffle-stage:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:4px;min-width:170px;padding:3px 8px;color:#e4f1eb;font-size:.72rem}.shuffle-stage strong:where(.tv-fixed-stage, .tv-fixed-stage *){color:var(--gold)}.shuffle-stage small:where(.tv-fixed-stage, .tv-fixed-stage *){color:#a7c7bd;font-size:.61rem}.shuffle-deck:where(.tv-fixed-stage, .tv-fixed-stage *){position:relative;width:76px;height:43px}.shuffle-deck .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){position:absolute;left:22px;top:0;width:31px;height:43px;animation:tv960-shuffle-cards .75s ease-in-out infinite alternate}.shuffle-deck .playing-card:nth-child(2):where(.tv-fixed-stage, .tv-fixed-stage *){animation-delay:.15s}.shuffle-deck .playing-card:nth-child(3):where(.tv-fixed-stage, .tv-fixed-stage *){animation-delay:.3s}@keyframes tv960-shuffle-cards{from{transform:translateX(-10px) rotate(-13deg)}to{transform:translateX(10px) rotate(13deg)}}.deal-progress:where(.tv-fixed-stage, .tv-fixed-stage *){width:min(180px,672px);height:5px;overflow:hidden;border-radius:999px;background:#0a231f;border:1px solid #7bc9a94d}.deal-progress span:where(.tv-fixed-stage, .tv-fixed-stage *){display:block;height:100%;background:linear-gradient(90deg,#64d6a1,#f4cc67);transition:width .25s ease}.card-waiting:where(.tv-fixed-stage, .tv-fixed-stage *){color:#789080!important;background:linear-gradient(135deg,#dce4d9,#abb9ac)!important;border:1px dashed #829587!important;box-shadow:none!important}.private-cards.dealing .card-waiting:where(.tv-fixed-stage, .tv-fixed-stage *){animation:tv960-waiting-card-pulse 1s ease-in-out infinite alternate}@keyframes tv960-waiting-card-pulse{from{opacity:.48}to{opacity:.9}}@media (prefers-reduced-motion:reduce){.deal-card-enter:where(.tv-fixed-stage, .tv-fixed-stage *),.deal-card-flight:where(.tv-fixed-stage, .tv-fixed-stage *),.board-card-enter>.playing-card:where(.tv-fixed-stage, .tv-fixed-stage *),.shuffle-deck .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *),.private-cards.dealing .card-waiting:where(.tv-fixed-stage, .tv-fixed-stage *){animation:none!important}.deal-progress span:where(.tv-fixed-stage, .tv-fixed-stage *){transition:none}}
.stack-settings:where(.tv-fixed-stage, .tv-fixed-stage *){margin:14px 0 18px;padding:14px;background:#0d1722;border:1px solid #2a3d51;border-radius:13px}.stack-settings summary:where(.tv-fixed-stage, .tv-fixed-stage *){cursor:pointer;font-weight:700}.custom-stack-list:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.custom-stack-list label:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:6px;color:#dce6ef;font-size:.78rem}.custom-stack-list input:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:40px;padding:9px 11px;color:var(--text);background:#0b1420;border:1px solid #34485d;border-radius:10px}
.event-list:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;max-height:370px;overflow:auto}.event-row:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:55px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid #26384b;font-size:.84rem}.event-row time:where(.tv-fixed-stage, .tv-fixed-stage *){color:#93a5b7;font:500 .72rem 'DM Mono',monospace}.event-row:last-child:where(.tv-fixed-stage, .tv-fixed-stage *){border:0}
.recovery-picker:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:5px;min-width:180px;color:#a9b9c9;font-size:.75rem}.recovery-picker select:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:40px;padding:7px 10px;color:var(--text);background:#0b1420;border:1px solid #34485d;border-radius:10px}.recovery-qr-overlay:where(.tv-fixed-stage, .tv-fixed-stage *){position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:18px;background:rgba(5,10,16,.82)}.recovery-qr-card:where(.tv-fixed-stage, .tv-fixed-stage *){position:relative;display:grid;justify-items:center;gap:12px;width:min(100%,360px);padding:28px 24px;color:#17202a;background:#fff;border-radius:20px;text-align:center}.recovery-qr-card h2:where(.tv-fixed-stage, .tv-fixed-stage *),.recovery-qr-card p:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0}.recovery-qr-card .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){width:min(595.2px,220px);height:auto}.recovery-qr-card .button:where(.tv-fixed-stage, .tv-fixed-stage *){width:100%;color:#fff;background:#172b3e}.recovery-qr-close:where(.tv-fixed-stage, .tv-fixed-stage *){position:absolute;top:8px;right:10px;width:38px;height:38px;border:0;border-radius:50%;color:#17202a;background:#edf2f7;font-size:1.5rem;cursor:pointer}

.game-settings-card > .settings-grid > .game-voice-setting:where(.tv-fixed-stage, .tv-fixed-stage *),.game-settings-card > .settings-grid > .game-card-deck-setting:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1 / -1;
}

.form-card > p.pair-error-expired:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:0;
    margin:16px 0 10px;
    padding:12px 14px;
    color:#ffe6a4;
    background:linear-gradient(135deg,#503a13,#342a18);
    border:1px solid #d6a83f;
    border-radius:14px;
    box-shadow:0 8px 22px #0003;
    font-weight:800;
    line-height:1.55;
}

.pair-code-fallback:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-top:12px;
    padding:16px;
    color:#eaf1f8;
    background:linear-gradient(145deg,#1c3040,#142332);
    border:1px solid #4a6b78;
    border-radius:16px;
    box-shadow:0 12px 28px #0003;
}

.pair-code-fallback[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none;
}

.pair-code-fallback-heading:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    align-items:start;
    gap:12px;
}

.pair-code-fallback-icon:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    color:#ffe6a4;
    background:#58451f;
    border:1px solid #c59a3d;
    border-radius:13px;
    font-size:1.15rem;
}

.pair-code-fallback h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:1px 0 6px;
    color:#fff1c5;
    font-size:1.03rem;
    line-height:1.35;
}

.pair-code-fallback-heading p:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    color:#c5d2df;
    font-size:.85rem;
    line-height:1.55;
}

.pair-code-fallback form:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:10px;
    margin-top:15px;
}

.pair-code-fallback label:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ecf3fa;
}

.pair-code-fallback input:where(.tv-fixed-stage, .tv-fixed-stage *){
    font:800 1.15rem 'DM Mono',monospace;
    letter-spacing:.13em;
}

.pair-code-fallback-hint:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-top:-4px;
    color:#8fe5cc;
    font-size:.84rem;
    font-weight:700;
}

.pair-code-fallback button:disabled:where(.tv-fixed-stage, .tv-fixed-stage *){
    cursor:wait;
    opacity:.68;
}

.pair-code-fallback .error:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-top:1px;
}

.game-settings-card > .settings-grid > .game-rule-set-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-column:1 / -1;
    grid-template-columns:minmax(0, 1fr) 48px;
    grid-template-areas:'label label' 'select help' 'hint hint';
    grid-template-rows:auto auto auto;
    align-items:center;
    gap:7px 9px;
}

.game-rule-set-row > .game-rule-set-label:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-area:label;
    min-width:0;
}

.game-rule-set-row select:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-area:select;
    min-height:44px;
    padding:10px 12px;
    color:var(--text);
    background:#0b1420;
    border:1px solid #34485d;
    border-radius:12px;
}

.game-rule-help:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-area:help;
    width:48px;
    min-height:48px;
    padding:0;
    border-radius:50%;
    font-size:1.4rem;
}

.game-rule-set-row > small:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-area:hint;
}
.private-cards:where(.tv-fixed-stage, .tv-fixed-stage *){cursor:pointer;outline-offset:3px}.private-cards:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *){outline:3px solid var(--gold)}

/* 가족 대기실 모임, 이모티콘 말풍선, 휴대폰 게임 조작을 위한 화면 크기 조정 */
.waiting-welcome:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:0}.family-gathering:where(.tv-fixed-stage, .tv-fixed-stage *){position:relative;display:block;width:min(100%,720px);height:clamp(300px,259.2px,470px);margin:22px 0 0;overflow:hidden;border:1px dashed #3d7667;border-radius:50%;background:radial-gradient(ellipse,#184e43 0,#12392f 44%,#10251f 73%,transparent 74%)}.waiting-family-center:where(.tv-fixed-stage, .tv-fixed-stage *){position:absolute;top:50%;left:50%;display:grid;place-items:center;gap:7px;width:138px;height:138px;color:#d8f4e5;background:linear-gradient(145deg,#205f4d,#12372d);border:2px solid #4c9976;border-radius:50%;box-shadow:0 0 55px #61c49533;transform:translate(-50%,-50%)}.waiting-family-center span:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:2.6rem;color:#f1cc68}.waiting-family-center b:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.87rem}.waiting-player.family-member:where(.tv-fixed-stage, .tv-fixed-stage *){position:absolute;z-index:2;display:grid;justify-items:center;gap:5px;min-width:122px;max-width:160px;padding:8px 13px;color:#f2f6f8;background:#142535eF;border:1px solid #496078;border-radius:18px;box-shadow:0 9px 20px #0005;transform:translate(-50%,-50%)}.waiting-player.family-member .avatar:where(.tv-fixed-stage, .tv-fixed-stage *){width:52px;height:52px;font-size:1.8rem}.waiting-avatar-wrap:where(.tv-fixed-stage, .tv-fixed-stage *){position:relative;display:inline-grid;place-items:center}.waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *){position:absolute;z-index:5;bottom:calc(100% - 2px);left:50%;display:grid;place-items:center;min-width:40px;height:38px;padding:0 8px;color:#17202a;background:#fff;border:2px solid #f4d16c;border-radius:19px;font-size:1.45rem;box-shadow:0 4px 12px #0006;transform:translateX(-50%);animation:tv960-waiting-bubble-pop .18s ease-out both}.waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *):after{position:absolute;bottom:-7px;left:50%;width:11px;height:11px;content:"";background:#fff;border-right:2px solid #f4d16c;border-bottom:2px solid #f4d16c;transform:translateX(-50%) rotate(45deg)}@keyframes tv960-waiting-bubble-pop{from{opacity:0;transform:translateX(-50%) translateY(7px) scale(.75)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}.waiting-phone-card:where(.tv-fixed-stage, .tv-fixed-stage *){max-width:560px}.waiting-self:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:15px;margin:18px 0;padding:15px;background:#0e1b29;border:1px solid #293e52;border-radius:18px}.waiting-self h1:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;font-size:1.55rem}.waiting-self p:where(.tv-fixed-stage, .tv-fixed-stage *){margin:5px 0 0;font-size:.85rem}.waiting-self .avatar.large:where(.tv-fixed-stage, .tv-fixed-stage *){width:58px;height:58px;font-size:1.8rem}.waiting-emoji-picker:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:8px;margin:12px 0 24px}.waiting-emoji-button:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:44px;min-height:44px;color:#fff;background:#182b3d;border:1px solid #36516b;border-radius:13px;font-size:1.25rem;cursor:pointer}.waiting-emoji-button:active:where(.tv-fixed-stage, .tv-fixed-stage *){background:#285843;transform:scale(.95)}.waiting-phone-card>h2:where(.tv-fixed-stage, .tv-fixed-stage *){margin:20px 0 8px;font-size:1.05rem}.phone-waiting-list:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.phone-waiting-list .waiting-player:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:0;justify-content:flex-start;padding:9px 10px}.phone-waiting-list .waiting-avatar-wrap .avatar:where(.tv-fixed-stage, .tv-fixed-stage *){width:34px;height:34px;font-size:1.1rem}.phone-waiting-list .waiting-player>strong:where(.tv-fixed-stage, .tv-fixed-stage *){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cancellation-screen:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;place-items:center;min-height:540px;text-align:center;background:radial-gradient(ellipse at center,#3a3021,#101827 70%)}.cancellation-notice:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:14px;width:min(864px,820px);padding:clamp(28px,57.6px,68px);background:#1b2634;border:1px solid #e0b951;border-radius:28px;box-shadow:0 25px 90px #0008}.cancellation-notice h1:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;color:#ffe8a7;font-size:clamp(2rem,48px,4rem)}.cancellation-notice p:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;color:#c4d0da;font-size:clamp(1rem,19.2px,1.4rem)}.cancellation-notice strong:where(.tv-fixed-stage, .tv-fixed-stage *){color:#ffe08c;font-size:2rem}.game-selector:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:7px;max-width:360px;margin:14px 0;color:#c7d3de;font-weight:650}.game-selector select:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:44px;padding:9px 12px;color:#f0f5f7;background:#0e1925;border:1px solid #40566a;border-radius:11px}.account-form:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-form label:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:7px;color:#c7d3de}.account-form label:first-child:where(.tv-fixed-stage, .tv-fixed-stage *){grid-column:1/-1}.account-form input:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:0;padding:11px 12px;color:#f2f5f8;background:#0e1925;border:1px solid #34485d;border-radius:10px}.account-form .button:where(.tv-fixed-stage, .tv-fixed-stage *){align-self:end;min-height:44px}
/* 카드 분배 애니메이션은 Web Animations 미지원·동작 줄이기 환경에서도 CSS로 재생합니다. */
.deal-card-flight:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    opacity:0;
    animation:none!important;
}

.deal-card-flight.deal-card-web-animation:where(.tv-fixed-stage, .tv-fixed-stage *){
    animation:none!important;
}

.deal-card-flight.deal-card-css-fallback:where(.tv-fixed-stage, .tv-fixed-stage *){
    animation:tv960-deal-card-flight-fallback var(--deal-duration,620ms) cubic-bezier(.18,.68,.22,1) var(--deal-delay,0ms) both!important;
}

@keyframes tv960-deal-card-flight-fallback{
    0%{
        opacity:0;
        transform:translate(var(--deal-from-x,0),var(--deal-from-y,0)) rotate(-18deg) scale(.7);
    }
    1%{
        opacity:.85;
    }
    100%{
        opacity:1;
        transform:translate(0,0) rotate(0) scale(1);
    }
}

/* CSS 애니메이션 지연·속도는 외부 스타일시트의 클래스로 지정해 CSP를 유지합니다. */
.deal-card-flight.deal-delay-0:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:0ms}
.deal-card-flight.deal-delay-50:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:50ms}
.deal-card-flight.deal-delay-100:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:100ms}
.deal-card-flight.deal-delay-150:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:150ms}
.deal-card-flight.deal-delay-200:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:200ms}
.deal-card-flight.deal-delay-250:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:250ms}
.deal-card-flight.deal-delay-300:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:300ms}
.deal-card-flight.deal-delay-350:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:350ms}
.deal-card-flight.deal-delay-400:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:400ms}
.deal-card-flight.deal-delay-450:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:450ms}
.deal-card-flight.deal-delay-500:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:500ms}
.deal-card-flight.deal-delay-550:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:550ms}
.deal-card-flight.deal-delay-600:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:600ms}
.deal-card-flight.deal-delay-650:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:650ms}
.deal-card-flight.deal-delay-700:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:700ms}
.deal-card-flight.deal-delay-750:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:750ms}
.deal-card-flight.deal-delay-800:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:800ms}
.deal-card-flight.deal-delay-850:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:850ms}
.deal-card-flight.deal-delay-900:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:900ms}
.deal-card-flight.deal-delay-950:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:950ms}
.deal-card-flight.deal-delay-1000:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1000ms}
.deal-card-flight.deal-delay-1050:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1050ms}
.deal-card-flight.deal-delay-1100:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1100ms}
.deal-card-flight.deal-delay-1150:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1150ms}
.deal-card-flight.deal-delay-1200:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1200ms}
.deal-card-flight.deal-delay-1250:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1250ms}
.deal-card-flight.deal-delay-1300:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1300ms}
.deal-card-flight.deal-delay-1350:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1350ms}
.deal-card-flight.deal-delay-1400:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1400ms}
.deal-card-flight.deal-delay-1450:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1450ms}
.deal-card-flight.deal-delay-1500:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1500ms}
.deal-card-flight.deal-delay-1550:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1550ms}
.deal-card-flight.deal-delay-1600:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1600ms}
.deal-card-flight.deal-delay-1650:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1650ms}
.deal-card-flight.deal-delay-1700:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1700ms}
.deal-card-flight.deal-delay-1750:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1750ms}
.deal-card-flight.deal-delay-1800:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1800ms}
.deal-card-flight.deal-delay-1850:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1850ms}
.deal-card-flight.deal-delay-1900:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1900ms}
.deal-card-flight.deal-delay-1950:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:1950ms}
.deal-card-flight.deal-delay-2000:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2000ms}
.deal-card-flight.deal-delay-2050:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2050ms}
.deal-card-flight.deal-delay-2100:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2100ms}
.deal-card-flight.deal-delay-2150:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2150ms}
.deal-card-flight.deal-delay-2200:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2200ms}
.deal-card-flight.deal-delay-2250:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2250ms}
.deal-card-flight.deal-delay-2300:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2300ms}
.deal-card-flight.deal-delay-2350:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2350ms}
.deal-card-flight.deal-delay-2400:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2400ms}
.deal-card-flight.deal-delay-2450:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2450ms}
.deal-card-flight.deal-delay-2500:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2500ms}
.deal-card-flight.deal-delay-2550:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2550ms}
.deal-card-flight.deal-delay-2600:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2600ms}
.deal-card-flight.deal-delay-2650:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2650ms}
.deal-card-flight.deal-delay-2700:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2700ms}
.deal-card-flight.deal-delay-2750:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2750ms}
.deal-card-flight.deal-delay-2800:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2800ms}
.deal-card-flight.deal-delay-2850:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2850ms}
.deal-card-flight.deal-delay-2900:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2900ms}
.deal-card-flight.deal-delay-2950:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:2950ms}
.deal-card-flight.deal-delay-3000:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3000ms}
.deal-card-flight.deal-delay-3050:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3050ms}
.deal-card-flight.deal-delay-3100:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3100ms}
.deal-card-flight.deal-delay-3150:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3150ms}
.deal-card-flight.deal-delay-3200:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3200ms}
.deal-card-flight.deal-delay-3250:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3250ms}
.deal-card-flight.deal-delay-3300:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3300ms}
.deal-card-flight.deal-delay-3350:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3350ms}
.deal-card-flight.deal-delay-3400:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3400ms}
.deal-card-flight.deal-delay-3450:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3450ms}
.deal-card-flight.deal-delay-3500:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3500ms}
.deal-card-flight.deal-delay-3550:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3550ms}
.deal-card-flight.deal-delay-3600:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3600ms}
.deal-card-flight.deal-delay-3650:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3650ms}
.deal-card-flight.deal-delay-3700:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3700ms}
.deal-card-flight.deal-delay-3750:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3750ms}
.deal-card-flight.deal-delay-3800:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3800ms}
.deal-card-flight.deal-delay-3850:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3850ms}
.deal-card-flight.deal-delay-3900:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3900ms}
.deal-card-flight.deal-delay-3950:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:3950ms}
.deal-card-flight.deal-delay-4000:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4000ms}
.deal-card-flight.deal-delay-4050:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4050ms}
.deal-card-flight.deal-delay-4100:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4100ms}
.deal-card-flight.deal-delay-4150:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4150ms}
.deal-card-flight.deal-delay-4200:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4200ms}
.deal-card-flight.deal-delay-4250:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4250ms}
.deal-card-flight.deal-delay-4300:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4300ms}
.deal-card-flight.deal-delay-4350:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4350ms}
.deal-card-flight.deal-delay-4400:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4400ms}
.deal-card-flight.deal-delay-4450:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4450ms}
.deal-card-flight.deal-delay-4500:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4500ms}
.deal-card-flight.deal-delay-4550:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4550ms}
.deal-card-flight.deal-delay-4600:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4600ms}
.deal-card-flight.deal-delay-4650:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4650ms}
.deal-card-flight.deal-delay-4700:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4700ms}
.deal-card-flight.deal-delay-4750:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4750ms}
.deal-card-flight.deal-delay-4800:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4800ms}
.deal-card-flight.deal-delay-4850:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4850ms}
.deal-card-flight.deal-delay-4900:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4900ms}
.deal-card-flight.deal-delay-4950:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:4950ms}
.deal-card-flight.deal-delay-5000:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-delay:5000ms}
.deal-card-flight.deal-duration-50:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:50ms}
.deal-card-flight.deal-duration-100:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:100ms}
.deal-card-flight.deal-duration-150:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:150ms}
.deal-card-flight.deal-duration-200:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:200ms}
.deal-card-flight.deal-duration-250:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:250ms}
.deal-card-flight.deal-duration-300:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:300ms}
.deal-card-flight.deal-duration-350:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:350ms}
.deal-card-flight.deal-duration-400:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:400ms}
.deal-card-flight.deal-duration-450:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:450ms}
.deal-card-flight.deal-duration-500:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:500ms}
.deal-card-flight.deal-duration-550:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:550ms}
.deal-card-flight.deal-duration-600:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:600ms}
.deal-card-flight.deal-duration-650:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-duration:650ms}
.deal-card-flight.deal-flight-from-left.deal-progress-0:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:240px;--deal-from-y:-48.6px;--deal-from-opacity:0.350;--deal-from-rotate:-18.00deg;--deal-from-scale:0.700}
.deal-card-flight.deal-flight-from-right.deal-progress-0:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-240px;--deal-from-y:-48.6px;--deal-from-opacity:0.350;--deal-from-rotate:-18.00deg;--deal-from-scale:0.700}
.deal-card-flight.deal-flight-from-center.deal-progress-0:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-97.2px;--deal-from-opacity:0.350;--deal-from-rotate:-18.00deg;--deal-from-scale:0.700}
.deal-card-flight.deal-flight-from-left.deal-progress-5:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:228px;--deal-from-y:-46.17px;--deal-from-opacity:0.382;--deal-from-rotate:-17.10deg;--deal-from-scale:0.715}
.deal-card-flight.deal-flight-from-right.deal-progress-5:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-228px;--deal-from-y:-46.17px;--deal-from-opacity:0.382;--deal-from-rotate:-17.10deg;--deal-from-scale:0.715}
.deal-card-flight.deal-flight-from-center.deal-progress-5:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-92.34px;--deal-from-opacity:0.382;--deal-from-rotate:-17.10deg;--deal-from-scale:0.715}
.deal-card-flight.deal-flight-from-left.deal-progress-10:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:216px;--deal-from-y:-43.74px;--deal-from-opacity:0.415;--deal-from-rotate:-16.20deg;--deal-from-scale:0.730}
.deal-card-flight.deal-flight-from-right.deal-progress-10:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-216px;--deal-from-y:-43.74px;--deal-from-opacity:0.415;--deal-from-rotate:-16.20deg;--deal-from-scale:0.730}
.deal-card-flight.deal-flight-from-center.deal-progress-10:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-87.48px;--deal-from-opacity:0.415;--deal-from-rotate:-16.20deg;--deal-from-scale:0.730}
.deal-card-flight.deal-flight-from-left.deal-progress-15:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:204px;--deal-from-y:-41.31px;--deal-from-opacity:0.448;--deal-from-rotate:-15.30deg;--deal-from-scale:0.745}
.deal-card-flight.deal-flight-from-right.deal-progress-15:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-204px;--deal-from-y:-41.31px;--deal-from-opacity:0.448;--deal-from-rotate:-15.30deg;--deal-from-scale:0.745}
.deal-card-flight.deal-flight-from-center.deal-progress-15:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-82.62px;--deal-from-opacity:0.448;--deal-from-rotate:-15.30deg;--deal-from-scale:0.745}
.deal-card-flight.deal-flight-from-left.deal-progress-20:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:192px;--deal-from-y:-38.88px;--deal-from-opacity:0.480;--deal-from-rotate:-14.40deg;--deal-from-scale:0.760}
.deal-card-flight.deal-flight-from-right.deal-progress-20:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-192px;--deal-from-y:-38.88px;--deal-from-opacity:0.480;--deal-from-rotate:-14.40deg;--deal-from-scale:0.760}
.deal-card-flight.deal-flight-from-center.deal-progress-20:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-77.76px;--deal-from-opacity:0.480;--deal-from-rotate:-14.40deg;--deal-from-scale:0.760}
.deal-card-flight.deal-flight-from-left.deal-progress-25:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:180px;--deal-from-y:-36.45px;--deal-from-opacity:0.512;--deal-from-rotate:-13.50deg;--deal-from-scale:0.775}
.deal-card-flight.deal-flight-from-right.deal-progress-25:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-180px;--deal-from-y:-36.45px;--deal-from-opacity:0.512;--deal-from-rotate:-13.50deg;--deal-from-scale:0.775}
.deal-card-flight.deal-flight-from-center.deal-progress-25:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-72.9px;--deal-from-opacity:0.512;--deal-from-rotate:-13.50deg;--deal-from-scale:0.775}
.deal-card-flight.deal-flight-from-left.deal-progress-30:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:168px;--deal-from-y:-34.02px;--deal-from-opacity:0.545;--deal-from-rotate:-12.60deg;--deal-from-scale:0.790}
.deal-card-flight.deal-flight-from-right.deal-progress-30:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-168px;--deal-from-y:-34.02px;--deal-from-opacity:0.545;--deal-from-rotate:-12.60deg;--deal-from-scale:0.790}
.deal-card-flight.deal-flight-from-center.deal-progress-30:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-68.04px;--deal-from-opacity:0.545;--deal-from-rotate:-12.60deg;--deal-from-scale:0.790}
.deal-card-flight.deal-flight-from-left.deal-progress-35:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:156px;--deal-from-y:-31.59px;--deal-from-opacity:0.577;--deal-from-rotate:-11.70deg;--deal-from-scale:0.805}
.deal-card-flight.deal-flight-from-right.deal-progress-35:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-156px;--deal-from-y:-31.59px;--deal-from-opacity:0.577;--deal-from-rotate:-11.70deg;--deal-from-scale:0.805}
.deal-card-flight.deal-flight-from-center.deal-progress-35:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-63.18px;--deal-from-opacity:0.577;--deal-from-rotate:-11.70deg;--deal-from-scale:0.805}
.deal-card-flight.deal-flight-from-left.deal-progress-40:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:144px;--deal-from-y:-29.16px;--deal-from-opacity:0.610;--deal-from-rotate:-10.80deg;--deal-from-scale:0.820}
.deal-card-flight.deal-flight-from-right.deal-progress-40:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-144px;--deal-from-y:-29.16px;--deal-from-opacity:0.610;--deal-from-rotate:-10.80deg;--deal-from-scale:0.820}
.deal-card-flight.deal-flight-from-center.deal-progress-40:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-58.32px;--deal-from-opacity:0.610;--deal-from-rotate:-10.80deg;--deal-from-scale:0.820}
.deal-card-flight.deal-flight-from-left.deal-progress-45:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:132px;--deal-from-y:-26.73px;--deal-from-opacity:0.643;--deal-from-rotate:-9.90deg;--deal-from-scale:0.835}
.deal-card-flight.deal-flight-from-right.deal-progress-45:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-132px;--deal-from-y:-26.73px;--deal-from-opacity:0.643;--deal-from-rotate:-9.90deg;--deal-from-scale:0.835}
.deal-card-flight.deal-flight-from-center.deal-progress-45:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-53.46px;--deal-from-opacity:0.643;--deal-from-rotate:-9.90deg;--deal-from-scale:0.835}
.deal-card-flight.deal-flight-from-left.deal-progress-50:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:120px;--deal-from-y:-24.3px;--deal-from-opacity:0.675;--deal-from-rotate:-9.00deg;--deal-from-scale:0.850}
.deal-card-flight.deal-flight-from-right.deal-progress-50:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-120px;--deal-from-y:-24.3px;--deal-from-opacity:0.675;--deal-from-rotate:-9.00deg;--deal-from-scale:0.850}
.deal-card-flight.deal-flight-from-center.deal-progress-50:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-48.6px;--deal-from-opacity:0.675;--deal-from-rotate:-9.00deg;--deal-from-scale:0.850}
.deal-card-flight.deal-flight-from-left.deal-progress-55:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:108px;--deal-from-y:-21.87px;--deal-from-opacity:0.708;--deal-from-rotate:-8.10deg;--deal-from-scale:0.865}
.deal-card-flight.deal-flight-from-right.deal-progress-55:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-108px;--deal-from-y:-21.87px;--deal-from-opacity:0.708;--deal-from-rotate:-8.10deg;--deal-from-scale:0.865}
.deal-card-flight.deal-flight-from-center.deal-progress-55:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-43.74px;--deal-from-opacity:0.708;--deal-from-rotate:-8.10deg;--deal-from-scale:0.865}
.deal-card-flight.deal-flight-from-left.deal-progress-60:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:96px;--deal-from-y:-19.44px;--deal-from-opacity:0.740;--deal-from-rotate:-7.20deg;--deal-from-scale:0.880}
.deal-card-flight.deal-flight-from-right.deal-progress-60:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-96px;--deal-from-y:-19.44px;--deal-from-opacity:0.740;--deal-from-rotate:-7.20deg;--deal-from-scale:0.880}
.deal-card-flight.deal-flight-from-center.deal-progress-60:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-38.88px;--deal-from-opacity:0.740;--deal-from-rotate:-7.20deg;--deal-from-scale:0.880}
.deal-card-flight.deal-flight-from-left.deal-progress-65:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:84px;--deal-from-y:-17.01px;--deal-from-opacity:0.772;--deal-from-rotate:-6.30deg;--deal-from-scale:0.895}
.deal-card-flight.deal-flight-from-right.deal-progress-65:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-84px;--deal-from-y:-17.01px;--deal-from-opacity:0.772;--deal-from-rotate:-6.30deg;--deal-from-scale:0.895}
.deal-card-flight.deal-flight-from-center.deal-progress-65:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-34.02px;--deal-from-opacity:0.772;--deal-from-rotate:-6.30deg;--deal-from-scale:0.895}
.deal-card-flight.deal-flight-from-left.deal-progress-70:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:72px;--deal-from-y:-14.58px;--deal-from-opacity:0.805;--deal-from-rotate:-5.40deg;--deal-from-scale:0.910}
.deal-card-flight.deal-flight-from-right.deal-progress-70:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-72px;--deal-from-y:-14.58px;--deal-from-opacity:0.805;--deal-from-rotate:-5.40deg;--deal-from-scale:0.910}
.deal-card-flight.deal-flight-from-center.deal-progress-70:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-29.16px;--deal-from-opacity:0.805;--deal-from-rotate:-5.40deg;--deal-from-scale:0.910}
.deal-card-flight.deal-flight-from-left.deal-progress-75:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:60px;--deal-from-y:-12.15px;--deal-from-opacity:0.838;--deal-from-rotate:-4.50deg;--deal-from-scale:0.925}
.deal-card-flight.deal-flight-from-right.deal-progress-75:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-60px;--deal-from-y:-12.15px;--deal-from-opacity:0.838;--deal-from-rotate:-4.50deg;--deal-from-scale:0.925}
.deal-card-flight.deal-flight-from-center.deal-progress-75:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-24.3px;--deal-from-opacity:0.838;--deal-from-rotate:-4.50deg;--deal-from-scale:0.925}
.deal-card-flight.deal-flight-from-left.deal-progress-80:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:48px;--deal-from-y:-9.72px;--deal-from-opacity:0.870;--deal-from-rotate:-3.60deg;--deal-from-scale:0.940}
.deal-card-flight.deal-flight-from-right.deal-progress-80:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-48px;--deal-from-y:-9.72px;--deal-from-opacity:0.870;--deal-from-rotate:-3.60deg;--deal-from-scale:0.940}
.deal-card-flight.deal-flight-from-center.deal-progress-80:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-19.44px;--deal-from-opacity:0.870;--deal-from-rotate:-3.60deg;--deal-from-scale:0.940}
.deal-card-flight.deal-flight-from-left.deal-progress-85:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:36px;--deal-from-y:-7.29px;--deal-from-opacity:0.902;--deal-from-rotate:-2.70deg;--deal-from-scale:0.955}
.deal-card-flight.deal-flight-from-right.deal-progress-85:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-36px;--deal-from-y:-7.29px;--deal-from-opacity:0.902;--deal-from-rotate:-2.70deg;--deal-from-scale:0.955}
.deal-card-flight.deal-flight-from-center.deal-progress-85:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-14.58px;--deal-from-opacity:0.902;--deal-from-rotate:-2.70deg;--deal-from-scale:0.955}
.deal-card-flight.deal-flight-from-left.deal-progress-90:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:24px;--deal-from-y:-4.86px;--deal-from-opacity:0.935;--deal-from-rotate:-1.80deg;--deal-from-scale:0.970}
.deal-card-flight.deal-flight-from-right.deal-progress-90:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-24px;--deal-from-y:-4.86px;--deal-from-opacity:0.935;--deal-from-rotate:-1.80deg;--deal-from-scale:0.970}
.deal-card-flight.deal-flight-from-center.deal-progress-90:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-9.72px;--deal-from-opacity:0.935;--deal-from-rotate:-1.80deg;--deal-from-scale:0.970}
.deal-card-flight.deal-flight-from-left.deal-progress-95:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:12px;--deal-from-y:-2.43px;--deal-from-opacity:0.967;--deal-from-rotate:-0.90deg;--deal-from-scale:0.985}
.deal-card-flight.deal-flight-from-right.deal-progress-95:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:-12px;--deal-from-y:-2.43px;--deal-from-opacity:0.967;--deal-from-rotate:-0.90deg;--deal-from-scale:0.985}
.deal-card-flight.deal-flight-from-center.deal-progress-95:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:-4.86px;--deal-from-opacity:0.967;--deal-from-rotate:-0.90deg;--deal-from-scale:0.985}
.deal-card-flight.deal-flight-from-left.deal-progress-100:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0px;--deal-from-y:0px;--deal-from-opacity:1.000;--deal-from-rotate:0.00deg;--deal-from-scale:1.000}
.deal-card-flight.deal-flight-from-right.deal-progress-100:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0px;--deal-from-y:0px;--deal-from-opacity:1.000;--deal-from-rotate:0.00deg;--deal-from-scale:1.000}
.deal-card-flight.deal-flight-from-center.deal-progress-100:where(.tv-fixed-stage, .tv-fixed-stage *){--deal-from-x:0;--deal-from-y:0px;--deal-from-opacity:1.000;--deal-from-rotate:0.00deg;--deal-from-scale:1.000}

.phone-hand-wait:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    justify-items:center;
    gap:16px;
    width:min(100%, 560px);
    margin:43.2px auto;
    padding:clamp(26px, 67.2px, 44px);
    text-align:center;
    background:radial-gradient(ellipse at 50% 0, #243c4c, transparent 62%), #142130;
    border:1px solid #38516a;
    border-radius:26px;
    box-shadow:var(--shadow);
}

.phone-hand-wait h1:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    font-size:clamp(1.7rem, 67.2px, 2.5rem);
}

.phone-hand-wait>p:not(.eyebrow):where(.tv-fixed-stage, .tv-fixed-stage *){
    max-width:38ch;
    color:#c4d1dc;
    line-height:1.6;
}

.wait-avatar:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    place-items:center;
    width:76px;
    height:76px;
    background:#23394a;
    border:2px solid #708b9a;
    border-radius:23px;
    font-size:2.5rem;
}

.wait-action:where(.tv-fixed-stage, .tv-fixed-stage *){
    padding:8px 15px;
    color:#e6f4ed;
    background:#254338;
    border:1px solid #58aa86;
    border-radius:999px;
}

.wait-action.wait-all-in:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe5a5;
    background:#5b2533;
    border-color:#ee7081;
}

.wait-stack:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    justify-content:space-between;
    width:min(100%, 320px);
    padding:12px 17px;
    color:#cad6df;
    background:#0c1723;
    border-radius:13px;
}

.wait-stack b:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:var(--gold);
    font-family:'DM Mono', monospace;
}

.phone-hand-wait>small:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#9fb2c0;
}

.join-choice-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:14px;
    margin-top:22px;
}

.join-choice-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:50px;
}

.admin-tabs:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:sticky;
    top:0;
    z-index:15;
    display:flex;
    gap:8px;
    margin:8px 0 18px;
    padding:8px 0;
    overflow-x:auto;
    background:#0c1520f2;
    border-bottom:1px solid #33475a;
}

.admin-tab:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 0 auto;
    min-height:42px;
    padding:9px 16px;
    color:#c7d5df;
    background:#152230;
    border:1px solid #3a4d60;
    border-radius:12px;
    font-weight:750;
    cursor:pointer;
}

.admin-tab.active:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#172219;
    background:#9bdfc0;
    border-color:#b7f0d6;
}

.admin-tab-panel[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none !important;
}

.admin-entry-layout:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:minmax(180px,240px) minmax(0,1fr);
    align-items:center;
    gap:26px;
}

.admin-entry-qr:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    justify-items:center;
    gap:8px;
    width:min(100%,220px);
    margin:0;
}

.admin-entry-qr .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:min(100%,180px);
}

.admin-entry-links:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
}

.admin-entry-links h3:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0 0 7px;
}

.admin-link-actions:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-direction-buttons:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-reason-choices:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.family-code-badge:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 0 auto;
    padding:8px 12px;
    color:#ffe39b;
    background:#263422;
    border:1px solid #a38a47;
    border-radius:12px;
    font:800 .95rem 'DM Mono',monospace;
}

.wallet-member-list:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-logs:where(.tv-fixed-stage, .tv-fixed-stage *),.game-history-list:where(.tv-fixed-stage, .tv-fixed-stage *),.standing-log-list:where(.tv-fixed-stage, .tv-fixed-stage *),.ranking-list:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:8px;
}

.wallet-member-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:auto minmax(120px,1fr) minmax(165px,auto) minmax(135px,auto);
    align-items:center;
    gap:12px;
    width:100%;
    min-height:66px;
    padding:10px 12px;
    color:#e8eef2;
    background:#111e2a;
    border:1px solid #31475b;
    border-radius:13px;
    text-align:left;
    cursor:pointer;
}

.wallet-member-row:hover:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-color:#9bdfc0;
}

.wallet-member-name:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-member-row time:where(.tv-fixed-stage, .tv-fixed-stage *),.game-history-row:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-log-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:4px;
}

.wallet-member-title:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
}

.member-admin-badge:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:inline-grid;
    place-items:center;
    flex:0 0 auto;
    width:22px;
    height:22px;
    color:#ffdf88;
    background:#302b1d;
    border:1px solid #947c42;
    border-radius:50%;
    font-size:.78rem;
}

.wallet-member-name small:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-member-row time:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-log-row time:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-log-row small:where(.tv-fixed-stage, .tv-fixed-stage *),.game-history-row small:where(.tv-fixed-stage, .tv-fixed-stage *),.game-history-row em:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#9eb0bd;
    font-size:.76rem;
    font-style:normal;
}

.wallet-member-row time:where(.tv-fixed-stage, .tv-fixed-stage *){
    white-space:nowrap;
}

.wallet-member-money:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    justify-items:end;
    gap:3px;
    min-width:0;
    max-width:clamp(92px,268.8px,180px);
}

.wallet-member-money>*:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
}

.wallet-member-money>b:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffdc83;
    text-align:right;
}

.reserve-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin:16px 0;
    padding:16px;
    background:linear-gradient(135deg,#17312e,#122332);
    border:1px solid #3d7062;
    border-radius:14px;
}

.reserve-card>div:where(.tv-fixed-stage, .tv-fixed-stage *),.reserve-modal:where(.tv-fixed-stage, .tv-fixed-stage *),.reserve-modal label:where(.tv-fixed-stage, .tv-fixed-stage *),.reserve-log:where(.tv-fixed-stage, .tv-fixed-stage *),.reserve-log dl>div:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
}

.reserve-balance:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#9bdfc0;
    font-size:1.25rem;
    font-variant-numeric:tabular-nums;
    overflow-wrap:anywhere;
}

.reserve-hint:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:6px 0 0;
    color:#aebdca;
    font-size:.78rem;
    line-height:1.5;
    overflow-wrap:anywhere;
}

.reserve-modal h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    padding-right:36px;
}

.reserve-modal label:where(.tv-fixed-stage, .tv-fixed-stage *),.reserve-logs:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:8px;
}

.reserve-settings-save:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-top:16px;
}

.reserve-log:where(.tv-fixed-stage, .tv-fixed-stage *){
    padding:12px;
    background:#101e2b;
    border:1px solid #31475b;
    border-radius:12px;
    overflow-wrap:anywhere;
}

.reserve-log-heading:where(.tv-fixed-stage, .tv-fixed-stage *),.reserve-pages:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:8px;
}

.reserve-log p:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:8px 0;
    white-space:pre-wrap;
}

.reserve-log dl:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
    gap:8px 16px;
    margin:0;
    font-size:.76rem;
}

.reserve-log dt:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#9eb0bd;
}

.reserve-log dd:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:3px 0 0;
    font-variant-numeric:tabular-nums;
}

.reserve-pages:where(.tv-fixed-stage, .tv-fixed-stage *){
    justify-content:center;
}

.reserve-pages [aria-current="page"]:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-color:#9bdfc0;
    color:#9bdfc0;
}

.wallet-member-game-balance:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-dialog-game-balance:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#9eb0bd;
    font-size:.72rem;
    font-weight:600;
    text-align:right;
    white-space:normal;
    overflow-wrap:anywhere;
}

.wallet-modal-overlay:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:fixed;
    inset:0;
    z-index:40;
    display:grid;
    place-items:center;
    padding:18px;
    background:#060b12d9;
}

.wallet-modal:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    display:grid;
    gap:12px;
    width:min(100%,660px);
    max-height:min(496.8px,820px);
    padding:24px;
    overflow:auto;
    color:#eef2f5;
    background:#142130;
    border:1px solid #77917c;
    border-radius:20px;
    box-shadow:0 18px 70px #000c;
}

.member-action-modal:where(.tv-fixed-stage, .tv-fixed-stage *){
    align-self:center;
    align-content:start;
    width:min(100%,560px);
    max-height:calc(540px - 20px);
    gap:15px;
    border-color:#355d57;
    background:linear-gradient(155deg,#182939 0%,#101b28 72%);
}

.member-action-title-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-right:42px;
}

.member-action-title-row h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    overflow-wrap:anywhere;
}

.member-action-description:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:-7px 0 0;
    color:#aebdca;
    font-size:.88rem;
    line-height:1.5;
}

.member-online-pill:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:inline-flex;
    align-items:center;
    gap:7px;
    flex:0 0 auto;
    padding:7px 10px;
    color:#a8b5c2;
    background:#243344;
    border:1px solid #3b5065;
    border-radius:999px;
    font-size:.75rem;
    font-weight:800;
}

.member-online-pill i:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:8px;
    height:8px;
    background:#8a98a5;
    border-radius:50%;
}

.member-online-pill.is-online:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#7ce3c3;
    background:#12362f;
    border-color:#286652;
}

.member-online-pill.is-online i:where(.tv-fixed-stage, .tv-fixed-stage *){
    background:#55dfb4;
    box-shadow:0 0 12px #55dfb477;
}

.member-action-buttons:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}

.member-action-buttons .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:46px;
    justify-content:center;
}

.member-action-buttons .button:disabled:where(.tv-fixed-stage, .tv-fixed-stage *){
    opacity:.42;
    filter:saturate(.45);
    cursor:not-allowed;
}

.member-login-key-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:13px;
    padding:17px;
    background:radial-gradient(ellipse at 90% 0%,#29594f88,transparent 58%),linear-gradient(145deg,#102b2c,#101b27 72%);
    border:1px solid #527d70;
    border-radius:17px;
    box-shadow:inset 0 1px #ffffff0a,0 12px 30px #0003;
}

.member-login-key-card.is-empty:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:10px;
    background:linear-gradient(145deg,#182737,#111c29);
    border-color:#354b60;
    box-shadow:none;
}

.member-login-key-heading:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
}

.member-login-key-icon:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    place-items:center;
    flex:0 0 40px;
    width:40px;
    height:40px;
    color:#ffe08a;
    background:#dba83a24;
    border:1px solid #e4bb5a77;
    border-radius:13px;
    font-size:1.65rem;
    font-weight:900;
}

.member-login-key-heading>div:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    flex:1 1 auto;
}

.member-login-key-heading .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0 0 3px;
}

.member-login-key-heading h3:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    color:#f4f5f4;
    font-size:1rem;
}

.member-login-key-countdown:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 0 auto;
    padding:6px 9px;
    color:#ffe08a;
    background:#3b301d;
    border:1px solid #826b37;
    border-radius:999px;
    font-size:.72rem;
    font-weight:800;
    white-space:nowrap;
}

.member-login-key-digits:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    place-items:center;
    min-height:76px;
    padding:8px;
    background:#0a1720;
    border:1px solid #315d52;
    border-radius:13px;
    box-shadow:inset 0 0 24px #56dcb410;
}

.member-login-key-digits span:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#fff0bd;
    font:800 clamp(2rem,76.8px,2.65rem)/1 'DM Mono',monospace;
    letter-spacing:.26em;
    padding-left:.26em;
    text-shadow:0 0 18px #ffcf5c55;
    font-variant-numeric:tabular-nums;
}

.member-login-key-progress:where(.tv-fixed-stage, .tv-fixed-stage *){
    height:4px;
    overflow:hidden;
    background:#ffffff12;
    border-radius:99px;
}

.member-login-key-progress span:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    height:100%;
    background:linear-gradient(90deg,#56dfba,#ffd875);
    border-radius:inherit;
    transition:width .4s linear;
}

.member-login-key-description:where(.tv-fixed-stage, .tv-fixed-stage *),.member-login-key-status:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    color:#b3c0cb;
    font-size:.82rem;
    line-height:1.55;
}

.member-login-key-status:where(.tv-fixed-stage, .tv-fixed-stage *){
    padding:11px 12px;
    color:#dce7ec;
    background:#0d1823;
    border:1px solid #2d4053;
    border-radius:11px;
}

.member-login-key-card.is-empty .member-login-key-status:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#bed1d5;
}

.wallet-modal-close:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    top:12px;
    right:14px;
    width:40px;
    height:40px;
    color:#fff;
    background:#253649;
    border:1px solid #52687a;
    border-radius:50%;
    font-size:1.5rem;
    cursor:pointer;
}

.wallet-modal h2:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-modal h3:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
}

.wallet-modal label:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-mode-options label:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:6px;
    color:#cfdae2;
}

.wallet-modal input:where(.tv-fixed-stage, .tv-fixed-stage *),.wallet-modal textarea:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-mode-options input:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
    min-height:44px;
    padding:10px 12px;
    color:#f1f5f7;
    background:#0c1723;
    border:1px solid #40566a;
    border-radius:10px;
}

.wallet-modal textarea:where(.tv-fixed-stage, .tv-fixed-stage *){
    resize:vertical;
}

.wallet-balance-now:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    color:#aebcc6;
}

.wallet-balance-now strong:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-left:8px;
    color:#ffdc83;
    font-size:1.15rem;
}

.wallet-balance-now .wallet-dialog-game-balance:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    margin:4px 0 0 0;
    text-align:left;
}

.wallet-amount-presets:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
}

.wallet-amount-presets .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    min-height:40px;
    padding:8px 10px;
    font-size:.86rem;
    font-weight:800;
}

.wallet-reason-panel[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none;
}

.wallet-log-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:minmax(130px,auto) minmax(120px,1fr) auto;
    align-items:center;
    padding:9px 10px;
    background:#0f1a26;
    border:1px solid #273b4d;
    border-radius:10px;
}

.wallet-log-row>span small:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    margin-top:3px;
}

.wallet-log-row>small:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:2/-1;
}

.amount-positive:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#91e4b8;
}

.amount-negative:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ff9b91;
}

.admin-mode-options:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin:18px 0;
    padding:16px;
    background:#101c28;
    border:1px solid #30465a;
    border-radius:14px;
}

.admin-mode-options[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none !important;
}

.settings-grid label[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none !important;
}

.admin-mode-options label[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none !important;
}

.admin-mode-options h3:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1/-1;
    margin:0;
}

.admin-mode-options .check-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    gap:8px;
}

.admin-mode-options .check-row input:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:20px;
    min-height:20px;
}

.admin-mode-options small:where(.tv-fixed-stage, .tv-fixed-stage *),.standing-mode-hint:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#9eb0bd;
    font-size:.78rem;
}

.admin-timechip-options > small:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1 / -1;
    line-height:1.45;
}

.admin-timechip-options input:disabled:where(.tv-fixed-stage, .tv-fixed-stage *){
    opacity:.55;
}

.standing-mode-hint:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:12px 0;
    padding:12px;
    color:#d8e9d9;
    background:#18362d;
    border:1px solid #3b7961;
    border-radius:10px;
}

.wallet-insufficient:where(.tv-fixed-stage, .tv-fixed-stage *){
    opacity:.55;
}

.game-history-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:minmax(155px,auto) minmax(130px,auto) minmax(150px,1fr) auto;
    align-items:center;
    padding:10px 12px;
    background:#101c28;
    border:1px solid #2d4154;
    border-radius:10px;
}

.game-history-row>span:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#aebdc7;
    font-size:.8rem;
}

.ranking-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.ranking-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:32px 38px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    min-height:52px;
    padding:7px 10px;
    background:#101c28;
    border:1px solid #2d4154;
    border-radius:10px;
}

.ranking-row>b:where(.tv-fixed-stage, .tv-fixed-stage *),.ranking-row>span:last-child:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffdc83;
}

.admin-logout:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:inline-flex;
    align-items:center;
    justify-content:center;
    justify-self:end;
    gap:9px;
    min-width:190px;
    min-height:48px;
    margin:8px 0 0;
    padding:0 18px;
    color:#ffd5da;
    background:linear-gradient(135deg,#38212c,#211a26);
    border:1px solid #76505b;
    border-radius:14px;
    font:750 .88rem 'Noto Sans KR','Malgun Gothic','맑은 고딕',system-ui,sans-serif;
    letter-spacing:.01em;
    cursor:pointer;
    transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.admin-logout svg:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:19px;
    height:19px;
    color:#ff9eaa;
}

.admin-logout:hover:where(.tv-fixed-stage, .tv-fixed-stage *){
    background:linear-gradient(135deg,#542b39,#30202b);
    border-color:#c97988;
    box-shadow:0 8px 22px #0005,0 0 18px #c3577140;
    transform:translateY(-1px);
}

.admin-logout:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *){
    outline:3px solid #ff9eaa;
    outline-offset:3px;
}






/* CSP에서 인라인 스타일 없이 가족 대기실 좌석을 원형으로 배치합니다. */
.family-gathering .family-seat-1:where(.tv-fixed-stage, .tv-fixed-stage *){left:50%;top:16%}
.family-gathering .family-seat-2:where(.tv-fixed-stage, .tv-fixed-stage *){left:76%;top:20%}
.family-gathering .family-seat-3:where(.tv-fixed-stage, .tv-fixed-stage *){left:89%;top:43%}
.family-gathering .family-seat-4:where(.tv-fixed-stage, .tv-fixed-stage *){left:85%;top:70%}
.family-gathering .family-seat-5:where(.tv-fixed-stage, .tv-fixed-stage *){left:64%;top:88%}
.family-gathering .family-seat-6:where(.tv-fixed-stage, .tv-fixed-stage *){left:36%;top:88%}
.family-gathering .family-seat-7:where(.tv-fixed-stage, .tv-fixed-stage *){left:15%;top:70%}
.family-gathering .family-seat-8:where(.tv-fixed-stage, .tv-fixed-stage *){left:11%;top:43%}
.family-gathering .family-seat-9:where(.tv-fixed-stage, .tv-fixed-stage *){left:24%;top:20%}

/* 캐릭터 말풍선은 테이블 원 가장자리 밖으로도 표시합니다. */
.family-gathering:where(.tv-fixed-stage, .tv-fixed-stage *){overflow:visible}

/* 딜·결과 레이어는 같은 높이 슬롯에 담아 중앙 보드 위치를 고정합니다. */
.board-deal-slot:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;place-items:center;width:100%;min-height:112px}
.board-result-slot:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;place-items:center;width:100%;min-height:190px}
.champion-table-reveal:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:4px;width:100%;color:#ffe39b;text-align:center}
.champion-table-reveal>strong:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:clamp(.8rem,12.48px,1.08rem);line-height:1.25}
.champion-table-reveal .champion-board-cards:where(.tv-fixed-stage, .tv-fixed-stage *){align-items:center;min-height:112px}
.champion-phone-cards:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;justify-content:center;gap:12px;margin:16px 0}
.champion-phone-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){width:clamp(76px,240px,112px);height:clamp(104px,326.4px,152px);font-size:1.7rem;border-radius:12px}
.champion-phone-cards .playing-card b:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:1.35em}
.champion-phone-cards .playing-card span:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:1.15em}
.champion-finale:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:12px;width:min(100%,520px);margin:20px auto;padding:24px 20px 28px;text-align:center;background:linear-gradient(145deg,#1a2c3a,#101a27);border:1px solid #7c6b42;border-radius:24px;box-shadow:0 18px 54px #0007}
.champion-finale h1:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;font-size:clamp(1.8rem,76.8px,2.8rem);line-height:1.15;overflow-wrap:anywhere}
.champion-finale-status:where(.tv-fixed-stage, .tv-fixed-stage *),.champion-countdown:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;color:#f1d88d;line-height:1.5}
.champion-trophy:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:3rem}
.champion-finale .button:where(.tv-fixed-stage, .tv-fixed-stage *){width:min(100%,380px)}
.avatar-choice:where(.tv-fixed-stage, .tv-fixed-stage *){position:relative}
.avatar-choice.taken:where(.tv-fixed-stage, .tv-fixed-stage *){opacity:.64;border-color:#53606c;background:#17212d;cursor:not-allowed}
.avatar-choice.taken>span:where(.tv-fixed-stage, .tv-fixed-stage *),.avatar-choice.taken>small:where(.tv-fixed-stage, .tv-fixed-stage *){filter:blur(1.2px)}
.avatar-taken-label:where(.tv-fixed-stage, .tv-fixed-stage *){position:absolute;inset:auto 3px 4px;color:#fff;background:#111c;border-radius:6px;font-size:.58rem;line-height:1.4;pointer-events:none}
.avatar-choice-note:where(.tv-fixed-stage, .tv-fixed-stage *){display:block;margin-top:8px;color:#9daebe;font-size:.75rem;line-height:1.45}
.avatar-choice.taken.identity-conflict:where(.tv-fixed-stage, .tv-fixed-stage *){z-index:1;opacity:1;border:2px solid #ff6478;box-shadow:0 0 0 3px #ff647844,0 0 18px #ff647866;background:#3b202a}
.avatar-choice.taken.identity-conflict>span:where(.tv-fixed-stage, .tv-fixed-stage *),.avatar-choice.taken.identity-conflict>small:where(.tv-fixed-stage, .tv-fixed-stage *){filter:none}
.avatar-selection-hint:where(.tv-fixed-stage, .tv-fixed-stage *){box-sizing:border-box;display:flex;align-items:center;min-height:3.4em;margin:9px 0 0;padding:8px 10px;color:#b7c6d4;background:#122232;border:1px solid #2d4357;border-radius:10px;font-size:.76rem;line-height:1.45;text-align:left}
.avatar-selection-hint.is-warning:where(.tv-fixed-stage, .tv-fixed-stage *){color:#ffe1e4;background:#381d27;border-color:#ec5c70;font-weight:700;box-shadow:inset 3px 0 #ec5c70}
.cancellation-notice:where(.tv-fixed-stage, .tv-fixed-stage *){box-sizing:border-box;max-width:calc(960px - 24px)}
.cancellation-notice h1:where(.tv-fixed-stage, .tv-fixed-stage *){width:100%;max-width:100%;font-size:clamp(1.45rem,63.36px,3.8rem);line-height:1.22;overflow-wrap:anywhere;text-wrap:balance}

/* 시작 자산과 오디오 조작을 첫 화면에서 알기 쉽게 표시합니다. */
.loading-track:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:min(729.6px,420px);
    height:12px;
    margin:18px auto 8px;
    overflow:hidden;
    background:#26394b;
    border:1px solid #496276;
    border-radius:999px;
}

.loading-track>span:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    width:0;
    height:100%;
    background:linear-gradient(90deg,#48c6a4,#f3c96b);
    transition:width .16s ease-out;
}

.loading-detail:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    max-width:min(806.4px,520px);
    margin:0 auto;
    color:#899bad;
    font-size:.74rem;
    overflow-wrap:anywhere;
}

.raise-range-hint:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    color:#d7e3eb;
    font-size:.78rem;
}

.short-all-in-hint:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1/-1;
    margin:0;
    color:#f4dc9b;
    font-size:.82rem;
}

.tv-broadcast.is-showdown:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-color:#f4d778;
    background:linear-gradient(110deg,#70520ceF,#332b19f2 55%,#70520ceF);
}

.tv-broadcast.is-showdown>strong:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe99d;
}







/* 대기 이모티콘은 폴링 화면 교체에도 만료 시각까지 계속 보입니다. */
.waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *){
    animation:none;
    opacity:1;
}

/* 베팅 다이얼은 휴대폰에서 숫자와 슬라이더를 함께 조작할 수 있게 합니다. */
.raise-control input[type="range"]:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:30px;
    padding:0;
    accent-color:#f3c96b;
    touch-action:pan-x;
}

.raise-control output:where(.tv-fixed-stage, .tv-fixed-stage *){
    justify-self:center;
    min-width:7ch;
    padding:7px 12px;
    color:#ffe08c;
    background:#0b1420;
    border:1px solid #806d43;
    border-radius:10px;
    font:700 1.05rem 'DM Mono',monospace;
    text-align:center;
}

/* 칩 액수에 맞춰 서로 다른 액면가를 세로 더미로 구성합니다. */
.chip-bank:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:5px;
    min-height:40px;
}

.chip-denomination:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    justify-items:center;
    gap:2px;
    min-width:27px;
    color:#fff;
    text-shadow:0 1px 3px #000;
}

.chip-denomination small:where(.tv-fixed-stage, .tv-fixed-stage *){
    font:600 .48rem 'DM Mono',monospace;
    white-space:nowrap;
}

.chip-denomination-pile:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    flex-direction:column-reverse;
    align-items:center;
    min-height:30px;
    padding:0 2px;
    filter:drop-shadow(0 2px 2px #0009);
}

.chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    width:24px;
    height:9px;
    margin-top:-3px;
    border:2px dashed #fff9;
    border-radius:48%;
    box-shadow:0 1px 3px #000b;
}

.chip-denomination-10000 .chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){background:#8f5ac9}
.chip-denomination-5000 .chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){background:#edc64b}
.chip-denomination-1000 .chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){background:#54b879}
.chip-denomination-500 .chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){background:#499be0}
.chip-denomination-100 .chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){background:#e34c5b}
.chip-denomination-25 .chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){background:#e8e9ec}
.chip-denomination-5 .chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){background:#e88a42}
.chip-denomination-1 .chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){background:#8f9ba2}
.chip-bank-empty:where(.tv-fixed-stage, .tv-fixed-stage *){color:#aeb9b8}
.stack-chips:where(.tv-fixed-stage, .tv-fixed-stage *){position:relative;right:auto;bottom:auto;display:flex;align-items:flex-end;height:auto}
.seat-chip-front .stack-chips:where(.tv-fixed-stage, .tv-fixed-stage *){filter:drop-shadow(0 3px 2px #000a)}
.seat-chip-front .stack-balance:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:2px;line-height:1.1}
.seat-chip-front .stack-balance small:where(.tv-fixed-stage, .tv-fixed-stage *){color:#d8e5df;font-size:.55rem}
.seat-chip-front .seat-stack-balance:where(.tv-fixed-stage, .tv-fixed-stage *){color:#ffe08c;font:800 .9rem 'DM Mono',monospace;text-shadow:0 2px 4px #000}
.seat-bet-on-felt .chip-bank:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:25px}
.seat-bet-on-felt .chip-denomination:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:20px}
.seat-bet-on-felt .chip-denomination-pile:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:20px}
.seat-bet-on-felt .chip-denomination-pile i:where(.tv-fixed-stage, .tv-fixed-stage *){width:17px;height:7px}
.seat-bet-on-felt .chip-denomination small:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.4rem}
.pot-chip-stack .chip-bank:where(.tv-fixed-stage, .tv-fixed-stage *){max-width:170px;min-height:43px;flex-wrap:wrap;align-content:flex-end}
.pot-chip-stack .chip-denomination-pile:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:27px}

/* 위치표는 버튼과 두 블라인드를 각 좌석의 위치 정보로 보여줍니다. */
.position-badges:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    flex:0 0 auto;
    flex-wrap:wrap;
    gap:3px;
}

.position-badge:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:inline-flex;
    align-items:center;
    min-height:20px;
    padding:2px 5px;
    color:#10221b;
    border:1px solid #fff8;
    border-radius:6px;
    font:900 .52rem 'DM Mono',monospace;
}

.position-button:where(.tv-fixed-stage, .tv-fixed-stage *){background:#fff0ac}
.position-small-blind:where(.tv-fixed-stage, .tv-fixed-stage *){background:#8fd5f4}
.position-big-blind:where(.tv-fixed-stage, .tv-fixed-stage *){background:#f59b80}
.seat-action-banner.is-active:where(.tv-fixed-stage, .tv-fixed-stage *){color:#162213;background:linear-gradient(180deg,#eff9cb,#a6cf72);border-color:#f0ffbb}

/* 새 공용 카드는 딜러가 뒷면으로 놓은 다음 앞면으로 뒤집습니다. */
.community-card.board-card-enter:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    transform-style:preserve-3d;
}

.board-card-dealer-back:where(.tv-fixed-stage, .tv-fixed-stage *),.board-card-dealer-front:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    backface-visibility:hidden;
}

.board-card-dealer-back:where(.tv-fixed-stage, .tv-fixed-stage *){z-index:2;animation:tv960-dealer-board-back .9s ease both}
.board-card-dealer-front:where(.tv-fixed-stage, .tv-fixed-stage *){animation:tv960-dealer-board-front .9s ease both}
.community-card.board-card-enter:where(.tv-fixed-stage, .tv-fixed-stage *){width:clamp(94px,52.8px,112px);height:clamp(132px,76.8px,154px)}

@keyframes tv960-dealer-board-back{
    0%{opacity:0;transform:translateY(-18px) rotate(-9deg) scale(.9)}
    16%{opacity:1;transform:translateY(0) rotate(0) scale(1)}
    55%{opacity:1;transform:rotateY(0)}
    65%,100%{opacity:0;transform:rotateY(90deg)}
}

@keyframes tv960-dealer-board-front{
    0%,55%{opacity:0;transform:rotateY(90deg)}
    100%{opacity:1;transform:rotateY(0)}
}

/* 행동 시간이 10초 이하일 때만 양쪽 화면에서 좌석을 붉게 점멸합니다. */
.seat.timer-critical:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-screen.timer-critical .my-hand:where(.tv-fixed-stage, .tv-fixed-stage *){
    outline:3px solid #ff4057;
    outline-offset:2px;
    animation:tv960-timer-critical-pulse .72s ease-in-out infinite alternate;
}

.phone-screen.timer-critical:where(.tv-fixed-stage, .tv-fixed-stage *){
    box-shadow:inset 0 0 0 4px #ff4057, inset 0 0 30px #ff405755;
}

@keyframes tv960-timer-critical-pulse{
    from{outline-color:#8d172b;box-shadow:0 0 7px #f3163970}
    to{outline-color:#ff7786;box-shadow:0 0 24px #ff2b4dbb}
}

/* TV의 경고는 좌석 전체의 그림자를 다시 그리지 않고 고정된 테두리만 점멸합니다. */
.game-screen .seat.timer-critical:where(.tv-fixed-stage, .tv-fixed-stage *){
    animation:none;
    box-shadow:0 0 0 2px #ff405766,0 0 18px #ff2b4d70;
}

.game-screen .seat.timer-critical:where(.tv-fixed-stage, .tv-fixed-stage *)::before{
    position:absolute;
    inset:1px;
    content:"";
    border:2px solid #ff7786;
    border-radius:inherit;
    box-shadow:inset 0 0 10px #ff2b4d60;
    pointer-events:none;
    animation:tv960-tv-frame-glow-opacity .72s ease-in-out infinite alternate;
}

@keyframes tv960-tv-frame-glow-opacity{
    from{opacity:.35}
    to{opacity:1}
}

/* 결과는 공개 카드와 남은 초를 고정된 보드 영역에 정리합니다. */
.hand-result-panel:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:8px;width:min(902.4px,760px)}
.hand-result-banner:where(.tv-fixed-stage, .tv-fixed-stage *){width:100%;max-width:760px}
.next-hand-countdown:where(.tv-fixed-stage, .tv-fixed-stage *){color:#563d0b;font-size:.8em;font-weight:800}
.winner-reveal-cards:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:2px;color:#ffedbb;font-weight:800}
.winner-reveal-cards>.board-cards:where(.tv-fixed-stage, .tv-fixed-stage *){gap:8px;min-height:0}
.winner-card-pair:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:6px}
.winner-card-pair small:where(.tv-fixed-stage, .tv-fixed-stage *){color:#ffe8a7;font-size:.68rem}
.winner-reveal-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){width:clamp(75px,52.8px,112px);height:clamp(105px,76.8px,154px);border-radius:11px;font-size:1.45rem}
.winner-cards-closed:where(.tv-fixed-stage, .tv-fixed-stage *){color:#d4dfdb;font-size:.78rem}
.winner-party-border:where(.tv-fixed-stage, .tv-fixed-stage *){animation:tv960-winner-party-frame 1.4s linear infinite;outline:3px solid #ffd44f;outline-offset:2px}

@keyframes tv960-winner-party-frame{
    0%{box-shadow:0 0 0 3px #ffe15d,0 0 18px #ff564f}
    33%{box-shadow:0 0 0 3px #ff68bc,0 0 20px #ff68bc}
    66%{box-shadow:0 0 0 3px #57dcff,0 0 20px #57dcff}
    100%{box-shadow:0 0 0 3px #ffe15d,0 0 18px #ff564f}
}

/* 우승 프레임은 금색을 유지하며 투명도만 바꾸고 카드·좌석 위치는 그대로 둡니다. */
.game-screen .seat.winner-party-border:where(.tv-fixed-stage, .tv-fixed-stage *){
    animation:none;
    box-shadow:0 0 0 3px #ffe15d,0 0 20px #ffe15d88;
}

.game-screen .seat.winner-party-border:where(.tv-fixed-stage, .tv-fixed-stage *)::before{
    position:absolute;
    inset:1px;
    content:"";
    border:2px solid #fff2a3;
    border-radius:inherit;
    box-shadow:inset 0 0 12px #ffe15d66;
    pointer-events:none;
    animation:tv960-tv-frame-glow-opacity 1.4s ease-in-out infinite alternate;
}

.board-result-slot:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:260px}
.winner-reveal-cards .board-cards:where(.tv-fixed-stage, .tv-fixed-stage *){flex-wrap:wrap}





@media (prefers-reduced-motion:reduce){
    .community-card.board-card-enter .board-card-dealer-back:where(.tv-fixed-stage, .tv-fixed-stage *),.community-card.board-card-enter .board-card-dealer-front:where(.tv-fixed-stage, .tv-fixed-stage *),.seat.timer-critical:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-screen.timer-critical .my-hand:where(.tv-fixed-stage, .tv-fixed-stage *),.winner-party-border:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .seat.timer-critical:where(.tv-fixed-stage, .tv-fixed-stage *)::before,.game-screen .seat.winner-party-border:where(.tv-fixed-stage, .tv-fixed-stage *)::before{
        animation:none!important;
    }

    .community-card.board-card-enter .board-card-dealer-back:where(.tv-fixed-stage, .tv-fixed-stage *){
        display:none;
    }

    .community-card.board-card-enter .board-card-dealer-front:where(.tv-fixed-stage, .tv-fixed-stage *){
        display:grid;
        opacity:1;
        transform:none;
        visibility:visible;
    }
}

/* 관전 휴대폰·태블릿 화면은 세로 흐름과 상단 조작 공간을 사용합니다. */


.family-lobby-layout:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(230px, 300px);
    align-items:center;
    gap:18px;
    max-width:1040px;
}

.family-lobby-layout .family-gathering:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
}

.family-winner-ranking:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:9px;
    padding:20px;
    color:#e9f2ee;
    background:linear-gradient(155deg,#172c31,#13212a);
    border:1px solid #3f7162;
    border-radius:20px;
    box-shadow:0 16px 40px #0005;
}

.family-winner-ranking .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *),.family-winner-ranking h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
}

.family-winner-ranking h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-top:4px;
    color:#f4d77d;
    font-size:1.05rem;
}

.family-ranking-list:where(.tv-fixed-stage, .tv-fixed-stage *),.family-recent-wins:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:7px;
    max-height:260px;
    overflow-y:auto;
    overscroll-behavior:contain;
}

.family-winner-ranking .family-recent-title:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-top:5px;
    font-size:.92rem;
}

.family-latest-winner:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:4px;
    padding:10px 12px;
    background:#0d1b20;
    border:1px solid #947c3d;
    border-radius:12px;
}

.family-latest-winner span:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#c3cbd0;
    font-size:.78rem;
}

.family-latest-winner strong:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe395;
    font-size:.95rem;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.family-ranking-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:32px minmax(0,1fr) auto;
    align-items:center;
    gap:7px;
    padding:7px 9px;
    background:#20333a;
    border-radius:9px;
    font-size:.83rem;
}

.family-ranking-row b:where(.tv-fixed-stage, .tv-fixed-stage *),.family-ranking-row strong:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#f4d77d;
}

.family-recent-win:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:3px;
    padding:7px 9px;
    color:#cbd5d9;
    background:#172a31;
    border-radius:9px;
    font-size:.75rem;
    line-height:1.35;
}

.family-recent-win b:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#e8d69e;
}

.family-recent-win span:where(.tv-fixed-stage, .tv-fixed-stage *){
    overflow-wrap:anywhere;
}

.family-ranking-row span:where(.tv-fixed-stage, .tv-fixed-stage *){
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.family-ranking-empty:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    color:#aab7bf;
    font-size:.83rem;
    line-height:1.5;
}

.waiting-player.family-champion:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-color:#e6c45e;
    box-shadow:0 0 0 2px #e6c45e44,0 9px 25px #0007;
}

.waiting-crown:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    z-index:6;
    top:-25px;
    left:50%;
    font-size:1.65rem;
    line-height:1;
    filter:drop-shadow(0 3px 4px #0008);
    transform:translateX(-50%);
}

.waiting-player.family-member .family-champion-label:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe395;
    font-size:.62rem;
    font-weight:750;
}

.family-champion .waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *){
    right:-27px;
    bottom:-3px;
    left:auto;
    transform:none;
}

.family-champion .waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *):after{
    left:14px;
    transform:rotate(45deg);
}

.table-champion-crown:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    top:-.92em;
    left:50%;
    font-size:.76em;
    line-height:1;
    transform:translateX(-50%);
}

.champion-win-line:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#fff0bc;
    font-size:clamp(.72rem,10.08px,.92rem);
    line-height:1.35;
    overflow-wrap:anywhere;
}


    .family-lobby-layout:where(.tv-fixed-stage, .tv-fixed-stage *){
        grid-template-columns:minmax(0,1fr);
        justify-items:center;
    }

    .family-winner-ranking:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:min(100%,720px);
        box-sizing:border-box;
    }




/* 플레이어 위치 코인은 펠트의 칩 위치에 붙이고 이름 전체를 줄바꿈해 표시합니다. */
.seat-chip-front .table-position-coins:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    top:50%;
    left:-54px;
    display:flex;
    flex-direction:column;
    gap:4px;
    transform:translateY(-50%);
}

.table-position-coin:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    color:#182129;
    background:radial-gradient(circle at 35% 28%,#fff6cb,#e8bd48 53%,#9a6820 57%,#e4c362 67%,#684916 72%);
    border:3px solid #f8e7a4;
    border-radius:50%;
    box-shadow:0 3px 8px #000b,0 0 14px #f4d77599,inset 0 0 0 2px #805b20;
    font:900 .72rem 'DM Mono',monospace;
    text-shadow:0 1px #fff7;
}

.table-position-coin.position-small-blind:where(.tv-fixed-stage, .tv-fixed-stage *){
    background:radial-gradient(circle at 35% 28%,#e9fbff,#54acd7 54%,#23577c 58%,#8ed5ef 69%,#244967 73%);
}

.table-position-coin.position-big-blind:where(.tv-fixed-stage, .tv-fixed-stage *){
    background:radial-gradient(circle at 35% 28%,#fff0e6,#e67c53 54%,#843a29 58%,#ffc0a1 69%,#6f352a 73%);
}

.tv-seat-circle .seat-top strong:where(.tv-fixed-stage, .tv-fixed-stage *){
    max-width:clamp(125px,105.6px,220px);
    overflow:visible;
    overflow-wrap:anywhere;
    text-overflow:clip;
    white-space:normal;
    line-height:1.12;
}

.seat.active:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-color:#53ff9c;
    box-shadow:0 0 0 2px #53ff9c66,0 10px 30px #06120f,0 0 25px #2aff8c55;
}

.seat.active:where(.tv-fixed-stage, .tv-fixed-stage *)::after{
    position:absolute;
    right:10%;
    bottom:-5px;
    left:10%;
    height:4px;
    content:"";
    background:#62ff9b;
    border-radius:999px;
    box-shadow:0 0 9px #42ff93,0 0 21px #2aff8c;
    animation:tv960-turn-line-glow .7s ease-in-out infinite alternate;
}

@keyframes tv960-turn-line-glow{
    from{opacity:.52;box-shadow:0 0 6px #42ff93}
    to{opacity:1;box-shadow:0 0 14px #42ff93,0 0 28px #2aff8c}
}

.game-screen .seat.active:where(.tv-fixed-stage, .tv-fixed-stage *)::after{
    animation:tv960-tv-turn-line-opacity .7s ease-in-out infinite alternate;
}

.game-screen .seat.active.timer-critical:where(.tv-fixed-stage, .tv-fixed-stage *)::after{
    background:#ff7786;
    box-shadow:0 0 9px #ff4057,0 0 21px #ff2b4d;
}

@keyframes tv960-tv-turn-line-opacity{
    from{opacity:.52}
    to{opacity:1}
}

.turn-countdown-box:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    z-index:10;
    top:-13px;
    left:-13px;
    display:grid;
    place-items:center;
    width:39px;
    height:39px;
    color:#fff;
    background:linear-gradient(145deg,#f53b4e,#85172b);
    border:2px solid #ffe3e4;
    border-radius:11px;
    box-shadow:0 0 15px #ff334fbb;
    font:900 1.05rem 'DM Mono',monospace;
    animation:tv960-timer-countdown-pulse .62s ease-in-out infinite alternate;
}

.turn-countdown-box[data-turn-warning-countdown][hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none!important;
}

.hand-title .turn-countdown-box:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:static;
    flex:0 0 auto;
    width:43px;
    height:43px;
    font-size:1.2rem;
}

@keyframes tv960-timer-countdown-pulse{
    from{filter:brightness(.88);transform:scale(.96)}
    to{filter:brightness(1.2);transform:scale(1.04)}
}


    .tv-dealer-seat:where(.tv-fixed-stage, .tv-fixed-stage *){
        top:11%;
    }

    .tv-broadcast-slot-below-dealer:where(.tv-fixed-stage, .tv-fixed-stage *){
        top:31%;
    }

    .game-screen .tv-table-wrap>.poker-table:where(.tv-fixed-stage, .tv-fixed-stage *){
        inset:23.6% 19% 24%;
    }

    .tv-table-wrap .board-zone:where(.tv-fixed-stage, .tv-fixed-stage *){
        transform:translateY(21.6px);
    }






@media (prefers-reduced-motion:reduce){
    .seat.active:where(.tv-fixed-stage, .tv-fixed-stage *)::after,.turn-countdown-box:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-game-screen .my-hand.player-turn-active:where(.tv-fixed-stage, .tv-fixed-stage *){
        animation:none!important;
    }
}

/* README 카드 그림은 기존 카드 프레임을 유지한 채 안쪽에 맞춰 표시합니다. */
.playing-card.card-image:where(.tv-fixed-stage, .tv-fixed-stage *){overflow:hidden;padding:0;background:#fff}
.playing-card.card-image .card-face-image:where(.tv-fixed-stage, .tv-fixed-stage *){display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit;pointer-events:none}

.bet-presets:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.bet-presets .button:where(.tv-fixed-stage, .tv-fixed-stage *){flex:1 1 88px;min-width:0;padding:10px 8px;font-size:.9rem}
.bet-presets .button:disabled:where(.tv-fixed-stage, .tv-fixed-stage *){opacity:.45;cursor:not-allowed}
.showdown-hole-card:where(.tv-fixed-stage, .tv-fixed-stage *){display:inline-block;perspective:900px;vertical-align:top}
.showdown-hole-card.is-revealing:where(.tv-fixed-stage, .tv-fixed-stage *){animation:tv960-showdown-card-flip .6s ease both;transform-origin:center}
@keyframes tv960-showdown-card-flip{0%{opacity:.55;transform:rotateY(88deg) scale(.92)}65%{opacity:1;transform:rotateY(-8deg) scale(1.03)}100%{transform:rotateY(0) scale(1)}}
@media (prefers-reduced-motion:reduce){.showdown-hole-card.is-revealing:where(.tv-fixed-stage, .tv-fixed-stage *){animation:none}}

.betting-control-panel:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:9px;
    min-width:0;
}

.betting-control-panel.waiting-turn:where(.tv-fixed-stage, .tv-fixed-stage *){
    opacity:.72;
    filter:saturate(.62);
}

.betting-control-panel .action-unavailable:where(.tv-fixed-stage, .tv-fixed-stage *){
    opacity:.4;
    filter:saturate(.32);
    cursor:not-allowed;
    pointer-events:none;
}

.bet-sizing-panel:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:5px;
    min-width:0;
}

.betting-control-panel .action-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:repeat(2,minmax(0,1fr));
}

/* 휴대폰 배팅 패널의 세로 공간을 줄이고 주요 동작 버튼은 누르기 쉽게 둡니다. */


.admin-invite-link:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:7px;
    width:min(100%,440px);
    min-width:0;
    color:#d4e0e7;
    font-size:.82rem;
}

.admin-invite-link>div:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.admin-invite-link input:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:1 1 230px;
    min-width:0;
    min-height:44px;
    padding:9px 11px;
    color:#f5f4e8;
    background:#0e1925;
    border:1px solid #40566a;
    border-radius:10px;
    font-size:.76rem;
}

.admin-invite-link small:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#aebdc7;
    line-height:1.4;
}

.hand-winner-hand .seat-cards:where(.tv-fixed-stage, .tv-fixed-stage *),.showdown-revealing .seat-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
    justify-content:center;
    gap:7px;
    margin:9px 0 2px;
}

.showdown-revealing .seat-cards .showdown-hole-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 1 calc((100% - 7px) / 2);
    width:calc((100% - 7px) / 2);
    max-width:104px;
}

.hand-winner-hand .seat-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 1 calc((100% - 7px) / 2);
    width:calc((100% - 7px) / 2);
    max-width:104px;
    height:auto;
    aspect-ratio:5 / 7;
    border-radius:10px;
    font-size:1.3rem;
}

.showdown-revealing .seat-cards .showdown-hole-card .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
    max-width:none;
    height:auto;
    aspect-ratio:5 / 7;
    border-radius:10px;
    font-size:1.3rem;
}

.winning-combination-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    z-index:2;
    border:3px solid #ffe65c;
    box-shadow:0 0 0 3px #ffcf4d66,0 0 19px 7px #ffe65caa;
    animation:tv960-winning-combination-pulse .82s ease-in-out infinite alternate;
}

@keyframes tv960-winning-combination-pulse{
    from{filter:brightness(1);box-shadow:0 0 0 2px #ffcf4d66,0 0 12px 4px #ffe65c88}
    to{filter:brightness(1.16);box-shadow:0 0 0 4px #ffe65caa,0 0 26px 10px #ffe65cdd}
}

/* 카드 이미지 위에 레이어를 덮지 않고 고정 발광과 작은 투명도 변화로 강조합니다. */
.game-screen .winning-combination-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    animation:tv960-tv-winning-card-opacity .82s ease-in-out infinite alternate;
}

@keyframes tv960-tv-winning-card-opacity{
    from{opacity:.92}
    to{opacity:1}
}

@media (prefers-reduced-motion:reduce){
    .game-screen .winning-combination-card:where(.tv-fixed-stage, .tv-fixed-stage *){
        animation:none!important;
    }
}





/* 가족 대기실과 게임 좌석에서 캐릭터 이모티콘이 원형 테두리 밖으로 나가지 않게 합니다. */
.avatar-icon:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    overflow:hidden;
    border-radius:inherit;
    line-height:1;
    transform:scale(.88);
}

.game-screen .seat-top .avatar:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    display:grid;
    place-items:center;
    overflow:visible;
    border-radius:50%;
}

.game-screen .seat-top .avatar-icon:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-radius:50%;
}

.family-wallet-balance:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe394;
    font:700 .78rem 'DM Mono',monospace;
    line-height:1.15;
    white-space:nowrap;
}

/* 휴대폰 게임은 헤더·손패·배팅 컨트롤이 문서와 함께 한 번에 스크롤됩니다. */
.phone-game-screen:where(.tv-fixed-stage, .tv-fixed-stage *){
    overflow-x:clip;
    overflow-y:visible;
}

.phone-game-screen .phone-header:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:static;
    min-height:44px;
    padding:6px 3px;
    background:transparent;
}

.phone-game-screen .phone-game:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:9px;
    padding-bottom:max(18px, env(safe-area-inset-bottom));
}

.phone-game-screen .my-hand:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    padding:12px 14px;
    background:#142130;
    box-shadow:none;
}

.phone-game-screen .action-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:static;
    bottom:auto;
}

.phone-game-screen .my-hand.player-turn-active:where(.tv-fixed-stage, .tv-fixed-stage *){
    outline:3px solid #4fb7ff;
    outline-offset:2px;
    animation:tv960-player-turn-blue-pulse .9s ease-in-out infinite alternate;
}

.phone-game-screen .my-hand.player-turn-active.timer-critical:where(.tv-fixed-stage, .tv-fixed-stage *){
    outline-color:#ff4057;
    animation:tv960-timer-critical-pulse .72s ease-in-out infinite alternate;
}

@keyframes tv960-player-turn-blue-pulse{
    from{outline-color:#1974b9;box-shadow:0 0 8px #238ee777,0 8px 22px #0007}
    to{outline-color:#62c4ff;box-shadow:0 0 24px #2da8ffcc,0 8px 22px #0007}
}

.phone-game-screen .hand-title:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:10px;
}

.phone-game-screen .hand-title h1:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:1.35rem;
}

.hand-clock-stack:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    justify-items:end;
    gap:3px;
    flex:0 0 auto;
}

.phone-game-screen .hand-countdown:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:1rem;
    line-height:1.1;
}

.phone-game-screen .hand-clock-stack .turn-countdown-box:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    top:43px;
    right:10px;
    width:33px;
    height:33px;
    font-size:.95rem;
}

.phone-game-screen .timechip:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:32px;
    padding:4px 8px;
    font-size:.73rem;
    line-height:1.1;
    white-space:nowrap;
}

.phone-game-screen .private-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:0;
    margin:7px 0 0;
    padding:5px 8px;
}

.hand-status-line:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:5px;
    min-height:44px;
}

.hand-status-line .status-line:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:1 1 auto;
    min-width:0;
    margin:0;
    font-size:.82rem;
    line-height:1.25;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}

.hand-status-line .card-help-open:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    top:92px;
    left:8px;
    display:grid;
    z-index:4;
    flex:0 0 40px;
    place-items:center;
    width:40px;
    min-height:40px;
    padding:0;
    color:#152316;
    background:#f3c96b;
    border-color:#fff0b2;
    border-radius:50%;
    font-size:1.55rem;
    font-weight:900;
    box-shadow:0 4px 12px #0005;
}

.hand-result-reveal-action:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:10px 0 0;
    color:#ffe29a;
    text-align:center;
    font-size:.92rem;
    font-weight:750;
}

.hand-reveal-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:4px;
    margin:8px 0 0;
}

.hand-reveal-actions .hand-result-reveal-action:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
}

.hand-reveal-actions .reveal-both-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:2px 0 8px;
}

.public-card-reveal-option:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    width:auto;
    min-width:0;
    margin:0;
    padding:0;
    color:inherit;
    background:transparent;
    border:0;
    border-radius:14px;
    line-height:0;
    cursor:pointer;
    touch-action:manipulation;
}

.public-card-reveal-option:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *){
    outline:3px solid var(--gold);
    outline-offset:4px;
}

.public-card-reveal-option:disabled:where(.tv-fixed-stage, .tv-fixed-stage *){
    opacity:.7;
    cursor:wait;
}

.champion-phone-cards .public-card-reveal-option:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-radius:12px;
}

.champion-final-details:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    justify-items:center;
    gap:10px;
    width:100%;
    margin:2px 0 4px;
    padding:14px 12px;
    border:1px solid #647b83;
    border-radius:16px;
    background:#0b1821b8;
}

.champion-final-details h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    color:#c3d7df;
    font-size:1rem;
}

.champion-final-board:where(.tv-fixed-stage, .tv-fixed-stage *),.champion-final-loser-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    width:100%;
}

.champion-final-board .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:clamp(38px,115.2px,58px);
    height:auto;
    aspect-ratio:.68;
    font-size:.85rem;
}

.champion-final-rank:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe08a;
    font-size:clamp(1.2rem,48px,1.65rem);
    line-height:1.2;
}

.champion-final-loser:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    justify-items:center;
    gap:7px;
    width:100%;
    padding-top:8px;
    border-top:1px solid #52636b;
    color:#c5ced4;
}

.champion-final-loser-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:clamp(36px,96px,48px);
    height:auto;
    aspect-ratio:.68;
    font-size:.72rem;
    opacity:.82;
}

.champion-final-loser-cards .playing-card b:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:1.05em;
}

.betting-control-panel:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:7px;
}

.bet-sizing-panel:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
}

.bet-sizing-panel .open-bet-dial:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
    min-height:50px;
    font-size:1.04rem;
}

.check-call-actions:where(.tv-fixed-stage, .tv-fixed-stage *),.risk-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
}

.check-call-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *),.risk-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    min-height:54px;
    padding:8px 6px;
    font-size:.94rem;
}

.check-call-actions .call-primary:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:60px;
    font-size:1.15rem;
}

.check-call-actions .button:disabled:where(.tv-fixed-stage, .tv-fixed-stage *),.risk-actions .button:disabled:where(.tv-fixed-stage, .tv-fixed-stage *),.timechip:disabled:where(.tv-fixed-stage, .tv-fixed-stage *){
    opacity:.42;
    filter:saturate(.55);
    cursor:not-allowed;
}

.bet-presets:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:6px;
    margin:0;
}

.bet-presets .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    align-content:center;
    gap:3px;
    min-width:0;
    min-height:58px;
    padding:6px 3px;
    text-align:center;
}

.bet-presets .button span:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:.91rem;
    font-weight:850;
    line-height:1.05;
}

.bet-presets .button small:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#d1dae3;
    font:600 .68rem 'DM Mono',monospace;
    line-height:1.05;
}

.risk-actions .button.gold:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#302306;
    background:linear-gradient(180deg,#ffe28a,#d4a236);
    border-color:#fff0ae;
}

.risk-actions .button.danger:where(.tv-fixed-stage, .tv-fixed-stage *){
    background:linear-gradient(180deg,#7c3140,#4a1d29);
    border-color:#d57b85;
}



/* 짧은 TV 화면에서는 가족 대기 테이블과 랭킹, 참가 QR을 한 화면에 담습니다. */

    .tv-shell.waiting-room:where(.tv-fixed-stage, .tv-fixed-stage *){
        display:grid;
        grid-template-rows:34px minmax(0, 1fr);
        gap:4px;
        width:100%;
        height:540px;
        height:540px;
        min-height:0;
        overflow:hidden;
        padding:5px 10px 7px;
    }

    .tv-shell.waiting-room .tv-header:where(.tv-fixed-stage, .tv-fixed-stage *){
        min-height:0;
        gap:8px;
        padding:0 5px;
    }

    .tv-shell.waiting-room .tv-header .brand:where(.tv-fixed-stage, .tv-fixed-stage *),.tv-shell.waiting-room .tv-header>a:last-child:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.72rem;
        white-space:nowrap;
    }

    .tv-shell.waiting-room .tv-header .family-pill:where(.tv-fixed-stage, .tv-fixed-stage *){
        padding:4px 9px;
        font-size:.7rem;
    }

    .tv-shell.waiting-room .waiting-main:where(.tv-fixed-stage, .tv-fixed-stage *){
        display:grid;
        grid-template-columns:minmax(0, 1fr) 138px;
        align-items:stretch;
        gap:10px;
        width:100%;
        max-width:none;
        min-height:0;
        margin:0;
    }

    .tv-shell.waiting-room .waiting-welcome:where(.tv-fixed-stage, .tv-fixed-stage *){
        display:grid;
        grid-template-rows:auto auto auto minmax(0, 1fr) auto auto;
        min-width:0;
        min-height:0;
        gap:2px;
    }

    .tv-shell.waiting-room .waiting-welcome>.eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *),.tv-shell.waiting-room .waiting-welcome>h1:where(.tv-fixed-stage, .tv-fixed-stage *),.tv-shell.waiting-room .waiting-welcome>p:where(.tv-fixed-stage, .tv-fixed-stage *){
        margin:0;
    }

    .tv-shell.waiting-room .waiting-welcome>.eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.63rem;
        line-height:1.1;
    }

    .tv-shell.waiting-room .waiting-welcome>h1:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:clamp(1.2rem, 17.28px, 1.65rem);
        line-height:1.05;
        letter-spacing:-.035em;
    }

    .tv-shell.waiting-room .waiting-welcome>p.muted:where(.tv-fixed-stage, .tv-fixed-stage *){
        overflow:hidden;
        font-size:.67rem;
        line-height:1.15;
        white-space:nowrap;
        text-overflow:ellipsis;
    }

    .tv-shell.waiting-room .family-lobby-layout:where(.tv-fixed-stage, .tv-fixed-stage *){
        grid-template-columns:minmax(0, 1fr) minmax(155px, 205px);
        align-items:stretch;
        gap:8px;
        width:100%;
        max-width:none;
        min-height:0;
    }

    .tv-shell.waiting-room .family-gathering:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:100%;
        height:100%;
        min-height:0;
        margin:0;
        overflow:visible;
        border-radius:42% / 48%;
    }

    .tv-shell.waiting-room .waiting-family-center:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:clamp(78px, 75.6px, 108px);
        height:clamp(78px, 75.6px, 108px);
        gap:2px;
    }

    .tv-shell.waiting-room .waiting-family-center span:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:1.8rem;
    }

    .tv-shell.waiting-room .waiting-player.family-member:where(.tv-fixed-stage, .tv-fixed-stage *){
        min-width:92px;
        max-width:126px;
        gap:2px;
        padding:5px 8px;
        font-size:.68rem;
    }

    .tv-shell.waiting-room .waiting-player.family-member .avatar:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:39px;
        height:39px;
        font-size:1.3rem;
    }

    .tv-shell.waiting-room .waiting-player.family-member .presence:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:6px;
        height:6px;
    }

    .tv-shell.waiting-room .waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *){
        z-index:20;
        min-width:34px;
        height:32px;
        font-size:1.12rem;
    }

    .tv-shell.waiting-room .family-winner-ranking:where(.tv-fixed-stage, .tv-fixed-stage *){
        gap:5px;
        min-width:0;
        padding:9px;
        overflow:hidden;
        border-radius:13px;
    }

    .tv-shell.waiting-room .family-winner-ranking .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.58rem;
    }

    .tv-shell.waiting-room .family-winner-ranking h2:where(.tv-fixed-stage, .tv-fixed-stage *){
        margin:0;
        font-size:.78rem;
    }

    .tv-shell.waiting-room .family-ranking-list:where(.tv-fixed-stage, .tv-fixed-stage *),.tv-shell.waiting-room .family-recent-wins:where(.tv-fixed-stage, .tv-fixed-stage *){
        gap:3px;
        max-height:78px;
        overflow:auto;
    }

    .tv-shell.waiting-room .family-ranking-row:where(.tv-fixed-stage, .tv-fixed-stage *){
        grid-template-columns:22px minmax(0, 1fr) auto;
        gap:4px;
        padding:4px 5px;
        font-size:.62rem;
    }

    .tv-shell.waiting-room .family-latest-winner:where(.tv-fixed-stage, .tv-fixed-stage *){
        gap:2px;
        padding:5px 6px;
    }

    .tv-shell.waiting-room .family-latest-winner span:where(.tv-fixed-stage, .tv-fixed-stage *),.tv-shell.waiting-room .family-recent-win:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.58rem;
    }

    .tv-shell.waiting-room .family-latest-winner strong:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.68rem;
        line-height:1.2;
    }

    .tv-shell.waiting-room .family-recent-title:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.68rem;
    }

    .tv-shell.waiting-room .family-recent-win:where(.tv-fixed-stage, .tv-fixed-stage *){
        gap:1px;
        padding:4px 5px;
    }

    .tv-shell.waiting-room .presence-note:where(.tv-fixed-stage, .tv-fixed-stage *){
        margin:0;
        font-size:.64rem;
        line-height:1.1;
    }

    .tv-shell.waiting-room .standing-lobby-start:where(.tv-fixed-stage, .tv-fixed-stage *){
        display:grid;
        grid-template-columns:minmax(0, 1fr) minmax(180px, 230px);
        align-items:center;
        gap:3px 10px;
    }

    .tv-shell.waiting-room .standing-lobby-start p:where(.tv-fixed-stage, .tv-fixed-stage *){
        margin:0;
        font-size:.62rem;
        line-height:1.15;
    }

    .tv-shell.waiting-room .standing-lobby-start .standing-eligibility-note:where(.tv-fixed-stage, .tv-fixed-stage *){
        grid-column:1;
    }

    .tv-shell.waiting-room .standing-lobby-start .button:where(.tv-fixed-stage, .tv-fixed-stage *){
        grid-column:2;
        grid-row:1/3;
        min-height:38px;
        padding:5px 8px;
        font-size:.7rem;
    }

    .tv-shell.waiting-room .waiting-qr:where(.tv-fixed-stage, .tv-fixed-stage *){
        display:grid;
        align-content:center;
        justify-items:center;
        gap:6px;
        width:auto;
        min-width:0;
        padding:7px;
        text-align:center;
        background:#132130;
        border:1px solid #344c60;
        border-radius:14px;
    }

    .tv-shell.waiting-room .waiting-qr .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:min(100%, 112px);
        height:auto;
    }

    .tv-shell.waiting-room .waiting-qr b:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.72rem;
    }

    .tv-shell.waiting-room .waiting-qr small:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.57rem;
        line-height:1.25;
    }


.wallet-direction-buttons:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
}

.wallet-reason-panel:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:start;
    gap:10px;
    padding:14px;
    background:#0e1a25;
    border:1px solid #3b5666;
    border-radius:14px;
}

.wallet-reason-panel label:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1/-1;
}

.wallet-reason-choices:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.wallet-reason-choices .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:42px;
}

.wallet-reason-panel #wallet-error:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1/-1;
}

.wallet-direction-buttons .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:52px;
    font-weight:800;
}

.wallet-logs:where(.tv-fixed-stage, .tv-fixed-stage *){
    max-height:min(135px, 220px);
    overflow:auto;
    overscroll-behavior:contain;
}

.standing-eligibility-note:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:8px 0;
    padding:8px 10px;
    color:#ffe4a0;
    background:#302918;
    border:1px solid #856e31;
    border-radius:9px;
    font-size:.82rem;
    line-height:1.4;
}

.settings-status:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:1.3em;
    margin:8px 0 0;
    color:#9fe3c7;
    font-size:.82rem;
}

.seat-rank-label:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    width:max-content;
    max-width:100%;
    margin:1px auto 0;
    padding:3px 9px;
    overflow:visible;
    color:#e8f2f4;
    background:#19343a;
    border:1px solid #4e8790;
    border-radius:12px;
    font-size:.875rem;
    font-weight:800;
    line-height:1.15;
    letter-spacing:-.03em;
    text-align:center;
    overflow-wrap:anywhere;
    white-space:normal;
}

.seat-rank-label.winner-rank-label:where(.tv-fixed-stage, .tv-fixed-stage *){
    padding:4px 11px;
    color:#302306;
    background:linear-gradient(180deg, #fff0a0, #e4b848);
    border-color:#fff0a0;
    box-shadow:0 0 12px #ffe16b99;
    font-size:1rem;
}

.hand-winner-hand .seat-cards:where(.tv-fixed-stage, .tv-fixed-stage *),.showdown-revealing .seat-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:flex-start;
    width:100%;
    min-width:0;
    max-width:100%;
    flex-wrap:nowrap;
    overflow:hidden;
}

.hand-winner-hand .seat-cards .showdown-hole-card:where(.tv-fixed-stage, .tv-fixed-stage *),.showdown-revealing .seat-cards .showdown-hole-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    flex:0 1 calc((100% - 7px) / 2);
    width:calc((100% - 7px) / 2);
    min-width:0;
    max-width:104px;
}

.hand-winner-hand .seat-cards .showdown-hole-card .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:5 / 7;
}

.winning-combination-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    transform:translateY(-5px) scale(1.025);
}

.audio-unlock-prompt:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:fixed;
    z-index:1000;
    right:16px;
    bottom:16px;
    max-width:min(902.4px, 440px);
    min-height:56px;
    padding:12px 18px;
    color:#062219;
    background:#89e7c4;
    border:2px solid #d1ffec;
    border-radius:16px;
    box-shadow:0 12px 34px #0009;
    font-size:1rem;
    font-weight:800;
    cursor:pointer;
}

.bet-dial-overlay:where(.tv-fixed-stage, .tv-fixed-stage *),.card-help-overlay:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:fixed;
    z-index:80;
    inset:0;
    display:grid;
    place-items:center;
    padding:18px;
}

.bet-dial-overlay[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *),.card-help-overlay[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none !important;
}

.bet-dial-backdrop:where(.tv-fixed-stage, .tv-fixed-stage *),.card-help-backdrop:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    background:#030811d9;
    border:0;
}

.bet-dial-dialog:where(.tv-fixed-stage, .tv-fixed-stage *),.card-help-dialog:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    z-index:2;
    display:grid;
    gap:14px;
    width:min(100%, 460px);
    padding:26px;
    color:#f3f7f8;
    background:#172536;
    border:2px solid #64c7a6;
    border-radius:22px;
    box-shadow:0 22px 80px #000d;
}

.bet-dial-dialog .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *),.bet-dial-dialog h2:where(.tv-fixed-stage, .tv-fixed-stage *),.card-help-dialog .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *),.card-help-dialog h2:where(.tv-fixed-stage, .tv-fixed-stage *),.card-help-dialog p:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
}

.bet-dial-dialog h2:where(.tv-fixed-stage, .tv-fixed-stage *),.card-help-dialog h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:1.5rem;
}

.bet-dial-dialog input[type="range"]:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
    min-height:52px;
    accent-color:#6fe1bb;
}

.bet-dial-dialog output:where(.tv-fixed-stage, .tv-fixed-stage *){
    justify-self:center;
    min-width:8ch;
    padding:9px 15px;
    color:#ffe08c;
    background:#0d1722;
    border-radius:12px;
    font-size:1.35rem;
    font-weight:800;
    text-align:center;
}

.bet-dial-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:1fr 1.4fr;
    gap:10px;
}

.bet-dial-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:58px;
    font-size:1.05rem;
}

.bet-dial-close:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    top:10px;
    right:12px;
    width:44px;
    height:44px;
    color:#fff;
    background:#273a50;
    border:1px solid #71879b;
    border-radius:50%;
    font-size:1.6rem;
}

.private-card-heading:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:8px;
    color:#c5d4df;
}

.card-help-open:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:48px;
    min-height:48px;
    padding:0;
    border-radius:50%;
    font-size:1.55rem;
    font-weight:900;
}

.phone-screen.card-help-active .private-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    z-index:85;
    outline:5px solid #ffe16b;
    outline-offset:4px;
    border-radius:14px;
    box-shadow:0 0 36px 12px #ffe16bcc;
}

.card-help-dialog:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    top:var(--card-help-dialog-top, 12px);
    left:50%;
    width:min(calc(960px - 32px), 500px);
    max-width:calc(960px - 32px);
    box-sizing:border-box;
    max-height:calc(540px - 24px);
    margin:0;
    padding:clamp(18px, 57.6px, 26px);
    overflow-y:auto;
    overscroll-behavior:contain;
    border-color:#f0cd63;
    transform:translateX(-50%);
}

.card-help-dialog p:not(.eyebrow):where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#d5e0e8;
    font-size:clamp(.96rem, 38.4px, 1.06rem);
    line-height:1.6;
    overflow-wrap:anywhere;
}

.card-help-dialog .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:60px;
    font-size:1.12rem;
}



.card-help-overlay:where(.tv-fixed-stage, .tv-fixed-stage *){
    z-index:1000;
    align-items:start;
    justify-items:center;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.card-help-backdrop:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    background:radial-gradient(circle at var(--card-help-x, 50%) var(--card-help-y, 36%), transparent 0, transparent var(--card-help-radius, 90px), #030811c9 calc(var(--card-help-radius, 90px) + 22px), #030811c9 100%);
}

.action-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px 14px;
}

.action-grid .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:58px;
    padding:10px 13px;
    font-size:1rem;
    line-height:1.15;
}

.action-grid [data-action="FOLD"]:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1;
}

.action-grid [data-action="ALL_IN"]:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:2;
}

.action-grid .call-primary:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1/-1;
    min-height:70px;
    font-size:1.2rem;
}

.action-grid .timechip:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:48px;
    font-size:.85rem;
}

.bet-sizing-panel:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:8px;
    margin-bottom:9px;
}

.open-bet-dial:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:56px;
    font-size:1.02rem;
}

.bet-presets:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
}

.bet-presets .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:50px;
    padding:8px;
    font-size:.9rem;
}



/* 직접 배팅과 체크 또는 콜을 한 줄에서 같은 크기로 보여줍니다. */
.bet-primary-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    min-width:0;
}

.bet-primary-actions>.bet-sizing-panel:where(.tv-fixed-stage, .tv-fixed-stage *),.bet-primary-actions>.check-call-action:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    margin:0;
}

.bet-primary-actions>.check-call-action:only-child:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1/-1;
}

.bet-primary-actions .open-bet-dial:where(.tv-fixed-stage, .tv-fixed-stage *),.bet-primary-actions .call-check-primary:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    align-content:center;
    justify-items:center;
    gap:2px;
    width:100%;
    min-width:0;
    min-height:60px;
    padding:7px 5px;
    font-size:1rem;
    line-height:1.1;
}

.bet-primary-actions .call-check-primary span:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:1.02rem;
    font-weight:850;
}

.bet-primary-actions .call-check-primary small:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe08c;
    font:700 .82rem 'DM Mono',monospace;
    line-height:1.05;
}

.bet-primary-actions .call-check-primary:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#f4f8fc;
    background:linear-gradient(145deg,#285a78,#18374f);
    border-color:#72b5d8;
}

.admin-ingame-link:where(.tv-fixed-stage, .tv-fixed-stage *){
    white-space:nowrap;
}





.reveal-both-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:50px;
    margin:8px 0 12px;
    font-weight:850;
}

.phone-hand-wait .wait-private-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
    min-height:clamp(144px,403.2px,190px);
    justify-content:center;
    gap:12px;
    margin:12px 0 18px;
}

.phone-hand-wait .wait-private-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:clamp(96px,288px,138px);
    height:clamp(136px,403.2px,188px);
    font-size:clamp(1.65rem,57.6px,2.4rem);
}

.waiting-game-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:8px;
    margin:18px 0 22px;
    padding:16px;
    background:linear-gradient(145deg,#182b3b,#122030);
    border:1px solid #507160;
    border-radius:16px;
}

.waiting-game-card h2:where(.tv-fixed-stage, .tv-fixed-stage *),.waiting-game-card p:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
}

.waiting-game-card .waiting-game-status:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#d6e4eb;
    line-height:1.5;
}

.admin-entry-reset:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 14px;
    margin:12px 0;
    padding:12px;
    color:#d5e0e8;
    background:#132130;
    border:1px solid #344d5e;
    border-radius:12px;
}

.admin-entry-reset>span:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:1 1 210px;
}

.admin-entry-reset small:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    margin-top:3px;
    color:#b8c8d1;
}


    .game-screen .tv-broadcast-slot-below-dealer:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:min(calc(100% - 24px),520px);
    }

    .game-screen .tv-broadcast-slot-below-dealer .tv-broadcast.is-champion:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:100%;
        max-width:100%;
        padding:6px 10px;
    }

    .game-screen .tv-broadcast-slot-below-dealer:where(.tv-fixed-stage, .tv-fixed-stage *){
        left:50%;
        transform:translateX(-50%);
    }

    .game-screen .tv-table-wrap .seat.showdown-revealing .seat-cards:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .tv-table-wrap .seat.hand-winner-hand .seat-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
        gap:5px;
    }

    .game-screen .tv-table-wrap .seat.showdown-revealing .seat-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .tv-table-wrap .seat.hand-winner-hand .seat-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:46px;
        height:66px;
        font-size:1.05rem;
    }

    .game-screen .tv-table-wrap .tv-seat-column.seat-count-many .seat.showdown-revealing .seat-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .tv-table-wrap .tv-seat-column.seat-count-many .seat.hand-winner-hand .seat-cards .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:39px;
        height:56px;
        font-size:.9rem;
    }




/* 960×540 최종 결과에서는 공용 카드와 우승 카드를 서로 다른 높이에 둡니다. */

    .game-screen.game-finale-screen .tv-table-wrap .community-board-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
        position:absolute;
        top:-133px;
        left:50%;
        height:96px;
        transform:translateX(-50%);
    }

    .game-screen.game-finale-screen .tv-table-wrap .board-result-slot:where(.tv-fixed-stage, .tv-fixed-stage *){
        height:96px;
        min-height:96px;
    }

    .game-screen.game-finale-screen .tv-table-wrap .champion-board-cards:where(.tv-fixed-stage, .tv-fixed-stage *){
        height:96px;
        min-height:96px;
    }

    .game-screen.game-finale-screen .tv-return-lobby:where(.tv-fixed-stage, .tv-fixed-stage *){
        transform:translateY(-5px);
    }



/* TV와 대기 화면의 한글 글꼴을 또렷하고 넓게 표시합니다. */
:root:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-family:'Noto Sans KR','Malgun Gothic','맑은 고딕',system-ui,sans-serif;
    font-synthesis:weight;
    font-weight:500;
}

.tv-shell:where(.tv-fixed-stage, .tv-fixed-stage *){
    letter-spacing:.012em;
}

.tv-welcome h1:where(.tv-fixed-stage, .tv-fixed-stage *),.waiting-main h1:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-family:'Noto Sans KR','Malgun Gothic','맑은 고딕',system-ui,sans-serif;
    font-weight:850;
    letter-spacing:-.035em;
}

.game-screen .tv-header .brand:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-weight:700;
    letter-spacing:.13em;
}

.game-screen .game-meta:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .tv-blind-panel:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .tv-footer:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .tv-broadcast:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .turn-label:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .seat-top strong:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .seat-top small:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .rank-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-family:'Noto Sans KR','Malgun Gothic','맑은 고딕',system-ui,sans-serif;
    font-weight:700;
}

.game-screen .tv-blind-panel>strong:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .tv-broadcast strong:where(.tv-fixed-stage, .tv-fixed-stage *),.game-screen .tv-return-lobby:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-weight:850;
    letter-spacing:.015em;
}

.betting-control-panel.controls-muted:where(.tv-fixed-stage, .tv-fixed-stage *){
    filter:blur(1.4px) saturate(.45);
    opacity:.52;
    pointer-events:none;
    user-select:none;
}

.betting-control-panel.controls-muted.waiting-turn:where(.tv-fixed-stage, .tv-fixed-stage *){
    opacity:.72;
}

.hand-status-line .hand-rank-open:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    top:136px;
    left:8px;
    display:grid;
    z-index:4;
    flex:0 0 40px;
    place-items:center;
    width:40px;
    min-height:40px;
    padding:0;
    color:#e4fff4;
    background:#1a3440;
    border-color:#83d9bd;
    border-radius:50%;
    box-shadow:0 4px 12px #0005;
}

.hand-status-line .hand-rank-open svg:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:24px;
    height:24px;
}

.hand-rank-overlay:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:fixed;
    z-index:90;
    inset:0;
    display:grid;
    place-items:center;
    padding:max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
}

.hand-rank-overlay[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none !important;
}

.hand-rank-backdrop:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    background:#030811df;
    border:0;
}

.hand-rank-dialog:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    z-index:2;
    display:grid;
    grid-template-rows:auto auto auto minmax(0, 1fr) auto;
    gap:11px;
    width:min(100%, 620px);
    height:min(453.6px, 820px);
    max-height:calc(540px - 20px);
    box-sizing:border-box;
    padding:clamp(16px, 38.4px, 24px);
    overflow:hidden;
    color:#f3f7f8;
    background:#172536;
    border:2px solid #f0cd63;
    border-radius:22px;
    box-shadow:0 22px 80px #000d;
}
.hand-rank-dialog.player-hand-rank-dialog:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-rows:auto auto minmax(0, 1fr) auto;
}

.hand-rank-title .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *),.hand-rank-title h2:where(.tv-fixed-stage, .tv-fixed-stage *),.hand-rank-note:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
}

.hand-rank-tabs:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    padding:4px;
    background:#0b1420;
    border:1px solid #30455b;
    border-radius:12px;
}

.hand-rank-tab:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:40px;
    color:#c8d6e1;
    background:transparent;
    border:1px solid transparent;
    border-radius:9px;
    font-weight:800;
}

.hand-rank-tab.selected:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#182016;
    background:var(--gold);
    border-color:#ffe6a3;
}

.hand-rank-title .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#7fe0c1;
    font-size:.78rem;
    font-weight:800;
}

.hand-rank-title h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-top:3px;
    font-size:clamp(1.25rem, 48px, 1.6rem);
}

.hand-rank-note:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#c8d6e1;
    font-size:.86rem;
    line-height:1.45;
}

.hand-rank-list:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:7px;
    min-height:0;
    margin:0;
    padding:0 4px 0 0;
    overflow-y:auto;
    overscroll-behavior:contain;
    overflow-anchor:none;
    scrollbar-gutter:stable;
    scroll-behavior:auto;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    list-style:none;
}

.hand-rank-item:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:4px;
    min-width:0;
    padding:8px 10px;
    background:#0e1b29;
    border:1px solid #344d60;
    border-radius:11px;
}

.hand-rank-heading:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:2px;
}

.hand-rank-heading b:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe39c;
    font-size:.94rem;
}

.hand-rank-heading span:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#c6d3de;
    font-size:.78rem;
    line-height:1.35;
}

.hand-rank-example:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    gap:clamp(3px, 9.6px, 6px);
    max-width:100%;
    overflow-x:auto;
    white-space:nowrap;
    scrollbar-width:thin;
}

.hand-rank-example .playing-card.card-image:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 0 clamp(34px, 96px, 50px);
    width:clamp(34px, 96px, 50px);
    height:auto;
    aspect-ratio:0.68;
    border:1px solid #d4dae0;
    border-radius:5px;
    box-shadow:0 2px 6px #0005;
}

.hand-rank-dialog > .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:50px;
    margin-top:1px;
}


/* 가로형 작은 TV에서도 입장 QR을 화면 안에 보여 줍니다. */


/* 플레이어는 보유 칩과 공개 보드를 확인하고, 카드가 보일 때만 현재 족보를 확인합니다. */
.phone-game-screen .player-wallet:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe08c;
    font-size:.82rem;
    font-weight:800;
    line-height:inherit;
    white-space:nowrap;
}

.phone-game-screen .hand-title .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:baseline;
    gap:5px;
    white-space:nowrap;
}

.phone-game-screen .private-hand-rank:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0 auto 3px;
    color:#ffe08c;
    font-size:.88rem;
    font-weight:850;
    line-height:1.15;
    text-align:center;
}

.phone-game-screen .my-hand:not(.private-hand-revealed) .private-hand-rank:where(.tv-fixed-stage, .tv-fixed-stage *){
    visibility:hidden;
}

.phone-game-screen .private-board-preview:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    box-sizing:border-box;
    height:clamp(33px, 91.2px, 47px);
    min-height:clamp(33px, 91.2px, 47px);
    flex:0 0 clamp(33px, 91.2px, 47px);
    margin:2px auto 0;
}

.phone-game-screen .private-board-label:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-right:2px;
    color:#9fb3c4;
    font-size:.66rem;
    font-weight:750;
    white-space:nowrap;
}

.phone-game-screen .private-board-preview .playing-card:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-game-screen .private-board-slot:where(.tv-fixed-stage, .tv-fixed-stage *){
    box-sizing:border-box;
    flex:0 0 auto;
    width:clamp(24px, 67.2px, 34px);
    height:clamp(33px, 91.2px, 47px);
    border-radius:5px;
}

.phone-game-screen .private-board-slot:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    border:1px dashed #536b78;
    background:rgba(10, 25, 31, .48);
    box-shadow:0 2px 5px #0005;
}

/* 영문 화면의 긴 잔액·타임칩 문구가 모바일 레이아웃의 최소 너비를 늘리지 않도록 고정합니다. */
.phone-game-screen .phone-game:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:minmax(0, 1fr);
}

.phone-game-screen .phone-game > *:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-game-screen .my-hand:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-game-screen .betting-control-panel:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-game-screen .phone-table-details:where(.tv-fixed-stage, .tv-fixed-stage *){
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
}

.phone-game-screen .hand-title > div:first-child:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:1 1 auto;
    min-width:0;
}

.phone-game-screen .hand-title .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    flex-wrap:wrap;
    white-space:normal;
}

.phone-game-screen .player-wallet:where(.tv-fixed-stage, .tv-fixed-stage *){
    white-space:nowrap;
}

.phone-game-screen .hand-clock-stack:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    max-width:100%;
}

.phone-game-screen .timechip:where(.tv-fixed-stage, .tv-fixed-stage *){
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
}

.dimmed-combination-card .card-face-image:where(.tv-fixed-stage, .tv-fixed-stage *){
    filter:brightness(.66) saturate(.62);
}




/* 대기실 이모티콘은 캐릭터 이미지에 고정하고, QR은 인게임 헤더 크기로 유지합니다. */
.waiting-character:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    isolation:isolate;
}

.waiting-character>.waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *){
    right:auto;
    top:-2px;
    bottom:auto;
    left:50%;
    transform:translate(-50%, -100%);
}

.waiting-character>.waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *):after{
    left:50%;
    transform:translateX(-50%) rotate(45deg);
}

.family-champion .waiting-character:where(.tv-fixed-stage, .tv-fixed-stage *){
    z-index:7;
}

.family-champion .waiting-character>.waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *){
    right:auto;
    top:-36px;
    bottom:auto;
    left:50%;
    transform:translate(-50%, -100%);
}

.family-champion .waiting-character>.waiting-bubble:where(.tv-fixed-stage, .tv-fixed-stage *):after{
    left:50%;
    transform:translateX(-50%) rotate(45deg);
}

@keyframes tv960-waiting-bubble-pop{
    from{
        opacity:0;
        transform:translate(-50%, calc(-100% + 7px)) scale(.75);
    }

    to{
        opacity:1;
        transform:translate(-50%, -100%) scale(1);
    }
}

.tv-shell.waiting-room .waiting-main:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:minmax(0, 1fr);
}

.tv-shell.waiting-room .waiting-lobby-qr:where(.tv-fixed-stage, .tv-fixed-stage *){
    box-sizing:border-box;
    display:grid;
    flex:0 0 56px;
    place-items:center;
    width:56px;
    min-width:56px;
    height:56px;
    min-height:56px;
    margin-left:auto;
    padding:3px;
    overflow:hidden;
    background:#fff;
    border:1px solid #42586b;
    border-radius:10px;
    box-shadow:0 5px 18px #0006;
}

.tv-shell.waiting-room .waiting-lobby-qr .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){
    box-sizing:border-box;
    display:block;
    width:50px;
    min-width:50px;
    max-width:50px;
    height:50px;
    min-height:50px;
    max-height:50px;
    aspect-ratio:1 / 1;
    object-fit:contain;
}

.tv-shell.waiting-room .waiting-lobby-qr .qr-fallback:where(.tv-fixed-stage, .tv-fixed-stage *){
    box-sizing:border-box;
    width:50px;
    max-width:50px;
    max-height:50px;
    padding:2px;
    overflow:hidden;
    font-size:.46rem;
}

.tv-shell.waiting-room .waiting-entry-locked:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 0 auto;
    margin-left:auto;
    padding:8px 11px;
    color:#aab9c6;
    background:#182635;
    border:1px solid #394d60;
    border-radius:999px;
    font-size:.76rem;
}




    .tv-shell.waiting-room:where(.tv-fixed-stage, .tv-fixed-stage *){
        grid-template-rows:56px minmax(0, 1fr);
    }


/* 관리자 콘솔: 모바일에서도 제목, 메뉴, 입력 항목의 정렬과 터치 영역을 일정하게 유지합니다. */
.admin-screen:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:540px;
    padding:clamp(14px, 28.8px, 30px) clamp(12px, 28.8px, 28px) max(32px, env(safe-area-inset-bottom));
    overflow-x:clip;
    color:#edf3f8;
    background:radial-gradient(ellipse at 50% -18%, #21374a 0, transparent 56%), #0b111b;
    font-family:system-ui, 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    letter-spacing:-.012em;
    font-feature-settings:'tnum' 1;
}

.admin-screen :is(.admin-header, .admin-content, .admin-tabs, .admin-title, .admin-card, .admin-tab-panel):where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
}

.admin-screen .admin-header:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:min(100%, 1160px);
    min-height:48px;
    margin:0 auto;
    padding:0 0 12px;
    border-bottom:1px solid #2a3e52;
}

.admin-screen .admin-header .brand:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:.76rem;
    letter-spacing:.14em;
}

.admin-screen .admin-header>div:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:10px;
}

.admin-screen .admin-header .family-pill:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:38px;
    padding:7px 13px;
    font-size:.84rem;
    white-space:nowrap;
}

.admin-screen .admin-header .admin-ingame-link:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 12px;
    color:#c8d5df;
    background:#132130;
    border:1px solid #33495d;
    border-radius:11px;
    font-size:.82rem;
    font-weight:700;
    white-space:nowrap;
}

.admin-screen .admin-header .admin-ingame-link:hover:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#effff8;
    border-color:#58bd9e;
    background:#18332f;
}

.admin-screen .admin-content:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:min(100%, 1160px);
    gap:16px;
    margin:20px auto 0;
}

.admin-screen .admin-title:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;
    padding:22px 24px;
    background:linear-gradient(125deg, #172838, #111d2a 72%);
    border:1px solid #30475b;
    border-radius:20px;
    box-shadow:0 12px 34px #0002;
}

.admin-screen .admin-title>div:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    grid-template-areas:'eyebrow action' 'heading action' 'summary action';
    align-items:center;
    column-gap:22px;
    row-gap:3px;
}

.admin-screen .admin-title .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-area:eyebrow;
    margin:0 0 3px;
    font-size:.7rem;
    letter-spacing:.16em;
}

.admin-screen .admin-title h1:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-area:heading;
    min-width:0;
    margin:0;
    font-size:clamp(1.8rem, 38.4px, 2.6rem);
    font-weight:780;
    line-height:1.16;
    letter-spacing:-.045em;
    overflow-wrap:anywhere;
}

.admin-screen .admin-title .muted:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-area:summary;
    margin:5px 0 0;
    color:#aebdca;
    font-size:.86rem;
    line-height:1.45;
}

.admin-screen #admin-start-shortcut:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-area:action;
    min-width:126px;
    min-height:46px;
    padding:10px 15px;
    border-radius:12px;
    font-size:.86rem;
    white-space:nowrap;
}

.admin-screen .admin-tabs:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:sticky;
    top:max(4px, env(safe-area-inset-top));
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:6px;
    margin:0;
    padding:6px;
    overflow:visible;
    background:#0d1722eF;
    border:1px solid #2c4053;
    border-radius:15px;
    box-shadow:0 8px 24px #0003;
    backdrop-filter:blur(16px);
}

.admin-screen .admin-tab:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:44px;
    padding:8px 6px;
    color:#aebdca;
    background:transparent;
    border:1px solid transparent;
    border-radius:10px;
    font-size:.86rem;
    font-weight:700;
    letter-spacing:-.035em;
    white-space:nowrap;
    transition:background .16s ease, color .16s ease, border-color .16s ease;
}

.admin-screen .admin-tab:hover:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#e8f4f5;
    background:#192a39;
}

.admin-screen .admin-tab.active:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#dffbf1;
    background:#1a3a36;
    border-color:#397a68;
    box-shadow:inset 0 1px #ffffff12;
}

.admin-screen :is(.admin-tab, .button, .admin-logout, .admin-ingame-link, .wallet-member-row):focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *){
    outline:3px solid #6ce2bc;
    outline-offset:2px;
}

.admin-screen .admin-tab-panel:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:14px;
}

.admin-screen .admin-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    padding:clamp(17px, 23.04px, 24px);
    color:#eaf0f5;
    background:linear-gradient(145deg, #142231, #111c29);
    border:1px solid #2c4155;
    border-radius:18px;
    box-shadow:0 10px 28px #00000018;
}

.admin-screen .admin-card h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0 0 13px;
    color:#f4f7fa;
    font-size:1.13rem;
    font-weight:750;
    line-height:1.35;
    letter-spacing:-.025em;
}

.admin-screen .admin-card.reserve-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:center;
    justify-self:stretch;
    gap:24px;
    width:100%;
    min-width:0;
    max-width:100%;
    margin:0;
    background:linear-gradient(135deg,#17312e,#122332);
    border-color:#3d7062;
}

.admin-screen .reserve-card-summary:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    overflow-wrap:anywhere;
}

.admin-screen .reserve-card .reserve-card-title:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0 0 10px;
    color:#9bdfc0;
}

.admin-screen .reserve-card>.admin-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
    width:100%;
    min-width:0;
    max-width:100%;
}

.admin-screen .reserve-card>.admin-actions>.button:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
    min-width:0;
    min-height:48px;
    padding:10px 12px;
    line-height:1.4;
    text-align:center;
    white-space:normal;
    overflow-wrap:anywhere;
}





.admin-screen .admin-card h3:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:18px 0 10px;
    color:#dfe9ef;
    font-size:.96rem;
    font-weight:720;
}

.admin-screen .card-heading:where(.tv-fixed-stage, .tv-fixed-stage *){
    align-items:flex-start;
    gap:12px;
    margin-bottom:16px;
}

.admin-screen .card-heading>div:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
}

.admin-screen .card-heading .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-bottom:6px;
}

.admin-screen .card-heading>span:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .card-heading>b:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 0 auto;
    padding:5px 9px;
    color:#e5c879;
    background:#29281f;
    border:1px solid #5f5535;
    border-radius:999px;
    font-size:.75rem;
    line-height:1.25;
}

.admin-screen .admin-card :is(.muted, .standing-mode-hint):where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#a9bac8;
    font-size:.83rem;
    line-height:1.55;
}

.admin-screen .admin-card .button:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .admin-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .admin-link-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .account-form .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:46px;
    border-radius:11px;
    font-size:.84rem;
    font-weight:730;
}

.admin-screen .admin-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:9px;
}

.admin-screen .settings-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:repeat(2, minmax(0, 1fr));
    align-items:start;
    gap:14px 16px;
}

.admin-screen .settings-grid label:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .account-form label:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    gap:7px;
    color:#d0dbe4;
    font-size:.82rem;
    font-weight:680;
    line-height:1.4;
}

.admin-screen .settings-grid :is(input, select):where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .account-form input:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    min-height:48px;
    padding:10px 12px;
    color:#f1f5f8;
    background:#0b1520;
    border:1px solid #354b60;
    border-radius:11px;
    font-size:.9rem;
    font-weight:550;
}

.admin-screen .settings-grid :is(input, select):focus:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .account-form input:focus:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-color:#58c9a4;
    box-shadow:0 0 0 3px #52e0b125;
    outline:none;
}

.admin-screen .settings-grid label small:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .account-form label small:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#9fb0bd;
    font-size:.72rem;
    font-weight:450;
    line-height:1.45;
}

.admin-screen .admin-tv-language:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:12px;
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid #293c50;
}

.admin-screen .admin-tv-language .card-heading:where(.tv-fixed-stage, .tv-fixed-stage *){
    align-items:center;
}

.admin-screen .admin-tv-language .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0 0 5px;
}

.admin-screen .admin-tv-language h3:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    font-size:1.08rem;
}

.admin-screen .tv-language-settings-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:minmax(0, 1fr);
    max-width:560px;
    margin:0;
}

.admin-screen .admin-tv-language-status:where(.tv-fixed-stage, .tv-fixed-stage *){
    max-width:680px;
    margin:0;
    line-height:1.5;
}

.admin-screen .admin-observer-settings:where(.tv-fixed-stage, .tv-fixed-stage *){
    max-width:760px;
}

.admin-screen .observer-allow-setting:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    margin:0;
    color:#e4edf4;
    font-weight:700;
}

.admin-screen .observer-allow-setting input:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:20px;
    height:20px;
    accent-color:#43d7ad;
}

.admin-screen .admin-observer-settings .settings-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin:0;
}

.observer-screen-controls:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:fixed;
    z-index:500;
    top:12px;
    left:16px;
    right:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    pointer-events:none;
}

/* 취소 안내는 제목 묶음과 카드 사이 간격을 유지합니다. */
.cancellation-header:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:12px;max-width:100%}
body.observer-mode .cancellation-screen:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;min-height:540px;padding:72px 18px 32px;box-sizing:border-box}
body.observer-mode .cancellation-header .brand:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.72rem;letter-spacing:.08em}
body.observer-mode .cancellation-header .family-pill:where(.tv-fixed-stage, .tv-fixed-stage *){max-width:100%;overflow-wrap:anywhere}
body.observer-mode .cancellation-notice:where(.tv-fixed-stage, .tv-fixed-stage *){width:min(100%,560px);padding:30px 22px;gap:16px}
body.observer-mode .cancellation-notice h1:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:clamp(1.5rem,52.8px,2.4rem)}
body.observer-mode .cancellation-notice p:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.95rem;line-height:1.5}

/* 관전 보드·팟·공지와 좌석은 실제 콘텐츠 높이를 가진 독립 행으로 배치합니다. */


.observer-screen-controls button:where(.tv-fixed-stage, .tv-fixed-stage *){
    pointer-events:auto;
}

.observer-mode-mark:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:5px 13px;
    border:1px solid rgba(83,221,181,.7);
    border-radius:999px;
    background:rgba(9,35,37,.92);
    color:#69e9c1;
    font-size:15px;
    font-weight:850;
    letter-spacing:.04em;
    box-shadow:0 4px 16px rgba(0,0,0,.3);
}

.observer-stop-button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:36px;
    padding:7px 13px;
    border:1px solid rgba(255,226,155,.78);
    border-radius:999px;
    background:rgba(27,35,45,.94);
    color:#ffe9b0;
    font-weight:800;
}

.observer-wait-screen:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:fixed;
    inset:0;
    display:grid;
    place-items:center;
    padding:24px;
    background:radial-gradient(ellipse at 50% 42%,#143e37 0%,#10252e 46%,#09111e 100%);
    color:#f4f7fb;
}

.observer-wait-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:min(520px,100%);
    padding:34px 28px;
    border:1px solid #39556a;
    border-radius:22px;
    background:rgba(16,31,46,.9);
    text-align:center;
    box-shadow:0 18px 55px rgba(0,0,0,.32);
}



.admin-auth-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:10px;
    margin-top:18px;
}

.admin-login-back:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:9px;
}

.admin-login-back span:first-child:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:1.15rem;
    line-height:1;
}

.tv-home-loading:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-rows:auto 1fr;
    min-height:540px;
    padding:24px clamp(20px, 38.4px, 68px);
    background:radial-gradient(ellipse at 70% 45%, #173943, transparent 52%), #0b111b;
}

.tv-home-loading-panel:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    gap:13px;
    place-self:center;
    padding:17px 21px;
    color:#dce6ef;
    background:#142130;
    border:1px solid #2c4053;
    border-radius:16px;
    box-shadow:0 14px 42px #0004;
}

.tv-home-loading-panel p:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    font-weight:650;
}

.tv-home-loading-indicator:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:18px;
    height:18px;
    border:2px solid #40566b;
    border-top-color:var(--mint);
    border-radius:50%;
    animation:tv960-tv-home-loading-spin .75s linear infinite;
}

@keyframes tv960-tv-home-loading-spin{
    to{ transform:rotate(360deg); }
}

@media (prefers-reduced-motion:reduce){
    .tv-home-loading-indicator:where(.tv-fixed-stage, .tv-fixed-stage *){
        animation:none;
        border-color:var(--mint);
    }
}

.admin-screen .game-rule-help:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:48px;
    min-height:48px;
    border-radius:12px;
    font-size:1rem;
    font-weight:800;
}

.admin-screen .wallet-member-list:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .wallet-logs:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .game-history-list:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .standing-log-list:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .ranking-list:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:9px;
}

.admin-screen .wallet-member-row:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:42px minmax(0, 1fr) minmax(136px, auto) minmax(124px, auto);
    gap:8px 12px;
    min-height:72px;
    padding:11px 13px;
    background:#101d2a;
    border-color:#2e4458;
    border-radius:14px;
    transition:background .16s ease, border-color .16s ease, transform .16s ease;
}

.admin-screen .wallet-member-row:hover:where(.tv-fixed-stage, .tv-fixed-stage *){
    background:#152637;
    border-color:#4b9d83;
    transform:translateY(-1px);
}

.admin-screen .wallet-member-title strong:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    font-size:.91rem;
    font-weight:720;
    overflow-wrap:anywhere;
}

.admin-screen .wallet-member-row time:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-screen .wallet-member-name small:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:.7rem;
}

.admin-screen .wallet-member-money>b:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffdc83;
    font-size:.91rem;
    font-weight:760;
    font-variant-numeric:tabular-nums;
}

.admin-screen .wallet-member-game-balance:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#a9bac8;
    font-size:.67rem;
}

.admin-screen .admin-entry-layout:where(.tv-fixed-stage, .tv-fixed-stage *){
    gap:22px;
}

.admin-screen .admin-entry-qr:where(.tv-fixed-stage, .tv-fixed-stage *){
    align-self:start;
    padding:12px;
    background:#f7f9fb;
    border:1px solid #e3e8ed;
    border-radius:16px;
    box-shadow:0 8px 24px #0002;
}

.admin-screen .admin-entry-qr .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-radius:8px;
}

.admin-screen .admin-entry-links>p:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:10px 0 0;
}

.admin-screen .admin-logout:where(.tv-fixed-stage, .tv-fixed-stage *){
    justify-self:end;
    min-width:172px;
    min-height:46px;
    border-radius:12px;
}






/* 본인 닉네임의 브라우저 언어 선택 */
.player-locale-nickname:where(.tv-fixed-stage, .tv-fixed-stage *){display:inline; padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:inherit; cursor:pointer; border-radius:6px; overflow-wrap:anywhere;}
.player-locale-nickname > span:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.6em; opacity:.7; vertical-align:middle;}
.player-locale-nickname:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *){outline:2px solid #88c7ff; outline-offset:4px;}
.client-language-dialog:where(.tv-fixed-stage, .tv-fixed-stage *){width:min(380px,calc(960px - 32px)); max-height:calc(540px - 32px); overflow:auto; padding:24px; border:1px solid #40516b; border-radius:20px; background:#172238; color:#f4f7fc; box-shadow:0 24px 80px #0008;}
.client-language-dialog:where(.tv-fixed-stage, .tv-fixed-stage *)::backdrop{background:#070d19b8;}
.client-language-dialog h2:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0 0 12px; font-size:1.35rem;}
.client-language-dialog p:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.9rem; line-height:1.5; color:#c2ccdc;}
.client-language-dialog label:where(.tv-fixed-stage, .tv-fixed-stage *){display:block; margin:18px 0 8px;}
.client-language-dialog select:where(.tv-fixed-stage, .tv-fixed-stage *){display:block; width:100%; min-height:44px; padding:10px 12px; border:1px solid #61728e; border-radius:10px; background:#0d172a; color:#fff; font:inherit;}
.client-language-dialog .error:where(.tv-fixed-stage, .tv-fixed-stage *){color:#ffb5b5; min-height:1.4em; margin:12px 0;}
.client-language-actions:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex; justify-content:flex-end; gap:10px;}
.client-language-actions button:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:44px;}
.client-language-dialog :disabled:where(.tv-fixed-stage, .tv-fixed-stage *){opacity:.6; cursor:wait;}

/* 최초 TV 연결 화면의 상시 로그인 번호와 진입 버튼 */
.tv-pair-setup:where(.tv-fixed-stage, .tv-fixed-stage *){box-sizing:border-box;width:min(100%,360px);justify-self:center;gap:9px;padding:clamp(14px,21.12px,24px)}
.tv-pair-setup .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){width:clamp(180px,230.4px,260px);height:auto;aspect-ratio:1}
.tv-pair-login-code:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;width:100%;padding:9px 12px;color:#243448;background:#eef3f7;border:1px solid #ccd7e1;border-radius:12px;text-align:left}
.tv-pair-login-code span:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.84rem;font-weight:700}
.tv-pair-login-code b:where(.tv-fixed-stage, .tv-fixed-stage *){color:#102437;font:800 clamp(1.4rem,28.8px,1.9rem) 'DM Mono',monospace;letter-spacing:.14em}
.tv-pair-login-expiry:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:baseline;gap:5px}
.tv-pair-actions:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:1fr;gap:7px;width:100%}
.tv-pair-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:40px;margin:0}


/* 960×540 화면은 QR과 로그인 번호를 유지하면서 첫 화면의 세로 공간을 아낍니다. */

    .tv-setup:where(.tv-fixed-stage, .tv-fixed-stage *){
        box-sizing:border-box;
        grid-template-columns:minmax(0, 1.25fr) minmax(280px, .75fr);
        gap:clamp(16px, 24px, 28px);
        min-height:540px;
        min-height:540px;
        padding:clamp(14px, 16.2px, 22px) clamp(20px, 38.4px, 40px);
    }

    .tv-setup .tv-welcome h1:where(.tv-fixed-stage, .tv-fixed-stage *){
        margin:12px 0;
        font-size:clamp(2.15rem, 48px, 3.3rem);
        line-height:1;
    }

    .tv-setup .tv-welcome>p:not(.eyebrow):where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:clamp(.9rem, 13.44px, 1.05rem);
        line-height:1.45;
    }

    .tv-setup .feature-list:where(.tv-fixed-stage, .tv-fixed-stage *){
        gap:9px;
        margin-top:18px;
        font-size:clamp(.82rem, 12.96px, .98rem);
    }

    .tv-pair-setup:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:min(100%, 340px);
        gap:5px;
        padding:12px 16px;
        border-radius:18px;
    }

    .tv-pair-setup .qr-image:where(.tv-fixed-stage, .tv-fixed-stage *){
        width:180px;
        height:180px;
    }

    .tv-pair-setup>strong:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.98rem;
    }

    .tv-pair-setup>small:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:.76rem;
        line-height:1.3;
    }

    .tv-pair-login-code:where(.tv-fixed-stage, .tv-fixed-stage *){
        gap:8px;
        padding:7px 10px;
    }

    .tv-pair-login-code b:where(.tv-fixed-stage, .tv-fixed-stage *){
        font-size:1.3rem;
    }

    .tv-pair-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
        gap:5px;
    }

    .tv-pair-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *){
        min-height:36px;
        padding:6px 10px;
    }


/* 가로형 휴대폰은 손패와 배팅 조작을 나란히 두어 첫 화면에서 바로 행동할 수 있게 합니다. */


.join-observer-action:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:12px;
    margin-top:30px;
    padding-top:22px;
    border-top:1px solid #2c4054;
    text-align:center;
}

.join-observer-hint:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    color:var(--muted);
    line-height:1.5;
}

.join-observer-action .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:50px;
}

.join-observer-action .button:disabled:where(.tv-fixed-stage, .tv-fixed-stage *),.join-observer-action .button:disabled:hover:where(.tv-fixed-stage, .tv-fixed-stage *){
    cursor:not-allowed;
    opacity:.56;
    filter:saturate(.45);
    transform:none;
}

/* 방 개설 이후 관리자가 직접 선택하는 게임 화면 진입 영역입니다. */
.admin-screen .admin-game-screen-entry:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:9px;
    margin:0 0 20px;
    padding:16px;
    border:1px solid #396653;
    border-radius:14px;
    background:#18332c66;
}

.admin-screen .admin-game-screen-entry .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    white-space:normal;
}

.admin-screen .admin-game-screen-entry p:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    line-height:1.5;
}

.admin-screen .admin-game-screen-entry .error:empty:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none;
}

/* 가족 선택 대신 접속 현황과 게임별 접근 설정을 표시합니다. */
.admin-room-member-list:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:8px;
    margin-top:16px;
}

.admin-room-member:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:36px minmax(0, 1fr) auto;
    align-items:center;
    gap:10px;
    min-width:0;
    padding:10px;
    background:#0d1924;
    border:1px solid #2c4153;
    border-radius:12px;
}

.admin-room-member .avatar:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:36px;
    height:36px;
    font-size:1.2rem;
}

.admin-room-member-name:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:4px;
    min-width:0;
    overflow-wrap:anywhere;
}

.admin-room-member-name small:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-room-manager:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:var(--muted);
    font-size:.7rem;
}

.admin-room-member.is-blocked:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-color:#795c38;
}

.admin-room-member.is-blocked .admin-room-member-name small:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:var(--gold);
}

.admin-screen .admin-room-member .admin-room-access:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:34px;
    max-width:112px;
    padding:6px 9px;
    border-radius:9px;
    font-size:.7rem;
    line-height:1.3;
    white-space:normal;
}

.admin-screen .admin-room-start .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-top:14px;
}

/* 시험용 봇은 이름과 조절 패널을 나눠 속도·성향 안내를 읽기 쉽게 표시합니다. */
.admin-screen .admin-bot-create-button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    white-space:normal;
}

.admin-screen .admin-room-member.is-bot:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-template-columns:36px minmax(0,1fr);
    border-color:#457a72;
    background:linear-gradient(135deg,#10241f,#111e2c 58%,#142334);
    box-shadow:inset 3px 0 #4ecfac;
}

.admin-bot-roster-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-column:1/-1;
    grid-template-columns:minmax(0,1fr) minmax(104px,120px);
    align-items:start;
    gap:10px;
    min-width:0;
}

.admin-bot-settings:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    overflow:hidden;
    border:1px solid #314b5b;
    border-radius:12px;
    background:#0c1823a8;
}

.admin-bot-settings[open]:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-color:#438b7a;
    background:#0b191f;
}

.admin-bot-settings summary:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    min-height:42px;
    padding:7px 10px;
    cursor:pointer;
    list-style:none;
}

.admin-bot-settings summary:where(.tv-fixed-stage, .tv-fixed-stage *)::-webkit-details-marker{
    display:none;
}

.admin-bot-settings summary:where(.tv-fixed-stage, .tv-fixed-stage *)::after{
    flex:0 0 auto;
    color:#93b5bd;
    content:"⌄";
    font-size:.9rem;
    font-weight:900;
    transition:transform .16s ease;
}

.admin-bot-settings[open] summary:where(.tv-fixed-stage, .tv-fixed-stage *)::after{
    transform:rotate(180deg);
}

.admin-bot-settings-title:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 0 auto;
    color:#86e3c5;
    font-size:.76rem;
    font-weight:800;
}

.admin-bot-current-settings:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:5px;
    min-width:0;
}

.admin-bot-current-settings span:where(.tv-fixed-stage, .tv-fixed-stage *){
    max-width:100%;
    padding:3px 7px;
    overflow:hidden;
    color:#dce9e8;
    background:#203746;
    border:1px solid #395467;
    border-radius:999px;
    font-size:.64rem;
    font-weight:750;
    line-height:1.35;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.admin-bot-current-settings [data-bot-current-setting="speed"]:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffdf8a;
    background:#3b311f;
    border-color:#75623a;
}

.admin-bot-setting-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:0 10px 10px;
    padding-top:10px;
    border-top:1px solid #293f4b;
}

.admin-bot-settings:not([open]) > .admin-bot-setting-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:none;
}

.admin-bot-setting-grid label:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    align-content:start;
    gap:6px;
    min-width:0;
    padding:9px;
    color:#c7d5dd;
    background:#142331;
    border:1px solid #2c4353;
    border-radius:10px;
    font-size:.7rem;
    font-weight:700;
}

.admin-bot-setting-grid select:where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
    min-width:0;
    min-height:40px;
    padding:6px 8px;
    font-size:.75rem;
    text-overflow:ellipsis;
}

.admin-bot-setting-grid .admin-bot-setting-hint:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:2.8em;
    color:#9fb1bd;
    font-size:.66rem;
    font-weight:500;
    line-height:1.4;
    overflow-wrap:anywhere;
}

.admin-screen .admin-bot-roster-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:2;
    align-self:start;
    min-width:0;
    min-height:42px;
    padding:8px 10px;
    border-radius:11px;
    font-size:.75rem;
    font-weight:800;
    white-space:normal;
}

.admin-bot-overlay:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:fixed;
    inset:0;
    z-index:45;
    display:grid;
    place-items:center;
    padding:12px;
    background:#060b12df;
}

.admin-bot-modal:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:relative;
    width:min(100%,440px);
    max-height:calc(540px - 24px);
    padding:clamp(18px,38.4px,28px);
    overflow:auto;
    color:#eef2f5;
    background:#142130;
    border:1px solid #77917c;
    border-radius:18px;
    box-shadow:0 18px 70px #000c;
}

.admin-bot-modal h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:4px 0 8px;
}

.admin-bot-modal .muted:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0 0 16px;
}

.admin-bot-close:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:absolute;
    top:10px;
    right:12px;
    border:0;
    background:transparent;
    color:inherit;
    font-size:1.6rem;
    cursor:pointer;
}

#admin-bot-create-form:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:14px;
}

#admin-bot-create-form label:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:7px;
    min-width:0;
}

#admin-bot-create-form :is(input,select):where(.tv-fixed-stage, .tv-fixed-stage *){
    width:100%;
    min-width:0;
    min-height:44px;
}

.admin-bot-fixed-amount:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin-top:-10px;
    color:var(--muted);
}

.admin-bot-modal-actions:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}

.admin-bot-modal-actions .button:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    white-space:normal;
}



.phone-screen .waiting-game-card:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    overflow-wrap:anywhere;
}

.waiting-entry-window:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.5fr);
    align-items:center;
    gap:6px 12px;
    min-height:68px;
    margin:16px 0;
    padding:12px;
    border:1px solid #395b57;
    border-radius:12px;
    background:#193d333d;
}

.waiting-entry-window>span:where(.tv-fixed-stage, .tv-fixed-stage *),.waiting-entry-window>small:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:var(--muted);
    font-size:.75rem;
    line-height:1.4;
}

.waiting-entry-window>span:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    overflow-wrap:normal;
    word-break:keep-all;
}

.waiting-entry-window>strong:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    max-width:100%;
    color:var(--mint);
    font-size:clamp(1rem, 38.4px, 1.2rem);
    font-variant-numeric:tabular-nums;
    text-align:right;
    line-height:1.35;
    overflow-wrap:normal;
    word-break:keep-all;
}

.waiting-entry-window>small:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1/-1;
}

.waiting-entry-window.is-closed>strong:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:var(--gold);
}

.waiting-game-capacity:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:10px 0;
    color:var(--muted);
    font-size:.8rem;
}

.waiting-entry-blocked:where(.tv-fixed-stage, .tv-fixed-stage *){
    border-color:#7a474a;
}



/* 기록 재생 조작부는 게임 렌더링과 분리하고 실제 높이만큼 화면 공간을 확보합니다. */
.system-replay-controls:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:fixed;z-index:900;top:max(8px,env(safe-area-inset-top));left:12px;right:12px;
    display:grid;gap:8px;padding:12px 16px;border:1px solid #365767;border-radius:14px;
    color:#ebf7fa;background:rgba(12,27,40,.97);box-shadow:0 8px 28px #0006;
    font-family:'Noto Sans KR','Malgun Gothic',system-ui,sans-serif;font-size:.8rem;line-height:1.4;
}
.system-replay-heading:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:12px;min-width:0}
.system-replay-heading>strong:where(.tv-fixed-stage, .tv-fixed-stage *){flex-shrink:0;color:#65e1bc}
.system-replay-heading>span:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.system-replay-heading>a:where(.tv-fixed-stage, .tv-fixed-stage *){margin-left:auto;flex-shrink:0;color:#d2e4ed;font-size:.75rem;text-decoration:underline;text-underline-offset:3px}
.system-replay-actions:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.system-replay-actions>button:where(.tv-fixed-stage, .tv-fixed-stage *){min-height:36px;padding:6px 15px;border:1px solid #4f857e;border-radius:8px;background:#173c38;color:#e4fff6;font:inherit;font-weight:700}
.system-replay-actions>button:disabled:where(.tv-fixed-stage, .tv-fixed-stage *){opacity:.45;cursor:default}
.system-replay-actions>span:where(.tv-fixed-stage, .tv-fixed-stage *){margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap;color:#c6d7e0}
.system-replay-timeline:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:12px;min-width:0;color:#c6d7e0}
.system-replay-timeline>span:where(.tv-fixed-stage, .tv-fixed-stage *){flex:0 0 auto;font-size:.75rem}
.system-replay-timeline>input:where(.tv-fixed-stage, .tv-fixed-stage *){
    appearance:none;-webkit-appearance:none;display:block;flex:1;min-width:0;width:100%;height:28px;margin:0;
    border:0;background:transparent;cursor:pointer;accent-color:#65e1bc;
}
.system-replay-timeline>input:where(.tv-fixed-stage, .tv-fixed-stage *)::-webkit-slider-runnable-track{
    height:6px;border-radius:999px;background:linear-gradient(to right,#65e1bc var(--replay-seek-progress,0%),#365363 var(--replay-seek-progress,0%));
}
.system-replay-timeline>input:where(.tv-fixed-stage, .tv-fixed-stage *)::-webkit-slider-thumb{
    appearance:none;-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border:2px solid #d1fff0;border-radius:50%;background:#65e1bc;
}
.system-replay-timeline>input:where(.tv-fixed-stage, .tv-fixed-stage *)::-moz-range-track{height:6px;border-radius:999px;background:#365363}
.system-replay-timeline>input:where(.tv-fixed-stage, .tv-fixed-stage *)::-moz-range-progress{height:6px;border-radius:999px;background:#65e1bc}
.system-replay-timeline>input:where(.tv-fixed-stage, .tv-fixed-stage *)::-moz-range-thumb{width:14px;height:14px;border:2px solid #d1fff0;border-radius:50%;background:#65e1bc}
.system-replay-hand-jump:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:10px;min-width:0;margin:0}
.system-replay-hand-jump>[data-replay-hand-total]:where(.tv-fixed-stage, .tv-fixed-stage *){margin-right:auto;font-size:.75rem;font-variant-numeric:tabular-nums;color:#c6d7e0}
.system-replay-hand-jump select:where(.tv-fixed-stage, .tv-fixed-stage *),.system-replay-hand-number>input:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;min-height:36px;margin:0;padding:6px 10px;border:1px solid #365767;border-radius:8px;
    background:#0b1a28;color:#e3f3f7;font:inherit;
}
.system-replay-hand-jump select:where(.tv-fixed-stage, .tv-fixed-stage *){width:190px;max-width:100%;text-overflow:ellipsis}
.system-replay-hand-number:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:6px;min-width:0}
.system-replay-hand-number>input:where(.tv-fixed-stage, .tv-fixed-stage *){width:110px}
.system-replay-hand-number>button:where(.tv-fixed-stage, .tv-fixed-stage *){flex-shrink:0;min-height:36px;padding:6px 14px;border:1px solid #4f857e;border-radius:8px;background:#173c38;color:#e4fff6;font:inherit;font-weight:700}
.system-replay-hand-number>input[aria-invalid="true"]:where(.tv-fixed-stage, .tv-fixed-stage *){border-color:#ef8793}
.system-replay-hand-error:where(.tv-fixed-stage, .tv-fixed-stage *),.system-replay-hand-note:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;font-size:.72rem;overflow-wrap:anywhere}
.system-replay-hand-error:where(.tv-fixed-stage, .tv-fixed-stage *){color:#ffadb7}
.system-replay-hand-note:where(.tv-fixed-stage, .tv-fixed-stage *){color:#ffdb88}
.system-replay-controls [hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){display:none}
.system-replay-controls input:disabled:where(.tv-fixed-stage, .tv-fixed-stage *),.system-replay-controls select:disabled:where(.tv-fixed-stage, .tv-fixed-stage *),.system-replay-hand-number>button:disabled:where(.tv-fixed-stage, .tv-fixed-stage *){opacity:.45;cursor:default}
.system-replay-controls input:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *),.system-replay-controls select:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *),.system-replay-controls button:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *){outline:2px solid #90e8d0;outline-offset:3px}
.system-replay-status:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;gap:8px 14px;flex-wrap:wrap;min-width:0;color:#a8c2d3;font-size:.72rem}
.system-replay-status>[data-replay-partial]:where(.tv-fixed-stage, .tv-fixed-stage *){color:#ffdb88}
.system-replay-status>[hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){display:none}
body.replay-mode #app:where(.tv-fixed-stage, .tv-fixed-stage *){padding-top:var(--replay-controls-height,140px)}
body.replay-mode.observer-mode .tv-shell.game-screen:where(.tv-fixed-stage, .tv-fixed-stage *),body.replay-mode .tv-shell.waiting-room:where(.tv-fixed-stage, .tv-fixed-stage *),body.replay-mode.observer-mode .cancellation-screen:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:calc(540px - var(--replay-controls-height,140px));max-height:none;overflow:visible;
    padding-top:12px;
}
body.replay-mode .waiting-entry-locked:where(.tv-fixed-stage, .tv-fixed-stage *){display:none}
body.replay-mode.replay-paused #app *:where(.tv-fixed-stage, .tv-fixed-stage *){animation-play-state:paused!important}
.system-replay-message:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;justify-items:center;gap:20px;max-width:650px;min-height:300px;margin:30px auto;padding:32px 24px;text-align:center;align-content:center}
.system-replay-message h1:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:1.6rem;margin:0}
.system-replay-message p:where(.tv-fixed-stage, .tv-fixed-stage *){line-height:1.7;color:#bdd2df;margin:0}


/* 관리자 게임 기록은 기본 화면을 가볍게 유지하고 요청한 종류만 레이어로 표시합니다. */
.admin-log-open-grid:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.admin-log-open:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:86px;
    padding:16px;border:1px solid #345369;border-radius:15px;background:#112637;color:#e8f5fa;
    text-align:left;font:inherit;cursor:pointer;
}
.admin-log-open:hover:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-log-open:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *){border-color:#74d6bb;background:#173546}
.admin-log-open>span:first-child:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:5px;min-width:0}
.admin-log-open strong:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.96rem;overflow-wrap:anywhere}
.admin-log-open small:where(.tv-fixed-stage, .tv-fixed-stage *){color:#a8c4d1;font-size:.75rem;line-height:1.45}
.admin-log-open>span:last-child:where(.tv-fixed-stage, .tv-fixed-stage *){color:#74d6bb;font-size:1.8rem;line-height:1}

/* 회수된 손패는 카드 그림 없이 두 장의 점선 자리만 표시합니다. */
.seat-cards>.collected-card-slot:where(.tv-fixed-stage, .tv-fixed-stage *),.private-cards.cards-collected>.collected-card-slot:where(.tv-fixed-stage, .tv-fixed-stage *){
    visibility:visible;opacity:1;background:transparent;border:1px dashed #8fbaad;
    box-shadow:none;pointer-events:none;
}
.private-cards.cards-collected:where(.tv-fixed-stage, .tv-fixed-stage *){cursor:default;touch-action:pan-y}

/* 보드의 다섯 점선 자리는 손패 회수와 분리해 항상 표시하고 화면 폭에 눌리지 않게 합니다. */
.community-board-cards>.board-card-empty:where(.tv-fixed-stage, .tv-fixed-stage *),.phone-game-screen .private-board-preview>.private-board-slot:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:block;box-sizing:border-box;flex:0 0 auto;visibility:visible;opacity:1;
    border:2px dashed #8fbaad;background:rgba(13,41,40,.4);pointer-events:none;
}
.admin-game-log-dialog[open]:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;flex-direction:column;width:min(880px,calc(960px - 28px));height:min(780px,calc(540px - 28px));
    max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #436779;border-radius:19px;
    background:#122234;color:#edf8fc;box-shadow:0 22px 80px #000b;
    font-family:'Noto Sans KR','Malgun Gothic',system-ui,sans-serif;
}
.admin-game-log-dialog:where(.tv-fixed-stage, .tv-fixed-stage *)::backdrop{background:rgba(3,10,18,.76)}
.admin-game-log-dialog [hidden]:where(.tv-fixed-stage, .tv-fixed-stage *){display:none!important}
.admin-log-dialog-head:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;flex-shrink:0;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 24px 13px}
.admin-log-dialog-head>div:first-child:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:0}
.admin-log-dialog-head .eyebrow:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0 0 3px;color:#76dfbd}
.admin-log-dialog-head h2:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0;font-size:1.5rem;line-height:1.28}
.admin-log-meta:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-log-scope:where(.tv-fixed-stage, .tv-fixed-stage *){margin:5px 0 0;color:#b6c9d3;font-size:.78rem;line-height:1.45}
.admin-log-scope:where(.tv-fixed-stage, .tv-fixed-stage *){color:#e4c98d}
.admin-log-head-actions:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;gap:8px;flex-shrink:0}
.admin-log-refresh:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-log-close:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-height:38px;padding:7px 11px;border:1px solid #51748a;border-radius:9px;background:#1b3549;
    color:#e8f8fa;font:inherit;font-size:.76rem;font-weight:700;cursor:pointer;
}
.admin-log-close:where(.tv-fixed-stage, .tv-fixed-stage *){width:38px;padding:3px;font-size:1.5rem;line-height:1}
.admin-log-tabs:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;flex-shrink:0;gap:7px;overflow-x:auto;padding:0 24px 14px;scrollbar-width:thin}
.admin-log-tabs button:where(.tv-fixed-stage, .tv-fixed-stage *){flex:0 0 auto;min-height:38px;padding:7px 13px;border:1px solid #45677a;border-radius:10px;background:#192d3d;color:#cbdde7;font:inherit;font-size:.81rem;font-weight:700;cursor:pointer}
.admin-log-tabs button.is-current:where(.tv-fixed-stage, .tv-fixed-stage *){border-color:#69cbae;background:#1c5048;color:#f5fff9}
.admin-log-scroll:where(.tv-fixed-stage, .tv-fixed-stage *){flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;padding:0 24px 15px;scrollbar-gutter:stable}
.admin-log-list:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:12px;overflow-anchor:none}
.admin-log-page:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:8px;min-width:0}
.admin-log-row:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;grid-template-columns:148px minmax(0,1fr) auto;align-items:start;gap:8px 14px;padding:13px 14px;border:1px solid #304b5e;border-radius:12px;background:#0d1b2a}
.admin-log-row time:where(.tv-fixed-stage, .tv-fixed-stage *){color:#a9bdcb;font-size:.76rem;font-variant-numeric:tabular-nums}
.admin-log-row-main:where(.tv-fixed-stage, .tv-fixed-stage *){display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.admin-log-row-main strong:where(.tv-fixed-stage, .tv-fixed-stage *){font-size:.88rem;font-weight:700}
.admin-log-row-main small:where(.tv-fixed-stage, .tv-fixed-stage *){color:#abbfcb;font-size:.75rem;line-height:1.55}
.admin-log-state-badge:where(.tv-fixed-stage, .tv-fixed-stage *){padding:3px 8px;border:1px solid #6d8b79;border-radius:999px;color:#baf1d4;font-size:.72rem;white-space:nowrap}
.admin-log-scroll>.admin-log-status:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-log-error:where(.tv-fixed-stage, .tv-fixed-stage *){margin:14px 2px;color:#aabfca;font-size:.81rem;line-height:1.5}
.admin-log-error:where(.tv-fixed-stage, .tv-fixed-stage *){color:#ffbac0}
.admin-log-scroll>.admin-log-status:empty:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-log-error:empty:where(.tv-fixed-stage, .tv-fixed-stage *){display:none}
.admin-log-retry:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-log-more:where(.tv-fixed-stage, .tv-fixed-stage *){margin:0 0 14px}
.admin-log-dialog-footer:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;min-height:65px;padding:11px 24px;border-top:1px solid #355267;background:#14283a;border-radius:0 0 19px 19px}
.admin-log-dialog-footer>span:where(.tv-fixed-stage, .tv-fixed-stage *){color:#b8cbd5;font-size:.73rem;line-height:1.4}
.admin-log-pages:where(.tv-fixed-stage, .tv-fixed-stage *){display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px}
.admin-log-pages button:where(.tv-fixed-stage, .tv-fixed-stage *){min-width:34px;min-height:34px;padding:4px 7px;border:1px solid #547183;border-radius:8px;background:#1b3547;color:#e6f5f8;font:inherit;font-size:.8rem;cursor:pointer}
.admin-log-pages button.is-current:where(.tv-fixed-stage, .tv-fixed-stage *){border-color:#82dcc2;background:#235746;color:#fff;font-weight:800}
.admin-log-pages button:disabled:where(.tv-fixed-stage, .tv-fixed-stage *){opacity:.4;cursor:default}
.admin-log-pages>span:where(.tv-fixed-stage, .tv-fixed-stage *){padding:0 2px;color:#a9bdca}
.admin-game-log-dialog button:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *),.admin-log-scroll:focus-visible:where(.tv-fixed-stage, .tv-fixed-stage *){outline:2px solid #8ce8d0;outline-offset:2px}


.player-game-timer:where(.tv-fixed-stage, .tv-fixed-stage *){
    justify-items:end;
    gap:1px;
    font-size:.72rem;
}

.player-game-timer>span:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:.62rem;
}

.player-game-timer>b:where(.tv-fixed-stage, .tv-fixed-stage *){
    font-size:.78rem;
}

.timer-waiting-summary:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    padding:10px 12px;
    border:1px solid #56d8b044;
    border-radius:12px;
    background:#0d2b27a8;
    color:#d9fff1;
}

.timer-waiting-summary strong:where(.tv-fixed-stage, .tv-fixed-stage *){
    color:#ffe49b;
    font-variant-numeric:tabular-nums;
}



.admin-screen .admin-applied-settings:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    gap:14px;
    border-color:#3b655d;
    background:linear-gradient(145deg,#152831,#111d29 62%);
}

.admin-screen .admin-applied-settings .card-heading:where(.tv-fixed-stage, .tv-fixed-stage *){
    align-items:flex-start;
}

.admin-screen .admin-applied-settings .card-heading h2:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
}

.admin-screen .admin-applied-settings-badge:where(.tv-fixed-stage, .tv-fixed-stage *){
    flex:0 0 auto;
    padding:7px 10px;
    border:1px solid #3f947b;
    border-radius:999px;
    color:#a6f0d7;
    background:#12382f;
    font-size:.76rem;
    font-weight:750;
    line-height:1.2;
}

.admin-screen .admin-applied-settings-hint:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    font-size:.84rem;
    line-height:1.55;
}

.admin-screen .admin-applied-settings-grid:where(.tv-fixed-stage, .tv-fixed-stage *){
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin:0;
}

.admin-screen .admin-applied-setting:where(.tv-fixed-stage, .tv-fixed-stage *){
    min-width:0;
    padding:12px 13px;
    border:1px solid #2e4656;
    border-radius:12px;
    background:#0e1925;
}

.admin-screen .admin-applied-setting dt:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0 0 6px;
    color:#a9bac8;
    font-size:.75rem;
    font-weight:650;
    line-height:1.35;
}

.admin-screen .admin-applied-setting dd:where(.tv-fixed-stage, .tv-fixed-stage *){
    margin:0;
    color:#f2f5f7;
    font-size:.96rem;
    font-weight:750;
    line-height:1.45;
    overflow-wrap:anywhere;
}

.admin-screen .admin-applied-setting:last-child:where(.tv-fixed-stage, .tv-fixed-stage *){
    grid-column:1 / -1;
}


/* 960×540 게임 무대를 화면 중앙에 놓고 16:9를 유지합니다. */
html.tv-fixed-view:where(.tv-fixed-stage, .tv-fixed-stage *){
    --tv-stage-scale:1;
    overflow:hidden;
}

html.tv-fixed-view body:where(.tv-fixed-stage, .tv-fixed-stage *){
    overflow:hidden;
}

.game-screen.tv-fixed-stage:where(.tv-fixed-stage, .tv-fixed-stage *){
    position:fixed !important;
    top:50% !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    width:960px !important;
    min-width:960px !important;
    max-width:960px !important;
    height:540px !important;
    min-height:540px !important;
    max-height:540px !important;
    margin:0 !important;
    transform:translate(-50%,-50%) scale(var(--tv-stage-scale,1)) !important;
    transform-origin:center center;
    background:radial-gradient(ellipse at 50% -20%,#203752 0,transparent 58%),var(--bg);
}
