:root{font-family:"Yu Gothic UI","Meiryo",system-ui,sans-serif;color:#223c31;background:#f3f5f0;font-synthesis:none;--green:#21654b;--ink:#193b2d;--line:#dce3db;--muted:#718176;--soft:#eaf1e8;--amber:#996021}*{box-sizing:border-box}body{margin:0;line-height:1.65}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}a{color:var(--green)}:focus-visible{outline:3px solid #b78b3e;outline-offset:3px}[hidden]{display:none!important}.site-header{background:#fff;border-bottom:1px solid var(--line);padding:16px max(22px,calc((100vw - 1340px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand b{display:block;font-size:17px;letter-spacing:.05em}.brand small{display:block;font-size:10px;color:var(--muted)}.brand-tile{display:grid;place-items:center;width:35px;height:42px;background:#f8faf4;border:1px solid #bdcdbb;border-bottom:4px solid #30724d;border-radius:5px;color:#267044;font-size:25px;font-weight:700}.beta{font-size:10px;letter-spacing:.08em;border:1px solid var(--line);border-radius:4px;padding:3px 7px;color:#76816f}nav{display:flex;gap:26px;font-size:12px}nav a{text-decoration:none;color:#52675a}main{max-width:1384px;margin:auto;padding:30px 22px 30px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:23px}.eyebrow{font-size:10px;letter-spacing:.15em;color:#7d8c7b;margin:0 0 4px}h1{font-size:30px;letter-spacing:-.035em;margin:0;font-weight:650}.page-title p:last-child{font-size:13px;color:#718174;margin:6px 0 0}.connection{font-size:11px;color:#718174;display:flex;align-items:center;gap:7px;white-space:nowrap}.connection span:first-child{width:7px;height:7px;border-radius:50%;background:#bec6bb}.connection .online{background:#4d9867}.connection .offline{background:#b16746}.scope-note{display:flex;gap:15px;align-items:center;font-size:12px;border:1px solid #dedbc7;background:#f7f5ea;padding:11px 15px;margin-bottom:24px;border-radius:6px}.scope-label{font-size:10px;white-space:nowrap;border:1px solid #d9cfaf;border-radius:4px;padding:2px 7px;color:#8b703c}.scope-note p{margin:0;color:#756c51}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:22px;align-items:start;scroll-margin-top:20px}.input-panel,.settings-panel{background:#fff;border:1px solid var(--line);border-radius:9px;padding:23px}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.section-heading>div{display:flex;align-items:center;gap:9px}h2{font-size:18px;margin:0;font-weight:650;letter-spacing:-.025em}.step{font-size:11px;font-weight:650;letter-spacing:.06em;color:#96a58d}.small-actions{display:flex;gap:6px}button{border:1px solid var(--line);border-radius:5px;background:#fff;color:#4a6554;padding:7px 11px;font-size:12px;transition:background .12s}.small-actions button{font-size:11px;padding:5px 9px}button:hover{background:#edf4eb}.mode-switch{display:flex;gap:8px;margin-bottom:15px}.mode-switch button{flex:1;border-color:#e0e7dc;padding:10px;font-weight:600;color:#7c8a7e}.mode-switch button[aria-pressed=true]{background:#edf4e9;border-color:#8daf8d;color:#245c3d}.mode-switch small{font-size:10px;margin-left:8px;font-weight:400}.table-mat{background:linear-gradient(140deg,#275744,#1a4232);border:1px solid #1f4c37;border-radius:8px;padding:15px 19px 16px;color:#e9f4e5;min-height:220px;box-shadow:inset 0 0 35px #112b1d22}.mat-top{display:flex;justify-content:space-between;font-size:11px;color:#b0ceba;letter-spacing:.04em}.mat-top>span:last-child{font-size:10px;border:1px solid #52785b;border-radius:4px;padding:0 6px}.zone-heading{display:flex;align-items:center;justify-content:space-between;margin:14px 0 8px;font-size:12px}.zone-heading small{color:#a6c4ad;font-size:10px;margin-left:5px}.zone-heading b{font-size:12px;font-weight:500}.hand-tiles{display:flex;gap:4px;flex-wrap:wrap;min-height:64px;align-items:start}.tile{display:inline-flex;align-items:center;justify-content:center;position:relative;width:40px;height:55px;background:linear-gradient(100deg,#fffef7,#f4f4e9);color:#224237;border:1px solid #d6d8c8;border-bottom:4px solid #66906a;border-radius:5px;padding:3px 2px;box-shadow:0 2px 2px #153c2b22;flex:0 0 auto;vertical-align:middle;line-height:1;overflow:hidden;font-size:22px;user-select:none}.tile:hover{background:#fffef7;transform:translateY(-2px)}.tile .face{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;width:100%;height:100%}.tile .rank{font-size:24px;font-family:"Yu Mincho","MS Mincho",serif;font-weight:650}.tile .suit{font-size:15px;color:#a44636;font-family:"Yu Mincho",serif}.tile .honor{font-size:27px;font-family:"Yu Mincho","MS Mincho",serif;font-weight:700}.tile.red .rank,.tile.red .suit{color:#c63d30}.tile svg{display:block;width:33px;height:44px}.tile.red svg{color:#c63d30}.tile .corner{position:absolute;right:2px;top:2px;font-size:8px;color:#758270}.tile .white-dragon{width:24px;height:32px;border:2px solid #b4c5c5;border-radius:2px}.tile.small{width:28px;height:38px;border-radius:4px;border-bottom-width:3px;padding:2px 1px}.tile.small .rank{font-size:16px}.tile.small .suit{font-size:11px}.tile.small .honor{font-size:20px}.tile.small svg{width:24px;height:30px}.tile.small .white-dragon{width:17px;height:23px}.tile-tiny{display:inline-block;padding:2px 5px;background:#f3f5ec;border:1px solid #dce2d2;border-radius:3px;font-size:11px;white-space:nowrap;color:#455f49}.tile-blank{width:40px;height:55px;border:1px dashed #547c61;border-radius:5px;flex:0 0 auto}.mat-bottom{display:flex;align-items:center;gap:9px;margin-top:17px;border-top:1px solid #477156;padding-top:10px;font-size:10px;color:#b4cfb9;min-height:41px}.indicator-tiles{display:flex;gap:4px}.dora-label{margin-left:auto;color:#e7e4b8;font-size:11px}.meld-tiles{display:flex;gap:15px;flex-wrap:wrap;margin-top:8px}.meld-group{display:flex;gap:2px;align-items:center}.meld-group .meld-label{font-size:9px;color:#b2cdb8;margin-right:4px}.meld-group .remove-meld{padding:1px 4px;background:transparent;border-color:#6a8a6e;color:#bdd3bd;font-size:10px;margin-left:3px}.input-targets{display:flex;gap:6px;margin:19px 0 9px;flex-wrap:wrap}.input-targets button{font-size:11px;padding:6px 11px;border-radius:15px}.input-targets button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}.palette-box{border:1px solid #e2e7dd;border-radius:7px;padding:13px 12px;background:#fafbf7}.palette-caption{display:flex;justify-content:space-between;align-items:center;gap:9px;font-size:10px;color:#8a9787;margin-bottom:11px}.palette-caption b{color:#60735d;font-size:11px;font-weight:600}.palette-row{display:flex;align-items:center;gap:5px;margin:7px 0}.palette-suit{font-size:10px;color:#91a08c;min-width:23px}.palette-row .tile{width:35px;height:47px;border-bottom-width:3px;box-shadow:0 1px 2px #203b2012}.palette-row .tile .rank{font-size:21px}.palette-row .tile .suit{font-size:13px}.palette-row .tile .honor{font-size:24px}.palette-row .tile svg{width:29px;height:38px}.tile .remaining{position:absolute;left:1px;bottom:0;font-family:system-ui,sans-serif;font-size:8px;color:#657a65;opacity:.8}.notation-details,.meld-editor{margin-top:16px;font-size:12px}summary{cursor:pointer;color:#4a6952;font-weight:600;display:list-item}summary span{font-size:10px;font-weight:400;color:#8a9984;margin-left:8px}.notation-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:11px;margin-top:12px}label{font-size:11px;color:#6b7e6a;display:flex;flex-direction:column;gap:5px}input:not([type=checkbox]),select{width:100%;min-width:0;border:1px solid #dce4d8;border-radius:5px;padding:9px 10px;color:#344d39;background:#fff;font-size:12px}.notation-grid input{font-family:ui-monospace,Consolas,monospace}.help{font-size:10px;line-height:1.8;color:#8a9786;margin:9px 0 0}.visible-zones{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:12px}.visible-zones>div>span{font-size:10px;color:#819077}.small-tile-row{display:flex;flex-wrap:wrap;gap:3px;min-height:24px;margin-top:4px}.small-tile-row:empty:after{content:'未入力';color:#b0bbab;font-size:10px}.meld-form{display:grid;grid-template-columns:.9fr 1.3fr 1fr auto;align-items:end;gap:8px;margin-top:10px}.meld-form button{padding:9px 11px}.input-footer{display:flex;gap:15px;align-items:center;border-top:1px solid #edf0e8;margin-top:19px;padding-top:12px}.text-button{padding:0;border:none;background:none;font-size:10px;color:#7c8c71}.file-label{font-size:10px;color:#7c8c71;cursor:pointer;display:block}.file-label input{display:none}.settings-panel{padding:23px 19px}.settings-panel .section-heading{margin-bottom:22px}.settings-panel h2{font-size:16px}fieldset{padding:0;border:0;margin:0 0 17px}legend{font-size:11px;color:#75836c;margin-bottom:7px}.segmented{display:flex;gap:5px}.segmented button{flex:1;padding:7px 4px;font-size:13px}.segmented button[aria-pressed=true]{background:#e8f1e2;color:#2e623d;border-color:#9eb592;font-weight:650}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}.score-condition{margin:18px 0 0}.check{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:11px;margin-top:12px}.check input{accent-color:#386f42;width:14px;height:14px;margin:0}.calculate-area{margin-top:22px}.primary{background:var(--green);color:#fff;border-color:var(--green);padding:13px 18px;font-size:14px;font-weight:600;width:100%;display:flex;justify-content:center;gap:32px}.primary:hover{background:#164c36}.calculate-area p{font-size:10px;color:#8a9981;text-align:center;margin:8px 0 0}.error-box{margin-top:15px;padding:11px 12px;background:#fff2e7;color:#98552d;border:1px solid #ead4be;border-radius:5px;font-size:11px;overflow-wrap:anywhere}.error-box:empty{display:none}.results-section{margin-top:35px;scroll-margin-top:20px}.results-section .section-heading{margin-bottom:6px}.results-section #result-meta{font-size:10px;color:#83917a}.result-note{font-size:11px;color:#84927b;margin:0 0 16px}.empty-state{background:#fff;border:1px dashed #cfdac8;text-align:center;padding:37px;border-radius:8px;color:#97a18b}.empty-state>span{font-size:37px;line-height:1}.empty-state h3{font-size:14px;font-weight:500;margin:9px 0}.empty-state p{font-size:11px;margin:0}.summary-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:15px}.summary-card{background:#fff;border:1px solid var(--line);border-radius:6px;padding:12px 18px}.summary-card span{font-size:10px;color:#89977c}.summary-card b{display:block;color:#34533a;font-size:23px;font-weight:600}.summary-card b small{font-size:11px;font-weight:400;margin-left:5px;color:#819172}.candidate-table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:7px}table{width:100%;border-collapse:collapse;font-size:12px;min-width:820px}th{font-size:10px;font-weight:500;text-align:left;background:#eaf0e5;color:#687d5b;padding:12px 15px;white-space:nowrap}td{padding:12px 15px;border-top:1px solid #e5eadf;color:#586c4f;vertical-align:middle}.num{text-align:right;font-variant-numeric:tabular-nums}tbody tr.selected{background:#f1f6eb}.candidate-select{display:inline-flex;align-items:center;gap:9px;padding:0;background:none;border:none}.candidate-select:hover{background:none}.candidate-select .rank-number{font-size:10px;color:#9bab8b;width:10px}.candidate-select .tile:hover{transform:none}.shanten{font-weight:650;font-size:15px;color:#435f37}.shanten.tenpai{color:#28744d}.ukeire-count{font-weight:650;font-size:17px;color:#436b3b}.ukeire-count small{font-size:10px;font-weight:400;color:#8e9d7c;margin-left:2px}.tile-chips{display:flex;gap:4px;flex-wrap:wrap;max-width:260px}.ev-pending{font-size:10px;color:#9d9e84}.candidate-detail{background:#fff;border:1px solid var(--line);border-radius:8px;margin-top:18px;padding:20px}.detail-heading{display:flex;gap:13px;align-items:center;margin-bottom:17px}.detail-heading h3{font-size:16px;font-weight:600;margin:0}.detail-heading p{font-size:11px;color:#869778;margin:2px 0 0}.wait-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.wait-card{border:1px solid #e0e7d8;border-radius:6px;padding:13px}.wait-card-head{display:flex;align-items:center;gap:11px;margin-bottom:9px}.wait-card-head b{font-size:13px;color:#5a704b}.wait-card-head small{display:block;font-size:10px;color:#92a17e}.score-line{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:4px 0}.score-line span{color:#82966b}.score-line b{font-size:13px;font-weight:600}.yaku-line{font-size:10px;color:#91a17c;line-height:1.7;margin:6px 0 0}.furiten{color:#a77132;background:#fbf1db;padding:8px 12px;border-radius:4px;font-size:11px;margin:10px 0}.detail-ukeire{display:flex;flex-wrap:wrap;gap:8px}.ukeire-item{display:flex;gap:4px;align-items:center;font-size:11px;color:#83966d}.about-panel{background:#eaf0e4;border:1px solid #dce5d1;padding:21px 24px;border-radius:7px;margin-top:29px}.about-panel h2{font-size:14px;color:#6c8057}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:13px}.about-grid b{font-size:11px;color:#61744f}.about-grid p{font-size:11px;color:#8b9b78;margin:5px 0 0}footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:10px;color:#9aa68b;padding-top:22px}button.busy{opacity:.6}.status-error{color:#a46b3d!important}@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 255px;gap:15px}.input-panel{padding:18px}.palette-row{gap:4px}.palette-row .tile{width:31px;height:44px}.palette-caption span{font-size:9px}.hand-tiles .tile{width:35px;height:50px}}@media(max-width:850px){.workspace{grid-template-columns:1fr}.settings-panel{display:block}.settings-grid{grid-template-columns:repeat(4,1fr)}.settings-panel fieldset{display:inline-block;width:calc(50% - 7px);vertical-align:top;margin-right:7px}.settings-panel .calculate-area{max-width:360px;margin:20px auto 0}.settings-panel .score-condition{max-width:360px}.palette-row .tile{width:38px;height:49px}.hand-tiles .tile{width:39px;height:54px}.scope-note{align-items:start}}@media(max-width:560px){main{padding:21px 12px}.site-header{padding:12px 14px}.brand small{display:none}.brand b{font-size:15px}.beta{display:none}nav{gap:13px;font-size:10px}.page-title{align-items:start}.page-title h1{font-size:25px}.connection{font-size:9px;align-self:center}.scope-note{display:block;padding:10px 12px}.scope-note p{font-size:11px;margin-top:6px}.input-panel{padding:15px 12px}.table-mat{padding:12px}.hand-tiles{gap:3px;min-height:49px}.hand-tiles .tile{width:31px;height:44px}.hand-tiles .tile .rank{font-size:20px}.hand-tiles .tile .suit{font-size:12px}.hand-tiles .tile svg{width:27px;height:35px}.hand-tiles .tile .honor{font-size:23px}.tile-blank{width:31px;height:44px}.palette-row{gap:3px}.palette-suit{min-width:17px;font-size:9px}.palette-row .tile{width:calc((100vw - 95px)/10);max-width:35px;height:43px;border-radius:3px}.palette-row .tile .rank{font-size:19px}.palette-row .tile .suit{font-size:11px}.palette-row .tile svg{width:25px;height:33px}.palette-caption span{display:none}.palette-box{padding:10px 7px}.small-actions{gap:4px}.small-actions button{font-size:9px;padding:5px 6px}.section-heading h2{font-size:16px}.notation-grid,.visible-zones,.about-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr 1fr}.meld-form{grid-template-columns:1fr 1.5fr}.meld-form button{align-self:end}.input-footer{gap:12px;flex-wrap:wrap}.mode-switch button{font-size:11px;padding:9px 5px}.mode-switch small{font-size:9px;margin-left:3px}.summary-cards{gap:7px}.summary-card{padding:10px}.summary-card span{font-size:9px}.summary-card b{font-size:20px}.about-grid{gap:12px}.candidate-detail{padding:15px}.scope-label{font-size:9px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
:root .honor-green{color:#267948}:root .honor-red{color:#b73f31}
:root .input-panel,:root .settings-panel{min-width:0}
@media(max-width:850px){.workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.palette-row .tile{flex:1 1 0;width:0;min-width:0;max-width:35px}.palette-row .tile svg{width:100%;max-width:25px}.palette-suit{flex:0 0 17px}.mode-switch button{min-width:0}.section-heading{flex-wrap:wrap}}

.call-opportunity{padding:14px;background:#f1f6eb;border:1px solid var(--line);border-radius:6px;margin:12px 0}.call-opportunity[hidden]{display:none}.call-action{display:block;text-align:left;min-width:75px;font-size:12px}.call-action small{display:block;font-size:10px;color:#738568}.mode-switch{flex-wrap:wrap}.mode-switch button{flex:1 1 130px}.candidate-select{white-space:nowrap}.call-opportunity .settings-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}

/* Board and picker styling informed by kyokumen-board; see docs/DECISIONS.md. */
.tile{overflow:hidden;padding:0;background:#fff;border-color:#d6d4cb;border-bottom-color:#c2b487}
.tile .tile-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;border-radius:3px}
.tile[aria-pressed=true]{outline:3px solid #e2b857;outline-offset:3px;transform:translateY(-3px)}
.table-mat{background:radial-gradient(ellipse at top,#1b4d3e,#0f2e26);border:2px solid #43634f;box-shadow:inset 0 0 30px #061c1640}
.table-mat .zone-heading,.table-mat .mat-top,.table-mat .mat-bottom{color:#f2ebe0}
.table-mat .zone-heading small,.table-mat .dora-label{color:#b7c4b8}
.palette-box{background:#122e25;border:1px solid #46604d;border-radius:10px;color:#f2ebe0;padding:14px}
.palette-caption b{color:#e2b857}.palette-caption span,.palette-suit{color:#b7c4b8}
.palette-row .tile .remaining{color:#102c22;background:#fffce8e8;min-width:12px;border-radius:3px}
.tile-edit-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tile-edit-actions button{background:transparent;border:1px solid #829b86;color:#f2ebe0;padding:7px 12px}
.tile-edit-actions #delete-tile{border-color:#c88c78;color:#ffb8a5}
.tile-edit-actions button:hover{background:#365443}
@media(max-width:560px){.palette-box{padding:10px 7px}.tile-edit-actions button{font-size:12px}.palette-caption b{font-size:12px}}
