:root{color:#35382f;font-synthesis:none;background:#f3eddf;font-family:system-ui,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}body{min-width:0;margin:0;overflow:hidden}.status-bar-color{display:none}@supports (-webkit-touch-callout:none){@media (display-mode:standalone){.status-bar-color{z-index:2147483647;pointer-events:none;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;background-color:canvas;-webkit-background-clip:text;background-clip:text;height:11px;display:block;position:fixed;top:0;left:0;right:0}@media (prefers-color-scheme:dark){.status-bar-color{--lightningcss-light: ;--lightningcss-dark:initial}}}}:where(#app,#app *,.mobile-debug,.mobile-debug *){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:pan-y}#app .reading-text,#app .reading-text :not(img){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}button,select{font:inherit;color:inherit}button{cursor:pointer}:where(#app,#app *,.mobile-debug,.mobile-debug *):focus{outline:none}#app{height:100dvh;position:relative;overflow:hidden;container:game/inline-size}.viewport{overflow-anchor:none;touch-action:pan-y;overscroll-behavior:none;position:absolute;inset:0;overflow:hidden auto}.board{touch-action:pan-y;isolation:isolate;width:100%;max-width:600px;min-height:100%;margin-inline:auto;position:relative}.location-label{pointer-events:none;color:#8b715b;border-top:1px solid #cfbfa5;padding-top:3px;font-size:10px;position:absolute;left:5px;right:5px}.thing,.hotspot{-webkit-user-select:none;user-select:none;position:absolute;transform:translate(-50%,-50%)}.thing{z-index:3;touch-action:none;-webkit-touch-callout:none;overflow-wrap:anywhere;background:#fffaf0;border:1px solid #8d8068;border-radius:8px;width:96px;min-height:44px;padding:4px;font-size:12px;line-height:1.15;box-shadow:0 2px 4px #53422e15}.hotspot{z-index:1;touch-action:none;background:0 0;border:1.5px solid #9a8b70;border-radius:0;justify-content:center;align-items:flex-start;width:104px;height:82px;padding:5px;font-size:11px;display:flex}.thing .slot{white-space:nowrap;border:1px dashed #b5a58a;border-radius:3px;height:18px;margin-top:3px;font-size:9px;line-height:16px;display:block;overflow:hidden}.thing .slot.filled{background:#ebe9dc;border-style:solid}.pressed{outline-offset:3px;outline:3px solid #163d46;box-shadow:0 0 0 3px #fffaf0!important}.possible{outline-offset:4px;border-color:#063e53!important;outline:2px dashed #fffaf0!important;box-shadow:0 0 0 2px #fffaf0,0 0 0 5px #063e53,0 4px 12px #14252c88!important}.will-create,.will-place{outline-offset:3px;background:#ffe2a0!important;outline:3px solid #6b2e04!important;box-shadow:0 0 0 3px #fffaf0,0 0 0 6px #b25108,0 5px 16px #29190088!important}.goal-met{outline-offset:1px;border-color:#b58b23;outline:2px solid #d6ad48;box-shadow:0 0 10px #d4aa5366}.thing.goal-met{background:#fff1c6}.dragging{pointer-events:none;transition:none!important;animation:none!important}.born{animation:.65s ease-out arrival}@keyframes arrival{0%{transform:translate(calc(-50% + var(--birth-x,0px)),calc(-50% + var(--birth-y,0px))) scale(.75);background:#ffe3a3;box-shadow:0 0 18px #d58b36}55%{background:#ffecc1;box-shadow:0 0 12px #d58b36}to{transform:translate(-50%,-50%)scale(1)}}.hud-stack{z-index:2}.debug-toggle{z-index:4}.hud-stack{left:50%;bottom:max(20px,env(safe-area-inset-bottom));-webkit-user-select:none;user-select:none;pointer-events:none;flex-direction:column;align-items:center;gap:0;width:max-content;max-width:min(100vw - 32px,358px);display:flex;position:fixed;transform:translate(-50%)}.objective-dock{pointer-events:auto;flex-direction:column;align-items:flex-end;gap:0;max-width:100%;display:flex}.objective-overlay{max-width:100%;min-height:44px;box-shadow:none;text-align:left;pointer-events:auto;background:0 0;border:0;border-radius:0;padding:3px 6px;font-size:11px;line-height:1.4}.objectives{overscroll-behavior:contain;max-height:min(20dvh,140px);display:block;overflow-y:auto}.objective-line{overflow-wrap:anywhere;align-items:flex-start;gap:7px;display:flex}.objective-line+.objective-line{margin-top:3px}.objective-line.done{color:#805d11}.objectives{max-height:calc(min(20dvh,140px) + 24px);margin:-12px -36px;padding:12px 36px}.objective-line{transform-origin:50%}.debug-toggle{right:max(4px,env(safe-area-inset-right));top:max(4px,env(safe-area-inset-top));width:44px;height:44px;box-shadow:none;pointer-events:auto;background:0 0;border:0;border-radius:0;place-items:center end;padding:0 2px 0 0;display:grid;position:absolute}.debug-toggle[data-debug=true]:after{content:"";background:#b58b23;border:1px solid #fffaf0;border-radius:50%;width:9px;height:9px;position:absolute;top:0;right:0}.debug-toggle[data-save-error=true]:after{content:"!";color:#fff;background:#96382c;border-radius:50%;width:16px;height:16px;font-size:11px;font-weight:700;line-height:16px;position:absolute;top:-3px;right:-2px}.save-alert{z-index:36;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));color:#96382c;background:#fff4e9;border:1px solid #96382c;border-radius:8px;max-width:220px;min-height:44px;padding:8px 12px;font-size:12px;position:absolute}.is-dragging .save-alert{opacity:.15;pointer-events:none}.is-dragging .debug-toggle,.is-dragging .hud-stack *{pointer-events:none!important}.feedback{top:max(10px,env(safe-area-inset-top));pointer-events:none;z-index:34;background:#fff8e7ee;border-radius:6px;width:max-content;max-width:calc(100% - 20px);margin:0;padding:6px 9px;font-size:12px;position:absolute;left:50%;transform:translate(-50%)}dialog{width:min(92vw,470px);color:inherit;background:#fffaf0;border:1px solid #c6b99e;border-radius:12px;max-height:88dvh;padding:22px;overflow:auto}dialog::backdrop{background:#26372f88}dialog .speaker{text-transform:uppercase;letter-spacing:.1em;color:#6c735d;font-size:10px}dialog h1{margin:8px 0 15px;font-size:23px}dialog p{font-size:14px;line-height:1.55}dialog ul{padding-left:20px;font-size:13px;line-height:1.6}dialog button{background:#e6edde;border:1px solid #718571;border-radius:7px;padding:9px 13px;font-size:14px}dialog .secondary{background:0 0;margin-left:7px;font-size:12px}.cache{border-left:3px solid #b8a781;padding-left:12px}dialog button,dialog select{min-height:44px}.dialog-actions{flex-wrap:wrap;gap:8px;display:flex}.dialog-actions button{overflow-wrap:anywhere;max-width:100%}dialog .dialog-actions .secondary{margin-left:0}.completion-story{white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}.save-controls{flex-wrap:wrap;align-items:center;gap:8px;display:flex}#save-status{overflow-wrap:anywhere;max-width:100%;font-size:11px;line-height:1.4}#save-status[data-state=error]{color:#96382c}#app.catalogue-page{overscroll-behavior:contain;background:#f3eddf;overflow-y:auto}.chooser{width:min(100%,600px);min-height:100%;margin:0 auto;padding:24px 12px 40px}.chooser .story-title{margin:0;font:24px/1.2 Georgia,serif}.chooser .story-title img{object-fit:contain;vertical-align:baseline;width:64px;height:64px;display:inline}.chooser a{color:inherit;background:#fffaf0;border:1px solid #b5a58a;border-radius:8px;margin:10px 0;padding:14px;text-decoration:none;display:block}.chooser p{font-size:14px;line-height:1.5}.chooser a,.chooser p{overflow-wrap:anywhere}@media (height<=420px){.hud-stack{max-width:min(100vw - 32px,358px)}.objectives{max-height:18dvh}.objective-overlay{padding:3px 2px 3px 6px}dialog{max-height:94dvh;padding:16px}}@media (prefers-reduced-motion:reduce){.born{animation:none}}.source-marker{text-align:right;color:#6c735d;pointer-events:none;height:12px;line-height:12px;display:block}#source-reader{width:min(92vw,430px);max-height:82dvh;padding:18px}.reader-dismiss{float:right;background:0 0;width:44px;min-width:44px;height:44px;margin:-4px -4px 8px 12px;padding:0;font-size:22px}#source-reader .reading-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0;font-family:Georgia,serif;font-size:17px;line-height:1.65}.text-thing{font-family:Arial,Helvetica,sans-serif;line-height:14px}.item-label,.item-label-line{display:block}.item-label-line{white-space:pre}.arrival-divider{pointer-events:none;z-index:2;text-align:center;color:#716858;border-top:1px dotted #9a8b70;height:1px;font-size:10px;line-height:16px;position:absolute;left:8px;right:8px}.arrival-divider span{background:#f3eddf;padding:0 8px;position:relative;top:-9px}.arrival-divider{display:none}#milestone{width:100%;max-width:none;height:100dvh;max-height:none;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));overscroll-behavior:contain;background:radial-gradient(at 50% 32%,#fff5d7 0%,#f3eddf 60%);border:0;border-radius:0;margin:0;position:fixed;inset:0;overflow:auto}#milestone::backdrop{background:#f3eddf}.milestone-content{text-align:center;flex-direction:column;justify-content:center;align-items:center;max-width:600px;min-height:100%;margin:auto;display:flex}#milestone .milestone-eyebrow{text-transform:uppercase;letter-spacing:.17em;color:#71634c;margin:0 0 26px;font-size:11px}.milestone-object{background:#fffaf0;border:1px solid #a98b55;border-radius:12px;width:clamp(144px,38vw,206px);max-width:100%;padding:18px;animation:1.1s ease-out both milestone-reveal;box-shadow:0 8px 48px #ba92583d}.milestone-item-label{overflow-wrap:anywhere;font-size:19px;line-height:1.3}.milestone-component{overflow-wrap:anywhere;animation:.65s ease-out both milestone-fit;animation-delay:calc(.15s + var(--part)*.12s);background:#ebe9dc;border:1px solid #b5a58a;border-radius:5px;margin-top:8px;padding:5px 8px;font-size:12px;line-height:1.3;display:block}#milestone h1{overflow-wrap:anywhere;max-width:100%;margin:30px 0 14px;font-family:Georgia,serif;font-size:clamp(30px,7vw,46px);font-weight:400;line-height:1.12}#milestone #milestone-text{overflow-wrap:anywhere;max-width:29em;margin:0 0 28px;font-family:Georgia,serif;font-size:clamp(17px,4vw,21px);line-height:1.6}#milestone-continue{color:#fffaf0;background:#52694f;border-color:#52694f;min-width:140px;min-height:48px}@keyframes milestone-reveal{0%{opacity:0;transform:scale(.78);box-shadow:0 0 #ba925800}to{opacity:1;transform:scale(1);box-shadow:0 8px 48px #ba92583d}}@keyframes milestone-fit{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.milestone-object,.milestone-component{animation:none}}@media (height<=480px){#milestone{padding:20px}.milestone-content{justify-content:flex-start}#milestone .milestone-eyebrow{margin-bottom:14px}#milestone h1{margin-top:20px}.milestone-object{padding:12px}}.board.fixed-locations{isolation:isolate;max-width:none;min-height:0}.location-scene{pointer-events:none;z-index:-2;background:#e8dfcd;position:absolute;left:0;right:0;overflow:hidden}.location-scene img{object-fit:cover;pointer-events:none;width:100%;height:100%;display:block}.fixed-locations .location-label{z-index:0;color:#665c4b;background:#f3eddfc9;border-top:1px solid #b8aa91;min-height:24px;padding:5px 7px}#mission[data-format=radio]{background:#f5faf4;border-left:4px solid #557574}#mission[data-format=speech-bubble]{border-radius:20px 20px 20px 4px}#mission[data-format=source-update-card]{border-top:4px solid #9d8657}#mission .source-caption{color:#756c5a;margin:8px 0 0;font-size:11px;line-height:1.4}.fixed-locations .source-marker{opacity:.8;pointer-events:none;background:#fffaf0;border-radius:3px;width:12px;height:12px;line-height:12px;position:absolute;top:-3px;right:-2px}#mission.intertitle{border-radius:8px;padding:0}#mission.intertitle .intertitle-dismiss{text-align:center;white-space:pre-line;background:0 0;border:0;border-radius:8px;width:100%;min-height:100px;padding:30px 26px;font-family:Georgia,serif;font-size:clamp(18px,4.6vw,23px);line-height:1.55;display:block}.fixed-locations .thing{background:#fffaf0;box-shadow:0 2px 5px #302b2533}.fixed-locations .thing.goal-met{background:#fff1c6}.fixed-locations .hotspot{background:#f3eddfd9}.location-hud .objective-line{background:#f3eddfed;box-shadow:0 0 4px 2px #f3eddf80}.location-hud .debug-toggle{filter:drop-shadow(0 0 2px #fffaf0)drop-shadow(0 0 3px #fffaf0)}#milestone.illustrated-milestone .milestone-content{gap:12px;width:min(100%,370px);min-height:100%;max-height:none;padding:12px;overflow:visible}#milestone.illustrated-milestone .discovery-illustration{object-fit:contain;background:#17232a;border-radius:12px;width:100%;height:min(47dvh,395px);min-height:160px;display:block}#milestone.illustrated-milestone .milestone-eyebrow{margin:0}#milestone.illustrated-milestone h1{margin:0;font-size:clamp(23px,6.8vw,30px)}#milestone.illustrated-milestone #milestone-text{margin:0;font-size:17px;line-height:1.35}#milestone.illustrated-milestone #milestone-continue{flex-shrink:0;min-height:44px}@media (prefers-reduced-motion:reduce){#milestone.illustrated-milestone *,#milestone.illustrated-milestone::backdrop{transition:none!important;animation:none!important}}#milestone.illustrated-milestone{padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left))}.goal-checkbox{border:1px solid;border-radius:2px;flex:0 0 13px;place-items:center;width:13px;height:13px;margin-top:2px;font-size:11px;line-height:1;display:inline-grid}.objective-line.ending{justify-content:center}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}dialog .danger{color:#fffaf0;background:#96382c;border-color:#96382c}.objective-overlay,.objective-overlay *{-webkit-user-select:none;user-select:none}.context-heading{margin-bottom:1em;font-size:.82em;font-weight:400;line-height:1.35;display:block}.chapter-next{z-index:35;bottom:max(12px,env(safe-area-inset-bottom));color:#173e32;background:#fffaf0;border:2px solid #334f45;border-radius:50%;place-items:center;width:52px;height:52px;padding:0;font-size:35px;line-height:1;display:grid;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 2px 9px #172b3366}.chapter-next span{animation:1.3s ease-in-out infinite next-down;display:block}.chapter-next.right{border-radius:15px;animation:1.3s ease-in-out infinite next-button}.chapter-next.right span{animation-name:next-right}@keyframes next-down{0%,to{transform:translateY(-3px)}50%{transform:translateY(4px)}}@keyframes next-right{0%,to{transform:translate(-3px)}50%{transform:translate(4px)}}@keyframes next-button{0%,to{box-shadow:0 2px 9px #172b3366}50%{box-shadow:0 0 0 4px #fffaf0b3,0 2px 9px #172b3366}}@media (prefers-reduced-motion:reduce){.chapter-next,.chapter-next span{animation:none}}.result-caption{clear:both;overflow-wrap:anywhere;font-family:Georgia,serif;font-size:16px;font-style:italic;font-weight:400;line-height:1.5;display:block}#source-reader .result-caption{margin:18px 0 2px}#milestone.explanation-milestone .milestone-content{text-align:left;align-items:stretch;max-width:530px}#milestone.explanation-milestone #milestone-text{white-space:pre-line;max-width:none;margin:0;font-size:clamp(18px,4vw,22px);line-height:1.6}#milestone.explanation-milestone .result-caption{margin:22px 0 28px;font-size:clamp(16px,3.8vw,20px)}#milestone.explanation-milestone #milestone-continue{align-self:center}#milestone.explanation-milestone .discovery-illustration{max-width:100%;margin:0 auto 22px}.world{margin:0 auto;position:relative;overflow:clip}.scene-layer,.board.fixed-locations{isolation:isolate;width:100%;height:100%;margin:0}.scene-layer{z-index:0;pointer-events:none;position:absolute;top:0;left:0}.board.fixed-locations{z-index:3;pointer-events:none}.chapter-panel .thing,.chapter-panel .hotspot{pointer-events:auto}.chapter-panel .thing.dragging{pointer-events:none}.scene-panel,.chapter-panel{transform:scale(var(--board-scale,1));transform-origin:0 0;width:var(--panel-width,390px);height:var(--panel-height,844px);isolation:isolate;position:absolute;overflow:visible}.scene-art{left:var(--scene-left,0px);width:390px;height:var(--scene-height,844px);object-fit:cover;object-position:center top;z-index:-2;clip-path:inset(0 calc(-1 * var(--scene-left,0px)) max(0px,calc(var(--scene-height,844px) - var(--panel-height,844px))));position:absolute;top:0}.chapter-panel .thing{overflow-wrap:normal;width:112px;min-height:44px;padding:7px 6px;font-size:12px;line-height:1.2;transform:none}.thing .slot{text-overflow:ellipsis;height:19px;font-size:9px;line-height:17px}.item-label{white-space:normal}.chapter-panel .hotspot{background:#f3eddfd9;width:108px;height:auto;min-height:76px}.chapter-panel .thing.born{animation:.6s ease-out markdown-arrival}.reading-text{font-family:Georgia,serif;font-size:20px;line-height:1.55}.reading-text p{font-size:inherit;line-height:inherit}.reading-text img{object-fit:contain;border-radius:6px;max-width:100%;max-height:45dvh}.intertitle{text-align:center}.wonder{background:#fff9e9;width:min(94vw,560px);padding:28px}.wonder .reading-text{font-size:21px}.wonder .result-caption{margin:22px 0}.dialog-actions{justify-content:center;margin-top:22px}dialog details{margin-top:24px;font-size:12px}dialog details ul{max-height:40vh;padding-left:16px;overflow:auto}.eyebrow{text-transform:uppercase;letter-spacing:.16em;color:#716858;font-size:11px!important}.chooser{max-width:560px;padding:42px 20px}.chooser h1{letter-spacing:-.03em;margin:20px 0;font:38px/1.13 Georgia,serif}.chooser nav{margin-top:28px}.chooser a{border-radius:10px;padding:20px}.chooser a strong{font:24px Georgia,serif}.chooser a p{color:#666656;margin-bottom:0;font-size:13px}.debug-toggle{right:max(8px,calc((100vw - 390px)/2 + 8px),env(safe-area-inset-right));color:#605b50b3;filter:drop-shadow(0 1px 1px #fffaf0b3);background:0 0;border-radius:0;place-items:center;width:44px;height:44px;padding:10px;display:grid}.debug-toggle svg{width:22px;height:22px}.debug-toggle:hover{color:#35382f}.hud-stack .objective-line{background:#fffaf0e8;border-radius:3px;padding:3px 5px}.objective-overlay{font-size:12px}.chapter-next{bottom:20px}.arrival-divider{z-index:0}.chapter-panel:has(.dragging){z-index:100}.is-dragging .hud-stack:not(.goals-leaving){opacity:1!important}.crowded:after{content:" ";display:block}@keyframes markdown-arrival{0%{background:#ffe3a3;scale:.8;box-shadow:0 0 18px #d58b36}to{scale:1}}@media (prefers-reduced-motion:reduce){.thing.born{animation:none!important}}.chapter-panel .thing{width:calc(112px * var(--card-scale,1));font-size:calc(12px * var(--label-scale,1));min-height:calc(44px * var(--label-scale,1))}.chapter-panel .slot{font-size:calc(9px * var(--label-scale,1));height:calc(19px * var(--label-scale,1));line-height:calc(17px * var(--label-scale,1))}.chapter-panel .hotspot{font-size:calc(11px * var(--label-scale,1))}.scene-art{-webkit-user-drag:none;pointer-events:none}.location-hud .objective-line{box-shadow:none;text-shadow:0 1px 2px #fffaf0cc;background:#fffaf08c}.game-dialog-layer dialog.chapter-popup{flex-direction:column;padding:12px 16px;display:flex;overflow:hidden}.chapter-popup-header{flex:none;justify-content:space-between;align-items:center;margin:-6px -8px 0 0;display:flex}.chapter-popup-header .chapter-close{margin-left:auto}.chapter-popup .reading-text{overscroll-behavior:contain;min-height:0;overflow-y:auto}.chapter-popup .reading-text>:first-child{margin-top:0}.chapter-popup .reading-text>:last-child{margin-bottom:0}.chapter-actions{flex:none;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;display:flex}.chapter-actions button,.popup-home{box-shadow:none;color:#746b5c;background:0 0;border:0;padding:4px 0;font-size:12px}.chapter-encyclopedia,.recovery-action,.popup-home{align-items:center;gap:6px;min-height:44px;text-decoration:none;display:inline-flex}.chapter-popup :is(.chapter-encyclopedia,.recovery-action,.popup-home){gap:3px}.chapter-actions :is(button,a){text-align:left;white-space:nowrap;flex:none}.chapter-actions .chapter-encyclopedia{text-align:right}.chapter-actions:not(.icons-only) .chapter-encyclopedia:nth-child(2){margin-inline-start:auto}.chapter-actions:not(.icons-only):has(.popup-home):has(.chapter-encyclopedia){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);display:grid}.chapter-actions:not(.icons-only):has(.popup-home):has(.chapter-encyclopedia)>:first-child{justify-self:start}.chapter-actions:not(.icons-only):has(.popup-home):has(.chapter-encyclopedia)>:last-child{justify-self:end}.chapter-actions.icons-only{justify-content:center;gap:clamp(8px,3cqw,14px)}.chapter-actions.icons-only :is(button,a){justify-content:center;min-width:44px}.chapter-actions.icons-only :is(.recovery-action,.popup-home) svg{width:20px;height:20px}.chapter-actions.icons-only .chapter-book-icon .open-book{width:22px;height:20px}.chapter-actions.icons-only .popup-action-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.popup-action-icon{flex:none;place-items:center;display:grid}.chapter-book-icon .open-book{filter:saturate(.45);width:20px;height:18px}:is(.recovery-action,.popup-home) svg{flex:none;width:16px;height:16px}.chapter-book-label,:is(.recovery-action,.popup-home)>span{text-underline-offset:3px;-webkit-text-decoration:underline #746b5c66;text-decoration:underline #746b5c66}:is(.chapter-encyclopedia,.recovery-action,.popup-home):hover{color:#35382f}:is(.chapter-encyclopedia,.recovery-action,.popup-home):hover>span{text-decoration-color:currentColor}.ending-actions{grid-template-columns:1fr auto 1fr;align-items:center;display:grid}.ending-actions button{grid-column:2}.ending-actions .popup-home{grid-column:3;justify-self:end}@container game (width<=359px){.game-dialog-layer dialog.chapter-popup{padding-inline:12px}}.goals-leaving{animation:goals-depart var(--goal-exit-duration) ease-out both;pointer-events:none}.goals-leaving *{pointer-events:none!important}.chapter-next.entering{z-index:1;animation:.4s cubic-bezier(.2,.8,.2,1) both arrow-arrive}.chapter-next.entering span{animation-delay:.4s}@keyframes goals-depart{0%,22%{opacity:1}to{opacity:0}}@keyframes arrow-arrive{0%{opacity:0;translate:0 16px;scale:.65}to{opacity:1;translate:0;scale:1}}@media (prefers-reduced-motion:reduce){.goals-leaving,.chapter-next.entering{animation:none}}.open-book{vertical-align:middle;pointer-events:none;width:25px;height:23px;display:inline-block}.reading-indicator{pointer-events:none;opacity:.7;filter:saturate(.3);line-height:0;display:none;position:absolute;top:-8px;left:50%;transform:translate(-50%)}.reading-indicator .open-book{width:12.5px;height:11.5px}.thing.reading-selected .reading-indicator{animation:.18s ease-out book-entrance;display:block}@media (hover:hover){.thing.pressed .reading-indicator{animation:.18s ease-out book-entrance;display:block}}@keyframes book-entrance{0%{opacity:0;translate:0 3px;scale:.75}to{opacity:1;translate:0;scale:1}}@media (prefers-reduced-motion:reduce){.thing:is(.reading-selected,.pressed) .reading-indicator{animation:none}}.game-dialog-layer:has(>dialog.encyclopedia){padding-inline:0}.game-dialog-layer dialog.encyclopedia{--book-spread:0;--book-page-width:min(calc(100cqw - 54px),534px);background:0 0;border:0;border-radius:0;flex-direction:column;width:100%;max-width:none;height:min(84dvh,680px);max-height:calc(100dvh - 28px);padding:0;display:flex;overflow:hidden}.encyclopedia-header{flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:68px;padding:14px 16px 10px;display:flex}.encyclopedia-header .encyclopedia-close,.chapter-popup .chapter-close{background:0 0;border:0;flex:none;place-items:center;width:44px;height:44px;min-height:44px;margin-left:auto;padding:0;font:28px/1 sans-serif;display:grid}.encyclopedia-header h1{margin:0;font:25px/1.2 Georgia,serif}.encyclopedia-pages{isolation:isolate;flex:1;min-height:0;overflow:hidden}.encyclopedia-track{width:calc(2 * var(--book-page-width) + 14px);height:100%;margin-left:calc((100% - var(--book-page-width))/2 - 1px);background:#fff;border:1px solid #c6b99e;border-radius:8px;transition:transform .24s ease-in-out;display:flex;overflow:hidden;transform:translate(0)}.encyclopedia-index,.encyclopedia-detail{background:#fff;flex:1;min-width:0;height:100%;min-height:0;position:relative}.encyclopedia-index{flex-direction:column;display:flex}.encyclopedia .encyclopedia-list{touch-action:pan-y;overflow-anchor:none;scrollbar-gutter:stable;overscroll-behavior:contain;flex:1;min-height:0;margin:0;padding:4px 16px 16px;overflow-y:auto}.encyclopedia-chapter h2{color:#65553e;margin:16px 0 5px;font:17px/1.3 Georgia,serif}.encyclopedia-chapter:first-child h2{margin-top:0}.encyclopedia-chapter ul{margin:0;padding:0 0 0 16px;list-style:none}.encyclopedia-list a{color:inherit;overflow-wrap:anywhere;border-radius:2px;min-height:28px;padding:3px 4px;font-size:14px;line-height:22px;text-decoration:none;display:block}.encyclopedia-list a:hover{text-underline-offset:3px;text-decoration:underline}.encyclopedia-list a[aria-current]{color:#4d3b18;background:#f3eddf}.encyclopedia-detail{flex-direction:column;display:flex}.encyclopedia-spine{z-index:1;pointer-events:none;background:#fff;flex:0 0 12px;position:relative}.encyclopedia-spine:before{content:"";background:linear-gradient(90deg,#0000 0%,#46392406 20%,#46392426 50%,#46392406 80%,#0000 100%);position:absolute;inset:0 -16px}.encyclopedia-spine:after{content:"";background:#4e412d52;width:1px;position:absolute;top:0;bottom:0;left:50%;transform:translate(-50%)}.encyclopedia-detail-toolbar{gap:8px}.encyclopedia-detail-toolbar [data-command=encyclopedia-back]{background:0 0;border:0;min-height:44px;padding:6px 0}.encyclopedia-reading{overscroll-behavior:contain;flex:1;min-height:0;padding:0 20px 18px;overflow-y:auto}.encyclopedia-reading .reading-text{overflow-wrap:anywhere;font-size:19px;line-height:1.5}.encyclopedia-reading .reading-text>:first-child{margin-top:8px}.encyclopedia-placeholder{color:#857b69;margin-top:16px;font:italic 17px/1.5 Georgia,serif}.encyclopedia-pages.show-detail .encyclopedia-track{transform:translateX(calc(-1 * (var(--book-page-width) + 12px)))}@container game (width>=640px){.game-dialog-layer dialog.encyclopedia{--book-spread:1;--book-page-width:calc((min(calc(100cqw - 28px),960px) - 14px)/2)}.encyclopedia-pages .encyclopedia-track,.encyclopedia-pages.show-detail .encyclopedia-track{margin-left:calc((100% - 2 * var(--book-page-width) - 14px)/2);transform:translate(0)}}@media (prefers-reduced-motion:reduce){.encyclopedia-track{transition:none}}.encyclopedia-index[inert] .encyclopedia-list{scrollbar-color:transparent transparent}.encyclopedia-index[inert] .encyclopedia-list::-webkit-scrollbar-thumb{background:0 0}.encyclopedia-index[inert] .encyclopedia-list::-webkit-scrollbar-track{background:0 0}.story-landing{overflow:hidden}.story-start{z-index:3;color:#35382f;background:#fffaf0;border:1px solid #718571;border-radius:8px;min-width:112px;min-height:48px;padding:10px 24px;font:20px/1.3 Georgia,serif;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 9px #302b2533}.chooser img{max-width:100%;height:auto;display:block}.chapter-panel .hotspot:not(.hotspot-icon):is(:hover,:active,.pressed,.possible):not(.will-create,.will-place){outline-offset:2px;box-shadow:none!important;outline:2px dotted #000!important}#app.catalogue-page:has(.story-carousel){background:#000;overflow:hidden}.story-carousel{touch-action:pan-y pinch-zoom;background:#000;place-items:center;display:grid;position:absolute;inset:0}.carousel-frame{--carousel-title-size:clamp(17px, 3.7cqh, 42px);--carousel-title-weight:500;--carousel-title-shadow:none;--carousel-action-size:clamp(10px, 1.5cqh, 13px);--carousel-action-weight:400;--carousel-action-shadow:none;--carousel-action-icon-size:1.05em;--carousel-abstract-size:clamp(12px, 1.75cqh, 16px);--carousel-abstract-weight:400;--carousel-abstract-shadow:0 1px 1px #000e, 0 0 1.5px #000d;--carousel-dot-glow:0 0 5px #000d;--carousel-bar-top:47%;--carousel-bar-inset:clamp(7px, 2.3%, 16px);--carousel-backdrop-color:#0000004f;--carousel-backdrop-top-reach:14px;--carousel-backdrop-top-feather:19px;--carousel-backdrop-bottom-feather:clamp(24px, 5cqh, 40px);--carousel-backdrop-edge-blur:10px;--carousel-settle:.24s;--carousel-arrow-settle:.5s;color:#fff;width:100%;height:100%;position:relative;overflow:hidden;container-type:size}.carousel-slide{position:absolute;inset:0}.carousel-slide.is-settling{transition:transform var(--carousel-settle) cubic-bezier(.22,.7,.27,1)}.carousel-slide.is-arrow-settling{transition-duration:var(--carousel-arrow-settle)}@media (prefers-reduced-motion:reduce){.carousel-slide.is-settling{transition:none}}.carousel-art{object-fit:cover;object-position:center top;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;inset:0}.carousel-panel{top:var(--carousel-bar-top);max-height:calc(100% - var(--carousel-bar-top) - 2cqh);isolation:isolate;flex-direction:column;display:flex;position:absolute;inset-inline:0}.carousel-panel:before{content:"";z-index:-1;pointer-events:none;inset:calc(-1 * var(--carousel-backdrop-top-reach)) var(--carousel-bar-inset) 0;background:linear-gradient(to bottom, transparent, var(--carousel-backdrop-color) var(--carousel-backdrop-top-feather), var(--carousel-backdrop-color) calc(100% - var(--carousel-backdrop-bottom-feather)), transparent);filter:blur(var(--carousel-backdrop-edge-blur));border-radius:24px;position:absolute}.carousel-bar{margin-inline:var(--carousel-bar-inset);text-align:center;background:#30453e;border-radius:clamp(10px,2.5cqh,18px);flex:none;position:relative}.carousel-bar a{color:#fff;padding:5px 49px;align-content:center;gap:0;min-height:clamp(48px,9cqh,78px);padding:2px 49px;text-decoration:none;display:grid}.carousel-bar h2{font-size:var(--carousel-title-size);line-height:1.08;font-weight:var(--carousel-title-weight);text-shadow:var(--carousel-title-shadow);text-wrap:balance;margin:0}.carousel-action{font-size:var(--carousel-action-size);font-weight:var(--carousel-action-weight);text-shadow:var(--carousel-action-shadow);justify-content:center;align-items:center;gap:.35em;line-height:1.15;display:flex}.carousel-action svg{width:var(--carousel-action-icon-size);height:var(--carousel-action-icon-size)}.carousel-arrow{color:#fff;width:44px;height:44px;box-shadow:none;background:0 0;border:0;border-radius:8px;place-items:center;padding:10px;display:grid;position:absolute;top:50%;translate:0 -50%}.carousel-arrow:hover{background:#ffffff20}.carousel-arrow svg{width:25px;height:25px}.carousel-repeat-arrows{z-index:4;pointer-events:none;position:absolute;inset:0}.carousel-repeat-arrows[hidden]{display:none}.carousel-repeat-arrows button{pointer-events:auto;opacity:0;padding:0;position:absolute}.carousel-prev{left:3px}.carousel-next{right:3px}.carousel-dots{z-index:3;left:0;right:0;top:calc(var(--carousel-bar-top) - 32px);justify-content:center;display:flex;position:absolute}.carousel-dots button{box-shadow:none;color:#fff;background:0 0;border:0;place-items:center;width:23px;height:32px;padding:0;display:grid}.carousel-dots button:after{content:"";width:10px;height:10px;box-shadow:var(--carousel-dot-glow);border:1px solid #fff;border-radius:50%}.carousel-dots button[aria-current]:after{background:#fff}.carousel-description{z-index:1;text-align:center;min-height:0;text-shadow:var(--carousel-abstract-shadow);color:#fff;font-weight:var(--carousel-abstract-weight);font-size:var(--carousel-abstract-size);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#fff6 transparent;padding:10px min(5%,28px) 20px;line-height:1.38;position:relative;overflow:auto}.carousel-description p{margin:0 0 .4em}.carousel-description p:last-child{margin-bottom:0}.carousel-description a{color:inherit}.carousel-description img{object-fit:contain;max-width:100%;max-height:15cqh;margin:auto;display:block}#workspace{width:100%;min-width:0;height:100dvh;display:flex;overflow:hidden}#workspace>#app{background:#000;flex:auto;min-width:0}#workspace.editor-open>#app{flex:0 0 390px;min-width:390px}.game-surface,.game-dialog-layer{position:absolute;inset:0}.game-dialog-layer{z-index:50;background:#26372f88;place-items:center;padding:14px;display:grid}.game-dialog-layer[hidden]{display:none}.game-dialog-layer dialog{width:min(100%,470px);max-height:calc(100dvh - 28px);margin:0;position:relative;inset:auto}.game-dialog-layer dialog.wonder{width:min(100%,560px)}#workspace .hud-stack{width:max-content;max-width:var(--hud-width,358px);bottom:calc(var(--frame-top,0px) + max(20px,env(safe-area-inset-bottom)) * var(--hud-scale,1));transform:translateX(-50%) scale(var(--hud-scale,1));transform-origin:bottom;position:absolute}#workspace .objectives{max-height:calc(var(--goals-height,140px) + 24px)}#workspace .chapter-next{bottom:calc(var(--frame-top,0px) + max(20px,env(safe-area-inset-bottom)) * var(--hud-scale,1));transform:translateX(-50%) scale(var(--hud-scale,1));transform-origin:bottom}#workspace .story-start{transform:translate(-50%,-50%) scale(var(--hud-scale,1))}#workspace .debug-toggle{right:max(env(safe-area-inset-right),calc(var(--frame-left,0px) + 8px));top:max(env(safe-area-inset-top),calc(var(--frame-top,0px) + 4px))}.debug-toggle.edit-indicator{color:#fff8ef;filter:none;background:#b63b35;border:1px solid #8a2e2b;border-radius:3px;width:38px;height:38px;padding:8px;top:8px;box-shadow:0 1px 4px #30141044}.edit-indicator svg{width:22px;height:22px}.load-error{overflow-wrap:anywhere;background:#fffaf0;max-width:540px;margin:80px auto;padding:24px}.load-error h1{font:28px Georgia,serif}.load-error button{padding:8px 12px}.artwork-loading{z-index:36;color:#35382f;pointer-events:none;background:#fffaf0;border:1px solid #718571;border-radius:8px;margin:0;padding:8px 12px;position:absolute;bottom:24px;left:50%;transform:translate(-50%)}.draft-warning{z-index:38;color:#96382c;background:#fff4e9;border:1px solid #96382c;max-width:280px;padding:8px;font-size:12px;position:absolute;top:52px;right:12px}@media (width<=899px){#workspace.editor-open>#app{flex:auto;min-width:0}#workspace>.story-editor{display:none}}.mobile-debug{background:#fff;width:min(390px,100vw - 24px);max-height:calc(100dvh - 24px);padding:0}.mobile-debug[open]{flex-direction:column;display:flex}.mobile-debug header{border-bottom:1px solid #e7e7e7;flex:none;align-items:center;gap:12px;padding:8px 12px;display:flex}.mobile-debug h2{flex:1;margin:0;font:22px/1.2 Georgia,serif}.mobile-debug header button{background:0 0;border:0;width:44px;padding:0;font-size:26px}.mobile-debug-chapters{overscroll-behavior:contain;min-height:0;margin:0;padding:0;list-style:none;overflow-y:auto}.mobile-debug-chapters li{margin:0;padding:0}.mobile-debug-chapters button{text-align:left;overflow-wrap:anywhere;width:100%;min-height:44px;box-shadow:none;background:0 0;border:0;border-radius:0;margin:0;padding:10px 16px;display:block}.mobile-debug-chapters button:hover{background:#f0f4f2}.mobile-debug-chapters button[aria-current]{background:#e6edde}.chapter-panel .thing.icon-thing{width:var(--icon-width);height:var(--icon-height);border-radius:0;min-height:0;padding:0;box-shadow:none!important;background:0 0!important;border:0!important;outline:none!important}.icon-stack{pointer-events:none;width:100%;height:100%;display:block;position:relative}.icon-stack img{pointer-events:none;-webkit-user-drag:none;width:100%;height:100%;display:block;position:absolute;inset:0}.icon-thing:after{content:"";pointer-events:none;border-radius:8px;position:absolute;inset:0}.icon-thing.icon-circular:after,.hotspot-icon.hotspot-circular:after{width:min(var(--icon-width), var(--icon-height));height:min(var(--icon-width), var(--icon-height));border-radius:50%;inset:50% auto auto 50%;translate:-50% -50%}.icon-thing:is(.pressed,.possible,.dragging):after{border:2px dotted #fffaf0;box-shadow:0 0 0 1px #142a36bf,0 0 6px #142a36}.icon-thing:is(.will-create,.will-place):after{border:3px dotted #fff1b5;box-shadow:0 0 0 2px #a75a0e,0 0 14px 4px #ffce65}.icon-thing.goal-met .icon-stack{filter:drop-shadow(0 0 4px #e0b54d)}.icon-thing .icon-name,.hotspot-icon .icon-name{color:#fff;width:max-content;max-width:132px;font:calc(12px * var(--label-scale,1))/1.2 Arial, Helvetica, sans-serif;white-space:normal;overflow-wrap:anywhere;text-align:center;pointer-events:none;background:#080d14bf;border:1px solid #fff6;border-radius:5px;padding:3px 6px;display:none;position:absolute;bottom:100%;left:50%;transform:translate(-50%)}.icon-thing:is(.pressed,.possible,.dragging,.will-create) .icon-name{display:block}.icon-thing.newly-created .icon-name{animation:1.7s linear forwards creation-name;display:block}.icon-thing:is(.pressed,.possible,.dragging,.will-create) .icon-name{opacity:1!important}@keyframes creation-name{0%,88.2353%{opacity:1}to{opacity:0}}.icon-thing .reading-indicator{top:0}.chapter-panel .icon-thing.born{animation:.6s ease-out icon-arrival}@keyframes icon-arrival{0%{filter:drop-shadow(0 0 12px #efbd5a);scale:.8}to{scale:1}}@media (prefers-reduced-motion:reduce){.chapter-panel .icon-thing.born{animation:none}}.chapter-panel .hotspot.hotspot-icon{width:var(--icon-width);height:var(--icon-height);min-height:0;padding:0;display:block;box-shadow:none!important;background:0 0!important;border:0!important;outline:none!important}.chapter-panel .hotspot.hotspot-hitbox{width:var(--hit-width);height:var(--hit-height);min-height:0}.hotspot-hitbox>.icon-stack{width:var(--icon-width);height:var(--icon-height);left:calc(50% + var(--art-offset-x) - var(--icon-width)/2);top:calc(50% + var(--art-offset-y) - var(--icon-height)/2);position:absolute}.chapter-panel .hotspot.hotspot-circular{pointer-events:none}.hotspot-circular:before{content:"";width:min(var(--icon-width), var(--icon-height));height:min(var(--icon-width), var(--icon-height));pointer-events:auto;border-radius:50%;position:absolute;top:50%;left:50%;translate:-50% -50%}.hotspot-icon:after{content:"";pointer-events:none;position:absolute;inset:0}.hotspot-icon:is(:hover,:active,.pressed,.possible,.will-create,.will-place):after{box-shadow:none;border:2px dotted #000}.hotspot-icon:is(.will-create,.will-place):after{border:3px solid #fff1b5;box-shadow:0 0 0 2px #a75a0e,0 0 14px 4px #ffce65}.hotspot-icon:is(:hover,:active,.pressed,.possible,.will-create,.will-place) .icon-name{display:block}:where(.story-editor) :is(button,select,a):focus-visible{outline-offset:3px;outline:3px solid #267c79}.story-editor{color:#35382f;text-align:left;isolation:isolate;background:#fffaf0;border-left:1px solid #c6b99e;flex-direction:column;flex:1 1 0;min-width:0;max-width:100%;height:100dvh;font:13px/1.45 system-ui,sans-serif;display:flex;position:relative}.editor-header{flex-wrap:wrap;align-items:center;gap:6px;padding:6px 10px;display:flex}.editor-button{color:#514a3d;text-align:center;cursor:pointer;background:#fffdf7;border:1px solid #c8bba2;border-radius:5px;padding:6px 9px;font:12px/1.4 system-ui,sans-serif;display:inline-block}.editor-button:hover{background:#eee8da;border-color:#a99a80}.editor-button:disabled{opacity:.45;cursor:default}.editor-button:focus-visible{outline-offset:2px;outline:2px solid #267c79}.editor-chapter-navigation{flex:180px;min-width:0;position:relative}.editor-chapter-select{text-align:left;white-space:nowrap;text-overflow:ellipsis;width:100%;padding-right:28px;overflow:hidden}.editor-chapter-select:after{content:"▾";position:absolute;right:10px}.editor-chapter-list{z-index:10;overscroll-behavior:contain;background:#fff;border:1px solid #baac93;border-radius:4px;width:100%;max-height:50dvh;padding:3px;position:absolute;top:calc(100% + 3px);left:0;overflow-y:auto;box-shadow:0 3px 12px #51422b33}.editor-chapter-list button{width:100%;color:inherit;font:inherit;text-align:left;overflow-wrap:anywhere;background:0 0;border:0;border-radius:2px;padding:7px 9px;display:block}.editor-chapter-list button[aria-selected=true]{background:#e6edde}.editor-chapter-list button:hover,.editor-chapter-list button:focus{background:#dcebe3;outline:0}.editor-close{background:0 0;border:0;width:34px;height:34px;padding:0;font-size:25px}.editor-delete{color:#96382c;background:0 0;border-color:#0000;margin-left:auto}.editor-save-status,.editor-preview-status{overflow-wrap:anywhere;margin:0;padding:3px 16px 8px;font-size:11px}.editor-save-status{color:#716858}.editor-save-status[data-state=error]{color:#96382c;background:#fff0e6;font-weight:600}.editor-preview-status{color:#85591d;background:#fff3da;padding-top:7px}.editor-delete-confirmation{background:#fff0e6;border-block:1px solid #deb5a0;padding:10px 16px}.editor-delete-confirmation p{margin:0 0 9px}.editor-delete-confirmation .editor-button+.editor-button{margin-left:7px}.editor-danger{color:#fffaf0;background:#96382c;border-color:#96382c}.editor-danger:hover{color:#fffaf0;background:#77281f}.editor-recoveries{background:#f5f0e5;border-top:1px solid #e0d5c0;padding:6px 16px 10px}.editor-recoveries summary{cursor:pointer;color:#6c634f;font-size:11px}.editor-recovery-controls{flex-wrap:wrap;gap:6px;padding-top:8px;display:flex}.editor-recovery-select{background:#fffdf7;border:1px solid #c8bba2;border-radius:4px;flex:100%;width:100%;min-width:0;padding:5px;font-size:11px}.editor-text{border-top:1px solid #d9ceb8;flex:1 1 0;min-height:120px;overflow:hidden}.story-editor .cm-editor{color:#393b31;background:#fffdf7;height:100%;font:14px/1.65 system-ui,sans-serif}.story-editor .cm-editor.cm-focused{outline:none}.story-editor .cm-scroller{overscroll-behavior:contain;font-family:inherit;overflow:auto}.story-editor .cm-content{caret-color:#267c79;padding:12px 0 48px}.story-editor .cm-line{padding:0 12px 0 5px}.editor-action-anchor{vertical-align:baseline;width:0;height:0;display:inline-block;position:relative}.editor-chapter-checkpoint{left:var(--action-shift,0px);opacity:0;pointer-events:none;position:absolute;bottom:-4px}.cm-chapter-heading:hover .editor-chapter-checkpoint,.cm-chapter-heading.cm-activeLine .editor-chapter-checkpoint,.editor-chapter-checkpoint:focus-visible,.editor-chapter-checkpoint[aria-expanded=true]{opacity:1;pointer-events:auto}.story-editor .cm-gutters{color:#9b8d75;font-variant-numeric:tabular-nums;background:#f7f2e7;border-right:1px solid #e8dfcf;font-size:10px}.story-editor .cm-lineNumbers .cm-gutterElement{padding-right:6px}.story-editor .cm-activeLine,.story-editor .cm-activeLineGutter{background:#eadfc72e}.story-editor .cm-selectionBackground,.story-editor .cm-focused .cm-selectionBackground{background:#b8d9d4!important}.story-editor .cm-cursor{border-left-color:#267c79}.story-editor .cm-tooltip{color:#35382f;background:#fffaf0;border:1px solid #c6b99e;font:12px/1.45 system-ui,sans-serif;box-shadow:0 3px 12px #51422b22}.story-editor .cm-tooltip-lint{max-width:min(420px,80vw);max-height:min(360px,50dvh);overflow-y:auto}.story-editor .cm-diagnostic{padding:7px 10px 7px 9px}.story-editor .cm-diagnosticSource{color:#7e705c}.story-editor .cm-search{background:#f3eddf;padding:7px;font-size:12px}.story-editor .cm-search.editor-search{padding:7px 28px 7px 8px}.editor-search-row{flex-wrap:wrap;align-items:center;gap:5px;display:flex}.editor-search-row+.editor-search-row{margin-top:5px}.story-editor .editor-search input,.story-editor .editor-search button,.story-editor .editor-search label{margin:0}.story-editor .editor-search .cm-textfield{flex:140px;width:140px;min-width:100px;padding:5px 7px}.editor-search-count{color:#6c634f;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:center;min-width:65px}.editor-search-row label{align-items:center;gap:4px;display:inline-flex}.editor-search-row .editor-button{padding:4px 7px}.story-editor .editor-search button[name=close]{font-size:22px;line-height:1;top:4px;right:5px}.story-editor .cm-story-reference,.story-editor .cm-story-reference *{color:#0451a5}.story-editor .cm-story-note,.story-editor .cm-story-note *{color:#74746d;font-style:italic}.cm-symbol-link{color:#0451a5;cursor:pointer;background:#def8ff;text-decoration:underline;text-decoration-thickness:2px}.editor-image-hover{max-width:min(440px,65vw);padding:8px}.editor-image-hover img{object-fit:contain;max-width:min(420px,60vw);max-height:min(300px,40dvh);display:block}.editor-image-caption,.editor-image-status{overflow-wrap:anywhere;margin:5px 0 0;font-size:11px}.editor-image-status{color:#74746d}.editor-symbol-hover{width:max-content;max-width:min(540px,70vw);max-height:50dvh;padding:10px 12px;overflow:auto}.editor-symbol-hover h3{overflow-wrap:anywhere;margin:0;font-size:14px}.editor-symbol-kind{color:#7e705c;font-size:11px}.editor-symbol-hover h4{margin:10px 0 4px;font-size:11px}.editor-symbol-description{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.editor-symbol-properties{margin:8px 0;padding-left:18px}.editor-symbol-location{text-align:left;overflow-wrap:anywhere;background:0 0;border:0;width:100%;padding:4px 3px;font-size:11px;display:block}.editor-symbol-actions{gap:6px;margin-top:10px;display:flex}.editor-references{color:#393b31;background:#f3eddf;font:12px/1.4 system-ui,sans-serif}.editor-references-header{align-items:center;gap:8px;padding:5px 9px;display:flex}.editor-references-header h3{overflow-wrap:anywhere;flex:1;margin:0;font-size:12px}.editor-references-close{background:0 0;border:0;padding:0 3px;font-size:22px;line-height:1}.editor-reference-list{overscroll-behavior:contain;max-height:23dvh;margin:0;padding:0 7px 7px;list-style:none;overflow-y:auto}.editor-reference-list li{margin:0;padding:0}.editor-reference{text-align:left;background:0 0;border:0;border-radius:2px;width:100%;margin:0;padding:4px 6px;display:block}.editor-reference-location{color:#7e705c;font-size:10px;display:block}.editor-reference-excerpt{overflow-wrap:anywhere;font:12px/1.5 system-ui,sans-serif;display:block}.editor-reference-empty{color:#7e705c;padding:8px!important}.story-editor .cm-textfield{max-width:100%;font:inherit;background:#fffdf7;border:1px solid #c8bba2;border-radius:3px}.editor-diagnostics{background:#f7f1e6;border-top:1px solid #c6b99e;flex-direction:column;flex:0 auto;min-height:0;max-height:31dvh;display:flex}.editor-diagnostics-heading{color:#72624b;flex:none;margin:0;padding:9px 14px;font-size:11px;font-weight:600}.editor-diagnostics-list{overscroll-behavior:contain;min-height:0;padding:0 7px 7px;overflow-y:auto}.editor-diagnostic{text-align:left;overflow-wrap:anywhere;background:#fffaf0;border:0;border-left:3px solid #b58b23;border-radius:2px;width:100%;margin:0;padding:4px 7px;font-size:11px;display:block}.editor-diagnostic[data-severity=error]{border-left-color:#bd4639}.editor-diagnostic[data-current-line=true]{background:#edf3e8}.editor-diagnostic[data-active=true]{background:#dcebe3;box-shadow:inset 0 0 0 1px #96b6a6}.editor-diagnostic-entry{background:#fffaf0;margin-bottom:2px}.editor-diagnostic-row{position:relative}.editor-diagnostic-row>.editor-action-anchor{position:absolute}.editor-diagnostic-fix{margin:0;position:absolute;bottom:0;left:0}.editor-related-locations{margin:0;padding:2px 7px 5px 29px;font-size:11px;line-height:1.35;list-style:outside}.editor-related-locations[hidden]{display:none}.editor-related-locations li{margin:0;padding:0}.editor-related-location{text-align:left;overflow-wrap:anywhere;background:0 0;border:0;border-radius:2px;padding:1px 2px;font-size:11px;line-height:1.35}.editor-hover-diagnostic{text-align:left;font:inherit;background:0 0;border:0;padding:0}.editor-diagnostic-fix,.editor-source-fix,.editor-chapter-checkpoint{color:#00b8e6;cursor:pointer;background:0 0;border:0;border-radius:3px;flex:none;width:22px;height:22px;padding:2px;line-height:1}.editor-diagnostic-fix:before,.editor-source-fix:before,.editor-chapter-checkpoint:before{content:"";--bulb-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5a6 6 0 1 1 7 0c-1 .8-1.5 1.8-1.5 2.5h-4c0-.7-.5-1.7-1.5-2.5ZM9 20h6m-5 2h4'/%3E%3C/svg%3E");width:18px;height:18px;-webkit-mask:var(--bulb-icon) center / contain no-repeat;-webkit-mask:var(--bulb-icon) center / contain no-repeat;mask:var(--bulb-icon) center / contain no-repeat;background:currentColor;display:inline-block}.editor-diagnostic-fix:hover:not(:disabled),.editor-source-fix:hover:not(:disabled),.editor-chapter-checkpoint:hover{color:#009dc8;background:#def8ff}.editor-source-fix{z-index:1;left:calc(var(--action-shift,0px) + var(--fix-column,0) * 22px);background:#fffdf7e8;margin:0;position:absolute;bottom:-4px}.editor-diagnostic-fix:focus-visible,.editor-source-fix:focus-visible,.editor-chapter-checkpoint:focus-visible{outline-offset:1px;outline:2px solid #00b8e6}.editor-diagnostic-fix:disabled,.editor-source-fix:disabled{opacity:.4;cursor:wait}.editor-fix-menu{z-index:1000;background:#fffaf0;border:1px solid #baac93;border-radius:4px;width:max-content;min-width:140px;max-width:min(350px,100vw - 16px);max-height:calc(100dvh - 16px);padding:3px;position:fixed;overflow-y:auto;box-shadow:0 3px 12px #51422b33}.editor-fix-heading{white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid #ded4c0;margin:0 0 3px;padding:4px 7px 6px;font-size:12px;font-weight:600;overflow:hidden}.editor-fix-option{text-align:left;background:0 0;border:0;width:100%;padding:4px 7px;display:block}.editor-fix-option:disabled{opacity:.6;cursor:default}.editor-fix-reason{color:#82725b;font-size:10px;display:block}.tutorial-overlay{z-index:34;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden;pointer-events:none!important}.tutorial-overlay *{pointer-events:none!important}.tutorial-overlay>svg{fill:none;stroke-linecap:round;stroke-linejoin:round;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.tutorial-path-edge{stroke:#fffaf0;stroke-width:5px;opacity:.8}.tutorial-path{stroke:#305b59;stroke-width:2px;stroke-dasharray:5 6}.tutorial-arrow{stroke:#305b59;stroke-width:2.5px;filter:drop-shadow(0 0 2px #fffaf0)}.tutorial-target{stroke:#305b59;stroke-width:2px;fill:none;filter:drop-shadow(0 0 2px #fffaf0)}.tutorial-overlay:not([data-tutorial=drag]) .tutorial-target{stroke:#946918}.tutorial-goals-target .objective-line{animation:2.6s ease-in-out infinite tutorial-goals-pulse}@keyframes tutorial-goals-pulse{0%,35%,to{background-color:#fffaf0e8;box-shadow:0 0 10px #fffaf000}12%{background-color:#fff;box-shadow:0 0 10px #fffaf066}}.tutorial-ghost{filter:drop-shadow(0 3px 5px #17312a55);position:absolute;top:0;left:0}.tutorial-overlay .tutorial-copy{transform-origin:0 0;flex-direction:column;justify-content:center;display:flex;outline:none!important;margin:0!important;transition:none!important;animation:none!important;position:static!important}.tutorial-label{width:max-content;max-width:min(18rem,var(--label-room,calc(100% - 16px)));border:1px solid #ae812c;--label-shadow:0 0 5px 1px #00000052;color:#302000;box-shadow:var(--label-shadow);text-align:center;text-wrap:balance;background:#fff3d1;border-inline-start:3px solid #dba32d;border-radius:3px;padding:4px 8px;font-size:12px;line-height:1.4;position:absolute;top:0;left:0}@media (prefers-reduced-motion:no-preference){.tutorial-label{animation:5.2s ease-in-out infinite tutorial-label-pulse}}@keyframes tutorial-label-pulse{0%,15.4%,to{box-shadow:0 0 0 0 #ffd24a00,0 0 0 0 #ffc94d00,var(--label-shadow)}3.4%{box-shadow:0 0 0 2px #ffd24a,0 0 8px 2px #ffc94d99,var(--label-shadow)}}.tutorial-gesture{width:0;height:0;position:absolute;top:0;left:0}.tutorial-gesture>svg{filter:drop-shadow(0 1px 2px #17282066);width:64px;height:64px;position:absolute;top:-20px;left:-20px;overflow:visible}.tutorial-contact{fill:#fffaf055;stroke:#fffaf0;stroke-width:2.5px;transform-origin:0 0;transition:transform .18s,fill .18s}.tutorial-cursor{fill:#fffaf0;stroke:#284b49;stroke-width:1.5px;transform-origin:0 0;transition:transform .18s;display:none}.tutorial-hand{fill:#fffaf0;stroke:#284b49;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;display:none}.tutorial-ripple{fill:#305b5910;stroke:#305b59;stroke-width:2px;vector-effect:non-scaling-stroke;transform-origin:0 0;display:none}[data-modality=mouse] .tutorial-cursor{display:block}[data-modality=mouse] .tutorial-contact{stroke:#305b59;fill:none;opacity:.7}.tutorial-press .tutorial-contact{fill:#fffaf099;transform:scale(.65)}.tutorial-press .tutorial-cursor{transform:scale(.88)}.tutorial-tapping .tutorial-contact{stroke:#305b59;fill:none}.tutorial-tapping:is([data-modality=mouse],[data-modality=touch],[data-modality=pen]) .tutorial-contact{display:none}.tutorial-tapping:is([data-modality=touch],[data-modality=pen]) .tutorial-hand{display:block}.tutorial-tapping .tutorial-pointer{transform-origin:0 0;animation:2.6s infinite tutorial-tap}.tutorial-tapping .tutorial-ripple{animation:2.6s infinite tutorial-ripple;display:block}@keyframes tutorial-tap{0%{opacity:0;animation-timing-function:cubic-bezier(.2,0,0,1);transform:scale(1.08)}7%{opacity:1;animation-timing-function:cubic-bezier(.4,0,1,1);transform:scale(1)}12%{opacity:1;animation-timing-function:cubic-bezier(0,0,.2,1);transform:scale(.9)}19%,25%{opacity:1;animation-timing-function:ease-out;transform:scale(1)}36%,to{opacity:0;transform:scale(1.04)}}@keyframes tutorial-ripple{0%,11.99%{opacity:0;transform:scale(.3)}12%{opacity:.85;animation-timing-function:cubic-bezier(0,0,.2,1);transform:scale(.3)}31%,to{opacity:0;transform:scale(1)}}.tutorial-overlay[data-tutorial=encyclopedia] .tutorial-pointer{animation-name:tutorial-double-tap}.tutorial-overlay[data-tutorial=encyclopedia] .tutorial-ripple{animation-name:tutorial-double-ripple}@keyframes tutorial-double-tap{0%{opacity:0;transform:scale(1.08)}6%,16%,25%{opacity:1;transform:scale(1)}11%,20%{opacity:1;animation-timing-function:ease-out;transform:scale(.85)}40%,to{opacity:0;transform:scale(1.04)}}@keyframes tutorial-double-ripple{0%,10.99%,19.99%{opacity:0;transform:scale(.3)}11%,20%{opacity:.85;animation-timing-function:ease-out;transform:scale(.3)}19%{opacity:0;transform:scale(.8)}39%,to{opacity:0;transform:scale(1)}}.tutorial-interacting .tutorial-label,.tutorial-interacting>svg,.tutorial-interacting .tutorial-ghost,.tutorial-interacting .tutorial-gesture,.tutorial-still .tutorial-ghost,.tutorial-still .tutorial-gesture{display:none}@media (prefers-reduced-motion:reduce){.tutorial-gesture *{transition:none!important;animation:none!important}.tutorial-goals-target .objective-line{background-color:#fff;animation:none}}
