/* Dou Dizhu keeps its own modal grid, so its card dock stays inside the visible viewport. */
#ddz-lobby{--ddz-gold:#ead096;--ddz-ink:#102f27;margin:12px 0 32px;color:#eef1e7}
.ddz-intro{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:224px;padding:36px 40px;border:1px solid #b69a584d;border-radius:18px 18px 0 0;background:radial-gradient(ellipse at 75% 120%,#346c48 0,transparent 60%),#123f31}
.ddz-eyebrow,.ddz-mode-num{color:#d7bd80;font:600 10px/1.5 Arial,sans-serif;letter-spacing:.19em}.ddz-intro h2{font:500 clamp(28px,3.3vw,44px)/1.25 Georgia,"Noto Serif SC",serif;margin:12px 0}.ddz-intro p{color:#bacebd;font-size:14px;margin:0 0 14px}.ddz-intro-deck{position:relative;width:200px;height:160px;margin:0 50px 0 25px;flex-shrink:0}.ddz-intro-deck .sc-card{position:absolute!important;width:98px;height:143px;left:45px;top:6px;border-radius:7px;background:#fff9ed;box-shadow:0 12px 28px #0006}.ddz-intro-deck .sc-card:nth-child(1){transform:translateX(-42px) rotate(-20deg)}.ddz-intro-deck .sc-card:nth-child(2){transform:translateY(-7px) rotate(2deg)}.ddz-intro-deck .sc-card:nth-child(3){transform:translateX(44px) rotate(22deg)}
.ddz-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #b69a5838;border-top:0;border-radius:0 0 16px 16px;overflow:hidden;background:#101b16}.ddz-modes article{padding:25px;display:flex;flex-direction:column;gap:12px;border-right:1px solid #ffffff12}.ddz-modes article:last-child{border-right:0}.ddz-modes .ddz-mode-featured{background:linear-gradient(155deg,#293829,#17271e)}.ddz-modes h3{font-size:20px;color:#f0ecdf;margin:4px 0}.ddz-modes p{color:#a9b8ac;font-size:13px;line-height:1.65;margin:0;min-height:40px}.ddz-modes strong{font-size:23px;font-weight:500;color:#e5c782;min-height:32px}.ddz-modes strong small{font-size:12px;color:#a9b8ac}.ddz-modes>.ddz-mode-featured>strong{font-size:32px}.ddz-modes>.ddz-mode-featured>.button{margin-top:auto}.ddz-modes article:first-child>.button{margin-top:auto}.ddz-consent{display:flex;align-items:flex-start;gap:9px;line-height:1.6;color:#c1cabe;font-size:12px}.ddz-consent input{accent-color:#d6b363;margin-top:3px;flex-shrink:0;width:16px;height:16px}.ddz-base-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#c3cdbf}.ddz-base-label input,.ddz-join-line input{border:1px solid #ffffff26;background:#061a13;color:#fff7e4;border-radius:6px;padding:10px;width:70px;font-size:16px}.ddz-own-risk{font-size:11px;line-height:1.5;color:#c9b684;min-height:30px}.ddz-join-line{display:flex;gap:6px;margin-top:2px}.ddz-join-line input{min-width:0;width:100%;font-size:12px}.ddz-join-line .button{padding:8px 12px;white-space:nowrap;font-size:12px}.ddz-lobby-rules{margin-top:15px;color:#97aa9c;font-size:12px;line-height:1.8}.ddz-lobby-rules summary{cursor:pointer;color:#c2cbb9}.ddz-lobby-rules p{max-width:900px}#ddz-offer{border:1px solid #c9a954;background:#183529;margin-top:18px;padding:22px;border-radius:10px;font-size:13px;line-height:1.8}#ddz-offer strong{color:#ebd098}
.ddz-dialog{--sc-card-back:url('/cards/sun-city-baccarat-back.webp');--sc-card-paper:#fffbf0;--sc-card-accent:#a88849;width:min(1100px,96vw);height:min(840px,94dvh);max-width:none;max-height:none;padding:0;border:1px solid #aa8b51;border-radius:18px;overflow:hidden;color:#f3eedf;background:#09271e;box-shadow:0 32px 120px #000b}.ddz-dialog:not([open]){display:none}.ddz-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0}.ddz-dialog::backdrop{background:#02130ecb;backdrop-filter:blur(6px)}
.ddz-topbar{display:flex;align-items:center;gap:13px;padding:15px 22px;background:#091e17;border-bottom:1px solid #c1a66b45;z-index:4}.ddz-topbar>img{width:38px;height:38px;border-radius:9px}.ddz-topbar h2{font-size:21px;font-weight:500;letter-spacing:.06em;margin:2px 0}.ddz-topbar .ddz-mode-label{font-size:10px;color:#c5ba91}.ddz-topbar .ddz-tools{display:flex;align-items:center;gap:8px;margin-left:auto}.ddz-tools button{min-height:36px;padding:7px 10px;background:transparent;border:1px solid #bda46e44;color:#c7cdbb;border-radius:6px;font-size:11px;cursor:pointer}.ddz-tools .ddz-close{font-size:22px;line-height:1;width:36px;padding:5px}.ddz-table-wrap{position:relative;min-height:0;overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 50% 50%,#265c3b 0%,#12452e 58%,#0a2c20 100%);isolation:isolate}.ddz-table-wrap:before{content:"";position:absolute;inset:22px 46px 25px;border-radius:48%;border:1px solid #bfad682e;box-shadow:0 0 0 10px #071d1020,0 0 0 13px #b8a26716;pointer-events:none;z-index:-1}.ddz-table-wrap:after{content:"SUN CITY";position:absolute;left:50%;top:57%;transform:translate(-50%,-50%);font:600 clamp(24px,4vw,45px) Georgia,serif;letter-spacing:.23em;white-space:nowrap;color:#b6b67a12;pointer-events:none;z-index:-1}
.ddz-table-meta{display:flex;align-items:center;justify-content:center;gap:14px;padding:10px 12px;color:#c3c3a7;font-size:11px}.ddz-table-meta b{padding:4px 12px;background:#d4b367;color:#153722;border-radius:20px;font-size:14px}.ddz-opponents{display:flex;justify-content:space-between;gap:20px;padding:12px 30px}.ddz-seat{display:flex;align-items:center;position:relative;gap:10px;max-width:40%;border:1px solid #cdce9c28;border-radius:10px;background:#041f1599;padding:10px 12px;min-width:210px;box-shadow:0 7px 18px #061c152e}.ddz-seat.is-turn{border-color:#e8c374;box-shadow:0 0 0 2px #e8c37420}.ddz-seat.is-landlord .ddz-avatar{border-color:#ead087}.ddz-avatar{display:grid;place-items:center;width:43px;height:43px;border:1px solid #adbc9866;border-radius:50%;font-size:20px;color:#e2cc8c;background:#2d5540;overflow:hidden;flex-shrink:0}.ddz-avatar img{width:100%;height:100%;object-fit:cover}.ddz-seat-copy{min-width:0}.ddz-seat-copy strong{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;margin-bottom:5px}.ddz-seat-copy span{font-size:10px;color:#adbc9c}.ddz-seat-copy small{font-size:10px}.ddz-seat-copy b{color:#dfc789;font-weight:500}.ddz-seat-tag{font-size:9px;background:#c5ab6925;border:1px solid #b6a06955;border-radius:3px;padding:2px 4px;color:#dcc891;cursor:pointer}.ddz-count{font:500 25px Georgia,serif;color:#e3d7b4;padding-left:8px;margin-left:auto;display:grid;text-align:center}.ddz-count small{font:9px Arial,sans-serif;color:#aeb996}.ddz-count.ddz-low{color:#ffba91}.ddz-speech{position:absolute;top:calc(100% + 6px);font-size:11px;color:#d6c590;padding:3px 10px;border-radius:5px;background:#06291de8;left:55px}.ddz-seat.empty{border-style:dashed;color:#a1b295;opacity:.7}.ddz-seat.empty strong,.ddz-seat.empty small{display:block;font-size:12px;margin-bottom:4px}
.ddz-bottom{display:grid;justify-content:center;gap:5px;position:absolute;left:50%;top:42px;transform:translateX(-50%);text-align:center}.ddz-bottom>span{font-size:8px;letter-spacing:.16em;color:#cfcaa0}.ddz-bottom>div{display:flex;gap:5px}.ddz-dialog .sc-card{padding:0;border-radius:5px;border:1px solid #d1c49f;background:var(--sc-card-paper);overflow:hidden;box-shadow:0 3px 7px #0004;position:relative;width:64px;height:92px;flex-shrink:0}.ddz-dialog .sc-card.empty-card{background:transparent}.ddz-bottom .sc-card{width:34px;height:49px}.ddz-table-status{min-height:24px;text-align:center;margin:21px 10px 10px;color:#e3d5ae;font-size:12px;letter-spacing:.03em}.ddz-timer{display:inline-grid;place-items:center;min-width:38px;height:32px;color:#eed095;font-variant-numeric:tabular-nums;font-size:15px;border:1px solid #c6ad6a55;border-radius:50%;background:#0b2a20;margin-right:7px}.ddz-timer:empty{display:none}.ddz-timer.urgent{color:#ffc4a3;border-color:#d89365}.ddz-played{text-align:center;min-height:115px;margin:12px auto 18px}.ddz-played>small{display:block;font-size:10px;color:#c8caac;margin-bottom:9px}.ddz-play-stack{display:flex;justify-content:center;padding:0 35px 0 0}.ddz-play-stack .sc-card{width:57px;height:82px;margin-right:-29px;border-radius:4px}.ddz-bid-call{padding:22px 0 0;color:#dbd2ad;font-size:18px;font-family:Georgia,"Noto Serif SC",serif}.ddz-waiting{max-width:580px;margin:6px auto 18px;text-align:center;padding:0 20px}.ddz-table-sun{color:#d2b775;font-size:40px;line-height:1}.ddz-waiting h3{font-family:Georgia,"Noto Serif SC",serif;font-size:25px;font-weight:500;margin:9px 0}.ddz-waiting p{font-size:12px;color:#c2c9af;line-height:1.65;margin:7px 0}.ddz-waiting p.ddz-wait-terms{font-size:11px;color:#abb89b;margin-top:15px}.ddz-code{display:flex;align-items:center;justify-content:center;gap:15px;margin:12px 0}.ddz-code>span{font-family:monospace;font-size:18px;letter-spacing:.11em}.ddz-code .button{font-size:11px;padding:10px 15px}
.ddz-dock{z-index:5;padding:12px 28px max(16px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#08291eef,#091b15);border-top:1px solid #baa1615c;box-shadow:0 -12px 40px #09231940}.ddz-self{display:flex;gap:10px;justify-content:space-between;font-size:11px;color:#c7c5a6;margin-bottom:11px}.ddz-self-name{color:#f3ead0;font-size:12px}.ddz-self-name b{font-size:10px;padding:3px 6px;margin-left:5px;background:#b8a16426;color:#dbc17c;border-radius:4px;font-weight:500}.ddz-hand{display:flex;align-items:flex-end;justify-content:center;padding:17px 0 4px;touch-action:none;user-select:none;min-height:15px;max-width:100%;overflow:visible}.ddz-card-row{display:flex;justify-content:center;min-width:0}.ddz-card-row:empty{display:none}.ddz-hand-card{display:block;position:relative;flex:0 0 auto;padding:0;width:73px;height:105px;margin:0 -17px;border:0;border-radius:6px;outline:0;background:transparent;cursor:pointer;transition:transform .16s ease,filter .16s ease;touch-action:none}.ddz-hand-card>.sc-card{width:100%;height:100%;border-radius:6px;border-color:#a7a187}.ddz-hand-card.selected{transform:translateY(-15px)}.ddz-hand-card.selected>.sc-card{outline:2px solid #f3d477;box-shadow:0 0 13px #e7bd4f66}.ddz-hand-card:focus-visible{outline:3px solid #ffdd85;z-index:1}.ddz-hand-card:hover{filter:brightness(1.025)}.ddz-deal .ddz-hand-card{animation:ddz-deal .32s backwards;animation-delay:calc(var(--card-i)*20ms)}.ddz-selection{min-height:18px;font-size:10px;color:#b4bd9e;text-align:center;margin:8px 0 4px}.ddz-controls{display:flex;align-items:center;justify-content:center;gap:11px;min-height:46px}.ddz-controls .button{min-width:96px;padding:12px 22px;border-radius:8px;font-size:14px;min-height:44px}.ddz-controls .outline{color:#e1d4ac;border-color:#bba25e70;background:#0b3226}.ddz-controls .gold{background:linear-gradient(180deg,#efda9e,#c6a655);color:#173327;font-weight:650;border:1px solid #f0d89d;box-shadow:0 3px 0 #755f32}.ddz-dialog .button:disabled{opacity:.38;cursor:not-allowed}.ddz-controls .ddz-clear{color:#9ba78e;border:0;background:transparent;min-width:0;padding:7px;font-size:11px;box-shadow:none}.ddz-action-caption,.ddz-ready-count{font-size:12px;color:#c2c5a7}.ddz-error{font-size:11px;color:#ffd4b4;line-height:1.45;text-align:center;margin:6px 0 0;min-height:0}.ddz-error:empty{display:none}
.ddz-effect{pointer-events:none;position:absolute;inset:42% 0 auto;text-align:center;font-family:Georgia,"Noto Serif SC",serif;font-size:44px;font-weight:700;color:#f1d17c;text-shadow:0 3px 0 #6b4220,0 0 30px #ebce7377;opacity:0;z-index:7}.ddz-effect.run{animation:ddz-burst 1.15s both}.ddz-effect.plane,.ddz-effect.planeSingle,.ddz-effect.planePair{font-style:italic}.ddz-info{position:absolute;z-index:10;inset:7px 12px;background:#091f18f7;border:1px solid #b9a36988;border-radius:12px;padding:18px;overflow:auto;color:#c1c7ae;font-size:12px;line-height:1.8;box-shadow:0 14px 30px #0006}.ddz-info-head{display:flex;justify-content:space-between;align-items:center;color:#e4d09b;font-size:16px}.ddz-info-head button{border:0;color:#e4d09b;background:transparent;font-size:24px;cursor:pointer}.ddz-info ol{padding-left:25px;font-size:11px;color:#c9c8ae}.ddz-info .room-social{margin-top:14px}.ddz-info input[readonly]{width:100%;padding:10px;color:#fff;background:#173727;border:1px solid #c6b27a}.ddz-info[hidden],.ddz-result[hidden],.ddz-dialog [hidden],#ddz-lobby [hidden]{display:none!important}
.ddz-result{position:absolute;inset:80px 0 0;z-index:9;display:grid;place-items:center;padding:12px;overflow:auto;background:#041e16ce;backdrop-filter:blur(5px)}.ddz-result-card{width:min(460px,100%);border:1px solid #b99e5c;border-radius:14px;background:radial-gradient(ellipse at 50% 0,#34523966,transparent 60%),#122a20;padding:24px 30px;text-align:center;box-shadow:0 18px 60px #0006;animation:ddz-result-in .45s both}.ddz-result-card.won{border-color:#efd085}.ddz-result-card h3{font-size:26px;font-family:Georgia,"Noto Serif SC",serif;margin:11px 0 5px;color:#f3e7bc;font-weight:500}.ddz-result-card>p{font-size:12px;color:#b6c0a6;margin:6px 0}.ddz-result-net{display:block;font-family:Georgia,serif;font-size:47px;color:#e7cd87;font-weight:500;margin:14px 0}.ddz-result-net small{font:12px Arial,sans-serif}.ddz-result-lines{display:grid;gap:8px;text-align:left;border-top:1px solid #fff2;padding-top:13px}.ddz-result-lines>span{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:#b3bea5}.ddz-result-lines b{color:#e8dfc4;font-weight:500}.ddz-result-card>p.ddz-result-note{font-size:10px;line-height:1.6;margin:12px 0}.ddz-result-table{border-top:1px solid #ffffff16;padding-top:9px;display:grid;gap:6px}.ddz-result-table>div{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#b4bca2}.ddz-result-table b{color:#d5c99e;font-weight:500}.ddz-result-actions{display:flex;gap:10px;margin-top:20px}.ddz-result-actions .button{flex:1;font-size:12px;padding:11px 12px}
@keyframes ddz-deal{from{opacity:0;transform:translateY(-80px) scale(.65)}to{opacity:1;transform:none}}@keyframes ddz-burst{0%{opacity:0;transform:scale(.55) rotate(-4deg)}18%{opacity:1;transform:scale(1.09) rotate(-4deg)}70%{opacity:1;transform:scale(1) rotate(-4deg)}100%{opacity:0;transform:scale(1.05) translateY(-12px)}}@keyframes ddz-result-in{from{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:none}}
@media(min-width:761px) and (max-height:780px){.ddz-dialog{height:96dvh}.ddz-topbar{padding:9px 18px}.ddz-opponents{padding:8px 24px}.ddz-dock{padding-top:8px;padding-bottom:10px}.ddz-hand-card{width:65px;height:94px;margin:0 -15px}.ddz-self{margin-bottom:5px}.ddz-result-card{padding:16px 24px}.ddz-result-net{font-size:36px;margin:8px}.ddz-result-card h3{font-size:23px}}
@media(max-width:1000px){.ddz-modes article{padding:18px;gap:10px}.ddz-hand-card{width:65px;height:94px;margin:0 -16px}.ddz-bottom{top:45px}.ddz-seat{min-width:190px}.ddz-seat-copy strong{max-width:150px}.ddz-opponents{padding-left:20px;padding-right:20px}}
@media(max-width:760px){.ddz-intro{padding:25px 22px;min-height:190px}.ddz-intro-deck{width:95px;height:110px;margin-right:12px;opacity:.9}.ddz-intro-deck .sc-card{width:65px;height:94px;left:15px}.ddz-intro-deck .sc-card:nth-child(1){transform:translateX(-26px) rotate(-20deg)}.ddz-intro-deck .sc-card:nth-child(3){transform:translateX(26px) rotate(22deg)}.ddz-intro h2{font-size:30px}.ddz-intro p{max-width:240px;font-size:12px}.ddz-modes{grid-template-columns:1fr}.ddz-modes article{padding:21px 22px;display:grid;grid-template-columns:1fr auto;border-right:0;border-bottom:1px solid #fff1;gap:9px 15px}.ddz-modes h3{font-size:20px;grid-column:1}.ddz-mode-num{grid-column:1/-1}.ddz-modes p{min-height:0;grid-column:1;font-size:12px}.ddz-modes strong{grid-column:2;grid-row:2/4;align-self:center;font-size:16px;text-align:right}.ddz-modes .ddz-mode-featured strong{font-size:27px}.ddz-modes .button,.ddz-consent,.ddz-base-label,.ddz-own-risk,.ddz-join-line{grid-column:1/-1}.ddz-dialog{position:fixed;inset:var(--game-viewport-top,0px) 0 auto;margin:0;width:100%;height:var(--game-viewport-height,100dvh);border:0;border-radius:0;max-height:none}.ddz-topbar{gap:8px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px}.ddz-topbar>img{width:30px;height:30px}.ddz-topbar h2{font-size:18px}.ddz-topbar .ddz-mode-label{font-size:9px}.ddz-topbar .ddz-tools{gap:5px}.ddz-tools button{font-size:10px;padding:5px 7px;min-height:34px}.ddz-tools button[data-sound-toggle]{max-width:66px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ddz-tools .ddz-close{width:30px}.ddz-table-meta{padding:7px;font-size:10px;gap:8px}.ddz-table-meta b{font-size:12px;padding:3px 10px}.ddz-table-wrap:before{inset:15px 10px 20px;border-radius:45%}.ddz-opponents{padding:8px 11px 0;gap:15px}.ddz-seat{min-width:0;width:calc(50% - 8px);max-width:none;padding:8px 7px;gap:6px;border-radius:8px}.ddz-avatar{width:31px;height:31px;font-size:16px}.ddz-seat-copy strong{max-width:110px;font-size:10px;margin-bottom:3px}.ddz-seat-copy span{font-size:8px}.ddz-seat-copy small{font-size:8px}.ddz-seat-copy b{font-size:9px}.ddz-seat-tag{font-size:8px;padding:1px 3px}.ddz-count{font-size:20px;padding-left:1px}.ddz-count small{font-size:8px}.ddz-speech{font-size:9px;left:18px;padding:3px 7px}.ddz-bottom{position:static;transform:none;margin:26px 0 0;gap:4px}.ddz-bottom>div{gap:5px;justify-content:center}.ddz-bottom .sc-card{width:29px;height:42px}.ddz-bottom>span{font-size:8px}.ddz-table-status{margin:12px 7px 4px;font-size:11px}.ddz-timer{height:26px;min-width:31px;font-size:12px}.ddz-played{margin:9px auto;min-height:88px}.ddz-play-stack .sc-card{width:40px;height:58px;margin-right:-25px}.ddz-play-stack{padding-right:25px}.ddz-bid-call{font-size:15px;padding-top:14px}.ddz-waiting{padding:7px 22px;margin-top:20px}.ddz-waiting h3{font-size:23px}.ddz-table-sun{font-size:34px}.ddz-waiting p.ddz-wait-terms{font-size:10px}.ddz-dock{padding:10px 12px max(12px,env(safe-area-inset-bottom))}.ddz-self{font-size:9px;margin-bottom:3px}.ddz-self-name{font-size:11px}.ddz-self-name b{font-size:9px}.ddz-hand{display:grid;gap:8px;padding:16px 0 0;min-height:0}.ddz-card-row{padding:0 15px;justify-content:center}.ddz-hand-card{width:49px;height:70px;margin:0 -10px}.ddz-hand-card>.sc-card{border-radius:4px}.ddz-hand-card.selected{transform:translateY(-11px)}.ddz-selection{font-size:9px;margin:6px 0 3px;min-height:14px}.ddz-controls{gap:8px;min-height:42px}.ddz-controls .button{min-width:0;flex:1;max-width:145px;min-height:42px;padding:10px 13px;font-size:13px}.ddz-controls .ddz-clear{flex:0;padding:5px;font-size:10px;white-space:nowrap}.ddz-action-caption{display:none}.ddz-ready-count{font-size:11px}.ddz-effect{font-size:37px;inset:60% 0 auto}.ddz-info{inset:4px 8px;padding:14px;font-size:11px}.ddz-result{inset:calc(64px + env(safe-area-inset-top)) 0 0}.ddz-result-card{padding:19px 22px}.ddz-result-card h3{font-size:24px}.ddz-result-net{font-size:36px;margin:9px 0}.ddz-result-lines{gap:6px;padding-top:9px}.ddz-result-card>p.ddz-result-note{margin:8px 0}.ddz-result-actions{margin-top:13px}.ddz-result-table{font-size:9px}}
@media(max-width:370px){.ddz-hand-card{width:46px;height:67px;margin:0 -10px}.ddz-tools button{padding:5px;font-size:9px}.ddz-topbar{padding-left:8px;padding-right:8px}.ddz-topbar>img{display:none}.ddz-seat-copy strong{max-width:80px}.ddz-controls{gap:6px}}
@media(max-width:760px) and (max-height:700px){.ddz-bottom{margin-top:19px}.ddz-bottom>span{display:none}.ddz-bottom .sc-card{width:24px;height:35px}.ddz-table-status{margin-top:6px}.ddz-played{margin-top:5px}.ddz-hand-card{height:62px;width:44px;margin:0 -8px}.ddz-hand{gap:6px}.ddz-opponents{padding-top:2px}.ddz-seat{padding:6px}.ddz-dock{padding-top:6px}.ddz-self{font-size:8px}.ddz-waiting{margin-top:15px}.ddz-waiting h3{font-size:20px}.ddz-result-card{padding:12px 19px}.ddz-result-card h3{font-size:20px}.ddz-result-net{font-size:30px;margin:4px 0}.ddz-result-lines{gap:4px}.ddz-result-lines>span{font-size:10px}.ddz-result-card>p.ddz-result-note{font-size:9px}.ddz-result-table{gap:3px}.ddz-result-actions{margin-top:8px}}
@media(orientation:landscape) and (max-height:520px){.ddz-dialog{position:fixed;inset:0;width:100%;height:100dvh;margin:0;border:0;border-radius:0;grid-template-rows:44px minmax(0,1fr) auto}.ddz-topbar{padding:5px 14px}.ddz-topbar>img{width:28px;height:28px}.ddz-topbar h2{font-size:16px}.ddz-topbar .ddz-mode-label{display:none}.ddz-table-meta{padding:4px}.ddz-opponents{padding:2px 18px}.ddz-seat{padding:5px 8px;width:auto;min-width:175px;max-width:30%}.ddz-avatar{width:28px;height:28px}.ddz-seat-copy strong{font-size:10px}.ddz-bottom{position:absolute;top:9px;left:50%;transform:translateX(-50%);margin:0}.ddz-bottom>span{display:none}.ddz-bottom .sc-card{width:25px;height:36px}.ddz-table-status{margin:5px 0}.ddz-played{min-height:48px;margin:3px auto 7px}.ddz-play-stack .sc-card{width:36px;height:52px;margin-right:-20px}.ddz-played>small{font-size:9px;margin-bottom:3px}.ddz-dock{padding:5px 18px max(7px,env(safe-area-inset-bottom))}.ddz-self{margin:0;font-size:9px}.ddz-hand{display:flex;padding-top:10px;gap:0}.ddz-card-row{padding:0}.ddz-hand-card{width:43px;height:62px;margin:0 -10px}.ddz-hand-card.selected{transform:translateY(-8px)}.ddz-selection{margin:2px 0;min-height:11px;font-size:8px}.ddz-controls{gap:8px;min-height:34px}.ddz-controls .button{min-height:34px;min-width:80px;max-width:125px;padding:6px 15px;font-size:12px;flex:0 1 auto}.ddz-error{font-size:9px;margin-top:3px}.ddz-waiting{margin:8px auto}.ddz-waiting h3{font-size:19px}.ddz-table-sun{display:none}.ddz-waiting p.ddz-wait-terms{font-size:9px;margin:5px}.ddz-code{margin:5px}.ddz-result{position:fixed;inset:44px 0 0}.ddz-result-card{max-width:530px;padding:12px 24px}.ddz-result-card h3{font-size:21px;margin:4px}.ddz-result-net{font-size:30px;margin:4px}.ddz-result-lines{display:flex;justify-content:space-between;gap:20px;padding-top:8px}.ddz-result-lines>span{display:grid;gap:3px;font-size:10px}.ddz-result-table{display:none}.ddz-result-actions{margin-top:9px}.ddz-effect{inset:38% 0 auto;font-size:33px}}
@media(prefers-reduced-motion:reduce){.ddz-dialog *,#ddz-lobby *{animation-duration:.01ms!important;animation-delay:0ms!important;transition:none!important}}

.ddz-modes p.ddz-disclosure{min-height:0;font-size:10px;line-height:1.5;color:#b6c5ae;grid-column:1/-1}
