:root{font-family:"Trebuchet MS",Arial,sans-serif;color:#292344;background:#faf7ef;font-synthesis:none;--purple:#6544ed;--ink:#292344;--green:#d7f45a}
:root{--animation-duration-028:.28s;--animation-duration-065:.65s;--animation-duration-08:.8s;--animation-duration-1:1s;--animation-duration-125:1.25s;--animation-duration-18:1.8s;--animation-duration-28:2.8s;--animation-duration-3:3s}
:root[data-animation-speed="slow"]{--animation-duration-028:.56s;--animation-duration-065:1.3s;--animation-duration-08:1.6s;--animation-duration-1:2s;--animation-duration-125:2.5s;--animation-duration-18:3.6s;--animation-duration-28:5.6s;--animation-duration-3:6s}
:root[data-animation-speed="fast"]{--animation-duration-028:.14s;--animation-duration-065:.325s;--animation-duration-08:.4s;--animation-duration-1:.5s;--animation-duration-125:.625s;--animation-duration-18:.9s;--animation-duration-28:1.4s;--animation-duration-3:1.5s}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.46}button:focus-visible,a:focus-visible{outline:3px solid #ee5791;outline-offset:4px}button{color:inherit}a{color:var(--purple)}.shell{max-width:1180px;margin:auto;padding:0 40px 112px}.topbar{height:98px;display:flex;align-items:center;gap:22px;border-bottom:1px solid #e6e1d7}.wordmark{display:flex;align-items:center;text-decoration:none;color:var(--ink);font-weight:1000;font-size:38px;letter-spacing:-3px}.wordmark span{color:var(--purple);font-size:38px;margin-left:4px}.wordmark small{font-size:10px;letter-spacing:2px;writing-mode:vertical-rl;margin-left:6px}.local-badge{margin-left:auto;font-size:10px;letter-spacing:1.5px;font-weight:bold}.local-badge i{display:inline-block;background:#84ac53;width:7px;height:7px;border-radius:50%;margin-right:7px}.round-button{border:1.5px solid #d6d0df;border-radius:50%;background:transparent;width:34px;height:34px;font-weight:bold;font-size:19px;flex-shrink:0}.intro{position:relative;padding:32px 0 26px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800}.intro h1{font-size:clamp(38px,4.2vw,58px);letter-spacing:-2.7px;line-height:1.04;margin:14px 0}.intro h1>span:not(.headline-star){color:var(--purple)}.intro p{font-size:14px;color:#777184;margin-bottom:0}.headline-star{position:absolute;font-size:100px;right:60px;top:24px;color:#f68ab4;transform:rotate(12deg)}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:start}.table-wrap{border-radius:28px;background:#e8e2fa;border:2px solid #d4c9f3;padding:22px 24px 18px;position:relative;overflow:hidden;box-shadow:0 7px 0 #e7e1d6}.table-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1px;font-weight:bold;color:#756798}.pill{border:1px solid #c8bbe8;background:#f7f3ff;border-radius:20px;padding:7px 10px;color:#68548b}.opponents{display:flex;justify-content:space-around;gap:16px;margin-top:22px}.opponent{text-align:center;min-width:0}.opponent-heading{display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:bold;margin-bottom:11px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:12px;background:#ffb5ce;font-size:23px;border:1px solid #df89a9}.avatar.milo{background:#ffcf77;border-color:#e4b66c}.opponent small{font-size:9px;color:#7a6b96;font-weight:normal}.mini-hand{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;max-width:205px}.card{width:64px;height:89px;border:1.5px solid #d0c8df;border-radius:10px;display:inline-flex;position:relative;flex-direction:column;justify-content:center;align-items:center;background:#fffcf6;color:var(--ink);box-shadow:0 3px 0 #c0b3d5;flex-shrink:0;font-weight:bold}.card .rank{font-size:27px;line-height:1}.card .suit{font-size:20px;margin-top:5px}.card .corner{position:absolute;top:5px;left:6px;font-size:10px}.card .points{position:absolute;bottom:5px;font-size:8px;letter-spacing:1px}.card.red{color:#e55671}.card.back{background:var(--purple);color:#e7df9c;border:2px solid #5636d6;background-image:repeating-linear-gradient(45deg,transparent,transparent 8px,#ffffff08 8px,#ffffff08 9px)}.card.back:after{content:"";position:absolute;inset:5px;border:1px solid #ffffff50;border-radius:6px;pointer-events:none}.back>span{font-size:42px;line-height:1}.back>small{font-size:8px;letter-spacing:2px;margin-top:3px}.mini-hand .card{width:37px;height:52px;border-radius:6px;background-color:#9984d5;border-color:#8e77ce;box-shadow:0 2px 0 #baa9d8}.mini-hand .back>span{font-size:24px}.mini-hand .back>small{display:none}.mini-hand .card .rank{font-size:18px}.mini-hand .card .suit{font-size:12px;margin:0}.mini-hand .card .corner,.mini-hand .card .points{display:none}.table-center{display:flex;justify-content:center;align-items:center;gap:25px;min-height:155px;position:relative}.pile-button{display:flex;flex-direction:column;align-items:center;border:0;background:none;padding:0;gap:10px}.pile-label{display:block;font-size:9px;letter-spacing:1.4px;color:#7d6a9c;font-weight:bold;text-align:center;margin-top:9px}.pile-button .pile-label{margin:0}.pile-label b{background:#d7ccef;border-radius:5px;padding:2px 4px;margin-left:2px}.deck-card{transform:rotate(-7deg);box-shadow:3px 3px 0 #d9cdef,5px 5px 0 #b0a1c7}.discard-area .card{transform:rotate(6deg)}.drawn-area{position:absolute;right:10px;top:16px;text-align:center}.drawn-area .card{border:2px solid #ec8c36;transform:rotate(5deg);background:#fff8df}.drawn-area small{display:block;font-size:9px;margin-top:9px;color:#7b5695}.table-doodle{position:absolute;font-size:45px;color:#b29bd4;left:17px;top:45px;transform:rotate(-10deg)}.turn-banner{background:#fffdf6;border:1px solid #d8cdeb;border-radius:12px;text-align:center;padding:11px 12px;font-size:12px;min-height:40px;line-height:1.4}.turn-banner b{color:var(--purple)}.player-heading{display:flex;justify-content:space-between;align-items:center;margin:19px 0 14px;font-size:14px;font-weight:bold;gap:8px}.player-heading>span:first-child{display:flex;align-items:center;gap:8px}.you-avatar{background:var(--green);border-color:#b7d63f}.player-heading small{font-size:8px;letter-spacing:1px;color:#8b7b9f}.hand-label{font-size:10px;color:#877597;font-weight:normal}.hand{display:grid;grid-template-columns:repeat(4,64px);gap:12px;justify-content:center;min-height:98px}.hand .card:nth-child(odd){transform:rotate(-3deg)}.hand .card:nth-child(even){transform:rotate(3deg)}.card.selectable{cursor:pointer;opacity:1}.card.selectable:hover{translate:0 -4px}.card.selected{outline:3px solid #e77a25;outline-offset:3px;translate:0 -5px}.table-footer{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;margin-top:23px;color:#9b88b4}.mission{background:#fff0d9;border:1px solid #f1dfbf;border-radius:24px;padding:25px}.mission .eyebrow{font-size:9px;color:#9c7946}.mission h2{font-size:30px;letter-spacing:-1px;margin:13px 0}.mission h2 em{font-style:normal;color:#e77647}.mission p{font-size:12px;line-height:1.8;color:#8b765f}.goal-art{position:relative;height:100px;display:flex;align-items:center;justify-content:center;gap:14px}.goal-art>span{display:flex;flex-direction:column;align-items:center;justify-content:center;width:48px;height:67px;background:#ffa6ca;border:2px solid #ca6190;border-radius:9px;transform:rotate(-13deg);font-size:26px;font-weight:bold;color:#973d69;box-shadow:0 3px 0 #dfbe9b}.goal-art>span:nth-of-type(2){background:#d5ee70;border-color:#8ba337;transform:rotate(13deg);color:#547133}.goal-art small{font-size:15px}.goal-art b{font-size:30px;color:#bc9f77}.goal-art i{position:absolute;right:0;top:0;font-size:31px;color:#df8f3f}.tip{border-top:1px dashed #dcc9a7;padding-top:16px;margin-top:10px;font-size:12px}.tip p{line-height:1.9;margin:6px 0 12px}.text-button{border:none;background:none;padding:0;font-size:12px;font-weight:bold;color:var(--purple)}.session-card{padding:21px 5px}.session-card .eyebrow{font-size:9px;color:#9c90a7}.session-card>div{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:8px;align-items:center;margin:12px 0}.session-card b{font-size:25px;color:var(--purple)}.session-card span{font-size:10px;color:#8c8098}.session-card small{font-size:9px;color:#a49baa}.page-note{text-align:center;font-size:10px;color:#a198ab;margin-top:27px}.page-note span{color:#e985b0;padding:0 6px}.bottom-bar{position:fixed;bottom:0;left:0;right:0;background:#fffcf5f5;backdrop-filter:blur(16px);border-top:1px solid #e7dfda;padding:12px 24px calc(12px + env(safe-area-inset-bottom));z-index:5}.bottom-inner{max-width:1100px;margin:auto;display:flex;gap:20px;align-items:center}.bottom-inner>button:not(.cabo-button){border:0;background:none;display:flex;flex-direction:column;gap:3px;font-size:10px;min-width:36px;color:#84778e}.bottom-inner>button>span{font-size:22px}.action-controls{display:flex;align-items:center;gap:8px;flex:1;justify-content:center}.action-controls button,.primary{border:0;border-radius:11px;padding:12px 17px;background:var(--purple);color:#fff;font-weight:bold;font-size:12px}.action-controls .secondary{background:#ede6f9;color:#6544ad}.cabo-button{background:var(--green);border:1px solid #bedb51;border-radius:13px;padding:13px 23px;font-size:14px;font-weight:bold;box-shadow:0 3px 0 #b3c563;white-space:nowrap}.cabo-button span{margin-left:15px}.bottom-inner>button:disabled,.action-controls button:disabled{opacity:.42}dialog{border:1px solid #d8cbea;border-radius:25px;padding:25px;max-width:540px;width:calc(100% - 32px);max-height:85dvh;color:var(--ink);background:#fffcf5;box-shadow:0 24px 100px #29234444}dialog::backdrop{background:#25203a88;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px}dialog h2{font-size:30px;letter-spacing:-1px;margin:14px 0}dialog h3{font-size:16px;margin:20px 0 7px}dialog p,dialog li{font-size:13px;line-height:1.7;color:#75677f}dialog ul{padding-left:20px}dialog .primary{margin:8px 8px 8px 0}dialog .secondary{background:#eee5fc;color:var(--purple)}.score-row{display:flex;justify-content:space-between;padding:15px;background:#f0eafa;border-radius:12px;margin:8px 0;gap:10px}.score-row.winner{background:#e2f5a2}.score-row small{font-size:11px;display:block;margin-top:4px}.result-icon{font-size:50px;margin-top:10px}.error-text{color:#a73559}.menu-art{font-size:65px;color:var(--purple);margin:10px 0}.notice{font-size:11px!important;background:#f0eafa;border-radius:10px;padding:12px}button{transition:translate .15s,background .15s}button:active:not(:disabled){translate:0 2px}
@media(min-width:1100px){.intro h1 br{display:none}.intro h1>span:not(.headline-star){margin-left:8px}.intro{padding-top:32px}.headline-star{right:25px;top:0;font-size:85px}.table-wrap{padding-left:32px;padding-right:32px}.game-layout{grid-template-columns:minmax(0,1fr) 280px}.table-center{min-height:169px}.hand .card{width:72px;height:98px}.hand{grid-template-columns:repeat(4,72px);gap:18px}}
@media(max-width:760px){.shell{max-width:520px;padding:0 18px 150px}.topbar{height:73px}.wordmark{font-size:32px}.local-badge{font-size:8px;letter-spacing:1px}.round-button{width:30px;height:30px}.intro{padding:23px 0 21px}.intro h1{font-size:39px;letter-spacing:-1.9px;margin:10px 0}.intro .eyebrow{font-size:8px;letter-spacing:1.3px}.intro p{font-size:11px;max-width:270px;line-height:1.6}.headline-star{font-size:69px;right:4px;top:38px}.game-layout{display:block}.side-panel{display:none}.table-wrap{border-radius:23px;padding:16px 14px 16px}.table-top{font-size:8px}.pill{font-size:8px;padding:6px 8px}.opponents{margin-top:19px;gap:10px}.opponent-heading{font-size:12px;gap:5px}.opponent small{font-size:8px}.mini-hand{gap:4px;max-width:150px}.mini-hand .card{width:29px;height:43px}.mini-hand .back>span{font-size:21px}.mini-hand .card:after{inset:3px}.avatar{width:25px;height:25px;border-radius:9px;font-size:19px}.table-center{min-height:148px;gap:22px}.table-doodle{font-size:33px;left:8px}.drawn-area{right:0;top:25px}.drawn-area .card{width:47px;height:67px}.drawn-area .card .rank{font-size:22px}.drawn-area .card .suit{font-size:17px}.drawn-area .card .points{font-size:6px}.turn-banner{font-size:11px;padding:10px 8px}.player-heading{margin:17px 0 14px;font-size:12px}.player-heading small{display:none}.hand-label{font-size:9px}.hand{grid-template-columns:repeat(4,56px);gap:10px;min-height:82px}.hand .card{width:56px;height:79px}.hand .back>span{font-size:35px}.table-footer{font-size:6px;letter-spacing:.7px;margin-top:19px}.bottom-bar{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.bottom-inner{gap:10px;max-width:484px;flex-wrap:wrap;justify-content:space-between}.bottom-inner>button:not(.cabo-button){font-size:9px}.action-controls{order:-1;flex-basis:100%;min-height:34px;gap:7px}.action-controls button{padding:10px 13px;font-size:11px;flex:1;max-width:240px}.cabo-button{margin-left:auto;padding:10px 20px;font-size:13px}.cabo-button span{font-size:18px!important;margin-left:17px}.page-note{font-size:9px;line-height:1.7;margin:23px 10px}.card{width:58px;height:82px}.bottom-inner>button>span{font-size:20px}}
@media(max-width:350px){.shell{padding-left:12px;padding-right:12px}.intro h1{font-size:35px}.headline-star{font-size:54px}.table-wrap{padding:13px 10px}.hand{grid-template-columns:repeat(4,51px);gap:9px}.hand .card{width:51px;height:74px}.mini-hand .card{width:26px;height:39px}.table-doodle{left:0;font-size:27px}.table-center{gap:16px}.drawn-area .card{width:40px;height:60px}.table-center:has(.drawn-area .card){padding-right:35px}.local-badge{font-size:7px}.action-controls button{font-size:10px;padding:10px}.table-footer{font-size:5.5px}.player-heading{margin-top:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
.hand{grid-template-columns:repeat(2,64px)}.mini-hand{display:grid;grid-template-columns:repeat(2,37px)}.card:disabled{opacity:1}.hand .card{min-height:44px}.shell.playing .intro{padding-top:18px;padding-bottom:18px}.shell.playing .intro h1{font-size:30px;margin:6px 0}.shell.playing .intro h1 br{display:none}.shell.playing .intro h1>span:not(.headline-star){margin-left:7px}.shell.playing .intro p,.shell.playing .intro .headline-star{display:none}
@media(min-width:1100px){.hand{grid-template-columns:repeat(2,72px)}}
@media(max-width:760px){.hand{grid-template-columns:repeat(2,56px)}.mini-hand{grid-template-columns:repeat(2,38px);gap:5px}.mini-hand .card{width:38px;height:46px}.opponent-heading{flex-wrap:wrap;row-gap:2px}.opponent small{font-size:7px}.table-center{min-height:137px}.shell.playing .intro h1{font-size:25px;letter-spacing:-1.2px}.shell.playing .intro .eyebrow{display:none}}
@media(max-width:350px){.hand{grid-template-columns:repeat(2,51px)}.mini-hand .card{width:38px;height:44px}.shell.playing .intro h1{font-size:22px}}
@media(max-width:760px){.shell.playing .topbar{height:60px}.shell.playing .intro{padding:12px 0}.shell.playing .table-center{min-height:119px}.shell.playing .player-heading{margin-top:12px;margin-bottom:12px}}
.opponents{display:grid;grid-template-columns:1fr;justify-content:stretch;gap:14px}
.opponent{width:100%}
.mini-hand{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:min(100%,300px);max-width:300px;margin:0 auto}
.mini-hand .card{width:100%;height:76px;min-width:0;border-radius:9px}
.mini-hand .card .corner,.mini-hand .card .points{display:block}
.mini-hand .card .corner{top:4px;left:5px;font-size:9px}
.mini-hand .card .rank{font-size:clamp(18px,5vw,25px)}
.mini-hand .card .suit{font-size:14px;margin:1px 0 0}
.mini-hand .card .card-art{top:15px;right:5px;font-size:14px}
.mini-hand .card .points{bottom:4px;font-size:clamp(5px,1.7vw,7px);letter-spacing:0;width:calc(100% - 4px);padding:2px 1px}
.hand{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:100%;max-width:360px;min-height:108px;margin:0 auto}
.hand .card{width:100%;height:102px;min-width:0;border-radius:12px}
.card:not(.back){overflow:hidden;border:2px solid #fff;background-color:#fffdf9;background-image:radial-gradient(circle at 85% 22%,#fff8 0 3px,transparent 4px),radial-gradient(circle at 14% 73%,#fff9 0 4px,transparent 5px),linear-gradient(145deg,#fff,#fbf6ed);box-shadow:0 4px 0 #c0b3d5}
.card:not(.back):before{content:"";position:absolute;inset:5px;border:1px dashed #49385a30;border-radius:8px;pointer-events:none}
.card .card-art{position:absolute;top:15px;right:8px;font-size:21px;line-height:1;opacity:.72;transform:rotate(12deg)}
.card.low:not(.lucky):not(.danger) .card-art{opacity:.3}
.card .rank{z-index:1;font-size:clamp(25px,7vw,34px);font-weight:1000;text-shadow:1px 2px #fff8}
.card .suit{z-index:1;margin-top:1px}
.card .points{z-index:1;bottom:6px;max-width:calc(100% - 8px);padding:3px 4px;border-radius:8px;background:#ffffffc9;font-size:clamp(5px,1.8vw,8px);letter-spacing:.35px;text-align:center;white-space:nowrap}
.card.lucky{background-color:#fff3a7;background-image:radial-gradient(circle at 50% 42%,#ffe05c 0 18px,transparent 19px),linear-gradient(145deg,#fff8c8,#ffbd45);border-color:#fff4bb;color:#795125;box-shadow:0 4px 0 #dda94b}
.card.lucky .card-art{color:#d58b23;opacity:1;font-size:24px}
.card.danger{background-color:#ffb1a9;background-image:radial-gradient(circle at 50% 42%,#ff7b78 0 20px,transparent 21px),linear-gradient(145deg,#ffd7c7,#ef6e75);border-color:#ffe0cc;color:#852e50;box-shadow:0 4px 0 #ce6574}
.card.danger .card-art{color:#ad2549;opacity:1;font-size:23px}
.card.power-own{background-color:#c8f4dc;background-image:radial-gradient(circle at 50% 42%,#79dfbd 0 19px,transparent 20px),linear-gradient(145deg,#dcffe8,#72d6bd);color:#205d63}
.card.power-other{background-color:#c6efff;background-image:radial-gradient(circle at 50% 42%,#72cce9 0 19px,transparent 20px),linear-gradient(145deg,#e1faff,#75c5ed);color:#245475}
.card.power-swap{background-color:#e4caff;background-image:radial-gradient(circle at 50% 42%,#ba8aee 0 19px,transparent 20px),linear-gradient(145deg,#f3e5ff,#b38be9);color:#573b7c}
.card.low{background-color:#ffe1ef;background-image:radial-gradient(circle at 50% 42%,#ffd1e1 0 19px,transparent 20px),linear-gradient(145deg,#fff0f8,#f5b5d1);color:#75435f}
.card.back>span{position:relative;z-index:1}
.card.back>small{position:relative;z-index:1}
.player-count-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}
.player-count-choices .primary{padding:12px 6px;font-size:12px}
.avatar.ziggy{background:#b3e8fa;border-color:#76bed6}
.drawn-area .card{width:64px;height:90px}
@media(max-width:760px){.opponents{gap:12px}.mini-hand{max-width:300px}.mini-hand .card{height:70px}.hand{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:360px;min-height:104px}.hand .card{width:100%;height:96px}.card .points{letter-spacing:0}.drawn-area .card{width:58px;height:82px}}
@media(max-width:350px){.table-wrap{padding-left:9px;padding-right:9px}.mini-hand{gap:4px}.mini-hand .card{height:66px}.hand{gap:4px;min-height:94px}.hand .card{height:87px}.card .rank{font-size:24px}.card .card-art{right:5px;font-size:18px}}
.seat-stage{position:relative;height:600px;margin-top:12px}
.opponents{display:contents}
.opponent{position:absolute;text-align:center;min-width:0}
.opponent-heading{margin-bottom:5px}
.seat-top{top:0;left:50%;width:min(54%,320px);transform:translateX(-50%)}
.seat-upper-left{top:6%;left:0;width:47%}
.seat-upper-right{top:6%;right:0;width:47%}
.seat-left{top:34%;left:0;width:42%}
.seat-right{top:34%;right:0;width:42%}
.mini-hand{width:100%;max-width:290px;gap:4px}
.mini-hand .card{height:77px}
.table-center{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);width:230px;min-height:150px;gap:28px}
.table-doodle{left:-22px}
.round-end-panel{position:absolute;top:114px;left:50%;transform:translateX(-50%);width:218.5px;padding:10px 12px;border:1px solid #d9d2e5;border-radius:18px;background:#fff;color:#35215c;box-shadow:0 3px 10px #35215c14;text-align:center;z-index:6}
.round-end-panel.game-finished-panel{top:68%;width:min(130px,38vw);padding:8px 7px;transform:translate(-50%,-50%)}
.round-end-panel h2{margin:0 0 5px;font-size:20px;line-height:1.1;text-transform:uppercase}
.game-finished-panel h2{font-size:14px}
.waiting-panel{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:228px;padding:12px 12px 10px;border:1px solid #d9d2e5;border-radius:18px;background:#fff;color:#35215c;box-shadow:0 3px 10px #35215c14;text-align:center;z-index:200}
.waiting-panel h2{margin:0 0 5px;font-size:18px;line-height:1.1;text-transform:uppercase}
.waiting-panel p{margin:0 0 8px;font-size:11px;line-height:1.3}
.waiting-panel .waiting-count{display:inline-block;margin:0 0 8px;padding:3px 10px;border-radius:999px;background:#d7f45a;font-size:11px;font-weight:700}
.waiting-seats{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin:0;padding:0;list-style:none}
.waiting-seats li{display:flex;align-items:center;gap:5px;min-width:0;padding:3px 6px 3px 3px;border:1px solid #e1d3f7;border-radius:999px;background:#f7f2ff;font-size:11px;font-weight:700}
.waiting-seats li>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.waiting-seats .avatar{flex:none;width:20px;height:20px;font-size:12px}
.waiting-seats .waiting-empty-seat{border-style:dashed;background:#fff;color:#a497b6}
.waiting-seats .waiting-empty-seat .avatar{background:#fff;border:1px dashed #cbbde4;color:#a497b6}
.table-score-history td{text-align:center}
.table-score-history .round-score{position:relative;display:inline-block;vertical-align:middle}
.table-score-history .round-score-number{display:inline-grid;place-items:center;min-height:25px;line-height:1}
.table-score-history .cabo-success .round-score-number{width:25px;border:1.5px solid #6744df;border-radius:50%}
.table-score-history .round-score-icons{position:absolute;left:calc(100% + 3px);top:50%;display:inline-flex;align-items:center;gap:2px;transform:translateY(-50%);white-space:nowrap;line-height:1}
.table-score-history .round-score-icon{position:static;display:inline-flex;align-items:center;transform:none;font-size:13.3px;line-height:1;color:#6744df}
.table-score-history .cabo-failed .round-score-icon{font-size:13.23px;color:#b34369;font-weight:700}
.score-half-icon{display:inline-grid;place-items:center;flex:none;width:15px;height:15px;color:#6b8e25;vertical-align:middle}
.score-half-icon svg{display:block;width:100%;height:100%}
.table-score-history tfoot{background:#eee6fa;color:#35215c}
.table-score-history tfoot th,.table-score-history tfoot td{border-top:2px solid #d9cbed;padding-top:10px;padding-bottom:10px;font-weight:700}
#drawn-area{overflow:visible}
#drawn-area .drawn-power-button{position:absolute;z-index:8;right:-12px;top:-10px;width:36px;height:36px;min-height:0;padding:7px;border:2px solid #35215c;border-radius:50%;background:#d7f45a;color:#35215c;box-shadow:0 3px 0 #35215c;display:grid;place-items:center;transform:rotate(-5deg)}
#drawn-area .drawn-power-button svg{width:20px;height:20px}
.round-end-panel p{margin:0 0 8px;font-size:11px;line-height:1.25}
.round-end-panel .primary{margin:0;min-height:34px;padding:7px 12px;background:#d7f45a;color:#35215c;font-size:12px}
.drawn-area{right:-55px;top:8px}
.turn-banner{position:absolute;top:67%;left:50%;transform:translateX(-50%);width:min(92%,460px)}
.player-seat{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:100%}
.player-heading{margin:0 auto 10px;max-width:480px}
.hand{max-width:440px}
.table-footer{margin-top:5px}
.card .suit{display:none!important}
.mini-hand .card .corner{display:none}
.card .corner{top:6px;left:8px;font-size:12px}
.card .rank{font-size:clamp(28px,6vw,38px)}
.card .card-art{font-size:24px}
.card .points{font-size:clamp(6px,1.3vw,9px);letter-spacing:.5px}
.card.lucky .rank,.card.danger .rank{font-size:clamp(32px,7vw,44px)}
.player-count-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.goal-art small{display:none}
@media(max-width:760px){
  .seat-stage{height:570px;margin-top:10px}
  .seat-top{width:65%}
  .seat-upper-left{top:4%;left:0;width:48%}
  .seat-upper-right{top:4%;right:0;width:48%}
  .seat-left,.seat-right{top:33%;width:43%}
  .mini-hand{max-width:260px;gap:3px}
  .mini-hand .card{height:68px}
  .mini-hand .card .rank{font-size:clamp(16px,5vw,24px)}
  .mini-hand .card .card-art{top:13px;right:4px;font-size:12px}
  .mini-hand .card .points{font-size:clamp(4px,1.55vw,7px);padding:2px 0}
  .table-center{top:49%;width:190px;min-height:125px;gap:20px}
  .table-center>.pile-button .card{width:58px;height:80px}
  .table-center .card .rank{font-size:25px}
  .table-center .card .card-art{font-size:17px}
  .table-center .card .points{font-size:6px}
  .table-doodle{left:-19px;font-size:28px}
  .drawn-area{right:-49px;top:8px}
  .drawn-area .card{width:48px;height:68px}
  .turn-banner{top:67%;font-size:11px}
  .player-seat{bottom:0}
  .player-heading{margin-bottom:8px}
  .hand{max-width:370px;min-height:94px}
  .hand .card{height:90px}
}
@media(max-width:350px){
  .seat-stage{height:590px}
  .seat-top{width:68%}
  .seat-upper-left,.seat-upper-right{width:49%}
  .seat-left,.seat-right{width:45%}
  .mini-hand .card{height:64px}
  .table-center{top:50%;width:168px;gap:14px}
  .drawn-area{right:-43px}
  .table-doodle{left:-17px;font-size:24px}
  .turn-banner{top:67%}
  .hand{gap:4px}
  .hand .card{height:86px}
}
.seat-stage:before{content:"";position:absolute;z-index:0;left:11%;top:10%;width:78%;height:72%;border:1px dashed #bdaedf;border-radius:50%;pointer-events:none}
.opponent,.table-center,.turn-banner,.player-seat{z-index:1}
@media(min-width:761px){.seat-left,.seat-right{top:13%}}
@media(max-width:760px){.seat-left,.seat-right{top:13%}}
.seat-four-left,.seat-four-right{top:13%;width:32%}
.seat-four-left{left:0}
.seat-four-right{right:0}
@media(max-width:760px){
  .seat-four-left,.seat-four-right{top:17%;width:48%}
  .seat-four-left{left:0;right:auto}
  .seat-four-right{right:0;left:auto}
}
@media(max-width:760px) and (orientation:portrait){
  .seat-four-left,.seat-four-right{top:8%;width:70px}
  .seat-four-left{left:-5px;right:auto}
  .seat-four-right{right:-5px;left:auto}
  .seat-four-left .mini-hand,.seat-four-right .mini-hand{display:flex;flex-direction:column;align-items:center;width:70px;max-width:none;gap:3px;overflow:visible}
  .seat-four-left .mini-hand .card,.seat-four-right .mini-hand .card{width:44px;height:66px;flex-shrink:0;margin-bottom:0;border-radius:8px}
  .seat-four-left .mini-hand .card:nth-child(odd),.seat-four-right .mini-hand .card:nth-child(odd){transform:rotate(87deg)}
  .seat-four-left .mini-hand .card:nth-child(even),.seat-four-right .mini-hand .card:nth-child(even){transform:rotate(93deg)}
  .seat-four-left .opponent-heading,.seat-four-right .opponent-heading{position:absolute;top:-25px;width:max-content;font-size:10px}
  .seat-four-left .opponent-heading{left:78px}
  .seat-four-right .opponent-heading{right:78px}
  .seat-four-left .opponent-heading .avatar,.seat-four-right .opponent-heading .avatar{width:22px;height:22px;font-size:16px}
  .seat-four-left .opponent-heading small,.seat-four-right .opponent-heading small{display:none}
}
@media(min-width:761px){
  .seat-top .mini-hand{gap:3px}
  .seat-top .mini-hand .card:nth-child(odd){transform:rotate(87deg)}
  .seat-top .mini-hand .card:nth-child(even){transform:rotate(93deg)}
}
@media(max-width:760px){
  .seat-four-left,.seat-four-right{top:6%}
  .seat-top .mini-hand{gap:3px}
  .seat-top .mini-hand .card:nth-child(odd){transform:rotate(87deg)}
  .seat-top .mini-hand .card:nth-child(even){transform:rotate(93deg)}
}
@media(min-width:761px){
  .seat-four-left,.seat-four-right{top:12%;width:82px}
  .seat-four-left{left:-8px;right:auto}
  .seat-four-right{right:-8px;left:auto}
  .seat-four-left .mini-hand,.seat-four-right .mini-hand{display:flex;flex-direction:column;align-items:center;width:58px;max-width:none;gap:3px;overflow:visible}
  .seat-four-left .mini-hand .card,.seat-four-right .mini-hand .card{width:46px;height:auto;aspect-ratio:2 / 3;flex:0 0 auto;margin-bottom:0;border-radius:8px}
  .seat-four-left .mini-hand .card:nth-child(odd),.seat-four-right .mini-hand .card:nth-child(odd){transform:rotate(87deg)}
  .seat-four-left .mini-hand .card:nth-child(even),.seat-four-right .mini-hand .card:nth-child(even){transform:rotate(93deg)}
  .seat-four-left .opponent-heading,.seat-four-right .opponent-heading{position:absolute;top:50%;display:flex;flex-direction:column;writing-mode:vertical-rl;transform:translateY(-50%);margin:0;font-size:11px;gap:4px}
  .seat-four-left .opponent-heading{left:58px}
  .seat-four-right .opponent-heading{right:58px}
  .seat-four-left .opponent-heading .avatar,.seat-four-right .opponent-heading .avatar{width:22px;height:22px;font-size:16px}
  .seat-four-left .opponent-heading small,.seat-four-right .opponent-heading small{display:none}
}
@media(max-width:760px) and (orientation:portrait){
  .seat-four-left{left:-5px}
  .seat-four-right{right:-5px}
}
.mini-hand{max-width:190px}
.hand{max-width:310px}
.hand.crowded{--overlap-card-width:64px;max-width:calc(4.795 * var(--overlap-card-width));grid-template-columns:repeat(var(--overlap-columns),minmax(0,1fr)) var(--overlap-card-width);gap:0}
.hand.crowded .card{width:var(--overlap-card-width);isolation:isolate}
@media(max-width:760px){.hand.crowded{--overlap-card-width:58px}}
.card:not(.online-card-motion){aspect-ratio:2 / 3;height:auto!important}
@media(max-width:760px){.hand{max-width:280px}.mini-hand{max-width:190px}}
.card .points{left:4px;right:4px;width:auto;max-width:none;padding:2px 1px;line-height:1.05;letter-spacing:0;text-align:center;white-space:normal}
.mini-hand .card .points{left:3px;right:3px;width:auto;max-width:none;padding:2px 1px}
.table-center{display:grid;grid-template-columns:repeat(2,64px);top:23%;width:156px;min-height:0;padding:0;gap:18px 28px;align-items:start;transform:translateX(-50%)}
.drawn-area{position:relative;inset:auto;grid-column:1 / -1;justify-self:center;transform:none}
.drawn-area:empty{display:none}
.your-turn-notice{display:block;max-width:130px;padding:10px 12px;border:1px dashed #b6a6cf;border-radius:12px;background:#fffdf680;color:#81728f;font-size:12px;line-height:1.35;text-align:center}
.drawn-area:has(.your-turn-notice){display:grid;place-items:center;height:96px}
@media(max-width:760px){.drawn-area:has(.your-turn-notice){height:87px}}
.shell.playing .table-center{padding:0}
@media(max-width:760px){.table-center{top:27%;width:130px;grid-template-columns:repeat(2,58px);gap:14px}}
.seat-top .mini-hand .card:nth-child(odd){transform:rotate(-3deg)}
.seat-top .mini-hand .card:nth-child(even){transform:rotate(3deg)}
.seat-stage{--opponent-card-width:50.6px;--opponent-card-gap:7px}
.card.power-target{outline:3px solid var(--green);outline-offset:2px}
.table-top{display:grid;grid-template-columns:1fr auto 1fr;gap:8px}
.table-top>.pill{justify-self:start}
.table-top>#round-label{justify-self:end}
.turn-timer{display:inline-flex;align-items:center;gap:3px;padding:5px 8px;border:2px solid #b2cc39;border-radius:12px;background:var(--green);color:var(--ink);font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:0}
.turn-timer.inactive{background:#f7f3ff;border-color:#c8bbe8;color:#756798}
.turn-timer.urgent{background:#ffd1de;border-color:#e13766;color:#a60c38;animation:timer-pulse var(--animation-duration-065,.65s) ease-in-out infinite}
@keyframes timer-pulse{50%{transform:scale(1.15)}}
@media(prefers-reduced-motion:reduce){.turn-timer.urgent{animation:none}}
.brand-logo{display:block;width:170px;height:auto;object-fit:contain}
.intro h1>.headline-first{color:var(--ink);margin-left:0}
.bottom-inner>button>small{font:inherit}
.language-flag{display:block;width:26px;height:18px;border-radius:3px;box-shadow:0 0 0 1px #29234425;flex-shrink:0}
.language-choices{display:grid;gap:6px;margin-top:18px}
.language-choice{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid #d6c9ef;border-radius:12px;background:#fffdf6;text-align:left}
.language-choice[aria-pressed="true"]{border:2px solid var(--purple);background:#eee7ff}
.language-choice b{margin-left:auto;color:var(--purple)}
.bottom-inner>#language{align-items:center}
.card .points{overflow-wrap:anywhere}
@media(max-width:760px){.bottom-inner{gap:8px}.cabo-button{padding:10px 12px}.cabo-button span{margin-left:5px}}
.card.deck-card{border:0;background:none}
.deck-card>img{display:block;width:100%;height:100%;border-radius:inherit}
.card.back{padding:0;border:0;background:none}
.card.back>.card-back-art{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:fill;border-radius:inherit;pointer-events:none}
.score-row.current-player{background:#e2f5a2}
.hand .card[data-p],.mini-hand .card[data-p]{opacity:1}
.hand .card.off-turn[data-p],.mini-hand .card.off-turn[data-p]{opacity:1}
.hand .card.off-turn[data-p]::after,.mini-hand .card.off-turn[data-p]::after{content:"";position:absolute;inset:0;border:0;border-radius:inherit;background:#ffffff59;z-index:5;pointer-events:none}
.card.activity-peek{outline:3px solid #38a8dd;outline-offset:3px;translate:0 -4px}
.card.activity-replace{outline:3px solid #9863e5;outline-offset:3px}
.card.power-effect{translate:none;animation:completed-power-breathe var(--animation-duration-08,.8s) ease-in-out infinite}
@keyframes completed-power-breathe{50%{scale:1.06;filter:brightness(1.12)}}
@media(prefers-reduced-motion:reduce){.card.power-effect{animation:none}}
.shell.playing .discard-area{display:flex;flex-direction:column;align-items:center}
.shell.playing #deck{gap:0}
#drawn-area .drawn-choice-icon{position:absolute;right:-28px;width:36px;height:36px;min-height:0;border:2px solid #35215c;border-radius:50%;padding:7px;display:grid;place-items:center;box-shadow:0 3px 0 #35215c;color:#35215c;z-index:12;cursor:pointer}
#drawn-area .drawn-discard-icon{top:-14px;background:#f48bb6}
#drawn-area .drawn-take-icon{top:calc(100% - 44px);background:#c8e84c}
#drawn-area .drawn-choice-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#drawn-area .drawn-choice-icon:hover{filter:brightness(1.08)}
#drawn-area .drawn-choice-icon:focus-visible{outline:3px solid #38a8dd;outline-offset:3px}
#drawn-area .drawn-power-button{right:-28px;top:-14px}
#drawn-area .drawn-discard-left{left:-28px;right:auto}
#drawn-area .drawn-choice-icon,#drawn-area .drawn-power-button{rotate:none;transform:rotate(-5deg)}
.shell.playing #deck>.pile-label,.shell.playing .discard-area>.pile-label{display:flex;align-items:center;justify-content:center;gap:4px;height:14px;line-height:14px}
.activity-eye{position:absolute;top:-18px;left:50%;font-size:20px;line-height:1;z-index:5;pointer-events:none}
@media(prefers-reduced-motion:reduce){.card.activity-peek{translate:none}}
.score-value{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.score-value del{color:#756798;font-size:12px}
.score-zero{display:inline-block;padding:6px 10px;border:2px solid #6c45c4;border-radius:12px;background:#e1fa72;color:#5630d8;font-size:28px;line-height:1;transform:rotate(-6deg);box-shadow:3px 3px 0 #b9a2ee}
.score-row .score-penalty{color:#a60c38;font-weight:800}
.hand,.mini-hand{position:relative}
.cabo-overlay{position:absolute;inset:0;display:grid;place-items:center;z-index:30;pointer-events:none}
.cabo-badge{display:block;width:max-content;padding:7px 10px;border:2px solid #e13766;border-radius:12px;background:#ffd1de;color:#a60c38;box-shadow:0 3px 0 #30205233;font-size:16px;font-weight:900;white-space:nowrap;animation:timer-pulse var(--animation-duration-065,.65s) ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.cabo-badge{animation:none}}
.turn-banner{display:flex;align-items:center;justify-content:center;text-align:center}
.turn-banner>span{min-width:0;max-width:100%}
.drawn-area .card{width:64px}
@media(max-width:760px){
  .drawn-area .card{width:58px}
    .turn-banner{top:calc(67% + 8px)}
  .player-heading,.shell.playing .player-heading{position:relative;justify-content:center;margin-top:0;margin-bottom:4px;min-height:30px}
  .player-heading>span:first-child{padding:3px 12px;border:1px solid #c8bbe8;border-radius:12px;background:#fffdf6;box-shadow:0 2px 0 #d8cdeb}
  .player-heading .avatar{width:22px;height:22px;font-size:16px}
  .player-heading .hand-label{position:absolute;right:0;font-size:9px}
}
.card.deck-card:after{content:none}
@media(max-width:760px){.brand-logo{width:136px;height:auto}}
.seat-top{width:max-content}
.seat-top .mini-hand{width:max-content;max-width:none;flex-wrap:nowrap;gap:var(--opponent-card-gap)}
.seat-top .mini-hand .card,.seat-four-left .mini-hand .card,.seat-four-right .mini-hand .card{width:var(--opponent-card-width);flex:0 0 auto}
@media(min-width:761px), (max-width:760px) and (orientation:portrait){
  .seat-four-right .mini-hand .card:nth-child(odd){transform:rotate(267deg)}
  .seat-four-right .mini-hand .card:nth-child(even){transform:rotate(273deg)}
  .seat-four-left,.seat-four-right{top:46%;transform:translateY(-50%)}
  .seat-four-left .mini-hand,.seat-four-right .mini-hand{gap:var(--opponent-card-gap);padding-block:calc(var(--opponent-card-width) / 4)}
  .seat-four-left .mini-hand .card,.seat-four-right .mini-hand .card{margin-block:calc(var(--opponent-card-width) / -4)}
}
@media(max-width:380px) and (orientation:portrait){
  .seat-four-left{left:-22px}
  .seat-four-right{right:-22px}
}
@media(max-width:330px) and (orientation:portrait){
  .seat-four-left{left:-14px}
  .seat-four-right{right:-14px}
}
.opponent-heading{display:flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:100%;margin:0 auto 10px;padding:4px 8px;border:1px solid #c8bbe8;border-radius:12px;background:#fffdf6;color:var(--ink);font-size:12px;line-height:20px;white-space:nowrap;box-shadow:0 2px 0 #d8cdeb}
.opponent-heading small,.player-heading small{display:none}
.opponent-heading .avatar{width:20px;height:20px;font-size:15px;flex-shrink:0}
.player-heading,.shell.playing .player-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;min-height:32px;margin:0 auto 6px}
.player-heading>span:first-child{grid-column:2;padding:4px 10px;border:1px solid #c8bbe8;border-radius:12px;background:#fffdf6;box-shadow:0 2px 0 #d8cdeb;font-size:12px}
.player-heading .avatar{width:20px;height:20px;font-size:15px}
.player-heading .hand-label{position:static;grid-column:3;justify-self:end;max-width:100%;font-size:9px;text-align:right}
.opponent-heading.is-turn,.player-heading.is-turn>span:first-child{border-color:#9caf36;background:var(--green);color:var(--ink);box-shadow:0 2px 0 #9caf36}
.seat-four-left .opponent-heading,.seat-four-right .opponent-heading{position:absolute;top:auto;bottom:100%;left:50%;right:auto;width:max-content;max-width:none;transform:translateX(-50%);writing-mode:horizontal-tb;flex-direction:row;margin:0;padding:4px 6px;font-size:11px;gap:4px}
.seat-four-left .opponent-heading .avatar,.seat-four-right .opponent-heading .avatar{width:18px;height:18px;font-size:14px}
.turn-banner{top:auto;bottom:calc(var(--player-seat-height,140px) + 10px)}
.seat-four-left,.seat-four-right{top:calc(46% - 20px);width:70px;transform:translateY(-50%)}
.seat-four-left .mini-hand,.seat-four-right .mini-hand{display:flex;flex-direction:column;align-items:center;width:70px;gap:7px;padding-block:12.65px}
.seat-four-left .mini-hand .card,.seat-four-right .mini-hand .card{margin-block:-12.65px}
.seat-four-left .mini-hand .card:nth-child(odd){transform:rotate(87deg)}
.seat-four-left .mini-hand .card:nth-child(even){transform:rotate(93deg)}
.seat-four-right .mini-hand .card:nth-child(odd){transform:rotate(267deg)}
.seat-four-right .mini-hand .card:nth-child(even){transform:rotate(273deg)}
@media(max-width:450px){
  .seat-four-left .opponent-heading .avatar,.seat-four-right .opponent-heading .avatar{display:none}
  .seat-four-left .opponent-heading{left:0;transform:none}
  .seat-four-right .opponent-heading{left:auto;right:0;transform:none}
}
.session-card{position:relative;min-width:0;margin-top:18px;padding:22px 18px 18px;border:2px solid #bba2ed;border-radius:24px;background:linear-gradient(135deg,#f3eaff,#fff4d8);box-shadow:none}
.session-card::after{content:"\2726";position:absolute;top:-13px;right:16px;display:grid;place-items:center;width:30px;height:30px;border:2px solid #8a64d6;border-radius:10px;background:var(--green);color:var(--purple);font-size:23px;transform:rotate(12deg)}
.session-card .eyebrow{display:block;color:#644392;font-size:10px;letter-spacing:1px}
.session-card>div{grid-template-columns:auto 1fr auto 1fr;gap:8px;margin:16px 0;padding:12px 10px;border:1px solid #d6c3ef;border-radius:16px;background:#fffdf6cc}
.session-card b{display:grid;place-items:center;min-width:36px;min-height:42px;padding:4px;border-radius:11px;background:#e1fa72;color:#5630d8;font-size:28px;line-height:1}
.session-card b#played{background:#ffdae8;color:#973865}
.session-card span{color:#655375}
.session-card small{display:block;color:#796589;line-height:1.5}
.table-top{grid-template-columns:max-content minmax(0,1fr) max-content}
.table-top>.turn-timer{justify-self:center}
.table-title{display:flex;align-items:center;gap:5px;min-width:0;justify-self:start}
.table-title .pill{white-space:nowrap}
#table-scores{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;padding:5px;border:1px solid #aa91dd;border-radius:10px;background:#e1fa72;color:#5630d8}
.table-score-scroll{max-width:100%;overflow-x:auto;margin-top:20px;border:1px solid #d6c3ef;border-radius:12px}
.table-score-history{width:100%;border-collapse:collapse;font-size:12px;text-align:center}
.table-score-history caption{padding:12px;color:#644392;font-weight:bold}
.table-score-history th,.table-score-history td{padding:10px 8px;border-top:1px solid #e2d7ee}
.table-score-history thead{background:#eee5ff}
@media(max-width:380px){.table-top{gap:4px;letter-spacing:0}.table-title{gap:3px}.table-title .pill{padding:7px 5px;font-size:9px}#table-scores{width:28px;height:30px}}
.table-wrap{--table-default-background:#e8e2fa;--table-default-border:#d4c9f3;background:var(--table-default-background);border-color:var(--table-default-border)}
.table-wrap[data-table-theme="playful"],.table-wrap[data-table-theme="variant"]{border-color:#b6a0e8;background-color:#f5edff;background-image:radial-gradient(circle at 12px 12px,#9063d530 2px,transparent 2.5px),radial-gradient(ellipse at 0% 5%,#ffb9d5 0%,transparent 48%),radial-gradient(ellipse at 100% 12%,#ffe790 0%,transparent 46%),radial-gradient(ellipse at 95% 100%,#b4efdc 0%,transparent 53%),radial-gradient(ellipse at 0% 90%,#bcdcff 0%,transparent 48%);background-size:28px 28px,100% 100%,100% 100%,100% 100%,100% 100%}
[hidden]{display:none!important}
.login-language{position:relative;align-self:flex-start;margin-top:8px;z-index:10}
.login-language summary{display:grid;place-items:center;width:44px;height:44px;list-style:none;cursor:pointer;border:1px solid #c8bbe8;border-radius:14px;background:#f3eeff}
.login-language summary::-webkit-details-marker{display:none}
.login-language summary:focus-visible{outline:3px solid #ee5791;outline-offset:3px}
.login-language-options{position:absolute;right:0;top:52px;width:220px;max-width:calc(100vw - 72px);max-height:60dvh;overflow-y:auto;padding:6px;border:1px solid #c8bbe8;border-radius:16px;background:#fffdf6;box-shadow:0 6px 20px #5630d826}
.login-language-options button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px;border:0;border-radius:10px;background:transparent;text-align:left;font-size:13px}
.login-language-options button[aria-pressed="true"],.login-language-options button:hover{background:#eee5ff}
.login-language-options b{margin-left:auto;color:var(--purple)}
.entry-screen{min-height:100dvh;padding:28px 16px 48px;background:radial-gradient(circle at 0 0,#ffd1e7,transparent 48%),radial-gradient(circle at 100% 100%,#c4f7df,transparent 55%),#f3edff}
.entry-card{position:relative;max-width:780px;margin:0 auto;padding:28px;border:2px solid #d5c1f1;border-radius:30px;background:#fffdf6;box-shadow:0 10px 0 #cbb6ed40}
.entry-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.logout-icon{position:absolute;top:22px;right:18px;display:grid;place-items:center;width:40px;height:40px;padding:8px;border:1px solid #d5c1f1;border-radius:50%;background:#eee5ff;color:#644392}
.logout-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.entry-header img{width:140px;height:auto}
.entry-chip{display:inline-block;padding:6px 10px;border:1px solid #b5cd53;border-radius:20px;background:#e1fa72;color:#4d6121;font-size:10px;font-weight:bold}
.entry-card h1{max-width:100%;margin:22px 0 10px;color:#5630d8;font-size:clamp(28px,5vw,40px);letter-spacing:-1px;line-height:1.15}
.entry-card p{color:#796589;font-size:13px;line-height:1.6}
.entry-card .primary{min-height:44px;border:0;border-radius:14px;padding:12px 18px;background:var(--purple);color:white;font-weight:bold}
.entry-card .primary.secondary{background:#eee5ff;color:#644392}
.entry-card button:disabled{opacity:.55}
.entry-form{display:grid;gap:10px;margin:24px 0}
.entry-form label{font-size:12px;font-weight:bold;color:#655375}
.entry-form input,.entry-form select,.entry-language select{min-width:0;width:100%;min-height:46px;padding:12px;border:2px solid #d6c3ef;border-radius:12px;background:white;color:var(--ink);font:inherit;font-size:16px}
.entry-form input:focus-visible,.entry-form select:focus-visible,.entry-language select:focus-visible{outline:3px solid #ee5791;outline-offset:2px}
.entry-form small,.entry-card>small{font-size:11px;color:#796589;line-height:1.5}
#entry-error:empty{display:none}
#entry-error{margin:0;color:#a60c38;font-weight:bold}
.entry-spark{float:right;padding:8px;color:#e577a5;font-size:40px;transform:rotate(12deg)}
.social-demo{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 10px}
.social-demo button{min-height:46px;border:1px solid #c8bbe8;border-radius:12px;background:#f3eeff;color:#655375}
.social-demo b{display:inline-block;margin-right:8px;font-size:22px}
.entry-language{display:flex;align-items:center;gap:12px;margin:22px 0;font-size:12px}
.entry-language select{width:auto;flex:1}
.entry-foot{margin:26px 0 0;padding-top:16px;border-top:1px dashed #d6c3ef;font-size:11px!important}
.lobby-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}
.lobby-heading h1{margin-top:8px}
.lobby-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.lobby-table{min-width:0;padding:20px;border:2px solid #c8bbe8;border-radius:22px;background:linear-gradient(140deg,#eee5ff,#fff6db)}
.lobby-table:nth-child(2n){background:linear-gradient(140deg,#ffe4ed,#fff6db)}
.lobby-table h2{margin:16px 0 6px;font-size:22px;overflow-wrap:anywhere}
.lobby-table code{display:block;font-size:10px;color:#796589;overflow-wrap:anywhere}
.lobby-table dl{display:grid;grid-template-columns:1fr 1fr;gap:16px 10px;margin:20px 0}
.lobby-table dt{font-size:10px;color:#796589}
.lobby-table dd{margin:4px 0 0;font-size:23px;font-weight:bold;color:#644392}
.lobby-table>small{display:block;margin-bottom:16px;font-size:10px;color:#796589}
.lobby-table .primary{width:100%}
.preview-table .entry-chip{background:#f3eeff;border-color:#c8bbe8;color:#796589}
.table-identity{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:12px 0 0;color:#655375;font-size:10px}
.table-identity code{min-width:0;max-width:100%;overflow-wrap:anywhere}
.table-identity .text-button{margin-left:auto;font-size:10px;min-height:28px}
.table-title{max-width:100%}
.table-title .pill{max-width:140px;overflow:hidden;text-overflow:ellipsis}
.table-top{grid-template-columns:minmax(0,1fr) auto auto}
.table-score-history td small{display:block;margin-top:5px;color:#796589}
@media(min-width:761px){.entry-screen{padding-top:48px}.entry-form,.social-demo,.entry-language{max-width:420px}.entry-card:has(#demo-login){max-width:540px}}
@media(max-width:540px){.entry-card{padding:22px 18px;border-radius:24px}.lobby-tables{grid-template-columns:1fr}.entry-header img{width:120px}.lobby-heading{align-items:flex-start}}
@media(max-width:380px){.table-title .pill{max-width:95px}.table-top{font-size:9px}.turn-timer{font-size:12px;padding:5px}}
.table-top{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.table-title{display:flex;align-items:center;gap:8px}
.table-title .pill{display:flex;align-items:center;justify-content:center;height:32px;max-width:min(38vw,240px);padding:0 10px}
#round-label{display:flex;align-items:center;justify-self:start;height:32px;padding:0 8px;border:1px dashed #aa91dd;border-radius:10px;background:#fffdf680;color:#68548b;font-size:9px;white-space:nowrap}
#table-scores{grid-column:2;grid-row:1;width:32px;height:32px}
.table-top>.turn-timer{position:absolute;left:calc(50% + var(--table-center-offset,0px));top:50%;justify-self:auto;transform:translate(-50%,-50%);z-index:1}
.table-wrap{--table-center-offset:142px}
.table-identity,.table-footer{display:none}
@media(max-width:760px){.table-wrap{--table-center-offset:0px}}
@media(min-width:1300px) and (min-aspect-ratio:2/1){
  .shell{max-width:1980px;padding:0 48px 92px}
  .topbar{height:64px  }
}

  .lobby-actions{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:18px 0 16px}
  .lobby-actions>.primary{min-height:44px;border:0;border-radius:14px;padding:11px 16px;background:var(--purple);color:#fff;font-weight:bold}
  .table-search-filters{display:flex;flex:1 1 250px;align-items:flex-end;gap:10px;min-width:0}
  .table-search{display:grid;flex:1 1 0;min-width:0;gap:5px;font-size:11px;font-weight:bold;color:#655375}
  .table-search input{width:100%;min-height:44px;padding:10px 12px;border:2px solid #d6c3ef;border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
  .table-search input:focus-visible{outline:3px solid #ee5791;outline-offset:2px}
  .favorite-filter{position:relative;display:block;flex:0 0 44px;width:44px;height:44px;cursor:pointer}
  .favorite-filter>span{display:grid;place-items:center;width:100%;height:100%;border:2px solid #d6c3ef;border-radius:50%;background:#fff;color:#a49baa;font-size:22px;line-height:1}
  .favorite-filter input:checked+span{border-color:#e3b63e;background:#fff3bf;color:#bb7b00}
  .favorite-filter input:focus-visible+span{outline:3px solid #ee5791;outline-offset:2px}
  .lobby-table-scroll{max-width:100%;overflow:hidden;border:1px solid #d7c8ec;border-radius:16px;background:#fffdf6}
  .lobby-table-list{width:calc(100% - 1px);min-width:0;table-layout:fixed;border-collapse:collapse;font-size:13px;text-align:center}
  .lobby-table-list th:nth-child(1),.lobby-table-list td:nth-child(1){width:27%}
  .lobby-table-list th:nth-child(2),.lobby-table-list td:nth-child(2){width:14%}
  .lobby-table-list th:nth-child(3),.lobby-table-list td:nth-child(3){width:11%}
  .lobby-table-list th:nth-child(4),.lobby-table-list td:nth-child(4){width:12%}
  .lobby-table-list th:nth-child(5),.lobby-table-list td:nth-child(5){width:20%}
  .lobby-table-list th:nth-child(6),.lobby-table-list td:nth-child(6){width:16%}
  .lobby-table-list th{padding:10px 8px;background:#eee7ff;color:#655375;font-size:10px;line-height:1.3}
  .lobby-table-list td{padding:9px 8px;border-top:1px solid #eee8f3;font-variant-numeric:tabular-nums}
  .lobby-table-list tbody tr:not(.table-group-row):nth-child(odd){background:#fffaf0}
  .lobby-table-list th:first-child,.lobby-table-list td:first-child{text-align:left}
  .table-group-row th{padding:10px 12px;border-top:2px solid #d6c3ef;background:#f8f2ff;color:#6344a4;text-align:left;font-size:11px}
  .table-id-cell{display:flex;align-items:center;gap:8px;min-width:0}
  .table-name-meta{display:flex;flex:1 1 0;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;overflow:hidden}
  .table-name-button,.table-name-text{max-width:150px;overflow-wrap:anywhere;white-space:normal;font:inherit;font-weight:bold;line-height:1.2}
  .table-name-button{padding:2px 0;border:0;background:none;color:#5435bd;text-align:left;text-decoration:underline;text-underline-offset:3px}
  .table-name-text{color:#5435bd}
  .table-id-text{color:#9a8da7;font-size:10px;font-weight:normal;font-variant-numeric:tabular-nums}
  .favorite-toggle{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;padding:0;border:1px solid #e1d8ed;border-radius:50%;background:#fff;color:#a49baa;font-size:16px;line-height:1;text-align:center}
  .favorite-toggle[aria-pressed="true"]{border-color:#e3b63e;background:#fff3bf;color:#bb7b00}
  .no-table-results{padding:24px!important;color:#796589}
  .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .table-detail-dialog{width:min(440px,calc(100vw - 32px));max-height:min(82dvh,720px);margin:auto;padding:22px;border:2px solid #c8bbe8;border-radius:24px;background:#fffdf6;color:var(--ink);box-shadow:0 16px 50px #39235b40;overflow:auto}
  .table-detail-dialog::backdrop{background:#27203f88;backdrop-filter:blur(3px)}
  .table-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
  .table-detail-heading h2{margin:8px 0 3px;color:#5630d8;font-size:26px;line-height:1.1;overflow-wrap:anywhere}
  .table-detail-heading code{font-size:12px;color:#796589}
  .table-detail-heading .eyebrow{color:#7655ba}
  .table-detail-dialog h3{margin:22px 0 10px;font-size:14px}
  .table-seat-icons{display:flex;flex-wrap:wrap;gap:10px}
  .seat-avatar,.seat-open{display:grid;place-items:center;width:44px;height:44px;border:1.5px solid #d8cdeb;border-radius:15px;background:#f3edff;font-size:24px}
  .seat-open{border-style:dashed;background:#fff;color:#9c85bd;font-size:20px}
  .table-seat-count{margin:8px 0 18px;font-size:12px;color:#796589}
  .table-detail-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
  .table-detail-stats>div{min-width:0;padding:12px;border:1px solid #e5dcf1;border-radius:13px;background:#faf6ff}
  .table-detail-stats dt{font-size:10px;color:#796589}
  .table-detail-stats dd{margin:5px 0 0;color:#644392;font-size:18px;font-weight:bold;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .table-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:20px}
  .table-detail-actions .primary{min-height:44px;border:0;border-radius:14px;padding:11px 16px;background:var(--purple);color:#fff;font-weight:bold}
  .table-name-block{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;min-width:0;height:32px}
  .table-name-block .pill{height:22px;min-height:22px;max-width:min(38vw,240px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px}
  .table-id-label{padding-left:8px;color:#796589;font-size:8px;font-weight:600;letter-spacing:.5px;line-height:9px}
  .table-top{grid-template-columns:minmax(0,1fr) 32px;row-gap:6px}
  .table-title{grid-column:1;grid-row:1;min-width:0}
  #round-label{position:absolute;left:calc(50% + var(--table-center-offset,0px));top:0;justify-content:center;text-align:center;transform:translateX(-50%)}
  #table-scores{grid-column:2;grid-row:1}
  .table-top>.turn-timer{position:static;grid-column:1 / -1;grid-row:2;justify-self:center;transform:translateX(var(--table-center-offset,0px));z-index:1}
  .turn-timer{animation:timer-breathe var(--animation-duration-28,2.8s) ease-in-out infinite}
  .turn-timer.urgent{animation:timer-breathe-urgent var(--animation-duration-125,1.25s) ease-in-out infinite}
  @keyframes timer-breathe{50%{box-shadow:0 0 0 4px #b2cc3940;filter:brightness(1.05)}}
  @keyframes timer-breathe-urgent{50%{box-shadow:0 0 0 4px #e1376640;filter:brightness(1.06)}}
  .seat-top{display:flex;flex-direction:column;align-items:center}
  .seat-top .mini-hand{order:1}
  .seat-top .opponent-heading{order:2;margin:7px auto 0}
  .seat-upper-left .opponent-heading,.seat-four-left .opponent-heading{justify-content:flex-start;text-align:left}
  .seat-upper-right .opponent-heading,.seat-four-right .opponent-heading{justify-content:flex-end;text-align:right}
  .seat-four-left .opponent-heading{left:0;right:auto;transform:none;margin:0}
  .seat-four-right .opponent-heading{left:auto;right:0;transform:none;margin:0}
  @media(prefers-reduced-motion:reduce){.turn-timer{animation:none}}
  @media(max-width:540px){.lobby-actions{align-items:stretch}}
  @media(max-width:450px){
    .seat-four-left .opponent-heading{left:0;right:auto;justify-content:flex-start;text-align:left}
    .seat-four-right .opponent-heading{left:auto;right:0;justify-content:flex-end;text-align:right}
  }
@media(min-width:1300px) and (min-aspect-ratio:2/1){
  .intro{padding:8px 0}
  .intro>.eyebrow,.intro>p{display:none}
  .intro h1{margin:0;font-size:clamp(24px,2vw,36px);letter-spacing:-1px}
  .intro h1 br{display:none}
  .game-layout{grid-template-columns:minmax(0,1fr) 300px;gap:32px}
  .table-wrap{--table-center-offset:166px;padding:14px 24px 12px}
  .seat-stage{height:clamp(260px,calc(100dvh - 370px),520px);margin-top:8px}
  .table-center{top:21%}
  .side-panel{padding-top:0}
}
  .lobby-table-list .table-group-row th{text-align:center}
  @media(max-width:450px){
    .lobby-table-list{font-size:10px}
    .lobby-table-list th{padding:6px 1px}
    .lobby-table-list td{padding:5px 1px;white-space:nowrap;overflow:hidden}
    .column-label{display:none}
    .column-icon{display:inline}
    .table-group-row th{width:auto!important;padding:8px 4px;white-space:normal}
    .table-id-cell{gap:4px;min-width:0}
    .table-name-meta{min-width:0;max-width:100%}
    .table-name-button,.table-name-text{max-width:100%;font-size:10px}
    .table-id-text{font-size:8px}
    .favorite-toggle{flex-basis:20px;width:20px;height:20px;font-size:12px}
  }
.current-table-row{background:#e8f7cf!important;box-shadow:inset 4px 0 #91b92f}
.current-table-badge{align-self:flex-start;padding:2px 6px;border-radius:10px;background:#d9f19e;color:#526b1e;font-size:8px;font-weight:bold}
.table-creation-panel{max-width:560px;margin:12px auto 0;text-align:center}
.table-creation-panel h1{margin-top:8px}
.table-creation-form{max-width:440px;margin:22px auto 0;text-align:center}
.table-creation-form>label{margin-top:4px}
.table-creation-form>input{text-align:center}
.table-choice-set{min-width:0;margin:8px 0 0;padding:0;border:0}
.table-choice-set legend{width:100%;margin-bottom:8px;color:#655375;font-size:12px;font-weight:bold}
.table-choice-row{display:flex;justify-content:center;gap:8px}
.table-choice{display:flex;flex:1 1 0;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:48px;padding:8px 10px;border:2px solid #d6c3ef;border-radius:14px;background:#fff;color:#644392;font:inherit;font-weight:bold;cursor:pointer}
.table-choice:hover{border-color:#9c80eb;background:#f8f3ff}
.table-choice.is-selected,.table-choice[aria-pressed="true"]{border-color:#6744df;background:#eee7ff;box-shadow:0 3px 0 #c7b7f2;color:#5233bd}
.choice-icon{display:inline-grid;place-items:center;min-width:24px;min-height:24px;border-radius:50%;background:#fff1b7;color:#77540a;font-size:14px}
.choice-seats{font-size:10px;letter-spacing:-4px;white-space:nowrap}
.table-creation-form>small{margin-top:6px}
.table-creation-form>.primary,.table-creation-form>.text-button{justify-self:center;min-width:min(100%,240px)}
@media(max-width:420px){.table-creation-form{margin-top:16px}.table-choice-row{gap:5px}.table-choice{min-height:44px;padding:6px 5px;font-size:12px}.choice-seats{font-size:8px;letter-spacing:-3px}}
@media(max-height:850px){
  .shell.playing .intro{padding:6px 0}
  .shell.playing .intro>.eyebrow,.shell.playing .intro>p{display:none}
  .shell.playing .intro h1{margin:0;font-size:clamp(22px,2.4vw,30px)}
  .shell.playing .table-wrap{padding:10px 16px}
  .shell.playing .seat-stage{height:clamp(320px,calc(100dvh - 325px),500px);margin-top:4px}
  .shell.playing .turn-banner{bottom:calc(var(--player-seat-height,140px) + 18px);min-height:32px;padding:6px 10px;line-height:1.25}
}
@media(max-height:850px) and (min-width:761px) and (max-width:1299px){
  .shell.playing .table-center{top:28%}
}
@media(max-width:760px) and (orientation:portrait){
  .shell .topbar{height:60px}
  .shell .intro{padding:6px 0}
  .shell .intro>.eyebrow,.shell .intro>p,.shell .intro .headline-star{display:none}
  .shell .intro h1{margin:0;font-size:clamp(22px,6vw,25px);letter-spacing:-1.2px}
  .shell .intro h1 br{display:none}
  .shell .table-wrap{padding:8px 10px 12px}
  .shell .seat-stage{height:clamp(335px,calc(100dvh - 300px),520px);margin-top:4px;--opponent-card-width:clamp(31px,10.5vw,39px);--opponent-card-gap:2px}
  .shell .seat-top .mini-hand .card{width:var(--opponent-card-width)}
  .shell .seat-four-left,.shell .seat-four-right{top:16%;width:42px;transform:none}
  .shell .seat-four-left .mini-hand,.shell .seat-four-right .mini-hand{width:42px;gap:0;padding:0;overflow:visible}
  .shell .seat-four-left .mini-hand .card,.shell .seat-four-right .mini-hand .card{width:clamp(23px,7vw,28px);height:auto;margin:0;flex:0 0 auto}
  .shell .seat-four-left .mini-hand .card:nth-child(odd){transform:rotate(87deg)}
  .shell .seat-four-left .mini-hand .card:nth-child(even){transform:rotate(93deg)}
  .shell .seat-four-right .mini-hand .card:nth-child(odd){transform:rotate(267deg)}
  .shell .seat-four-right .mini-hand .card:nth-child(even){transform:rotate(273deg)}
  .shell .seat-four-left .opponent-heading,.shell .seat-four-right .opponent-heading{top:auto;bottom:100%;width:max-content;max-width:105px;font-size:9px}
  .shell .seat-four-left .opponent-heading{left:0;right:auto;transform:none}
  .shell .seat-four-right .opponent-heading{left:auto;right:0;transform:none}
  .shell .table-center{top:27%;width:92px;min-height:0;grid-template-columns:repeat(2,36px);gap:0 10px}
  .shell .table-center>.pile-button .card{width:36px;height:auto}
  .shell .table-center .discard-area .card{width:36px;height:auto}
  .shell .table-center .pile-button{gap:2px}
  .shell .table-center .pile-label{margin-top:2px;font-size:7px;line-height:1}
  .shell .table-center .card .rank{font-size:19px}
  .shell .table-center .card .card-art{font-size:15px}
  .shell .drawn-area{position:absolute;grid-column:auto;right:-24px;top:2px}
  .shell .drawn-area .card{width:40px;height:auto}
  .shell .drawn-area:has(.your-turn-notice){display:none}
  .shell .turn-banner{bottom:calc(var(--player-seat-height,120px) - 8px);width:min(70%,300px);min-height:30px;padding:5px 8px;font-size:10px;line-height:1.25}
  .shell .player-heading{min-height:28px;margin-bottom:4px}
  .shell .hand{width:min(100%,220px);max-width:220px;min-height:0;gap:4px}
  .shell .hand .card{width:100%;height:auto}
  .shell.playing .seat-stage{height:clamp(335px,calc(100dvh - 300px),520px)}
  .shell.playing .table-center{top:27%;min-height:0}
  .shell .seat-stage[data-player-count="3"]>.turn-banner{bottom:calc(var(--player-seat-height,120px) + 12px)}
}
.table-name-block{height:34px;justify-content:flex-start}
.table-name-block .pill,#round-label,#table-scores{height:26px;min-height:26px;border:1px solid #aa91dd;border-radius:9px;background:#fffdf6;color:#68548b}
.table-name-block .pill{padding:0 8px;line-height:24px}
.table-id-label{font-size:10px;line-height:10px;translate:0 3px}
.table-title{align-items:flex-start}
#round-label{padding:0 8px}
#table-scores{align-self:start;width:26px;padding:4px}
#table-scores svg{width:16px;height:16px}
dialog .menu-leave-table{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:16px;padding:10px 16px;border:2px solid #f1a4b7;border-radius:16px;background:#fff0f3;color:#a52e50;font-weight:800;transition:background .15s,translate .15s,border-color .15s}
dialog .menu-leave-table span{display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:#ffd8e2;font-size:17px}
dialog .menu-leave-table:hover{border-color:#e87996;background:#ffe5eb}
dialog[data-variant="leave-confirmation"]{width:min(440px,calc(100% - 32px));padding:20px;border:2px solid #c8bbe8;border-radius:28px;background:linear-gradient(145deg,#fffdf6 0%,#fff9f5 100%);box-shadow:0 24px 70px #29234455}
dialog[data-variant="leave-confirmation"]::backdrop{background:#27203f99;backdrop-filter:blur(5px)}
dialog[data-variant="leave-confirmation"] .dialog-top{padding:0 0 14px;border-bottom:1px solid #eee5f2}
dialog[data-variant="leave-confirmation"] .dialog-top .eyebrow{color:#9c4a66}
dialog[data-variant="leave-confirmation"] .leave-confirmation-content{text-align:center;padding:18px 4px 2px}
dialog[data-variant="leave-confirmation"] .leave-confirmation-mark{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 12px;border:2px solid #e8a0b2;border-radius:18px;background:#ffe3e9;color:#a52e50;font-size:28px;font-weight:bold;transform:rotate(-7deg);box-shadow:0 4px 0 #f3c6d0}
dialog[data-variant="leave-confirmation"] h2{margin:8px 0;font-size:clamp(25px,7vw,32px);letter-spacing:-1.2px;line-height:1.1}
dialog[data-variant="leave-confirmation"] p{max-width:330px;margin:0 auto;padding:12px 14px;border:1px solid #f1d8dd;border-radius:15px;background:#fff3f4;color:#795766;font-size:13px;line-height:1.55}
dialog[data-variant="leave-confirmation"] .leave-confirmation-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
dialog[data-variant="leave-confirmation"] .leave-confirmation-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:10px 12px;border-radius:15px;font:inherit;font-weight:800;line-height:1.2;transition:filter .15s,translate .15s}
dialog[data-variant="leave-confirmation"] .stay-at-table{border:0;background:var(--purple);color:#fff;box-shadow:0 3px 0 #4830b6}
dialog[data-variant="leave-confirmation"] .confirm-leave-table{border:2px solid #e8a0b2;background:#fff0f3;color:#a52e50}
dialog[data-variant="leave-confirmation"] .confirm-leave-table span{font-size:17px}
dialog[data-variant="leave-confirmation"] .leave-confirmation-actions button:hover{filter:brightness(.97)}
dialog[data-variant="leave-confirmation"] .leave-confirmation-actions button:active{translate:0 2px}
@media(max-width:380px){
  dialog[data-variant="leave-confirmation"]{padding:16px;border-radius:24px}
  dialog[data-variant="leave-confirmation"] .leave-confirmation-content{padding-top:14px}
  dialog[data-variant="leave-confirmation"] .leave-confirmation-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  dialog .menu-leave-table,dialog[data-variant="leave-confirmation"] .leave-confirmation-actions button{transition:none}
}
#seat-stage .seat-upper-left .mini-hand .card,#seat-stage .seat-upper-right .mini-hand .card,
#seat-stage .seat-top .mini-hand .card,#seat-stage .seat-four-left .mini-hand .card,
#seat-stage .seat-four-right .mini-hand .card{width:var(--opponent-card-width)!important;height:auto!important;aspect-ratio:2 / 3;flex:0 0 auto}
.table-top{min-height:65px}
#round-label{top:0}
.table-top>.turn-timer{position:absolute;left:calc(50% + var(--table-center-offset,0px));top:29px;grid-column:auto;grid-row:auto;justify-self:auto;transform:translateX(-50%);z-index:1}
.all-in-overlay{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:24px;background:#27203fdb;backdrop-filter:blur(5px)}
.all-in-overlay[hidden]{display:none}
.all-in-card{display:grid;justify-items:center;gap:12px;width:min(440px,100%);padding:30px 24px;border:3px solid #f6d85b;border-radius:30px;background:linear-gradient(145deg,#fff8c9,#ffdaeb 58%,#e7dcff);box-shadow:0 0 0 8px #fff3,0 20px 70px #17102c99;text-align:center}
.all-in-title{color:#6333d6;font-size:clamp(48px,15vw,86px);font-weight:1000;letter-spacing:-.07em;line-height:1;text-shadow:3px 4px 0 #f7a8c9;animation:all-in-breathe var(--animation-duration-08,.8s) ease-in-out infinite alternate}
.all-in-card strong{color:#30244e;font-size:clamp(18px,5vw,25px);line-height:1.2}
.all-in-card small{padding:7px 12px;border:1px solid #d6c3ef;border-radius:999px;background:#fffdf6;color:#644392;font-size:13px;font-weight:bold}
@keyframes all-in-breathe{to{transform:scale(1.09);filter:drop-shadow(0 0 12px #f38bb6)}}
@media(prefers-reduced-motion:reduce){.all-in-title{animation:none}}
#profile{align-items:center;justify-content:center}
.bottom-inner>button:not(.cabo-button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.bottom-inner>button:not(.cabo-button)>span:first-child{display:grid;place-items:center;height:25px;line-height:1}
.bottom-inner>button:not(.cabo-button)>small{display:block;line-height:12px;margin:0}
.profile-menu-avatar{display:grid;place-items:center;width:25px;height:25px;border:1.5px solid #8e77ce;border-radius:50%;background:#eee7ff;color:#5630d8;font-size:16px;line-height:1}
.player-settings-form{display:grid;gap:8px;margin-top:18px}
.player-settings-form>label,.player-settings-form>h3{margin:0;color:#655375;font-size:12px;font-weight:bold}
.player-settings-form>input{width:100%;min-height:46px;padding:10px 12px;border:2px solid #d6c3ef;border-radius:13px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.player-settings-form>input:focus-visible{outline:3px solid #ee5791;outline-offset:2px}
.player-settings-form>h3{margin-top:8px}
.profile-icon-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.profile-icon-choice{display:grid;place-items:center;width:100%;min-height:52px;border:2px solid #d6c3ef;border-radius:16px;background:#fffdf6;color:#644392;font-size:27px}
.profile-icon-choice[aria-pressed="true"]{border-color:#6544ed;background:#eee7ff;box-shadow:0 3px 0 #c7b7f2}
.profile-error{min-height:1em;margin:0;color:#a52e50;font-size:12px}
.profile-save{width:100%;min-height:46px;border:0;border-radius:14px;padding:11px 16px;background:var(--purple);color:#fff;font-weight:bold}
@media(max-width:380px){
  .bottom-inner{gap:4px}
  .bottom-inner>button:not(.cabo-button){min-width:30px;font-size:8px}
  #profile{flex:0 0 30px;width:30px;padding:0}
  .profile-menu-avatar{width:22px;height:22px;font-size:14px}
}
@media(max-width:420px) and (orientation:portrait){
  .shell.playing .table-wrap{width:calc(100% + 24px);margin-inline:-12px;container-type:inline-size}
  .shell.playing .table-top .table-title{align-self:start}
  .shell.playing .seat-stage{height:calc(100cqw + 190px);--opponent-card-width:clamp(52.44px,15.295vw,58.995px)}
  .shell.playing .hand{width:min(100%,242px);max-width:242px;gap:4.4px}
  .shell.playing .seat-top{width:76%}
  .shell.playing .seat-four-left,.shell.playing .seat-four-right{top:calc(50% - var(--opponent-card-width) * 1.8 - 9px);width:calc(var(--opponent-card-width) * 1.55);transform:none}
  .shell.playing .seat-four-left{left:0;right:auto}
  .shell.playing .seat-four-right{right:0;left:auto}
  .shell.playing .seat-four-left .mini-hand,.shell.playing .seat-four-right .mini-hand{width:100%;gap:6px;padding-block:calc(var(--opponent-card-width) * .4)}
  .shell.playing .seat-four-left .mini-hand{transform:translateX(calc(var(--opponent-card-width) * -.65))}
  .shell.playing .seat-four-right .mini-hand{transform:translateX(calc(var(--opponent-card-width) * .65))}
  .shell.playing .seat-four-left .mini-hand .card,.shell.playing .seat-four-right .mini-hand .card{margin-block:calc(var(--opponent-card-width) * -.4)}
  .shell.playing .table-center{top:50%;transform:translate(-50%,-50%);width:127.5px;height:224px;min-height:0;grid-template-columns:repeat(2,57.75px);grid-template-rows:max-content max-content;align-content:start;gap:12px}
  .shell.playing .player-heading{width:242px;max-width:100%;margin-inline:auto}
  .shell.playing .table-center>.pile-button .card,
  .shell.playing .table-center .discard-area .card{width:57.75px}
  .shell.playing .drawn-area{top:104.125px;left:50%;right:auto;transform:translateX(-50%)}
  .shell.playing .drawn-area .card{width:57.75px}
  .shell.playing .table-center:has(.drawn-area .card) .drawn-area{position:relative;inset:auto;grid-column:1 / -1;justify-self:center;transform:none}
  .shell.playing .seat-four-left .cabo-overlay{translate:calc(var(--opponent-card-width) * .65) 0}
  .shell.playing .seat-four-right .cabo-overlay{translate:calc(var(--opponent-card-width) * -.65) 0}
}
@media(max-width:340px) and (orientation:portrait){
  .shell.playing .seat-stage{height:calc(100cqw + 214px)}
}
.shell.playing .table-wrap>.turn-banner{position:relative;inset:auto;transform:none;width:100%;margin:12px 0 0}
.card .corner{display:none}
dialog #menu-tables{display:block;margin-inline:auto}
dialog #next-round{display:block;margin-inline:auto}
#dialog-content:has(>.result-icon){display:grid;grid-template-columns:54px minmax(0,1fr);column-gap:12px}
#dialog-content:has(>.result-icon)>*{grid-column:1 / -1}
#dialog-content>.result-icon{grid-column:1;grid-row:1;display:grid;place-items:center;width:54px;height:54px;line-height:1;margin:0;align-self:center}
#dialog-content>.result-icon+h2{grid-column:2;grid-row:1;align-self:center;margin:0}
.shell #seat-stage .card .rank{font-size:clamp(28px,6vw,38px)}
.shell #seat-stage .card.lucky .rank,.shell #seat-stage .card.danger .rank{font-size:clamp(32px,7vw,44px)}
.shell #seat-stage .card .card-art{top:15px;right:8px;font-size:24px}
.shell #seat-stage .card.danger .card-art{font-size:23px}
.shell #seat-stage .card .points{bottom:6px;left:4px;right:4px;width:auto;padding:2px 1px;font-size:clamp(6px,1.3vw,9px);letter-spacing:0}
.card:not(.lucky):not(.danger) .card-art{opacity:1;filter:invert(1) brightness(.72) invert(1)}
.card .card-art .sketch-eyes{display:block;width:1.5em;height:.9em;margin-top:-.05em;overflow:visible}
.card .card-art .spy-eyes{width:1.75em;height:.93em;margin-right:-.1em}
.card .card-art .art-big{display:inline-block;position:relative;top:-.22em;left:2px;font-size:1.6em;line-height:.8;font-weight:700}
.card .card-art .art-danger{display:inline-block;position:relative;top:-.18em;font-size:1.35em;line-height:.85}
@media(prefers-reduced-motion:no-preference){
  #seat-stage[data-phase="peek"] #hand>.card.back{animation:initial-hand-breathe var(--animation-duration-18,1.8s) ease-in-out infinite}
}
@keyframes initial-hand-breathe{
  0%,100%{scale:1;filter:brightness(1)}
  50%{scale:1.09;filter:brightness(1.2)}
}
#hand.crowded>.card{width:var(--overlap-card-width);height:auto;aspect-ratio:2 / 3}
#deck .pile-label{display:flex;align-items:center;justify-content:center;gap:4px}
#seat-stage[data-phase="peek"] .table-center>#deck,
#seat-stage[data-phase="peek"] .table-center>.discard-area,
#seat-stage[data-phase="peek"] .table-center>#drawn-area{visibility:hidden;pointer-events:none}
.playing:has(#seat-stage[data-phase="peek"]) #turn-timer{visibility:hidden}
.initial-peek-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:196px;max-width:calc(100vw - 64px);padding:14px 12px;border:1px solid #eee7f5;border-radius:18px;background:#fffdf8;color:#292344;box-shadow:0 5px 16px #30205222;text-align:center;z-index:10;pointer-events:none}
.initial-peek-panel h2{margin:0 0 8px;font-size:17px;line-height:1.15;color:var(--purple)}
.initial-peek-panel p{margin:0;font-size:12px;line-height:1.4}
.initial-peek-panel .wait{margin-top:7px;color:#7d6a9c;font-size:11px}
.initial-peek-panel time{display:block;width:48px;height:48px;margin:10px auto 0;border-radius:50%;background:var(--green);font-size:23px;font-weight:700;line-height:48px;font-variant-numeric:tabular-nums}
.initial-peek-panel small{display:block;margin-top:5px;color:#7d6a9c;font-size:10px}
#deck-count{display:grid;place-items:center;flex:none;width:15px;height:15px;padding:0;margin:0;border:0;border-radius:50%;background:#7d6a9c;color:#fff;font-family:Arial,sans-serif;font-size:8px;font-weight:400;line-height:1;text-align:center;letter-spacing:0;font-variant-numeric:tabular-nums}
.disqualified-overlay{position:absolute;inset:0;z-index:40;display:grid;place-items:center;pointer-events:none}
.disqualified-overlay strong{max-width:100%;padding:8px 6px;border:2px solid #cc203c;border-radius:8px;background:#fff2f0ed;color:#c51c37;font-size:clamp(12px,3.8vw,20px);font-weight:900;line-height:1.2;text-align:center;overflow-wrap:anywhere;box-shadow:0 3px 12px #64132644}
.disqualified-overlay.inactive strong{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;overflow-wrap:normal;font-size:clamp(9px,2.85vw,15px);border-color:#a28b49;background:#fff6dced;color:#80621d;box-shadow:0 3px 12px #80621d22}
.disqualified-overlay.inactive time{font-variant-numeric:tabular-nums;font-size:.85em}
.seat-four-left .disqualified-overlay.inactive strong,
.seat-four-right .disqualified-overlay.inactive strong{position:absolute;left:50%;top:50%;translate:-50% -50%;max-width:none}
.seat-four-left .disqualified-overlay.inactive strong{max-width:none;rotate:90deg}
.seat-four-right .disqualified-overlay.inactive strong{max-width:none;rotate:270deg}
.exchange-warning{display:inline-block;flex:none;width:11px;height:16px;margin-inline:4px;vertical-align:middle;border:1px solid #886721;border-radius:2px;background:#ffe04b;box-shadow:0 1px 2px #30205233}
.exchange-warning.red{background:#e94758;border-color:#a82138}
.shell .seat-top .opponent-heading{position:relative}
.shell .player-heading>span:first-child{position:relative}
.shell .seat-top .opponent-heading>.avatar,
.shell .player-heading>span:first-child>.avatar{position:absolute;display:grid;place-items:center;right:calc(100% + 6px);top:50%;transform:translateY(-50%);margin:0;width:20px;height:20px}
.shell .seat-four-left .opponent-heading>.avatar,
.shell .seat-four-right .opponent-heading>.avatar,
.shell .seat-upper-left .opponent-heading>.avatar,
.shell .seat-upper-right .opponent-heading>.avatar{position:absolute;display:grid;place-items:center;bottom:calc(100% + 5px);top:auto;left:50%;transform:translateX(-50%);margin:0;width:20px;height:20px}
.shell .seat-upper-left .opponent-heading,.shell .seat-upper-right .opponent-heading{position:relative}
.shell{--player-badge-width:90px;--player-badge-height:26px}
.shell .opponent .opponent-heading,
.shell .player-heading>span:first-child{width:var(--player-badge-width);min-width:var(--player-badge-width);max-width:none;height:var(--player-badge-height);padding:0 8px;display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px;line-height:20px}
.shell .opponent .opponent-heading>.avatar,
.shell .player-heading>span:first-child>.avatar{height:var(--player-badge-height);width:var(--player-badge-height);aspect-ratio:1;font-size:18px;border-radius:50%}
.shell .seat-top .opponent-heading,
.shell .player-heading>span:first-child{padding-left:14px}
.shell .seat-top .opponent-heading>.avatar,
.shell .player-heading>span:first-child>.avatar{right:100%;transform:translate(33.333%,-50%);z-index:2}
.shell .seat-four-left .opponent-heading,
.shell .seat-four-right .opponent-heading,
.shell .seat-upper-left .opponent-heading,
.shell .seat-upper-right .opponent-heading{padding-top:0}
.shell .opponent.seat-four-left .opponent-heading,
.shell .opponent.seat-upper-left .opponent-heading{left:0;right:auto;transform:none;margin-left:0;margin-right:auto;justify-content:center;text-align:center}
.shell .opponent.seat-four-right .opponent-heading,
.shell .opponent.seat-upper-right .opponent-heading{left:auto;right:0;transform:none;margin-left:auto;margin-right:0;justify-content:center;text-align:center}
.shell .opponent.seat-four-left .opponent-heading{margin-left:-16px}
.shell .opponent.seat-four-right .opponent-heading{margin-right:-16px}
@media(max-width:760px) and (orientation:portrait) and (min-height:851px){
  .shell .opponent.seat-four-left .opponent-heading{margin-left:-10px}
  .shell .opponent.seat-four-right .opponent-heading{margin-right:-10px}
}
.shell .seat-four-left .opponent-heading>.avatar,
.shell .seat-four-right .opponent-heading>.avatar,
.shell .seat-upper-left .opponent-heading>.avatar,
.shell .seat-upper-right .opponent-heading>.avatar{bottom:calc(100% + 5px);transform:translate(-50%,33.333%);z-index:2}
.seat-four-left .cabo-overlay{rotate:90deg}
html{scrollbar-gutter:stable}
.shell.playing #seat-stage[data-player-count="2"]{--two-player-card-width:64px;--opponent-card-width:var(--two-player-card-width);min-height:540px}
.shell.playing #seat-stage[data-player-count="2"] .hand,
.shell.playing #seat-stage[data-player-count="2"] .seat-top .mini-hand{width:max-content;max-width:100%;gap:4.4px;grid-template-columns:repeat(4,var(--two-player-card-width))}
.shell.playing #seat-stage[data-player-count="2"] .seat-top{width:100%}
.shell.playing #seat-stage[data-player-count="2"] .hand>.card,
.shell.playing #seat-stage[data-player-count="2"] .seat-top .mini-hand>.card,
.shell.playing #seat-stage[data-player-count="2"] .table-center .card{width:var(--two-player-card-width);height:auto;aspect-ratio:2 / 3}
.shell.playing #seat-stage[data-player-count="2"] .table-center{top:50%;left:50%;transform:translate(-50%,-50%);width:calc(var(--two-player-card-width) * 2 + 16px);height:calc(var(--two-player-card-width) * 3 + 70px);min-height:0;padding:0;grid-template-columns:repeat(2,var(--two-player-card-width));grid-template-rows:max-content max-content;align-content:start;gap:16px}
.shell.playing #seat-stage[data-player-count="2"] .table-center .drawn-area{position:relative;inset:auto;transform:none;grid-column:1 / -1;grid-row:2;justify-self:center;height:auto}
@media(max-width:760px){
  .shell.playing #seat-stage[data-player-count="2"]{--two-player-card-width:57.2px}
}
.shell .table-center .pile-label{margin-top:10px}
.shell.playing .seat-top .mini-hand{display:flex;flex-flow:row nowrap}
.shell.playing .seat-top .mini-hand>.card{flex-shrink:0}
.shell.playing .seat-four-left .mini-hand,
.shell.playing .seat-four-right .mini-hand{flex-wrap:nowrap}
.shell.playing #seat-stage[data-player-count="2"] .hand.crowded{--overlap-card-width:var(--two-player-card-width);width:100%;max-width:calc(4.795 * var(--overlap-card-width));gap:0;grid-template-columns:repeat(var(--overlap-columns),minmax(0,1fr)) var(--overlap-card-width)}
.table-top #round-label,.table-top>.turn-timer{left:50%}
.seat-four-right .cabo-overlay{rotate:270deg}
dialog[open]:has(.score-row){display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:85dvh}
dialog:has(.score-row)>.dialog-top{flex:none;padding:16px 20px;border-bottom:1px solid #e2d7ee;background:#fff9ef}
dialog:has(.score-row)>#dialog-content{min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 20px 20px;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#b49bdd #f1eafa}
dialog:has(.score-row) .table-score-scroll{overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b49bdd #f1eafa}
dialog:has(.score-row) .table-score-history{table-layout:fixed;min-width:280px}
dialog:has(.score-row) .table-score-history th{overflow-wrap:anywhere}
dialog:has(.score-row) #dialog-content::-webkit-scrollbar,
dialog:has(.score-row) .table-score-scroll::-webkit-scrollbar{width:7px;height:7px}
dialog:has(.score-row) #dialog-content::-webkit-scrollbar-track,
dialog:has(.score-row) .table-score-scroll::-webkit-scrollbar-track{background:#f1eafa;border-radius:8px}
dialog:has(.score-row) #dialog-content::-webkit-scrollbar-thumb,
dialog:has(.score-row) .table-score-scroll::-webkit-scrollbar-thumb{background:#b49bdd;border:2px solid #f1eafa;border-radius:8px}
.card:has(>.card-face-art){padding:0;border:0;background:none}
.card:has(>.card-face-art)::before{display:none}
.card>.card-face-art{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:fill;border-radius:inherit;pointer-events:none}
.card:has(>.card-face-art)>.rank,.card:has(>.card-face-art)>.points{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0}
