:root{--bg:#0e0f12;--card:#17191e;--raised:#20232a;--line:#2b2f37;--line-strong:#3a3f49;--text:#ecedef;--muted:#9ba1ab;--gold:#f5b841;--gold-soft:#f7c96a;--on-gold:#1a1406;--radius:14px;--radius-sm:10px;--tabbar-h:68px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.45}*{box-sizing:border-box}html,body{background:#0e0f12;margin:0}body{-webkit-tap-highlight-color:transparent;min-height:100dvh}h1,h2,h3,p{margin:0}button,input,select{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.app{max-width:560px;min-height:100dvh;margin:0 auto}.topbar{z-index:5;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;border-bottom:1px solid var(--line);background:#0e0f12;justify-content:space-between;align-items:center;gap:12px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:10px;min-width:0;display:flex}.brand h1{letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;font-size:1.25rem;font-weight:700;overflow:hidden}.brand-suits{color:var(--gold);letter-spacing:2px;font-size:1.1rem}.topbar-actions{gap:4px;display:flex}.content{padding:16px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom))}.stack{flex-direction:column;gap:12px;display:flex}.stack-sm{flex-direction:column;gap:8px;display:flex}.split{flex-wrap:wrap;align-items:flex-start;gap:12px;display:flex}.grow{flex:1 1 0;min-width:0}.card{border:1px solid var(--line);border-radius:var(--radius);background:#17191e;padding:16px}form.card,.card.player{flex-direction:column;gap:12px;display:flex}.card-head{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:4px;display:flex}.card-title{margin-bottom:4px;font-size:1rem;font-weight:650}.label{color:var(--muted);letter-spacing:.01em;font-size:.8125rem;font-weight:600;display:block}.muted{color:var(--muted)}.small{font-size:.875rem}.gold{color:var(--gold)}.stat{grid-template-columns:auto auto;gap:2px 12px;margin:0;padding:2px 0 0;font-size:.875rem;display:grid}.stat dt{color:var(--muted)}.stat dd{text-align:right;font-variant-numeric:tabular-nums;margin:0;font-weight:650}.field{flex-direction:column;gap:6px;display:flex}input[type=text],select{border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:#0e0f12;width:100%;min-height:48px;padding:10px 14px;font-size:1rem;transition:border-color .15s}select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,#9ba1ab 50%),linear-gradient(135deg,#9ba1ab 50%,#0000 50%);background-position:calc(100% - 20px),calc(100% - 15px);background-repeat:no-repeat;background-size:5px 5px;padding-right:40px}input::placeholder{color:#7d838d}input[type=text]:focus,select:focus{border-color:var(--gold);outline:none;box-shadow:0 0 0 3px #f5b8414d}input[aria-invalid=true]{border-color:var(--gold-soft)}.inline-form{align-items:flex-end;gap:8px;display:flex}.row-field{flex-direction:row;align-items:center;gap:12px}.row-field .label{color:var(--text);flex:1;font-size:.9375rem;font-weight:500}.row-field input{width:40%;max-width:160px}.btn{border-radius:var(--radius-sm);cursor:pointer;white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;min-width:44px;min-height:48px;padding:10px 16px;font-weight:650;transition:background-color .15s,transform .1s;display:inline-flex}.btn:active{transform:scale(.98)}.btn-primary{color:var(--on-gold);background:#f5b841}.btn-primary:hover{background:#f7c35e}.btn-primary:disabled{opacity:.4;cursor:not-allowed;background:#f5b841;transform:none}.btn-secondary{background:var(--raised);border-color:var(--line-strong)}.btn-secondary:hover{background:#292d35}.btn-ghost{color:var(--text);background:0 0}.btn-ghost:hover{background:var(--raised)}.btn-block{width:100%}.btn-icon{width:44px;height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;transition:background-color .15s;display:inline-flex}.btn-icon:hover{background:var(--raised);color:var(--text)}.back{align-self:flex-start;padding-left:8px}.icon{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:22px;height:22px}.avatar{color:#0e0f12;letter-spacing:.02em;border:3px dashed #ffffffe6;border-radius:50%;flex:none;justify-content:center;align-items:center;width:40px;height:40px;font-size:.75rem;font-weight:800;display:inline-flex;box-shadow:inset 0 0 0 3px #0e0f1240}.player-head{align-items:center;gap:12px;display:flex}.player-name{font-size:1.0625rem;font-weight:700}.amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.amount.win{color:#3ddc84}.amount.loss{color:#ff5c6c}.amount.even{color:var(--muted)}.buyins{flex-wrap:wrap;gap:8px;margin:-4px 0 0;padding:0;list-style:none;display:flex}.buyin{background:var(--raised);border:1px solid var(--line-strong);font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:2px;padding-left:14px;font-weight:600;display:inline-flex}.warning{border-radius:var(--radius);color:var(--gold-soft);background:#1f1b12;border:1px solid #f5b8418c;align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.warning p{color:#d9cdb3;margin-top:2px;font-size:.875rem}.error{border-radius:var(--radius-sm);color:#ffc46b;background:#241d10;gap:8px;padding:10px 12px;font-size:.9375rem;display:flex}.error:before{content:"!";color:#241d10;background:#ffc46b;border-radius:50%;flex:none;justify-content:center;align-items:center;width:20px;height:20px;font-size:.8125rem;font-weight:800;display:inline-flex}.hint-warn{color:var(--gold-soft);font-size:.9375rem}.rounds{margin:0;padding:0;list-style:none}.round{border-top:1px solid var(--line);gap:8px;padding:12px 0;display:flex}.round:first-child{border-top:0;padding-top:4px}.round-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.round-top{justify-content:space-between;gap:8px;display:flex}.round-name{overflow-wrap:anywhere;font-weight:700}.round-actions{align-items:flex-start;display:flex}.pills{flex-wrap:wrap;gap:8px;display:flex}.pill{border:1px solid var(--line-strong);min-width:44px;min-height:44px;color:var(--muted);cursor:pointer;background:0 0;border-radius:999px;padding:8px 16px;font-weight:600;transition:background-color .15s,color .15s}.pill[aria-pressed=true]{color:var(--on-gold);background:#f5b841;border-color:#f5b841}.switch{cursor:pointer;align-items:center;gap:12px;min-height:48px;font-weight:600;display:flex}.switch input{appearance:none;background:var(--line-strong);cursor:pointer;border-radius:999px;flex:none;width:46px;height:28px;margin:0;transition:background-color .15s;position:relative}.switch input:after{content:"";background:var(--text);border-radius:50%;width:22px;height:22px;transition:transform .15s;position:absolute;top:3px;left:3px}.switch input:checked{background:#f5b841}.switch input:checked:after{background:#0e0f12;transform:translate(18px)}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.dialog-actions .btn{flex:140px}.rows{margin:0;padding:0;list-style:none}.row{border-top:1px solid var(--line);align-items:center;gap:12px;min-height:52px;padding:6px 0;display:flex}.row:first-child{border-top:0}.row-name{overflow-wrap:anywhere;flex:0 auto;min-width:0;font-weight:600}.row>.amount:last-child{margin-left:auto}.payment{flex-wrap:wrap;gap:6px}.winner{border-color:#f5b84173}.winner-body{align-items:center;gap:12px;margin-top:8px;display:flex}.winner-name{overflow-wrap:anywhere;flex:1;min-width:0;font-size:1.375rem;font-weight:800}.winner-amount{text-align:right;font-size:1.125rem}.feedback{text-align:center;color:var(--gold-soft);font-weight:600}.history-row{gap:8px}.view-sub{font-size:1.125rem;font-weight:700}.empty{text-align:center;border:1px dashed var(--line-strong);border-radius:var(--radius);flex-direction:column;align-items:center;gap:6px;padding:36px 16px;display:flex}.empty-suit{color:var(--gold);opacity:.85;font-size:2rem}.empty-title{font-size:1.0625rem;font-weight:700}.tabbar{z-index:5;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);background:#0e0f12;position:fixed;bottom:0;left:0;right:0}.tabs{max-width:560px;margin:0 auto;display:flex}.tab{min-height:var(--tabbar-h);color:var(--muted);cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.8125rem;font-weight:650;transition:color .15s;display:flex;position:relative}.tab:before{content:"";background:0 0;border-radius:0 0 3px 3px;height:3px;position:absolute;top:0;left:28%;right:28%}.tab[aria-selected=true]{color:#f5b841}.tab[aria-selected=true]:before{background:#f5b841}.scrim{z-index:10;background:#0009;justify-content:center;align-items:flex-end;padding:16px;display:flex;position:fixed;inset:0}.dialog{background:var(--card);border:1px solid var(--line-strong);border-radius:18px;flex-direction:column;gap:10px;width:100%;max-width:420px;padding:20px;display:flex}.dialog h2{font-size:1.125rem}@media (width>=600px){.scrim{align-items:center}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:0s!important;animation:none!important}.btn:active{transform:none}}
