@property --left{syntax:"<number>";inherits:true;initial-value:1}:root{--ink:#3d2416;--ink-soft:#7a5a44;--cream:#fff6e2;--cream-2:#f8e6c0;--cream-3:#ecd29f;--well:#fffdf6;--wood-hi:#d48a4e;--wood-lo:#9b5a2c;--wood-dark:#6e3d1c;--green-hi:#8fe35f;--green-lo:#3fae34;--green-shade:#2c8a26;--green-stroke:#1f6b1c;--blue-hi:#6fd0ff;--blue-lo:#2f8fe6;--blue-shade:#2172c4;--blue-stroke:#1a5a9e;--gold-hi:#ffe066;--gold-lo:#f5a512;--gold-shade:#d68300;--gold-stroke:#a35f00;--red-hi:#ff8a76;--red-lo:#e5473b;--red-shade:#c2352b;--red-stroke:#962219;--purple-hi:#c9a6ff;--purple-lo:#8a5cf0;--lip:0 5px 0 var(--ink);--drop:0 10px 18px #28140847;--font-game:"Lilita One", "Noto Sans Sinhala", "Noto Sans Tamil", "Arial Rounded MT Bold", system-ui, sans-serif;--font-ui:"Nunito", "Noto Sans Sinhala", "Noto Sans Tamil", system-ui, -apple-system, sans-serif;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);--edge:14px;--edge-left:calc(var(--edge) + var(--safe-left));--edge-right:calc(var(--edge) + var(--safe-right))}*{box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;margin:0;padding:0}html,body{overscroll-behavior:none;touch-action:manipulation;width:100%;height:100%;font-family:var(--font-ui);color:var(--ink);-webkit-font-smoothing:antialiased;background:#cfe0bd;font-weight:700;overflow:hidden}button,input{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:none}input{-webkit-user-select:text;user-select:text}#canvas-container{z-index:1;position:fixed;inset:0}#ui-container{z-index:10;pointer-events:none;position:fixed;inset:0}#ui-container>*{pointer-events:auto}#ui-container>.reaction-dock{pointer-events:none}.reaction-toggle{pointer-events:auto}.sr-only{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.ico{flex:none;width:1.3em;height:1.3em;display:block;overflow:visible}.glyph{flex:none;width:1em;height:1em;display:block}.outlined,.g-btn,.g-ribbon span,.logo-word,.center-banner,.player-name,.pile-sub{paint-order:stroke fill}.g-btn{--hi:var(--cream);--lo:var(--cream-3);--shade:#d9b77c;--stroke:var(--ink);border:3px solid var(--ink);background:linear-gradient(var(--hi), var(--lo));min-height:54px;box-shadow:inset 0 3px 0 #ffffff80, inset 0 -6px 0 var(--shade), var(--lip), var(--drop);color:#fff;font-family:var(--font-game);letter-spacing:.02em;white-space:nowrap;-webkit-text-stroke:5px var(--stroke);text-shadow:0 3px 0 var(--stroke);border-radius:18px;justify-content:center;align-items:center;gap:8px;padding:0 24px 4px;font-size:21px;line-height:1;transition:transform 80ms,box-shadow 80ms,filter .15s;display:inline-flex;position:relative}.g-btn:before{content:"";pointer-events:none;background:linear-gradient(#ffffff8c,#ffffff14);border-radius:12px 12px 8px 8px;height:36%;position:absolute;top:4px;left:7px;right:7px}.g-btn>*{position:relative}.g-btn .glyph{-webkit-text-stroke:0;width:22px;height:22px;filter:drop-shadow(0 2px 0 var(--stroke))}.g-btn .ico{width:28px;height:28px}@media (hover:hover){.g-btn:hover:not(:disabled){filter:brightness(1.07)saturate(1.05);transform:translateY(-1px)}}.g-btn:active:not(:disabled){box-shadow:inset 0 3px 0 #ffffff80, inset 0 -3px 0 var(--shade), 0 1px 0 var(--ink), 0 3px 6px #28140833;transform:translateY(4px)}.g-btn:focus-visible,.g-round:focus-visible,.mode-tile:focus-visible,.char-card:focus-visible{outline-offset:3px;outline:4px solid #fff}.g-btn-green{--hi:var(--green-hi);--lo:var(--green-lo);--shade:var(--green-shade);--stroke:var(--green-stroke)}.g-btn-blue{--hi:var(--blue-hi);--lo:var(--blue-lo);--shade:var(--blue-shade);--stroke:var(--blue-stroke)}.g-btn-gold{--hi:var(--gold-hi);--lo:var(--gold-lo);--shade:var(--gold-shade);--stroke:var(--gold-stroke)}.g-btn-red{--hi:var(--red-hi);--lo:var(--red-lo);--shade:var(--red-shade);--stroke:var(--red-stroke)}.g-btn-cream{color:var(--ink);-webkit-text-stroke:0;text-shadow:0 2px #fffc}.g-btn-cream .glyph{filter:none}.g-btn:disabled{--hi:#e6dccb;--lo:#c4b59d;--shade:#a8987f;--stroke:#8a7a62;cursor:default;color:#f4ede0}.g-btn-sm{border-radius:14px;min-height:42px;padding:0 16px 3px;font-size:17px}.g-btn-xl{-webkit-text-stroke:7px var(--stroke);min-width:300px;min-height:78px;text-shadow:0 4px 0 var(--stroke);box-shadow:inset 0 4px 0 #ffffff8c, inset 0 -8px 0 var(--shade), 0 7px 0 var(--ink), 0 16px 26px #28140852;border-width:4px;border-radius:24px;padding:0 40px 6px;font-size:36px}.g-btn-xl .glyph{width:34px;height:34px;filter:drop-shadow(0 3px 0 var(--stroke))}.g-btn-xl:active:not(:disabled){transform:translateY(6px)}.g-btn-wide{width:100%}.g-round{border:3px solid var(--ink);background:radial-gradient(circle at 50% 30%, #fffdf4, var(--cream-2) 70%);width:54px;height:54px;box-shadow:inset 0 -5px 0 #e2c48d, var(--lip), var(--drop);border-radius:50%;place-items:center;transition:transform 80ms,box-shadow 80ms;display:grid;position:relative}.g-round .ico{width:34px;height:34px}.g-round .glyph{width:26px;height:26px}@media (hover:hover){.g-round:hover{transform:translateY(-1px)scale(1.04)}}.g-round:active{box-shadow:inset 0 -3px 0 #e2c48d, 0 1px 0 var(--ink);transform:translateY(4px)}.g-round-wood{background:linear-gradient(var(--wood-hi), var(--wood-lo));box-shadow:inset 0 3px 0 #ffffff4d, inset 0 -5px 0 var(--wood-dark), var(--lip), var(--drop);color:#fff}.g-round-wood .glyph{filter:drop-shadow(0 2px 0 var(--wood-dark))}.g-round-text{font-family:var(--font-game);color:var(--ink);font-size:17px}.g-round.is-off{filter:saturate(.4)}.g-close{z-index:3;border:3px solid var(--ink);background:linear-gradient(var(--red-hi), var(--red-lo));width:48px;height:48px;box-shadow:inset 0 3px 0 #ffffff73, inset 0 -5px 0 var(--red-shade), 0 4px 0 var(--ink);color:#fff;border-radius:50%;place-items:center;transition:transform 80ms;display:grid;position:absolute;top:-16px;right:-16px}.g-close .glyph{stroke-width:3.4px;width:24px;height:24px;filter:drop-shadow(0 2px 0 var(--red-stroke))}@media (hover:hover){.g-close:hover{transform:rotate(8deg)scale(1.06)}}.g-close:active{transform:translateY(3px)}.g-panel{border:4px solid var(--ink);background:radial-gradient(circle at 12px 12px, #d6aa6e2e 2px, transparent 2.5px) 0 0 / 22px 22px, linear-gradient(var(--cream), var(--cream-2));width:min(440px,100%);box-shadow:inset 0 0 0 4px #ffffffb3, inset 0 -8px 0 #c4925040, 0 8px 0 var(--ink), 0 28px 60px #1e0f0573;border-radius:28px;padding:50px 22px 22px;position:relative}.g-panel-body{overscroll-behavior:contain;scrollbar-width:thin;max-height:calc(100dvh - 150px);margin:0 -8px;padding:4px 8px 10px;overflow-y:auto}.g-ribbon{--rib-hi:var(--red-hi);--rib-lo:var(--red-lo);--rib-stroke:var(--red-stroke);--rib-tail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 42'%3E%3Cpath d='M2 2h42v38H2l11-19z' fill='%23b32d24' stroke='%233d2416' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E");z-index:2;white-space:nowrap;position:absolute;top:-28px;left:50%;transform:translate(-50%)}.g-ribbon span{z-index:1;border:4px solid var(--ink);background:linear-gradient(var(--rib-hi), var(--rib-lo));box-shadow:inset 0 3px 0 #fff6, inset 0 -5px 0 #00000024, 0 4px 0 var(--ink);color:#fff;font-family:var(--font-game);letter-spacing:.02em;-webkit-text-stroke:6px var(--rib-stroke);text-shadow:0 3px 0 var(--rib-stroke);border-radius:12px;padding:9px 34px 12px;font-size:27px;line-height:1;display:block;position:relative}.g-ribbon:before,.g-ribbon:after{content:"";background:var(--rib-tail) center / 100% 100% no-repeat;width:46px;height:42px;position:absolute;top:14px}.g-ribbon:before{left:-30px}.g-ribbon:after{right:-30px;transform:scaleX(-1)}.g-ribbon-gold{--rib-hi:var(--gold-hi);--rib-lo:var(--gold-lo);--rib-stroke:var(--gold-stroke);--rib-tail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 42'%3E%3Cpath d='M2 2h42v38H2l11-19z' fill='%23d68300' stroke='%233d2416' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E")}.g-input{border:3px solid var(--ink);background:var(--well);width:100%;min-height:54px;font-family:var(--font-game);color:var(--ink);border-radius:16px;outline:none;padding:0 16px;font-size:22px;box-shadow:inset 0 4px #3d24161f}.g-input::placeholder{color:#c2ad8c;font-size:18px}.g-input:focus{border-color:var(--blue-lo);box-shadow:inset 0 4px #3d24161f,0 0 0 4px #6fd0ff80}.g-input:disabled{background:var(--cream-2);color:var(--ink-soft)}.code-input{text-align:center;letter-spacing:.12em;text-transform:uppercase;font-size:30px}.g-tabs{border:3px solid var(--ink);background:var(--cream-3);border-radius:18px;gap:6px;padding:6px;display:flex;box-shadow:inset 0 4px #3d241626}.g-tab{min-height:42px;font-family:var(--font-game);color:var(--ink-soft);border-radius:12px;flex:1;font-size:18px;transition:transform .1s}.g-tab.active{border:3px solid var(--ink);background:linear-gradient(var(--blue-hi), var(--blue-lo));box-shadow:inset 0 3px 0 #ffffff73, inset 0 -4px 0 var(--blue-shade), 0 3px 0 var(--ink);color:#fff;-webkit-text-stroke:4px var(--blue-stroke);paint-order:stroke fill;transform:translateY(-2px)}.g-stepper{align-items:center;gap:6px;display:flex}.g-stepper output{border:3px solid var(--ink);background:var(--well);min-width:120px;min-height:44px;font-family:var(--font-game);text-align:center;border-radius:14px;flex:1;place-items:center;padding:0 10px;font-size:18px;line-height:1.05;display:grid;box-shadow:inset 0 4px #3d24161f}.g-step{border:3px solid var(--ink);background:linear-gradient(var(--blue-hi), var(--blue-lo));width:42px;height:42px;box-shadow:inset 0 3px 0 #ffffff73, inset 0 -4px 0 var(--blue-shade), 0 3px 0 var(--ink);color:#fff;border-radius:12px;flex:none;place-items:center;display:grid}.g-step .glyph{stroke-width:3.2px;width:22px;height:22px;filter:drop-shadow(0 2px 0 var(--blue-stroke))}.g-step:active:not(:disabled){box-shadow:inset 0 -2px 0 var(--blue-shade), 0 0 0 var(--ink);transform:translateY(3px)}.g-step:disabled{box-shadow:inset 0 -4px 0 #a8987f, 0 3px 0 var(--ink);cursor:default;background:linear-gradient(#e6dccb,#c4b59d)}.g-step:disabled .glyph{filter:none;opacity:.7}.popup{z-index:60;padding:calc(46px + var(--safe-top)) 18px calc(18px + var(--safe-bottom));background:radial-gradient(#28180a73,#190e05b8);justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.popup.is-open{animation:.18s both fade-in}.popup.is-open>.g-panel{animation:.38s cubic-bezier(.18,1.5,.4,1) both pop-in}.popup-text{text-align:center;color:var(--ink-soft);margin-bottom:14px;font-size:16px}.popup-actions{justify-content:center;gap:12px;margin-top:18px;display:flex}.popup-actions .g-btn{flex:1;max-width:240px}@keyframes fade-in{0%{opacity:0}}@keyframes pop-in{0%{opacity:0;transform:scale(.5)translateY(30px)}70%{opacity:1}to{transform:none}}.title-screen{z-index:40;padding:calc(var(--edge) + var(--safe-top)) var(--edge-right) calc(22px + var(--safe-bottom)) var(--edge-left);background:radial-gradient(75% 70% at 50% 55%,#0000 45%,#28160880),linear-gradient(#ffecc81f,#3c1e0a2e);grid-template-rows:auto auto 1fr auto;grid-template-columns:minmax(0,1fr);justify-items:center;display:grid;position:fixed;inset:0;overflow:hidden auto}.title-top{justify-content:space-between;align-items:flex-start;gap:10px;width:100%;display:flex}.profile{align-items:center;display:flex}.profile-portrait{z-index:1;border:4px solid var(--ink);width:78px;height:78px;box-shadow:inset 0 0 0 4px var(--gold-hi), var(--lip), var(--drop);background:radial-gradient(circle at 50% 35%,#bfe8ff,#6fb8e8);border-radius:50%;flex:none;transition:transform .1s;position:relative}@media (hover:hover){.profile-portrait:hover{transform:scale(1.05)rotate(-3deg)}}.profile-face{border-radius:50%;place-items:center;display:grid;position:absolute;inset:4px;overflow:hidden}.profile-face img{object-fit:cover;width:100%;height:100%}.profile-random{color:#fff;filter:drop-shadow(0 2px 0 var(--blue-stroke))}.profile-random .glyph{width:36px;height:36px}.profile-edit{border:3px solid var(--ink);background:linear-gradient(var(--gold-hi), var(--gold-lo));color:#fff;border-radius:50%;place-items:center;width:30px;height:30px;display:grid;position:absolute;bottom:-4px;right:-6px}.profile-edit .glyph{stroke-width:3px;width:15px;height:15px;filter:drop-shadow(0 1px 0 var(--gold-stroke))}.profile-name{border:3px solid var(--ink);background:linear-gradient(var(--wood-hi), var(--wood-lo));min-width:190px;box-shadow:inset 0 3px 0 #ffffff40, inset 0 -4px 0 var(--wood-dark), 0 4px 0 var(--ink);cursor:text;border-left:none;border-radius:0 16px 16px 0;flex-direction:column;justify-content:center;margin-left:-18px;padding:6px 18px 8px 28px;display:flex}.profile-name-label{font-family:var(--font-game);letter-spacing:.12em;text-transform:uppercase;color:var(--gold-hi);font-size:12px}.profile-name input{color:#fff;width:170px;font-family:var(--font-game);-webkit-text-stroke:4px var(--wood-dark);paint-order:stroke fill;background:0 0;border:none;outline:none;font-size:22px}.profile-name:focus-within{box-shadow:inset 0 3px 0 #ffffff40, inset 0 -4px 0 var(--wood-dark), 0 4px 0 var(--ink), 0 0 0 4px #ffe066b3}.corner-btns{gap:10px;display:flex}.title-logo{text-align:center;margin-top:6px;animation:.7s cubic-bezier(.2,1.5,.4,1) both logo-drop;position:relative}.logo-word{font-family:var(--font-game);letter-spacing:.01em;color:#ffe27a;-webkit-text-stroke:12px var(--ink);text-shadow:0 8px 0 var(--ink), 0 18px 30px #1e0f0559;background:0 0;font-size:clamp(64px,11vw,112px);line-height:.95;transform:rotate(-3deg)}.logo-tag{border:3px solid var(--ink);background:linear-gradient(var(--green-hi), var(--green-lo));box-shadow:inset 0 2px 0 #ffffff73, 0 4px 0 var(--ink);font-family:var(--font-game);color:#fff;-webkit-text-stroke:4px var(--green-stroke);paint-order:stroke fill;border-radius:999px;margin-top:10px;padding:6px 22px 8px;font-size:17px;display:inline-block;transform:rotate(-2deg)}@keyframes logo-drop{0%{opacity:0;transform:translateY(-60px)scale(.6)}to{transform:none}}.title-middle{flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex}.mode-tiles{gap:18px;display:flex}.mode-tile{border:4px solid var(--ink);background:linear-gradient(var(--cream), var(--cream-2));width:196px;box-shadow:inset 0 -6px 0 #c492504d, var(--lip), var(--drop);text-align:center;opacity:.88;border-radius:24px;flex-direction:column;align-items:center;padding:0 12px 14px;transition:transform .16s cubic-bezier(.2,1.5,.4,1),opacity .16s,box-shadow .16s;display:flex;position:relative;overflow:visible;transform:scale(.95)}@media (hover:hover){.mode-tile:hover{opacity:1}}.mode-tile.active{opacity:1;box-shadow:inset 0 -6px 0 #c492504d, 0 0 0 5px var(--gold-hi), 0 6px 0 5px var(--ink), 0 18px 30px #28140859;transform:translateY(-4px)scale(1)}.mode-art{border-bottom:4px solid var(--ink);background:radial-gradient(circle at 50% 120%,#ffffff80,#0000 60%),linear-gradient(#8fd6ff,#4fa8e8);border-radius:20px 20px 0 0;justify-content:center;align-items:center;width:calc(100% + 24px);height:92px;margin:0 -12px 10px;display:flex;position:relative}.mode-tile[data-mode=spades] .mode-art{background:radial-gradient(circle at 50% 120%,#ffffff80,#0000 60%),linear-gradient(#b8a1ff,#7c5ce6)}.mode-art .ico{filter:drop-shadow(0 4px #3d241659);width:60px;height:60px}.mode-art .mode-ico-a{transform:rotate(-10deg)translate(8px)}.mode-art .mode-ico-b{width:48px;height:48px;transform:rotate(10deg)translate(-8px,10px)}.mode-tile.active .mode-art .ico{animation:2.4s ease-in-out infinite bob}.mode-tile strong{font-family:var(--font-game);color:var(--ink);font-size:26px;font-weight:400;line-height:1}.mode-tile small{color:var(--ink-soft);margin-top:4px;font-size:13px;font-weight:800}.mode-check{border:3px solid var(--ink);background:linear-gradient(var(--green-hi), var(--green-lo));color:#fff;width:38px;height:38px;box-shadow:0 3px 0 var(--ink);border-radius:50%;place-items:center;transition:transform .2s cubic-bezier(.2,1.6,.4,1);display:grid;position:absolute;top:-14px;right:-14px;transform:scale(0)}.mode-check .glyph{stroke-width:3.6px;width:20px;height:20px}.mode-tile.active .mode-check{transform:scale(1)}@keyframes bob{50%{translate:0 -5px}}.rules-chip{color:#fff;font-family:var(--font-game);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#3d24169e;border:3px solid #3d2416d9;border-radius:999px;align-items:center;gap:4px;padding:5px 6px 5px 12px;font-size:18px;display:inline-flex;box-shadow:0 3px #3d241699}.rules-chip>span{align-items:center;gap:5px;padding-right:10px;display:inline-flex}.rules-chip .ico,.rules-chip .glyph{width:22px;height:22px}.rules-chip-edit{background:linear-gradient(var(--gold-hi), var(--gold-lo));border:2px solid var(--ink);border-radius:50%;place-items:center;width:30px;height:30px;padding:0!important;display:grid!important}.rules-chip-edit .glyph{stroke-width:3px;width:15px;height:15px}.title-actions{flex-direction:column;align-items:center;gap:10px;display:flex}.title-actions #btn-solo-play{animation:2.2s ease-in-out infinite breathe}@media (hover:hover){.title-actions #btn-solo-play:hover,.title-actions #btn-solo-play:active{animation:none}}@keyframes breathe{50%{transform:scale(1.04)}}.title-hint{color:#fff;text-shadow:0 2px #3d2416cc,0 0 8px #3d241680;margin-top:-2px;font-size:14px;font-weight:800}.title-row{gap:14px;margin-top:6px;display:flex}.title-row .g-btn{min-width:200px;font-size:19px}.char-popup .g-panel{width:min(600px,100%)}.char-cards{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:14px;min-height:160px;margin-top:18px;display:grid}.char-card{flex-direction:column;align-items:center;gap:6px;transition:transform .14s cubic-bezier(.2,1.5,.4,1);display:flex;position:relative}.char-frame{aspect-ratio:1;border:4px solid var(--ink);width:100%;box-shadow:0 4px 0 var(--ink);background:radial-gradient(circle at 50% 110%,#ffffff8c,#0000 60%),linear-gradient(#bfe8ff,#7cc3ef);border-radius:20px;place-items:center;display:grid;overflow:hidden}.char-frame img{object-fit:cover;width:100%;height:100%}.char-ph{aspect-ratio:1;background:#ffffff73;border-radius:50%;width:60%}.char-name{font-family:var(--font-game);text-align:center;font-size:15px;line-height:1.1}@media (hover:hover){.char-card:hover{transform:translateY(-3px)}}.char-card.active{transform:translateY(-4px)scale(1.04)}.char-card.active .char-frame{background:radial-gradient(circle at 50% 110%, #fff9, transparent 60%), linear-gradient(var(--gold-hi), var(--gold-lo));box-shadow:0 0 0 4px #fff, 0 4px 0 4px var(--ink)}.char-card.active:after{content:"✓";border:3px solid var(--ink);background:linear-gradient(var(--green-hi), var(--green-lo));color:#fff;width:32px;height:32px;font-family:var(--font-game);border-radius:50%;place-items:center;font-size:18px;display:grid;position:absolute;top:-10px;right:-8px}.char-cards.is-surprise{grid-template-columns:1fr;place-items:center;display:grid}.char-surprise{text-align:center;color:var(--ink-soft);flex-direction:column;align-items:center;gap:10px;display:flex}.char-surprise-mark{border:4px solid var(--ink);background:linear-gradient(var(--purple-hi), var(--purple-lo));width:110px;height:110px;box-shadow:0 5px 0 var(--ink);color:#fff;font-family:var(--font-game);-webkit-text-stroke:7px #5a36b8;paint-order:stroke fill;border-radius:24px;place-items:center;font-size:64px;animation:1.8s ease-in-out infinite bob;display:grid}.settings-rows{flex-direction:column;gap:10px;display:flex}.settings-row{background:#ffffff80;border:3px solid #3d24162e;border-radius:16px;justify-content:space-between;align-items:center;gap:12px;padding:8px 8px 8px 14px;display:flex}.settings-label{font-family:var(--font-game);white-space:nowrap;font-size:18px}.settings-row .g-stepper,.settings-row .g-input{width:230px}.settings-row .g-input{min-height:44px;font-size:18px}.settings-row.settings-toggle{flex-direction:row;align-items:center}.settings-row.settings-toggle[hidden]{display:none}.settings-toggle input{width:26px;height:26px;accent-color:var(--green-lo);margin-right:8px}.g-stepper.is-locked output{background:var(--cream-2);color:var(--ink-soft)}.settings-deal{text-align:center;font-family:var(--font-game);color:var(--blue-shade);margin-top:14px;font-size:17px}.settings-note{text-align:center;color:var(--ink-soft);margin-top:4px;font-size:13px}.waiting-popup .g-panel{width:min(520px,100%)}.room-code-plaque{border:4px solid var(--ink);background:linear-gradient(var(--wood-hi), var(--wood-lo));box-shadow:inset 0 3px 0 #ffffff40, inset 0 -6px 0 var(--wood-dark), 0 4px 0 var(--ink);border-radius:20px;flex-direction:column;align-items:center;gap:6px;padding:12px 16px 16px;display:flex}.plaque-label{font-family:var(--font-game);letter-spacing:.14em;text-transform:uppercase;color:var(--gold-hi);font-size:13px}.waiting-code{font-family:var(--font-game);letter-spacing:.08em;color:#ffe27a;-webkit-text-stroke:8px var(--ink);paint-order:stroke fill;text-shadow:0 5px 0 var(--ink);-webkit-user-select:text;user-select:text;font-size:48px;font-weight:400;line-height:1}.waiting-summary{flex-wrap:wrap;justify-content:center;gap:6px;margin:14px 0 12px;display:flex}.waiting-summary span{background:var(--cream-3);font-family:var(--font-game);border-radius:999px;align-items:center;gap:5px;padding:4px 12px;font-size:15px;display:inline-flex}.waiting-summary .ico,.waiting-summary .glyph{width:18px;height:18px}.waiting-list{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;list-style:none;display:grid}.waiting-list li{border:3px solid var(--ink);box-shadow:0 3px 0 var(--ink);background:#fff;border-radius:999px;align-items:center;gap:8px;padding:6px 10px 6px 6px;animation:.3s cubic-bezier(.18,1.5,.4,1) both pop-in;display:flex}.waiting-list li.is-you{background:linear-gradient(#fff8d6,#ffe58a)}.waiting-list li.is-bot{box-shadow:none;color:var(--ink-soft);background:#ffffff73;border-style:dashed}.waiting-list .avatar-icon{background:var(--cream-2);border-radius:50%;place-items:center;width:34px;height:34px;font-size:20px;display:grid;overflow:hidden}.w-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--font-game);flex:1;font-size:16px;overflow:hidden}.w-edit{border:2px solid var(--ink);width:28px;height:28px;color:var(--ink);cursor:pointer;background:#fff;border-radius:50%;flex:none;place-items:center;padding:0;display:grid}.w-edit .glyph{width:14px;height:14px}.char-name-field{font-family:var(--font-game);margin-bottom:14px;font-size:15px;display:block}.char-name-field[hidden]{display:none}.char-name-field .g-input{margin-top:4px}.w-tag{background:var(--blue-lo);color:#fff;text-transform:uppercase;border-radius:999px;padding:2px 8px;font-size:11px;font-style:normal;font-weight:900}.w-tag.host{background:var(--gold-lo)}.waiting-hint{text-align:center;color:var(--ink-soft);margin-top:12px;font-size:13px}.pause-menu{flex-direction:column;gap:14px;padding:4px 6px;display:flex}.pause-row{gap:12px;display:flex}.pause-row .g-btn{flex:1}.music-style{gap:6px;margin-top:8px;display:grid}.music-style-buttons{flex-wrap:wrap;gap:6px;display:flex}.music-style .js-music-style.is-on{box-shadow:0 0 0 2px var(--gold-hi)}.music-style-note{color:var(--ink-soft)}.audio-sliders{flex-direction:column;gap:8px;display:flex}.audio-slider{font-family:var(--font-ui);color:var(--ink);align-items:center;gap:12px;font-weight:800;display:flex}.audio-slider>span{flex:0 0 5.5em}.audio-slider input{accent-color:var(--green-lo);flex:1}.together-toggle{font-family:var(--font-ui);color:var(--ink);flex-wrap:wrap;align-items:center;gap:4px 10px;font-weight:800;display:flex}.together-toggle input{accent-color:var(--green-lo)}.together-toggle small{opacity:.8;flex-basis:100%;font-weight:600}.bid-buttons-grid{grid-template-columns:repeat(7,1fr);gap:8px;display:grid}.bid-btn{aspect-ratio:1;border:3px solid var(--ink);background:radial-gradient(circle at 50% 30%, #fff, var(--cream-2) 70%);box-shadow:inset 0 -4px 0 #e2c48d, 0 3px 0 var(--ink);font-family:var(--font-game);border-radius:50%;font-size:18px;transition:transform 80ms}@media (hover:hover){.bid-btn:hover{background:radial-gradient(circle at 50% 30%, #fff8d6, var(--gold-hi) 75%);transform:translateY(-2px)scale(1.06)}}.bid-btn:active{transform:translateY(3px)}.bid-btn.nil-btn{aspect-ratio:auto;background:linear-gradient(var(--purple-hi), var(--purple-lo));color:#fff;-webkit-text-stroke:4px #5a36b8;paint-order:stroke fill;border-radius:999px;grid-column:span 2}.timer-bar-container{border:3px solid var(--ink);background:var(--cream-3);border-radius:999px;height:16px;margin-top:18px;overflow:hidden}.timer-bar-fill{background:linear-gradient(var(--green-hi), var(--green-lo));width:100%;height:100%}.in-menu .hud-corner,.in-menu #seat-huds,.in-menu .reaction-dock,.in-menu .scoreboard-panel,.in-menu .leaderboard,.in-menu .pile-status-hud,.in-menu .shedding-action-bar{visibility:hidden}.hud-corner{z-index:20;align-items:center;gap:10px;display:flex;position:fixed}.hud-top-left{top:calc(var(--edge) + var(--safe-top));left:var(--edge-left)}.hud-top-right{top:calc(var(--edge) + var(--safe-top));right:var(--edge-right)}.room-chip{border:3px solid var(--ink);background:linear-gradient(var(--wood-hi), var(--wood-lo));height:46px;box-shadow:inset 0 3px 0 #ffffff40, inset 0 -4px 0 var(--wood-dark), 0 4px 0 var(--ink);color:#fff;border-radius:14px;align-items:center;gap:8px;padding:0 6px 2px 14px;display:flex}.room-chip-label{font-family:var(--font-game);letter-spacing:.12em;text-transform:uppercase;color:var(--gold-hi);font-size:11px}.room-chip-code{font-family:var(--font-game);letter-spacing:.06em;-webkit-text-stroke:4px var(--wood-dark);paint-order:stroke fill;font-size:20px}#btn-copy-link{border:2px solid var(--ink);background:linear-gradient(var(--gold-hi), var(--gold-lo));color:#fff;border-radius:10px;place-items:center;width:32px;height:32px;display:grid}#btn-copy-link .glyph{width:18px;height:18px;filter:drop-shadow(0 1px 0 var(--gold-stroke))}.lb-toggle{display:none}.mode-shedding .lb-toggle{display:grid}.lb-toggle[data-rank]:not([data-rank=""]):after{content:attr(data-rank);border:2px solid var(--ink);background:linear-gradient(var(--red-hi), var(--red-lo));color:#fff;font-family:var(--font-game);white-space:nowrap;border-radius:999px;padding:1px 7px 2px;font-size:13px;position:absolute;bottom:-10px;left:50%;transform:translate(-50%)}.lb-open .lb-toggle{background:radial-gradient(circle at 50% 30%, #fff8d6, var(--gold-hi) 75%)}.scoreboard-panel{top:calc(var(--edge) + var(--safe-top));right:var(--edge-right);z-index:15;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;display:grid;position:fixed}.mode-shedding .scoreboard-panel{display:none}.team-plate{border:3px solid var(--ink);min-width:108px;box-shadow:inset 0 3px 0 #fff6, inset 0 -5px 0 #00000026, 0 4px 0 var(--ink);color:#fff;border-radius:16px;flex-direction:column;align-items:center;padding:6px 12px 8px;display:flex}.team-yours{background:linear-gradient(var(--blue-hi), var(--blue-lo));--stroke:var(--blue-stroke)}.team-theirs{background:linear-gradient(var(--red-hi), var(--red-lo));--stroke:var(--red-stroke)}.team-label{font-family:var(--font-game);letter-spacing:.08em;font-size:11px}.team-points{font-family:var(--font-game);-webkit-text-stroke:6px var(--stroke);paint-order:stroke fill;font-size:32px;line-height:1}.team-bags{opacity:.9;font-size:11px;font-weight:900}.team-vs{font-family:var(--font-game);color:#ffe27a;-webkit-text-stroke:5px var(--ink);paint-order:stroke fill;font-size:22px}.score-meta{color:#fff;background:#3d241699;border-radius:999px;grid-column:1/-1;justify-content:center;gap:10px;padding:4px 10px;font-size:11px;font-weight:800;display:flex}.score-meta strong{font-family:var(--font-game);color:var(--gold-hi);font-weight:400}.leaderboard{top:calc(98px + var(--safe-top));right:var(--edge-right);z-index:18;width:272px;padding:38px 12px 12px;display:none;position:fixed}.mode-shedding.lb-open .leaderboard{animation:.32s cubic-bezier(.18,1.5,.4,1) both pop-in;display:block}.leaderboard .g-ribbon span{padding:7px 24px 9px;font-size:21px}.leaderboard .g-close{width:38px;height:38px;top:-12px;right:-12px}.leaderboard .g-close .glyph{width:18px;height:18px}.lb-hand{text-align:center;font-family:var(--font-game);color:var(--ink-soft);margin:-2px 0 8px;font-size:14px}.lb-rows{flex-direction:column;gap:6px;list-style:none;display:flex}.lb-rows li{background:#fff9;border:3px solid #3d241633;border-radius:14px;align-items:center;gap:8px;padding:5px 6px 5px 5px;display:flex}.lb-rows li.is-you{border-color:var(--ink);background:linear-gradient(#fff8d6,#ffe58a)}.lb-rows li.is-turn{box-shadow:0 0 0 3px var(--green-hi)}.lb-rank{border:2.5px solid var(--ink);background:var(--cream-3);width:28px;height:28px;font-family:var(--font-game);border-radius:50%;flex:none;place-items:center;font-size:15px;display:grid}.lb-rank.rank-1{background:linear-gradient(var(--gold-hi), var(--gold-lo));color:#fff;-webkit-text-stroke:3px var(--gold-stroke);paint-order:stroke fill}.lb-rank.rank-2{background:linear-gradient(#f1f3f5,#adb5bd)}.lb-rank.rank-3{background:linear-gradient(#f3c69b,#c9824a)}.lb-avatar{background:var(--cream-2);border-radius:50%;flex:none;place-items:center;width:32px;height:32px;font-size:18px;display:grid}.lb-who{flex-direction:column;flex:1;min-width:0;line-height:1.1;display:flex}.lb-name{text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-game);font-size:15px;overflow:hidden}.lb-tags{gap:4px;font-size:11px;font-weight:900;display:flex}.lb-role{background:var(--cream-3);border-radius:999px;padding:0 6px}.lb-role.role-raja{background:var(--gold-hi)}.lb-role.role-higanna{background:#d8cfc0}.lb-left,.lb-out{font-family:var(--font-game);color:var(--ink-soft);align-items:center;gap:3px;font-size:14px;display:inline-flex}.lb-out{color:var(--green-shade)}.lb-points{border:2.5px solid var(--ink);background:linear-gradient(var(--gold-hi), var(--gold-lo));color:#fff;min-width:36px;font-family:var(--font-game);text-align:center;-webkit-text-stroke:3.5px var(--gold-stroke);paint-order:stroke fill;border-radius:10px;padding:3px 8px;font-size:17px}.lb-note{text-align:center;color:var(--ink-soft);margin-top:8px;font-size:11px}.card-glyph{background:repeating-linear-gradient(45deg, var(--blue-lo) 0 2px, var(--blue-hi) 2px 4px);border:2px solid;border-radius:3px;flex:none;width:11px;height:15px;display:inline-block}.player-hud{z-index:12;pointer-events:none;flex-direction:column;align-items:center;transition:opacity .25s,transform .25s cubic-bezier(.2,1.4,.4,1),filter .25s;display:flex;position:fixed;transform:translate(-50%,-50%)}.avatar-ring{border:4px solid var(--ink);background:radial-gradient(circle at 50% 35%, #fffdf4, var(--cream-2) 75%);width:64px;height:64px;box-shadow:inset 0 -4px 0 #c4925059, 0 4px 0 var(--ink), 0 8px 14px #28140840;border-radius:50%;place-items:center;display:grid;position:relative}.avatar-icon{border-radius:50%;place-items:center;width:100%;height:100%;font-size:32px;line-height:1;display:grid;overflow:hidden}.avatar-portrait{object-fit:cover;width:100%;height:100%;display:block}.trick-pill{z-index:4;border:2.5px solid var(--ink);color:var(--ink);font-family:var(--font-game);box-shadow:0 2px 0 var(--ink);background:#fff;border-radius:999px;align-items:center;gap:4px;padding:2px 8px 3px 6px;font-size:15px;line-height:1;display:inline-flex;position:absolute;top:14px;right:-18px}.player-info{z-index:1;margin-top:-8px;position:relative}.player-name{text-overflow:ellipsis;white-space:nowrap;border:3px solid var(--ink);background:linear-gradient(var(--wood-hi), var(--wood-lo));max-width:128px;box-shadow:inset 0 2px 0 #ffffff40, 0 3px 0 var(--ink);color:#fff;font-family:var(--font-game);-webkit-text-stroke:3.5px var(--wood-dark);border-radius:10px;padding:3px 12px 5px;font-size:15px;line-height:1.1;overflow:hidden}.role-badge{z-index:3;border:2.5px solid var(--ink);background:linear-gradient(#fff, var(--cream-3));box-shadow:0 2px 0 var(--ink);font-family:var(--font-game);white-space:nowrap;border-radius:999px;align-items:center;gap:3px;margin-bottom:-10px;padding:2px 9px 3px 5px;font-size:12px;line-height:1;display:none;position:relative}.role-badge .role-ico{width:20px;height:20px;margin:-4px 0}.role-badge.role-raja,.role-badge.role-yuwaraja{background:linear-gradient(var(--gold-hi), var(--gold-lo));color:#fff;-webkit-text-stroke:3px var(--gold-stroke);paint-order:stroke fill}.role-badge.role-mantri,.role-badge.role-amathi{background:linear-gradient(var(--blue-hi), var(--blue-lo));color:#fff;-webkit-text-stroke:3px var(--blue-stroke);paint-order:stroke fill}.role-badge.role-higanna{background:linear-gradient(#e6dccb,#b9ad9b)}.player-hud.active-turn .avatar-ring{border-color:var(--ink);box-shadow:0 0 0 4px var(--gold-hi), 0 4px 0 4px var(--ink), 0 0 28px 8px #ffe066bf}.player-hud.active-turn .avatar-ring:before{content:"";z-index:-1;background:repeating-conic-gradient(#ffec8cd9 0 12deg, transparent 12deg 30deg);border-radius:50%;animation:6s linear infinite spin;position:absolute;inset:-14px;-webkit-mask:radial-gradient(circle,#0000 52%,#000 54% 70%,#0000 72%);mask:radial-gradient(circle,#0000 52%,#000 54% 70%,#0000 72%)}.seat-hud{transform-origin:50% 100%;transform:translate(-50%,-78%)}.seat-hud.active-turn{transform:translate(-50%,-78%)scale(1.1)}.player-hud.active-turn:after{content:attr(data-turn-label);border:2.5px solid var(--ink);background:linear-gradient(var(--green-hi), var(--green-lo));box-shadow:0 2px 0 var(--ink);color:#fff;font-family:var(--font-game);-webkit-text-stroke:3px var(--green-stroke);paint-order:stroke fill;white-space:nowrap;border-radius:999px;margin-top:4px;padding:2px 10px 4px;font-size:12px;animation:1s ease-in-out infinite bob}#seat-huds.has-turn .player-hud:not(.active-turn):not(.is-passed){opacity:.85}.player-hud.is-passed{filter:grayscale(.85);opacity:.7}.player-hud.is-passed .avatar-ring:after{content:"PASS";z-index:3;border:2.5px solid var(--red-stroke);color:var(--red-lo);font-family:var(--font-game);background:#fff;border-radius:6px;padding:1px 6px 3px;font-size:13px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-14deg)}.player-hud.took-pile .avatar-ring{animation:.9s took}@keyframes took{0%,to{transform:none}30%{box-shadow:0 0 0 6px var(--gold-hi), 0 0 40px 16px #ffe066e6;transform:scale(1.3)rotate(-6deg)}60%{transform:scale(.95)rotate(3deg)}}@keyframes spin{to{rotate:1turn}}.hud-south{left:calc(var(--edge-left) + 6px);bottom:calc(var(--edge) + var(--safe-bottom));transform-origin:0 100%;transform:none;top:auto!important}.hud-south .avatar-ring{width:84px;height:84px}.hud-south .avatar-icon{font-size:42px}.hud-south .player-name{max-width:150px;font-size:17px}.hud-south.active-turn{transform:scale(1.05)}.speech-bubble{z-index:5;border:3px solid var(--ink);min-width:46px;box-shadow:0 3px 0 var(--ink);font-family:var(--font-game);text-align:center;white-space:nowrap;opacity:0;transform-origin:50% 120%;background:#fff;border-radius:16px;padding:6px 12px 8px;font-size:17px;transition:opacity .15s,transform .25s cubic-bezier(.2,1.6,.4,1);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%)scale(.4)}.speech-bubble:after{content:"";border-right:3px solid var(--ink);border-bottom:3px solid var(--ink);background:#fff;width:14px;height:14px;margin-top:-6px;position:absolute;top:100%;left:50%;transform:translate(-50%)rotate(45deg)}.speech-bubble.reaction{background:#fde9a6;border-radius:999px;align-items:center;gap:8px;padding:5px 14px 7px 8px;display:flex}.speech-bubble.reaction:after{background:#fde9a6}.speech-bubble .bubble-emoji{font-size:22px;line-height:1}.speech-bubble.visible{opacity:1;transform:translate(-50%)scale(1)}.hud-south .speech-bubble{left:42px}.pile-status-hud{top:calc(var(--edge) + 66px + var(--safe-top));left:var(--edge-left);z-index:15;border:3px solid var(--ink);background:linear-gradient(var(--wood-hi), var(--wood-lo));min-width:150px;box-shadow:inset 0 3px 0 #ffffff40, inset 0 -5px 0 var(--wood-dark), 0 4px 0 var(--ink), var(--drop);color:#fff;border-radius:16px;flex-direction:column;align-items:flex-start;padding:6px 16px 9px;position:fixed}.pile-badge{font-family:var(--font-game);letter-spacing:.1em;text-transform:uppercase;color:var(--gold-hi);font-size:12px}.pile-sub{font-family:var(--font-game);-webkit-text-stroke:5px var(--wood-dark);font-size:24px;line-height:1.05}.pile-status-hud.is-free{background:linear-gradient(var(--green-hi), var(--green-lo));box-shadow:inset 0 3px 0 #ffffff59, inset 0 -5px 0 var(--green-shade), 0 4px 0 var(--ink), var(--drop)}.pile-status-hud.is-free .pile-badge{color:#fff;opacity:.9}.pile-status-hud.is-free .pile-sub{-webkit-text-stroke-color:var(--green-stroke)}.pile-status-hud.is-tribute{background:linear-gradient(var(--gold-hi), var(--gold-lo));box-shadow:inset 0 3px 0 #ffffff59, inset 0 -5px 0 var(--gold-shade), 0 4px 0 var(--ink), var(--drop)}.pile-status-hud.is-tribute .pile-badge{color:#fff}.pile-status-hud.is-tribute .pile-sub{-webkit-text-stroke-color:var(--gold-stroke)}.pile-status-hud.is-revolution{background:linear-gradient(var(--purple-hi), var(--purple-lo));box-shadow:inset 0 3px 0 #ffffff59, inset 0 -5px 0 #5a36b8, 0 4px 0 var(--ink), 0 0 24px 4px #c9a6ffcc}.pile-status-hud.is-revolution .pile-badge{color:#fff}.pile-status-hud.is-revolution .pile-sub{-webkit-text-stroke-color:#4a2a9e}.center-banner{--rib-tail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 42'%3E%3Cpath d='M2 2h42v38H2l11-19z' fill='%23b32d24' stroke='%233d2416' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E");top:max(calc(var(--felt-top,36%) - 16px), 90px);z-index:30;border:4px solid var(--ink);background:linear-gradient(var(--red-hi), var(--red-lo));max-width:min(680px,100vw - 110px);box-shadow:inset 0 3px 0 #fff6, inset 0 -6px 0 var(--red-shade), 0 5px 0 var(--ink), 0 16px 30px #1e0f0559;color:#fff;font-family:var(--font-game);text-align:center;-webkit-text-stroke:6px var(--red-stroke);text-shadow:0 3px 0 var(--red-stroke);pointer-events:none;border-radius:14px;padding:10px 30px 13px;font-size:24px;line-height:1.15;position:fixed;left:50%;transform:translate(-50%,-100%)}.center-banner:before,.center-banner:after{content:"";z-index:-1;background:var(--rib-tail) center / 100% 100% no-repeat;width:46px;height:42px;position:absolute;top:16px}.center-banner:before{left:-32px}.center-banner:after{right:-32px;transform:scaleX(-1)}.center-banner.pop{animation:.45s cubic-bezier(.18,1.6,.4,1) both banner-pop}.center-banner.is-big{box-shadow:none;color:#ffe27a;white-space:nowrap;-webkit-text-stroke:12px var(--ink);text-shadow:0 7px 0 var(--ink), 0 16px 30px #1e0f0566;background:0 0;border:none;padding:0;font-size:clamp(44px,8vw,76px);line-height:1}.center-banner.is-big:before,.center-banner.is-big:after{display:none}@keyframes banner-pop{0%{opacity:0;transform:translate(-50%,-100%)scale(.2)rotate(-8deg)}60%{opacity:1}to{transform:translate(-50%,-100%)scale(1)rotate(-2deg)}}.shedding-action-bar{left:50%;bottom:calc(18px + var(--safe-bottom));z-index:25;align-items:center;gap:12px;position:fixed;transform:translate(-50%)}.shedding-action-bar.my-turn{animation:.4s cubic-bezier(.18,1.5,.4,1) both bar-in}@keyframes bar-in{0%{opacity:0;transform:translate(-50%,60px)}}.pass-btn{min-width:112px}.play-btn{min-width:230px;min-height:62px;font-size:24px}.play-btn.valid-play{animation:1.2s ease-in-out infinite ready}@keyframes ready{50%{filter:brightness(1.12);transform:translateY(-2px)}}.turn-clock{width:60px;height:60px;display:none;position:relative}.shedding-action-bar.timed .turn-clock{display:block}.turn-meter{border:3px solid var(--ink);background:var(--cream);box-shadow:0 4px 0 var(--ink);border-radius:50%;position:absolute;inset:0;overflow:hidden}.turn-meter-fill{background:conic-gradient(var(--green-lo) calc(var(--left) * 360deg), var(--cream-3) 0);border-radius:50%;position:absolute;inset:0;-webkit-mask:radial-gradient(circle,#0000 54%,#000 56%);mask:radial-gradient(circle,#0000 54%,#000 56%)}.turn-timer{font-family:var(--font-game);color:var(--ink);place-items:center;font-size:22px;display:grid;position:absolute;inset:0}.shedding-action-bar.urgent .turn-meter-fill{background:conic-gradient(var(--red-lo) calc(var(--left) * 360deg), var(--cream-3) 0)}.shedding-action-bar.urgent .turn-clock{animation:1s ease-in-out infinite tick}.shedding-action-bar.urgent .turn-timer{color:var(--red-lo)}@keyframes tick{0%,to{transform:scale(1)}15%{transform:scale(1.18)}}.rematch-banner{left:50%;bottom:calc(120px + var(--safe-bottom));z-index:26;border:3px solid var(--ink);background:linear-gradient(var(--wood-hi), var(--wood-lo));box-shadow:inset 0 3px 0 #ffffff40, inset 0 -4px 0 var(--wood-dark), 0 4px 0 var(--ink), var(--drop);color:#fff;font-family:var(--font-game);-webkit-text-stroke:5px var(--wood-dark);paint-order:stroke fill;border-radius:999px;align-items:center;gap:10px;padding:8px 20px 10px 10px;font-size:22px;animation:.35s cubic-bezier(.18,1.5,.4,1) both pop-in;position:fixed;translate:-50%}.rematch-clock .ico{width:34px;height:34px;animation:1s ease-in-out infinite tick}.shuffle-pack-btn{left:50%;bottom:calc(120px + var(--safe-bottom));z-index:26;white-space:nowrap;gap:10px;padding:14px 26px;font-size:24px;animation:.35s cubic-bezier(.18,1.5,.4,1) both pop-in;position:fixed;translate:-50%}.drop-notice{z-index:40;border:4px solid var(--ink);background:var(--cream);width:max-content;max-width:calc(100vw - 32px);box-shadow:var(--lip), var(--drop);color:var(--ink);text-align:center;border-radius:18px;flex-direction:column;align-items:center;gap:10px;padding:18px 26px 20px;animation:.35s cubic-bezier(.18,1.5,.4,1) both pop-in;display:flex;position:fixed;top:38%;left:50%;translate:-50% -50%}.drop-notice-title{font-family:var(--font-game);font-size:26px;line-height:1.15}.drop-notice-btn{white-space:nowrap;min-height:48px;padding:12px 28px;font-size:22px}.starter-reveal{z-index:28;border:4px solid var(--ink);background:var(--cream);width:max-content;max-width:calc(100vw - 32px);box-shadow:var(--lip), var(--drop);color:var(--ink);text-align:center;pointer-events:none;border-radius:18px;flex-direction:column;align-items:center;gap:6px;padding:16px 26px 18px;animation:.35s cubic-bezier(.18,1.5,.4,1) both pop-in;display:flex;position:fixed;top:44%;left:50%;translate:-50% -50%}.starter-card{border:3px solid var(--ink);background:var(--well);color:#ea580c;width:72px;height:100px;font-family:var(--font-game);border-radius:10px;flex-direction:column;justify-content:center;align-items:center;font-size:30px;line-height:1;display:flex}.starter-card b{font-size:34px}.starter-card.face-down{background:linear-gradient(var(--red-hi), var(--red-lo));color:#0000}.starter-card.flip{animation:.5s ease-out both starter-flip}@keyframes starter-flip{0%{transform:rotateY(90deg)scale(1.15)}to{transform:rotateY(0)scale(1)}}.starter-title{font-family:var(--font-game);font-size:24px;line-height:1.15}.starter-sub{color:var(--ink-soft);font-size:15px}.starter-btn{pointer-events:auto;margin-top:6px;padding:12px 24px;font-size:20px}.reaction-dock{right:var(--edge-right);bottom:calc(var(--edge) + var(--safe-bottom));z-index:24;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed}.reaction-tray{pointer-events:none;flex-direction:column;gap:8px;display:flex}.reaction-btn{border:3px solid var(--ink);width:48px;height:48px;box-shadow:0 3px 0 var(--ink);opacity:0;background:#fff;border-radius:50%;place-items:center;font-size:24px;transition:opacity .15s,transform .25s cubic-bezier(.2,1.6,.4,1);display:grid;transform:translateY(30px)scale(.3)}.reaction-dock.open .reaction-tray{pointer-events:auto}.reaction-dock.open .reaction-btn{opacity:1;transform:none}.reaction-dock.open .reaction-btn:nth-child(8){transition-delay:30ms}.reaction-dock.open .reaction-btn:nth-child(7){transition-delay:60ms}.reaction-dock.open .reaction-btn:nth-child(6){transition-delay:90ms}.reaction-dock.open .reaction-btn:nth-child(5){transition-delay:.12s}.reaction-dock.open .reaction-btn:nth-child(4){transition-delay:.15s}.reaction-dock.open .reaction-btn:nth-child(3){transition-delay:.18s}.reaction-dock.open .reaction-btn:nth-child(2){transition-delay:.21s}.reaction-dock.open .reaction-btn:first-child{transition-delay:.24s}.reaction-dock.cooling .reaction-btn,.reaction-dock.cooling .reaction-toggle{filter:grayscale();opacity:.55;pointer-events:none}@media (hover:hover){.reaction-btn:hover{transform:scale(1.15)!important}}.reaction-dock.open .reaction-toggle{background:radial-gradient(circle at 50% 30%, #fff8d6, var(--gold-hi) 75%)}@media (orientation:portrait){.hud-south{bottom:calc(var(--hand-height,86px) + var(--safe-bottom) + 6px)!important}.hand-tall .hud-south{transform-origin:0 0;transform:scale(.8);top:calc(var(--edge) + 124px + var(--safe-top))!important;bottom:auto!important}}@media (width<=1099px){.leaderboard{top:calc(84px + var(--safe-top))}}@media (width<=640px){:root{--edge:10px}.g-panel{border-radius:24px;padding:46px 16px 18px}.g-ribbon span{padding:8px 24px 10px;font-size:22px}.g-close{width:42px;height:42px;top:-12px;right:-6px}.g-round{width:46px;height:46px}.g-round .ico{width:28px;height:28px}.profile-portrait{width:62px;height:62px}.profile-name{width:130px;min-width:0;padding-left:24px}.profile-name input{font-size:17px}.corner-btns{gap:6px}.title-screen{padding-bottom:calc(16px + var(--safe-bottom))}.logo-word{-webkit-text-stroke-width:10px;font-size:60px}.logo-tag{font-size:14px}.mode-tiles{gap:12px}.mode-tile{width:min(160px,43vw);padding-bottom:10px}.mode-art{height:72px}.mode-art .ico{width:46px;height:46px}.mode-art .mode-ico-b{width:38px;height:38px}.mode-tile strong{font-size:21px}.mode-tile small{font-size:11px}.g-btn-xl{min-width:min(300px,86vw);min-height:68px;font-size:30px}.title-row{gap:10px;width:min(340px,92vw)}.title-row .g-btn{white-space:normal;flex:1;min-width:0;padding:0 10px 4px;font-size:15px;line-height:1.05}.settings-row{flex-direction:column;align-items:stretch;gap:6px}.settings-row .g-stepper,.settings-row .g-input{width:100%}.bid-buttons-grid{grid-template-columns:repeat(5,1fr)}.waiting-code{font-size:38px}.room-chip{height:42px;padding-left:10px}.room-chip-label{display:none}.avatar-ring{border-width:3px;width:52px;height:52px}.avatar-icon{font-size:26px}.player-name{max-width:92px;padding:2px 8px 4px;font-size:13px}.hud-south .avatar-ring{width:64px;height:64px}.hud-south .avatar-icon{font-size:32px}.hud-south .player-name{max-width:100px;font-size:14px}.pile-status-hud{top:calc(var(--edge) + 58px + var(--safe-top));min-width:0;padding:4px 12px 7px}.pile-sub{font-size:18px}.leaderboard{left:var(--edge-left);right:var(--edge-right);width:auto;top:calc(80px + var(--safe-top))}.scoreboard-panel{gap:4px}.team-plate{min-width:78px;padding:4px 8px 6px}.team-points{font-size:24px}.score-meta{display:none}.shedding-action-bar{left:auto;right:calc(var(--edge-right) + 58px);bottom:calc(14px + var(--safe-bottom));gap:8px;transform:none}.shedding-action-bar.my-turn{animation:none}.turn-clock{width:48px;height:48px}.turn-timer{font-size:18px}.pass-btn{min-width:0;padding:0 14px 4px;font-size:17px}.play-btn{white-space:normal;min-width:132px;min-height:54px;padding:0 14px 4px;font-size:17px;line-height:1.05}.hud-south{bottom:calc(86px + var(--safe-bottom))}.center-banner{max-width:calc(100vw - 90px);padding:8px 18px 10px;font-size:18px}.reaction-btn{width:42px;height:42px;font-size:20px}.crowded-table .seat-hud:not(.active-turn) .avatar-ring{width:42px;height:42px}.crowded-table .seat-hud:not(.active-turn) .avatar-icon{font-size:21px}.crowded-table .seat-hud:not(.active-turn) .player-name{max-width:66px;font-size:11px}.crowded-table .seat-hud .role-badge{padding-right:6px;font-size:10px}}@media (height<=560px){.title-screen{padding-top:calc(8px + var(--safe-top));padding-bottom:calc(10px + var(--safe-bottom));grid-template-rows:auto auto 1fr auto}.logo-word{-webkit-text-stroke-width:9px;text-shadow:0 5px 0 var(--ink);font-size:48px}.title-logo{margin-top:-64px}.logo-tag{display:none}.mode-art{height:56px}.mode-art .ico{width:38px;height:38px}.mode-tile small{display:none}.title-middle{gap:8px}.title-hint{display:none}.title-actions{flex-direction:row;align-items:center}.g-btn-xl{min-width:220px;min-height:60px;font-size:26px}.title-row{margin-top:0}.title-row .g-btn{min-width:0}.g-panel-body{max-height:calc(100dvh - 110px)}.hud-south .avatar-ring{width:56px;height:56px}}@media (width<=400px){.logo-word{-webkit-text-stroke-width:8px;font-size:clamp(40px,16vw,60px)}.title-top{gap:4px}.profile-portrait{flex:none;width:50px;height:50px}.profile,.profile-name{flex:auto;width:auto;min-width:0}.profile-name input{width:100%;min-width:0;font-size:15px}.corner-btns{flex:none;gap:4px}.corner-btns .g-round{width:40px;height:40px}.corner-btns .g-round .ico{width:24px;height:24px}.mode-tiles{gap:8px;max-width:100%}.mode-tile{flex:1 1 0;min-width:0}.g-btn-xl{width:100%;min-width:0;max-width:300px;padding:0 16px 5px;font-size:26px}.title-actions,.title-middle,.title-row{max-width:100%}.title-row{width:100%}.shedding-action-bar{gap:5px}.turn-clock{width:40px;height:40px}.turn-timer{font-size:15px}.pass-btn{padding:0 9px 4px;font-size:15px}.play-btn{min-width:92px;min-height:48px;padding:0 8px 4px;font-size:15px}}@media (height<=480px) and (orientation:landscape){.shedding-action-bar{left:auto;right:var(--edge-right);bottom:calc(var(--edge) + 54px + var(--safe-bottom));flex-direction:column;gap:6px;transform:none}.turn-clock{width:38px;height:38px}.turn-timer{font-size:15px}.pass-btn,.play-btn{white-space:normal;width:78px;min-width:0;min-height:42px;padding:0 4px 4px;font-size:14px;line-height:1.05}.avatar-ring{border-width:3px;width:38px;height:38px}.avatar-icon{font-size:19px}.player-name{max-width:76px;padding:1px 6px 3px;font-size:11px}.hud-south .avatar-ring{width:46px;height:46px}.hud-south .player-name{max-width:80px;font-size:12px}.seat-hud:not(.hud-south) .speech-bubble{transform-origin:50% -20%;top:calc(100% + 6px);bottom:auto}.seat-hud:not(.hud-south) .speech-bubble:after{display:none}}@media (height<=560px){.title-actions{justify-content:center;width:100%}.title-actions .g-btn-xl{flex:1 1 0;min-width:0;max-width:300px;padding:0 12px 5px;font-size:24px}.title-actions .title-row{flex:2 1 0;width:auto;min-width:0;max-width:460px}.title-actions .title-row .g-btn{white-space:normal;flex:1 1 0;min-width:0;padding:0 8px 4px;font-size:15px;line-height:1.05}.reaction-dock{align-items:flex-end}.reaction-tray{grid-template-columns:repeat(3,42px);gap:6px;display:grid}.reaction-btn{width:42px;height:42px;font-size:20px}}@media (pointer:coarse){.rules-chip{-webkit-backdrop-filter:none;backdrop-filter:none;background:#3d2416d1}}@media (width>=2400px) and (height>=1300px){#ui-container{zoom:1.5}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.looks-popup .g-panel{width:min(600px,94vw)}.look-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px;display:grid}.look-tiles[data-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}.look-tile{flex-direction:column;align-items:center;gap:6px;min-width:0;transition:transform .14s cubic-bezier(.2,1.5,.4,1);display:flex}.look-thumb{aspect-ratio:8/5;border:4px solid var(--ink);width:100%;box-shadow:0 4px 0 var(--ink);background:linear-gradient(#e8dfca,#d3c5a6);border-radius:16px;display:block;overflow:hidden}.look-thumb img{object-fit:cover;width:100%;height:100%;display:block}.look-name{font-family:var(--font-game);text-align:center;font-size:15px;line-height:1.1}@media (hover:hover){.look-tile:hover{transform:translateY(-3px)}}.look-tile.active{transform:translateY(-3px)}.look-tile.active .look-thumb{box-shadow:0 0 0 4px var(--gold-hi), 0 4px 0 4px var(--ink)}.look-note{text-align:center;margin-top:12px}.look-note[hidden]{display:none}.looks-chip{margin-top:8px}@media (width<=440px){.g-tab.look-tab{font-size:15px}.look-tiles{gap:8px}.look-tiles[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}.look-thumb{border-width:3px;border-radius:12px}.look-name{font-size:13px}}@media (prefers-reduced-motion:reduce){.look-tile{transition:none}}.host-tag{z-index:2;border:3px solid var(--ink);background:linear-gradient(var(--gold-hi), var(--gold-lo));box-shadow:0 3px 0 var(--ink);color:var(--ink);font-family:var(--font-ui);letter-spacing:0;white-space:nowrap;-webkit-text-stroke:0;text-shadow:none;pointer-events:none;border-radius:999px;padding:3px 9px 4px;font-size:12px;font-weight:900;line-height:1.1;position:absolute;top:-22px;right:-6px;transform:rotate(4deg)}.host-tag[hidden]{display:none}.host-popup .g-panel{width:min(460px,100%)}.host-popup .g-panel-body{text-align:center}.host-price{font-family:var(--font-game);color:var(--ink);justify-content:center;align-items:center;gap:10px;margin:4px 0 12px;font-size:30px;display:flex}.host-price .ico{width:40px;height:40px}.host-price strong{font-weight:400}.host-buys{text-align:left;gap:8px;margin:0 0 10px;padding:0;list-style:none;display:grid}.host-buys li{border:3px solid var(--ink);background:var(--well);color:var(--ink);border-radius:14px;align-items:center;gap:10px;padding:8px 12px;font-size:15px;font-weight:800;display:flex}.host-buys .glyph{width:22px;height:22px;color:var(--blue-lo);flex:none}.host-small{font-size:14px}.host-check{border:3px solid var(--ink);background:var(--cream-3);text-align:left;color:var(--ink);cursor:pointer;border-radius:16px;align-items:flex-start;gap:12px;margin:6px 0 8px;padding:12px;font-size:15px;font-weight:800;line-height:1.3;display:flex}.host-check input{width:30px;height:30px;accent-color:var(--green-lo);cursor:pointer;flex:none;margin:0}.host-links{justify-content:center;align-items:center;gap:10px;margin:6px 0;font-weight:800;display:flex}.host-links a,.host-links .host-text-btn{min-height:44px;color:var(--blue-stroke);align-items:center;padding:0 6px;text-decoration:underline;display:inline-flex}.host-links .host-text-btn{font:inherit;cursor:pointer;background:0 0;border:0}.host-error{border:3px solid var(--red-stroke);color:var(--red-stroke);background:#ffe9e4;border-radius:14px;margin:8px 0 0;padding:8px 12px;font-size:15px;font-weight:800}.host-error:before{content:"! "}.host-error:empty,.host-error[hidden]{display:none}.host-phone{text-align:center;letter-spacing:.06em}.host-free{margin-top:10px}.host-free[hidden]{display:none}.host-bot{flex-direction:column;align-items:center;gap:6px;margin-top:12px;display:flex}.host-bot-widget{width:100%;max-width:320px}.host-bot-widget:empty{display:none}.host-bot-status{color:var(--ink-soft);margin:0;font-size:14px;font-weight:800}.host-bot-status:empty{display:none}.host-bot-status.is-bad{color:var(--red-stroke)}.host-bot [hidden]{display:none}.otp-boxes{justify-content:center;gap:8px;display:flex}.otp-box.g-input{text-align:center;width:46px;min-height:58px;padding:0;font-size:28px}.host-resend{margin-top:12px}.host-resend-wait{color:var(--ink);margin:0;font-size:15px;font-weight:800}.host-resend [hidden]{display:none}.host-big{font-family:var(--font-game);color:var(--ink);margin:6px 0 10px;font-size:22px;line-height:1.2}.host-status-ico,.host-spinner{justify-content:center;display:flex}.host-status-ico .ico,.host-spinner .ico{width:64px;height:64px}.host-spinner .ico{animation:2.4s ease-in-out infinite host-spin}@keyframes host-spin{50%{transform:rotateY(180deg)scale(.92)}}@media (prefers-reduced-motion:reduce){.host-spinner .ico{animation:none}}.host-plaque{margin:4px 0 10px}.host-code{word-break:break-all;font-size:44px}.host-code-actions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px;display:flex}.host-expiry{font-family:var(--font-game);color:var(--ink);margin-bottom:2px;font-size:20px}.host-charged{border:3px solid var(--ink);background:var(--well);color:var(--ink);border-radius:999px;align-items:center;gap:8px;margin:0 0 10px;padding:6px 12px;font-weight:900;display:inline-flex}.host-mark{border:2px solid var(--ink);background:var(--cream-3);border-radius:50%;place-items:center;width:24px;height:24px;font-size:14px;display:inline-grid}.host-charged-yes .host-mark{background:var(--gold-hi)}.host-charged-no .host-mark{background:var(--green-hi)}.host-ref{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:6px 0;font-weight:800;display:flex}.host-ref code{border:2px solid var(--ink);background:var(--well);word-break:break-all;-webkit-user-select:all;user-select:all;border-radius:8px;padding:4px 8px;font-size:13px}@media (width<=480px){.host-price{margin-bottom:8px;font-size:22px}.host-price .ico{width:32px;height:32px}.host-buys{gap:6px}.host-buys li{padding:6px 10px;font-size:14px;line-height:1.25}.host-check{padding:10px;font-size:14px}.host-small{margin-bottom:8px;font-size:13px}.otp-box.g-input{width:40px;min-height:52px;font-size:24px}.host-code{font-size:34px}.host-popup .popup-actions .g-btn{white-space:normal;padding:0 12px 4px;font-size:18px;line-height:1.05}}
