:root{--paper:#f6f7f2;--white:#fdfdfa;--ink:#303a2d;--muted:#838a7a;--line:#d8ddcf;--green:#607b53;--wash:#e7eddc;--rust:#a47b61;--serif:Georgia,'Songti SC','STSong',serif;--sans:'PingFang SC','Hiragino Sans GB',sans-serif;--mono:'SFMono-Regular',Consolas,monospace}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 var(--sans)}[hidden]{display:none!important}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:transparent;border-radius:3px;padding:9px 14px;min-height:42px}button:hover{border-color:#8d9d80;background:#f0f3e9}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid var(--green);outline-offset:4px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}button,a{touch-action:manipulation}h1,h2,h3{font-family:var(--serif);font-weight:500}.site-header{max-width:1480px;margin:auto;display:flex;align-items:center;gap:28px;padding:24px 44px 21px;border-bottom:1px solid var(--line)}.brand{font:bold 44px/.9 Georgia,serif;letter-spacing:-3px}.brand span{font:10px var(--sans);vertical-align:top;letter-spacing:0;margin-left:4px}.header-note{font:9px var(--mono);letter-spacing:1.2px;color:var(--muted);margin-top:6px}.site-header nav{margin-left:auto;display:flex;align-items:center;gap:26px;font-size:12px}.site-header nav a span{font:9px var(--mono);margin-left:5px;color:var(--muted)}.text-control{border:0;background:none!important;padding:5px 0;min-height:32px;font-size:12px;text-decoration:underline;text-underline-offset:4px}.icon-control{border:0;font-size:22px;min-width:38px;padding:0}.overline{font:9px/1.6 var(--mono);letter-spacing:1.4px;color:var(--muted);text-transform:uppercase}.ink-button{background:var(--ink);color:var(--white);border-color:var(--ink);min-height:50px;display:inline-flex;align-items:center;justify-content:space-between;gap:42px;padding:13px 22px;font-size:13px}.ink-button:hover{background:var(--green);border-color:var(--green)}.quiet-link{font-size:12px;text-decoration:underline;text-underline-offset:5px}.home-view{max-width:1360px;margin:auto;padding:65px 44px 0;display:grid;grid-template-columns:1.05fr 1fr;column-gap:80px}.hero-copy{padding:20px 0}.hero-copy .overline{margin-bottom:26px}.hero-copy h1{font-size:clamp(40px,4.5vw,66px);line-height:1.35;letter-spacing:1px;margin-bottom:22px}.hero-copy h1 span{white-space:nowrap;text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:#b1bd9e;text-underline-offset:8px}.hero-note{font-size:14px;line-height:2;color:#858c7c;margin-bottom:28px}.hero-actions{display:flex;align-items:center;gap:26px}.hero-footnote{font-size:10px;color:var(--muted);margin-top:16px}.cover-art{position:relative;align-self:center;transform:rotate(1deg);padding:22px 12px 8px;background:#f2f3eb;border:1px solid #d9dece;box-shadow:7px 9px 0 #e9ecdf}.cover-art>svg{width:100%;max-height:405px;display:block}.drawing-note{font:8px var(--mono);letter-spacing:1.3px;color:#8c9680;padding-left:28px}.plan-stamp{position:absolute;bottom:55px;right:15px;border:1px solid #b5bca4;color:#9aa58a;transform:rotate(-12deg);padding:10px;font:9px/1.4 var(--mono);letter-spacing:1px}.home-strip{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;margin-top:60px;font-size:12px;color:#7c876f}.home-strip b{font:13px var(--mono);margin-right:16px;color:#a3ae93}.chapter-preview{grid-column:1/-1;margin:44px 0 0}.chapter-preview h2{font-size:27px;margin:0 0 22px}.home-chapters{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.chapter-tile{text-align:left;background:#fafbf6;border:1px solid var(--line);padding:25px;display:block;position:relative;min-height:148px}.chapter-tile small{font:9px var(--mono);color:var(--muted)}.chapter-tile h3{font-size:21px;margin:16px 0 6px}.chapter-tile p{font-size:11px;color:var(--muted);margin:0}.chapter-tile .arrow{position:absolute;right:24px;top:23px;color:var(--green)}.site-footer{max-width:1392px;margin:50px auto 0;border-top:1px solid var(--line);padding:22px 44px;display:flex;gap:28px;font-size:10px;color:var(--muted)}.site-footer a{margin-left:auto}.book-view{max-width:1220px;margin:auto;padding:48px 44px 10px}.book-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:42px}.book-heading h1{font-size:44px;margin:10px 0 12px}.book-heading p:not(.overline){color:var(--muted);font-size:12px}.book-count{font:56px var(--serif);color:var(--green);padding-right:10px}.book-count small{display:block;font:10px var(--sans);color:var(--muted)}.chapter-section{padding:27px 0 35px;border-top:1px solid var(--line);scroll-margin-top:25px}.chapter-section-heading{display:flex;align-items:baseline;gap:18px}.chapter-section-heading>span{font:18px var(--mono);color:#a3af95}.chapter-section h2{font-size:25px;margin:0}.chapter-section-heading small{margin-left:auto;font:10px var(--mono);color:var(--muted)}.chapter-note{font-size:11px;color:var(--muted);margin:6px 0 20px 42px}.case-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.case-card{text-align:left;display:flex;flex-direction:column;gap:8px;padding:20px;background:#fdfdf9;min-height:178px}.case-card.done{background:#edf1e5}.card-top{display:flex;align-items:center;justify-content:space-between;font:9px var(--mono);color:var(--muted)}.card-top .done-mark{color:var(--green);font-size:15px}.case-card h3{font-size:19px;line-height:1.5;margin:4px 0 0}.case-card p{font-size:10px;color:var(--muted);margin:0}.case-card .card-bottom{font:9px var(--mono);color:#9aa18f;margin-top:auto;padding-top:8px}.book-note{font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:20px}.play-view{max-width:1480px;margin:auto;padding:0 32px}.play-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 0;border-bottom:1px solid var(--line);margin-bottom:28px}.play-heading .overline{margin:0}.back-link{font-size:12px}.timer{border:0;min-height:32px;font:11px var(--mono);padding:4px}.game-layout{display:grid;grid-template-columns:230px minmax(290px,1fr) 255px;gap:28px}.commission h1{font-size:27px;line-height:1.5;margin-bottom:14px}.commission-copy{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:22px}.tutorial-tip{font-size:11px;line-height:1.85;padding:12px;background:#edf1e5;border-left:2px solid #8da27a;margin:0 0 20px}.tutorial-tip p{margin:0}.tutorial-tip p+p{margin-top:9px}.rules-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);font-size:11px;padding-bottom:9px}.rules-heading small{font-size:8px;color:#9aa18e}.rule-note{width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:46px;text-align:left;display:flex;gap:10px;align-items:flex-start;padding:12px 0;font-size:11px;line-height:1.8}.rule-note:hover{background:none}.rule-note .note-box{width:12px;height:12px;border:1px solid #b8c4aa;flex-shrink:0;margin-top:3px;font:10px/10px var(--sans);text-align:center}.rule-note.checked{color:#9aa38d}.rule-note.checked .note-text{text-decoration:line-through;text-decoration-color:#c2cab8}.rule-note.connected .note-box{background:#e2e9d7;border-color:#92a77e}.common-rule{font-size:10px;line-height:1.9;color:var(--muted);margin-top:22px}.common-rule b{font-weight:500;color:#6e7e62}.common-rule p{margin:6px 0}.plan-area{min-width:0}.plan-toolbar{display:flex;gap:8px;justify-content:space-between;align-items:flex-start;margin-bottom:12px;min-height:32px}.room-chips{display:flex;flex-wrap:wrap;gap:5px}.room-chips button,.view-tools button{min-height:30px;padding:5px 8px;font-size:10px;border:0}.room-chips button.active{background:#e7eddc;color:var(--green)}.view-tools{display:flex;flex-shrink:0;gap:3px}.view-tools button{color:var(--muted);white-space:nowrap}.plan-paper{padding:17px;background:var(--white);border:1px solid #d8dfcf;box-shadow:4px 5px 0 #e9eddf}.paper-top{display:flex;justify-content:space-between;font:9px var(--mono);letter-spacing:.5px;color:#9aa48f;margin-bottom:12px}#game-board{width:100%;display:block;max-height:610px;min-height:260px;touch-action:none;user-select:none;-webkit-user-select:none}.furniture-name{font:10px var(--sans);fill:#53614b;pointer-events:none}.area-name{font:9px var(--sans);fill:#a08b63;pointer-events:none}.grid-coordinate{font:8px var(--mono);fill:#a3ab97}.port-name{font:9px var(--sans);fill:#fff}.game-cell{fill:transparent;stroke:none;cursor:pointer;outline:none}.game-cell:hover{fill:#9cb38216}.game-cell:focus-visible{fill:#a1b98b30;stroke:#69885b;stroke-width:2}.plan-budget{display:flex;flex-wrap:wrap;gap:8px 16px;font:9px var(--mono);padding:12px 0 0;border-top:1px solid #e6eadd;color:#7d8b71}.plan-budget .natural-left{color:#a58b6d}.board-key{display:flex;gap:13px;justify-content:center;font-size:8px;color:#9ca58f;margin-top:12px}.board-key span{display:flex;align-items:center;gap:4px}.board-key i{display:inline-block;width:8px;height:8px}.key-piece{background:#d9e2cb;border:1px solid #a8b899}.key-use{background:repeating-linear-gradient(135deg,#fff 0 2px,#9fb58b 2px 3px)}.key-area{border:1px dashed #b49d75}.key-line{height:2px!important;background:#607b53}#game-notice{font-size:11px;line-height:1.9;color:var(--muted);min-height:40px;margin:15px 0 0}#game-notice.bad{color:var(--rust)}.tool-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:11px}.tool-heading button{font-size:10px}.game-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.furniture-tool{padding:11px 7px;text-align:center;min-height:83px;position:relative;background:#fdfdf8;display:flex;align-items:center;flex-direction:column;gap:3px;line-height:1.4}.furniture-tool.active{border-color:#7b936a;background:#ebf0e1}.furniture-tool>svg{width:30px;height:30px;color:#809470}.furniture-tool span{font-size:11px}.furniture-tool small{font:8px var(--mono);color:#97a187}.furniture-tool .tool-tick{position:absolute;right:6px;top:5px;color:var(--green);font-size:10px}.furniture-tool.area-tool>svg{color:#ab9874}.selection-info{font-size:10px;line-height:1.9;color:var(--muted);margin:12px 0;min-height:40px}.placement-actions,.pencil-tools,.history-actions{display:flex;gap:6px}.placement-actions button,.pencil-tools button{flex:1;font-size:10px;padding:7px 4px;min-height:36px}.placement-actions kbd{font:8px var(--mono);margin-left:4px}.pencil-tools{margin-top:7px}.pencil-tools button.active{background:#e7eddc;border-color:#8fa27c}.pencil-note{font-size:9px;line-height:1.8;color:#a0a791;margin:9px 0}.route-box{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0 9px;margin-top:16px}.route-box .overline{display:block;margin-bottom:9px}.route-box>button:not(.text-control){width:100%;text-align:left;font-size:11px;min-height:42px;border-color:#adbda0;color:var(--green)}.route-box>button.active{background:#e6eddc}.route-box p{font-size:10px;line-height:1.9;color:var(--muted);margin:10px 0 0}.route-box .text-control{font-size:9px}.history-actions{margin-top:8px}.history-actions button{flex:1;padding:8px 3px;border:0;min-height:35px;font-size:10px}.inspect-button{width:100%;margin-top:12px;padding:13px 15px;font-size:12px}.inspection-box{padding:16px;background:#eee9df;border-left:2px solid var(--rust);font-size:11px;line-height:1.9}.inspection-box h3{font-size:19px;margin:0 0 8px}.inspection-box p{margin:5px 0;color:#8c7c65}.inspection-box details{font-size:10px;margin-top:10px}.inspection-box summary{cursor:pointer}.inspection-box .pass{color:var(--green)}dialog{width:min(500px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #c5d0b7;border-radius:3px;background:var(--paper);padding:34px;color:var(--ink);box-shadow:10px 12px 0 #4a5b3b10}dialog::backdrop{background:#28352170;backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:10px;top:6px;min-width:36px;min-height:36px;border:0;font-size:22px}.dialog-title{font:30px/1.4 var(--serif);margin:6px 0 15px}.dialog-copy{font-size:12px;line-height:1.9;color:var(--muted)}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.dialog-actions button{flex:1;font-size:12px}.guide-step{border-top:1px solid var(--line);padding:12px 0;display:flex;gap:14px}.guide-step>b{font:11px var(--mono);color:#9ba98c}.guide-step h3{font:17px var(--serif);margin:0 0 3px}.guide-step p{font-size:11px;line-height:1.8;color:var(--muted);margin:0}.setting-row{padding:13px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:14px}.setting-row p{font-size:10px;color:var(--muted);margin:4px 0}.setting-row span{font-size:12px}.setting-row button{font-size:11px;min-width:95px}.delivery-stamp{display:block;width:105px;margin:12px auto 26px;text-align:center;border:2px solid #849c70;color:#728f5f;padding:10px 0;font:21px var(--serif);transform:rotate(-7deg);box-shadow:inset 0 0 0 3px var(--paper),inset 0 0 0 4px #9caf8c}.completion-title{text-align:center}.completion-stats{display:flex;justify-content:center;gap:40px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 0}.completion-stats strong{font:22px var(--mono);display:block;font-weight:400}.completion-stats span{font-size:9px;color:var(--muted)}.storage-warning{position:fixed;bottom:14px;left:14px;right:14px;background:#efe6d7;border:1px solid #cfb68d;padding:13px;font-size:11px;z-index:10}.enter{animation:arrive .35s ease-out both}@keyframes arrive{from{opacity:.35;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1450px){.game-layout{gap:42px}.play-view{padding:0 44px}.plan-paper{padding:22px}}
@media(max-width:1100px){.site-header{padding:22px 24px}.header-note{display:none}.home-view{padding:42px 28px 0;gap:35px}.hero-copy h1{font-size:46px}.game-layout{grid-template-columns:190px minmax(270px,1fr) 210px;gap:18px}.play-view{padding:0 22px}.commission h1{font-size:24px}.commission-copy{font-size:11px}.plan-paper{padding:12px}.game-palette{gap:5px}.furniture-tool span{font-size:10px}.game-layout .furniture-tool{min-height:78px}}
@media(max-width:850px){.home-view{gap:25px}.hero-copy h1{font-size:39px}.hero-note{font-size:12px}.hero-actions{gap:16px;flex-wrap:wrap}.hero-actions .ink-button{padding:12px 16px;gap:30px}.plan-stamp{bottom:30px}.home-chapters{gap:12px}.chapter-tile{padding:18px}.chapter-tile h3{font-size:18px}.game-layout{grid-template-columns:minmax(270px,1fr) 230px}.commission{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:25px}.commission>.overline,.commission h1,.commission-copy,.tutorial-tip{grid-column:1}.commission .rules-heading,.commission #game-rules{grid-column:2}.commission .rules-heading{grid-row:1}.commission #game-rules{grid-row:2/6}.common-rule{display:none}.commission-copy{margin-bottom:10px}.tutorial-tip{margin-bottom:0}.book-view{padding:35px 25px}.case-grid{grid-template-columns:repeat(2,1fr)}.site-footer{padding:20px 25px}.play-heading{margin-bottom:18px}.commission h1{font-size:26px}.rule-note{font-size:10px;padding:9px 0}.plan-toolbar{flex-direction:column}.view-tools{align-self:flex-end}}
@media(max-width:600px){body{font-size:13px}.site-header{padding:20px 18px 17px;gap:15px}.brand{font-size:35px}.site-header nav{gap:17px;font-size:11px}.site-header nav a span{display:none}.site-header .text-control{font-size:10px}.icon-control{font-size:20px;min-width:24px}.home-view{padding:24px 22px 0;display:flex;flex-direction:column;gap:18px}.hero-copy{padding:12px 0 0}.hero-copy .overline{font-size:8px;margin-bottom:20px}.hero-copy h1{font-size:43px;margin-bottom:18px}.hero-note{font-size:12px;margin-bottom:20px}.hero-footnote{margin-bottom:0}.cover-art{width:100%;max-width:360px;padding:15px 5px 0;align-self:center;margin-top:10px}.cover-art>svg{max-height:260px}.drawing-note{font-size:6px;letter-spacing:.7px;padding-left:24px}.plan-stamp{font-size:7px;bottom:36px;padding:7px}.home-strip{margin-top:15px;padding:17px 0;width:100%;font-size:10px;gap:9px}.home-strip b{display:block;font-size:10px;margin:0 0 5px}.chapter-preview{margin-top:10px;width:100%}.chapter-preview h2{font-size:23px;margin-bottom:18px}.home-chapters{display:flex;flex-direction:column;gap:10px}.chapter-tile{min-height:0;padding:18px 20px}.chapter-tile h3{font-size:20px;margin:7px 0}.site-footer{font-size:8px;padding:18px 20px;margin-top:30px;gap:9px 20px;flex-wrap:wrap}.site-footer a{margin-left:0}.book-view{padding:26px 20px 0}.book-heading{margin-bottom:26px}.book-heading h1{font-size:34px}.book-heading p:not(.overline){font-size:11px;max-width:190px}.book-count{font-size:38px;padding:0}.book-count small{font-size:8px}.chapter-section{padding:22px 0 26px}.chapter-section-heading{gap:10px;flex-wrap:wrap}.chapter-section h2{font-size:22px}.chapter-section-heading>span{font-size:14px}.chapter-note{margin:5px 0 15px 28px;font-size:10px}.chapter-section-heading small{font-size:9px}.case-grid{gap:9px}.case-card{padding:15px 12px;min-height:166px}.case-card h3{font-size:18px}.case-card p{font-size:9px}.card-top{font-size:8px}.case-card .card-bottom{font-size:8px}.book-note{font-size:9px;line-height:1.9}.play-view{padding:0 15px}.play-heading{padding:13px 0;position:sticky;top:0;background:var(--paper);z-index:5;margin-bottom:16px}.play-heading .overline{font-size:8px;letter-spacing:.7px}.back-link{font-size:11px}.timer{font-size:10px}.game-layout{display:flex;flex-direction:column;gap:16px}.commission{display:block}.commission>.overline{font-size:8px;margin-bottom:5px}.commission h1{font-size:28px;margin-bottom:8px}.commission-copy{font-size:11px;line-height:1.9;margin-bottom:12px}.tutorial-tip{padding:10px 12px;font-size:10px;margin-bottom:12px}.rules-heading{font-size:11px}.rules-heading small{font-size:8px}#game-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}.rule-note{font-size:10px;min-height:40px;padding:8px 0;gap:6px;line-height:1.8}.rule-note .note-box{width:10px;height:10px;font-size:8px;line-height:8px;margin-top:4px}.plan-toolbar{flex-direction:row;align-items:flex-start;gap:6px;min-height:25px;margin:0 0 8px}.room-chips{gap:2px}.room-chips button,.view-tools button{font-size:9px;padding:5px 6px;min-height:29px}.view-tools{gap:1px}.plan-paper{padding:10px;box-shadow:3px 4px 0 #e9eddf}.paper-top{font-size:8px;letter-spacing:0;margin-bottom:9px}.plan-budget{font-size:8px;gap:6px 11px;padding-top:9px}.board-key{font-size:7px;gap:10px;margin-top:9px}#game-board{min-height:200px;max-height:550px}#game-notice{font-size:10px;min-height:20px;margin-top:10px}.furnishing{padding-top:13px;border-top:1px solid var(--line)}.tool-heading{font-size:11px;margin-bottom:10px}.game-palette{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.game-layout .furniture-tool{min-height:75px;padding:9px 5px;gap:2px}.furniture-tool>svg{width:28px;height:28px}.furniture-tool small{font-size:7px}.furniture-tool span{font-size:10px}.selection-info{font-size:10px;min-height:0;margin:10px 0}.placement-actions button,.pencil-tools button{min-height:42px;font-size:11px}.pencil-note{font-size:9px;margin-bottom:14px}.route-box{padding:14px 0 8px;margin-top:12px}.route-box .overline{font-size:8px}.route-box>button:not(.text-control){min-height:44px;font-size:12px}.route-box p{font-size:10px}.route-box .text-control{font-size:10px;min-height:36px}.history-actions{margin:4px 0}.history-actions button{min-height:40px;font-size:11px}.inspect-button{position:sticky;bottom:10px;z-index:4;margin:4px 0 10px;min-height:48px;font-size:12px;box-shadow:0 0 0 7px var(--paper)}.inspection-box{font-size:10px;padding:13px}.site-footer{line-height:1.9}dialog{padding:29px 23px}.dialog-title{font-size:27px}.dialog-copy{font-size:11px}.dialog-actions button{min-height:43px}.completion-stats{gap:30px}.completion-stats strong{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}dialog::backdrop{backdrop-filter:none}}
.board-controls{display:none}@media(max-width:600px){.board-controls{display:flex;gap:6px;margin-top:12px}.board-controls button{flex:1;font-size:11px;min-height:42px;padding:8px 10px}#quick-inspect{background:var(--ink);color:var(--white);border-color:var(--ink)}.inspect-button{position:static;box-shadow:none}}
.room-caption{font:10px var(--sans);fill:#8d9f7e;pointer-events:none}
:root{--muted:#6f7965}.hero-note{color:var(--muted)}
.play-heading{display:grid;grid-template-columns:1fr auto 1fr}.play-heading>.back-link{grid-column:1;grid-row:1}.play-heading>.timer{grid-column:2;grid-row:1}.play-heading>.overline{grid-column:3;grid-row:1;text-align:right}
