:root{color-scheme:dark;--bg:#08171d;--panel:#13282d;--panel2:#19363b;--line:#315057;--cream:#f4f0e7;--muted:#a9bdc0;--gold:#f1c576;--green:#18806a;--red:#c45456;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 75% 5%,#1c4141 0,transparent 30%),var(--bg);color:var(--cream)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.46}.hidden{display:none!important}.shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;border-bottom:1px solid #ffffff16;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1200px)/2));gap:16px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--cream);font-weight:800;letter-spacing:.11em;white-space:nowrap}.brand img{object-fit:contain}.brand b{color:var(--gold)}.account-bar,.head-actions,.game-meta,.game-top,.section-head{display:flex;align-items:center;gap:12px}.account-bar{justify-content:end}main{width:min(1200px,100% - 40px);margin:0 auto;flex:1}h1,h2,p{margin-top:0}h1{font-size:clamp(2rem,4vw,4.15rem);line-height:1.08;letter-spacing:-.04em}h2{font-size:1.45rem;letter-spacing:-.02em}.muted,.hint,.footnote{color:var(--muted)}.eyebrow{font-size:.72rem;letter-spacing:.22em;font-weight:800;color:var(--gold)}.pill{border:1px solid var(--line);border-radius:100px;padding:8px 13px;font-size:.76rem;letter-spacing:.08em;white-space:nowrap}.pill strong{color:var(--gold);font-size:1rem;margin-left:6px}.primary,.secondary,.text-button,.close{border:0;border-radius:11px;padding:12px 17px;font-weight:750}.primary{background:linear-gradient(135deg,#f1c576,#d99d50);color:#172321;box-shadow:0 8px 22px #0004}.primary:hover{filter:brightness(1.08)}.secondary{background:#244448;color:var(--cream);border:1px solid #42676a}.secondary:hover{background:#31585b}.text-button{background:transparent;color:var(--gold);padding:9px}.text-button:hover{text-decoration:underline}.wide{width:100%}.auth-layout{display:grid;grid-template-columns:1.2fr minmax(310px,.8fr);gap:35px;align-items:center;min-height:calc(100vh - 145px);padding:55px 0}.hero{min-height:520px;padding:clamp(26px,5vw,60px);display:flex;flex-direction:column;justify-content:end;border-radius:26px;background:linear-gradient(90deg,#07151de8,#0b1b2080),url('/lobby.png') center/cover;box-shadow:0 24px 65px #0007}.hero h1{max-width:620px;margin:14px 0}.hero p{max-width:490px;line-height:1.6;font-size:1.1rem}.hero-note{color:var(--gold);font-size:.82rem;margin-top:22px}.panel,.modal{background:linear-gradient(160deg,#1b3539,#10262c);border:1px solid #4b68664d;border-radius:22px;box-shadow:0 18px 50px #0005}.auth-panel{padding:32px}.tabs{display:grid;grid-template-columns:1fr 1fr;background:#0c2227;border-radius:12px;padding:4px;margin-bottom:32px}.tabs button{border:0;background:none;color:var(--muted);padding:11px;border-radius:9px;font-weight:700}.tabs button.active{background:#355254;color:var(--cream)}.auth-panel h2{margin-bottom:7px}.auth-panel p{line-height:1.5}.auth-panel form{margin-top:22px}label{display:block;font-size:.85rem;font-weight:700;color:#d6e1df;margin-bottom:17px}input,select{display:block;width:100%;margin-top:8px;padding:13px 14px;background:#0d2228;color:var(--cream);border:1px solid #49646b;border-radius:10px;outline:none}input:focus,select:focus{border-color:var(--gold);box-shadow:0 0 0 3px #f1c5762a}.hint{font-size:.77rem;margin:15px 0 0}.lobby-head{display:flex;align-items:end;justify-content:space-between;gap:25px;padding:65px 0 45px}.lobby-head h1{margin:12px 0}.section-head{justify-content:space-between;border-top:1px solid var(--line);padding:28px 0 12px}.section-head h2{margin:0}.table-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:16px}.table-card{padding:24px;border-radius:18px;background:linear-gradient(145deg,#173438,#10272c);border:1px solid #45625b75}.table-card h3{font-size:1.28rem;margin:14px 0 6px}.table-card p{color:var(--muted);line-height:1.5}.table-card .card-row{display:flex;justify-content:space-between;gap:10px;color:#d5e2dd;font-size:.9rem;margin:12px 0}.table-card .card-row b{color:var(--gold)}.table-card button{width:100%;margin-top:15px}.empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:18px;padding:42px;text-align:center;color:var(--muted)}.footnote{font-size:.79rem;line-height:1.5;margin:28px 0 45px}.game-top{padding:28px 0;justify-content:space-between}.game-top h1{font-size:1.75rem;margin:4px 0 0}.game-meta{flex-wrap:wrap;margin-bottom:20px}.clock{color:var(--gold)}.seats{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;min-height:112px;margin-bottom:15px}.seat{min-width:160px;max-width:220px;flex:1;padding:13px 16px;border:1px solid var(--line);border-radius:16px;background:#142b30}.seat.acting{border-color:var(--gold);background:#3d3b2d}.seat.mine{box-shadow:inset 0 0 0 1px #35ab86}.seat .seat-name{font-weight:800}.seat .seat-stack{color:var(--gold);font-size:1.13rem;margin:5px 0}.seat .seat-state{color:var(--muted);font-size:.75rem}.felt{min-height:245px;border:7px solid #ad824b;border-radius:120px;background:radial-gradient(ellipse at 50% 45%,#21725e,#105041 65%,#0b3832);box-shadow:0 18px 30px #0008,inset 0 0 0 2px #e6ba6e66;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;padding:30px;text-align:center}.felt .eyebrow{color:#f9d495}.cards{display:flex;gap:7px;min-height:66px;align-items:center}.card{width:48px;height:64px;background:#f7f3e9;color:#14262c;border-radius:7px;display:grid;place-items:center;font-weight:900;font-size:1.25rem;box-shadow:0 4px 8px #0005}.card.red{color:#bd3544}.card.back{background:repeating-linear-gradient(45deg,#31545a,#31545a 5px,#40646a 5px,#40646a 10px);border:2px solid #aac1bc;color:#e1d0a1}.pot{background:#0c2a27bf;border-radius:30px;padding:8px 24px;color:#d3e6db;font-size:.85rem;letter-spacing:.13em}.pot strong{font-size:1.3rem;color:var(--gold);margin-left:8px}.player-area{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0}.player-area .eyebrow{display:block;margin-bottom:9px}.game-message{max-width:65%;text-align:right;color:#e9d8ae;font-weight:650}.controls{min-height:70px;background:#122c31;border:1px solid var(--line);border-radius:15px;padding:15px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px}.controls label{margin:0;min-width:140px}.controls input{margin-top:5px;padding:8px}.controls .danger{border:1px solid #c45456;background:#512b2e;color:#fff;border-radius:10px;padding:12px 18px;font-weight:750}.status{position:fixed;bottom:22px;right:22px;max-width:min(420px,calc(100vw - 44px));background:#24454b;color:#fff;border:1px solid #76a49b;border-radius:12px;padding:14px 18px;box-shadow:0 12px 40px #0008;z-index:5}.status.error{background:#5b3033;border-color:#db777b}footer{border-top:1px solid #ffffff17;padding:22px max(24px,calc((100vw - 1200px)/2));font-size:.72rem;color:var(--muted);letter-spacing:.12em;display:flex;justify-content:space-between;gap:10px}.modal{color:var(--cream);width:min(440px,calc(100vw - 32px));padding:28px}.modal::backdrop{background:#020d10cc;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:25px}.modal-head h2{margin:7px 0 0}.close{background:none;color:var(--muted);font-size:1.6rem;padding:0 5px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:800px){.auth-layout{grid-template-columns:1fr;padding:22px 0;gap:18px}.hero{min-height:310px}.lobby-head{align-items:start;flex-direction:column;padding:40px 0 25px}.game-top{flex-wrap:wrap}.game-top>div{order:-1;width:100%}.felt{border-radius:70px;min-height:210px}.player-area{align-items:start}.game-message{font-size:.85rem}}
@media(max-width:520px){main{width:min(100% - 24px,1200px)}.topbar{height:66px;padding:0 12px}.brand{font-size:.8rem;letter-spacing:.04em}.brand img{width:32px;height:32px}.account-bar .pill{font-size:.6rem;padding:7px}.account-bar .pill strong{font-size:.8rem}.account-bar{gap:3px}.head-actions{width:100%;flex-wrap:wrap}.head-actions button{flex:1}.auth-panel{padding:22px}.hero{padding:25px}.felt{border-width:5px;padding:14px}.card{width:38px;height:53px;font-size:1rem}.seat{min-width:130px}.player-area{flex-direction:column}.game-message{text-align:left;max-width:100%}.game-top{gap:2px}footer{font-size:.6rem;flex-direction:column}.controls button{flex:1}.controls label{width:100%}}
.account-action{width:min(520px,100%);margin:clamp(40px,9vh,110px) auto;padding:clamp(24px,5vw,42px)}.account-action h1{font-size:2.4rem;margin:13px 0}.account-action p{color:var(--muted);line-height:1.6}.account-action strong{color:var(--cream)}.account-action form{margin:24px 0}.account-action>.text-button{display:block;margin-top:15px}
