:root{--bg:#0f1a14;--surface:#17251d;--surface-2:#1f3127;--border:#2a4033;--text:#f4f7f5;--muted:#9bb0a3;--accent:#3ddc84;--accent-text:#0b1a10;--danger:#ff6b6b;--radius:14px;--tabbar-h:64px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.4}h1{margin:8px 0 16px;font-size:24px}h2{margin:24px 0 10px;font-size:18px}p{margin:0 0 8px}.muted{color:var(--muted)}.small{font-size:14px}.error{color:var(--danger);font-size:14px}.app{min-height:100%}.content{max-width:640px;padding:calc(16px + env(safe-area-inset-top)) 16px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));margin:0 auto}.tabbar{height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);justify-content:space-around;display:flex;position:fixed;inset:auto 0 0}.tab{color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;min-width:0;font-size:12px;text-decoration:none;display:flex}.tab span{white-space:nowrap;letter-spacing:-.2px;font-size:11px}.tab.active{color:var(--accent)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:12px;padding:16px}.card.empty{color:var(--muted);text-align:center}.row{gap:10px;margin-top:12px;display:flex}.row>*{flex:1}.stack{flex-direction:column;gap:10px;display:flex}.btn{border:1px solid var(--border);background:var(--surface-2);min-height:48px;color:var(--text);font:inherit;cursor:pointer;border-radius:12px;padding:0 16px;font-weight:600}.btn:disabled{opacity:.45;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn-danger{color:var(--danger)}.badge{background:var(--surface-2);color:var(--muted);border-radius:99px;padding:2px 10px;font-size:12px;display:inline-block}.form{flex-direction:column;gap:14px;width:100%;display:flex}.form label{color:var(--muted);flex-direction:column;gap:6px;font-size:14px;display:flex}input{border:1px solid var(--border);background:var(--bg);min-height:48px;color:var(--text);font:inherit;border-radius:12px;padding:0 14px}input:focus{outline:2px solid var(--accent);outline-offset:-1px}.login{text-align:center;flex-direction:column;justify-content:center;align-items:center;max-width:400px;min-height:100%;margin:0 auto;padding:32px 16px;display:flex}.login h1{letter-spacing:1px;margin:12px 0 4px}.login-logo{width:96px;height:96px}.login .form{text-align:left;margin:24px 0 16px}.profile{align-items:center;gap:14px;display:flex}.avatar{background:var(--surface-2);width:64px;height:64px;color:var(--accent);border-radius:50%;flex-shrink:0;place-items:center;font-size:22px;font-weight:700;display:grid}.name{font-size:17px;font-weight:600}.switch{color:var(--muted);align-items:center;gap:10px;font-size:14px;display:flex}.switch input{width:20px;height:20px;min-height:auto;accent-color:var(--accent)}a.btn{justify-content:center;align-items:center;text-decoration:none;display:flex}.full{width:100%}.card .btn.full+.btn.full{margin-top:10px}.btn-small{min-height:40px;padding:0 12px;font-size:14px}.btn-selected{border-color:var(--accent);color:var(--accent)}.btn-ghost{color:var(--muted);background:0 0;border:none;width:100%}.center{text-align:center}.success{color:var(--accent);font-size:14px}.link{color:var(--accent);font:inherit;cursor:pointer;text-align:left;background:0 0;border:none;padding:4px 0}.dot{border:1px solid #ffffff4d;border-radius:50%;flex-shrink:0;width:12px;height:12px;display:inline-block}select{border:1px solid var(--border);background:var(--bg);min-height:48px;color:var(--text);font:inherit;border-radius:12px;width:100%;padding:0 12px}.form-label{color:var(--muted);flex-direction:column;gap:6px;font-size:14px;display:flex}.form .radio{color:var(--text);flex-direction:row;align-items:center;gap:10px;font-size:16px}.radio input{width:20px;height:20px;min-height:auto;accent-color:var(--accent)}.back-header{align-items:center;gap:4px;margin:0 0 12px -8px;display:flex}.back-header h1{margin:0;font-size:22px}.back{width:40px;height:40px;color:var(--accent);cursor:pointer;background:0 0;border:none;font-size:34px;line-height:1}.game-info{margin:-8px 0 16px}.game-info>div:first-child{font-weight:600}.game-info>div:first-child:first-letter{text-transform:uppercase}.list{flex-direction:column;gap:6px;margin-bottom:12px;display:flex}.player-row,.nav-row,.history-row,.match{background:var(--surface);border:1px solid var(--border);width:100%;min-height:56px;color:var(--text);font:inherit;text-align:left;cursor:pointer;border-radius:12px;align-items:center;gap:12px;padding:8px 12px;text-decoration:none;display:flex}.player-row:disabled,.match:disabled{cursor:default;opacity:1}.player-row.me{border-color:var(--accent)}.num{text-align:right;width:22px;color:var(--muted);font-variant-numeric:tabular-nums}.player-name{flex:1;min-width:0}.pos{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:8px;padding:2px 8px;font-size:12px;font-weight:600}.cap{border-radius:50%;place-items:center;width:24px;height:24px;font-size:12px;font-weight:800;display:grid}.nav-row{justify-content:space-between;padding:14px 16px}.chevron{color:var(--muted);font-size:26px}.avatar{object-fit:cover;color:#fff;border-radius:50%;flex-shrink:0;place-items:center;font-weight:700;display:grid}.admin-box{border-style:dashed;margin-top:20px}.admin-box .btn{margin-top:10px}.demo-box{text-align:left;flex-direction:column;gap:2px;width:100%;margin-top:16px;display:flex}.sheet-backdrop{z-index:20;background:#0000008c;justify-content:center;align-items:flex-end;animation:.15s ease-out fade;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:640px;padding:8px 16px calc(12px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;flex-direction:column;gap:10px;animation:.2s ease-out up;display:flex}.sheet-handle{background:var(--border);border-radius:2px;width:40px;height:4px;margin:0 auto 6px}.sheet-title{font-size:18px;font-weight:700}.sheet-section{flex-direction:column;gap:10px;display:flex}.colors{grid-template-columns:repeat(8,1fr);gap:8px;display:grid}.color{aspect-ratio:1;cursor:pointer;border:2px solid #ffffff40;border-radius:50%;font-weight:800}.color.active{outline:3px solid var(--accent);outline-offset:2px}.color:disabled{opacity:.2;cursor:default}@keyframes up{0%{transform:translateY(100%)}}@keyframes fade{0%{opacity:0}}.toasts{top:calc(8px + env(safe-area-inset-top));z-index:30;pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed;left:8px;right:8px}.toast{pointer-events:auto;background:#28342df7;border-radius:16px;align-items:flex-start;gap:12px;width:100%;max-width:420px;padding:12px 14px;animation:.25s ease-out drop;display:flex;box-shadow:0 8px 24px #0006}.toast img{border-radius:8px;width:36px;height:36px}.toast-title{font-size:15px;font-weight:700}.toast-text{color:var(--muted);font-size:14px}@keyframes drop{0%{transform:translateY(-120%)}}.turn{background:var(--surface);border-radius:var(--radius);text-align:center;border:2px solid;margin-bottom:12px;padding:14px 16px}.turn-name{justify-content:center;align-items:center;gap:8px;margin:4px 0;font-size:20px;font-weight:700;display:flex}.turn-name .dot{width:16px;height:16px}.teams-grid{gap:10px;margin-bottom:12px;display:grid}.teams-grid.cols-2{grid-template-columns:1fr 1fr}.team-col{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;margin-bottom:10px;display:flex;overflow:hidden}.teams-grid .team-col{margin-bottom:0}.team-head{padding:8px 12px;font-weight:700}.team-member{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:6px;padding:8px 12px;font-size:14px;display:flex}.team-member .pos{margin-left:auto}.team-col .btn-small{margin:auto 8px 8px}.tabs{background:var(--surface);border-radius:12px;margin-bottom:12px;padding:4px;display:flex}.tabs button{min-height:40px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:9px;flex:1;font-weight:600}.tabs button.active{background:var(--surface-2);color:var(--text)}.chat{flex-direction:column;gap:8px;display:flex}.msg{align-items:flex-end;gap:8px;max-width:85%;display:flex}.msg.mine{align-self:flex-end}.bubble{background:var(--surface);border-radius:16px 16px 16px 4px;padding:8px 12px}.msg.mine .bubble{background:#1f5a3a;border-radius:16px 16px 4px}.msg-author{color:var(--accent);font-size:12px;font-weight:700}.msg-time{color:var(--muted);text-align:right;font-size:11px}.chat-input{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.chat-input input{flex:1;min-width:0}.chat-input .send,.chat-input .mic{flex-shrink:0;width:52px;padding:0;font-size:20px}.voice-error{width:100%;margin:0}.voice{align-items:center;gap:10px;min-width:200px;padding:2px 0;display:flex}.voice-play{background:var(--accent);width:40px;height:40px;color:var(--accent-text);cursor:pointer;border:none;border-radius:50%;flex-shrink:0;font-size:14px;font-weight:800}.voice-bar{background:#fff3;border-radius:2px;flex:1;height:4px;overflow:hidden}.voice-bar>div{background:var(--accent);height:100%}.voice-time{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px}.voice-rec{flex:1;align-items:center;gap:10px;min-height:48px;display:flex}.voice-rec .voice-time{flex:1}.rec-dot{background:var(--danger);border-radius:50%;width:12px;height:12px;animation:1s infinite blink}@keyframes blink{50%{opacity:.2}}.tools{margin:0 0 10px}.pitch{touch-action:none;-webkit-user-select:none;user-select:none;border-radius:12px;width:100%;max-height:55vh;display:block}.token{cursor:grab}.match{justify-content:space-between}.match>:first-child{flex:1}.match>:last-child{text-align:right;flex:1;justify-content:flex-end}.score{font-variant-numeric:tabular-nums;white-space:nowrap;padding:0 8px;font-size:18px;font-weight:800}.team-tag{align-items:center;gap:6px;display:inline-flex}.table-wrap{padding:8px;overflow-x:auto}.table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:14px}.table th{color:var(--muted);font-size:12px;font-weight:600}.table th,.table td{text-align:center;padding:8px 4px}.table tr+tr td{border-top:1px solid var(--border)}.table .left{text-align:left}.score-edit{align-items:flex-end;gap:10px;display:flex}.score-edit label{flex-direction:column;flex:1;gap:6px;display:flex}.score-edit input{text-align:center;width:100%;font-size:24px;font-weight:700}.score-edit>span{padding-bottom:10px;font-size:24px;font-weight:700}.history-row{justify-content:space-between}.places{gap:6px;display:flex}.place-chip{align-items:center;gap:4px;font-size:14px;font-weight:700;display:inline-flex}.photo-pick{cursor:pointer;align-items:center}.stepper{align-items:center;gap:16px;display:flex}.stepper .btn{width:56px;font-size:22px}.stepper span{color:var(--text);text-align:center;min-width:40px;font-size:24px;font-weight:700}.alert{border-radius:var(--radius);background:#3a2a14;border:1px solid #6b4a1c;border-left:6px solid;flex-direction:column;gap:4px;margin-bottom:12px;padding:12px 14px;display:flex}.alert-title{color:#ffcc80;align-items:center;gap:8px;font-weight:700;display:flex}.since-date{display:block}.weeks{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:14px;font-weight:700}.weeks.warn{color:#ffcc80}.laundry-now{margin:4px 0 12px}.history-row:disabled{cursor:default}.sheet-list{flex-direction:column;gap:6px;max-height:60vh;display:flex;overflow-y:auto}.guest-plus{background:var(--surface-2);width:40px;height:40px;color:var(--accent);font-size:15px}.round-title{margin:4px 0 0 4px;font-weight:600}.match-by{color:var(--muted);text-align:right;padding:2px 6px 0;font-size:12px}.offline{z-index:25;padding:8px 16px;padding-top:calc(8px + env(safe-area-inset-top));color:#ffcc80;text-align:center;background:#6b4a1c;font-size:14px;position:sticky;top:0}.steps{flex-direction:column;gap:4px;margin:0;padding-left:20px;display:flex}.presence{flex-wrap:wrap;align-items:center;gap:10px;min-height:32px;margin:-4px 0 10px;display:flex}.presence-item{align-items:center;gap:4px;display:inline-flex}.presence-item .avatar{font-size:11px!important}
