.bg-description{color:#475569;margin-bottom:14px;font-size:.95rem;line-height:1.6}.bg-privacy{margin:14px auto 0;font-size:.78rem;color:#94a3b8;text-align:center}.bg-app{--bg-accent: #2a9d8f;--bg-accent-dark: #21867a;max-width:760px;margin:8px auto 0;padding:0 12px;text-align:left}.bg-tabs{display:flex;gap:6px;margin-bottom:14px}.bg-tab{flex:1;padding:11px 8px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;color:#64748b;font-size:.95rem;font-weight:700;cursor:pointer;font-family:inherit}.bg-tab.is-active{background:var(--bg-accent);border-color:var(--bg-accent);color:#fff}.bg-panel[hidden]{display:none}.bg-play-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:12px}.bg-title-input{flex:1;min-width:150px;padding:9px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:.95rem;font-family:inherit;color:#1e293b}.bg-title-input:focus{outline:none;border-color:var(--bg-accent)}.bg-player-ctrl{display:inline-flex;align-items:center;gap:8px;background:#f1f5f9;border-radius:999px;padding:4px 8px}.bg-player-label{font-size:.82rem;color:#64748b;font-weight:600}.bg-step-btn{width:34px;height:34px;border-radius:50%;border:1px solid #cbd5e1;background:#fff;color:#334155;font-size:1.15rem;font-weight:700;cursor:pointer;line-height:1;display:inline-flex;align-items:center;justify-content:center}.bg-step-btn:disabled{opacity:.35;cursor:not-allowed}.bg-player-count{min-width:24px;text-align:center;font-size:1.15rem;font-weight:800;color:#1e293b;font-variant-numeric:tabular-nums}.bg-menu-btn{padding:9px 14px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#334155;font-size:.88rem;font-weight:600;cursor:pointer;font-family:inherit}.bg-menu-btn:hover{background:#f1f5f9}.bg-grid-wrap{overflow:auto;max-height:62vh;border:1px solid #e2e8f0;border-radius:12px;-webkit-overflow-scrolling:touch}.bg-grid{border-collapse:separate;border-spacing:0;width:100%;background:#fff}.bg-grid th,.bg-grid td{border-right:1px solid #e6ebf1;border-bottom:1px solid #e6ebf1;padding:0;text-align:center}.bg-grid thead th{position:sticky;top:0;z-index:3;background:#f8fafc}.bg-corner{position:sticky;left:0;z-index:4!important;background:#eef2f6!important;font-size:.72rem;color:#64748b;font-weight:700;min-width:56px;padding:6px 4px!important}.bg-name-cell{min-width:74px;padding:4px!important}.bg-name-input{width:100%;min-width:0;border:1px solid transparent;border-radius:6px;background:transparent;text-align:center;font-size:.9rem;font-weight:700;color:#1e293b;padding:6px 2px;font-family:inherit}.bg-name-input:focus{outline:none;border-color:var(--bg-accent);background:#fff}.bg-round-head{position:sticky;left:0;z-index:2;background:#f5f8fa;min-width:56px;font-size:.82rem;color:#475569;font-weight:700;padding:4px!important;white-space:nowrap}.bg-round-num{font-variant-numeric:tabular-nums}.bg-round-del{display:inline-block;margin-left:4px;width:20px;height:20px;border:none;border-radius:50%;background:#e2e8f0;color:#64748b;font-size:.85rem;line-height:1;cursor:pointer;vertical-align:middle}.bg-round-del:hover{background:#fecaca;color:#b91c1c}.bg-score-cell{min-width:74px}.bg-score-btn{width:100%;min-height:46px;border:none;background:transparent;color:#1e293b;font-size:1.05rem;font-weight:700;cursor:pointer;font-variant-numeric:tabular-nums;font-family:inherit;-webkit-tap-highlight-color:transparent}.bg-score-btn:hover{background:#f1f5f9}.bg-score-btn.is-negative{color:#dc2626}.bg-score-btn.is-active{background:#d7f0ec;box-shadow:inset 0 0 0 2px var(--bg-accent)}.bg-total-row .bg-total-cell,.bg-total-label{background:#eef7f5}.bg-total-cell{padding:8px 2px;font-size:1.05rem;font-weight:800;color:#0f766e;font-variant-numeric:tabular-nums}.bg-total-cell.is-negative{color:#dc2626}.bg-total-label{color:#0f766e!important}.bg-rank-row .bg-rank-cell{background:#fafbfc}.bg-rank-cell{padding:6px 2px;font-size:.95rem;font-weight:700;color:#475569}.bg-play-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.bg-primary-btn{flex:1;min-width:160px;padding:13px 16px;border:none;border-radius:10px;background:var(--bg-accent);color:#fff;font-size:1rem;font-weight:700;cursor:pointer;font-family:inherit}.bg-primary-btn:hover{background:var(--bg-accent-dark)}.bg-ghost-btn{padding:13px 18px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#475569;font-size:.95rem;font-weight:600;cursor:pointer;font-family:inherit}.bg-ghost-btn:hover{background:#f1f5f9}.bg-full{width:100%}.bg-rank{margin-top:18px}.bg-rank-title{font-size:.85rem;font-weight:700;color:#64748b;margin-bottom:8px}.bg-rank-cards{display:flex;flex-direction:column;gap:6px}.bg-rank-card{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.bg-rank-card.is-first{border-color:#facc15;background:#fffbeb}.bg-rank-badge{min-width:40px;font-size:1.15rem;font-weight:800;color:#475569;text-align:center}.bg-rank-name{flex:1;min-width:0;font-size:1rem;font-weight:700;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg-rank-score{font-size:1.05rem;font-weight:800;color:#0f766e;font-variant-numeric:tabular-nums}.bg-rank-score.is-negative{color:#dc2626}.bg-keypad{position:fixed;inset:0;z-index:300;display:flex;align-items:flex-end;justify-content:center;background:#0f172a59}.bg-keypad[hidden]{display:none}.bg-keypad-inner{width:100%;max-width:440px;background:#fff;border-radius:18px 18px 0 0;padding:14px 14px calc(14px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 24px #0f172a33}.bg-keypad-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.bg-kp-target{flex:1;min-width:0;font-size:.9rem;font-weight:700;color:#475569;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg-kp-value{font-size:1.5rem;font-weight:800;color:#1e293b;font-variant-numeric:tabular-nums;min-width:60px;text-align:right}.bg-kp-value.is-negative{color:#dc2626}.bg-kp-close{border:none;background:#f1f5f9;color:#64748b;width:32px;height:32px;border-radius:50%;font-size:1.2rem;line-height:1;cursor:pointer}.bg-keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.bg-key{padding:16px 0;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#1e293b;font-size:1.4rem;font-weight:700;cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent}.bg-key:active{background:#e2e8f0}.bg-key-fn{background:#eef2f6;color:#475569}.bg-keypad-foot{display:flex;gap:8px;margin-top:10px}.bg-kp-foot-btn{flex:1;padding:13px 6px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#475569;font-size:.95rem;font-weight:700;cursor:pointer;font-family:inherit}.bg-kp-next{color:#334155}.bg-kp-done{background:var(--bg-accent);border-color:var(--bg-accent);color:#fff}.bg-menu-overlay{position:fixed;inset:0;z-index:250;background:#0f172a80;display:flex;align-items:center;justify-content:center;padding:16px}.bg-menu-overlay[hidden]{display:none}.bg-menu-panel{width:100%;max-width:460px;max-height:86vh;overflow-y:auto;background:#fff;border-radius:16px;padding:20px}.bg-menu-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.bg-menu-head h2{margin:0;font-size:1.1rem;color:#1e293b}.bg-menu-close{border:none;background:none;font-size:1.5rem;line-height:1;color:#64748b;cursor:pointer;padding:2px 6px}.bg-menu-section{margin-bottom:18px}.bg-menu-section h3{font-size:.85rem;color:#64748b;margin:0 0 10px}.bg-history-list{display:flex;flex-direction:column;gap:8px}.bg-history-empty{font-size:.88rem;color:#94a3b8;line-height:1.6;margin:0}.bg-history-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px}.bg-history-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.bg-history-name{font-size:.95rem;font-weight:700;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg-history-meta{font-size:.78rem;color:#94a3b8}.bg-history-open{padding:8px 16px;border:1px solid var(--bg-accent);border-radius:8px;background:#fff;color:var(--bg-accent);font-size:.88rem;font-weight:700;cursor:pointer;font-family:inherit}.bg-history-open:hover{background:var(--bg-accent);color:#fff}.bg-print-ctrl{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin-bottom:12px}.bg-ctrl-field{display:flex;flex-direction:column;gap:4px;font-size:.82rem;color:#64748b;font-weight:600}.bg-ctrl-field select{padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:.95rem;font-family:inherit;color:#1e293b;background:#fff}.bg-ctrl-checkbox{display:inline-flex;align-items:center;gap:6px;font-size:.9rem;color:#475569;font-weight:600}.bg-ctrl-checkbox input{width:18px;height:18px}.bg-print-ctrl .bg-primary-btn{flex:0 0 auto;min-width:120px}.bg-print-note{font-size:.82rem;color:#64748b;line-height:1.6;margin:0 0 14px}.bg-print-preview-label{font-size:.82rem;font-weight:700;color:#64748b;margin-bottom:8px}.bg-print-wrap{overflow-x:auto;background:#f1f5f9;border-radius:12px;padding:16px}.bg-print-sheet{width:210mm;min-height:297mm;margin:0 auto;background:#fff;padding:14mm 12mm;box-shadow:0 2px 12px #0f172a26;box-sizing:border-box;color:#111}.bg-ps-title{display:flex;align-items:flex-end;flex-wrap:wrap;gap:4px;font-size:12pt;font-weight:700;margin-bottom:8mm}.bg-ps-line{display:inline-block;flex:1;min-width:40mm;border-bottom:1.5px solid #111;height:1em}.bg-ps-line-short{flex:0 0 40mm;min-width:30mm}.bg-ps-table{width:100%;border-collapse:collapse;table-layout:fixed}.bg-ps-table th,.bg-ps-table td{border:1.5px solid #111;height:11mm;text-align:center;vertical-align:middle;font-size:11pt;font-weight:700}.bg-ps-corner{width:22mm;font-size:9pt}.bg-ps-name{height:14mm}.bg-ps-round{width:22mm;font-size:12pt}.bg-ps-total{background:#eee}@media (max-width: 560px){.bg-menu-btn{order:3}.bg-play-actions .bg-primary-btn,.bg-play-actions .bg-ghost-btn{flex:1;min-width:0}}@media print{@page{margin:0}.bg-print-wrap{overflow:visible!important;background:#fff!important;padding:0!important;border-radius:0!important}.bg-print-sheet{box-shadow:none!important;width:210mm!important;min-height:auto!important;margin:0!important}#bg-keypad,#bg-menu{display:none!important}.bg-ps-total{background:#eee!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
