
:root{--paper:#f6f2e7;--ink:#333c32;--red:#bc4b35;--muted:#7b7f6c;--line:#dedbcd}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans JP',sans-serif;font-size:14px;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23726943' opacity='.04' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;transition:transform .18s,background .18s}button:active{transform:scale(.97)}button:focus-visible,a:focus-visible{outline:3px solid #bd6741;outline-offset:4px}button:disabled{cursor:default;opacity:.42}header{height:86px;max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line)}.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:12px;font-size:24px}.brand span{font-family:'Noto Serif JP',serif;font-weight:900;font-size:22px}.brand small{font-size:11px;color:var(--muted);padding-left:15px;border-left:1px solid var(--line)}.quiet{border:1px solid var(--line);background:transparent;border-radius:6px;padding:9px 15px;font-size:12px;color:var(--ink)}main{max-width:1000px;margin:auto;padding:44px 28px 0}.heading{text-align:center}.eyebrow{color:var(--red);font-size:11px;font-weight:700;letter-spacing:.18em}h1{font-family:'Noto Serif JP',serif;font-size:42px;font-weight:900;letter-spacing:.05em;margin:14px 0 12px}h1 em{font-style:normal;color:var(--red);position:relative}h1 em:after{content:'';position:absolute;bottom:0;height:2px;left:0;right:0;background:var(--red);transform:rotate(-4deg)}.heading p{color:var(--muted);font-size:13px}.stats{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;margin:32px 0 25px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.stats>div{padding:0 25px;border-right:1px solid var(--line)}.stats>div:last-child{border:none}.stats span{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.stats b{font-size:19px;font-weight:600;font-variant-numeric:tabular-nums}.stats small{font-size:10px;font-weight:400;color:var(--muted)}.game{background:#fffdf7;border:1px solid #ddd9ca;border-radius:12px;overflow:hidden;box-shadow:0 5px 15px #514a3010}.table-head{padding:22px 27px;display:flex;justify-content:space-between;align-items:center}.badge{font-size:10px;color:var(--red);letter-spacing:.1em}h2{font-family:'Noto Serif JP',serif;margin:7px 0 0;font-size:21px}.counter{font-size:10px;color:var(--muted)}.counter b{color:var(--red);margin:0 8px;letter-spacing:.12em}.table{position:relative;background:#d6b585;padding:24px 20px 16px;box-shadow:inset 0 3px 10px #8c5f1820}.wood-grain{position:absolute;inset:0;pointer-events:none;opacity:.33;background:repeating-linear-gradient(1deg,transparent 0 12px,#ad844b33 13px,transparent 14px 40px),repeating-linear-gradient(0deg,#ebcfa160 0 1px,transparent 1px 7px)}.dishes{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:18px 12px;min-height:175px;align-items:center}.dish{background:none;border:2px solid transparent;border-radius:14px;position:relative;padding:6px 7px 12px;color:#4e4b3b;min-width:0}.dish:hover{background:#fff9e92b}.dish.selected{border-color:var(--red);background:#fff8e641;box-shadow:0 0 0 3px #fff5dd4d}.dish svg{width:100%;max-height:145px;filter:drop-shadow(2px 7px 3px #64441e38);transition:transform .2s}.dish:hover svg{transform:translateY(-4px)}.dish .dish-label{display:inline-block;font-size:11px;background:#fcf4e5e6;padding:3px 13px;border-radius:20px;letter-spacing:.1em}.dish.selected .dish-label{background:var(--red);color:white}.dish .check{display:none;position:absolute;right:8px;top:4px;background:var(--red);color:white;width:22px;height:22px;border-radius:50%}.dish.selected .check{display:block}.table-footer{position:relative;display:flex;justify-content:space-between;align-items:center;color:#795c37;font-size:10px;padding:9px 7px 0}.chopsticks{font-size:19px;line-height:.45;transform:rotate(-5deg);color:#66533b;letter-spacing:-2px;padding-right:10px}.actions{padding:23px 28px 20px;display:grid;grid-template-columns:1fr 1.15fr;gap:12px 24px}.selected-label{display:flex;align-items:center;gap:10px}.step{border:1px solid #c6c9b6;color:#677255;border-radius:50%;padding:3px 7px;font-family:serif}.selected-label p{margin:0;font-weight:600;font-size:12px}.investigate{display:flex;gap:7px}.investigate button{border:1px solid #d9d9ca;background:#f9f9ef;color:#515d43;border-radius:5px;padding:10px 4px;flex:1;white-space:nowrap;font-size:11px}.investigate button.used{background:#e8eddd}.hint{grid-column:1/-1;background:#f4f3e9;border-radius:6px;padding:15px 18px;min-height:53px;color:#666e58;line-height:1.8;font-size:12px}.primary{border:none;border-radius:6px;background:var(--red);color:#fff8e9;font-weight:700;padding:15px 22px;letter-spacing:.1em;box-shadow:0 3px 0 #963e2d}.primary:hover{background:#a83f2c}.primary span{float:right}.actions>.primary{grid-column:1/-1;max-width:360px;width:100%;justify-self:center;margin-top:3px}.note{grid-column:1/-1;text-align:center;font-size:10px;color:#92927f;margin:2px}.bottom{display:flex;justify-content:space-between;align-items:center;padding:25px 5px}.bottom>div{display:flex;gap:22px;align-items:center}.bottom>div>span{font-family:serif;writing-mode:vertical-rl;letter-spacing:.15em;font-size:12px;color:var(--muted)}.bottom p{font-size:11px;line-height:1.9;color:var(--muted)}.bottom b{color:var(--ink);font-size:13px;font-weight:500}footer{border-top:1px solid var(--line);padding:22px 0 25px;font-size:11px;color:#8a8d79;display:flex;justify-content:space-between}footer span{font-size:9px;letter-spacing:.07em}dialog{border:1px solid #ddd3b9;border-radius:14px;background:var(--paper);color:var(--ink);padding:35px;width:min(460px,calc(100% - 32px));box-shadow:0 20px 90px #0005}dialog::backdrop{background:#222a24a8;backdrop-filter:blur(4px)}dialog p,dialog li{font-size:13px;line-height:1.9}dialog .primary{width:100%;margin-top:15px}.close{float:right;border:none;background:none;font-size:24px}.result-graphic{max-width:210px;margin:auto}.result-title{font-size:30px;color:var(--red)}.points{font-size:37px;font-weight:900}.points small{font-size:13px}.answer-list{padding:12px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.9}.result-center{text-align:center}.cutin{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;overflow:hidden;background:#233b35;color:white;pointer-events:none}.cutin.show{display:flex;animation:cutIn .28s ease-out}.rays{position:absolute;inset:-120%;background:repeating-conic-gradient(from 10deg,#fff2 0 4deg,transparent 4deg 13deg);animation:spin 15s linear infinite}#cutfish{position:absolute;width:min(700px,100%);transform:rotate(-15deg);top:12%;filter:drop-shadow(0 12px 0 #0003)}.cut-copy{position:relative;transform:rotate(-7deg);width:100%;text-align:center;margin-top:130px;background:#bd4a35e8;padding:18px 0;border-top:4px solid #f1dc9f;border-bottom:4px solid #f1dc9f}.cut-copy small{display:block;letter-spacing:.3em;margin-bottom:8px}.cut-copy strong{font-family:'Noto Serif JP',serif;font-size:clamp(31px,7vw,85px);text-shadow:4px 4px #51281d;white-space:nowrap}.cutin.wrong{background:#454654}.cutin.wrong .cut-copy{background:#55566d}.cutin.gold{background:#ac8027}@keyframes cutIn{from{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:650px){header{height:66px;padding:0 18px}.brand{gap:7px}.brand span{font-size:18px}.brand small{display:none}main{padding:29px 14px 0}h1{font-size:29px}.heading p{font-size:11px}.stats{margin:24px 0 18px;padding:13px 0;grid-template-columns:1.35fr 1fr 1fr 1fr}.stats>div{padding:0 11px}.stats b{font-size:15px}.stats span{font-size:9px}.table-head{padding:17px 16px}h2{font-size:18px}.counter{font-size:9px}.counter b{margin:0 4px;letter-spacing:0}.table{padding:18px 9px 12px}.dishes{gap:7px 3px;min-height:145px}.dish{padding:5px 0 10px}.dish svg{min-height:75px}.dish .dish-label{font-size:10px;padding:2px 10px}.table-footer{font-size:8px}.chopsticks{font-size:14px}.actions{padding:18px 16px 17px;grid-template-columns:1fr;gap:12px}.investigate{grid-row:2}.investigate button{font-size:11px;padding:11px 5px}.hint{font-size:11px;padding:12px}.bottom{padding:16px 2px;gap:8px}.bottom>div{gap:12px}.bottom p{font-size:9px}.bottom .quiet{font-size:10px;padding:8px;white-space:nowrap}footer{font-size:9px}footer span{font-size:7px;max-width:145px;text-align:right}dialog{padding:26px}}@media(prefers-reduced-motion:reduce){*,*:after{animation:none!important;transition:none!important}}
/* Six chapters: the table travels from home to the edge of creation. */
#scenery{position:fixed;inset:0;z-index:-1;pointer-events:none;transition:opacity .7s}#scenery>svg{width:100%;height:100%;object-fit:cover}body[data-world="0"] #scenery{opacity:0}header,main{position:relative}.world-banner{display:flex;justify-content:space-between;align-items:center;margin-top:25px;border-top:1px solid var(--line);padding-top:18px}.world-banner p{font-family:'Noto Serif JP',serif;font-size:16px;margin:6px 0}.world-progress{display:flex;flex-wrap:wrap;gap:7px;margin:17px 0 14px}.world-progress span{font-size:9px;color:#8b8d7b;padding:5px 9px;border:1px solid var(--line);border-radius:4px}.world-progress span.active{background:var(--ink);border-color:var(--ink);color:var(--paper)}.world-progress span.done{color:var(--red)}.stage-track{height:3px;background:#c7c5b766}.stage-track>div{height:100%;background:var(--red);transition:width .4s}.stats{margin-top:0}.world-hint{font-size:11px;color:var(--muted);line-height:1.9;padding:13px 18px;border-left:2px solid var(--red);background:#fff9e66e}.memo-count{display:block;font-size:9px;color:#745638;margin-top:6px;letter-spacing:.12em}.memo-entry{display:grid;grid-template-columns:95px 1fr;gap:12px;padding:6px 0}.memo-entry+ .memo-entry{border-top:1px dashed #d6d7c8}.memo-entry b{font-size:10px;color:#8b533b}.dishes.many{grid-template-columns:repeat(4,1fr)}.chapter-art{height:180px;overflow:hidden;border-radius:7px;margin:18px -12px}.chapter-art svg{width:100%;height:100%;object-fit:cover}.chapter-notice{background:#e8dfc9;padding:10px;border-radius:5px}.chapter-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.chapter-option{display:flex;flex-direction:column;gap:7px;text-align:left;border:1px solid #d2c7af;border-radius:7px;padding:14px 10px;background:#fff9e9;color:var(--ink)}.chapter-option:hover{background:#eee1c5;border-color:var(--red)}.chapter-option small{font-size:10px;color:#936244}.chapter-option b{font-size:12px}.answer-list{max-height:230px;overflow:auto}.result-title{font-size:26px}body:not([data-world="0"]) header{background:#f6f2e7eb;border-radius:0 0 12px 12px}body:not([data-world="0"]) .heading{color:#fff3d5;text-shadow:0 2px 8px #0008}body:not([data-world="0"]) .heading .eyebrow,body:not([data-world="0"]) .heading p{color:#f3ddb4}body:not([data-world="0"]) h1 em{color:#ffcb8b}body:not([data-world="0"]) h1 em:after{background:#ffcb8b}body:not([data-world="0"]) .world-banner{color:#fff5dd;border-color:#fff3}body:not([data-world="0"]) .world-banner .eyebrow{color:#ffe3ab}body:not([data-world="0"]) .world-banner .quiet{background:#f6f2e7eb}body:not([data-world="0"]) .world-progress span{color:#e2e0d2;border-color:#fff3;background:#18273388}body:not([data-world="0"]) .world-progress span.active{color:#463721;background:#f4dcab}body:not([data-world="0"]) .world-progress span.done{color:#f4d49a}body:not([data-world="0"]) .stats{background:#f6f2e7eb;border-radius:0 0 8px 8px;border-top:0}body:not([data-world="0"]) .world-hint{background:#f6f2e7e8;color:#515544}body:not([data-world="0"]) .bottom{background:#f6f2e7e8;border-radius:8px;padding:12px 17px;margin:14px 0}body:not([data-world="0"]) footer{color:#f5e9d0;border-color:#fff3}body[data-world="1"] .table{background:#9daeb0}body[data-world="2"] .table{background:#b4c0b4}body[data-world="3"] .table{background:#cbae73}body[data-world="4"] .table{background:#9995ad}body[data-world="5"] .table{background:#b4a0ae}body[data-world="4"] .table-footer,body[data-world="5"] .table-footer{color:#443c4d}body[data-world="5"] .game{border:2px solid #d5b77e;box-shadow:0 0 50px #f3ca5829}.counter{min-width:145px;text-align:right}
@media(max-width:650px){.world-banner{margin-top:22px;padding-top:13px}.world-banner p{font-size:12px}.world-banner .quiet{font-size:10px;padding:9px}.world-progress{gap:5px}.world-progress span{font-size:8px;padding:4px 6px}.dishes.many{grid-template-columns:repeat(4,1fr)}.dishes.many .dish svg{min-height:55px}.dish .memo-count{font-size:8px}.table-head{gap:5px}.counter{font-size:8px;min-width:113px}.table-head h2{font-size:16px}.badge{font-size:9px}.world-hint{font-size:10px;padding:10px 12px}.memo-entry{grid-template-columns:75px 1fr;gap:5px}.memo-entry b{font-size:9px}.chapter-options{gap:7px}.chapter-option{padding:12px 9px}.chapter-option b{font-size:11px}.heading h1{font-size:27px}.result-title{font-size:23px}}
.fish-view{display:block;filter:hue-rotate(var(--tone)) brightness(var(--light))}.dish svg{display:block}.dishes.many .dish{padding-top:3px}
