:root{font-family:"Yu Gothic UI","Hiragino Sans",sans-serif;color:#fff9e9;background:#243c2c;font-synthesis:none;--cream:#f3e9d2;--ink:#27372b;--gold:#f1cd7d}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:wait;opacity:.65}button:focus-visible,select:focus-visible{outline:3px solid #fff;outline-offset:4px}[hidden]{display:none!important}#game,#view,.vignette{position:fixed;inset:0}#view{touch-action:none}#view canvas{display:block;width:100%;height:100%}.vignette{pointer-events:none;background:linear-gradient(180deg,#152a3260,transparent 24%,transparent 70%,#172b3760)}header{position:absolute;left:34px;right:34px;top:27px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:11px;font-weight:600;letter-spacing:.13em;font-size:16px;text-shadow:0 2px 12px #263025}.brand small{display:block;font-size:8px;letter-spacing:.22em;margin-top:5px}.emblem{display:grid;place-items:center;width:40px;height:44px;border:1px solid #fff9e999;border-radius:16px 16px 10px 10px;font-family:serif;font-size:23px;font-weight:400}.glass{background:#1b302dd9;border:1px solid #eff4d528;color:#fff9e9;backdrop-filter:blur(12px);border-radius:14px}.panel{background:#f5eddbf5;color:var(--ink);border:1px solid #fff6df;border-radius:22px;box-shadow:0 18px 80px #0a1d2733}header button{font-size:12px;padding:11px 15px}.intro{position:absolute;top:50%;left:6.5%;transform:translateY(-44%);width:355px;padding:31px}.eyebrow{font-size:10px;letter-spacing:.13em;margin:0 0 12px;color:inherit;opacity:.78}h1,h2,p{margin-top:0}h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:52px;line-height:1.3;letter-spacing:.02em;font-weight:500;margin-bottom:23px}.lead{font-size:14px;line-height:1.95}.intro-line{display:flex;align-items:center;gap:10px;font-size:11px;color:#626b49;margin:24px 0}.intro-line i{font-style:normal;opacity:.4}.primary{background:var(--gold);color:#263727;font-weight:600;border:1px solid #ffdf98;box-shadow:0 3px 12px #3c352511;width:100%;padding:14px 10px;border-radius:10px;font-size:13px;transition:background .15s}.primary:hover{background:#ffe1a1}.secondary{display:block;width:100%;margin-top:10px;padding:11px;background:#e0e1c8;color:#354932;border-radius:10px;font-size:12px}.fine{font-size:10px;line-height:1.8;opacity:.68;margin:14px 0 0}#loading{font-size:10px;line-height:1.6;margin:12px 0 0;min-height:16px}.mission{position:absolute;top:104px;left:34px;width:298px;padding:21px}.mission h2{font-size:20px;font-family:"Yu Mincho",serif;font-weight:500;line-height:1.55;letter-spacing:.035em;margin-bottom:12px}#mission-text{font-size:12px;line-height:1.85;color:#e9edd8;margin-bottom:17px}.task-line{display:flex;justify-content:space-between;gap:5px;color:#e9d395;font-size:11px;margin-bottom:13px}.status{position:absolute;top:104px;right:34px;padding:16px 20px;min-width:124px}.status>span{font-size:10px;color:#d2ddc7;letter-spacing:.04em}.status strong{display:block;font-size:31px;font-weight:400;margin:2px 0}.status strong small{font-size:12px;color:#dbd8bb}.status p{font-size:10px;margin-bottom:0;color:#d2ddc7}.map{position:absolute;right:34px;bottom:85px;padding:9px 9px 12px;width:152px;background:#243b30b8;border-radius:50% 50% 15px 15px;text-align:center}.map canvas{width:132px;height:132px;display:block}.map span{font-size:9px;color:#d9e1ca}.text-button{background:none;color:inherit;opacity:.8;display:block;font-size:11px;padding:12px 4px 0;margin:0 auto}footer{position:absolute;bottom:25px;left:34px;right:34px;display:flex;align-items:center;justify-content:flex-end;gap:10px}footer>span{margin-right:auto;font-size:10px;text-shadow:0 1px 5px #000;letter-spacing:.03em}footer button{font-size:11px;padding:11px 18px}.mobile-help{display:none}.pin{position:absolute;pointer-events:none;transform:translate(-50%,-100%);padding:5px 9px;border-radius:6px;font-size:10px;color:#fffbe6;white-space:nowrap;background:#243f30b3;text-shadow:0 1px 2px #253325}#notice{position:absolute;left:50%;bottom:95px;transform:translateX(-50%);width:max-content;max-width:85%;background:#fff2d2f2;color:#30422f;padding:12px 20px;border-radius:10px;font-size:12px;opacity:0;transition:opacity .2s;pointer-events:none;text-align:center}#notice.visible{opacity:1}.work{margin:0 0 12px;font-size:10px}.work progress{margin-top:6px}progress{appearance:none;width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;display:block;background:#ffffff25}progress::-webkit-progress-bar{background:#ffffff25}progress::-webkit-progress-value{background:#e8d292;border-radius:5px}#danger-meter{margin-bottom:14px}#danger-meter>div{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:7px}#danger-meter strong{font-size:21px;color:#ffe3a9}.overlay{position:absolute;inset:0;display:grid;place-items:center;padding:28px;background:#0b241e70;backdrop-filter:blur(6px);z-index:10}.dialog{padding:30px;width:min(100%,420px);max-height:94dvh;overflow:auto}.dialog h2{font-family:"Yu Mincho",serif;font-size:26px;line-height:1.5;font-weight:500}.dialog>p{font-size:12px;line-height:1.9}.dialog dl{font-size:11px;display:grid;grid-template-columns:75px 1fr;line-height:1.8;margin:0 0 16px;gap:10px}.dialog dt{font-weight:600}.dialog dd{margin:0}.setting{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #3c522025;padding-top:12px;font-size:12px}.setting select{border:1px solid #8f987a;background:#f5f1df;border-radius:6px;padding:5px;color:#33432d}.performance{font-size:9px!important;color:#58694d;margin:10px 0 18px}.ending{width:min(100%,500px);padding:34px 40px;max-height:95dvh;overflow:auto}.ending h2{font:500 37px/1.4 "Yu Mincho",serif;letter-spacing:.04em;margin-bottom:18px}.ending .lead{font-size:12px}.journal{border-top:1px solid #66734a33;margin:22px 0;padding:18px 0 0}.journal>p{font-size:10px;letter-spacing:.1em;color:#667353}.journal article{margin:12px 0;font-size:11px;line-height:1.8}.journal b{display:block;font-weight:600}.journal span{color:#67745d}#touch-controls{position:absolute;inset:0;pointer-events:none}#stick{position:absolute;bottom:88px;left:34px;width:100px;height:100px;border:1px solid #efffdb44;background:#243d3025;border-radius:50%;touch-action:none;pointer-events:auto;display:grid;place-items:center}#stick span{width:40px;height:40px;border:1px solid #f8e8bc99;background:#f8e8bc33;border-radius:50%;pointer-events:none}#stick i{position:absolute;bottom:8px;font-size:9px;font-style:normal;pointer-events:none;color:#fff8e6aa}.vertical{position:absolute;right:203px;bottom:89px;display:flex;gap:8px;pointer-events:auto}.vertical button{display:grid;place-items:center;width:42px;height:63px;border:1px solid #efffdb44;background:#243d3066;color:#fff8e6;font-size:20px;border-radius:24px;touch-action:none;user-select:none}.vertical small{font-size:9px;margin-top:-10px}body[data-stage=danger] .mission{border-color:#f3d69588}body[data-stage=danger] .vignette{background:linear-gradient(180deg,#122124a6,transparent 45%,#25342655)}
@media(max-width:720px){header{left:17px;right:17px;top:max(18px,env(safe-area-inset-top))}.brand{font-size:13px;gap:8px}.brand small{font-size:7px}.emblem{width:31px;height:35px;font-size:19px}header button{padding:9px 10px;font-size:10px}.intro{left:21px;top:50%;width:calc(100% - 42px);max-width:350px;padding:25px;transform:translateY(-40%)}h1{font-size:45px;margin-bottom:17px}.intro .lead{font-size:13px}.intro-line{margin:18px 0}.mission{top:81px;left:17px;right:17px;width:auto;padding:14px 16px;background:#1c322cdf}.mission .eyebrow{font-size:9px;margin-bottom:5px}.mission h2{font-size:17px;margin-bottom:7px}.mission #mission-text{font-size:11px;line-height:1.65;margin-bottom:9px;max-width:90%}.task-line{font-size:10px;margin-bottom:10px}.mission .primary{padding:10px}.status{top:auto;bottom:208px;right:17px;padding:9px 12px;min-width:93px}.status>span{font-size:9px}.status strong{font-size:24px;display:inline-block;margin:4px 7px}.status p{font-size:8px}.map{right:17px;bottom:79px;width:110px;padding:5px 5px 8px}.map canvas{width:98px;height:98px}.map span{font-size:7px}.vertical{right:140px;bottom:96px;gap:6px}.vertical button{width:36px;height:60px}#stick{left:20px;bottom:90px;width:96px;height:96px}footer{left:20px;right:17px;bottom:max(20px,env(safe-area-inset-bottom));gap:6px}footer button{padding:9px 12px;font-size:10px}footer .desktop-help{display:none}.mobile-help{display:block;max-width:180px;line-height:1.6;font-size:9px}#notice{bottom:330px;font-size:11px;line-height:1.7;width:85%;padding:10px 14px}.overlay{padding:17px}.dialog{padding:24px;max-height:94dvh}.dialog h2{font-size:23px}.ending{padding:27px 24px}.ending h2{font-size:31px}.ending .lead{font-size:11px}.journal{margin:15px 0;padding-top:14px}}
@media(max-height:650px) and (min-width:721px){.intro{padding:22px;top:51%;width:315px}.intro h1{font-size:37px;margin-bottom:14px}.intro .lead{font-size:12px}.intro-line{margin:14px 0}.fine{margin-top:8px}.mission{top:88px;padding:16px;width:280px}.mission h2{font-size:17px}.map{width:119px;bottom:74px}.map canvas{width:99px;height:99px}#stick{width:80px;height:80px;bottom:78px}.vertical{bottom:81px;right:169px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:720px){body[data-stage=in_watch] #notice{bottom:207px;left:17px;transform:none;width:calc(100% - 34px);font-size:10px;line-height:1.65;padding:8px 12px;}}

body[data-space=hive] .glass{background:#39281be3;border-color:#f7d7a333}body[data-space=hive] .vignette{background:linear-gradient(180deg,#21130744,transparent 30%,transparent 70%,#21130744)}body[data-space=hive] #mission-text{color:#f1e2c4}#guard-panel{border-top:1px solid #ffe4b52b;padding-top:12px;margin-bottom:8px}#guard-status{font-size:11px;margin-bottom:8px;color:#f9dea5}.scent{display:flex;gap:10px;margin:11px 0}.scent>span{flex:1;padding:8px 6px;border:1px solid #fbe2a332;border-radius:8px;font-size:9px;color:#e2c59a;text-align:center}.scent em{display:block;font-size:17px;font-style:normal;color:#fff2d4;margin-top:7px}#guard-cue{font-size:11px;line-height:1.8;margin-bottom:12px}.guard-actions{display:flex;gap:7px}.guard-actions button{flex:1;padding:12px 5px;font-size:11px;margin:0}.guard-actions .secondary{background:#70533a;color:#fff3d8;border:1px solid #d8b77b66}.scent-note{font-size:8px;opacity:.6;margin:9px 0 0}.ecology{font-size:10px;line-height:1.9;margin-top:18px}.ecology summary{cursor:pointer;color:#556746}.ecology p{margin:10px 0}.ecology a{color:#3c664e}body[data-space=hive] .status p{color:#e9cf9e}@media(max-width:720px){body[data-stage=in_watch] .mission{padding:12px 14px}body[data-stage=in_watch] #mission-text{display:none}#guard-panel{padding-top:8px}#guard-status{font-size:10px}.scent{margin:7px 0}.scent>span{padding:6px}.scent em{font-size:15px;margin-top:4px}#guard-cue{font-size:10px;margin-bottom:8px}.guard-actions button{min-height:40px}body[data-stage=in_watch] .status{display:none}body[data-space=hive] .map{background:#49321fd9}.intro{padding-top:22px;padding-bottom:22px}.intro h1{font-size:40px}.intro .lead{line-height:1.65}.intro .fine{margin-top:9px}}

.header-actions{display:flex;gap:8px;align-items:center}#sound-toggle{min-width:62px}#fan-panel{margin:12px 0 8px;border-top:1px solid #ffe4b532;padding-top:12px}.fan-line{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:10px 0 7px}.fan-line b{font-size:19px;font-weight:500;color:#ffe5ac}#effort-progress::-webkit-progress-value{background:#d39a77}#fan-help{font-size:11px;line-height:1.75;margin:12px 0}#sound-volume{width:54%;accent-color:#987143}.intro .secondary{padding-top:9px;padding-bottom:9px}.performance{white-space:pre-line}@media(max-width:720px){#sound-toggle{min-width:48px;padding:9px 7px}.header-actions{gap:6px}.intro .eyebrow{margin-bottom:9px}.intro .lead{margin-bottom:10px}.intro-line{margin:12px 0}.intro h1{font-size:36px;margin-bottom:12px}.intro{transform:translateY(-44%)}body[data-stage=in_fan] .mission{padding:12px 14px}body[data-stage=in_fan] #mission-text{display:none}body[data-stage=in_fan] #notice{bottom:207px;font-size:10px;line-height:1.6;padding:8px 12px}body[data-stage=in_fan] .status{display:none}body[data-stage=in_free] .mobile-help{display:none}#fan-panel{padding-top:6px}.fan-line{margin-top:8px;font-size:10px}#fan-help{font-size:10px;margin:9px 0}}
@media(max-width:720px){#nectar-ending h2{font-size:26px}}

.journal-dialog{width:min(100%,850px)}.journal-dialog>h2{font-size:32px;line-height:1.5}.journal-intro{font-size:12px;line-height:1.8;color:#665c48}.chapter-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.chapter-cards article{padding:16px;border:1px solid #a68c6140;border-radius:12px;background:#f6edda}.chapter-cards small{font-size:9px;color:#786344}.chapter-cards h3{font-size:16px;line-height:1.6;margin:9px 0}.chapter-cards p{font-size:11px;line-height:1.8;min-height:40px}.chapter-cards button{font-size:11px;padding:10px 6px;width:100%}.notebook-heading{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #9e896438;padding-top:12px}.notebook-heading h3{font-size:15px}.notebook-heading span{font-size:12px;color:#887451}.field-notes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.field-notes article{padding:13px 15px;border-left:2px solid #ba985d;background:#fffaf080}.field-notes h3{font-size:13px;font-weight:600;margin:0 0 7px}.field-notes p{font-size:11px;line-height:1.8;margin:0}.field-notes a{font-size:10px;color:#596c42;display:inline-block;margin-top:9px}.empty-notes{font-size:12px;line-height:1.9;color:#726853;grid-column:1/-1}.diagnostic{font-size:10px;color:#817357;margin:14px 0}.diagnostic summary{cursor:pointer}.diagnostic .performance{font-size:9px}#journal-button{min-width:43px}@media(max-width:720px){.journal-dialog{padding:23px 20px}.journal-dialog>h2{font-size:24px}.chapter-cards{grid-template-columns:1fr;gap:8px;margin:15px 0}.chapter-cards article{padding:12px 14px}.chapter-cards h3{margin:5px 0;font-size:14px}.chapter-cards p{min-height:0;margin:5px 0}.chapter-cards button{padding:10px;margin:7px 0 0}.field-notes{grid-template-columns:1fr}.header-actions #journal-button{padding:9px 7px}.brand small{font-size:6px}}@media(max-width:380px){.brand .emblem{display:none}.brand{font-size:12px}.brand small{display:none}.header-actions{gap:4px}.header-actions button{padding:8px 7px}}
.journal-close{position:sticky;top:0;float:right;z-index:2;width:40px;height:40px;border-radius:50%;background:#f4eddb;color:#5b523d;border:1px solid #b9a78566;font-size:25px;line-height:1;margin:-7px -7px 0 8px;box-shadow:0 2px 8px #574f2422}
.intro{max-height:calc(100dvh - 115px);overflow:auto;scrollbar-width:thin}.chapter-cards{grid-template-columns:repeat(2,1fr)}
.inspection-button{width:100%;margin-top:10px;min-height:40px;border:1px solid #d8b77b66;border-radius:9px;background:#70533a;color:#fff3d8;font-size:11px;padding:10px}.inspection-button[aria-pressed=true]{background:#efe0b8;color:#3b3529}#inspection-note{font-size:9px;line-height:1.6;opacity:.7;margin:7px 0 0}body[data-inspect=true] .pin{display:none}
#brood-panel{margin:10px 0 8px;border-top:1px solid #ffe4b532;padding-top:12px}.brood-observation{font-size:10px;color:#ebcf9b}.brood-observation progress{margin:8px 0 12px}#brood-kind{font-size:14px;font-weight:500;margin:0 0 8px}#brood-clue{font-size:11px;line-height:1.8;margin:0 0 12px}.brood-actions{display:flex;gap:7px}.brood-actions button{flex:1;padding:12px 5px;min-height:44px;font-size:11px;margin:0}.brood-actions .secondary{background:#70533a;color:#fff3d8;border:1px solid #d8b77b66}#brood-panel .scent-note{line-height:1.65}
@media(max-width:720px){.chapter-cards{grid-template-columns:1fr}.intro{top:87px;transform:none;max-height:calc(100dvh - 107px)}body[data-stage=in_brood_observe] #mission-text{display:none}body[data-stage=in_brood_observe] .status{display:none}body[data-stage=in_brood_observe] .mission{padding:12px 14px}#brood-panel{padding-top:8px}#brood-kind{font-size:13px}#brood-clue{font-size:10px;margin-bottom:8px}.brood-observation progress{margin:6px 0 10px}body[data-stage^=in_brood_] #notice{bottom:207px;font-size:10px;line-height:1.6;padding:8px 12px}body[data-stage=in_honey_free] .mobile-help{display:none}#brood-ending h2{font-size:27px}}

/* Keep the title readable without one-character wraps on desktop. */
@media(min-width:721px){.intro h1{font-size:42px;line-height:1.45;letter-spacing:.025em}}
