/* hs: Jack's house (js/hs-world.js). The WebGL rooms sit under boot.js's CSS PC (.pc-stage); the HUD floats over everything
 * while you're walking round (it's outside #boot so it stays on top when the desktop is shown on the monitor). Kept small,
 * warm and quiet: a title, where you are, a little floor plan, the look arrows, Jack's paper notes. */
.hs-gl,.hs-gl2{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
/* JackNet welcome: the familiar raised window, laid out for short screens too. */
#accountGate{overflow:auto;position:fixed;inset:0;z-index:2147483647;background:#008080;display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;box-sizing:border-box;font:14px/1.4 Tahoma,Arial,sans-serif;color:#111;overscroll-behavior:contain;scroll-padding:16px}
.account-box{flex:none;margin:auto;width:440px;max-width:100%;padding:4px 16px 16px;background:#c0c0c0;border:2px outset #fff;box-shadow:2px 2px #000;box-sizing:border-box}
.account-box h1{margin:0 -12px 12px;padding:5px 7px;font:bold 15px Tahoma,Arial,sans-serif;background:#000080;color:#fff}
.account-box label{display:block;margin:10px 0 4px}.account-box input:not([type=radio]){display:block;width:100%;box-sizing:border-box;margin:0;padding:8px;border:2px inset #fff;background:#fff;color:#111;font:16px Tahoma,Arial,sans-serif;min-height:44px}
.account-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.account-buttons button{flex:1;padding:8px 10px}.account-error{margin:8px 0;min-height:0;color:#111;overflow-wrap:anywhere}.account-error.is-error{color:#780000}.account-error[data-field]{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap;margin:-1px}.account-error:empty{display:none}.account-box small{display:block;font-size:12px;line-height:1.45}.account-box p{margin:10px 0}
.account-box button{min-height:44px;min-width:44px;padding:6px 10px;border:2px outset #fff;background:#c0c0c0;color:#111;font:inherit;cursor:pointer}.account-box button:active{border-style:inset}.account-box button:focus-visible,.account-box input:focus-visible,.account-box summary:focus-visible{outline:2px dotted #000;outline-offset:2px}.account-box button:disabled{color:#555;cursor:wait}.account-box [type=submit]{font-weight:bold;border:3px double #000}.account-box input[aria-invalid=true]{border-color:#9c1515}
.account-preview{margin:0 -2px 12px;border:2px inset #fff;background:#f4edd8}.account-preview img{display:block;width:100%;height:auto;aspect-ratio:560/252;object-fit:cover}.account-preview p{margin:0;padding:9px 10px;font-size:13px}.account-preview b{color:#000080}.account-intro{font-size:14px}.account-password-row,.account-name-row{display:flex;gap:6px;align-items:stretch}.account-password-row input,.account-name-row input{flex:1;min-width:0}.account-password-row button{min-width:64px}.account-name-row button{width:44px;flex:none;font-size:24px;line-height:1}.account-box #nameHelp,.account-box #passwordHelp,.account-box #accountNameHelp{margin-top:5px}.account-field-error{color:#780000;font-weight:bold}.account-field-error:empty{display:none}.account-field-error:not(:empty){padding:4px 0}.account-box [data-suggestion]{margin:6px 0}.account-box [hidden]{display:none}
.account-box details{margin:10px 0;border:2px groove #fff;padding:0 10px 10px}.account-box details:not([open]){padding-bottom:0}.account-box summary{min-height:44px;box-sizing:border-box;padding:11px 0;cursor:pointer;color:#000070}.account-box fieldset{display:flex;gap:12px;margin:10px 0;padding:4px 10px 8px;border:2px groove #fff}.account-box legend{padding:0 4px}.account-box fieldset label{display:flex;align-items:center;gap:8px;min-height:44px;min-width:78px;margin:0;cursor:pointer}.account-box input[type=radio]{appearance:none;border:2px inset #fff;border-radius:50%;background:#fff;width:18px;height:18px;min-height:18px;flex:none;margin:0;padding:0}.account-box input[type=radio]:checked{background:radial-gradient(circle,#000 0 4px,#fff 4.5px)}.account-loading progress{width:100%;height:22px;accent-color:#000080}.account-loading button{margin-top:12px}
@media(max-width:480px){#accountGate{padding:12px}.account-box{padding-left:12px;padding-right:12px}.account-box h1{margin-left:-8px;margin-right:-8px}.account-preview img{max-height:132px}.account-preview p{padding:7px 9px}}
@media(max-height:520px){#accountGate{padding:8px}.account-preview{display:flex;align-items:center}.account-preview img{width:40%;height:90px;object-fit:cover}.account-preview p{flex:1}.account-box h1{margin-bottom:8px}}
html.account-required #houseEntry{visibility:hidden}
html.house-entering .powerscr>.pc-stage,html.house-entering .powerscr>.pc-room,html.house-entering .powerscr>.pc-cap{visibility:hidden!important}
#houseEntry{position:fixed;inset:0;z-index:2147483647;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;background:#24292c;color:#eee4ca;text-align:center;font:13px "Courier New",monospace}
#houseEntry strong{font-size:22px;letter-spacing:2px;color:#dbc172}
#houseEntry button{margin-top:8px;padding:8px 20px;border:1px solid #80745b;background:#16191b;color:#eee4ca;font:inherit;cursor:pointer}
.hs-gl{z-index:0}
.hs-ui kbd,.hs-pause kbd,.hs-inspect kbd{display:inline-block;min-width:1.1em;padding:0 4px;border:1px solid #a69873;border-bottom-width:2px;border-radius:2px;background:#242c2e;color:#f0dfae;font:700 11px/1.6 "Courier New",monospace;white-space:nowrap;vertical-align:baseline}
.hs-phone-key:focus-visible{outline:1px solid #dbc172;outline-offset:1px}
.hs-phone-key{color:transparent;font-size:0}
.hs-ui.hs-mobile-open :is(.hs-top,.hs-map,.hs-tin,.ch-jobs,.ch-chip,.rm-coin,.rm-found,.rm-hunt,.st-objective,.se-objective,.st-marker,.st-target){visibility:hidden}
/* A short phone screen gives the live 3D LCD the left page, and the original
   operative keys the right page. These are HUD controls, like a console pad. */
.hs-phone-pad{position:fixed;right:calc(env(safe-area-inset-right,0px) + 12px);top:calc(env(safe-area-inset-top,0px) + 12px);bottom:calc(env(safe-area-inset-bottom,0px) + 12px);height:max-content;margin-block:auto;box-sizing:border-box;width:236px;padding:10px;display:grid;gap:8px;background:linear-gradient(105deg,#f8f1d9,#e8ddbc);border:1px solid #7e887e;border-top:3px solid #637b86;box-shadow:2px 3px 0 #17232b88;color:#25394c;pointer-events:auto}
.hs-phone-pad-title{font:700 11px/18px "Courier New",monospace;letter-spacing:.06em;text-align:center}
.hs-phone-nav,.hs-phone-digits{display:grid;gap:6px;grid-template-columns:repeat(3,minmax(44px,1fr))}
.hs-phone-nav{grid-template-columns:repeat(4,minmax(44px,1fr))}
.hs-phone-pad .hs-phone-key.hs-surf{position:relative!important;inset:auto!important;transform:none!important;visibility:visible!important;box-sizing:border-box;width:100%!important;height:44px!important;min-width:44px;min-height:44px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;border:1px solid #1b2431!important;border-bottom:3px solid #182130!important;border-radius:4px;background:linear-gradient(#46546a,#303b4d)!important;color:#f9f0d9;font:700 19px/1 Tahoma,Arial,sans-serif;box-shadow:inset 0 1px #738097;touch-action:manipulation}
.hs-phone-pad .hs-phone-key small{font:700 9px/1 Tahoma,Arial,sans-serif;letter-spacing:.05em}
.hs-phone-nav .hs-phone-key{font-size:13px!important}
.hs-phone-nav .hs-phone-key[aria-label="Phone Menu / Select"]{background:linear-gradient(#6287b6,#456389)!important}
.hs-phone-pad .hs-phone-key:active{background:#687b95!important;border-bottom-width:1px!important}
.hs-phone-pad .hs-phone-key:focus-visible{outline:2px dashed #25394c;outline-offset:2px}
@media(max-height:330px){.hs-phone-pad{padding:6px;gap:4px}.hs-phone-pad-title{line-height:14px}.hs-phone-nav,.hs-phone-digits{gap:4px}}
.hs-gl2{pointer-events:none;z-index:2}
html.hs-standing>.hs-gl2{position:fixed;z-index:20003}
.powerscr .pc-stage{z-index:1}
.powerscr .pc-cap{z-index:3}
/* boot.js's own desk glow and dark room backdrop: the WebGL room has the real ones */
html.hs-live .powerscr:not(.go) .pc-desk,html.hs-live .powerscr:not(.go) .pc-deskedge,html.hs-live .powerscr .pc-room{visibility:hidden}
/* switching on: the room fades round the PC as the camera flies in, then stops being drawn */
.powerscr.go .hs-gl{opacity:0;transition:opacity .7s .2s}
.powerscr.deep .hs-gl,.powerscr.deep .hs-gl2,.powerscr.rm-tvon .hs-gl2{visibility:hidden}
/* the PC is only drawn when it's properly in front of you */
.powerscr.hs-nopc:not(.hs-follow) .pc-stage{visibility:hidden}
.powerscr.hs-nopc:not(.hs-follow) .pc-stage *{visibility:hidden!important}
html.hs-live .powerscr .pc-desk,html.hs-live .powerscr .pc-deskedge{visibility:hidden} /* (the room's WebGL desk is under the PC) */
.powerscr.hs-nopc .pc-cap{opacity:0!important;pointer-events:none!important}
.powerscr.hs-trayout .pc-tray{background:#0c0b09!important;box-shadow:inset 0 .3em .4em #000!important}
/* standing up from the PC (it stays on): the page is laid onto the monitor's glass */
html.pc-roomview{background:#050404}
html.pc-roomview body{position:static;z-index:auto;background:transparent;transform:none;clip-path:none;filter:none;opacity:1;pointer-events:auto}
html.pc-roomview #boot{position:fixed;inset:0;z-index:0;background:#050404;opacity:1;pointer-events:none;transition:none}
html.pc-roomview #bootPower{display:block!important;visibility:visible!important;pointer-events:auto}
html.pc-roomview #boot .hs-gl{visibility:visible!important;opacity:1!important;transition:none}
html.hs-standing .powerscr .pc-cap{display:none}
html.hs-standing .powerscr .pm-pic,html.hs-standing .powerscr .pm-text,html.hs-standing .powerscr .pm-star{display:none}
html.hs-standing #monitorSurface{will-change:transform}
/* While seated, the desktop is clipped to the 3D monitor and the room canvas remains behind it. */
#boot.hs-monitorboot{position:fixed;inset:0;z-index:0;background:transparent;opacity:1;pointer-events:none}
#boot.hs-monitorboot .hs-gl{visibility:visible!important}
#monitorViewport{position:fixed;inset:0;overflow:hidden;contain:layout size paint;pointer-events:none;z-index:1}
#monitorSurface{position:absolute;left:0;top:0;right:auto;bottom:auto;width:100%;height:100%;will-change:transform;transform-origin:0 0;z-index:1;pointer-events:auto}
html.pc-roomview #monitorSurface{width:1024px;height:768px;overflow:hidden;border-radius:2% / 2.5%;background:#008080;box-shadow:0 0 0 8px #111713,0 0 0 12px #232823,0 0 10px 14px rgba(0,0,0,.7);isolation:isolate}
html.pc-roomview #monitorSurface::after{content:"";position:absolute;inset:0;z-index:2147483647;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 34px 10px rgba(0,0,0,.5),inset 0 2px 5px rgba(220,240,230,.3);background:repeating-linear-gradient(0deg,rgba(0,0,0,.075) 0 1px,transparent 1px 3px),radial-gradient(ellipse at 20% 0%,rgba(225,240,238,.13),transparent 55%),linear-gradient(130deg,rgba(255,255,255,.055),transparent 45%,rgba(0,0,0,.08))}
html.pc-roomview:not(.hs-standing) .hs-ui{display:none}
html.pc-roomview.hs-standing #monitorSurface{pointer-events:none}
html.pc-roomview #crt{display:none!important}
html.pc-roomview #monitorSurface.pc-starting>:not(.bscreen){visibility:hidden!important}
html.pc-roomview #monitorSurface.pc-starting>.bscreen{z-index:100000}
html.pc-roomview #monitorSurface .float{max-width:1016px;max-height:728px}
html.pc-roomview #monitorSurface .float>.body{max-height:702px}
html.pc-roomview #monitorSurface .appwin.maxwin{width:1024px!important;height:736px!important;max-width:none;max-height:none}
html.pc-roomview #monitorSurface .menu{max-width:1020px;max-height:732px}
html.pc-roomview #toastWrap{max-width:1008px}
html.pc-roomview #browser{left:96px;top:10px;bottom:10px;width:918px;max-width:none}
html.pc-roomview body.maxed #browser,html.pc-roomview #browser.fs{left:0;top:0;bottom:0;width:1024px}
html.pc-roomview #monitorSurface .sizegrip{display:block}
/* Optional, explicitly chosen PC view: same desktop and same app state. */
html.pc-roomview.pc-desktop-full #monitorViewport{background:#050606;pointer-events:auto}
html.pc-roomview.pc-desktop-full.pc-lock-anim #monitorViewport{background:transparent}
html.pc-roomview.pc-desktop-full #monitorSurface{width:100%;height:100%;border-radius:0;box-shadow:none}
html.pc-roomview.pc-desktop-full #monitorSurface .appwin.maxwin{left:0!important;top:0!important;width:100%!important;height:calc(100% - 32px)!important;max-width:none!important;max-height:none!important}
html.pc-roomview.pc-desktop-full #browser{left:96px;top:10px;bottom:10px;width:calc(100% - 106px)}
html.pc-roomview.pc-desktop-full body.maxed #browser,html.pc-roomview.pc-desktop-full #browser.fs{left:0;top:0;bottom:0;width:100%}
html.pc-roomview.pc-desktop-full #monitorSurface .float{max-width:calc(100% - 8px);max-height:calc(100% - 40px)}
@media(max-width:760px){html.pc-roomview.pc-desktop-full #browser{left:0;top:0;bottom:0;width:100%}}
html.pc-roomview.pc-desktop-full #monitorSurface::after{display:none}
.hs-surface-lock{z-index:5;border-radius:0!important;box-shadow:0 0 0 100vmax #050606!important}
.hs-menu-button{display:none}

/* Native modal supplies keyboard focus containment and a true top layer. */
.hs-pause{box-sizing:border-box;width:min(450px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;border:2px solid #9f8d62;outline:2px solid #141717;background:#202628;color:#eee4ca;box-shadow:5px 5px 0 #0008;font:13px/1.5 "Courier New",monospace;text-align:left}
.hs-pause::backdrop{background:rgba(4,7,9,.73)}
.hs-pause-head{padding:16px 22px 12px;background:#151b1d;border-bottom:1px solid #72684e}
.hs-pause-head span{float:right;color:#897e61;font-size:12px;letter-spacing:.15em}
.hs-pause h1{margin:0;color:#dbc172;font:700 22px "Courier New",monospace;letter-spacing:.1em}
.hs-pause-main{padding:18px 22px}
.hs-pause button{display:block;width:100%;min-height:38px;margin:0 0 8px;padding:7px 12px;border:1px solid #8b7f61;border-bottom:3px solid #101718;background:#323b3d;color:#eee4ca;font:700 13px "Courier New",monospace;cursor:pointer;text-align:left}
.hs-pause [hidden]{display:none!important}
.hs-pause button:hover,.hs-pause button:focus-visible{background:#465151;color:#ffe9a2;outline:1px solid #dbc172;outline-offset:2px}
.hs-pause button:active{border-bottom-width:1px;padding-top:9px}
.hs-pause fieldset{margin:18px 0 14px;padding:12px;border:1px solid #685f4c}
.hs-pause legend{padding:0 6px;color:#dbc172;letter-spacing:.1em;font-weight:bold}
.hs-pause label{display:block;margin:0 0 13px}
.hs-pause small{display:block;margin:5px 0 0 23px;color:#b4b6a8;font-size:11px;line-height:1.4}
.hs-pause input{accent-color:#dbc172;vertical-align:middle}
.hs-audio-volume output{float:right;color:#dbc172;font-weight:bold}
.hs-audio-volume input[type=range]{display:block;box-sizing:border-box;width:100%;margin:10px 0 0;cursor:pointer}
.hs-pause select{float:right;min-width:145px;padding:3px;background:#161c1e;color:#eee4ca;border:1px solid #8b7f61;font:12px "Courier New",monospace}
.hs-pause-mouse,.hs-pause-status{margin:10px 0 0;color:#adb4ae;font-size:11px;line-height:1.5}
.hs-pause-keys{margin:12px 0;color:#d3ccb8;font-size:11px;line-height:1.8}
html.hs-paused .hs-ui{pointer-events:none!important}
/* no WebGL: the PC on its own in the dark (the way it used to be) */
.powerscr.hs-nogl .pc-room{visibility:visible}

/* ================================================================ the HUD */
.hs-ui{position:fixed;inset:0;z-index:20010;pointer-events:none;display:none;font:12px var(--ui);color:#d8cfb8;text-align:left;-webkit-user-select:none;user-select:none;transition:opacity .3s,visibility 0s}
html.hs-live .hs-ui{display:block}
html.hs-viewing .hs-ui,html.hs-follow .hs-ui{opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s .25s}
.hs-ui button{pointer-events:auto;cursor:pointer;font-family:inherit}
.hs-top{position:absolute;left:10px;top:8px;display:flex;flex-direction:column;gap:2px;padding:4px 7px;border:1px solid #80745b;background:rgba(22,25,27,.92);max-width:calc(100vw - 150px);box-sizing:border-box}
.hs-title{font:400 18px var(--mag);letter-spacing:.12em;color:#e2d9c2;text-shadow:0 2px 8px #000,0 0 2px #000}
.hs-where{font:11px var(--ui);color:#eee4ca;letter-spacing:.05em;text-shadow:0 1px #000}
.hs-map{position:absolute;left:10px;top:56px;width:84px;height:84px;opacity:.85;border-radius:6px;background:rgba(10,8,6,.35);box-shadow:inset 0 0 0 1px rgba(255,240,210,.08)}
.hs-arrow{position:absolute;top:50%;min-width:46px;height:64px;margin-top:-32px;border:1px solid rgba(255,240,210,.18);border-radius:4px;background:rgba(20,16,12,.32);color:#e2d9c2;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 8px;transition:background .15s,opacity .3s;box-sizing:border-box}
.hs-arrow span{font:400 13px var(--mag);letter-spacing:.08em;text-transform:uppercase;max-width:0;overflow:hidden;white-space:nowrap;transition:max-width .25s}
.hs-arrow:hover span,.hs-arrow:focus-visible span{max-width:140px}
.hs-arrow svg{width:22px;height:22px}
.hs-arrow:hover{background:rgba(255,240,210,.16)}
.hs-arrow.l{left:10px}.hs-arrow.r{right:10px}
.hs-ui.one .hs-arrow{display:none}
.hs-ui.holding .hs-arrow{opacity:.35}
.hs-cross{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px;border-radius:50%;background:rgba(255,248,230,.85);box-shadow:0 0 0 1.5px rgba(0,0,0,.45);opacity:0;transition:opacity .3s}
.hs-ui.cross .hs-cross,.hs-ui.holding .hs-cross{opacity:.8}
.hs-tip{position:fixed;left:0;top:0;padding:4px 8px;font:12px var(--ui);color:#1a1a1a;background:#fffbe0;border:1px solid #000;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s;box-shadow:2px 2px 0 rgba(0,0,0,.25)}
.hs-tip.on{opacity:1}
.hs-tip i{font-style:normal;color:#8a6a1a;font-size:11px}
.hs-tip small{color:#777}
/* holding something */
.hs-hold{position:absolute;left:50%;bottom:max(18px,3vh);transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;max-width:calc(100vw - 24px);pointer-events:none}
.hs-hold[hidden]{display:none}
.hs-hname{font:400 15px var(--mag);letter-spacing:.08em;color:#ffe9a8;text-shadow:0 2px 6px #000;text-transform:uppercase}
.hs-hkeys{font:11px var(--ui);color:#cfc6b0;text-shadow:0 1px 4px #000;text-align:center}
.hs-hkeys:empty{display:none}
.hs-hkeys b{color:#ffd84a;font-weight:700}
.hs-hold.snap .hs-hname{color:#ffd84a}
.hs-hbtn{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;pointer-events:auto}
.hs-hbtn button{min-width:40px;height:34px;padding:0 12px;border:1px solid rgba(255,240,210,.35);border-radius:3px;background:rgba(20,16,12,.6);color:#f0e8d0;font:12px var(--ui)}
.hs-hbtn button:hover{background:rgba(60,50,30,.7)}
.hs-hbtn button[data-h=put]{background:rgba(120,90,20,.7)}
.hs-hbtn button[hidden]{display:none}
@media (hover:hover) and (pointer:fine){.hs-hbtn button[data-h=near],.hs-hbtn button[data-h=far],.hs-hbtn button[data-h=turn]{display:none}}




/* Jack's notes and toasts (the paper note style from css/rm.css) */
.hs-ui .rm-note{position:absolute}
.hs-ui .rm-toast{position:absolute}
.hs-tin{position:absolute;right:12px;top:10px}

.hs-fade{position:absolute;inset:0;background:#000;opacity:0;transition:opacity .3s;pointer-events:none}
.hs-fade.on{opacity:1}

@media (max-aspect-ratio:3/4){
  .hs-arrow{min-width:40px;height:56px;margin-top:-28px}
  .hs-arrow.l{left:4px}.hs-arrow.r{right:4px}
  .hs-map{width:64px;height:64px}
  .hs-title{font-size:16px}
}
@media (max-height:480px){.hs-map{display:none}}
/* the room is the real world: no custom cursor, a hand over things you can use */
html.hs-live #boot #bootPower.hs-hot,html.hs-live #boot #bootPower.hs-hot *{cursor:pointer!important}
/* the chair in the PC's tray: stand up */
.hs-standbtn.hold svg{animation:hsHold .75s linear}
@keyframes hsHold{to{transform:translateY(-3px)}}
/* The room is the main view; keep the power-button caption small. */
html.hs-live .pc-cap p{font-size:20px}

@media (max-height:500px) and (min-aspect-ratio:3/2){html.hs-live .powerscr .pc-cap{bottom:auto}}
/* sat down using something (the telly, the phone, the fridge): a way back up, nothing else in the way */
.hs-getup{position:absolute;left:14px;bottom:max(18px,3vh);display:flex;align-items:center;gap:6px;height:38px;padding:0 14px 0 10px;border:1px solid rgba(255,240,210,.35);border-radius:3px;background:rgba(20,16,12,.6);color:#f0e8d0;font:400 14px var(--mag);letter-spacing:.08em;text-transform:uppercase}
.hs-getup svg{width:18px;height:18px}
.hs-getup:hover{background:rgba(60,50,30,.7)}
.hs-getup[hidden]{display:none}
html.hs-focus .hs-arrow,html.hs-focus .hs-map,html.hs-focus .hs-cross,html.hs-focus .hs-use,html.hs-focus .hs-jump,html.hs-focus .hs-duck{display:none!important}
.hs-surf{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:auto;overflow:hidden;-webkit-user-select:none;user-select:none}

/* ================================================================ life in the house (js/hs-life.js) */
/* someone shouting from another room */
.hs-voice{position:absolute;left:50%;top:14px;transform:translate(-50%,-10px);max-width:min(520px,calc(100vw - 150px));padding:8px 14px 10px;text-align:center;opacity:0;transition:opacity .3s,transform .3s;pointer-events:none}
.hs-voice.on{opacity:1;transform:translate(-50%,0)}
.hs-voice b{display:block;font:400 12px var(--mag);letter-spacing:.14em;color:#ffd84a;text-shadow:0 1px 4px #000}
.hs-voice p{margin:2px 0 0;font:700 17px/1.25 "Comic Sans MS","Comic Sans",cursive;color:#fff6e0;text-shadow:0 2px 6px #000,0 0 2px #000}
@media (max-aspect-ratio:3/4){.hs-voice{top:96px;max-width:calc(100vw - 40px)}.hs-voice p{font-size:15px}}
/* a phone call / a dialogue: Jack's lined paper, with what you can say */
.hs-call{position:absolute;left:50%;bottom:max(70px,9vh);transform:translate(-50%,12px);width:min(460px,calc(100vw - 28px));box-sizing:border-box;padding:12px 14px 12px;background:#fffbe0;color:#1a1a1a;border-radius:3px;box-shadow:0 8px 28px rgba(0,0,0,.6);font:13px/1.45 var(--ui);opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility 0s .2s;pointer-events:auto;
  background-image:repeating-linear-gradient(180deg,transparent 0 17px,rgba(80,120,200,.18) 17px 18px);background-position:0 10px}
.hs-call.on{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .2s,transform .2s}
.hs-call>b{display:block;font:400 17px var(--mag);letter-spacing:.06em;color:#a01a1a;margin-bottom:2px}
.hs-callt p{margin:0 0 6px}
.hs-callt .hs-you{color:#1a3a9a;font-style:italic}
.hs-callb{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.hs-callb button{flex:1 1 auto;min-height:34px;padding:6px 12px;border:1px solid #c8b880;border-radius:4px;background:#fff6c8;color:#1a1a1a;font:13px var(--ui);text-align:left}
.hs-callb button:hover{background:#ffe98a}
.hs-book{width:100%;border-collapse:collapse;font:13px "Comic Sans MS","Comic Sans",cursive;color:#1a3a9a}
.hs-book td{padding:1px 4px}.hs-book td+td{text-align:right;font-family:"Courier New",monospace;color:#333}

/* the phone's keypad, laid over the real one */
.hs-pad{background:rgba(232,224,200,.0);display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px;box-sizing:border-box}
.hs-padd{width:92%;height:34px;background:#1a2a1a;color:#8aff9a;font:700 20px/34px "Courier New",monospace;text-align:center;border-radius:4px;box-shadow:inset 0 2px 4px #000;overflow:hidden;white-space:nowrap}
.hs-padk{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:92%}
.hs-padk button,.hs-padgo{height:42px;border:0;border-radius:6px;background:linear-gradient(#fbf8ee,#e2dbc4);box-shadow:0 3px 0 #a89c7c,0 4px 6px rgba(0,0,0,.35);font:700 20px var(--ui);color:#3a3428}
.hs-padk button:active,.hs-padgo:active{transform:translateY(2px);box-shadow:0 1px 0 #a89c7c}
.hs-padgo{width:92%;background:linear-gradient(#bfe8b0,#7ac06a);color:#123a0a;font-size:16px;letter-spacing:.1em}
/* the fridge door */
.hs-fridge .hs-fdoor{position:absolute;inset:0;background:linear-gradient(90deg,#f6f4ee,#ecebe4 70%,#dddcd4);overflow:hidden;border-radius:10px 10px 4px 4px}
.hs-fn{position:absolute;width:40%;padding:10px 10px 12px;box-sizing:border-box;transform:rotate(var(--r));box-shadow:2px 4px 6px rgba(0,0,0,.25);font:15px/1.3 "Comic Sans MS","Comic Sans",cursive;color:#1a3a9a;background:#fffbe0}
.hs-fn::before{content:"";position:absolute;left:50%;top:-7px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#ff8a8a,#c01a1a);box-shadow:0 2px 3px rgba(0,0,0,.4)}
.hs-fn b{display:block;color:#a01a1a}
.hs-fn ol{margin:4px 0 4px;padding-left:20px}
.hs-fn li.done{text-decoration:line-through;color:#6a8a6a}
.hs-fn-jobs{width:46%;background:#fff;background-image:repeating-linear-gradient(180deg,transparent 0 19px,rgba(80,120,200,.25) 19px 20px)}
.hs-fn-mom{background:#fff38a}
.hs-fn-menu{background:#c81a1a;color:#ffd84a;font:12px/1.35 var(--ui);width:36%}.hs-fn-menu b{color:#fff;font:400 18px var(--mag)}.hs-fn-menu::before{background:radial-gradient(circle at 35% 35%,#8af,#1a4ad0)}
.hs-fn-draw{background:#fff;width:38%;height:16%}.hs-fn-draw span{position:absolute;left:8px;bottom:6px;font-size:11px;color:#b0106a}
.hs-drawing{position:absolute;inset:8px 8px 24px;background:radial-gradient(circle at 70% 30%,#ffd400 0 12%,transparent 13%),linear-gradient(transparent 62%,#3aa83a 62%),radial-gradient(ellipse 18% 26% at 35% 55%,#ff5aa8 0 60%,transparent 62%),#9ad8ff}
.hs-fn-card{background:#e8f4ff;color:#1a1a1a;font:13px/1.3 var(--ui);width:34%;text-align:center}
.hs-mag{position:absolute;width:34px;height:40px;margin:-20px 0 0 -17px;display:flex;align-items:center;justify-content:center;font:900 30px "Arial Black",Arial,sans-serif;font-style:normal;color:var(--c);text-shadow:1px 2px 0 rgba(0,0,0,.25),0 0 1px rgba(0,0,0,.4);cursor:grab;touch-action:none}
.hs-mag.drag{cursor:grabbing;transform:scale(1.15) rotate(-4deg);z-index:2;text-shadow:3px 6px 4px rgba(0,0,0,.3)}
.hs-fhandle{position:absolute;right:6px;top:12%;width:10px;height:22%;border-radius:5px;background:linear-gradient(90deg,#ccc,#f4f4f4,#bbb)}
/* the microwave's panel */
.hs-micro{background:linear-gradient(#e8e6e0,#d8d6d0);display:flex;flex-direction:column;align-items:center;gap:14px;padding:16px 12px;box-sizing:border-box;border-radius:6px}
.hs-mwd{width:100%;height:70px;background:#081008;color:#7affe0;font:700 48px/70px "Courier New",monospace;text-align:center;border-radius:4px;text-shadow:0 0 10px #3affd0;box-shadow:inset 0 3px 8px #000}
.hs-mwk{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.hs-mwk button{height:64px;border:0;border-radius:6px;background:linear-gradient(#f8f8f4,#d0d0c8);box-shadow:0 3px 0 #999,0 4px 6px rgba(0,0,0,.3);font:700 18px var(--ui);color:#333}
.hs-mwk button:active{transform:translateY(2px);box-shadow:0 1px 0 #999}

/* ================================================================ the family telly (js/hs-telly.js) */
.hs-tvpic{display:block;image-rendering:auto;border-radius:3% / 4%;box-shadow:0 0 0 1px rgba(0,0,0,.6)}
/* the remote, in your hand (bottom right), tilted like you're holding it */
.hs-remote{position:absolute;right:max(18px,3vw);bottom:-30px;width:150px;transform:perspective(600px) rotateX(24deg) rotateZ(-8deg);transform-origin:50% 100%;pointer-events:auto;filter:drop-shadow(0 18px 18px rgba(0,0,0,.55))}
.hs-rbody{padding:14px 12px 46px;border-radius:30px 30px 18px 18px;background:linear-gradient(90deg,#16161a,#2c2c32 30%,#26262c 70%,#121216);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -2px 0 rgba(0,0,0,.6)}
.hs-remote button{display:flex;align-items:center;justify-content:center;height:24px;border:0;border-radius:7px;background:linear-gradient(#5a5a62,#3a3a40);color:#e8e8ec;font:700 11px Arial,sans-serif;box-shadow:0 2px 0 #0a0a0c,inset 0 1px 0 rgba(255,255,255,.15);padding:0}
.hs-remote button:active{transform:translateY(1px);box-shadow:0 1px 0 #0a0a0c}
.hs-remote .sm{font-size:9px}
.hs-rtop,.hs-rfast,.hs-rmid,.hs-rvcr{display:grid;gap:6px;margin-bottom:8px}
.hs-rtop{grid-template-columns:1fr 1fr 1fr}
.hs-rtop .pw{background:linear-gradient(#e03a2a,#a01a10);font-size:14px}
.hs-rtop .tx{background:linear-gradient(#e8c030,#b08a10);color:#1a1a1a}
.hs-rnum{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:8px}
.hs-rnum button{height:26px;border-radius:50%/40%;font-size:13px}
.hs-rfast{grid-template-columns:repeat(4,1fr)}
.hs-rfast button{height:14px;border-radius:4px}
.hs-rfast .fr{background:#e02a1a}.hs-rfast .fg{background:#1ac02a}.hs-rfast .fy{background:#e8d020}.hs-rfast .fc{background:#1ac0d8}
.hs-rmid{grid-template-columns:1fr 1fr}
.hs-rvcr{grid-template-columns:repeat(3,1fr)}
.hs-rbrand{text-align:center;font:700 8px Arial,sans-serif;letter-spacing:.2em;color:#8a8a92}
@media (max-aspect-ratio:3/4){.hs-remote{right:50%;width:min(300px,82vw);transform:translateX(50%) perspective(700px) rotateX(30deg);bottom:-60px}.hs-rbody{padding:10px 10px 60px;display:grid;grid-template-columns:1fr 1fr;column-gap:10px}.hs-rbrand{grid-column:1/3}.hs-remote button{height:26px}}
@media (max-height:500px){.hs-remote{width:130px;bottom:-60px}}
/* close-ups: the camera has already moved right up to the thing, so the room stays (dimly) round the close-up */
html.hs-live .rm-view.rm-close.on{background:radial-gradient(ellipse 70% 70% at 50% 45%,rgba(6,5,6,.5),rgba(6,5,6,.86))}
html.hs-live .powerscr.rm-tvon .hs-gl{visibility:hidden}
/* Jack's mobile up to your face (js/hs-mobile.js): the program's own phone, laid over the 3D one */
.hs-mobwrap{background:transparent}
.hs-mobwrap .tb-ph{background:transparent!important;padding:0!important}
.hs-mobwrap .hs-mobside{display:none}
.hs-mobmeasure{position:fixed;left:-9999px;top:0;visibility:hidden}
.hs-ui.locked .hs-cross{opacity:.9}
.hs-lockhint{position:absolute;left:50%;bottom:18%;transform:translateX(-50%);padding:4px 10px;font:12px/1.2 var(--ui,"MS Sans Serif",Arial,sans-serif);color:#fff8e6;background:rgba(0,0,0,.55);border-radius:3px;pointer-events:none;opacity:0;transition:opacity .3s}
.hs-lockhint.on{opacity:.9}
.hs-loading{position:fixed;inset:0;z-index:40000;background:#25292c;color:#eee4ca;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;font:13px "Courier New",monospace;pointer-events:auto}
.hs-loading>b{font-size:22px;letter-spacing:.12em;color:#dbc172}
.hs-load-track{width:min(300px,70vw);height:12px;padding:3px;border:1px solid #80745b;background:#101316}
.hs-load-track i{display:block;height:100%;background:#bba267;transition:width .12s}
/* One restrained, late-90s game HUD. JackOS retains its own desktop chrome. */
html.hs-live{--game-ui:"Courier New",monospace;--game-panel:rgba(22,25,27,.94);--game-edge:#80745b;--game-ink:#eee4ca;--game-accent:#dbc172}
.hs-ui{font-family:var(--game-ui)}
.hs-ui .hs-title{font:700 15px var(--game-ui);letter-spacing:.08em}
.hs-ui .hs-getup{border-radius:0;font:700 12px var(--game-ui);background:var(--game-panel);border-color:var(--game-edge);color:var(--game-ink)}
.hs-ui .rm-tinbtn,.hs-ui .ch-jobs,.hs-ui .ch-chip,.hs-ui .ch-toolbar button{border:1px solid var(--game-edge);border-radius:0;background:var(--game-panel);color:var(--game-ink);font:12px var(--game-ui);backdrop-filter:none;box-shadow:none}
.hs-ui .ch-chip b,.hs-ui .ch-chip>i,.hs-ui .ch-tname,.hs-ui .ch-thint{font-family:var(--game-ui)}
.hs-ui .ch-dots i{border-radius:0}
.hs-ui.locked .hs-hbtn{display:none}
.hs-ui.locked .hs-tip{left:50%!important;top:calc(50% + 28px);bottom:auto;transform:translateX(-50%)!important}
.hs-tip,.hs-lockhint{border:1px solid var(--game-edge);border-radius:0;background:var(--game-panel);color:var(--game-ink);font:12px/1.4 var(--game-ui);box-shadow:none}
.hs-tip i,.hs-tip small{color:var(--game-accent)}
.hs-ui .rm-note{left:18px;bottom:20px;top:auto;width:min(380px,calc(100vw - 36px));transform:translateY(12px)}
.hs-ui .rm-note.on{transform:none}
.hs-ui.holding .rm-note{bottom:110px}
.hs-ui .rm-note b{font:700 13px var(--game-ui);letter-spacing:.05em}

.hs-inspection{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);display:grid;gap:9px;text-align:center;padding:14px 20px;background:#151914ee;border:1px solid #9b9061;color:#eee4c4;font:13px 'Courier New',monospace;pointer-events:auto;min-width:360px}
.hs-inspection b{font-size:17px;color:#d8c488}.hs-inspection button{justify-self:center;background:#32362c;border:1px solid #a29468;color:#eee4c4;padding:5px 20px;font:inherit}
.hs-inspecting .hs-top,.hs-inspecting .hs-map,.hs-inspecting .hs-cross,.hs-inspecting .hs-lockhint{display:none!important}
.hs-inspection{box-sizing:border-box;max-width:calc(100vw - 32px);min-width:min(360px,calc(100vw - 32px))}
.magazine-page-controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px}
.magazine-page-controls button:disabled{opacity:.45;cursor:default}

/* The physical CRT already supplies the glass/scanlines. The legacy blended
   overlay would composite the entire desktop a second time. */
html.pc-roomview #crtglass{display:none!important}
/* A background desktop stays live for messages and programs. Rest decoration
   instead of repainting dozens of banners/blinks through a moving 3D plane. */
html.hs-screen-idle #monitorSurface *,html.hs-screen-idle #monitorSurface *::before,html.hs-screen-idle #monitorSurface *::after{animation-play-state:paused!important;transition:none!important}

.hs-object-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.hs-object-actions button{padding:5px 12px}

/* Shared room interface: readable context actions, compact inventory and menu. */
html.hs-live{--game-ui:Tahoma,Arial,sans-serif}
.hs-ui .hs-title{font:700 15px "Courier New",monospace}
.hs-hold{box-sizing:border-box;bottom:22px;gap:8px;width:max-content;max-width:min(720px,calc(100vw - 36px));padding:12px 18px;background:var(--game-panel);border:1px solid var(--game-edge);border-top:2px solid var(--game-accent)}
.hs-hmode{font:700 10px "Courier New",monospace;letter-spacing:.14em;color:#a9b0a7}
.hs-hname{font:700 16px/1.25 Tahoma,Arial,sans-serif;text-transform:none;letter-spacing:0;text-shadow:none;text-align:center;white-space:normal}
.hs-hkeys{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;font:13px/1.5 Tahoma,Arial,sans-serif;text-shadow:none;color:var(--game-ink)}
.hs-hkeys>span{white-space:nowrap}.hs-carry-help{font:11px/1.4 Tahoma,Arial,sans-serif;color:#b9bcae;text-align:center}
.hs-hold.snap{border-color:#b9cc85}.hs-hold.snap .hs-hmode{color:#cfdfa6}
/* carrying: the panel says whether it fits where you're aiming (green ghost / red ghost / gold slot) and what the keys do now */
.hs-hold{padding:9px 16px 10px;gap:5px}.hs-hold .hs-hname{font-size:15px}
.hs-hold.fit{border-top-color:#8fdc6a}.hs-hold.fit .hs-hmode{color:#a9dc8c}
.hs-hold.blocked{border-top-color:#e2553f}.hs-hold.blocked .hs-hmode{color:#f2917c}.hs-hold.blocked .hs-carry-help{color:#f0b6a8}
.hs-hold.snap{border-top-color:#ffd84a}.hs-hold.drag{border-top-color:#d6b36a}.hs-hold.drag .hs-hmode{color:#e2c98e}
.hs-hold .hs-hkeys kbd{min-width:1.4em;text-align:center}
/* while you carry something it sits in your hands low in the middle of the view: the panel moves to the bottom-right corner, out of their way (owner, 2026-10-28) */
html:not([data-game-touch="true"]) .hs-ui .hs-hold{left:auto;right:18px;transform:none}
.hs-tip.carry{pointer-events:none;padding:5px 9px;font:12px/1.3 Tahoma,Arial,sans-serif;color:var(--game-ink)}
.hs-ui.locked .hs-tip.carry{left:50%!important;top:calc(50% - 48px)!important;bottom:auto;transform:translateX(-50%)!important} /* the F prompt sits just above the crosshair */
.hs-hbtn button{height:32px;border-radius:0;font:12px Tahoma,Arial,sans-serif}
.hs-ui.holding .hs-tip:not(.carry){display:none}.hs-tip{box-sizing:border-box;max-width:min(520px,calc(100vw - 24px));white-space:normal;padding:9px 12px;font:13px/1.4 Tahoma,Arial,sans-serif}
.hs-tip i{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:5px;font-size:12px}.hs-tip i>span{white-space:nowrap}.hs-tip small{display:block;margin-top:4px}
.hs-voice{top:64px;box-sizing:border-box;width:max-content;max-width:min(560px,calc(100vw - 320px));padding:9px 16px;background:rgba(15,19,21,.88);border-left:2px solid #a79563}
.hs-voice b{font:700 11px "Courier New",monospace;color:#e3cb89;text-shadow:none}
.hs-voice p{font:14px/1.45 Tahoma,Arial,sans-serif;text-shadow:none;margin:4px 0 0}
.hs-inspection{gap:7px;padding:12px 18px;border-top:2px solid #dbc172;background:#161b1df2;font:13px/1.5 Tahoma,Arial,sans-serif}
.hs-inspection b{font:700 16px Tahoma,Arial,sans-serif}.hs-inspection button{font:12px Tahoma,Arial,sans-serif}
.hs-pause{width:min(720px,calc(100vw - 36px));font:13px/1.45 Tahoma,Arial,sans-serif}
.hs-pause-head{padding:14px 20px}.hs-pause-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px 20px}
.hs-pause-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hs-pause-actions button{margin:0}.hs-pause-actions [data-pause=resume]{grid-column:1/-1;background:#4a4938;border-color:#b9a976;color:#fff0bd}
.hs-pause-actions kbd{float:right}.hs-pause-actions:not(:has([data-pause=return]:not([hidden]))) [data-pause=leave],.hs-pause-actions:not(:has([data-pause=leave]:not([hidden]))) [data-pause=return]{grid-column:1/-1}
.hs-pause-main>fieldset{min-width:0;margin:0;padding:10px 12px}.hs-pause-main>fieldset:nth-of-type(n+3){grid-column:1/-1}
.hs-pause-main>fieldset:nth-of-type(n+3)>button{margin-bottom:0}.hs-pause-main .hs-pause-status,.hs-pause-controls{grid-column:1/-1;margin:0}
.hs-pause button{font:700 12px Tahoma,Arial,sans-serif}.hs-pause legend{font:700 12px "Courier New",monospace;letter-spacing:.06em}
.hs-pause-controls{padding:10px 12px;border:1px solid #685f4c}.hs-pause-controls summary{cursor:pointer;color:#d7c591;font:700 12px "Courier New",monospace;letter-spacing:.06em}
.hs-pause-controls summary:focus-visible{outline:1px solid #dbc172;outline-offset:4px}.hs-pause-keys{font:12px/2 Tahoma,Arial,sans-serif;margin:10px 0 0}
@media(max-width:900px){.hs-voice{top:104px;max-width:calc(100vw - 36px)}}
@media(max-width:620px){.hs-pause-main{grid-template-columns:minmax(0,1fr)}.hs-pause-main>fieldset{grid-column:1}.hs-hold{padding:10px 12px}.hs-hkeys{gap:6px 12px}.hs-pause-head,.hs-pause-main{padding-left:14px;padding-right:14px}}

/* Screen actions use the same room controls rather than desktop-style buttons. */
html.hs-live .rm-tvv .rm-tools .rm-b{border:1px solid var(--game-edge);border-bottom:3px solid #101718;border-radius:0;background:var(--game-panel);color:var(--game-ink);font:700 12px/1.2 Tahoma,Arial,sans-serif;box-shadow:none}
html.hs-live .rm-tvv .rm-tools .rm-b:hover,html.hs-live .rm-tvv .rm-tools [aria-pressed=true]{background:#465151;color:#ffe9a2}
html.hs-live .rm-tvv .rm-tools .rm-b:focus-visible{outline:1px solid var(--game-accent);outline-offset:3px}
html.hs-live .rm-live3d .rm-help{font:12px/1.5 Tahoma,Arial,sans-serif}

.hs-inspect-description{max-width:620px;margin:2px 0 0;color:#d2d0bd;font:13px/1.5 Tahoma,Arial,sans-serif;text-align:center}.hs-inspection{max-width:min(760px,calc(100vw - 36px));box-sizing:border-box;max-height:40vh;overflow:auto}

/* transitions: room UI fades in once the camera has landed and out before it moves (hs-world.js MOTION) */
.hs-getup,.hs-inspection{transition:opacity .22s ease-out .06s}
html.hs-moving .hs-getup,html.hs-moving .hs-inspection{opacity:0;transition:opacity .1s ease-in}
.hs-getup:not([hidden]){animation:hsUiIn .24s ease-out both}
.hs-inspection{animation:hsUiIn .24s ease-out .3s both}
html.hs-reduce-motion .hs-inspection{animation-delay:.18s}
@keyframes hsUiIn{from{opacity:0}to{opacity:1}}
/* HUD stacking (world quality pass 2): the top-right column holds the treasure tin and the diary; toasts start below
   them. Spoken lines (Mom shouting up the stairs) sit in the lower third, above the carry bar, clear of the story
   objective at the top and the paper note at the bottom left. The minimap gets a solid backing so it stays legible. */
.hs-ui .rm-toast{top:96px}
.hs-map{opacity:1;background:#15120e;box-shadow:inset 0 0 0 1px rgba(255,240,210,.14),0 1px 4px rgba(0,0,0,.6)}
@media (min-width:901px) and (min-aspect-ratio:3/4){
  .hs-voice{top:auto;bottom:128px;transform:translate(-50%,10px)}
  .hs-voice.on{transform:translate(-50%,0)}
}
