/* One quiet objective below the current-job tracker, clear of subtitles. */
.st-objective{position:absolute;top:52px;left:50%;transform:translateX(-50%);box-sizing:border-box;max-width:calc(100vw - 360px);padding:5px 10px;min-height:30px;border:1px solid var(--game-edge,#80745b);background:var(--game-panel,rgba(22,25,27,.94));color:var(--game-ink,#eee4ca);font:12px/1.4 var(--game-ui,"Courier New",monospace);pointer-events:auto;cursor:pointer;text-align:left}
.st-objective:focus-visible{outline:1px dotted #e4cf9a;outline-offset:3px}
.st-objective[hidden]{display:none}.st-objective.st-tick{color:#c7dc9b;border-color:#9bb572}
html.hs-focus .st-objective,html.hs-inspecting .st-objective,html.hs-paused .st-objective{display:none}
.hs-ui:has(.hs-voice.on) .st-objective,html:not(.st-arrival) .hs-ui:has(.hs-call.on) .st-objective{visibility:hidden}
.hs-ui:has(.np-bub:not(.np-out):not(.np-edge)) .st-objective,html:not(.st-arrival) .hs-ui:has(.rm-note.on,.np-bub:not(.np-out)) .st-objective{visibility:hidden}
/* (st-arrival: a brand-new player's first objective stays up beside Mom's shouts from another room, R242) */
.hs-ui:has(.np-bub:not(.np-out),.hs-voice.on,.hs-call.on) .hs-hold:not(.blocked) .hs-hmode{visibility:hidden}
@media(max-width:900px){.st-objective{top:92px;max-width:calc(100vw - 40px);width:max-content}}
.st-copy{height:100%;display:flex;flex-direction:column;gap:6px;background:#e6dfc8;padding:8px;box-sizing:border-box}
.st-copy-paper{flex:1;min-height:0;overflow:auto}
.st-copy canvas{display:block;width:100%;height:auto}
.st-copy nav{display:flex;justify-content:space-between;align-items:center;gap:8px;font:12px Tahoma,Arial,sans-serif}
.st-copy button{font:inherit;background:#c0c0c0;border:2px outset #fff;padding:3px 8px;color:#000}
/* A game-manual arrow at the border, with a crisp light/dark keyline. */
.st-marker{position:absolute;transform:translate(-50%,-50%);width:40px;height:34px;pointer-events:none;will-change:transform,opacity}
.st-arrow{display:block;width:40px;height:34px;transform-origin:center}
.st-arrow svg{display:block;width:100%;height:100%;animation:st-compass-pulse 1.6s ease-in-out infinite}
@keyframes st-compass-pulse{50%{transform:scale(.86)}}
@media(prefers-reduced-motion:reduce){.st-arrow svg{animation:none}}
.st-marker-label{display:inline-block;max-width:100%;padding:2px 5px;background:#1d211fc4;overflow-wrap:anywhere}
.st-prompt{position:absolute;right:26px;bottom:174px;max-width:260px;padding:5px 9px;color:#eee2bd;background:#20231ec9;border-left:2px solid #b8a16b;font:12px/1.4 "Courier New",monospace;pointer-events:none}
.st-chapter{position:absolute;left:26px;top:158px;max-width:calc(100% - 52px);padding:12px 18px;border-top:1px solid #bda66b;border-bottom:1px solid #807455;background:#21251fec;color:#eddeb9;letter-spacing:2px;font:bold 19px/1.4 "Courier New",monospace;pointer-events:none}
.st-marker[hidden],.st-prompt[hidden],.st-chapter[hidden]{display:none}
.st-quests{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0 24px 0 38px;border:1px solid #9b8b65;border-left:9px solid #35465c;background:repeating-linear-gradient(transparent 0 27px,#8097ad22 27px 28px),#f0e8d0;color:#30445f;box-shadow:5px 6px 0 #1119;font:14px/1.5 "Courier New",monospace;overflow:auto;overscroll-behavior:contain}
.st-quests::backdrop{background:#0d151e85}
.st-quests header{position:relative;border-bottom:1px solid #a65c5077;padding:22px 40px 14px 0}
.st-quests header small{font-size:10px;letter-spacing:2px;color:#74755f}
.st-quests h1{margin:2px 0 0;font:italic bold 30px/1.2 Georgia,"Times New Roman",serif}
.st-quests header button{position:absolute;right:-12px;top:12px;width:44px;height:44px;border:0;background:transparent;color:#705c49;font:26px Georgia,serif;cursor:pointer}
.st-quest-note{margin:14px 0 18px;color:#666b66;font:italic 15px/1.5 Georgia,"Times New Roman",serif}
.st-quest-list h2{font:bold 11px "Courier New",monospace;letter-spacing:1px;text-transform:uppercase;margin:22px 0 8px;color:#836048}
.st-quest-list>button{display:flex;gap:13px;text-align:left;width:100%;min-height:48px;border:0;border-bottom:1px solid #9aa29a55;background:transparent;color:inherit;padding:12px 8px 14px 0;font:inherit;cursor:pointer}
.st-quest-list>button[aria-pressed="true"]{background:#d8dfce80}
.st-quest-list>button:hover{background:#e0dcc0}
.st-quest-list strong{font-size:14px;line-height:1.45;display:block}
.st-quest-list small{display:block;color:#59666c;font:12px/1.55 "Courier New",monospace;margin-top:5px}
.st-quest-check{font-size:20px;line-height:1.1;color:#78866b;min-width:22px;padding-top:1px}
.st-quests button:focus-visible{outline:2px dotted #576a7a;outline-offset:-3px}
.st-quests footer{padding:18px 0;font-size:11px;color:#76735f}
@media(max-width:600px){.st-objective{min-height:44px;padding:7px 10px}.st-prompt{right:18px;bottom:192px;max-width:190px;font-size:11px}.st-quests{padding:0 16px 0 22px}.st-quest-list>button{padding-top:14px;padding-bottom:16px}.st-quests h1{font-size:28px}}
@media(max-height:500px){.st-objective{top:48px;max-width:calc(100vw - 200px)}.st-quests{max-height:calc(100dvh - 16px)}.st-quests header{padding-top:14px}.st-prompt{bottom:112px}}
#monitorSurface.st-recovering{background:#537a7a!important}
#monitorSurface.st-recovering>:not(.st-recovery){visibility:hidden!important}
#monitorSurface.st-recovering::before{content:"JackOS 98 Setup";position:absolute;left:30px;top:24px;font:italic bold 30px Tahoma,Arial,sans-serif;color:#fff;text-shadow:2px 2px #244747;pointer-events:none}

/* The temporary job strip owns this space while carrying on a small screen. */
@media(max-width:900px){.hs-ui.holding:has(.ch-chip:not([hidden])) .st-objective{visibility:hidden}}

/* The label sits inside the border, beside the compass, never outside the view. */
.st-marker[data-state="edge"] .st-marker-label{position:absolute;top:2px;left:44px;max-width:min(180px,calc(100vw - 100px));width:max-content;padding:5px 7px;border:1px solid #8c7e59;color:#fff0be;background:#20231eef;font:700 11px/1.3 "Courier New",monospace;overflow-wrap:normal}
.st-marker[data-side="right"] .st-marker-label{left:auto;right:44px}
.st-marker[data-border="bottom"] .st-marker-label{top:auto;bottom:64px}

/* A dismissed note yields its reading space immediately, before its opacity fade. */
.hs-ui .hs-note:not(.on){visibility:hidden}

/* Recovery is a mandatory first-run screen: full-size JackOS lettering and
   finger-sized disk buttons in the touch close-up, in either orientation. */
html[data-game-touch="true"].pc-desktop-full .st-recovery .appbody{font:16px/1.4 Tahoma,Arial,sans-serif}
html[data-game-touch="true"].pc-desktop-full .st-recovery .btn{min-width:44px;min-height:44px;padding:8px 14px;font:16px Tahoma,Arial,sans-serif}
html[data-game-touch="true"].pc-desktop-full .st-recovery .pg-dlgbtns{flex-wrap:wrap}

/* Guidance layout owns the complete arrow/name envelope, including safe areas. */
.hs-ui .st-marker[data-state="edge"][data-side]{margin-left:0}
.hs-ui .st-marker[data-state="edge"] .st-marker-label{top:0;bottom:auto;overflow-wrap:anywhere}
