:root{font-family:Inter,Noto Sans JP,system-ui,-apple-system,Segoe UI,sans-serif;color:#162338;background:#f0f3f7;font-synthesis:none;font-size:16px;--surface: #fff;--line: #c5ceda;--muted: #46576b;--gold: #075ac4;--red: #b42318;--green: #086444;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:300px;background:#f0f3f7}button,input,textarea{font:inherit}button,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{border:0;cursor:pointer;color:inherit;font-weight:600}button:disabled{opacity:1;cursor:not-allowed;background:#e3e8ee!important;color:#526175!important;border-color:#9ca9ba!important;box-shadow:none!important}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #075ac4;outline-offset:4px}a{color:#075ac4}h1,h2,h3,p{margin:0}button,summary{user-select:none;-webkit-user-select:none}small{font-size:13px;color:var(--muted);line-height:1.6}input,textarea{width:100%;border:1px solid #64748b;background:#fff;color:#162338;padding:14px;border-radius:8px}input[type=checkbox]{width:24px;height:24px;accent-color:#075ac4;flex-shrink:0}input[type=range]{padding:10px 0;accent-color:#075ac4;min-height:42px}textarea{min-height:90px}label{display:grid;gap:10px}fieldset{margin:0;padding:0;border:0}legend{margin-bottom:12px;color:#25364d;font-size:15px;font-weight:600}.instrument{max-width:680px;min-height:100dvh;margin:auto;padding:0 22px;padding-top:env(safe-area-inset-top);background:#f8fafc}.app-header{display:flex;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid #b6c2d1}.brand{display:flex;align-items:center;gap:10px;background:none;text-align:left;padding:0;font-size:16px;letter-spacing:.05em}.brand-symbol{display:none}.brand small{display:block;font-size:12px;letter-spacing:0;font-weight:500;margin-top:3px}.header-status{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:11px;color:#46576b;font-weight:600}.header-status i{width:7px;height:7px;background:#087148;border-radius:50%}.header-status i.offline{background:#075ac4}.settings-button{width:44px;height:44px;border:1px solid #64748b;background:#fff;border-radius:8px;font-size:24px;color:#243850}main{padding-bottom:24px}.eyebrow,.section-heading>span{font-size:13px;font-weight:600;letter-spacing:.03em;color:#075ac4;line-height:1.8}.hero{padding:30px 0 24px;border-bottom:1px solid var(--line)}.hero h1{font-size:34px;font-weight:700;line-height:1.5;letter-spacing:-.02em;margin:8px 0}.hero>p{font-size:17px;color:#46576b}.home-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.home-facts>span{padding:14px 10px;background:#e7effb;color:#253d60;font-size:14px;border-radius:7px;text-align:center}.home-facts b{font-size:20px;color:#064da7}.home-actions{padding-top:24px;display:grid;gap:14px}.primary,.secondary{width:100%;min-height:56px;padding:15px 18px;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:14px;font-size:16px;font-weight:650}.primary{background:#075ac4;color:#fff}.primary:hover{background:#064da7}.primary span,.secondary span{margin-left:auto}.secondary{border:1px solid #64748b;background:#fff;color:#20334b}.secondary:hover{background:#edf3fb}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.menu-grid button{min-height:88px;padding:17px;border:1px solid #7e8ea4;background:#fff;text-align:left;border-radius:8px;font-size:16px}.menu-grid small{display:block;margin-top:7px}.footnote{font-size:13px;color:#46576b;line-height:1.75}.text-button{background:none;padding:14px 0;color:#075ac4;font-size:14px;text-align:left;line-height:1.7}.center{text-align:center}.sound-check{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #8799b0;border-radius:8px;padding:16px;margin-top:4px}.sound-check>div{flex:1;min-width:0}.sound-check b{font-size:16px}.sound-check p{font-size:13px;color:#46576b;line-height:1.6;margin-top:5px}.sound-check .secondary{width:auto;white-space:nowrap;padding:12px}.page-heading{display:flex;gap:14px;align-items:center;margin:24px 0}.page-heading h1{font-size:25px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.back{background:#fff;border:1px solid #64748b;width:44px;min-width:44px;height:44px;border-radius:8px;font-size:24px;color:#075ac4}.form{display:grid;gap:24px}.form>label{font-size:15px;color:#25364d}.form>label>b{font-size:22px}.segmented{display:flex;padding:4px;border:1px solid #64748b;border-radius:8px;background:#fff;gap:4px}.segmented button{background:#fff;padding:12px;min-height:46px;flex:1;border-radius:5px;overflow-wrap:anywhere}.segmented button[aria-pressed=true]{background:#075ac4;color:#fff}.rule-note{background:#e8f0fc;border-left:4px solid #075ac4;padding:16px;font-size:14px;line-height:1.8;color:#243f67}.rule-note b{color:#143c74}.rule-note p{margin-top:6px}.toggle{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:48px;font-size:15px}.notice{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#e7f0ff;border:1px solid #075ac4;color:#153d78;padding:14px;margin:14px 0;font-size:14px;line-height:1.7;border-radius:8px}.notice.error{border-color:#b42318;background:#fff0ee;color:#8f1c14}.notice button{background:#fff;color:#075ac4;border:1px solid #075ac4;padding:10px;border-radius:5px}.match-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0 16px}.match-heading h1{font-size:26px;font-weight:650;margin-top:2px}.role-band{display:grid;grid-template-columns:1fr 1fr;border:1px solid #7d91ad;background:#edf3fd;border-radius:8px}.role-band>span{padding:14px 12px;font-size:17px;font-weight:650;overflow-wrap:anywhere;min-width:0}.role-band>span+span{border-left:1px solid #a4b5ca}.role-band b{font-size:14px;color:#fff;background:#075ac4;border-radius:4px;padding:2px 6px;margin-right:4px}.role-band small{display:block;margin-top:7px;font-size:12px;line-height:1.6;font-weight:400}.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 12px}.score-card{min-width:0;background:#fff;padding:18px 14px;border:1px solid #9aaac0;border-radius:8px;overflow:hidden}.score-title{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;justify-content:space-between}.score-title h3{font-size:16px;font-weight:650;overflow-wrap:anywhere}.score-title>span{font-size:11px;color:#46576b}.score-label{font-size:12px;color:#46576b;margin:14px 0 3px}.score-total{font-variant-numeric:tabular-nums;white-space:nowrap;margin:0 0 13px;line-height:1.3}.score-total strong{font-size:clamp(24px,5.5vw,34px);font-weight:650;letter-spacing:-.04em;color:#132f53}.score-total>span{font-size:11px;color:#46576b}.gauge{height:8px;display:flex;width:100%;background:#e3e9f1;overflow:hidden;margin-bottom:18px;border-radius:3px}.gauge i{display:block;height:100%;transition:width .35s ease}.consumed{background:#b4401c}.accumulated{background:#075ac4}.metrics{display:grid;gap:16px;margin:0}.metrics>div{min-width:0}.metrics dt{font-size:12px;color:#46576b;margin-bottom:5px;line-height:1.6}.metrics dt span{font-size:11px}.metrics dd{margin:0;font-size:20px;line-height:1.2;font-variant-numeric:tabular-nums;color:#162338;font-weight:600}.metrics dd small{font-size:12px}.limit{border:2px solid #b42318}.limit .score-total strong{color:#b42318}.formula-note{font-size:13px;line-height:1.8;color:#46576b;margin-bottom:20px}.swatch{display:inline-block;width:9px;height:9px;margin-right:2px}.start-area{margin-top:18px;display:grid;gap:12px}.start-button{min-height:70px;flex-direction:column;gap:5px;font-size:19px}.start-button small{color:#fff;font-size:13px;font-weight:400}.start-button:disabled small{color:#526175}.timer{width:min(68vw,260px);height:min(68vw,260px);margin:12px auto 0;position:relative;color:#075ac4}.timer svg{width:100%;height:100%;fill:none}.timer-track{stroke:#99aac1;stroke-width:1}.timer line{stroke:#9faec3;stroke-width:1}.timer line.major{stroke:#475d7d;stroke-width:1.3}.timer-arc{stroke:currentColor;stroke-width:3;stroke-linecap:round}.timer-number{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.timer-number>span{font-size:13px;color:#344b6a;margin-bottom:3px;font-weight:600}.timer-number>strong{font-size:60px;font-weight:650;letter-spacing:-.06em;font-variant-numeric:tabular-nums;line-height:1.3;color:#102d53}.timer-number>small{font-variant-numeric:tabular-nums;font-size:13px;color:#46576b}.urgent{color:#b42318}.urgent .timer-number>strong{color:#b42318}.recording-state{text-align:center;color:#1a3a65;font-size:14px;line-height:1.6;font-weight:600}.audio-state{text-align:center;font-size:12px;color:#253d60;margin:4px 0}.wake-note{text-align:center;font-size:12px;line-height:1.6;color:#46576b;margin:3px 0 10px}.record-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0;position:sticky;bottom:calc(env(safe-area-inset-bottom) + 8px);z-index:2;padding:5px 0;background:#f8fafcf5}.record-controls button{min-height:108px;border:2px solid #075ac4;border-radius:9px;background:#075ac4;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;touch-action:none}.record-controls .drop-button{background:#fff;color:#064da7}.record-controls strong{font-size:26px;font-weight:700}.record-controls span{font-size:12px;letter-spacing:.05em}.record-controls small{font-size:12px;color:#fff}.record-controls .drop-button small{color:#064da7}.record-controls.left-handed .check-button{grid-column:1;grid-row:1}.record-controls.left-handed .drop-button{grid-column:2;grid-row:1}.is-running .timer{width:clamp(180px,calc(100dvh - 390px),240px);height:clamp(180px,calc(100dvh - 390px),240px);margin:8px auto 0}.is-running .match-heading{margin:12px 0}.is-running .match-heading h1{font-size:24px}.is-running .app-header{padding:12px 0}.is-running .role-band>span{padding:10px}.is-running .timer-number>strong{font-size:54px}.is-running .timer-number>small{font-size:12px}.last-result{border:1px solid #7e9fc9;border-left:4px solid #075ac4;background:#fff;padding:16px;border-radius:7px;margin-top:18px}.last-result h2{font-size:20px;margin:4px 0 10px;font-weight:650;line-height:1.5}.last-result>p{font-size:15px;color:#243e60;line-height:1.7}.last-result details{margin-top:12px;font-size:14px}.last-result summary{color:#075ac4;font-weight:600;min-height:35px;padding:5px 0}.section-heading{margin:0 0 16px}.section-heading h2{font-size:21px;font-weight:600;line-height:1.6;margin-top:4px}.turn-detail{font-size:14px;line-height:1.8;color:#34485f}.turn-detail>p{margin:8px 0}.turn-detail dl{margin:14px 0;display:grid;gap:8px}.turn-detail dl>div{display:flex;justify-content:space-between;gap:14px;padding-bottom:5px;border-bottom:1px solid #d5dde7}.turn-detail dt{color:#46576b}.turn-detail dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.formula{font-size:13px;background:#edf3fb;border:1px solid #bccde5;padding:12px;border-radius:5px;overflow-wrap:anywhere;color:#223e66}.button-row{display:flex;gap:12px;margin:22px 0 6px}.button-row>button{flex:1;min-width:0;font-size:14px}.save-status{font-size:12px;color:#155c42;margin:12px 0;line-height:1.8}.save-status.bad{color:#a32218;font-weight:600}.winner{border:2px solid #075ac4;background:#e9f2ff;padding:24px 18px;margin-bottom:22px;border-radius:8px}.winner>span{font-size:13px;color:#075ac4}.winner h2{font-size:26px;font-weight:650;color:#133f7b;margin:12px 0;overflow-wrap:anywhere}.winner p{font-size:15px;line-height:1.8;margin-bottom:10px}.log-row{border-top:1px solid #b5c2d3}summary{cursor:pointer}.log-row summary{list-style:none;display:flex;align-items:center;gap:13px;min-height:85px;padding:14px 0}.log-row summary::-webkit-details-marker{display:none}.log-number{font-size:24px;color:#46576b;font-weight:500;font-variant-numeric:tabular-nums}.log-row summary>div{flex:1}.log-row summary b{font-size:15px;font-weight:650}.log-row summary small{display:block;font-size:12px;margin-top:6px}.log-row summary>span:last-child{color:#075ac4}.log-row .turn-detail{padding:0 0 20px}.audit{margin:24px 0;border:1px dashed #70839d;background:#fff;padding:14px;font-size:14px;color:#34485f}.audit p{border-top:1px solid #c4cfdd;margin-top:12px;padding-top:10px;line-height:1.8;overflow-wrap:anywhere}.audit small{display:block}.archive-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border:1px solid #a8b8cc;border-radius:7px;background:#fff;width:100%;min-height:90px;padding:16px;text-align:left;margin:12px 0}.archive-row b{font-size:16px;display:block;overflow-wrap:anywhere}.archive-row small{font-size:12px;display:block;margin-top:8px}.archive-row>span{font-size:13px;color:#075ac4;text-align:right;max-width:35%}.full{margin-top:25px}.empty{color:#46576b;padding:30px 0;line-height:1.8;font-size:15px}.chart{margin:24px 0;background:#fff;border:1px solid #a6b6cb;padding:16px 12px 8px;border-radius:7px}.chart figcaption{font-size:14px;padding:0 4px;font-weight:600}.chart figcaption span{display:block;color:#46576b;font-size:13px;margin-top:9px;font-weight:400}.chart svg{width:100%;overflow:visible}.chart svg line{stroke:#c7d3e2;stroke-width:.7}.chart svg text{fill:#46576b;font-size:10px}.chart polyline{fill:none;stroke-width:2.5;stroke-linejoin:round}.line-a{stroke:#075ac4}.line-b{stroke:#b4401c;stroke-dasharray:4 2}.key-a,.key-b{display:inline-block;width:12px;height:4px;background:#075ac4;vertical-align:middle}.key-b{background:#b4401c}.danger-text{color:#b42318}.prose{font-size:15px;line-height:1.9;color:#2e4056}.prose h3{font-size:18px;font-weight:650;color:#12386c;margin:25px 0 10px}.prose p{margin:14px 0}.prose ol{padding-left:24px}.prose li{margin:12px 0}.prose dt{color:#075ac4;font-size:15px;font-weight:600;margin:14px 0 4px}.prose dd{margin:0 0 14px;padding-left:12px;border-left:2px solid #b4c6df}.modal-backdrop{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#0c1c37aa;z-index:20}.modal{max-width:430px;max-height:90dvh;overflow:auto;background:#fff;border:1px solid #758aa9;padding:24px;border-radius:10px;box-shadow:0 20px 60px #11224144}.modal h2{font-size:23px;font-weight:650;color:#153e76;margin-bottom:16px}.modal>p{font-size:15px;color:#34485f;line-height:1.8;margin-bottom:20px}.modal>label{margin:18px 0;font-size:14px}.modal .button-row{margin-bottom:0}.app-footer{border-top:1px solid #b8c5d6;font-size:12px;color:#46576b;padding:20px 0 calc(20px + env(safe-area-inset-bottom));line-height:1.8}.app-footer span{display:block;margin-top:4px}.loading{padding:40px 0;color:#46576b}.reduce-motion *{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(max-width:350px){.instrument{padding-left:15px;padding-right:15px}.app-header{gap:10px}.brand{font-size:15px}.brand small{font-size:11px}.header-status{font-size:10px}.hero h1{font-size:30px}.score-grid{gap:8px}.score-card{padding:14px 10px}.score-total strong{font-size:24px}.score-title>span{font-size:11px}.metrics dt{font-size:12px}.record-controls{gap:8px}.record-controls strong{font-size:23px}.record-controls button{min-height:104px}.role-band>span{font-size:15px}.role-band small{font-size:12px}.is-running .timer-number>strong{font-size:48px}.is-running .role-band small{font-size:11px}.is-running .eyebrow{font-size:12px}}@media(min-width:600px){.instrument{padding-left:35px;padding-right:35px}.hero{padding:42px 0 30px}.hero h1{font-size:40px}.score-card{padding:24px}.metrics{grid-template-columns:1fr 1fr;gap:20px}.score-total strong{font-size:38px}.record-controls button{min-height:115px}}@media(orientation:landscape)and (max-height:500px){.is-running .timer{width:180px;height:180px;float:left;margin-right:15px}.recording-state{padding-top:20px}.record-controls{position:relative;bottom:auto;margin-top:20px}.score-grid{clear:both}}
