:root{--felt-1: #1f5a48;--felt-2: #154236;--felt-3: #0e2e26;--panel: rgba(0, 0, 0, .18);--line: rgba(243, 238, 223, .3);--ink: #f3eedf;--ink-muted: #d9d2be;--accent: #f4b43a;--accent-hover: #ffd27a;--on-accent: #1d140a;--avatar: #2b6e59;--card: #fffdf6;--suit-red: #b3261e;--suit-black: #1b1b1b;--suit-man: #6b3fa0;--positive: #8fe3a8;--negative: #ffb4a2;--back-1: #7a2e2e;--back-2: #8e3a35;color-scheme:dark}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}html{background:radial-gradient(ellipse at 50% 45%,var(--felt-1) 0%,var(--felt-2) 55%,var(--felt-3) 100%) fixed var(--felt-3)}body{font-family:Mukta,system-ui,sans-serif;color:var(--ink);background:transparent;overflow-x:hidden}a{color:var(--accent)}a:hover{color:var(--accent-hover)}button{font-family:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.btn{min-height:44px;padding:0 16px;border-radius:12px;font-weight:700;font-size:16px;cursor:pointer;border:1px solid var(--line);background:transparent;color:var(--ink)}.btn-primary{background:var(--accent);color:var(--on-accent);border:0}.btn-primary:hover{background:var(--accent-hover)}.btn:disabled{opacity:.4;cursor:not-allowed}.card{flex-shrink:0;border-radius:7px;background:var(--card);border:0;padding:3px 5px;display:flex;flex-direction:column;align-items:flex-start;font-weight:700;line-height:1;box-shadow:0 2px 6px #00000059;cursor:pointer;transition:transform .12s}.card.red{color:var(--suit-red)}.card.black{color:var(--suit-black)}.card.man{color:var(--suit-man)}.card-hand,.card-pile{width:var(--card-w, 50px);height:var(--card-h, 72px);font-size:calc(var(--card-h, 72px) * .21);padding:calc(var(--card-h, 72px) * .05) calc(var(--card-h, 72px) * .07)}.card-mini{width:30px;height:42px;font-size:11px;padding:2px 3px;box-shadow:none}.card .suit{font-size:.9em}.card.man .suit{font-size:.55em}.card.raised{transform:translateY(-10px)}.card.fresh{transform:translateY(-14px);box-shadow:0 0 0 3px var(--positive),0 6px 14px #00000073}.card.selected{outline:3px solid var(--select, var(--accent));transform:translateY(-26px) scale(1.18);z-index:6;box-shadow:0 12px 20px #00000080}@media (max-width: 900px),(max-height: 500px){.card.selected{transform:translateY(-34px) scale(1.32)}}.card{position:relative}.face-art{position:absolute;top:8%;bottom:5%;right:7%;width:66%;height:87%;pointer-events:none}.card .rank,.card .suit{position:relative;z-index:1}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}input,textarea,select,.invite-link,.room-code{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}img{-webkit-user-drag:none}html,body{overscroll-behavior:none}.top-discard,.scattered,.hand-row .card{touch-action:none}.hand-row.multi .card.selected{transform:translateY(-20px);box-shadow:0 6px 12px #0006}:root{--suit-red: #d4361f;--suit-black: #141414;--card: #fffdf7;--card-back-art: repeating-linear-gradient(60deg, transparent 0 5px, rgba(255, 255, 255, .92) 5px 6.2px), repeating-linear-gradient(-60deg, transparent 0 5px, rgba(255, 255, 255, .92) 5px 6.2px), #d4361f}.card{border:1px solid #d8d0bd;box-shadow:0 1px 1px #0000001f,0 3px 8px #0000004d;overflow:hidden}.card-hand,.card-pile{padding:0;border-radius:calc(var(--card-h, 72px) * .07)}.corner{position:absolute;top:4%;left:5%;display:flex;flex-direction:column;align-items:center;line-height:.92;z-index:2}.corner.flipped{top:auto;left:auto;bottom:4%;right:5%;transform:rotate(180deg)}.corner .rank{font-family:Arial Narrow,Roboto Condensed,Helvetica Neue,Mukta,sans-serif;font-weight:700;font-size:calc(var(--card-h, 72px) * .19);letter-spacing:-.04em;transform:scaleX(.86);transform-origin:center}.corner .suit{font-size:calc(var(--card-h, 72px) * .15);margin-top:1px}.card-mini .corner{position:static}.card-mini .corner .rank,.card-mini .corner .suit{font-size:11px;transform:none}.pips{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.pip{position:absolute;transform:translate(-50%,-50%);font-size:calc(var(--card-h, 72px) * .17);line-height:1}.pip.flipped{transform:translate(-50%,-50%) rotate(180deg)}.pips.ace .pip{font-size:calc(var(--card-h, 72px) * .42)}.court-frame{position:absolute;top:7%;bottom:7%;left:20%;right:20%;border:1px solid #2b3f73;border-radius:2px;overflow:hidden}.court-frame .face-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.joker-side{position:absolute;top:4%;left:6%;display:flex;flex-direction:column;align-items:center;color:var(--suit-red);font-family:Arial Narrow,Roboto Condensed,sans-serif;font-weight:700;font-size:calc(var(--card-h, 72px) * .11);line-height:1.02}.joker-side.flipped{top:auto;left:auto;bottom:4%;right:6%;transform:rotate(180deg)}.joker-badge{width:1.2em;height:1.2em;border-radius:50%;background:var(--suit-red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.85em;margin-bottom:2px}.joker-star{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:calc(var(--card-h, 72px) * .4);color:var(--suit-red);text-shadow:0 0 0 #2b3f73}.card.man{color:var(--suit-red)}.hand-row .card-hand .pips,.hand-row .card-hand .corner.flipped{display:none}.hand-row .card-hand.selected .pips{display:block}.hand-row .card-hand.selected .corner.flipped{display:flex}.pip{font-size:calc(var(--card-h, 72px) * .135)}.corner .rank{font-size:calc(var(--card-h, 72px) * .17)}.corner .suit{font-size:calc(var(--card-h, 72px) * .12)}.joker-figure{position:absolute;top:6%;bottom:6%;left:20%;right:20%;display:flex;align-items:center;justify-content:center}.joker-art{width:100%;height:100%}body{padding:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0);box-sizing:border-box}.garland{top:env(safe-area-inset-top,0)}.home,.lobby{max-width:480px;margin:0 auto;padding:48px 20px 32px;display:flex;flex-direction:column;gap:20px}.brand{font-size:44px;font-weight:800;line-height:1;letter-spacing:-.5px;margin:0}.tagline{margin:6px 0 0;font-size:16px}.muted{color:var(--ink-muted)}.small{font-size:13px}.grow{flex-grow:1;min-width:0}.stack{display:flex;flex-direction:column;gap:12px}.greeting{display:flex;align-items:center;gap:10px;line-height:1.2}.who{font-size:17px;font-weight:700}.avatar{width:40px;height:40px;border-radius:50%;background:var(--avatar);border:2px solid var(--accent);display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}.avatar.small{width:32px;height:32px;border-width:1px;border-color:var(--line);font-size:14px}.link{background:none;border:0;color:var(--accent);font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:4px;min-height:0}.btn-hero{min-height:64px;border-radius:16px;font-size:20px;font-weight:800;display:flex;align-items:center;justify-content:space-between;padding:0 20px}.btn-hero .hint{font-size:14px;font-weight:600}.btn-wide{min-height:56px;border-radius:16px;font-size:17px;text-align:left;padding:0 20px;background:var(--panel)}.btn-primary.btn-wide{text-align:center;background:var(--accent)}.btn-cream{background:var(--ink);color:var(--felt-2);border:0;min-width:88px;align-self:flex-end;height:48px}.field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--ink-muted)}.field input,.field select{height:44px;border-radius:12px;border:1px solid var(--line);background:#0003;color:var(--ink);font:inherit;font-size:16px;padding:0 12px}.field select option{color:#1b1b1b}.code-input{font-size:18px!important;letter-spacing:1px}.join-row{display:flex;gap:8px;align-items:flex-end}.panel{background:var(--panel);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}.section-title{font-size:13px;letter-spacing:.5px;text-transform:uppercase;color:var(--ink-muted);margin:0;font-weight:600}.lobby-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.room-code{font-size:32px;font-weight:800;letter-spacing:4px}.invite-link{margin:-12px 0 0;word-break:break-all}.seat-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.seat{display:flex;align-items:center;gap:10px}.rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}details summary{cursor:pointer;color:var(--accent);font-weight:600;padding:8px 0}.toast{position:fixed;left:50%;bottom:16px;transform:translate(-50%);background:#1b1b1b;color:var(--ink);padding:10px 16px;border-radius:12px;border:1px solid var(--line);opacity:0;pointer-events:none;transition:opacity .2s;max-width:calc(100% - 32px)}.toast.show{opacity:1}.table{height:100vh;height:100dvh;display:flex;flex-direction:column;gap:4px;padding:8px 16px 10px;max-width:1800px;margin:0 auto;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.topbar-left{display:flex;align-items:center;gap:10px;min-width:0}.room-info{font-size:13px;color:var(--ink-muted)}.room-info b{color:var(--ink);letter-spacing:1px}.points{display:flex;gap:10px;font-size:13px;color:var(--ink-muted);flex-wrap:wrap}.points b{color:var(--ink)}.pos{color:var(--positive)!important}.neg{color:var(--negative)!important}.icon-btn{width:44px;min-height:40px;padding:0;display:flex;align-items:center;justify-content:center;background:#0003}.menu-wrap,.emote-wrap{position:relative}.menu-pop,.emote-pop{position:absolute;z-index:20;background:#10352b;border:1px solid var(--line);border-radius:12px;padding:6px;display:flex;flex-direction:column;gap:2px;min-width:180px;box-shadow:0 8px 24px #0006}.menu-pop{top:48px;left:0}.emote-pop{bottom:48px;right:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-width:220px}.menu-pop button,.emote-choice{min-height:44px;background:transparent;border:0;color:var(--ink);font:inherit;font-size:15px;text-align:left;padding:0 12px;border-radius:8px;cursor:pointer}.emote-choice{text-align:center;font-size:18px;padding:0 4px}.menu-pop button:hover,.emote-choice:hover{background:#f3eedf1a}.opponents{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:40px;flex-wrap:wrap}.opponent{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:110px}.opponent .avatar{width:36px;height:36px;border:2px solid var(--line);font-size:16px}.avatar.ring-turn{border-color:var(--accent);box-shadow:0 0 0 3px #f4b43a59}.avatar.ring-seen{border-color:var(--positive)}.avatar.ring-away{border-color:var(--negative)}.opp-name{font-size:13px;font-weight:600}.opp-status{font-size:11px;color:var(--ink-muted)}.emote-bubble{position:absolute;top:-6px;right:0;background:var(--ink);color:var(--felt-2);border-radius:12px;padding:2px 8px;font-size:14px;font-weight:700}.mini-sets{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.mini-set{display:flex}.mini-set .card+.card{margin-left:-16px}.piles{flex:1 1 auto;min-height:calc(var(--card-h, 72px) + 22px);display:flex;align-items:center;justify-content:center;gap:28px}.piles .mini-sets.mine{margin-left:12px;justify-content:flex-start;max-width:40%}.pile{display:flex;flex-direction:column;align-items:center;gap:4px}.pile-label{font-size:11px;color:var(--ink-muted)}.pile-label.accent{color:var(--accent)}.card-back{width:var(--card-w, 52px);height:var(--card-h, 74px);border-radius:7px;border:2px solid #fffdf7;outline:1px solid #d8d0bd;outline-offset:-1px;background:var(--card-back-art);box-shadow:0 3px #0b241d,0 6px #0b241d;cursor:pointer}.card-back:disabled{cursor:default}.piles .card-pile{box-shadow:0 0 0 3px var(--accent)}.piles .card:disabled{cursor:default}.card-empty,.joker-hidden{width:var(--card-w, 52px);height:var(--card-h, 74px);border-radius:7px;border:2px dashed rgba(244,180,58,.7);display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:11px;text-align:center;line-height:1.1;padding:4px}.status-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.status{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.dot{width:10px;height:10px;border-radius:50%;background:var(--line);flex-shrink:0}.dot.on{background:var(--positive)}.small-btn{min-height:36px;font-size:14px}.timer{position:relative;width:44px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:var(--accent);font-weight:700;font-size:14px;font-variant-numeric:tabular-nums}.timer svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;transform:rotate(-90deg)}.timer circle{fill:none;stroke-width:3.5}.timer-track{stroke:#0000004d}.timer-arc{stroke:var(--accent);stroke-linecap:round;transition:stroke-dashoffset 1s linear}.hand-area{display:flex;align-items:flex-end;gap:12px}.hand-col{flex-grow:1;min-width:0;display:flex;flex-direction:column;gap:6px}.hand-row{display:flex;align-items:flex-end;height:calc(var(--card-h, 72px) + 14px);padding-top:12px}.hand-slot{flex-shrink:0;touch-action:none}.actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:300px;flex-shrink:0}.actions .btn{min-height:40px;font-size:13px;padding:0 4px;width:100%}.actions .emote-wrap .icon-btn{width:100%}.action-row{display:flex;gap:6px}.action-row .btn{flex-grow:1}.rotate-hint{background:var(--panel);border-radius:12px;padding:8px 12px;font-size:13px;display:flex;justify-content:space-between;align-items:center}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;padding:16px;z-index:5000}.dialog{background:#10352b;border:1px solid var(--line);border-radius:16px;padding:20px;max-width:420px;width:100%}.dialog h2{margin:0 0 8px;font-size:18px}.dialog-body{font-size:15px;color:var(--ink-muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.set-list{margin:0;padding-left:18px;color:var(--ink);font-weight:600}@media (max-width: 600px){.hand-area{flex-direction:column;align-items:stretch}.actions{width:100%}.opponents{gap:12px}.opponent{min-width:80px}.points{display:none}}.dialog.result{max-width:560px}.result-table{width:100%;border-collapse:collapse;margin-top:8px}.result-table th,.result-table td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--ink)}.result-table thead th{font-size:12px;color:var(--ink-muted);font-weight:600}.result-table td:last-child,.result-table th:last-child{text-align:right}.dialog-actions.spread{justify-content:space-between;align-items:center}.totals,.payments{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:6px;color:var(--ink)}.totals li{display:flex;justify-content:space-between}.dialog h3{margin:12px 0 4px}.banner{position:fixed;top:8px;left:50%;transform:translate(-50%);z-index:40;background:#10352b;border:1px solid var(--accent);color:var(--ink);border-radius:12px;padding:8px 14px;display:flex;gap:12px;align-items:center;font-weight:600;max-width:calc(100% - 32px)}.toast{display:flex;gap:10px;align-items:center}.menu-field{display:flex;flex-direction:column;gap:4px;padding:8px 12px;font-size:13px;color:var(--ink-muted)}.menu-field select{height:40px;border-radius:10px;border:1px solid var(--line);background:#0003;color:var(--ink);font:inherit;font-size:15px;padding:0 8px}.menu-field select option{color:#1b1b1b}.discard-target{border-radius:10px;padding:4px;transition:background-color .15s,box-shadow .15s}.discard-target.armed{box-shadow:0 0 0 2px #f4b43a59}.discard-target.over{background:#f4b43a40;box-shadow:0 0 0 3px var(--accent)}.thrown{display:flex;gap:2px;justify-content:center;opacity:.9}.thrown .card+.card{margin-left:-18px}.in-front{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;min-height:42px}.in-front .thrown{margin-left:auto}.center{flex:1 1 auto;min-height:calc(var(--card-h, 72px) + 24px);display:flex;align-items:stretch;gap:16px;--throw-w: calc(var(--card-w, 50px) * .85);--throw-h: calc(var(--card-h, 72px) * .85)}.center-side{display:flex;align-items:center;gap:14px;flex-shrink:0}.center-side.front{flex-direction:column;justify-content:center;align-items:flex-end;gap:6px;min-width:0;max-width:30%}.scatter{position:relative;flex:1 1 auto;min-width:0;border-radius:16px;margin:6px 0 16px;isolation:isolate}.scattered .card-pile{width:var(--throw-w);height:var(--throw-h);font-size:calc(var(--throw-h) * .21)}.scattered{position:absolute;pointer-events:none}.scattered.movable{pointer-events:auto;cursor:grab;touch-action:none}.scattered .card{box-shadow:0 2px 4px #00000059}.scattered.top{pointer-events:auto;z-index:1000}.top-discard{box-shadow:0 0 0 3px var(--select, var(--accent)),0 6px 16px #00000080!important}.last-thrown{color:var(--accent);font-weight:600;white-space:nowrap}.scatter-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--ink-muted);font-size:13px}@media (max-height: 500px){.card-mini{width:24px;height:34px;font-size:9px}.mini-set .card+.card{margin-left:-12px}.opponent .avatar{width:28px;height:28px;font-size:13px}.opp-name{font-size:12px}.opponents{gap:24px}}.cutting{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:16px;text-align:center}.deck-stage{position:relative;width:160px;height:110px}.riffle{position:absolute;top:10px;width:72px;height:100px;border-radius:8px;border:2px solid #fffdf7;outline:1px solid #d8d0bd;outline-offset:-1px;background:var(--card-back-art);box-shadow:0 3px #0b241d,0 6px #0b241d}.riffle.left{left:0;animation:riffle-left .9s ease-in-out infinite}.riffle.right{right:0;animation:riffle-right .9s ease-in-out infinite}@keyframes riffle-left{0%,to{transform:translate(0) rotate(-6deg)}50%{transform:translate(40px) rotate(0)}}@keyframes riffle-right{0%,to{transform:translate(0) rotate(6deg)}50%{transform:translate(-40px) rotate(0)}}.cut-note{font-size:16px;font-weight:600;margin:0}.cut-ui{display:flex;flex-direction:column;align-items:center;gap:14px;width:min(520px,100%)}.deck-side{position:relative;width:100%;height:64px;border-radius:6px;border:2px solid var(--ink);cursor:crosshair;background:repeating-linear-gradient(90deg,#f3eedf 0,#f3eedf 2px,#cfc6ad 2px,#cfc6ad 3px)}.cut-line{position:absolute;top:-8px;bottom:-8px;width:3px;background:var(--accent);box-shadow:0 0 8px var(--accent);transform:translate(-1px);pointer-events:none}.cut-controls{display:flex;gap:12px;align-items:flex-end;width:100%}.cut-controls .field{flex:1}.cut-controls input[type=range]{accent-color:var(--accent);height:44px}.flying-card{position:fixed;width:40px;height:56px;border-radius:6px;border:2px solid #fffdf7;outline:1px solid #d8d0bd;outline-offset:-1px;background:var(--card-back-art);z-index:60;pointer-events:none}.hand-slot.dealt-in{animation:deal-in .28s ease-out backwards}@keyframes deal-in{0%{opacity:0;transform:translateY(-160px) scale(.6) rotate(-8deg)}to{opacity:1;transform:none}}.flying-card.face{background:var(--card);border:0;color:var(--suit-black);font-weight:700;font-size:18px;padding:4px 6px;box-shadow:0 0 0 3px var(--accent),0 8px 18px #00000080}.flying-card.face.red{color:var(--suit-red)}.timer-choice{border:0;padding:0;margin:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px 16px;align-items:center}.timer-choice legend{width:100%;margin-bottom:4px}.radio{display:flex;align-items:center;gap:6px;color:var(--ink);font-size:16px;min-height:44px}.radio input{width:20px;height:20px;accent-color:var(--accent)}.table-wrap{display:flex;height:100vh;height:100dvh}.table-wrap .table{flex:1 1 auto;min-width:0;margin:0;max-width:none}.game-log{width:240px;flex-shrink:0;display:flex;flex-direction:column;background:#00000038;border-left:1px solid var(--line)}.game-log-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;font-size:13px;font-weight:700;color:var(--ink-muted);text-transform:uppercase;letter-spacing:.5px}.game-log ol{list-style:none;margin:0;padding:0 12px 12px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:4px;font-size:13px}.game-log li{color:var(--ink);line-height:1.3}.game-log-note{padding:0 12px 8px;color:var(--accent);font-weight:700;font-size:13px}.log-toggle{min-height:36px;font-size:13px;padding:0 12px}.log-toggle:first-of-type{margin-left:auto}@media (max-width: 900px){.game-log{position:fixed;right:0;top:0;bottom:0;z-index:40;background:#10352b;box-shadow:-8px 0 24px #0006}}.arena{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:4px 12px}.arena .opponents{display:contents}.arena-center{display:flex;min-height:0;min-width:0}.arena-center .center{flex:1 1 auto}.opponent.seat-left,.opponent.seat-right{align-self:center;max-width:130px}.opponent.seat-left .mini-sets,.opponent.seat-right .mini-sets{flex-direction:column;align-items:center}.opponent.seat-top{justify-self:center}.stock-stack{position:relative;padding-bottom:calc(var(--layers, 1) * 2px)}.stock-stack .card-back{position:relative;z-index:1;box-shadow:0 1px 2px #00000059}.stock-layer{position:absolute;left:0;top:calc(var(--l) * 2px);z-index:0;width:var(--card-w, 52px);height:var(--card-h, 74px);border-radius:7px;border:2px solid var(--ink);box-sizing:border-box;background:#efe8d6;box-shadow:0 1px #0b241d}.dealer-draw{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:16px;box-sizing:border-box;text-align:center}.spread.ring{position:relative;width:min(86vw,62vh,420px);aspect-ratio:1;--r: calc(min(86vw, 62vh, 420px)/2 - 34px) }.spread-card{position:absolute;left:50%;top:50%;width:40px;height:58px;margin:-29px 0 0 -20px;padding:0;border-radius:6px;border:2px solid #fffdf7;outline:1px solid #d8d0bd;outline-offset:-1px;box-sizing:border-box;background:var(--card-back-art);box-shadow:0 2px 3px #0006;transform:rotate(var(--a)) translateY(calc(-1 * var(--r)));transition:transform .25s ease;animation:lay-card .35s ease-out backwards;animation-delay:calc(var(--i) * 22ms)}@keyframes lay-card{0%{transform:rotate(0) translateY(0) scale(.9);opacity:0}30%{opacity:1}to{transform:rotate(var(--a)) translateY(calc(-1 * var(--r)));opacity:1}}.spread.my-pick .spread-card{cursor:pointer}.spread.my-pick .spread-card:hover,.spread.my-pick .spread-card:focus-visible{transform:rotate(var(--a)) translateY(calc(-1 * var(--r) - 14px));z-index:2;outline:2px solid var(--marigold, #F4B43A)}.draw-picks{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin:0;padding:0}.draw-pick{display:flex;flex-direction:column;align-items:center;gap:6px;font-weight:600}.draw-pick.picking span{color:var(--marigold, #F4B43A)}.draw-pick.winner .card,.draw-pick.winner>:first-child{outline:3px solid var(--marigold, #F4B43A);outline-offset:2px;border-radius:7px}.card-slot{width:52px;height:74px;border-radius:7px;border:2px dashed rgba(243,238,223,.4);box-sizing:border-box}.status-area{display:flex;flex-direction:column;gap:4px}.my-front{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;min-height:42px;flex-shrink:0}.deal-machine{position:fixed;z-index:59;width:110px;height:110px;transform:translate(-50%,-50%);pointer-events:none}.deal-machine:before{content:"";position:absolute;top:4px;right:4px;bottom:4px;left:4px;border-radius:50%;background:radial-gradient(circle,rgba(0,0,0,.5),transparent 70%)}.deal-machine-body{position:absolute;top:14px;right:12px;bottom:14px;left:12px;border-radius:14px;background:linear-gradient(180deg,#33373c,#121417);border:1px solid #50555b;box-shadow:0 6px 14px #0000008c;transition:transform 30ms linear}.deal-machine-body:before{content:"";position:absolute;top:6px;left:50%;width:40px;height:30px;margin-left:-20px;border-radius:4px;border:2px solid #fffdf7;outline:1px solid #d8d0bd;outline-offset:-1px;box-sizing:border-box;background:var(--card-back-art);box-shadow:0 2px #0b241d,0 4px #0b241d}.deal-machine-screen{position:absolute;top:46px;left:50%;width:30px;height:12px;margin-left:-15px;border-radius:3px;background:#0d1f1a;box-shadow:inset 0 0 0 1px #3b6f5f}.deal-machine-slot{position:absolute;bottom:6px;left:50%;width:44px;height:5px;margin-left:-22px;border-radius:2px;background:#000;box-shadow:0 1px #5a5f64}.shuffle-stage{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.shuffle-deck{position:relative;width:160px;height:110px}.table.collected .mini-set,.table.collected [data-pile=stock],.table.collected [data-pile=joker]{visibility:hidden}.draw-stage{display:flex;flex-direction:column;align-items:center;gap:22px}@media (max-height: 520px) and (orientation: landscape){.dealer-draw{gap:8px;padding:8px 16px}.draw-stage{flex-direction:row;gap:28px}.spread.ring{width:min(70vh,300px);--r: calc(min(70vh, 300px)/2 - 30px) }.draw-picks{max-width:260px}}.lang-switch{display:inline-flex;align-self:flex-end;border:1px solid var(--line);border-radius:999px;overflow:hidden}.lang-switch button{min-height:36px;padding:0 14px;background:transparent;border:0;color:var(--ink-muted);font:inherit;font-size:14px;font-weight:600;cursor:pointer}.lang-switch button[aria-pressed=true]{background:var(--marigold, #F4B43A);color:#1d140a}.menu-pop .lang-switch{align-self:stretch;margin:4px 6px}.menu-pop .lang-switch button{flex:1;text-align:center}.emote-choice.words{grid-column:1 / -1;font-size:15px;font-weight:600}.emote-pop{max-height:70vh;overflow-y:auto}.emote-bubble{max-width:200px;white-space:normal;z-index:5;box-shadow:0 4px 10px #00000059}.riffle-deck{position:relative;width:190px;height:120px;margin:0 auto}.riffle-card{position:absolute;left:50%;bottom:8px;width:60px;height:86px;margin-left:-30px;border-radius:7px;border:2px solid #fffdf7;outline:1px solid #d8d0bd;outline-offset:-1px;box-sizing:border-box;background:var(--card-back-art);box-shadow:0 1px #0b241d;transform-origin:50% 100%}.deck-stage,.shuffle-deck{width:190px;height:120px}.spread-card:disabled{cursor:default;opacity:1}.field-error{color:#ffb4a8;font-size:14px;font-weight:600;margin:0}.open-tables ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.open-table{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#0000002e}.open-table .btn{min-width:76px}.public-toggle{margin-bottom:10px;font-weight:600}.toast.show{pointer-events:auto}.table.sweeping .hand-row,.table.sweeping .scattered,.table.sweeping .mini-set,.table.sweeping [data-pile=stock],.table.sweeping [data-pile=joker]{visibility:hidden}body{min-height:100dvh}.home.home-v2,.home.home-first{position:relative;max-width:1040px;padding-top:40px}.home-first{max-width:480px}.garland{position:fixed;top:0;left:0;right:0;height:26px;z-index:1;pointer-events:none;background:radial-gradient(circle at 12px 10px,#ffb42b 0 7px,#e8890c 7.5px 9px,transparent 9.5px) 0 0 / 24px 26px repeat-x,linear-gradient(180deg,rgba(0,0,0,.25),transparent);filter:drop-shadow(0 3px 6px rgba(244,140,30,.35))}.garland:after{content:"";position:absolute;left:0;right:0;top:16px;height:14px;background:radial-gradient(circle at 24px 4px,#ff7a1a 0 4px,transparent 4.5px) 0 0 / 48px 14px repeat-x;opacity:.9}.home-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.home-top .lang-switch{align-self:center}.home-grid{display:flex;flex-direction:column;gap:24px}.home-actions{display:flex;flex-direction:column;gap:12px}.hero{text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}.hero-fan{position:relative;width:300px;height:168px;margin:4px auto 8px;--card-w: 86px;--card-h: 124px}.hero-card{position:absolute;left:50%;bottom:0;margin-left:calc(var(--card-w) / -2);transform-origin:50% 130%;transform:rotate(calc(var(--i) * 14deg)) translateY(calc(var(--i) * var(--i) * 3px));animation:fan-open .9s cubic-bezier(.2,.8,.2,1) both,fan-float 5s ease-in-out 1s infinite;animation-delay:calc((var(--i) + 2) * 70ms),1s;filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}.hero-card .card{width:var(--card-w);height:var(--card-h);font-size:calc(var(--card-h) * .2)}@keyframes fan-open{0%{transform:rotate(0) translateY(30px) scale(.92);opacity:0}to{opacity:1}}@keyframes fan-float{0%,to{translate:0 0}50%{translate:0 -4px}}@media (prefers-reduced-motion: reduce){.hero-card{animation:none}}.brand{font-size:56px;letter-spacing:-1px;text-shadow:0 2px 0 rgba(0,0,0,.25);display:flex;flex-direction:column;align-items:center;gap:2px}.brand-alt{font-size:20px;font-weight:700;letter-spacing:0;color:var(--accent)}.hero .tagline{color:var(--ink-muted)}.btn-hero{min-height:72px;background:linear-gradient(180deg,#ffc955,#f0a92c);box-shadow:0 6px #b97f12,0 10px 24px #00000059;transition:transform .1s,box-shadow .1s}.btn-hero:active{transform:translateY(3px);box-shadow:0 3px #b97f12,0 6px 14px #00000059}.hero-label{display:flex;align-items:center;gap:12px}.suits{display:inline-flex;gap:2px;font-size:18px;color:#1d140a;background:#fbf6e9;border-radius:8px;padding:2px 6px}.suits .red{color:#b3261e}.home-tiles{display:grid;grid-template-columns:1fr;gap:12px}.home-tiles:has(>:nth-child(2)){grid-template-columns:1fr 1fr}.tile{min-height:56px;background:#00000038;border-color:#f3eedf40;text-align:center;justify-content:center}.open-tables{margin-top:6px;padding:14px;border-radius:16px;background:#0003;border:1px solid rgba(243,238,223,.12)}.open-table{background:#ffffff0a;border:1px solid rgba(243,238,223,.08)}@media (min-width: 900px){.home-grid{flex-direction:row;align-items:center;gap:56px;min-height:calc(100dvh - 160px)}.home-grid>.hero{flex:1 1 0}.home-grid>.home-actions{flex:0 0 420px}.hero-fan{width:420px;height:236px;--card-w: 120px;--card-h: 172px}.brand{font-size:72px}}@media (max-height: 500px) and (orientation: landscape){.home-grid{flex-direction:row;align-items:flex-start;gap:24px}.hero-fan{width:220px;height:120px;--card-w: 62px;--card-h: 90px}.brand{font-size:40px}.home-grid>.home-actions{flex:1 1 0}}.hero-fan{margin-bottom:34px}@media (min-width: 900px){.hero-fan{margin-bottom:46px}}.btn-hero .hero-label{white-space:nowrap}@media (max-width: 520px){.btn-hero{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:12px 18px}.btn-hero .hint{font-size:13px}.suits{font-size:15px}.brand{font-size:48px}.tile{font-size:15px;padding:0 10px}}.tile{font-size:15px;white-space:nowrap}.kicker{margin:0;font-size:14px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--accent)}.kicker:lang(ne),[lang=ne] .kicker{letter-spacing:0;font-size:16px}.garland{top:env(safe-area-inset-top,0px)}.table-wrap{height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.table-wrap .table{height:100%}.btn-icon{flex-shrink:0}.log-toggle,.table .topbar .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px}@media (max-width: 600px){.topbar{flex-wrap:nowrap;gap:6px}.topbar-left{flex:1 1 auto;min-width:0}.room-info{font-size:11px;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.topbar .btn-label{display:none}.topbar .log-toggle,.topbar .btn{min-height:38px;min-width:38px;padding:0 8px}.log-toggle:first-of-type{margin-left:0}.status{font-size:13px;min-width:0}.status>span:not(.dot){overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.status-row{gap:8px}}.game-log{position:fixed;z-index:40;top:calc(env(safe-area-inset-top,0px) + 60px);right:12px;bottom:auto;left:auto;width:min(300px,calc(100vw - 24px));max-height:50vh;border:1px solid var(--line);border-radius:14px;background:#10352b;box-shadow:0 12px 30px #00000073}.game-log ol{flex:0 1 auto}.game-log-close{width:36px;height:36px;border-radius:50%;border:0;background:#ffffff14;color:var(--ink);font-size:16px;cursor:pointer}@media (max-width: 600px) and (orientation: portrait){.arena{--sets-h: 142px;--side-h: calc(var(--sets-h) + 86px)}.arena-center,.arena-center>.center{display:contents}.arena-center .scatter{grid-column:2 / -2;grid-row:2}.opponent.seat-left,.opponent.seat-right{align-self:start;min-height:var(--side-h);justify-content:flex-end}.opponent.seat-left .mini-sets,.opponent.seat-right .mini-sets{order:-1;height:var(--sets-h);flex-direction:column;flex-wrap:wrap;justify-content:flex-end;align-content:center;margin-bottom:4px}.center>.center-side:not(.front){grid-column:1;grid-row:1 / span 2;align-self:start;justify-self:center;margin-top:calc(var(--side-h) + 10px);flex-direction:column;align-items:center;gap:6px;--card-w: 42px;--card-h: 58px}.center>.center-side:not(.front) [data-pile=joker]{order:-1}.opponent.seat-top{min-height:124px;justify-content:flex-start}.center>.center-side:not(.front) .pile{gap:2px}.center>.center-side:not(.front) .pile-label{max-width:72px;text-align:center;line-height:1.2;font-size:10px}.center>.center-side:not(.front) .joker-hidden{font-size:10px}}@media (max-height: 500px){.status-area{flex-direction:row-reverse;align-items:center;gap:12px}.status-area .status-row{flex:1 1 auto;min-width:0}.my-front{min-height:34px;flex-wrap:nowrap}.center>.center-side:not(.front){--card-w: 44px;--card-h: 62px}}.public-note{color:var(--accent);font-weight:600}.player-count{border:0;margin:0 0 2px;padding:0;display:flex;align-items:center;gap:8px}.player-count legend{float:left;margin-right:6px;color:var(--ink-muted);font-size:14px}.player-count .chip{position:relative;min-width:44px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:18px;border:1px solid var(--line);font-weight:700;cursor:pointer}.player-count .chip.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.player-count .chip input{position:absolute;opacity:0;top:0;right:0;bottom:0;left:0;margin:0;cursor:pointer}.player-count .chip:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}.tile.tile-create{background:linear-gradient(180deg,#fffaf0,#efe5cc);color:#3a1d12;border:0;font-weight:700;box-shadow:0 4px #c4b48a,0 8px 18px #0000004d;transition:transform .1s,box-shadow .1s}.tile.tile-create:hover{background:linear-gradient(180deg,#fff,#f4ecd6)}.tile.tile-create:active{transform:translateY(2px);box-shadow:0 2px #c4b48a,0 4px 10px #0000004d}:root[data-theme=dashain]{--select: #ffffff;--felt-1: #9e1a2b;--felt-2: #6e0e1a;--felt-3: #3e0610;--accent: #d9a93a;--accent-hover: #f6d27a;--on-accent: #3e0610;--avatar: #7e1620;--card-back-art: url(/assets/dashain-back-CG5yi9wJ.svg) center / cover no-repeat, #7a1420}:root[data-theme=tihar]{--select: #ffffff;--felt-1: #7a1446;--felt-2: #4a0a28;--felt-3: #240416;--accent: #f97316;--accent-hover: #fdba74;--on-accent: #2a0616;--avatar: #5e0c34;--card-back-art: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20300%20420'%20preserveAspectRatio='xMidYMid%20slice'%3e%3cdefs%3e%3clinearGradient%20id='g'%20x1='0'%20y1='0'%20x2='1'%20y2='1'%3e%3cstop%20offset='0'%20stop-color='%23FDE68A'/%3e%3cstop%20offset='1'%20stop-color='%23D4A017'/%3e%3c/linearGradient%3e%3cradialGradient%20id='m'%20cx='.5'%20cy='.45'%20r='.7'%3e%3cstop%20offset='0'%20stop-color='%239D174D'/%3e%3cstop%20offset='1'%20stop-color='%234A0A28'/%3e%3c/radialGradient%3e%3cpath%20id='p'%20d='M0%200%20C%2014%20-14,%2012%20-40,%200%20-56%20C%20-12%20-40,%20-14%20-14,%200%200%20Z'/%3e%3c/defs%3e%3crect%20width='300'%20height='420'%20fill='url(%23m)'/%3e%3cg%20transform='translate(150%20210)'%20fill='none'%20stroke='url(%23g)'%20stroke-width='3.2'%3e%3cuse%20href='%23p'%20transform='rotate(0)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(30)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(60)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(90)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(120)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(150)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(180)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(210)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(240)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(270)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(300)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(330)%20scale(1.7)'/%3e%3cuse%20href='%23p'%20transform='rotate(15)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(45)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(75)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(105)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(135)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(165)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(195)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(225)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(255)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(285)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(315)%20scale(1.05)'/%3e%3cuse%20href='%23p'%20transform='rotate(345)%20scale(1.05)'/%3e%3ccircle%20r='104'/%3e%3ccircle%20r='111'%20stroke-dasharray='1%208'%20stroke-linecap='round'%20stroke-width='4.5'/%3e%3ccircle%20r='20'%20fill='url(%23g)'/%3e%3c/g%3e%3cg%20fill='url(%23g)'%3e%3ccircle%20cx='30'%20cy='30'%20r='5'/%3e%3ccircle%20cx='270'%20cy='30'%20r='5'/%3e%3ccircle%20cx='30'%20cy='390'%20r='5'/%3e%3ccircle%20cx='270'%20cy='390'%20r='5'/%3e%3c/g%3e%3crect%20x='12'%20y='12'%20width='276'%20height='396'%20rx='10'%20fill='none'%20stroke='url(%23g)'%20stroke-width='3.5'/%3e%3c/svg%3e") center / cover no-repeat, #4a0a28}:root[data-theme=dashain] .card-back,:root[data-theme=dashain] .riffle,:root[data-theme=tihar] .card-back,:root[data-theme=tihar] .riffle{box-shadow:0 3px 0 var(--felt-3),0 6px 0 var(--felt-3)}:root[data-theme=dashain] .stock-stack .card-back,:root[data-theme=tihar] .stock-stack .card-back{box-shadow:0 1px 2px #00000059}:root[data-theme=dashain] .card:not(.card-mini){border:2px solid #d9a93a}:root[data-theme=dashain] .card:not(.card-mini):after{content:"";position:absolute;top:2px;right:2px;bottom:2px;left:2px;border:1px dashed #6da34d;border-radius:inherit;pointer-events:none;opacity:.8}:root[data-theme=dashain] .card-mini{border-color:#d9a93a}:root[data-theme=tihar] .card:not(.card-mini){border:2px solid #f59e0b}:root[data-theme=tihar] .card:not(.card-mini):before{content:"";position:absolute;left:0;right:0;top:0;height:4px;pointer-events:none;background:radial-gradient(circle,#f97316 0 1.6px,transparent 2px) 0 0 / 6px 4px repeat-x}:root[data-theme=tihar] .card-mini{border-color:#f59e0b}.arena{position:relative;isolation:isolate}.decor{position:absolute;pointer-events:none;z-index:-1}.decor-mala{left:0;right:0;top:2px;height:16px;background:radial-gradient(circle at 9px 8px,#ffb42b 0 5.5px,#e8890c 6px 7px,transparent 7.5px) 0 0 / 18px 16px repeat-x;filter:drop-shadow(0 3px 5px rgba(244,140,30,.3))}.decor-jamara{right:0;bottom:0;width:34px;height:44px}.decor-jamara svg{display:block;width:100%;height:100%}.decor-diyos{left:20%;right:20%;bottom:-2px;height:14px;display:flex;justify-content:space-between}.decor-diyos i{position:relative;width:12px;height:14px}.decor-diyos i:before{content:"";position:absolute;bottom:0;left:1px;width:10px;height:4px;border-radius:0 0 6px 6px;background:#c2410c}.decor-diyos i:after{content:"";position:absolute;bottom:4px;left:4px;width:4px;height:8px;border-radius:50%/70% 70% 30% 30%;background:#ffd54a;box-shadow:0 0 8px #fcd34d}
