#scene-objects .after-hours-trigger{right:5%;top:12%;width:15%;height:10%;min-width:48px;min-height:52px;padding:0;border:1px solid #c991ee55;border-radius:4px;background:#291539 url('assets/after-hours-mirror.jpg') center 40%/cover no-repeat;box-shadow:0 0 16px #bf68ef60;animation:window-light 7s ease-in-out infinite;cursor:pointer;overflow:visible}
#scene-objects .after-hours-trigger span{position:absolute;top:100%;right:0;white-space:nowrap;font:500 14px/1.3 'DM Sans',sans-serif;padding:5px 7px;border:0;border-radius:4px;background:#110919e8;opacity:1;transform:translateY(5px);transition:opacity .2s;color:#ead6f5}
#scene-objects .after-hours-trigger:hover span,#scene-objects .after-hours-trigger:focus-visible span{opacity:1}
@keyframes window-light{0%,46%,52%,100%{box-shadow:0 0 12px #a951de65;filter:brightness(.8)}48%,50%{box-shadow:0 0 30px #deb0ffcc;filter:brightness(1.4)}72%{box-shadow:0 0 20px #c378f399;filter:brightness(1.05)}}
#after-hours-dialog{position:fixed;inset:0;margin:auto;width:min(1040px,calc(100vw - 24px));height:min(840px,calc(100svh - 24px));max-width:none;max-height:none;padding:0;border:1px solid #a776bf50;border-radius:14px;background:#100a16;color:#f5ebfa;overflow:auto;box-shadow:0 25px 120px #000c}
#after-hours-dialog::backdrop{background:#050208ed;backdrop-filter:blur(10px)}
.after-hours-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.85fr);min-height:100%;align-items:center}.after-hours-screen{position:relative;background:#07040b;align-self:stretch;min-height:400px;overflow:hidden}.after-hours-screen video{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}.after-hours-copy{padding:clamp(26px,4vw,48px)}.after-hours-copy .eyebrow{font-size:14px;line-height:1.5;letter-spacing:.16em;color:#cfa1ea}.after-hours-copy h1{font:600 clamp(36px,5vw,60px)/1.03 'Barlow Condensed',sans-serif;margin:16px 0 20px}.after-hours-copy h1 em{color:#d9aff4;font-style:normal}.after-hours-copy h2{font:600 28px/1.15 'Barlow Condensed',sans-serif;margin:12px 0}.after-hours-copy p{font-size:17px;line-height:1.65;color:#d8c5e3}.after-hours-copy .after-hours-small{font-size:14px;color:#b6a0c2}#after-hours-caption{position:absolute;bottom:24px;left:16px;right:16px;z-index:2;background:#0e0718dc;padding:12px 16px;border-radius:8px;text-align:center;color:#f3e7fa;font-size:17px;line-height:1.5;pointer-events:none}#after-hours-caption:empty{display:none}
#after-hours-close{position:absolute;right:12px;top:12px;z-index:4;width:44px;height:44px;border-radius:50%;border:1px solid #ba8bd258;background:#130a1ae8;color:white;font-size:28px;cursor:pointer}.after-hours-controls{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 12px}.after-hours-controls button{font-size:16px;min-height:44px}#after-hours-result{border-top:1px solid #bc84d84d;margin-top:26px;padding-top:22px}#after-hours-result[hidden]{display:none}#after-hours-result-title{color:#e6baff}#after-hours-leave{margin-top:14px;min-height:48px}.after-hours-finished:not(.after-hours-familiar) .after-hours-screen:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#09050d88,transparent 65%);animation:afterhours-caught .35s ease both;pointer-events:none}@keyframes afterhours-caught{from{opacity:0}to{opacity:1}}.after-hours-familiar .after-hours-screen{box-shadow:inset 0 0 60px #b8853c22}
@media(max-width:650px){#scene-objects .after-hours-trigger{right:10%;width:15%;height:9%;top:12%}.after-hours-layout{display:flex;flex-direction:column;align-items:stretch}.after-hours-screen{height:58svh;min-height:320px;flex:none}.after-hours-copy{padding:24px}.after-hours-copy h1{font-size:36px;margin:10px 0}.after-hours-copy .after-hours-small{margin-bottom:0}#after-hours-caption{font-size:16px;bottom:12px}.after-hours-copy h2{font-size:25px}.after-hours-controls{margin-top:14px}.after-hours-finished .after-hours-copy{scroll-margin-top:20px}}
@media(prefers-reduced-motion:reduce){#scene-objects .after-hours-trigger{animation:none}.after-hours-finished .after-hours-screen:after{animation:none}}

.menu-dialog nav .after-hours-entry{appearance:none;background:none;color:inherit;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:.7rem .2rem;font:inherit;font-size:17px;line-height:1.45;min-height:44px;cursor:pointer}.menu-dialog nav .after-hours-entry:hover{color:#d7a5ff}
#world-paths nav .after-hours-entry{appearance:none;display:block;text-align:left;font:inherit;color:inherit;padding:12px 16px;border:1px solid #c28bd35c;border-radius:8px;background:#271536;cursor:pointer}#world-paths nav .after-hours-entry:hover,#world-paths nav .after-hours-entry:focus-visible{background:#432253;border-color:#d6a4f0}.after-hours-entry:focus-visible,#after-hours-again:focus-visible{outline:2px solid #e2b8ff;outline-offset:3px}.after-hours-result-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:16px}.after-hours-result-actions button{min-height:48px;font-size:16px}#after-hours-leave{margin-top:0}#after-hours-discoveries{color:#dec0ef}
@media(max-width:999px){#world-paths nav .after-hours-entry{padding:12px 6px;text-align:center;min-height:56px;display:grid;place-items:center}}

.after-hours-share-actions{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:20px;padding-top:12px;border-top:1px solid #bc84d82b}.after-hours-share-actions .quiet{min-height:44px;font-size:16px;display:inline-flex;align-items:center;cursor:pointer}#after-hours-caption-copy{width:100%;min-height:170px;background:#090510;color:#f5ebfa;border:1px solid #bc84d84d;border-radius:8px;padding:12px;font:16px/1.5 'DM Sans',sans-serif}#after-hours-caption-copy[hidden]{display:none}#after-hours-share-status:empty{display:none}

/* Keep real artwork visible until the browser presents the new scene. */
#after-hours-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1;background:#07040b;pointer-events:none}
.after-hours-frame-ready #after-hours-poster{visibility:hidden}
.after-hours-finished .after-hours-screen:after{z-index:1}
#after-hours-dialog{overscroll-behavior:contain}
@media(max-width:650px){.after-hours-finished .after-hours-screen{height:30svh;min-height:180px}.after-hours-finished .after-hours-copy{padding-top:16px}.after-hours-finished .after-hours-controls{display:none}.after-hours-finished #after-hours-result{margin-top:14px;padding-top:12px}}

/* Stable picture size: ending a scene reveals text without shrinking the film. */
#after-hours-dialog{scrollbar-gutter:stable}.after-hours-share-actions{margin:12px 0;padding:0;border:0;gap:8px}.after-hours-share-actions>*{border:1px solid #c49add55!important;border-radius:10px;padding:10px 12px!important;min-height:46px;font-size:14px!important;text-align:center}.after-hours-share-actions #after-hours-share{background:#dcb4f4;color:#21102c;font-weight:700}.after-hours-direct-actions{font-size:13px;opacity:.85}#after-hours-share-status{margin:6px 0}.after-hours-copy .after-hours-small{line-height:1.45}@media(max-width:650px){.after-hours-screen,.after-hours-finished .after-hours-screen{height:46svh;min-height:260px;max-height:460px}.after-hours-copy,.after-hours-finished .after-hours-copy{padding:18px}.after-hours-copy h1{font-size:30px}.after-hours-copy .eyebrow{font-size:11px;margin:0}.after-hours-copy h2{font-size:23px}.after-hours-share-actions #after-hours-share{flex:1 1 45%}.after-hours-share-actions #after-hours-download{flex:1 1 45%}.after-hours-share-actions #after-hours-copy{flex:1 1 100%}#after-hours-close{position:sticky;float:right;margin:10px 10px -54px 0;top:10px}.after-hours-copy #after-hours-result{margin-top:14px;padding-top:12px}}
