:root{color:#101010;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg:#f5f5f3;--card:#fffffff0;--card-solid:#fff;--text:#101010;--muted:#6d6d6d;--line:#deded9;--soft:#efefeb;--accent:#00a5c5;--accent-2:#16afbe;--dark:#00a5c5;--dark-2:#16afbe;--ink:#00a5c5;--accent-glow:#00a5c52e;--shadow:0 18px 45px #00000014;--shadow-soft:0 12px 30px #00000014;--shadow-strong:0 18px 60px #00000024;--site-header-height:64px;--radius:18px;--radius-soft:14px;--radius-pill:16px;--font-normal:400;--font-medium:500;--font-semibold:700;--font-bold:800;--font-heavy:850;background:#f5f5f3;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{width:100%;min-height:100%}html{scroll-behavior:smooth}body{background:radial-gradient(circle at top left, #fff 0, var(--bg) 46%, #ececea 100%);min-width:0;color:var(--text);font-family:inherit;font-size:16px;font-weight:var(--font-normal);margin:0;line-height:1.5;overflow:hidden auto}button,input,select,textarea,a{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit}img,svg,canvas{max-width:100%}h1,h2,h3,h4,p{overflow-wrap:anywhere}h1,h2,h3,h4{color:var(--text);font-weight:var(--font-heavy);letter-spacing:-.028em}h1{margin:0;font-size:clamp(1.65rem,3.4vw,3.3rem);line-height:1}h2{margin:0;font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.12}h3{margin:0;font-size:1.05rem;line-height:1.2}p{font-weight:var(--font-normal)}strong{font-weight:var(--font-bold)}small{font-weight:var(--font-normal)}.page,.home-page,.games-page,.auth-page,.editor-page{background:radial-gradient(circle at top left, #fff 0, var(--bg) 46%, #ececea 100%);color:var(--text)}.shell,.games-shell,.home-page{width:min(1180px,100% - 32px);margin-inline:auto}.panel,.compact-card,.mini-card,.hero,.auth-card,.editor-card,.import-card,.game-card,.player-card,.info-card,.upload-card,.settings-card{border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);border:1px solid #00000014}.panel,.auth-card,.editor-card,.import-card{color:var(--text)}.section-hint,.small-note,.status,.status-line,.auth-header p,.auth-footer,.editor-header p,.games-header p,.game-card-meta,.info-row span,.player-label,.card-subtitle,.muted,.muted-block{color:var(--muted);font-weight:var(--font-normal);line-height:1.45}.eyebrow,.field-label,.search-label,.metadata-field label,.setting-field span,.editor-field span,.info-row span,.player-label,.row-date-top{color:var(--muted);font-size:.74rem;font-weight:var(--font-bold);letter-spacing:.1em;text-transform:uppercase}input,select,textarea,.search-input,.small-input,.player-search,.metadata-field input,.metadata-field select,.setting-field select,.editor-field select,.auth-form input,.search-box input,.form-grid input,.result-panel input,.result-panel select,.game-info-row input{border:1px solid var(--line);color:var(--text);font-weight:var(--font-normal);background:#fff;border-radius:12px;outline:none}input:focus,select:focus,textarea:focus,.search-input:focus,.small-input:focus,.player-search:focus,.auth-form input:focus,.search-box input:focus,.form-grid input:focus,.result-panel input:focus,.result-panel select:focus,.game-info-row input:focus{border-color:var(--accent-2);box-shadow:0 0 0 4px var(--accent-glow)}label,.auth-form label,.form-grid label,.game-info-row label,.result-panel label,.editor-field{font-weight:var(--font-semibold)}.hero-title,.games-header h1,.auth-header h1,.editor-header h1,.panel h1,.import-card h1{font-weight:var(--font-heavy)}.hero-text,.home-page p,.mini-card p,.game-card-meta,.auth-footer,.status{font-weight:var(--font-normal)}.card-head h2,.upload-card h2,.info-card h2{font-weight:var(--font-bold);letter-spacing:-.02em}.icon{border-radius:var(--radius-soft);background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;width:46px;height:46px;font-size:1.35rem;font-weight:var(--font-bold);place-items:center;display:grid}.muted-block,.empty-card,.empty{border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted);font-weight:var(--font-normal);background:#fafafa}.game-card-title,.game-card-result,.player-name,.profile-row strong,.profile-display-name{font-weight:var(--font-bold)}.empty-card a,.auth-footer a{color:var(--accent);font-weight:var(--font-bold)}.game-card:hover{box-shadow:0 0 0 4px #00a5c51a, var(--shadow);border-color:#00a5c559}.move-slider{accent-color:var(--accent)}.move-slider-count,.variation-tree-node.current,.move-node.current{font-weight:var(--font-bold)}.auth-form label,.form-grid label,.game-info-row label,.result-panel label,.search-label,.field-label,.editor-field,.game-card-meta,.games-header p,.status,.candidate-meta,.result-meta,.player-card-header p,.tournament-option small{font-weight:var(--font-normal)}.auth-form label,.form-grid label,.game-info-row label,.result-panel label,.search-label,.field-label,.editor-field,.tournament-option span,.candidate-main,.result-main,.row-title{font-weight:var(--font-semibold)}@media (width<=900px){.shell,.games-shell,.home-page{width:min(100% - 20px,760px)}}@media (width<=560px){body{font-size:15px}}body,p,li,dd,input,select,textarea,button,a,.status,.section-hint,.small-note,.game-card-meta,.hero-text,.auth-header p,.editor-header p{font-weight:var(--font-normal)}h1,.hero-title,.auth-header h1,.editor-header h1,.games-header h1,.panel h1,.import-card h1{font-weight:var(--font-heavy);letter-spacing:-.032em}h2,h3,.card-head h2,.upload-card h2,.info-card h2,.game-card-title,.player-name,.profile-display-name{font-weight:var(--font-bold)}strong,label,.field-label,.search-label,.auth-form label,.form-grid label,.game-info-row label,.result-panel label,.editor-field,.tournament-option span,.candidate-main,.result-main{font-weight:var(--font-semibold)}[data-theme=dark]{color:#f8fafc;--bg:#070b12;--card:#0f172af0;--card-solid:#111827;--text:#f8fafc;--muted:#9ca3af;--line:#94a3b83d;--soft:#111827;--accent-glow:#16afbe38;--shadow:0 18px 45px #00000059;--shadow-soft:0 12px 30px #00000052;--shadow-strong:0 18px 60px #0000007a;background:#070b12}[data-theme=dark] body,[data-theme=dark] .page,[data-theme=dark] .home-page,[data-theme=dark] .games-page,[data-theme=dark] .auth-page,[data-theme=dark] .editor-page{color:var(--text);background:radial-gradient(circle at 0 0,#111827 0,#070b12 48%,#020617 100%)}[data-theme=dark] .panel,[data-theme=dark] .compact-card,[data-theme=dark] .mini-card,[data-theme=dark] .auth-card,[data-theme=dark] .editor-card,[data-theme=dark] .import-card,[data-theme=dark] .game-card,[data-theme=dark] .player-card,[data-theme=dark] .info-card,[data-theme=dark] .upload-card,[data-theme=dark] .settings-card,[data-theme=dark] .search-panel,[data-theme=dark] .games-panel,[data-theme=dark] .rank-panel,[data-theme=dark] .date-range-panel,[data-theme=dark] .games-info-editor,[data-theme=dark] .games-info-view,[data-theme=dark] .games-player-summary,[data-theme=dark] .games-player-editor,[data-theme=dark] .player-footer-card{background:var(--card);border-color:var(--line);color:var(--text)}[data-theme=dark] .hero,[data-theme=dark] .command-card{border-color:var(--line);color:var(--text);background:#111827}[data-theme=dark] .hero:after{background:linear-gradient(90deg,#111827 0% 47%,#111827f5 54%,#111827ad 66%,#11182724 78%,#11182700 100%)}[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] h4,[data-theme=dark] strong,[data-theme=dark] .hero-title,[data-theme=dark] .vertical-game-tournament,[data-theme=dark] .game-row-players .player,[data-theme=dark] .vertical-player-line,[data-theme=dark] .games-results-head span:first-child,[data-theme=dark] .info-row strong,[data-theme=dark] .player-name{color:var(--text)}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] .search-input,[data-theme=dark] .small-input,[data-theme=dark] .player-search,[data-theme=dark] .metadata-field input,[data-theme=dark] .metadata-field select,[data-theme=dark] .setting-field select,[data-theme=dark] .editor-field select,[data-theme=dark] .auth-form input,[data-theme=dark] .search-box input,[data-theme=dark] .form-grid input,[data-theme=dark] .result-panel input,[data-theme=dark] .result-panel select,[data-theme=dark] .game-info-row input{border-color:var(--line);color:var(--text);background:#020617}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#64748b}[data-theme=dark] .empty-card,[data-theme=dark] .empty,[data-theme=dark] .muted-block{background:#0f172abd;border-color:#94a3b84d}[data-theme=dark] .black-dot{border-color:#ffffff85}[data-theme=dark] .white-dot{border-color:#ffffff73}[data-theme=dark] .branches-panel,[data-theme=dark] .import-variation-tree,[data-theme=dark] .games-variation-tree,[data-theme=dark] .editor-branches-panel{color:#e5e7eb;background:#030712;border-color:#94a3b847}[data-theme=dark] .branches-panel-head{color:#f8fafc;background:#020617;border-color:#94a3b838}[data-theme=dark] .branches-view,[data-theme=dark] .shared-variation-tree-view,[data-theme=dark] .horizontal-branches-view.shared-variation-tree-view{color:#e5e7eb;background:#000;border-color:#94a3b82e}[data-theme=dark] .move-node,[data-theme=dark] .variation-tree-node,[data-theme=dark] .variation-pill{color:#e5e7eb;background:#111827;border-color:#94a3b852}[data-theme=dark] .move-node.current,[data-theme=dark] .variation-tree-node.current,[data-theme=dark] .variation-pill.active{color:#67e8f9;background:#00a5c533;border-color:#16afbe94}body,p,li,dd,input,select,textarea,.status,.status-line,.section-hint,.small-note,.auth-footer,.game-card-meta,.row-meta,.row-sub,.player small{font-weight:400}h1,.hero-title,.section-title h1{letter-spacing:-.055em;font-weight:850}.eyebrow,.field-label,.search-label,.metadata-field label,.setting-field span,.editor-field span,.info-row span,.player-label,.row-date-top,.group-count,.viewed-badge,.quiet-badge,.top-badge{font-weight:800}[data-theme=dark] .favourite-btn,[data-theme=dark] .favorite-btn{opacity:1}.primary-btn,.secondary-btn,.ghost-btn,.text-btn,.linklike,.file-picker,.auth-button,.import-action-button,.modal-button,.site-button,.editor-action-button,.tool-button,.nav-btn,.filter-btn,.search-clear-btn{border-radius:var(--radius-pill);min-height:40px;font:inherit;cursor:pointer;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:600;line-height:1;text-decoration:none;transition:background .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s,opacity .16s;display:inline-flex}.primary-btn,.auth-button:not(.secondary):not(.danger),.import-action-button.primary,.modal-button.primary,.site-button.primary,.editor-action-button.primary,.file-picker,.nav-btn.active,.filter-btn.active{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;border:1px solid #0000;box-shadow:0 10px 24px #00a5c52e}.primary-btn:hover,.auth-button:not(.secondary):not(.danger):hover,.import-action-button.primary:hover,.modal-button.primary:hover,.site-button.primary:hover,.editor-action-button.primary:hover,.file-picker:hover{filter:brightness(1.05);transform:translateY(-1px)}.secondary-btn,.auth-button.secondary,.import-action-button.secondary,.modal-button.secondary,.site-button.secondary,.ghost-btn,.editor-action-button,.tool-button,.search-clear-btn{border:1px solid var(--line);color:#263241;background:#fff;box-shadow:0 6px 16px #0f172a0a}.secondary-btn:hover,.auth-button.secondary:hover,.import-action-button.secondary:hover,.modal-button.secondary:hover,.site-button.secondary:hover,.ghost-btn:hover,.editor-action-button:hover,.tool-button:hover,.search-clear-btn:hover{color:#007f96;background:#00a5c514;border-color:#00a5c56b}.search-clear-btn{border-radius:999px;min-width:34px;min-height:34px;padding:0 10px}.text-btn,.linklike{color:var(--muted);box-shadow:none;background:0 0;border:0;text-decoration:underline}button:disabled,.primary-btn:disabled,.secondary-btn:disabled,.auth-button:disabled,.import-action-button:disabled,.modal-button:disabled,.site-button:disabled,.editor-action-button:disabled,.tool-button:disabled,.search-clear-btn:disabled{opacity:.48;cursor:not-allowed;filter:none;transform:none}.site-modal-backdrop,.modal-backdrop,.games-info-modal-backdrop,.games-player-modal-backdrop{z-index:1200;background:#0f172a85;place-items:center;padding:2%;display:grid;position:fixed;inset:0}.site-modal-card,.modal-card,.community-warning-modal,.game-added-modal,.copy-game-modal,.clean-board-modal,.clear-game-changes-modal,.clear-variations-modal,.delete-node-modal,.promote-variation-modal,.games-save-warning-modal,.games-detail-modal,.games-player-editor-modal,.games-player-editor.games-player-editor-modal{box-sizing:border-box;border:1px solid var(--line);border-radius:var(--radius);width:min(92%,760px);max-height:90dvh;color:var(--text);box-shadow:var(--shadow-strong);background:#fffffffa;padding:24px;line-height:1.45;overflow:auto}.site-modal-actions,.modal-actions,.games-detail-modal-actions,.games-player-editor-modal .games-player-editor-actions,.games-save-warning-modal .games-missing-info-actions,.games-save-warning-modal .games-post-review-actions{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:16px;display:flex}[data-tooltip]:after{color:#fff;background:#111827;border:1px solid #ffffff1f;box-shadow:0 12px 30px #0f172a3d}[data-theme=dark] .secondary-btn,[data-theme=dark] .auth-button.secondary,[data-theme=dark] .import-action-button.secondary,[data-theme=dark] .modal-button.secondary,[data-theme=dark] .site-button.secondary,[data-theme=dark] .ghost-btn,[data-theme=dark] .editor-action-button,[data-theme=dark] .tool-button,[data-theme=dark] .search-clear-btn{color:#e5e7eb;background:#0f172aeb;border-color:#94a3b847}[data-theme=dark] .secondary-btn:hover,[data-theme=dark] .auth-button.secondary:hover,[data-theme=dark] .import-action-button.secondary:hover,[data-theme=dark] .modal-button.secondary:hover,[data-theme=dark] .site-button.secondary:hover,[data-theme=dark] .ghost-btn:hover,[data-theme=dark] .editor-action-button:hover,[data-theme=dark] .tool-button:hover,[data-theme=dark] .search-clear-btn:hover{color:#a5f3fc;background:#22d3ee1f;border-color:#22d3ee75}@media (width<=720px){.site-modal-backdrop,.modal-backdrop,.games-info-modal-backdrop,.games-player-modal-backdrop{padding:3%}.site-modal-card,.modal-card,.community-warning-modal,.game-added-modal,.copy-game-modal,.clean-board-modal,.clear-game-changes-modal,.clear-variations-modal,.delete-node-modal,.promote-variation-modal,.games-save-warning-modal,.games-detail-modal,.games-player-editor-modal,.games-player-editor.games-player-editor-modal{width:94%;max-height:94dvh;padding:18px}.site-modal-actions,.modal-actions,.games-detail-modal-actions,.games-player-editor-modal .games-player-editor-actions,.games-save-warning-modal .games-missing-info-actions,.games-save-warning-modal .games-post-review-actions{justify-content:stretch}.modal-actions>*,.site-modal-actions>*{flex:auto}}
