:root{
 --ink:#353127;--paper:#f4e8c9;--paper2:#dfcca0;--cream:#fff9e9;
 --copper:#a9502e;--copper2:#71351f;--herb:#2f7563;--sky:#8bc8ca;
 --wood:#533522;--line:#6d573c55;--shadow:#21160e99;
}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#2b443f;color:var(--ink);font-family:"Yu Mincho","Hiragino Mincho ProN",serif}
button{font:inherit;cursor:pointer;transition:transform .14s,filter .14s}
button:hover:not(:disabled){filter:brightness(1.07);transform:translateY(-1px)}
button:active:not(:disabled){transform:translateY(1px)}
button:focus-visible{outline:3px solid #58b9aa;outline-offset:3px}
.hidden{display:none!important}.screen{position:fixed;inset:0}

.title{background:url('assets/art/runtime/feast.webp') center/cover;display:grid;align-items:center;padding:5vw;overflow:auto}
.shade{position:absolute;inset:0;background:linear-gradient(90deg,#253c37e8 0 34%,#2d4a405c 62%,transparent 86%),linear-gradient(0deg,#182d29b8,transparent 52%)}
.titlebox{position:relative;width:min(650px,92vw);padding:34px 42px 30px;background:linear-gradient(135deg,#fff7dfef,#ddc38ff2);border:2px solid #fff2c7;outline:1px solid #5d432d;box-shadow:12px 16px 0 #3b2619bb,0 25px 70px #0008;clip-path:polygon(1.5% 0,98.5% 1.5%,100% 94%,95% 100%,3% 98%,0 6%)}
.titlebox:before{content:"";position:absolute;inset:10px;border:1px dashed #845d36aa;pointer-events:none}
.tag{font:800 11px/1.2 sans-serif;letter-spacing:.2em;color:var(--herb);margin:0 0 7px}
h1{font-size:clamp(40px,5.8vw,74px);line-height:1.06;margin:.2em 0;color:#3b3328;text-shadow:0 2px #fff7d5}
h1 span{color:var(--copper)}
.titlebox>p:not(.tag){font-size:17px;line-height:1.8;max-width:560px}
.titlebox button{position:relative;padding:13px 20px;margin:16px 8px 12px 0;color:#fff9e8;background:var(--herb);border:0;border-radius:2px 13px 3px 11px;box-shadow:4px 5px 0 #1e4c40;font-weight:bold}
.titlebox button:before{content:"";position:absolute;inset:4px;border:1px dashed #d7eee277;pointer-events:none}
.titlebox .gold{background:var(--copper)!important;color:#fff9e8!important;box-shadow:4px 5px 0 #6f301d!important}
.titlebox small{display:block;color:#645744}

header{height:68px;padding:0 18px 0 28px;background:linear-gradient(180deg,#f7ebc9,#d7bf8a);display:flex;align-items:center;justify-content:space-between;border-bottom:5px solid #6e452b;box-shadow:0 5px 0 #2d7567,0 10px 24px #0007;font-family:sans-serif;position:relative;z-index:3}
header:before{content:"";position:absolute;left:0;right:0;bottom:-2px;border-bottom:1px dashed #f4dfae99}
header>div{display:flex;align-items:center;gap:12px}
header>div:first-child:before{content:"♨";font-size:26px;color:var(--copper)}
header small{color:var(--herb);font-weight:800}
header b{font-family:"Yu Mincho",serif;font-size:18px;color:#3b3025}
header button{padding:8px 11px;background:#f8efd7;border:1px solid #70543c;border-radius:12px 3px 12px 3px;color:#4d3a29;box-shadow:2px 3px 0 #8a6544}
#clock{font:800 12px/1 ui-monospace,monospace;color:#8c4128;border:1px solid #9d754d;padding:7px 9px;background:#fff8df;transform:rotate(-1deg)}
#progress{font-size:12px;color:#5e4d39}

.world{position:absolute;inset:68px 0 0;display:grid;place-items:center;background:#294f49}
#canvas{display:block;width:100%;height:100%;box-shadow:inset 0 0 70px #112b2788;touch-action:none}
#objective{position:absolute;left:22px;top:22px;max-width:560px;padding:14px 22px 14px 28px;background:linear-gradient(100deg,#fff7dbf4,#e6cd9ce8);color:#443727;border:1px solid #765437;box-shadow:7px 8px 0 #603823cc;font:600 13px/1.5 sans-serif;clip-path:polygon(0 5%,96% 0,100% 82%,94% 100%,2% 94%)}
#objective:before{content:"本日の仕込み";display:block;color:var(--copper);font:800 9px/1 sans-serif;letter-spacing:.14em;margin-bottom:6px}
#mini{position:absolute;right:24px;top:22px;width:158px;height:158px;border:8px solid #f0dfb6;border-radius:50%;background:#294f49;box-shadow:0 0 0 2px #69452d,7px 10px 0 #3d291b99;overflow:hidden;transform:rotate(2deg)}
#mini:before{content:"";position:absolute;inset:8px;border:1px dashed #fff7d577;border-radius:50%;z-index:2;pointer-events:none}
#minimap{width:176px;height:104px;position:absolute;left:-9px;top:20px;transform:scale(1.05);box-shadow:none}
#mini small{position:absolute;left:0;right:0;bottom:14px;text-align:center;font:800 8px sans-serif;letter-spacing:.18em;color:#fff9e8;text-shadow:0 1px 4px #000;z-index:3}
#moveHelp{position:absolute;right:28px;bottom:22px;background:#f4e8c9e8;color:#51402f;padding:7px 11px;border:1px solid #765437;box-shadow:3px 4px 0 #5f3b27;font:700 10px sans-serif;transform:rotate(-1deg)}
kbd{display:inline-block;background:#fff7d9;color:#663820;border:1px solid #9e704c;border-bottom-width:3px;border-radius:5px;padding:3px 7px;margin-left:7px;font:800 10px sans-serif}
#interact{position:absolute;bottom:27px;left:50%;transform:translateX(-50%) rotate(-1deg);background:var(--copper);color:#fff8e7;border:3px double #f6dda9;padding:13px 22px;border-radius:50% 45% 48% 42%;box-shadow:0 6px 0 #65301d,0 10px 20px #0006;animation:seal 1.8s infinite;font-weight:bold}
#interact kbd{background:#f9e7b8;color:#69351f}
@keyframes seal{50%{box-shadow:0 6px 0 #65301d,0 10px 20px #0006,0 0 0 9px #fff0bd33}}
#touch{display:none;position:absolute;left:15px;bottom:15px;width:140px;height:100px}
#touch button{position:absolute;width:44px;height:44px;border-radius:50%;background:#f0dfb9e8;color:#593b28;border:2px solid #735038;box-shadow:2px 3px 0 #422a1c}
#touch button:nth-child(1){left:48px}#touch button:nth-child(2){left:0;top:48px}#touch button:nth-child(3){left:48px;top:48px}#touch button:nth-child(4){left:96px;top:48px}

.overlay{position:fixed;inset:0;z-index:10;background:#223b368c;backdrop-filter:blur(2px)}
.dialog{position:absolute;bottom:4vh;left:50%;transform:translateX(-50%) rotate(-.25deg);display:flex;width:min(990px,94vw);min-height:205px;background:linear-gradient(90deg,#d6b87d 0 21%,#fbf1d5 21% 60%,#f3e4bd);border:8px solid #6b432b;outline:2px solid #dfbf7c;box-shadow:13px 16px 0 #2e2016aa,0 25px 70px #0008;clip-path:polygon(1% 0,99% 2%,100% 94%,97% 100%,2% 98%,0 7%)}
.dialog:after{content:"";position:absolute;left:233px;top:5%;bottom:5%;border-left:2px dashed #966e42aa;pointer-events:none}
.dialog:has(>#face[hidden]):after{display:none}
.dialog>#face{width:205px;flex:0 0 205px;aspect-ratio:4/5;align-self:flex-start;margin:14px;background:#e4d9c1;border:5px solid #fff2c8;outline:1px solid #68452e;box-shadow:4px 6px 0 #76502f;overflow:hidden;border-radius:3px}
.dialog>#face[hidden]{display:none}
#face img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;aspect-ratio:4/5}
.dialog article{padding:27px 32px 23px;flex:1;color:#3d3328}
.dialog b{display:inline-block;color:#8b3e28;border-bottom:2px solid #c37a4f;padding-right:28px;font-size:17px}
.dialog p{line-height:1.9;font-size:17px;white-space:pre-line}
.dialog article>button{float:right;border:0;background:var(--herb);color:#fff8e7;padding:8px 14px;border-radius:12px 2px 12px 2px;box-shadow:2px 3px 0 #1e4d40}
#choice{display:grid;gap:8px}
#choice button{padding:11px 14px;text-align:left;background:#eee0b9;color:#45382a;border:1px solid #8b6848;border-left:7px solid var(--herb);box-shadow:2px 3px 0 #8a694799}

.modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-.2deg);width:min(880px,94vw);max-height:92vh;overflow:auto;background:linear-gradient(135deg,#fff7df,#e3cca0);color:#3d3226;border:7px solid #69442c;outline:2px solid #efd99f;padding:34px;border-radius:4px 18px 5px 16px;box-shadow:13px 15px 0 #2b1c12aa,0 28px 85px #0008}
.modal:after{content:"";position:absolute;inset:12px;border:1px dashed #8a684877;pointer-events:none}
.modal>*{position:relative;z-index:1}
.x{position:absolute;right:14px;top:10px;background:#9b492e;color:#fff6df;border:2px solid #f0d49e;border-radius:50%;width:38px;height:38px;font-size:22px;z-index:4}

.puzzleBackdrop{position:absolute;inset:0;background:linear-gradient(90deg,#294039e3,#5a3822b3),var(--puzzle-bg) center/cover;filter:saturate(.85)}
.puzzle{background:linear-gradient(120deg,#805536 0 2%,#f2e4bd 2% 98%,#765034 98%);overflow:auto}
.puzzle:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 33px,#785a3b0b 34px 35px);pointer-events:none}
.puzzleHead{display:flex;align-items:center;gap:14px;border-bottom:2px solid #805c3d66;padding:0 45px 16px 0}
.puzzleHead h2{margin:2px 0 0;font-size:28px;color:#463426}
.puzzleHead .tag{margin:0;color:var(--herb)}
#puzzleIcon{width:58px;height:58px;border:3px double #f3dba4;background:var(--copper);color:#fff8e7;border-radius:50% 42% 47% 44%;display:grid;place-items:center;font:bold 27px sans-serif;box-shadow:4px 5px 0 #6e351f;transform:rotate(-3deg)}
#puzzleStage{margin-left:auto;padding:7px 11px;background:#397967;color:#fff8e9;border-radius:2px 12px 2px 10px;font:800 10px sans-serif;letter-spacing:.1em;transform:rotate(1deg);box-shadow:3px 4px 0 #204d41}
.puzzle>p{line-height:1.75}
.meter{height:25px;background:#cdb88b;border:1px solid #79583e;border-radius:3px;overflow:hidden;position:relative;margin:16px 0 8px;box-shadow:inset 0 2px 4px #6b4b2e55}
.meter i{display:block;height:100%;width:0;background:repeating-linear-gradient(45deg,#3c8a75 0 12px,#55a18a 12px 24px);transition:width .25s}
.meter span{position:absolute;inset:0;display:grid;place-items:center;font:800 10px sans-serif;letter-spacing:.06em;color:#fff;text-shadow:0 1px 3px #173d33}
#puzzleBoard{padding:4px 0}
.tokenBoard{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:18px 0}
.tokenBoard button{position:relative;padding:13px 16px;background:#fff6dc;color:#49382a;border:1px solid #7a5a3d;border-radius:2px 10px 3px 9px;box-shadow:3px 4px 0 #9b7651;transform:rotate(var(--tilt,0deg))}
.tokenBoard button:nth-child(3n+1){--tilt:-1deg}.tokenBoard button:nth-child(3n+2){--tilt:1deg}
.tokenBoard button:before{content:"";position:absolute;left:8px;right:8px;top:5px;border-top:1px dashed #b5875c88}
.tokenBoard button.used{opacity:.25;filter:grayscale(1);pointer-events:none}
.answerSlots{min-height:75px;background:#c99a6055;border:2px dashed #745238;padding:12px;margin:14px 0;display:flex;gap:8px;flex-wrap:wrap;align-items:center;border-radius:12px 3px 12px 3px}
.answerSlots:empty:before{content:"献立札を選んだ順に置きます";color:#7b634a;font:12px sans-serif;margin:auto}
.answerSlots button{padding:10px 12px;background:var(--herb);color:#fff9e8;border:0;border-radius:11px 2px 10px 2px;box-shadow:3px 4px 0 #235346}
.fieldGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:18px 0}
.field{padding:14px;background:#fff8e5;border:1px solid #7d5e42;border-left:7px solid var(--copper);box-shadow:4px 5px 0 #a37d55;border-radius:2px 10px 3px 8px}
.field:nth-child(even){border-left-color:var(--herb)}
.field label{display:block;font:800 11px sans-serif;letter-spacing:.06em;color:#725339}
.field select,.field input{width:100%;margin-top:9px;padding:10px;background:#f1e1b9;color:#3f3328;border:1px solid #876647;border-radius:3px;font-weight:bold}
.stepper{display:grid;grid-template-columns:38px 1fr 38px;gap:6px;margin-top:9px}
.stepper input{margin:0;text-align:center;font:bold 18px sans-serif;background:#fff9e8}
.stepper button{background:var(--herb);color:#fff;border:0;border-radius:50%;font:bold 20px sans-serif;box-shadow:2px 3px 0 #214d42}
.lightGrid{display:grid;grid-template-columns:repeat(5,56px);gap:8px;justify-content:center;margin:22px}
.lightGrid button{width:56px;height:56px;background:radial-gradient(circle,#8b7652,#493827);color:#d9c697;border:4px double #d8bd82;border-radius:50%;box-shadow:inset 0 0 12px #21160e,3px 4px 0 #5c412c;font-size:24px}
.lightGrid button.on{background:radial-gradient(circle,#fff8a7,#df782f);color:#fff;box-shadow:0 0 24px #f2a94f,3px 4px 0 #713b24}
.puzzleActions{display:flex;gap:9px;flex-wrap:wrap;border-top:2px dashed #88644377;padding-top:17px}
.puzzleActions button{padding:11px 16px;background:#f8eed1;color:#49392b;border:1px solid #785a3f;border-radius:12px 2px 12px 2px;box-shadow:3px 4px 0 #9b7753}
.puzzleActions .gold{padding-inline:24px;background:var(--copper)!important;color:#fff8e7!important;border-color:#6e321e!important;box-shadow:3px 4px 0 #6e321e!important;font-weight:bold}
#puzzleMsg{min-height:30px;color:#8f3f29;font-weight:bold}
.puzzle.wrong{animation:wrong .28s linear 2}
@keyframes wrong{25%{transform:translate(calc(-50% - 5px),-50%) rotate(-.2deg)}75%{transform:translate(calc(-50% + 5px),-50%) rotate(-.2deg)}}

.book{background:linear-gradient(90deg,#ead5a6 0 49.7%,#c9a56b 50%,#f5e5bd 50.3%);color:#40352a}
.book:before{content:"";position:absolute;top:28px;bottom:28px;left:50%;border-left:2px dashed #8b684855}
.book h2{color:var(--copper);font-size:30px;margin-top:4px}
.bookStat{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.bookStat div{background:#fff8e4;padding:14px;border:1px solid #806145;border-left:6px solid var(--herb);box-shadow:3px 4px 0 #9d7954}
.bookStat b{display:block;color:var(--copper);font-size:22px}
.chapterList{margin-top:15px;background:#fff9e566;padding:4px 12px}
.chapterRow{display:flex;justify-content:space-between;padding:10px;border-bottom:1px dashed #7c6044}
.chapterRow b{color:var(--herb)}
.pause{max-width:390px;display:grid;gap:11px}
.pause h2:before{content:"道具袋 ／ ";color:var(--copper)}
.pause button:not(.x){padding:12px;background:#fff6da;color:#49382a;border:1px solid #79593d;border-left:7px solid var(--herb);box-shadow:3px 4px 0 #9b7753;text-align:left}

@media(max-width:760px),(pointer:coarse){
 header{height:62px;padding:0 10px}header>div:first-child:before{display:none}header b{font-size:14px}header #progress{display:none}header button{font-size:11px;padding:7px}
 .world{inset:62px 0 0}#canvas{width:100%;height:100%}
 #touch{display:block}#mini{width:105px;height:105px;right:12px;top:12px;border-width:5px}#minimap{width:118px;height:70px;left:-7px;top:14px}#mini small{bottom:8px}#moveHelp{display:none}
 #objective{left:10px;top:10px;max-width:calc(100vw - 130px);font-size:11px;padding:10px 12px 10px 18px}
 .dialog{min-height:180px}.dialog>#face{width:105px;flex-basis:105px;margin:9px}.dialog:after{left:123px}.dialog article{padding:18px 14px}.dialog p{font-size:14px;line-height:1.65}.dialog b{font-size:14px}
 .modal{padding:24px 18px}.puzzleHead h2{font-size:21px}#puzzleIcon{width:44px;height:44px;font-size:21px}#puzzleStage{display:none}.fieldGrid{grid-template-columns:1fr}.lightGrid{grid-template-columns:repeat(5,43px);gap:5px;margin:16px}.lightGrid button{width:43px;height:43px}
 .titlebox{padding:28px 25px}.titlebox button{display:block;width:230px;margin:9px 0}.bookStat{grid-template-columns:1fr}
}

.accountPanel{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid #926c4560;font:13px/1.5 sans-serif}
.accountLogin{color:#225e50;text-decoration-thickness:1px;text-underline-offset:4px;font-weight:700}
.titlebox .accountPanel button{font:12px sans-serif;padding:7px 12px;margin:0;width:auto;box-shadow:none}
#cloudStatus{font:12px/1.5 sans-serif;color:#506953;padding:12px 0}
#objective{max-width:365px;left:20px;top:18px;padding:13px 20px;font-size:12px;box-shadow:3px 5px 12px #30291d33}
#mini{width:122px;height:122px;border-width:6px;top:18px;right:20px;box-shadow:0 0 0 1px #775f43,3px 5px 12px #30291d44;transform:none}
#minimap{width:136px;height:80px;left:-7px;top:13px}#mini small{font-size:7px;bottom:10px}
#touch{touch-action:none}#touch button{width:48px;height:48px;touch-action:none}
.puzzleActions{position:sticky;bottom:-24px;background:#f4e6c1;padding-bottom:10px;z-index:3}
button:disabled{opacity:.5;cursor:default}
@media(max-width:760px){
 header>div:first-child{align-items:flex-start;gap:2px;flex-direction:column;min-width:0}header small{font-size:9px}header b{max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 header>div:last-child{gap:6px}#clock{display:none}
 #objective{max-width:calc(100vw - 118px);left:9px;top:10px;padding:10px 14px;font-size:10px}
 #mini{width:91px;height:91px;right:10px;top:10px;border-width:5px}#minimap{width:101px;height:63px;left:-10px;top:7px}#mini small{bottom:6px;font-size:6px}
 #interact{bottom:30px;left:auto;right:13px;transform:none;max-width:calc(100vw - 175px);padding:12px 15px;border-radius:12px;font-size:12px}#interact kbd{display:none}
 #touch{left:16px;bottom:22px;height:107px}
 .dialog{bottom:16px;max-height:calc(100dvh - 40px);overflow:auto;border-width:5px;width:calc(100vw - 20px)}.dialog>#face{flex-basis:82px;width:82px;margin:9px 0 9px 8px}.dialog:after{display:none}.dialog article{padding:18px 13px}.dialog p{font-size:15px;line-height:1.75}
 .modal{max-height:calc(100dvh - 28px);width:calc(100vw - 20px);padding:24px 16px;border-width:5px}.puzzleActions{bottom:-24px}.puzzleActions button{font-size:13px;padding:10px 12px}.puzzleActions .gold{padding-inline:14px}
 .title{padding:22px 15px}.titlebox{width:100%;padding:25px 23px}h1{font-size:39px}.titlebox>p:not(.tag){font-size:14px;line-height:1.6}.titlebox button{padding:10px 16px}.accountPanel{margin-top:12px}.tag{font-size:9px}
 .bookStat{grid-template-columns:repeat(2,minmax(0,1fr))}.bookStat div{padding:10px}.bookStat b{font-size:18px}.chapterRow{font-size:12px;gap:10px}.chapterRow b{white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Game gestures: prevent text callouts and double-tap zoom, without disabling menu scrolling. */
html,body{overscroll-behavior:none;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button,a{touch-action:manipulation}input,select,textarea{font-size:16px;-webkit-user-select:text;user-select:text}
.world,#joystick{touch-action:none}.modal,.dialog{touch-action:pan-y;overscroll-behavior:contain}
#touch{width:140px;height:160px;left:max(16px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));text-align:center}
#joystick{width:140px;height:140px;border:3px solid #775637;border-radius:50%;position:relative;background:radial-gradient(circle,#c4ae7cc9 0 32%,#f4e7c7df 34% 65%,#9a764cdd 67%);box-shadow:0 4px 0 #483a2e66,inset 0 0 0 5px #fff5d855;cursor:grab}
#joystick span{position:absolute;color:#785638;font:13px sans-serif;pointer-events:none}#joystick span:nth-child(1){top:9px;left:61px}#joystick span:nth-child(2){left:9px;top:59px}#joystick span:nth-child(3){bottom:9px;left:61px}#joystick span:nth-child(4){right:9px;top:59px}
#joystick i{position:absolute;width:60px;height:60px;left:37px;top:37px;border:3px solid #eee2ba;border-radius:50%;background:radial-gradient(circle at 35% 25%,#689985,#326853 70%);box-shadow:0 5px 10px #233e4266;pointer-events:none}#joystick.held{cursor:grabbing}#joystick.held i{background:radial-gradient(circle at 35% 25%,#82b69d,#3a785d 70%)}
#touch small{display:block;margin-top:5px;color:#fff8de;text-shadow:0 1px 3px #203a31;font:11px sans-serif}
.audioSettings{display:grid;gap:10px;min-width:0;border:1px dashed #9a774f;padding:12px}.audioSettings label{display:flex;justify-content:space-between;font:14px sans-serif}.audioSettings input{width:100%;min-height:30px;accent-color:var(--herb);touch-action:pan-y}
@media(max-height:500px){#touch{transform:scale(.8);transform-origin:bottom left;bottom:8px}}
.journalNote{font:12px/1.7 sans-serif;color:#65563e}.routeChart ol,.routeChart ul{list-style:none;margin:0;padding:0}.commonNodes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.routeNode{border:1px solid #a28c66;background:#eee1be;padding:9px;min-width:0}.routeNode small{display:block;font:10px sans-serif;color:#705f45;margin-bottom:5px}.routeNode span{font-size:12px}.routeNode.passed{border-left:5px solid #367961;background:#edf0d4}.routeNode.current{border:3px solid #ad542e;background:#fff7dc}.routeNode.current small{color:#943e21;font-weight:bold}.routeNode.unreached{border-style:dashed;color:#756e5e}.branchCaption{text-align:center;font:700 12px/1.6 sans-serif;margin:12px 0;color:#775532}.routeBranches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.routeBranch{border:1px dashed #ad9b78;padding:12px;background:#f8efd488;min-width:0}.routeBranch.selectedRoute{border:3px solid #367961;background:#fff7df}.routeBranch h4{margin:0 0 10px;color:#395d4b}.routeBranch h4 small{display:block;font:11px sans-serif;margin-top:4px}.routeBranch>ol{display:grid;gap:6px}.endingNode{padding:9px;border-top:1px dashed #b9a782;font-size:12px}.endingNode>b,.endingNode>span{display:block}.endingNode>span{font:10px sans-serif;margin:4px 0}.endingNode.chosenEnding{background:#e1eedb;border:2px solid #3b765c}.endingNode ol{display:grid;gap:6px;margin-top:8px}.hintChapter,.decisionHistory{margin:10px 0;border:1px solid #a58b60;background:#fff6dc;padding:12px}.hintChapter summary,.decisionHistory summary{cursor:pointer;font-weight:bold;font-size:14px}.hintChapter ul{list-style:none;padding:0;margin:10px 0}.hintChapter li{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px dashed #bfa781;padding:10px 0;font-size:13px}.hintChapter li>span:first-child{flex:1;min-width:130px}.hintChapter strong{font:11px sans-serif}.hintStages{display:flex;gap:4px}.hintStages i{font:12px sans-serif;display:grid;place-items:center;width:23px;height:23px;border:1px solid #947849;color:#796944;border-radius:50%}.hintStages i.read{background:#a85732;color:#fff7e0}.decisionHistory li{padding:9px 0}.decisionHistory small,.decisionHistory span{display:block}.decisionHistory small{font:11px sans-serif;color:#766444}.decisionHistory span{font-size:13px;margin-top:5px}
@media(max-width:600px){.routeBranches{grid-template-columns:1fr}.commonNodes{grid-template-columns:repeat(2,minmax(0,1fr))}.book:before{display:none}.book{background:#f1e2bc}.routeBranch{padding:10px}.hintChapter{padding:10px}}
#support{z-index:120}.supportPanel{width:min(700px,94vw);max-height:90dvh;overflow:auto}.supportPanel h3,.supportMessages p,.supportList b{overflow-wrap:anywhere}.supportPanel label{display:grid;gap:8px;margin:16px 0}.supportPanel input,.supportPanel textarea{box-sizing:border-box;width:100%;min-width:0;font:inherit;font-size:16px;background:#fff9e8;color:#263e38;padding:12px;border:1px solid #938261;border-radius:8px;user-select:text;touch-action:auto}.supportList{display:grid;gap:10px;margin:20px 0}.supportList button{text-align:left;white-space:normal}.supportList small,.supportMessages small{display:block;font-size:12px;margin-top:5px}.supportMessages article{padding:14px;background:#ece0c4;border-radius:12px;margin:12px 0}.supportMessages article.fromAdmin{background:#dbe7db;border-left:4px solid #4b7660}.supportMessages p{white-space:pre-wrap;line-height:1.8}.supportError{color:#973a26}.supportPanel [data-back]{margin-top:18px}
.supportPanel button{font:inherit;min-height:44px;padding:10px 18px;border:1px solid #94784d;border-radius:9px;color:#263e38;background:#f8edcf;cursor:pointer}.supportPanel button.gold{background:#d7ab59;border-color:#866331}.supportPanel button:disabled{opacity:.5;cursor:wait}.supportPanel button:focus-visible{outline:3px solid #315f67;outline-offset:2px}.supportPanel .x{padding:0;border-radius:50%;color:#fff;background:#a7502d}
.deviceDials,.irrigationFields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.deviceDial,.waterField{text-align:center;padding:12px;background:#fff4d8;border-radius:14px;min-width:0}.deviceDial h3,.waterField h3{margin:0 0 12px}.dialFace{position:relative;border:9px double #866941;border-radius:50%;width:100px;height:100px;margin:0 auto 12px;background:repeating-conic-gradient(#79603b 0deg 2deg,#e7ca8c 2deg 45deg)}.dialValue{position:absolute;inset:22px;border-radius:50%;background:#fff6db;display:grid;place-items:center;font-size:28px;font-weight:bold}.dialPointer{position:absolute;inset:5px 42px;transform-origin:center;transition:transform .2s}.dialPointer:before{content:'';display:block;background:#9a4328;width:8px;height:25px}.dialActions{display:flex;justify-content:center;gap:8px}.deviceButton{min-height:46px!important;min-width:44px;padding:10px!important}.deviceButton[aria-pressed=true]{background:#315f59!important;color:#fff!important}.thermalGraph{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;padding:24px 0;margin:10px 0}.thermalBeat{position:relative;height:85px;min-width:0}.thermalBeat i{position:absolute;bottom:0;left:0;right:0;border-radius:5px 5px 0 0}.thermalTarget{border:2px dashed #806947;box-sizing:border-box}.thermalActual{background:#b77039aa;left:3px!important;right:3px!important}.thermalBeat small{position:absolute;bottom:-22px;left:0;right:0;text-align:center}.thermalBeat b{position:absolute;top:-22px;left:0;right:0;text-align:center;color:#785037}.heatControls{display:flex;flex-wrap:wrap;gap:8px}.deviceLegend{font-size:13px;line-height:1.7}.aromaBell{display:grid;grid-template-columns:90px 60px 1fr;align-items:center;gap:12px;margin:12px 0;padding:12px;background:#fff3d8;border-radius:12px}.bellWave{display:flex;gap:2px;align-items:center}.bellWave i{display:block;width:4px;background:#6a9182}.aromaOptions,.bonusChoices{display:flex;gap:8px;flex-wrap:wrap}.waterField output{display:block;min-height:56px;overflow-wrap:anywhere;line-height:1.5}.waterField button{display:block;width:100%;margin-top:8px}@media(max-width:600px){.deviceDials,.irrigationFields{grid-template-columns:1fr}.deviceDial{display:grid;grid-template-columns:1fr 110px 1fr;gap:8px;align-items:center}.deviceDial h3{font-size:15px}.dialFace{width:84px;height:84px;box-sizing:content-box;margin:0}.dialPointer{inset:5px 35px}.dialValue{inset:19px;font-size:24px}.dialActions{flex-direction:column}.aromaBell{grid-template-columns:85px 1fr}.aromaOptions{grid-column:1/-1}.thermalGraph{gap:3px}.waterField{display:grid;grid-template-columns:1fr 1fr;gap:8px}.waterField h3,.waterField output{grid-column:1/-1}.waterField output{min-height:28px}}
#puzzleBoard .deviceButton{font:700 15px/1.35 sans-serif;border:2px solid #8e6947;border-radius:10px;background:linear-gradient(#fff4d5,#e8cd92);color:#4b3826;box-shadow:0 3px 0 #8e6947;cursor:pointer;touch-action:manipulation}#puzzleBoard .deviceButton:active{transform:translateY(2px);box-shadow:0 1px 0 #8e6947}#puzzleBoard .deviceButton:disabled{opacity:.48;box-shadow:none;cursor:default}#puzzleBoard .deviceButton:focus-visible{outline:3px solid #31766b;outline-offset:3px}.dialActions .deviceButton{font-size:25px!important}
.routeBranches{grid-template-columns:minmax(0,1fr);margin-top:14px}.routeBranches:empty{display:none}
