:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg:#1b1f27;--text:#f3f4f6;font:16px/1.5 system-ui,Hiragino Sans,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}html,body,#root{min-height:100%}body{background:var(--bg);color:var(--text);margin:0;overflow-x:hidden}button{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}body:before{content:"";height:env(safe-area-inset-top);background:var(--bg);z-index:100;pointer-events:none;position:fixed;top:0;left:0;right:0}.tile-button{background:0 0;border:none;border-radius:6px;width:38px;min-width:38px;padding:0;line-height:0}.tile-button .tile-face{border-radius:6px;width:100%;height:auto;display:block}.tile-button:active:not(:disabled) .tile-face{transform:scale(.94)}.tile-button:disabled{opacity:.35}.tile-button.tile-selected .tile-face{outline-offset:1px;border-radius:6px;outline:2px solid #4f9dff}.tile-palette{flex-direction:column;gap:10px;display:flex}.tile-palette-label{opacity:.7;margin:0 0 4px;font-size:.85rem}.tile-palette-row{grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;display:grid}.tile-palette-row .tile-button{width:100%;min-width:0}.camera-page{max-width:480px;min-height:100dvh;padding:calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));flex-direction:column;gap:16px;margin:0 auto;display:flex}.camera-header{top:env(safe-area-inset-top);z-index:20;background:var(--bg);align-items:center;gap:12px;padding:8px 0;display:flex;position:sticky}.camera-header h1{text-align:center;flex:1;margin:0;font-size:1.05rem}.camera-header-spacer{min-width:40px}.camera-capture-button{text-align:center;background:#ffffff0a;border:2px dashed #ffffff4d;border-radius:16px;justify-content:center;align-items:center;min-height:120px;font-size:1.05rem;font-weight:700;display:flex}.camera-preview{object-fit:cover;border-radius:12px;width:100%;max-height:240px}.camera-status{opacity:.8;text-align:center;margin:0;font-size:.85rem}.camera-section-title{opacity:.85;margin:0 0 8px;font-size:.95rem}.camera-slots{flex-wrap:wrap;gap:6px;display:flex}.camera-slot{color:#1b1f27;background:#f8f6ef;border:2px solid #fff3;border-radius:8px;justify-content:center;align-items:center;width:42px;min-height:54px;padding:0;font-size:.95rem;font-weight:700;display:flex}.camera-slot-face{width:100%;height:auto;display:block}.camera-slot.empty{color:inherit;opacity:.6;background:#ffffff0f}.camera-slot.editing{border-color:#4f9dff}.camera-slot.add{color:inherit;opacity:.7;background:0 0;border-style:dashed}.camera-edit-panel{background:#4f9dff14;border:1px solid #4f9dff4d;border-radius:10px;margin-top:10px;padding:10px}.camera-edit-header{justify-content:space-between;align-items:center;margin-bottom:8px;font-size:.85rem;display:flex}.camera-edit-header button{color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:8px;padding:4px 10px;font-size:.8rem}.camera-confirm-button{color:#0b0e14;background:#4f9dff;border:none;border-radius:12px;min-height:52px;font-size:1.05rem;font-weight:800}.camera-confirm-button:disabled{opacity:.4}.hand-display{flex-direction:column;gap:8px;display:flex}.hand-display-tiles{background:#ffffff0f;border-radius:10px;flex-wrap:wrap;gap:6px;padding:10px;display:flex}.hand-display-tile{border-radius:6px;width:min(44px,14.2857% - 5.14286px);height:auto}.hand-display-melds{flex-direction:column;gap:6px;display:flex}.hand-display-meld{opacity:.85;flex-wrap:wrap;align-items:center;gap:8px;font-size:.8rem;display:flex}.hand-display-meld-label{flex-shrink:0;font-weight:700}.hand-display-meld-tiles{flex-wrap:wrap;gap:4px;display:flex}.hand-display-meld-tile{border-radius:4px;width:28px;height:auto}.wait-explanation{text-align:left;flex-direction:column;gap:6px;display:flex}.wait-explanation-title{opacity:.75;margin:0;font-size:.8rem;font-weight:800}.wait-explanation ul{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.wait-explanation li{background:#ffffff0f;border-radius:8px;padding:8px 10px;font-size:.83rem;line-height:1.7}.wait-explanation-hit{border-left:3px solid #4cd964}.wait-explanation-miss{border-left:3px solid #ffc107}.wait-explanation-wrong{border-left:3px solid #ff5a5a}.wait-selector{flex-direction:column;gap:10px;display:flex}.wait-selector-label{opacity:.7;margin:0 0 4px;font-size:.85rem}.wait-selector-row{grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;display:grid}.wait-selector-tile{background:0 0;border:none;border-radius:6px;width:100%;min-width:0;padding:0;line-height:0;transition:transform .12s;position:relative}.wait-selector-tile .tile-face{border-radius:6px;width:100%;height:auto;transition:box-shadow .12s;display:block}.wait-selector-tile:active:not(:disabled){transform:scale(.94)}.wait-selector-tile.selected{transform:translateY(-4px)}.wait-selector-tile.selected .tile-face{outline-offset:0;outline:3px solid #4f9dff;box-shadow:0 0 10px 2px #4f9dffd9}.wait-selector-tile.selected:before{content:"";pointer-events:none;background:#4f9dff66;border-radius:6px;position:absolute;inset:0}.wait-selector-tile.selected:after{content:"✓";color:#0b0e14;text-align:center;pointer-events:none;background:#4f9dff;border-radius:50%;width:16px;height:16px;font-size:11px;font-weight:900;line-height:16px;position:absolute;top:-6px;right:-5px}.wait-selector-tile:disabled{opacity:.5}.wait-selector-tile.selected:disabled{opacity:1}.wait-selector-summary{opacity:.75;border:1px dashed #ffffff40;border-radius:10px;align-items:center;gap:10px;min-height:52px;padding:8px 12px;font-size:.85rem;display:flex}.wait-selector-summary.has-selection{opacity:1;background:#4f9dff24;border:1px solid #4f9dff}.wait-selector-summary-label{flex-shrink:0;font-weight:700}.wait-selector-summary-tiles{flex-wrap:wrap;gap:4px;display:flex}.wait-selector-summary-tile{border-radius:4px;width:26px;height:auto}.discard-picker{background:#ffffff0f;border-radius:10px;flex-wrap:wrap;gap:6px;padding:10px;display:flex}.discard-picker-tile{background:0 0;border:2px solid #0000;border-radius:6px;width:min(44px,14.2857% - 5.14286px);padding:0;line-height:0}.discard-picker-tile .tile-face{border-radius:4px;width:100%;height:auto;display:block}.discard-picker-tile.drawn{border-color:#4f9dff}.discard-picker-tile.selected{border-color:#ff3b30}.discard-picker-tile:disabled{opacity:.6}.tile-row{vertical-align:middle;flex-wrap:wrap;gap:4px;line-height:0;display:inline-flex}.tile-row-item{display:block}.tile-row-face{border-radius:4px;height:auto;display:block}.tile-row-medium .tile-row-face{width:36px}.tile-row-small .tile-row-face{width:26px}.chinitsu-page{max-width:480px;min-height:100dvh;padding:calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));flex-direction:column;gap:20px;margin:0 auto;display:flex}.chinitsu-header{top:env(safe-area-inset-top);z-index:20;background:var(--bg);align-items:center;gap:12px;padding:8px 0;display:flex;position:sticky}.chinitsu-header h1{text-align:center;flex:1;margin:0;font-size:1rem}.chinitsu-header-spacer{min-width:40px}.chinitsu-score{text-align:right;opacity:.8;min-width:40px;font-size:.85rem;font-weight:700}.chinitsu-order-toggle-row{gap:8px;margin-bottom:8px;display:flex}.chinitsu-order-toggle{min-height:44px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;flex:1;font-size:.95rem}.chinitsu-order-toggle.active{background:#4f9dff4d;border-color:#4f9dff}.chinitsu-order-hint{opacity:.65;margin:0;font-size:.8rem}.chinitsu-mode-menu{flex-direction:column;gap:12px;display:flex}.chinitsu-mode-item{min-height:56px;color:inherit;text-align:left;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:14px;align-items:center;gap:12px;padding:14px 18px;font-size:1.05rem;display:flex}.chinitsu-mode-item:active{background:#ffffff24}.chinitsu-mode-icon{font-size:1.3rem}.chinitsu-section-title{opacity:.85;margin:0 0 8px;font-size:.95rem}.chinitsu-submit{color:#0b0e14;background:#4f9dff;border:none;border-radius:12px;min-height:52px;font-size:1.05rem;font-weight:800}.chinitsu-submit:disabled{opacity:.4}.chinitsu-result{border-radius:12px;flex-direction:column;gap:8px;padding:14px;display:flex}.chinitsu-result.correct{background:#4cd9641f;border:1px solid #4cd96466}.chinitsu-result.wrong{background:#ff3b301f;border:1px solid #ff3b3066}.chinitsu-result-headline{margin:0;font-size:1.1rem;font-weight:800}.chinitsu-answer-label,.chinitsu-answer-count{margin:0;font-size:.9rem}.chinitsu-next{color:#0b0e14;background:#4f9dff;border:none;border-radius:10px;min-height:48px;font-size:1rem;font-weight:800}.quiz-card{flex-direction:column;gap:16px;display:flex}.quiz-prompt{flex-direction:column;gap:4px;display:flex}.quiz-prompt p{text-align:center;margin:0;font-size:1.05rem;font-weight:700}.quiz-choices{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.quiz-choice{min-height:56px;color:inherit;background:#ffffff0f;border:1px solid #ffffff40;border-radius:12px;font-size:1rem;font-weight:700}.quiz-choice:active:not(:disabled){transform:scale(.97)}.quiz-choice-correct{background:#4cd9644d;border-color:#4cd964}.quiz-choice-wrong{background:#ff3b304d;border-color:#ff3b30}.quiz-choice-unselected-correct{opacity:.5}.quiz-result{border-radius:12px;flex-direction:column;gap:8px;padding:14px;display:flex}.quiz-result-correct{background:#4cd9641f;border:1px solid #4cd96466}.quiz-result-wrong{background:#ff3b301f;border:1px solid #ff3b3066}.quiz-result-headline{margin:0;font-size:1.1rem;font-weight:800}.quiz-result-your-answer{opacity:.8;margin:0;font-size:.85rem}.quiz-explanation{opacity:.9;flex-direction:column;gap:2px;font-size:.85rem;display:flex}.quiz-explanation p{margin:0}.quiz-next-button{color:#0b0e14;background:#4f9dff;border:none;border-radius:10px;min-height:48px;font-size:1rem;font-weight:800}.quiz-reason{text-align:left;border-radius:10px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.quiz-reason-wrong{background:#ff5a5a24;border:1px solid #ff5a5a73}.quiz-reason-correct{background:#4cd96424;border:1px solid #4cd96473}.quiz-reason-title{margin:0;font-size:.9rem;font-weight:800}.quiz-reason-text{margin:0;font-size:.85rem;line-height:1.7}.quiz-explanation-title{opacity:.75;margin:0 0 2px;font-size:.8rem;font-weight:800}.quiz-others{text-align:left;font-size:.82rem}.quiz-others>summary{cursor:pointer;align-items:center;min-height:40px;font-weight:700;display:flex}.quiz-others ul{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.quiz-others li{background:#ffffff0f;border-radius:8px;flex-direction:column;gap:2px;padding:8px 10px;display:flex}.quiz-others li span{opacity:.9;line-height:1.6}.learning-page{max-width:480px;min-height:100dvh;padding:calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));flex-direction:column;gap:20px;margin:0 auto;display:flex}.learning-header{top:env(safe-area-inset-top);z-index:20;background:var(--bg);align-items:center;gap:12px;padding:8px 0;display:flex;position:sticky}.learning-header h1{text-align:center;flex:1;margin:0;font-size:1.05rem}.learning-header-spacer{min-width:40px}.learning-score{text-align:right;opacity:.8;min-width:40px;font-size:.85rem;font-weight:700}.learning-category-menu{flex-direction:column;gap:12px;display:flex}.learning-category-item{min-height:56px;color:inherit;text-align:left;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:14px;align-items:center;gap:12px;padding:14px 18px;font-size:1.05rem;display:flex}.learning-category-item:active{background:#ffffff24}.learning-category-icon{font-size:1.3rem}.history-page{max-width:480px;min-height:100dvh;padding:calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));flex-direction:column;gap:24px;margin:0 auto;display:flex}.history-header{top:env(safe-area-inset-top);z-index:20;background:var(--bg);align-items:center;gap:12px;padding:8px 0;display:flex;position:sticky}.history-header h1{text-align:center;flex:1;margin:0;font-size:1.05rem}.history-header-spacer{min-width:40px}.history-section-title{opacity:.85;margin:0 0 10px;font-size:.95rem}.history-empty{opacity:.6;margin:0;font-size:.85rem}.history-stats{flex-direction:column;gap:10px;display:flex}.history-stat-row{align-items:center;gap:10px;display:flex}.history-stat-label{min-width:6.5em;font-size:.85rem}.history-stat-bar-track{background:#ffffff1a;border-radius:999px;flex:1;height:10px;overflow:hidden}.history-stat-bar-fill{background:#4f9dff;border-radius:999px;height:100%}.history-stat-value{text-align:right;opacity:.85;min-width:7em;font-size:.8rem}.history-weak-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.history-weak-item{background:#ff95001a;border:1px solid #ff95004d;border-radius:10px;gap:10px;padding:10px 12px;display:flex}.history-weak-icon{font-size:1.1rem}.history-weak-text{flex-direction:column;gap:2px;display:flex}.history-weak-desc{margin:0;font-size:.9rem;font-weight:700}.history-weak-meta{opacity:.75;margin:0;font-size:.75rem}.history-reset-button{color:#ff8080;background:0 0;border:1px solid #ff3b3066;border-radius:10px;min-height:48px;font-size:.95rem;font-weight:700}.wait-training-page{max-width:480px;min-height:100dvh;padding:calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));flex-direction:column;gap:20px;margin:0 auto;display:flex}.wait-training-header{top:env(safe-area-inset-top);z-index:20;background:var(--bg);align-items:center;gap:12px;padding:8px 0;display:flex;position:sticky}.wait-training-header h1{text-align:center;flex:1;margin:0;font-size:1rem}.wait-training-header-spacer{min-width:40px}.wait-training-score{text-align:right;opacity:.8;min-width:40px;font-size:.85rem;font-weight:700}.wait-order-toggle-row{gap:8px;margin-bottom:8px;display:flex}.wait-order-toggle{min-height:44px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;flex:1;font-size:.95rem}.wait-order-toggle.active{background:#4f9dff4d;border-color:#4f9dff}.wait-order-hint{opacity:.65;margin:0;font-size:.8rem}.wait-difficulty-menu{flex-direction:column;gap:12px;display:flex}.wait-difficulty-item{min-height:56px;color:inherit;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:14px;padding:14px 18px;font-size:1.05rem}.wait-difficulty-item:active{background:#ffffff24}.wait-training-section-title{opacity:.85;margin:0 0 8px;font-size:.95rem}.wait-training-submit{color:#0b0e14;background:#4f9dff;border:none;border-radius:12px;min-height:52px;font-size:1.05rem;font-weight:800}.wait-training-submit:disabled{opacity:.4}.wait-training-result{border-radius:12px;flex-direction:column;gap:8px;padding:14px;display:flex}.wait-training-result.correct{background:#4cd9641f;border:1px solid #4cd96466}.wait-training-result.wrong{background:#ff3b301f;border:1px solid #ff3b3066}.wait-training-result-headline{margin:0;font-size:1.1rem;font-weight:800}.wait-training-answer-label,.wait-training-answer-count{margin:0;font-size:.9rem}.wait-training-next{color:#0b0e14;background:#4f9dff;border:none;border-radius:10px;min-height:48px;font-size:1rem;font-weight:800}.training-hand-view{flex-direction:column;gap:10px;display:flex}.training-tags{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.training-tag{background:#4f9dff33;border:1px solid #4f9dff80;border-radius:12px;padding:3px 10px;font-size:.78rem;font-weight:700}.training-label{opacity:.7;font-size:.75rem}.training-indicators,.training-winning{align-items:center;gap:8px;display:flex}.training-indicator-tile,.training-winning-tile{border-radius:5px;width:32px;height:auto}.training-winning-tile{outline-offset:1px;outline:2px solid #ffc107}.training-hand{flex-direction:column;gap:8px;display:flex}.training-intro{opacity:.75;margin:0;font-size:.82rem;line-height:1.7}.training-group{flex-direction:column;gap:8px;display:flex}.training-group-title{opacity:.8;margin:0;font-size:.9rem}.training-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.training-card{width:100%;min-height:60px;color:inherit;text-align:left;background:#ffffff0f;border:1px solid #ffffff24;border-radius:14px;align-items:center;gap:12px;padding:10px 14px;display:flex}.training-card-mixed{background:#4f9dff24;border-color:#4f9dff99}.training-card-icon{font-size:1.5rem}.training-card-text{flex-direction:column;gap:2px;min-width:0;display:flex}.training-card-text strong{font-size:1rem}.training-card-text small{opacity:.7;font-size:.75rem;line-height:1.5}.training-card-stat{color:#7fb8ff;font-weight:700;opacity:1!important}.hand-tray{background:#ffffff0f;border-radius:10px;flex-wrap:wrap;gap:6px;min-height:60px;padding:8px;display:flex}.hand-tray-empty{opacity:.6;background:#ffffff0f;border-radius:10px;align-items:center;min-height:60px;margin:0;padding:0 8px;font-size:.9rem;display:flex}.hand-tray-tile{background:0 0;border:none;width:min(44px,14.2857% - 5.14286px);padding:0;line-height:0}.hand-tray-tile .tile-face{border-radius:6px;width:100%;height:auto;display:block}.hand-tray-tile:active .tile-face{transform:scale(.94)}.meld-builder{flex-direction:column;gap:10px;display:flex}.meld-type-select{flex-wrap:wrap;gap:6px;display:flex}.meld-type-btn,.kakan-source-btn{min-height:40px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:999px;padding:6px 14px;font-size:.9rem}.meld-type-btn.active,.kakan-source-btn.active{background:#4f9dff4d;border-color:#4f9dff}.kakan-source-select{flex-direction:column;gap:6px;display:flex}.meld-red-toggle{opacity:.85;align-items:center;gap:8px;font-size:.85rem;display:flex}.meld-builder-hint{opacity:.6;margin:0;font-size:.8rem}.meld-tray{flex-direction:column;gap:6px;display:flex}.meld-tray-item{color:inherit;background:#4f9dff14;border:1px dashed #ffffff4d;border-radius:10px;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 10px;display:flex}.meld-type-label{background:#4f9dff40;border-radius:999px;flex-shrink:0;padding:2px 8px;font-size:.85rem;font-weight:700}.meld-tiles{flex-wrap:wrap;gap:4px;display:flex}.meld-tile-face{border-radius:4px;width:30px;height:auto}.result-summary{background:#4f9dff1a;border:1px solid #4f9dff4d;border-radius:12px;flex-direction:column;gap:10px;padding:14px;display:flex}.result-yaku-list{flex-direction:column;gap:2px;margin:0;padding:0;font-size:.85rem;list-style:none;display:flex}.result-yaku-list li{justify-content:space-between;display:flex}.result-yaku-han{opacity:.7}.result-summary-line{gap:10px;font-size:.95rem;font-weight:700;display:flex}.result-limit{color:#4f9dff}.result-points{margin:0;font-size:1.6rem;font-weight:800}.result-payment-detail{opacity:.75;margin:0;font-size:.8rem}.score-table{flex-direction:column;gap:12px;display:flex}.score-table-toggles{gap:8px;display:flex}.score-table-toggle-row{flex:1;gap:6px;display:flex}.score-table-toggle{min-height:40px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;flex:1;font-size:.9rem}.score-table-toggle.active{background:#4f9dff4d;border-color:#4f9dff}.score-table-scroll{border:1px solid #ffffff26;border-radius:10px;overflow-x:auto}.score-table table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:.8rem}.score-table th,.score-table td{text-align:center;border:1px solid #ffffff1a;padding:6px 10px}.score-table thead th{background:#ffffff0f;position:sticky;top:0}.score-table tbody th{background:#ffffff0a;position:sticky;left:0}.score-table-corner{z-index:2;background:#ffffff14;position:sticky;top:0;left:0}.score-table-cell-highlight{outline-offset:-2px;background:#4f9dff59;outline:2px solid #4f9dff;font-weight:700}.score-table-limits{flex-direction:column;gap:4px;display:flex}.score-table-limit-item{background:#ffffff0a;border-radius:8px;align-items:baseline;gap:8px;padding:6px 10px;font-size:.85rem;display:flex}.score-table-limit-name{min-width:3.5em;font-weight:700}.score-table-limit-range{opacity:.6;min-width:4.5em;font-size:.75rem}.score-table-limit-value{margin-left:auto;font-weight:700}.score-table-limit-highlight{outline-offset:-2px;background:#4f9dff59;outline:2px solid #4f9dff}.situation-panel{flex-direction:column;gap:12px;display:flex}.situation-toggle-row{gap:8px;display:flex}.situation-toggle{min-height:44px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;flex:1;font-size:.95rem}.situation-toggle.active{background:#4f9dff4d;border-color:#4f9dff}.situation-checkbox-grid{grid-template-columns:repeat(2,1fr);gap:8px;font-size:.85rem;display:grid}.situation-checkbox-grid label{align-items:center;gap:6px;display:flex}.situation-wind-row{gap:10px;display:flex}.situation-wind-selector{flex-direction:column;flex:1;gap:4px;display:flex}.situation-wind-label{opacity:.7;font-size:.8rem}.situation-wind-options{gap:4px;display:flex}.situation-wind-options .situation-toggle{min-height:44px;font-size:.85rem}.situation-number-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.situation-number-field{opacity:.85;flex-direction:column;gap:4px;min-width:0;font-size:.8rem;display:flex}.situation-number-field input{box-sizing:border-box;width:100%;min-width:0;min-height:40px;color:inherit;background:#ffffff0f;border:1px solid #ffffff40;border-radius:8px;padding:0 10px;font-size:1rem}.winning-tile-selector{flex-wrap:wrap;gap:6px;display:flex}.winning-tile-btn{background:0 0;border:none;border-radius:6px;width:42px;padding:0;line-height:0}.winning-tile-btn .tile-face{border-radius:6px;width:100%;height:auto;display:block}.winning-tile-btn.selected .tile-face{outline-offset:1px;border-radius:6px;outline:2px solid #4f9dff}.winning-tile-hint{opacity:.6;margin:0;font-size:.8rem}.rules-editor{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.rules-editor-row{background:#ffffff0f;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:8px 12px;display:flex}.rules-editor-text{flex-direction:column;gap:2px;min-width:0;display:flex}.rules-editor-text small{opacity:.65;font-size:.72rem;line-height:1.5}.rules-editor-row input{flex-shrink:0;width:24px;height:24px}.rules-details>summary{cursor:pointer;align-items:center;min-height:44px;font-size:.95rem;font-weight:700;display:flex}.rules-details[open]>summary{margin-bottom:8px}.scoring-input-page{max-width:480px;min-height:100dvh;padding:calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));flex-direction:column;gap:20px;margin:0 auto;display:flex}.scoring-input-header{top:env(safe-area-inset-top);z-index:20;background:var(--bg);align-items:center;gap:12px;padding:8px 0;display:flex;position:sticky}.scoring-input-header h1{text-align:center;flex:1;margin:0;font-size:1.1rem}.back-button,.reset-button{touch-action:manipulation;min-width:44px;min-height:44px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;padding:0 12px;font-size:.95rem}.section-title{opacity:.85;margin:0 0 8px;font-size:.95rem}.input-error{color:#ff8080;margin:6px 0 0;font-size:.8rem}.calculate-button{color:#0b0e14;background:#4f9dff;border:none;border-radius:12px;min-height:52px;font-size:1.05rem;font-weight:800}.calculate-button:disabled{opacity:.4}.game-confirm-button{background:#4cd964;width:100%;margin-top:12px}.sanma-toggle{gap:8px;display:flex}.sanma-toggle-button{min-height:44px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;flex:1;font-size:.9rem}.sanma-toggle-button.active{background:#4f9dff4d;border-color:#4f9dff;font-weight:700}.game-page{max-width:480px;min-height:100dvh;padding:calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) calc(32px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));flex-direction:column;gap:18px;margin:0 auto;display:flex}.game-header{top:env(safe-area-inset-top);z-index:20;background:var(--bg);align-items:center;gap:12px;padding:8px 0;display:flex;position:sticky}.game-header h1{text-align:center;flex:1;margin:0;font-size:1.05rem}.game-header-spacer{min-width:44px}.game-section{flex-direction:column;gap:8px;display:flex}.game-hint{opacity:.7;margin:0;font-size:.78rem;line-height:1.6}.game-segmented{gap:8px;display:flex}.game-segment{min-height:46px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;flex:1;font-size:.95rem}.game-segment.active{background:#4f9dff4d;border-color:#4f9dff;font-weight:700}.game-segment:disabled{opacity:.35}.game-field{justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.game-field-label{font-size:.9rem}.game-field-input{align-items:center;gap:6px;display:flex}.game-field input,.game-name-input{width:110px;min-height:40px;color:inherit;text-align:right;background:#ffffff0f;border:1px solid #ffffff40;border-radius:8px;padding:0 10px;font-size:1rem}.game-name-input{text-align:left;width:180px}.game-field-suffix{opacity:.7;min-width:36px;font-size:.8rem}.game-toggle{justify-content:space-between;align-items:center;gap:12px;min-height:44px;font-size:.9rem;display:flex}.game-toggle input{width:22px;height:22px}.game-start-button{min-height:56px}.game-info-bar{background:#ffffff0f;border-radius:10px;justify-content:space-between;gap:8px;padding:8px 12px;font-size:.85rem;display:flex}.game-finished-banner{background:#ffc1071f;border:1px solid #ffc10799;border-radius:12px;flex-direction:column;gap:8px;padding:12px;display:flex}.game-finished-banner p{margin:0;font-weight:700}.game-players{gap:10px;display:grid}.game-players.players-4{grid-template-columns:repeat(2,minmax(0,1fr))}.game-players.players-3{grid-template-columns:repeat(3,minmax(0,1fr))}.game-player-card{background:#ffffff0f;border:1px solid #ffffff24;border-radius:14px;flex-direction:column;gap:8px;min-width:0;padding:10px;display:flex}.game-player-card.is-dealer{background:#ffc1071a;border-color:#ffc107}.game-player-card.is-riichi{box-shadow:inset 0 0 0 2px #ff5a5a}.game-player-head{align-items:center;gap:6px;min-width:0;display:flex}.game-player-wind{text-align:center;background:#ffffff2e;border-radius:50%;flex-shrink:0;width:22px;height:22px;font-size:.75rem;font-weight:800;line-height:22px}.game-player-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:.85rem;overflow:hidden}.game-dealer-badge{color:#0b0e14;background:#ffc107;border-radius:8px;flex-shrink:0;padding:1px 6px;font-size:.7rem;font-weight:800}.game-player-score{min-height:44px;color:inherit;font-variant-numeric:tabular-nums;text-align:center;background:0 0;border:none;border-radius:8px;font-size:1.45rem;font-weight:800}.game-players.players-3 .game-player-score{font-size:1.15rem}.game-player-score.negative,.negative{color:#ff6b6b}.game-score-adjust{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}.game-score-adjust button,.game-chip-row button{min-height:36px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:8px;font-size:.78rem}.game-riichi-button{color:#ff8a8a;background:0 0;border:1px solid #ff5a5ab3;border-radius:10px;min-height:40px;font-size:.8rem;font-weight:700}.game-riichi-button.active{color:#fff;background:#ff5a5a47}.game-riichi-button:disabled{opacity:.35}.game-chip-row{justify-content:space-between;align-items:center;gap:8px;font-size:.8rem;display:flex}.game-chip-row button{min-width:44px;font-size:1.1rem}.game-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.game-action{min-height:52px;color:inherit;background:#ffffff0f;border:1px solid #ffffff40;border-radius:12px;font-size:.95rem}.game-action.primary{color:#0b0e14;background:#4f9dff;border:none;grid-column:1/-1;font-size:1.05rem;font-weight:800}.game-action:disabled{opacity:.4}.game-log{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.game-log-item{background:#ffffff0d;border-radius:10px;padding:8px 10px;font-size:.8rem}.game-log-text,.game-log-deltas{margin:0}.game-log-deltas{flex-wrap:wrap;gap:4px 10px;margin-top:4px;font-size:.75rem;display:flex}.plus{color:#5ee07a}.minus{color:#ff7b7b}.game-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.game-choice{min-height:56px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:6px;font-size:.95rem;display:flex}.game-choice small{opacity:.7;font-size:.7rem}.game-choice.active{background:#4f9dff4d;border:2px solid #4f9dff;font-weight:800}.game-choice.active.loser{background:#ff5a5a40;border-color:#ff5a5a}.game-choice:disabled{opacity:.35}.game-pending-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.game-pending-item{background:#4cd9641f;border:1px solid #4cd96466;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;font-size:.85rem;display:flex}.game-pending-item button{min-height:36px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:8px;padding:0 12px}.game-preview{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.game-preview-row{background:#ffffff0d;border-radius:8px;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:8px 10px;font-size:.82rem;display:grid}.game-preview-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.game-preview-scores{font-variant-numeric:tabular-nums;opacity:.9}.game-preview-delta{text-align:right;font-variant-numeric:tabular-nums;min-width:64px;font-weight:800}.game-result-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.game-result-card{background:#ffffff0f;border:1px solid #ffffff24;border-radius:14px;flex-direction:column;gap:6px;padding:12px;display:flex}.game-result-card.rank-1{background:#ffc1071a;border-color:#ffc107}.game-result-head{align-items:baseline;gap:10px;display:flex}.game-result-rank{font-size:1.1rem;font-weight:900}.game-result-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.game-result-score{font-variant-numeric:tabular-nums;font-weight:700}.game-result-detail{opacity:.75;margin:0;font-size:.78rem}.game-result-total{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:baseline;font-size:1.25rem;font-weight:900;display:flex}.game-result-yen{font-size:1.1rem}.game-uma-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.game-uma-item{justify-content:space-between;align-items:center;gap:10px;display:flex}.game-uma-rank{min-width:36px;font-size:.9rem}.game-stepper{align-items:center;gap:6px;display:flex}.game-stepper button{min-width:44px;min-height:44px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;font-size:.9rem}.game-uma-value{text-align:center;font-variant-numeric:tabular-nums;min-width:48px;font-size:1.1rem;font-weight:800}.game-name-picker{flex-direction:column;gap:6px;display:flex}.game-name-select{width:200px;max-width:60vw;min-height:44px;color:inherit;background:#ffffff0f;border:1px solid #ffffff40;border-radius:8px;padding:0 10px;font-size:1rem}.game-name-select option{color:#111}.game-name-add{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.game-name-add .game-name-input{width:160px}.game-name-add-button{min-height:44px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:8px;padding:0 14px;font-size:.85rem}.game-name-add-button:disabled{opacity:.4}.game-name-add .input-error{text-align:right;flex-basis:100%;margin:0}.game-registered-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.game-registered-item{background:#ffffff0d;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:6px 10px;display:flex}.game-registered-item button{min-height:40px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:8px;padding:0 12px}.game-stats-list,.game-history-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.game-stats-card{background:#ffffff0f;border:1px solid #ffffff24;border-radius:12px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.game-stats-head{align-items:baseline;gap:10px;display:flex}.game-stats-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:700;overflow:hidden}.game-stats-pt,.game-stats-yen{font-variant-numeric:tabular-nums;font-weight:800}.game-history-item{width:100%;min-height:64px;color:inherit;text-align:left;background:#ffffff0f;border:1px solid #ffffff24;border-radius:12px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.game-history-date{opacity:.7;font-size:.75rem}.game-history-summary{font-size:.82rem;line-height:1.5}.game-history-top{font-size:.85rem;font-weight:700}.game-danger{color:#ff8a8a;border-color:#ff5a5a99}.game-share-button{min-width:44px;min-height:44px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;font-size:1.2rem}.game-share-button.live{background:#4cd9642e;border-color:#4cd964}.game-share-badge{color:#4cd964}.game-chip-readonly{text-align:center;opacity:.85;margin:0;font-size:.8rem}.share-status,.watch-status{background:#ffffff0f;border-radius:10px;padding:10px 12px;font-size:.85rem}.share-status-live,.watch-status-live{background:#4cd96424;border:1px solid #4cd96480}.share-status-error,.watch-status-error,.watch-status-ended{background:#ff5a5a1f;border:1px solid #ff5a5a80}.watch-bar{flex-direction:column;gap:10px;display:flex}.share-code{letter-spacing:.18em;text-align:center;font-variant-numeric:tabular-nums;-webkit-user-select:all;user-select:all;background:#ffffff14;border-radius:12px;padding:14px;font-size:1.9rem;font-weight:900}.share-qr{background:#fff;border-radius:12px;align-self:center;width:220px;padding:8px;line-height:0}.share-qr svg{width:100%;height:auto}.share-url{word-break:break-all;opacity:.6;margin:0;font-size:.7rem;line-height:1.5}.watch-code-input{min-height:56px;color:inherit;letter-spacing:.16em;text-align:center;text-transform:uppercase;background:#ffffff0f;border:1px solid #ffffff4d;border-radius:12px;padding:0 14px;font-size:1.5rem;font-weight:800}.game-method-list{flex-direction:column;gap:8px;display:flex}.game-method-list .game-action{text-align:left;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 14px;display:flex}.game-method-list .game-action small{opacity:.7;font-size:.72rem;font-weight:400}.game-preset-list{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.game-preset{min-height:40px;color:inherit;font-variant-numeric:tabular-nums;background:#ffffff0f;border:1px solid #ffffff40;border-radius:20px;padding:0 12px;font-size:.85rem}.game-preset:active{background:#4f9dff4d}.game-direct-summary{background:#4cd96424;border:1px solid #4cd96473;border-radius:10px;margin:0;padding:10px 12px;font-weight:800}.game-seat-tools{justify-content:space-between;align-items:center;gap:8px;display:flex}.game-seat-row{align-items:flex-start;gap:8px;display:flex}.game-seat-picker{flex:1;min-width:0}.game-seat-move{flex-direction:column;gap:4px;display:flex}.game-seat-move button{min-width:44px;min-height:44px;color:inherit;background:0 0;border:1px solid #ffffff40;border-radius:10px;font-size:1.1rem}.game-seat-move button:disabled{opacity:.3}.game-overtime-badge{color:#ffc107}.game-file-input{display:none}.yaku-examples-page{max-width:480px;min-height:100dvh;padding:calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));flex-direction:column;gap:20px;margin:0 auto;display:flex}.yaku-examples-header{top:env(safe-area-inset-top);z-index:20;background:var(--bg);align-items:center;gap:12px;padding:8px 0;display:flex;position:sticky}.yaku-examples-header h1{text-align:center;flex:1;margin:0;font-size:1.05rem}.yaku-examples-header-spacer{min-width:40px}.yaku-examples-section{flex-direction:column;gap:8px;display:flex}.yaku-examples-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.yaku-example-item{background:#ffffff0f;border:1px solid #ffffff1f;border-radius:12px;overflow:hidden}.yaku-example-toggle{width:100%;min-height:48px;color:inherit;text-align:left;background:0 0;border:none;align-items:center;gap:10px;padding:10px 14px;display:flex}.yaku-example-toggle:active{background:#ffffff1a}.yaku-example-name{font-weight:700}.yaku-example-han{opacity:.7;text-align:right;flex:1;font-size:.75rem}.yaku-example-chevron{opacity:.6;font-size:.7rem}.yaku-example-detail{flex-direction:column;gap:10px;padding:4px 14px 14px;display:flex}.yaku-example-description{margin:0;font-size:.85rem;line-height:1.6}.yaku-example-win{opacity:.9;align-items:center;gap:8px;font-size:.8rem;display:flex}.yaku-example-win-tile{border-radius:5px;width:32px;height:auto}.yaku-example-conditions{opacity:.7;margin:0;font-size:.75rem}.app-shell{min-height:100dvh;padding:calc(24px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));flex-direction:column;gap:24px;max-width:480px;margin:0 auto;display:flex}.app-title{text-align:center;letter-spacing:.05em;font-size:1.5rem;font-weight:700}.menu{flex-direction:column;gap:12px;display:flex}.menu-item{width:100%;min-height:56px;color:inherit;text-align:left;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:14px;align-items:center;gap:12px;padding:14px 18px;font-size:1.05rem;display:flex}.menu-item:active{background:#ffffff24}.menu-item:disabled{opacity:.4}.menu-icon{font-size:1.3rem;line-height:1}
