:root{font-family:'Atkinson Hyperlegible',Arial,sans-serif;color:#f6f2e8;background:#0b1420;font-size:18px}*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,select{font:inherit}button{background:#20364b;color:#f6f2e8;border:1px solid #8c784e;border-radius:6px;min-height:44px;padding:9px 16px;cursor:pointer;transition:background .18s}button:hover:not(:disabled){background:#31516c;border-color:#f1d69a}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8bdfff;outline-offset:3px}.primary{background:#19648b;border-color:#27b7ff;font-weight:bold}.eyebrow{font-size:.78em;color:#d8b46a;text-transform:uppercase;letter-spacing:.2em;font-weight:bold}h1,h2,h3{font-family:Cinzel,Georgia,serif;line-height:1.18}h1{font-size:clamp(2rem,4vw,4rem);margin:.3em 0}h2{font-size:clamp(1.3rem,2.2vw,2rem)}p{line-height:1.55}.titlepage{min-height:100svh;display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:4vw;padding:5vw;position:relative;background:radial-gradient(circle at 20% 60%,#29465d,#0b1420 58%)}.title-cover{height:min(78vh,780px);border:8px solid #d8b46a;background:#142334;box-shadow:0 25px 75px #0009;overflow:hidden}.title-cover img{width:100%;height:100%;object-fit:cover}.titlecopy{max-width:760px}.titlecopy h2{color:#d8b46a}.titlecopy small{color:#b8c5d1;line-height:1.8}.title-actions{display:flex;flex-wrap:wrap;gap:12px;margin:32px 0}.title-actions button{min-width:130px}.game{min-height:100svh;display:flex;flex-direction:column;position:relative;overflow:hidden;background:#0b1420}.game-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 22px;background:#0b1420;border-bottom:1px solid #746445;z-index:4;font-weight:bold;color:#d8b46a}.game-top small{display:block;color:#b8c5d1;font-size:.64em;letter-spacing:.24em}.game-top div{display:flex;gap:7px;flex-wrap:wrap}.game-top button{font-size:.8em;min-height:38px;padding:5px 9px}.scene-wrap{position:relative;flex:1;min-height:480px;width:100%;overflow:hidden;background:#101e29}.scene-art{width:100%;height:100%;position:absolute;inset:0;overflow:hidden;cursor:crosshair}.scene-art>svg{width:100%;height:100%;display:block;position:absolute;inset:0}.scene-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#060c142c,transparent 40%,#060c142c),linear-gradient(0deg,#060c1470,transparent 27%)}.scene-photo{position:absolute;opacity:.48;border:3px solid #ab9363;box-shadow:0 10px 25px #0009;object-fit:cover;filter:saturate(.7)}.workshop{left:38%;top:16%;width:23%;height:30%}.discovery{left:8%;top:22%;width:21%;height:54%}.ceremonyphoto{left:6%;top:22%;width:25%;height:56%}.scene-title{position:absolute;top:82px;left:25px;z-index:2;text-shadow:0 2px 7px #000}.scene-title small{display:block;color:#d8b46a}.scene-title strong{font-family:Georgia,serif;font-size:clamp(1.2rem,2.6vw,2.2rem)}.objective-pill{position:absolute;top:88px;right:26px;max-width:min(370px,43vw);padding:12px 16px;background:#101f30e8;border:1px solid #b9985a;border-radius:6px;z-index:3;font-size:.9rem}.hotspot{position:absolute;z-index:3;border:2px solid transparent;background:transparent;min-height:44px;min-width:44px;padding:0}.hotspot>span{position:absolute;left:50%;top:100%;transform:translateX(-50%);min-width:125px;background:#0b1420e8;border:1px solid #d8b46a;color:#f6f2e8;font-size:.78rem;padding:6px;border-radius:4px;display:none;pointer-events:none}.hotspot:hover,.hotspot:focus-visible,.hotspot.visible{background:#d8b46a20;border-color:#d8b46a99}.hotspot:hover span,.hotspot:focus-visible span,.hotspot.visible span{display:block}.hotspot.glowing{box-shadow:inset 0 0 35px #d8b46a75;animation:pulse 2s infinite}@keyframes pulse{50%{box-shadow:inset 0 0 50px #f1d69aaf}}.walker{position:absolute;z-index:3;width:95px;height:118px;transform:translate(-50%,-75%);transition:left .5s ease,top .5s ease;pointer-events:none}.walker img{width:100%;height:100%;object-fit:cover;object-position:top;border:2px solid #d8b46a;border-radius:48% 48% 18% 18%;box-shadow:0 8px 24px #060c14b0}.walker.corky{width:85px;height:75px;transform:translate(-50%,-85%)}.walker.corky img{border-radius:50%}.floor{position:absolute;inset:90% 0 0;pointer-events:none}.dialogue{position:absolute;bottom:126px;left:50%;transform:translateX(-50%);width:min(770px,92vw);background:#101e2df2;border:1px solid #d8b46a;padding:13px 48px 14px 18px;z-index:6;box-shadow:0 10px 25px #0008}.dialogue strong{color:#8bdfff}.dialogue p{margin:4px 0 0;line-height:1.4}.dialogue button{position:absolute;right:5px;top:5px;min-width:38px;padding:4px;border:none;background:none}.hud{z-index:5;display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:105px;background:#101c2c;border-top:2px solid #b79557;padding:8px 15px}.switch,.hud-tools{display:flex;flex-wrap:wrap;gap:7px}.portrait{display:flex;align-items:center;gap:8px;background:#13283b;padding:4px 12px 4px 4px;font-size:.85rem;border-color:#3d5767}.portrait img{height:64px;width:58px;object-fit:cover;object-position:top;border-radius:3px}.portrait.active{border:2px solid #27b7ff;box-shadow:0 0 0 2px #27b7ff30}.hud-tools button{font-size:.88rem}kbd{font-family:inherit;color:#b8c5d1;border:1px solid #637486;font-size:.72rem;padding:1px 4px;border-radius:3px}.panel-wrap{position:absolute;right:14px;bottom:119px;z-index:10;width:min(550px,calc(100% - 28px));max-height:65vh;overflow:auto;background:#142334;border:1px solid #d8b46a;box-shadow:0 14px 48px #000b;padding:17px}.panel-close{float:right}.drawer{padding:4px 8px}.drawer h2{font-size:1.4rem;margin:4px 0 14px}.drawer p{margin:8px 0 20px}.drawer label{display:flex;gap:13px;align-items:center;justify-content:space-between;margin:20px 0}.drawer input[type=range]{width:130px}.items,.routing{display:flex;gap:10px;flex-wrap:wrap}.item.selected{border-color:#27b7ff;background:#245579}.routing button{flex:1;min-width:122px}.routing .done{color:#65c6a5}.parchment{background:#f4e7cb;color:#25221d;padding:20px}.parchment h2{color:#5a4128}.note{border-bottom:1px solid #b49d75;padding-bottom:10px}.cinematic{position:absolute;inset:0;background:#060c14c9;z-index:20;display:grid;place-items:center;padding:20px}.cinematic-box{max-width:740px;text-align:center;background:#142334ed;border:2px solid #d8b46a;box-shadow:0 25px 85px #000;padding:clamp(24px,4vw,58px)}.cinematic-box>p:not(.eyebrow){font-family:Georgia,serif;font-size:clamp(1.2rem,2.3vw,1.8rem)}.cinematic-box button{margin:7px}.ending{min-height:100svh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 20px;background:radial-gradient(circle at center,#3f3c32,#0b1420 67%)}.ending img{width:min(220px,40vw);max-height:310px;object-fit:cover;border:7px solid #d8b46a}.ending h2{color:#d8b46a}.ending blockquote{font:italic 1.8rem Georgia,serif;color:#f1d69a}.ending p{max-width:600px}.high-contrast{filter:contrast(1.2)}.large-text{font-size:21px}.reduced *, .reduced *::before,.reduced *::after{animation:none!important;transition:none!important}@media(max-width:850px){.titlepage{grid-template-columns:1fr;padding:25px}.title-cover{height:280px}.scene-wrap{min-height:440px}.game-top{padding:8px}.scene-title{top:95px}.objective-pill{top:145px;right:10px;max-width:280px}.hud{align-items:stretch;flex-wrap:wrap}.hud-tools{flex:1}.hud-tools button{flex:1}.dialogue{bottom:160px}.scene-photo{opacity:.3}}@media(max-width:550px){.titlepage{padding:16px}.title-cover{height:200px}.game-top{display:block}.game-top div{margin-top:7px}.game-top button{font-size:12px;padding:4px 7px}.scene-wrap{min-height:360px}.scene-title{top:118px;left:10px}.scene-title strong{font-size:20px}.objective-pill{top:177px;right:8px;max-width:55vw;font-size:13px;padding:8px}.walker{width:62px;height:85px}.walker.corky{width:62px;height:56px}.hud{padding:5px;gap:4px}.portrait img{width:33px;height:35px}.portrait{font-size:12px;padding:2px}.hud-tools button{font-size:12px;padding:5px}.hud-tools kbd{display:none}.dialogue{bottom:115px;font-size:14px;padding:8px 30px 8px 10px}.panel-wrap{bottom:105px;max-height:62vh}.hotspot>span{min-width:92px;font-size:11px}}@media(orientation:landscape) and (max-height:650px){.scene-wrap{min-height:280px}.game-top{padding:3px 10px}.game-top button{min-height:30px}.hud{min-height:72px;padding:2px 7px}.portrait img{width:39px;height:41px}.dialogue{bottom:83px}.panel-wrap{bottom:77px}.objective-pill{top:45px}.scene-title{top:53px}}

/* Supplied character and franchise artwork */
.title-cover img{object-position:center center}
.scene-photo.workshop{left:31%;top:13%;width:41%;height:42%;opacity:.83;object-fit:cover;filter:none;border-color:#d8b46a}
.ending img{width:min(650px,85vw);max-height:330px;object-fit:cover}
@media(max-width:850px){.scene-photo.workshop{left:24%;top:22%;width:51%;height:31%;opacity:.72}}


/* Sun/moon light and dark theme (added for the IONOS preview, Nov 2026) */
.theme-toggle{font-size:1.15rem;line-height:1;min-width:44px;padding:6px 10px}
.game-top .theme-toggle{font-size:1rem}
.theme-toggle.corner{position:absolute;top:14px;right:14px;z-index:30}
.ao-credit{font-size:.75rem;color:#b8c5d1;letter-spacing:.05em;margin:14px 0 0}
.game-top small.ao-credit-top{font-size:.5em;letter-spacing:.08em;font-weight:normal;margin-top:2px}
[data-theme=light]{color-scheme:light}
[data-theme=dark]{color-scheme:dark}
[data-theme=light] :root,:root[data-theme=light]{color:#1f2a36;background:#f4eedf}
[data-theme=light] body{background:#f4eedf;color:#1f2a36}
[data-theme=light] button:not(.hotspot){background:#fffaf0;color:#1f2a36;border-color:#a88a4e}
[data-theme=light] button:not(.hotspot):hover:not(:disabled){background:#f1e2bf;border-color:#7a5d27}
[data-theme=light] .primary{background:#19648b;color:#fff;border-color:#0f4a69}
[data-theme=light] .primary:hover:not(:disabled){background:#1f7aa8;color:#fff}
[data-theme=light] .eyebrow,[data-theme=light] .titlecopy h2,[data-theme=light] .ending h2{color:#8a6420}
[data-theme=light] .titlepage{background:radial-gradient(circle at 20% 60%,#fff8e6,#e9dcc0 62%)}
[data-theme=light] .titlecopy small,[data-theme=light] .ao-credit{color:#4f5b66}
[data-theme=light] .title-cover{background:#efe4cc;box-shadow:0 20px 55px #5a462340}
[data-theme=light] .game{background:#f4eedf}
[data-theme=light] .game-top{background:#fbf6ea;color:#7a5718;border-bottom-color:#c4a76d}
[data-theme=light] .game-top small{color:#4f5b66}
[data-theme=light] .hud{background:#fbf6ea;border-top-color:#c4a76d}
[data-theme=light] .portrait{background:#fffaf0;border-color:#c4a76d}
[data-theme=light] .portrait.active{border-color:#19648b;box-shadow:0 0 0 2px #19648b30}
[data-theme=light] kbd{color:#4f5b66;border-color:#9aa6b2}
[data-theme=light] .objective-pill{background:#fffaf0ee;color:#1f2a36;border-color:#a88a4e}
[data-theme=light] .dialogue{background:#fffaf0f5;color:#1f2a36;border-color:#a88a4e;box-shadow:0 10px 25px #5a462350}
[data-theme=light] .dialogue strong{color:#19648b}
[data-theme=light] .dialogue button{background:none}
[data-theme=light] .panel-wrap{background:#fffaf0;color:#1f2a36;border-color:#a88a4e;box-shadow:0 14px 40px #5a462355}
[data-theme=light] .item.selected{background:#cfe6f3;border-color:#19648b}
[data-theme=light] .routing .done{color:#1d7a5a}
[data-theme=light] .cinematic{background:#f4eedfcc}
[data-theme=light] .cinematic-box{background:#fffaf0f2;color:#1f2a36;border-color:#a88a4e;box-shadow:0 25px 70px #5a462355}
[data-theme=light] .ending{background:radial-gradient(circle at center,#fff8e6,#e9dcc0 70%);color:#1f2a36}
[data-theme=light] .ending blockquote{color:#7a5718}
[data-theme=light] .hotspot>span{background:#fffaf0f0;color:#1f2a36}
@media(max-width:550px){.theme-toggle.corner{top:8px;right:8px}.game-top small.ao-credit-top{display:none}}
[data-theme=light] .scene-title{color:#f6f2e8}
[data-theme=light] .scene-title small{color:#f1d69a}
[data-theme=light] .hotspot{background:transparent}
[data-theme=light] .hotspot:hover,[data-theme=light] .hotspot:focus-visible,[data-theme=light] .hotspot.visible{background:#d8b46a30;border-color:#8a6420}

/* Alpha Omega Core St Bernard mascot beside the credit, in the footer of every screen (added Nov 2026).
   Not a story character. Always in normal flow, so it never sits on top of the scene, buttons or text. */
.ao-sign{display:flex;align-items:center;gap:12px;margin-top:14px}
.ao-sign .ao-credit{margin:0}
.ending .ao-sign{justify-content:center}
.ao-mascot{flex:none;display:block;padding:5px 8px 3px;border-radius:14px;background:#0d1828;border:1px solid #8c784e;box-shadow:0 0 18px #27b7ff22}
.ao-mascot img{display:block;width:auto;height:72px}
.ao-credit-sub{display:block;margin-top:2px;font-size:.9em;letter-spacing:.02em;opacity:.8}
.ao-foot{--h:44px;flex:none;display:flex;align-items:center;justify-content:center;gap:10px;height:var(--h);padding:3px 12px;background:#0b1420;border-top:1px solid #746445;z-index:5}
.ao-foot .ao-mascot{padding:2px 5px 1px;border-radius:9px}
.ao-foot .ao-mascot img{height:34px}
.ao-foot .ao-credit{margin:0;font-size:.7rem}
[data-theme=light] .ao-foot{background:#fbf6ea;border-top-color:#c4a76d}
/* The footer strip adds 44px under the HUD, so lift the dialogue and panels by the same amount */
.game .dialogue{bottom:170px}
.game .panel-wrap{bottom:163px}
@media(max-width:850px){.game .dialogue{bottom:204px}}
@media(max-width:550px){.ao-foot{--h:40px}.ao-foot .ao-mascot img{height:30px}.game .dialogue{bottom:155px}.game .panel-wrap{bottom:149px}.ao-mascot img{height:60px}}
@media(orientation:landscape) and (max-height:650px){.ao-foot{--h:34px;padding:1px 10px}.ao-foot .ao-mascot img{height:26px}.game .dialogue{bottom:117px}.game .panel-wrap{bottom:111px}}

/* Watford HQ objects (Nov 2026): the art sits inside its own hotspot, so it always lines up with what you tap */
.hotspot.has-art{overflow:visible}
.hotspot-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 100%;pointer-events:none;user-select:none;filter:drop-shadow(0 6px 10px #0008)}
/* Dark theme: stop the generic button hover from filling a hotspot with an opaque blue box */
.scene-art .hotspot:not(.visible){background:transparent}
.scene-art .hotspot:hover:not(:disabled),.scene-art .hotspot:focus-visible{background:#d8b46a20}
.scene-art .hotspot.has-art:hover:not(:disabled),.scene-art .hotspot.has-art:focus-visible{background:transparent;border-color:#d8b46a99}
.hotspot.has-art:hover .hotspot-art{filter:drop-shadow(0 0 12px #f1d69a99) drop-shadow(0 6px 10px #0008)}
/* The Palace call: the desk phone glows and rings until Bernard answers */
.hotspot.ringing .hotspot-art{transform-origin:50% 90%;animation:ring 1.6s ease-in-out infinite;filter:drop-shadow(0 0 14px #f1d69acc) drop-shadow(0 6px 10px #0008)}
.hotspot.ringing::after{content:"";position:absolute;left:50%;top:38%;width:70%;aspect-ratio:1;transform:translate(-50%,-50%) scale(.6);border:3px solid #f1d69a;border-radius:50%;opacity:0;pointer-events:none;animation:ringwave 1.6s ease-out infinite}
@keyframes ring{0%,40%,100%{transform:rotate(0)}5%,15%,25%{transform:rotate(-6deg)}10%,20%,30%{transform:rotate(6deg)}}
@keyframes ringwave{0%{opacity:.8;transform:translate(-50%,-50%) scale(.6)}70%,100%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}
.reduced .hotspot.ringing::after{display:none}
@media (prefers-reduced-motion:reduce){.hotspot.ringing .hotspot-art,.hotspot.ringing::after{animation:none}}
/* Phones: the art may be a little wider than its tap area so the objects stay readable */
@media(max-width:550px){.art-case .hotspot-art{left:-25%;width:150%}.art-phone .hotspot-art{left:-40%;width:180%}.art-carrier .hotspot-art{left:-30%;width:160%}.art-van .hotspot-art{left:-25%;width:125%}}
/* Palace Courtyard and Return to Watford: one van for wide screens, one nearer the middle for narrow screens where the sides are cropped */
.scene-art .van-narrow{display:none}
@media(max-width:850px){.scene-art .van-wide{display:none}.scene-art .van-narrow{display:inline}}

/* Pictures for every object (Nov 2026) and a real day and night version of each scene */
.scene-art .night-layer{display:none}
[data-theme=dark] .scene-art .night-layer{display:inline}
[data-theme=dark] .scene-art .day-layer,[data-theme=dark] .scene-art .sun{display:none}
[data-theme=light] .scene-art .sky{fill:#6a9fc4}
[data-theme=light] .scene-art .sun{fill:#ffe9a8;opacity:.9}
.hotspot-art.art-night{display:none}
[data-theme=dark] .hotspot-art.art-day{display:none}
[data-theme=dark] .hotspot-art.art-night{display:block}
[data-theme=dark] .hotspot-art{filter:brightness(.9) saturate(.95) drop-shadow(0 6px 10px #000a)}
[data-theme=dark] .scene-photo{filter:saturate(.7) brightness(.8)}
/* The glowing crack keeps its glow on the picture, not as a box */
.scene-art .hotspot.has-art.glowing{box-shadow:none;animation:none}
.hotspot.has-art.glowing .hotspot-art{animation:artglow 2s ease-in-out infinite}
@keyframes artglow{50%{filter:drop-shadow(0 0 16px #ffd36e) drop-shadow(0 6px 10px #0008)}}
.reduced .hotspot.has-art.glowing .hotspot-art{animation:none}
@media (prefers-reduced-motion:reduce){.hotspot.has-art.glowing .hotspot-art{animation:none}}
/* Phones: pictures a little wider than their tap areas */
@media(max-width:550px){.hotspot-art{left:-35%;width:170%}.art-othercat .hotspot-art{left:-70%}.art-entry .hotspot-art{left:0;width:150%}.art-crack .hotspot-art{left:-40%;width:140%}.art-device .hotspot-art{left:0;width:140%}.art-guards .hotspot-art,.art-ceremony .hotspot-art,.art-guard .hotspot-art{left:0;width:100%}.art-dais .hotspot-art{left:-10%;width:120%}.art-thanks .hotspot-art{left:0;width:150%}}

.back-site{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border-radius:6px;border:1px solid #8c784e;background:transparent;color:#e4cb93;text-decoration:none;font-weight:bold}
.back-site:hover,.back-site:focus-visible{background:#20364b;color:#f6f2e8}
[data-theme=light] .back-site{color:#5d4416;border-color:#a88a4e}
[data-theme=light] .back-site:hover,[data-theme=light] .back-site:focus-visible{background:#f1e2bf;color:#1f2a36}
