
:root{font-family:system-ui,sans-serif;color:#19342b;background:#f2f5ef}body{max-width:1100px;margin:24px auto;padding:0 18px}h1{font-size:1.65rem}section{background:white;border:1px solid #d7e1d5;border-radius:12px;padding:20px;margin:18px 0}label{display:inline-block;margin:8px 18px 8px 0}select,input,button{font:inherit;padding:9px;border:1px solid #a4b8ab;border-radius:6px}input{width:5.2em}button{background:#1c634b;color:white;cursor:pointer}button.secondary{background:white;color:#1c634b}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:10px;text-align:left;border-bottom:1px solid #e0e6de;white-space:nowrap}small,.muted{color:#53685e}#notice{color:#854000;white-space:pre-line}#error{color:#a12626}details{margin-top:12px}pre{white-space:pre-wrap;font-size:.82rem}input:disabled{background:#e6e9e4;color:#888}.stat{font-size:1.2rem;font-weight:600}@media(max-width:600px){body{padding:0 10px}section{padding:12px}th,td{padding:8px}h1{font-size:1.35rem}}

*{box-sizing:border-box}body{max-width:1250px}button:focus-visible,select:focus-visible{outline:3px solid #d2a44d;outline-offset:3px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:20px;align-items:start}
.tabletop{background:radial-gradient(ellipse at center,#2e7058,#194936);border:5px solid #315640;border-radius:14px;padding:18px;display:grid;grid-template-columns:1fr 1.12fr 1fr;grid-template-areas:". west ." "north center south" ". east .";gap:16px 10px;align-items:center;min-height:426px;color:#f5f8eb;box-shadow:inset 0 0 45px #102f2a44}
.seat{padding:9px;background:#164c354a;border:1px solid #75a08355;border-radius:8px;text-align:center}.seat-east{grid-area:east}.seat-south{grid-area:south}.seat-west{grid-area:west}.seat-north{grid-area:north}.seat-name{font-size:.87rem;margin-bottom:5px}.seat-name small{font-size:.64rem;color:#bfdbc2}
.river{display:flex;justify-content:center;gap:4px}.river-cell{display:flex;align-items:center;flex-direction:column;gap:4px}.turn-label{font-size:.62rem;color:#bed3b7}
.tile-slot{display:grid;place-items:center;padding:0;width:39px;height:58px;border:1px dashed #92bca1;background:#194a38;color:#a5c9ab;position:relative}.tile-slot:hover{background:#28674c}.tile-slot[aria-pressed=true]{outline:3px solid #f1c66c;outline-offset:3px}.tile-slot.beyond{opacity:.48}.tile-slot .tile{pointer-events:none}
.table-center{grid-area:center;text-align:center}.round-label{font-size:1rem;letter-spacing:.05em}.cutoff-label{font-size:.68rem;color:#bdd6bf;min-height:33px;margin-top:7px}
.indicator-row{display:flex;justify-content:center;align-items:center;gap:10px;margin:11px 0}.indicator-part{display:flex;align-items:center;flex-direction:column;gap:6px}.indicator-part small{font-size:.65rem;color:#cee0c5}.indicator-arrow{font-size:1rem;color:#b1ceaa}.dora-preview{height:58px;display:grid;place-items:center}
.picker{background:#f6f8f2;border:1px solid #d9e3d7;border-radius:9px;padding:16px}.target-label{font-size:.88rem;font-weight:650;color:#235d44;margin-bottom:10px;min-height:24px}
.palette-row{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;margin:9px 0}.palette-label{font-size:.66rem;color:#73816c}.picker-actions{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0}.picker-actions button{font-size:.78rem;padding:6px 10px;background:white;color:#28583f}
.tile{display:inline-flex;align-items:center;justify-content:center;position:relative;width:37px;height:54px;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 .face{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;width:100%;height:100%}.tile .rank{font-size:23px;font-family:"Yu Mincho","MS Mincho",serif;font-weight:650}.tile .suit{font-size:14px;color:#a44636;font-family:"Yu Mincho",serif}.tile .honor{font-size:26px;font-family:"Yu Mincho","MS Mincho",serif;font-weight:700}.tile .honor-green{color:#34764b}.tile .honor-red,.tile.red .rank,.tile.red .suit{color:#bf4235}.tile svg{display:block;width:31px;height:43px}.tile .white-dragon{width:23px;height:31px;border:2px solid #b4c5c5;border-radius:2px}
.palette-row .tile{width:100%;height:45px;padding:1px}.palette-row .tile .rank{font-size:18px}.palette-row .tile .suit{font-size:11px}.palette-row .tile .honor{font-size:21px}.palette-row .tile svg{width:25px;height:35px}.palette-row .tile .white-dragon{width:17px;height:25px}.guest-face{font-size:15px;line-height:1.2;color:#f5e6b2;pointer-events:none}
#symmetry-summary{font-size:.8rem;color:#66765d}.symmetry-note{background:#eff5eb;border-left:3px solid #729b68;padding:10px 14px;font-size:.87rem}
@media(max-width:1050px){.workspace{grid-template-columns:1fr}.palette-row{max-width:470px}.tabletop{min-height:400px}.seat{max-width:210px;justify-self:center;width:100%}}
@media(max-width:620px){.tabletop{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"west west" "north south" "center center" "east east";padding:13px;gap:12px;min-height:450px}.seat{max-width:190px;min-width:0;padding:7px}.table-center{padding:4px}.indicator-row{margin:8px 0}.round-label{font-size:.9rem}.tile-slot{width:32px;height:49px}.tile-slot .tile{width:30px;height:46px}.tile-slot .tile svg{width:26px;height:36px}section{padding:14px}}
@media(max-width:380px){.tabletop{grid-template-columns:minmax(0,1fr);grid-template-areas:"west" "north" "center" "south" "east";min-height:0}}

.cut-toggle{font-size:10px;line-height:1.3;width:39px;min-height:23px;padding:3px 1px;border:1px solid #71947b;background:#235440;color:#c5d6c4;border-radius:4px}
.cut-toggle:hover{background:#40725b}.cut-toggle.cut-hand{background:#d5e6cc;color:#214b32}.cut-toggle.cut-tsumo{background:#f3df9b;color:#584011}
.cut-mode-control{display:block!important;font-size:12px;margin:6px 0 12px!important}.cut-mode-control select{width:100%;margin-top:5px}
@media(max-width:620px){.cut-toggle{width:32px;font-size:9px}}

/* New Giovanni styles, guided by kyokumen-board's tile sheet and felt board. */
:root{color:#263c3a;background:#edf1f2;--accent:#167a70}
body{max-width:1320px}h1{letter-spacing:.08em}section{border-color:#dce4e5;box-shadow:0 4px 20px #183c3810}
.workspace{grid-template-columns:minmax(0,1fr) 400px}
.tabletop{background:radial-gradient(ellipse at center,#256b66,#123f3e);border:7px solid #243d40;border-radius:18px;min-height:470px;gap:22px 10px}
.seat{background:#123c3b66;border-color:#83b8ae40}.seat-name{font-weight:650;letter-spacing:.12em}
.picker{background:#f8fafb;border-color:#dce4e5;border-radius:12px}.picker h2{font-size:1.1rem;margin-top:0}
.palette-row{display:flex;gap:3px;flex-wrap:nowrap}.palette-label{margin-top:14px;font-size:.75rem}
.tile.image-tile{width:34px;height:47px;padding:0;border:0;border-radius:3px;background:transparent;box-shadow:0 2px 3px #102b3b30;overflow:visible}
.tile.image-tile img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}
.palette-row .tile.image-tile{width:32px;height:44px;flex:0 0 auto;transition:transform .12s}
.palette-row .tile:hover{transform:translateY(-3px)}
.tile-slot{width:38px;height:51px;border-radius:4px;background:#133f3d}
.tile-slot .tile.image-tile{width:34px;height:47px}.tile-slot[aria-pressed=true]{outline-color:#ebc77d}
.tile-slot:has(+.cut-tsumo) img{filter:brightness(.76)}
.cut-toggle{width:38px}.target-label{padding:9px;background:#e5f0ee;border-radius:6px;color:#176359}
button:focus-visible,select:focus-visible{outline:3px solid #e5ae4c;outline-offset:3px}
.picker-actions button{border-color:#b6c9c7}.image-credit{font-size:.75rem;color:#637875}
@media(max-width:1100px){.workspace{grid-template-columns:1fr}.picker{max-width:100%}.palette-row{max-width:450px}}
@media(max-width:620px){.tabletop{min-height:450px;padding:12px;gap:12px}.tile-slot{width:32px;height:46px}.tile-slot .tile.image-tile{width:29px;height:41px}.cut-toggle{width:32px}.palette-row .tile.image-tile{width:calc((100vw - 100px)/10);max-width:34px;height:auto;aspect-ratio:34/47}.palette-row{gap:2px}}

/* Public identity: quiet paper, deep green felt, warm brass. */
html{scroll-behavior:smooth;scroll-padding-top:24px}:root{background:#f2f1e9;color:#243b34;font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN",system-ui,sans-serif}body{max-width:1320px;padding:0 28px;margin:0 auto}a{color:inherit;text-decoration:none}button,a,summary{touch-action:manipulation}button[hidden]{display:none}button:disabled{cursor:default;opacity:.48}
.masthead{display:flex;justify-content:space-between;align-items:center;padding:26px 0;border-bottom:1px solid #d4dbcf}.wordmark{display:flex;align-items:baseline;gap:14px;font-family:"Yu Mincho",serif;font-size:24px;font-weight:700;letter-spacing:.08em}.wordmark span{font-family:system-ui,sans-serif;font-size:9px;letter-spacing:.22em;font-weight:500;color:#657366}nav{display:flex;gap:24px;font-size:12px}nav a:hover{text-decoration:underline;text-underline-offset:5px}
.hero{display:flex;justify-content:space-between;align-items:center;gap:35px;padding:52px 0 32px}.eyebrow{font-family:system-ui,sans-serif;font-size:10px;letter-spacing:.19em;color:#718071}.hero h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:84px;line-height:1.05;font-weight:600;letter-spacing:.08em;margin:20px 0}.title-dot{color:#aa8550}.hero-copy{font-size:21px;letter-spacing:.1em;margin:22px 0 9px}.hero-note{font-size:13px;color:#6e7b6a}.mobile-break{display:none}.sample-card{border-left:1px solid #c9d3c6;padding:18px 0 18px 38px;display:flex;flex-direction:column;gap:10px;font-size:12px;color:#6e796a}.sample-card strong{font-family:system-ui,sans-serif;letter-spacing:-.04em;font-weight:450;color:#254e40;font-size:47px;font-variant-numeric:tabular-nums}.sample-card small{font-size:14px;margin-left:9px;letter-spacing:0}.sample-card .local-badge{font-size:10px;color:#376450;background:#e3eade;border-radius:25px;padding:6px 10px;align-self:flex-start}.model-status{color:#6c7b68;font-size:11px;letter-spacing:.03em;margin:0 0 25px}
section{background:#fffefa;border:1px solid #d6dfd1;border-radius:16px;padding:28px;margin:0 0 24px;box-shadow:0 5px 25px #183c3808}.section-heading{display:flex;gap:15px;align-items:baseline;margin-bottom:18px}.section-heading h2{font-size:20px;letter-spacing:.06em;margin:0}.section-heading p{font-size:12px;margin:7px 0 0;color:#6e7b6a}.step{font-family:system-ui,sans-serif;font-size:11px;letter-spacing:.1em;color:#9e875e}.context-grid,.score-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.context-grid label,.score-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;margin:0}.context-grid input,.context-grid select,.score-grid input{width:100%;min-width:0;background:#f7f8f1}.score-settings{margin-top:16px}.score-grid{margin-top:14px}.cutoff-control{border-top:1px solid #e4e8df;margin:18px 0;padding-top:12px}.cutoff-control label{font-size:12px}.cutoff-control select{margin-left:10px;max-width:100%}select,input{border-color:#bdcbb9;color:#294539;font-size:14px}.muted{font-size:12px;line-height:1.9}.workspace{gap:22px}.tabletop{border-color:#25443d;background:radial-gradient(ellipse at 40% 30%,#326f5b,#17473f);min-height:460px}.tabletop .seat-name{font-size:11px;letter-spacing:.04em}.tabletop small{color:#c9d6c5}.picker{background:#f5f7ef}.picker-hint{font-size:11px}.picker summary{font-size:11px}.picker-actions button{font-size:11px}.query-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.query-actions label{font-size:12px;display:flex;gap:8px;align-items:center}.query-actions button{font-size:12px;padding:11px 18px}.query-actions button[type=submit]{background:#225d47;border-color:#225d47}.query-actions button[type=submit] span{margin-left:18px}.query-actions .secondary{background:transparent}.stat{font-size:12px;font-weight:500;color:#6a7863}table{font-variant-numeric:tabular-nums}th{font-size:11px;color:#6d7a65;font-weight:500;background:#f1f5ec}td{font-family:system-ui,sans-serif;font-size:25px;padding:22px 12px;font-weight:450;color:#285d45}td:first-child{font-family:inherit;font-size:14px;font-weight:600}#notice{font-size:12px;line-height:1.9;color:#836137;background:#faf4e4;border-radius:7px;padding:12px 14px}#symmetry-summary,#details{font-size:12px;line-height:1.9}.result-section summary{font-size:12px}.about-section{padding:38px 0;background:transparent;border:0;box-shadow:none}.about-section h2{font-family:"Yu Mincho",serif;font-size:28px;line-height:1.7;font-weight:500;letter-spacing:.1em}.about-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.about-grid h3{font-size:13px}.about-grid p{font-size:12px;line-height:2;color:#67745f}footer{border-top:1px solid #cbd6c5;padding:30px 0 45px;display:flex;justify-content:space-between;align-items:start;gap:30px}footer p{font-size:10px;color:#718069;line-height:2;margin:0}
@media(max-width:1100px){.workspace{grid-template-columns:1fr}.picker .palette-row{max-width:460px}.hero h1{font-size:72px}.tabletop{min-height:430px}}
@media(max-width:620px){body{padding:0 14px}.masthead{padding:18px 0}.wordmark{font-size:21px}.wordmark span{display:none}nav{gap:16px;font-size:11px}.hero{padding:34px 0 25px;gap:14px}.hero h1{font-size:53px;margin:17px 0}.hero .eyebrow{font-size:8px;letter-spacing:.08em}.hero-copy{font-size:15px;letter-spacing:.03em}.hero-note{font-size:10px;max-width:180px;line-height:1.7}.sample-card{padding:14px 0 14px 14px;font-size:9px;gap:9px}.sample-card strong{font-size:29px}.sample-card small{font-size:11px;margin-left:5px}.sample-card .local-badge{font-size:8px;padding:5px 7px}.mobile-break{display:inline}.model-status{font-size:10px;margin-bottom:18px}section{padding:17px;border-radius:12px}.section-heading{gap:10px}.section-heading h2{font-size:18px}.context-grid,.score-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cutoff-control label{display:block;margin-right:0}.cutoff-control select{margin:8px 0 0;width:100%;font-size:12px}.tabletop{padding:12px 7px;gap:12px 6px}.tabletop .seat-name{font-size:10px}.picker{padding:12px}.palette-row .tile.image-tile{width:calc((100vw - 98px)/10);max-width:34px}.query-actions{gap:9px}.query-actions label{width:100%;justify-content:space-between;margin-right:0}.query-actions select{max-width:75%;font-size:12px}.query-actions button{padding:10px 14px}.query-actions button[type=submit] span{margin-left:10px}.scroll{margin:0 -5px}th{padding:9px 6px;font-size:10px}td{padding:17px 6px;font-size:19px}td:first-child{font-size:12px}.about-grid{grid-template-columns:1fr;gap:12px}.about-section{padding:25px 4px}.about-section h2{font-size:24px}footer{display:block;padding-bottom:30px}footer p{margin-top:18px}.section-heading p{line-height:1.7}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.palette-row .tile{transition:none}}

@media(max-width:620px){.hero{gap:12px}.hero h1{font-size:44px;letter-spacing:.05em;white-space:nowrap}.sample-card{padding-left:12px}.sample-card strong{font-size:26px}}
@media(max-width:380px){.hero{gap:10px}.hero h1{font-size:38px}.sample-card{padding-left:10px}.sample-card strong{font-size:23px}.hero .eyebrow{font-size:7px}}

.method-section{margin-top:30px}.method-lead{max-width:850px;font-size:15px;line-height:2;color:#455c4c}.method-steps{list-style:none;padding:0;margin:26px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.method-steps li{border-top:2px solid #b6cbb2;padding:17px 14px 0 0}.method-number{display:inline-grid;place-items:center;width:26px;height:26px;background:#e8efe2;border-radius:50%;color:#3e664c;font:12px system-ui,sans-serif}.method-steps h3{font-size:14px;margin:13px 0 8px;line-height:1.7}.method-steps p,.method-example p,.method-detail p,.method-note{font-size:12px;line-height:2;color:#62735d}.method-example{background:#f1f5ec;border-left:3px solid #829b70;padding:15px 19px;margin:24px 0}.method-example h3{font-size:13px;margin:0 0 6px}.method-example p{margin:0}.method-detail{border-top:1px solid #e0e7d9;padding:15px 0;margin:0}.method-detail summary{font-size:13px;font-weight:600;line-height:1.8;cursor:pointer}.method-detail[open] summary{margin-bottom:15px}.method-formula{font-size:13px;line-height:2;overflow-x:auto;white-space:nowrap;padding:15px;background:#edf2e6;border-radius:7px;color:#2d593d}.method-detail .method-data td{font-family:inherit;font-weight:400;font-size:12px;color:#4d614b;padding:12px}.method-data th{font-size:12px}.method-note{padding-top:12px;border-top:1px solid #e0e7d9;margin-bottom:0}.method-section strong{color:#365a40}
@media(max-width:620px){nav{gap:10px;font-size:10px}.method-lead{font-size:13px}.method-steps{grid-template-columns:1fr;gap:17px;margin:20px 0}.method-steps li{padding-top:14px}.method-steps h3{display:inline;margin-left:10px}.method-steps p{margin-bottom:0}.method-example{padding:13px 14px}.method-detail summary{font-size:12px}.method-formula{font-size:11px}.method-detail .method-data td{padding:10px 7px;font-size:11px}.method-data th{font-size:11px}}
