html,body{height:100%;width:100%;margin:0;overflow:hidden}body{display:grid;grid-template-rows:auto minmax(0,1fr);align-items:stretch;height:var(--ctx-height,100dvh);max-height:var(--ctx-height,100dvh);background:#f4f0e7;color:#302b23;font:18px/1.5 Georgia,serif}body>*{max-width:none;min-width:0}button{font-family:system-ui,sans-serif;cursor:pointer}.ctx-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 12px;border:0;background:#f4f0e7}.ctx-header>div{display:flex;gap:6px;align-items:center}.ctx-header button{font-size:13px;min-height:36px;padding:6px 9px;border:1px solid #c9c0b2;background:#fffaf1;border-radius:10px}.ctx-header #story-title{display:block!important;font-size:16px;text-align:center;line-height:1.2;color:#694122}.ctx-header #story-title small{display:none}#ctx-profile{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ctx-shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;width:min(960px,100%);margin:0 auto;padding:0 12px 9px;min-height:0;gap:0}#ctx-scene{position:relative;overflow:hidden;border-radius:15px;background:#28223b}#pic:not(.timo-enlarged){position:relative;width:100%;height:clamp(150px,31dvh,260px);max-height:none;aspect-ratio:auto;border:0}.timo-scene{height:100%}.ctx-hotspot{position:absolute;z-index:3;border:0;background:transparent;border-radius:12px;min-height:44px;min-width:44px;transform:translate(-8%,-4%);padding:0}.ctx-hotspot:focus-visible,.ctx-hotspot:hover{outline:2px solid #f7dc92;box-shadow:0 0 20px #f7dc9280;background:#fff3c920}#ctx-scene-caption{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:8px 12px;color:#fff;background:linear-gradient(transparent,#110c1bba);pointer-events:none;font:600 15px/1.2 system-ui}#ctx-zoom{position:absolute;top:8px;right:8px;z-index:5;min-width:36px;min-height:36px;background:#201b29cb;color:#fff;border:1px solid #fff6;border-radius:9px;font-size:18px}#ctx-exit{pointer-events:auto;border:1px solid #ffffff70;background:#221a16c9;color:#fff;padding:5px 10px;border-radius:9px;font:13px system-ui}#ctx-interaction{padding:9px 0 8px;border-bottom:1px solid #d5cbbc}#ctx-room-label{font:600 11px/1.3 system-ui;color:#6c665d;letter-spacing:.05em;text-transform:uppercase;margin-bottom:5px}.ctx-items{display:flex;gap:7px;flex-wrap:wrap}.ctx-object{display:flex;align-items:center;gap:7px;padding:5px 10px;min-height:44px;border:1px solid #d3c7b3;border-radius:11px;background:#fffaf1;color:#3b3025;font:14px/1.2 system-ui}.ctx-object[aria-pressed=true]{background:#eee0bf;border-color:#96793d}.ctx-item-icon{display:block;flex:none;width:26px;height:26px;background-repeat:no-repeat;background-image:url(props.png);background-size:400% 300%}.ctx-bruma-icon{background-image:url(cast.png);background-size:200% 200%;background-position:100% 0;width:26px;height:31px}.ctx-selection{display:flex;flex-wrap:wrap;gap:7px;align-items:center;min-height:42px;padding-top:7px}.ctx-selection>strong{font:600 13px system-ui;color:#66543d;min-width:65px}.ctx-action{display:inline-flex;gap:7px;align-items:center;border:1px solid #b6a17c;border-radius:10px;background:#fffaf1;color:#3d3225;font:600 14px/1.2 system-ui;min-height:40px;padding:7px 11px}.ctx-action.primary{background:#35564b;border-color:#35564b;color:white}.ctx-symbol{font-size:19px;line-height:1}.ctx-idle{font:13px/1.4 system-ui;color:#756b5f;padding-top:7px;margin:0}#ctx-conversation{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0}#ctx-chat-head{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:6px 1px;color:#746759;font:12px system-ui}#ctx-chat-head button{border:0;background:none;font-size:12px;color:#67573c;padding:3px}#log{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 8px 4px 1px;scrollbar-gutter:stable;font-size:19px;line-height:1.55}#log p{margin:0 0 12px}#log>.intro:first-child{display:none}#log .you{display:block;width:max-content;max-width:100%;border-radius:8px;background:#e8e3d8;color:#706357;font:13px/1.4 system-ui;padding:4px 8px;margin:5px 0 8px}#log button.w{border:0;padding:0;min-height:0;background:none;font:inherit;color:#70502e}#bar{padding:7px 0 0;gap:7px;border-top:1px solid #d5cbbc}#in{min-height:43px;font:16px/1.3 system-ui;padding:9px 11px;border:1px solid #c7bba8;border-radius:11px;background:#fffaf1;color:#302b23}#go{min-height:43px;min-width:45px;padding:8px 13px;border-radius:11px;font-size:20px;background:#35564b;border-color:#35564b;color:white}#lg,#chips,#guide,#ov{display:none!important}#ctx-journal,#ctx-bag-dialog{padding:16px;width:min(650px,calc(100% - 22px));max-height:calc(var(--ctx-height,100dvh) - 24px);border:1px solid #c5b89e;border-radius:15px;background:#fffaf1;color:#302b23}#ctx-journal::backdrop,#ctx-bag-dialog::backdrop{background:#15111bb0}.ctx-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.ctx-dialog-head h2{margin:0;font-size:20px}.ctx-dialog-head button{min-width:35px;min-height:35px;padding:4px;font-size:20px}#ctx-journal-list{padding-left:25px;max-height:calc(var(--ctx-height,100dvh) - 125px);overflow:auto;font-size:18px}#ctx-journal-list li{padding:8px 2px;border-bottom:1px solid #ded7c9;white-space:pre-line}#ctx-bag-list{padding-top:14px}#ctx-notice{font:13px/1.4 system-ui;color:#67573c;margin:4px 0 0}#ctx-prototype{color:#817366;font:11px system-ui;text-align:center}#ts-game-menu{font-size:16px;max-height:calc(var(--ctx-height,100dvh) - 20px)}
@media(max-width:600px){.ctx-header{gap:5px;padding:5px 7px}.ctx-header #story-title{font-size:13px}.ctx-header button{padding:5px 7px;min-height:34px}.ctx-header #ctx-profile{max-width:86px;font-size:12px}#ctx-shell{padding:0 7px 6px}#pic:not(.timo-enlarged){height:clamp(110px,20dvh,175px)}#ctx-interaction{padding:7px 0 5px}.ctx-items{gap:5px}.ctx-object{font-size:13px;padding:4px 7px;gap:4px;min-height:41px}.ctx-item-icon{width:21px;height:25px}.ctx-action{min-height:40px;padding:6px 9px;font-size:13px}.ctx-selection{gap:5px;padding-top:5px}.ctx-selection>strong{min-width:0;font-size:12px}#log{font-size:18px;line-height:1.5}.ctx-idle{font-size:12px}#ctx-scene-caption{font-size:13px;padding:7px 9px}#ctx-room-label{font-size:10px}#ctx-prototype{display:none}}
@media(max-height:500px) and (orientation:landscape){#ctx-shell{width:100%;grid-template-columns:minmax(200px,40%) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:0 10px}#ctx-scene{grid-column:1;grid-row:1/3}#pic:not(.timo-enlarged){height:100%;min-height:120px}#ctx-interaction{grid-column:2;grid-row:1;padding-top:2px}#ctx-conversation{grid-column:2;grid-row:2}#bar{grid-column:1/-1;grid-row:3}.ctx-selection{padding-top:4px}.ctx-object{min-height:34px;padding:3px 6px}.ctx-action{min-height:34px;padding:5px 8px}.ctx-header button{min-height:28px}.ctx-header{padding-block:3px}#ctx-room-label,#ctx-prototype,.ctx-idle{display:none}#ctx-chat-head{padding:3px 0}}

#ctx-chat-head>div{display:flex;align-items:center;gap:6px}#ctx-chat-head button{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:4px 6px}#ctx-chat-head svg,.ctx-symbol svg{display:block;width:20px;height:20px}.ctx-symbol{display:inline-flex}

@media(max-height:520px) and (orientation:portrait){#pic:not(.timo-enlarged){height:64px;min-height:0}#ctx-interaction{padding:4px 0}#ctx-room-label,.ctx-selection>strong{display:none}.ctx-object{min-height:32px;padding:3px 6px;font-size:12px}.ctx-action{min-height:34px;padding:4px 7px;font-size:12px}.ctx-selection{padding-top:4px}.ctx-header{padding-block:3px}.ctx-header button{min-height:29px}#ctx-chat-head{padding:3px 0}.ctx-item-icon{width:18px;height:22px}}

.ctx-overview-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}#ctx-room-label{margin:0;font-size:12px;text-transform:none;letter-spacing:0}#ctx-directions{display:flex;gap:4px}.ctx-direction{min-width:33px;min-height:32px;padding:4px 7px;font:600 13px system-ui;border:1px solid #cfc5b6;border-radius:8px;background:#eee9e0;color:#8b8479}.ctx-direction.available{background:#35564b;color:#fff;border-color:#35564b}.ctx-direction:disabled{opacity:.5;cursor:default}#ctx-exits{display:flex;align-items:center;gap:5px;margin-top:5px;font:12px system-ui;color:#736654}.ctx-exit-choice{padding:3px 8px;min-height:28px;border:1px solid #c5b89e;border-radius:8px;background:#fffaf1;color:#35564b;font:600 12px system-ui}#ctx-exit{display:none}@media(max-height:520px){.ctx-overview-head{margin-bottom:3px}.ctx-direction{min-height:27px;min-width:29px;padding:3px 6px}#ctx-room-label{display:block}#ctx-exits{margin-top:3px}.ctx-exit-choice{min-height:25px}}

#ctx-interaction{max-height:32dvh;overflow-y:auto;overscroll-behavior:contain}.ctx-hotspot{max-width:100%;max-height:100%}

/* Keep actors readable in the normal scene; zoom retains its original proportions. */
#pic:not(.timo-enlarged) .timo-hero{width:var(--ctx-timo-size,21%)}
#pic:not(.timo-enlarged) .timo-scene>[data-art="cast-1"]{width:var(--ctx-bruma-size,23%)!important}

/* Show the complete celebration, including the friends, in every scene shape. */
.timo-victory{background:#21162c}.timo-victory .timo-backdrop{object-fit:contain}
