:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--paper:#f3f1e9;--ink:#183c34;--muted:#687970;--gold:#d6b779;--green:#164e3e;--card:#fffcf4;--red:#ad3941;--card-w:100px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:var(--paper);min-height:100%;color:var(--ink);margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{overscroll-behavior:none}button,input{font:inherit;touch-action:manipulation}button{cursor:pointer;-webkit-user-select:none;user-select:none}:is(button:focus-visible,input:focus-visible){outline-offset:4px;outline:3px solid #c7953b}button:disabled{cursor:default}button,input{-webkit-appearance:none;appearance:none}button,form,p,h2,ol{margin:0}button{color:inherit}.app{width:min(100%,1050px);min-height:100vh;min-height:100svh;padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));flex-direction:column;gap:15px;margin:0 auto;display:flex}.header{flex:none;justify-content:space-between;align-items:center;gap:14px;display:flex}.brand{align-items:center;gap:12px;display:flex}.mark{flex:none;width:42px;height:46px;position:relative}.mark:before,.mark:after{content:"";border:1.6px solid var(--ink);background:var(--paper);border-radius:5px;width:27px;height:37px;position:absolute;top:3px}.mark:before{left:1px;transform:rotate(-13deg)}.mark:after{content:"♠";place-items:center;font-family:Georgia,serif;font-size:23px;display:grid;top:6px;left:10px;transform:rotate(9deg)}.brand small{letter-spacing:2.3px;color:var(--muted);margin-bottom:3px;font-size:9px;font-weight:700;display:block}h1{letter-spacing:-1.2px;margin:0;font-family:Georgia,Times New Roman,serif;font-size:32px;font-weight:400;line-height:1.08}.edition{letter-spacing:1.9px;white-space:nowrap;border:1px solid #abb6a650;border-radius:20px;padding:9px 11px;font-size:9px;font-weight:650}.reset{min-height:46px;color:var(--ink);white-space:nowrap;background:0 0;border:1px solid #a7b3a6;border-radius:30px;justify-content:center;align-items:center;gap:7px;padding:0 15px;font-size:13px;font-weight:600;display:flex}.reset svg{width:17px;height:17px}.reset:active:not(:disabled){background:#e4e7dc;transform:scale(.97)}.reset:disabled{opacity:.4}.meta{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding:1px 3px;font-size:11px;display:flex}.meta-left{align-items:center;gap:7px;display:flex}.dot{background:#557a60;border-radius:50%;flex:none;width:5px;height:5px;display:inline-block}.room-bar{border-top:1px solid #a7b3a638;border-bottom:1px solid #a7b3a638;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 14px;padding:3px 2px;display:flex}.room-code{white-space:nowrap;background:0 0;border:0;border-radius:4px;align-items:center;gap:8px;min-height:43px;padding:0;display:flex}.room-code-label{letter-spacing:1.7px;color:var(--muted);font-size:9px}.room-code strong{letter-spacing:2px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:15px;font-weight:600}.room-code svg{opacity:.65;width:14px;height:14px}.copy-label{color:var(--muted);text-align:left;min-width:32px;font-size:10px}.room-tools{align-items:center;gap:13px;display:flex}.connection{color:var(--muted);align-items:center;gap:5px;font-size:10px;display:flex}.connection.connecting .dot,.connection.reconnecting .dot{background:#b08945;animation:1.4s ease-in-out infinite connection-pulse}.connection.offline .dot{background:#ad3941}.connection.offline{color:#9b4b46}.match-state{min-height:42px;color:var(--muted);align-items:center;gap:8px;font-size:11px;display:flex}.match-state .dot{width:6px;height:6px}.match-state.searching .dot{background:#b09850;box-shadow:0 0 0 4px #bbab6914}.match-state strong{color:var(--ink);font-weight:600}.new-opponent{white-space:nowrap;background:0 0;border:1px solid #a7b3a665;border-radius:20px;justify-content:center;align-items:center;gap:6px;min-height:36px;padding:0 12px;font-size:11px;display:flex}.new-opponent svg{width:14px;height:14px}.new-opponent:disabled{opacity:.4}.new-opponent:active:not(:disabled){background:#e6e8dd}.match-connection{min-height:20px;color:var(--muted);justify-content:center;align-items:center;gap:6px;font-size:11px;line-height:1.5;display:flex}.match-connection .dot{width:4px;height:4px}.match-search-hint{color:#acbea3;max-width:280px;margin-top:2px;font-size:11px;line-height:1.6}.searching-emblem:after{content:"";background:#194f3e;border:2px solid #9ba98645;border-top-color:#d6b779;border-radius:50%;width:17px;height:17px;animation:1.2s linear infinite matching-orbit;position:absolute;bottom:-7px;right:-9px}.match-retry{max-width:210px;min-height:46px;margin:10px auto 0;font-size:12px}.match-retry span{font-size:19px}.loading-table.match-loading{min-height:440px}.loading-table.match-loading .empty{gap:17px}.hand-empty .new-opponent{margin-top:3px}.text-button{min-height:42px;color:var(--ink);text-underline-offset:3px;background:0 0;border:0;padding:0 1px;font-size:11px;-webkit-text-decoration:underline #82918080;text-decoration:underline #82918080}.text-button:disabled{opacity:.4}.notice{color:#625438;background:#ece5d6;border:1px solid #cbbb954a;border-radius:12px;justify-content:space-between;align-items:center;gap:14px;padding:11px 13px;font-size:12px;line-height:1.5;display:flex}.notice-retry{background:0 0;border:1px solid #88704a70;border-radius:20px;flex:none;min-height:38px;padding:0 12px;font-size:11px}.notice-retry:disabled{opacity:.4}.storage-note{color:#79623c;padding:0 3px;font-size:11px;line-height:1.5}.table{color:#ecf0df;isolation:isolate;background:radial-gradient(at 50% 32%,#225d49 0%,#164b3b 70%,#144536 100%);border-radius:26px;position:relative;overflow:hidden;box-shadow:inset 0 1px #ffffff13,0 10px 24px #163d2910}.table:before{content:"";pointer-events:none;z-index:-1;border:1px solid #d6d8b026;border-radius:18px;position:absolute;inset:11px}.table:after{content:"";opacity:.1;pointer-events:none;z-index:-2;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.45' d='M0 0h120v120H0z'/%3E%3C/svg%3E");position:absolute;inset:0}.eyebrow{letter-spacing:2.2px;font-size:10px;font-weight:600}.table-top .eyebrow,.lobby-eyebrow{color:#c6d2b9}.table-bottom{color:#b6c5a5;letter-spacing:1.8px;text-align:center;flex:none;justify-content:center;align-items:center;gap:10px;font-size:8px;line-height:1.5;display:flex}.table-bottom:before,.table-bottom:after{content:"";background:#c6cdb244;flex:none;width:19px;height:1px}.empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:100%;padding:16px 0;display:flex}.empty-emblem{color:#bdcaac71;border:1px solid #bfcba53b;border-radius:8px;place-items:center;width:57px;height:74px;margin:0 0 5px;font-family:Georgia,serif;font-size:39px;display:grid;position:relative;transform:rotate(-8deg)}.empty-emblem:before{content:"";z-index:-1;border:1px solid #bfcba52b;border-radius:8px;position:absolute;inset:0;transform:rotate(15deg)}.empty-title{letter-spacing:-.3px;color:#edf0dc;font-family:Georgia,serif;font-size:24px;font-weight:400;line-height:1.2}.empty-detail{color:#b7c8af;font-size:12px;line-height:1.65}.inline-code{letter-spacing:1.2px;color:#e5deb9;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:600}.loading-table{flex:1;justify-content:center;align-items:center;min-height:470px;padding:30px;display:flex}.loading-table .empty{gap:20px}.lobby-table{text-align:center;flex-direction:column;flex:1;align-items:center;gap:24px;min-height:565px;padding:30px 30px 25px;display:flex}.lobby-eyebrow{letter-spacing:2.6px;font-size:9px}.lobby-intro{flex-direction:column;align-items:center;gap:15px;display:flex}.lobby-intro .empty-emblem{width:60px;height:77px;margin:8px 0 4px;font-size:42px}.lobby-intro h2{letter-spacing:-1px;color:#f1efdc;font-family:Georgia,serif;font-size:39px;font-weight:400;line-height:1.1}.lobby-intro p{color:#c1cfb7;font-size:13px;line-height:1.7}.lobby-controls{width:min(100%,330px);margin:auto 0}.primary-button{color:#1b4337;background:#efe5c8;border:1px solid #ece6c880;border-radius:30px;justify-content:space-between;align-items:center;gap:15px;width:100%;min-height:54px;padding:0 21px;font-size:14px;font-weight:650;display:flex;box-shadow:0 4px 12px #092b2820}.primary-button span{font-size:22px;font-weight:400;line-height:1}.primary-button:disabled{opacity:.6}.primary-button:active:not(:disabled){background:#e3d4b0;transform:translateY(1px)}.join-divider{color:#adc1a7;justify-content:center;align-items:center;gap:10px;margin:17px 0;font-size:11px;display:flex}.join-divider:before,.join-divider:after{content:"";background:#b5c1a729;flex:1;height:1px}.join-form{gap:9px;display:flex}.join-form input{color:#f3efda;letter-spacing:3px;text-align:center;caret-color:#d6b779;background:#10392d55;border:1px solid #b8c1a457;border-radius:10px;width:100%;min-width:0;height:50px;padding:0 12px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:18px}.join-form input::placeholder{letter-spacing:1.7px;color:#9ab49a;opacity:1;font-family:system-ui,sans-serif;font-size:11px}.join-form input:disabled{opacity:.6}.join-button{color:#eee8cb;background:#f0e9d512;border:1px solid #cfceaa70;border-radius:10px;min-width:73px;height:50px;padding:0 21px;font-size:13px;font-weight:600}.join-button:disabled{opacity:.35}.join-button:active:not(:disabled){background:#f0e9d526}.lobby-controls>p{color:#aebfa2;margin-top:16px;font-size:11px;line-height:1.7}.lobby-table>.table-bottom{letter-spacing:1.8px;margin-top:2px}.lobby-steps{color:var(--muted);justify-content:center;align-items:center;gap:25px;padding:6px 0;font-size:10px;display:flex}.lobby-steps span{align-items:center;gap:7px;display:flex}.lobby-steps b{color:#83907c;font-family:Georgia,serif;font-size:14px;font-weight:400}.play-area{flex-direction:column;flex:1;gap:17px;min-width:0;display:flex}.game-table{flex-direction:column;flex:1;gap:15px;min-height:350px;padding:23px 23px 20px;display:flex}.table-top{flex:none;justify-content:space-between;align-items:center;gap:10px;display:flex}.table-count{color:#c6d2b9;font-variant-numeric:tabular-nums;border:1px solid #c6d2b930;border-radius:20px;padding:4px 8px;font-size:10px}.opponent-panel{color:#bfd0b3;flex:none;justify-content:center;align-items:center;gap:12px;min-height:35px;font-size:10px;display:flex}.opponent-backs{justify-content:center;align-items:center;min-width:12px;min-height:31px;padding:0 4px;display:flex}.card-back{color:#c7cba880;background:repeating-linear-gradient(45deg,#87987722,#87987722 1px,#58785833 1px 4px);border:1px solid #bbbf927a;border-radius:3px;place-items:center;width:20px;height:29px;margin-left:-5px;font-size:11px;display:grid;box-shadow:0 1px 3px #001d2733}.card-back:first-child{margin-left:0}.card-back.vacant{color:#c7cba840;box-shadow:none;background:0 0;border-style:dashed}.table-content{flex:1;justify-content:center;align-items:center;width:100%;min-height:188px;padding:2px 0 6px;display:flex}.played-grid{grid-template-rows:repeat(2,auto);grid-template-columns:repeat(5,minmax(0,1fr));justify-content:center;align-items:start;gap:12px 10px;width:100%;max-width:505px;padding:2px 0 0;list-style:none;display:grid}.played-item{min-width:0;animation:.32s cubic-bezier(.2,.75,.25,1) both card-arrival}.table-card{aspect-ratio:5/7;width:100%;transform:rotate(var(--tilt,0deg));position:relative;box-shadow:0 4px 8px #001d2740!important}.played-owner{color:#bdcbb0;white-space:nowrap;justify-content:center;align-items:center;gap:3px;margin-top:8px;font-size:8px;line-height:1;display:flex}.played-owner i{background:#c0cfc0;border-radius:50%;width:4px;height:4px}.played-item.yours .played-owner{color:#e0c688}.played-item.yours .played-owner i{background:#dec589}.move-number{opacity:.55;padding-left:1px;font-size:7px}.empty-slot{aspect-ratio:5/7;background:#073b3010;border:1px solid #bbc89e1f;border-radius:6px;margin-bottom:16px;position:relative}.empty-slot span{text-align:center;color:#bec89f38;letter-spacing:1px;font-size:8px;position:absolute;bottom:7px;left:0;right:0}.hand-panel{text-align:center;flex:none;min-width:0}.turn-status{justify-content:center;min-height:30px;margin:0 0 14px;display:flex}.turn-pill{color:#6a7968;background:#e8eadf;border:1px solid #d9dfd0;border-radius:25px;justify-content:center;align-items:center;gap:8px;min-height:31px;padding:4px 15px;font-size:11px;font-weight:600;display:flex}.turn-pill .dot{background:#9ba790}.turn-pill.active{color:#315140;background:#e6e7cc;border-color:#d7d8b1}.turn-pill.active .dot{background:#aa8d46;box-shadow:0 0 0 3px #bdab6f20}.turn-pill.complete{color:#3b6a49;background:#dce6d6;border-color:#ceddc8}.hand-header{color:var(--ink);justify-content:space-between;align-items:center;padding:0 6px;display:flex}.hand-count{color:var(--muted);font-size:11px}.hand-fan{width:100%;height:calc(var(--card-w) * 1.4 + 50px);-webkit-user-select:none;user-select:none;margin-top:0;position:relative}.card{background:var(--card);color:#202c2a;border:1px solid #e3e0d4;border-radius:8px;font-family:Georgia,Times New Roman,serif;overflow:hidden;box-shadow:0 5px 10px #14291c24;container-type:inline-size}.card.red{color:var(--red)}.hand-card{width:var(--card-w);height:calc(var(--card-w) * 1.4);transform-origin:50% 115%;will-change:transform;padding:0;transition:transform .24s,filter .15s,box-shadow .15s;position:absolute;top:17px;left:50%;box-shadow:0 5px 10px #14291c2b}.hand-card:active:not(:disabled){filter:brightness(.95)}.hand-card:focus-visible{outline-offset:2px;z-index:10!important}.hand-card:disabled{filter:saturate(.8);cursor:default}.hand-card:enabled{box-shadow:0 7px 12px #14291c35}.corner{letter-spacing:-.6px;flex-direction:column;align-items:center;font-size:clamp(9px,20cqw,26px);font-weight:600;line-height:1;display:flex;position:absolute;top:5%;left:7%}.corner .small-suit{letter-spacing:0;margin-top:2px;font-size:.78em;line-height:1.1}.corner.bottom{inset:auto 7% 5% auto;transform:rotate(180deg)}.pips{font-size:clamp(8px,19cqw,25px);position:absolute;inset:24% 32%}.pip{line-height:1;position:absolute;transform:translate(-50%,-50%)}.pip.flip{transform:translate(-50%,-50%)rotate(180deg)}.ace-mark{justify-content:center;align-items:center;font-size:clamp(24px,57cqw,75px);display:flex;position:absolute;inset:0}.royal{border:1px solid;border-radius:3px;flex-direction:column;justify-content:center;align-items:center;line-height:1;display:flex;position:absolute;inset:23%}.royal-rank{font-size:clamp(16px,37cqw,48px);font-weight:400}.royal-suit{margin-top:4px;font-size:clamp(9px,20cqw,24px)}.royal:before,.royal:after{content:"◆";background:var(--card);padding:0 2px;font-size:6px;position:absolute;left:50%;transform:translate(-50%)}.royal:before{top:-4px}.royal:after{bottom:-4px}.pending-caption{letter-spacing:.1px;color:#47604c;text-align:center;background:#f6efdaef;padding:8px 3px;font-family:system-ui,sans-serif;font-size:10px;font-weight:600;position:absolute;bottom:0;left:0;right:0}.hand-hint{color:var(--muted);min-height:18px;margin:0;font-size:12px;line-height:1.5}.hand-empty{flex-direction:column;justify-content:center;align-items:center;gap:10px;height:100%;padding:14px 6px;display:flex}.complete-check{color:#3b6a49;background:#dce6d6;border-radius:50%;place-items:center;width:35px;height:35px;font-size:17px;display:grid}.hand-empty strong{font-family:Georgia,serif;font-size:23px;font-weight:400;line-height:1.25}.deal-again{color:var(--ink);background:0 0;border:none;border-bottom:1px solid #839580;min-height:40px;padding:4px 10px;font-size:13px}.deal-again:disabled{opacity:.45}.footer{color:#7b877a;letter-spacing:1.5px;flex:none;justify-content:center;align-items:center;gap:10px;padding-top:3px;font-size:9px;display:flex}.footer .suits{letter-spacing:5px;font-family:Georgia,serif;font-size:13px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@keyframes connection-pulse{0%,to{opacity:1}50%{opacity:.35}}@keyframes matching-orbit{to{transform:rotate(360deg)}}@keyframes card-arrival{0%{opacity:0;transform:translateY(13px)scale(.96)}to{opacity:1;transform:translateY(0)scale(1)}}@media (min-width:580px){.app{gap:18px;padding:28px 32px 18px}.header{padding:0 6px}h1{font-size:37px}.meta{padding:0 8px}.table{border-radius:32px}.table:before{border-radius:22px;inset:14px}.room-bar{padding:3px 8px}.room-code{gap:11px}.room-code strong{letter-spacing:3px;font-size:17px}.room-code-label{font-size:10px}.room-code svg{width:15px;height:15px}.copy-label{font-size:11px}.room-tools{gap:23px}.connection,.text-button{font-size:11px}.lobby-table{gap:24px;min-height:580px;padding:37px 40px 28px}.lobby-intro h2{font-size:49px}.lobby-intro p{font-size:14px}.lobby-intro .empty-emblem{margin-top:12px}.lobby-controls{width:340px}.lobby-steps{gap:45px;font-size:11px}.game-table{gap:17px;min-height:425px;padding:27px 33px 24px}.table-count{font-size:11px}.opponent-panel{gap:15px;font-size:11px}.table-content{min-height:238px;padding:4px 0 10px}.played-grid{gap:17px 15px;max-width:520px}.played-owner{gap:5px;margin-top:10px;font-size:10px}.played-owner i{width:5px;height:5px}.move-number{padding-left:2px;font-size:8px}.empty-slot{border-radius:8px;margin-bottom:20px}.empty-slot span{font-size:9px;bottom:9px}.table-bottom{letter-spacing:2px;font-size:9px}.empty-title{font-size:29px}.empty-detail{font-size:13px}.empty-emblem{width:62px;height:80px;margin-bottom:9px;font-size:43px}.hand-header{padding:0 26px}.turn-status{margin-bottom:16px}.turn-pill{min-height:33px;font-size:12px}.hand-hint{font-size:13px}.footer{padding-top:5px}}@media (max-width:380px){.app{gap:12px;padding:16px 14px 12px}.brand{gap:8px}.brand small{letter-spacing:2px;font-size:8px}h1{font-size:29px}.reset{min-height:43px;padding:0 12px}.edition{letter-spacing:1.4px;padding:8px 9px;font-size:8px}.meta{font-size:10px}.room-code{gap:6px}.room-code strong{letter-spacing:1.6px;font-size:14px}.room-code-label{font-size:8px}.copy-label{display:none}.room-tools{gap:12px}.room-bar{gap:3px 10px}.connection{font-size:9px}.text-button{font-size:10px}.lobby-table{gap:22px;min-height:540px;padding:26px 24px 23px}.lobby-intro h2{font-size:35px}.lobby-intro p{font-size:12px}.lobby-steps{gap:14px;font-size:9px}.lobby-steps span{gap:5px}.game-table{gap:13px;min-height:340px;padding:22px 20px 20px}.table-content{min-height:186px}.played-grid{gap:12px 7px}.played-owner{gap:2px;font-size:7px}.played-owner i{width:3px;height:3px}.move-number{font-size:6px}.table-card{border-radius:5px}.empty-title{font-size:22px}.empty-detail{font-size:11px}.turn-status{margin-bottom:12px}.hand-hint{font-size:11px}.hand-empty strong{font-size:21px}.footer{letter-spacing:1.1px;font-size:8px}}@media (min-width:680px) and (max-height:600px){.app{gap:10px;padding:16px 24px 12px}.header{padding:0}.brand small{font-size:8px}.mark{width:37px;height:40px;transform:scale(.85)}h1{font-size:28px}.reset{min-height:39px}.room-bar{padding:0 4px}.room-code,.text-button{min-height:37px}.play-area{flex-direction:row;gap:20px}.game-table{flex:1.3;gap:11px;min-height:302px;padding:20px 24px 18px}.hand-panel{flex:1;align-self:center}.table-content{min-height:164px;padding:0 0 3px}.played-grid{gap:11px 9px;max-width:340px}.table-top .eyebrow,.table-count{font-size:9px}.table-bottom{font-size:8px}.table .empty-emblem{width:40px;height:52px;margin-bottom:2px;font-size:29px}.table .empty{gap:8px;padding:6px 0}.empty-title{font-size:23px}.empty-detail{font-size:11px}.opponent-panel{min-height:25px;font-size:9px}.card-back{width:17px;height:24px;font-size:9px}.opponent-backs{min-height:26px}.played-owner{gap:3px;margin-top:7px;font-size:8px}.played-owner i{width:3px;height:3px}.move-number{padding:0;font-size:6px}.empty-slot{margin-bottom:15px}.hand-header{padding:0 6px}.hand-hint{font-size:11px}.turn-status{margin-bottom:14px}.turn-pill{min-height:30px;font-size:11px}.footer{padding-top:0;font-size:8px}.lobby-table{grid-template-columns:1fr 1fr;align-items:center;gap:15px 38px;min-height:380px;padding:24px 30px;display:grid}.lobby-eyebrow{grid-column:1/-1}.lobby-intro{gap:14px}.lobby-intro h2{font-size:35px}.lobby-intro p{font-size:12px}.lobby-controls{width:100%;max-width:330px}.lobby-table>.table-bottom{grid-column:1/-1}.lobby-steps{padding:2px 0}.loading-table{min-height:300px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
