:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #10140f; overflow: hidden; font-family: "IM Fell English", Georgia, "Times New Roman", serif; font-size: 17px; color: #e9eee4; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; text-align: center; }
body[data-mode="loading"] #landing, body[data-mode="landing"] #landing { display: flex; }
body[data-mode="paused"] #paused { display: flex; }
body[data-mode="settings"] #settings { display: flex; }
body[data-mode="replay"] #replay, body[data-mode="ask"] #ask { display: flex; }
.row { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 15px; color: #d7dfd0; text-align: left; }
.row span { flex: 1; }
.row input[type=range] { width: 150px; accent-color: #c9d6b8; }
.row output { width: 34px; text-align: right; font-variant-numeric: tabular-nums; color: #aab3a4; }
.row input[type=checkbox] { width: 18px; height: 18px; accent-color: #c9d6b8; }
#settings-done { margin-top: 10px; }
/* the dev notes: a page to read, from the start screen or the pause screen; the text scrolls inside the card */
body.notes #notes { display: flex; }
body.notes #landing, body.notes #paused { display: none !important; }
.card.notes { display: flex; flex-direction: column; width: 100%; max-width: 600px; max-height: 100%; padding-bottom: 24px; background: rgba(8, 12, 8, 0.82); }
.card.notes h2 { margin-bottom: 0; }
.notes-body { flex: 1; min-height: 0; overflow-y: auto; margin: 16px 0 18px; padding-right: 6px; text-align: left; font-size: 16px; line-height: 1.55; color: #d7dfd0; border-top: 1px solid rgba(255,255,255,0.1); }
.card.notes a { color: #d7dfd0; text-underline-offset: 3px; }
.card.notes a:hover { color: #fff; }
#notes-done { align-self: center; }
#notes { background: rgba(0, 0, 0, 0.5); }
.report-box { display: flex; justify-content: center; width: 100%; max-height: 100%; }
/* --- the start screen: an LCD, after the MQ-01 on the site's front page (pale green glass, dark green type, a cursor
   that inverts its row, the status line at the foot). Jersey 10, the same face as the handheld in the game. */
@font-face { font-family: "Jersey 10"; src: url("fonts/Jersey10-Regular.woff2") format("woff2"); font-display: block; }
#landing, #paused, #settings, .lcdp { padding: 10px; }
.lcdp .lcd-body { padding-top: 10px; }
#paused .lcd-body, #settings .lcd-body { padding-top: 10px; }
/* the settings: each row is a name and its control, in the screen's own ink (and the glass's, under the cursor) */
:is(#settings) .row.set { display: flex; align-items: center; gap: 10px; font-size: 22px; padding-right: 12px; }
#settings .row.set span { flex: 1; }
#settings .row output { width: 30px; text-align: right; font-variant-numeric: tabular-nums; color: inherit; }
#settings .row input { color: inherit; accent-color: currentColor; }
#settings .row input[type=range] { -webkit-appearance: none; appearance: none; width: 120px; height: 18px; margin: 0; background: transparent; color: inherit; cursor: pointer; }
#settings .row input[type=range]::-webkit-slider-runnable-track { height: 3px; background: currentColor; }
#settings .row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 16px; margin-top: -6.5px; background: currentColor; border: 0; border-radius: 0; }
#settings .row input[type=range]::-moz-range-track { height: 3px; background: currentColor; }
#settings .row input[type=range]::-moz-range-thumb { width: 10px; height: 16px; background: currentColor; border: 0; border-radius: 0; }
#settings .row input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0 2px 0 0; border: 2px solid currentColor; border-radius: 0; padding: 2px; background: transparent; background-clip: content-box; cursor: pointer; }
#settings .row input[type=checkbox]:checked { background-color: currentColor; }
#settings .controls-list { margin: 10px 18px 0; padding-top: 8px; border-top: 2px solid var(--ink); color: var(--ink); font-size: 17px; line-height: 1.2; }
#settings .controls-list > div { margin: 3px 0; }
#settings .controls-list .head { color: var(--ink2); font-size: 15px; letter-spacing: 0.16em; }
#settings .controls-list span { color: var(--ink2); font-size: 14px; flex-basis: 96px; }
.lcd-foot .desk-only, .lcd-foot .phone-only { font-size: 16px; color: var(--ink2); }
.lcd { --ink: #1c3320; --ink2: #3d5a36; --glass: #c9d3a2; --glass2: #bcc893; width: min(94vw, 560px); max-height: 100%; display: flex; flex-direction: column; background: transparent; border: 12px solid #101410; border-top-width: 0; outline: 1px solid #2a332a; border-radius: 10px; padding: 0; box-shadow: 0 14px 50px rgba(0, 0, 0, 0.55); font-family: "Jersey 10", "Monocraft", monospace; text-shadow: none; text-align: left; }
.lcd-bar { color: #c9d3a2; background: #101410; font-size: 15px; letter-spacing: 0.22em; padding: 10px 4px 8px; }
.lcd-bar i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5ee06a; box-shadow: 0 0 6px #5ee06a; margin-right: 9px; vertical-align: 1px; }
.lcd-screen { min-height: 0; overflow-y: auto; color: var(--ink); }
.lcd-body { padding: 0 0 8px; background: var(--glass) radial-gradient(circle, rgba(28, 51, 32, 0.13) 0.6px, transparent 0.9px) 0 0 / 3px 3px; }
.lcd-view { height: clamp(70px, 22vh, 170px); border-bottom: 2px solid var(--ink); box-shadow: inset 0 0 0 1px rgba(16, 20, 16, 0.6); }
/* the window: the glass is cut away over the picture, so the place behind the screen shows through it */
.lcd-screen h1 { font-family: inherit; font-size: clamp(34px, 8vw, 46px); letter-spacing: 0.02em; line-height: 1; margin: 2px 0 0; text-align: center; color: var(--ink); }
.lcd-sub { margin: 4px 12px 10px; text-align: center; color: var(--ink2); font-size: 17px; letter-spacing: 0.04em; }
.lcd-who { margin: 0 18px; font-size: 24px; }
.lcd-who:empty { display: none; }
.lcd-line { margin: 0 18px 2px; color: var(--ink2); font-size: 17px; letter-spacing: 0.03em; }
.lcd .menu { margin: 8px 12px 6px; display: flex; flex-direction: column; }
:is(#landing, #paused, #settings, .lcdp) .row { all: unset; box-sizing: border-box; display: block; font: inherit; font-size: 26px; line-height: 1.15; letter-spacing: 0.03em; color: var(--ink); padding: 2px 8px 3px 34px; cursor: pointer; position: relative; }
:is(#landing, #paused, #settings, .lcdp) .row.sub { font-size: 20px; padding-left: 52px; color: var(--ink2); }
:is(#landing, #paused, #settings, .lcdp) .row.on { background: var(--ink); color: var(--glass); }
:is(#landing, #paused, #settings, .lcdp) .row.on::before { content: ''; position: absolute; left: 12px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; }
:is(#landing, #paused, #settings, .lcdp) .row:disabled { opacity: 0.45; cursor: default; }
.lcd-keys { margin: 6px 18px 0; color: var(--ink2); font-size: 15px; line-height: 1.25; letter-spacing: 0.03em; }
.lcd-keys span { border: 1px solid var(--ink2); padding: 0 4px; border-radius: 2px; }
.lcd-foot { border-top: 2px solid var(--ink); background: var(--glass2); color: var(--ink); font-size: 18px; letter-spacing: 0.03em; padding: 4px 12px 5px; min-height: 30px; }
.lcd-foot #load:not(:empty) + .save-line { display: none; }
.lcd-foot .save-line:empty::before { content: 'ready'; }
@media (max-height: 520px) { .lcd-view, .lcd-keys { display: none; } :is(#landing, #paused, #settings, .lcdp) .row { font-size: 22px; } .lcd-who { font-size: 20px; } }

#touchui { position: fixed; inset: 0; pointer-events: none; display: none; }
body[data-mode="playing"] #touchui { display: block; }
#stick, #look-hint { display: none; }
body.controls #stick, body.lookui #look-hint { display: block; }
#stick { position: absolute; left: 70px; bottom: 90px; width: 120px; height: 120px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.05); }
#stick-knob { position: absolute; left: 36px; top: 36px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.5); transition: transform 0.05s; }
#look-hint { position: absolute; right: 24px; bottom: 120px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
@media (pointer: fine) { #touchui { display: none !important; } }
.controls-list { margin: 14px 0 6px; font-size: 14px; color: #c9d2c2; text-align: left; line-height: 1.9; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; }
.controls-list > div { display: flex; gap: 10px; line-height: 1.35; margin: 5px 0; }
.controls-list .head { color: #8f9a8a; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; margin-bottom: 8px; }
.controls-list span { flex: 0 0 92px; color: #8f9a8a; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }

#reticle { position: fixed; width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 1.5px solid rgba(255, 236, 170, 0.5); border-radius: 3px; pointer-events: none; opacity: 0; transform: scale(1.4); }
/* the crosshair in the middle of the click's mark: where the click landed */
#reticle::before, #reticle::after, #reticle i { content: ''; position: absolute; background: rgba(255, 244, 205, 0.95); box-shadow: 0 0 2px rgba(0, 0, 0, 0.7); }
#reticle::before { left: 50%; top: 50%; width: 2px; height: 22px; margin: -11px 0 0 -1px; clip-path: polygon(0 0, 100% 0, 100% 36%, 0 36%, 0 64%, 100% 64%, 100% 100%, 0 100%); }
#reticle::after { left: 50%; top: 50%; width: 22px; height: 2px; margin: -1px 0 0 -11px; clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0); }
#reticle i { left: 50%; top: 50%; width: 2px; height: 2px; margin: -1px 0 0 -1px; }

#reticle.show { animation: reticle 1.1s ease-out forwards; }
@keyframes reticle { 0% { opacity: 1; transform: scale(1.4); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
body[data-mode="found"] #found { display: flex; }

.card { max-width: 520px; padding: 36px 32px; background: rgba(8, 12, 8, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; }
.card.plain { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: #3b4634; text-shadow: none; }
.card.plain .small { color: #5a6652; }
/* titles and buttons are Freckle Face, everything read is IM Fell English; the journal and the satchel keep their pixel font */
h1, h2, button { font-family: "Freckle Face", "IM Fell English", Georgia, serif; }
h1 { font-weight: 400; letter-spacing: 0.03em; font-size: clamp(34px, 7vw, 52px); line-height: 1.1; margin: 0 0 10px; }
h2 { font-weight: 400; letter-spacing: 0.04em; font-size: 30px; line-height: 1.1; margin: 0 0 18px; }
.sub { margin: 0 0 26px; color: #c9d2c2; font-size: 18px; }
.small { font-size: 14px; color: #aab3a4; margin: 10px 0 0; line-height: 1.6; }
.keys span { padding: 1px 5px; border: 1px solid rgba(255,255,255,0.18); border-radius: 3px; font-size: 12px; letter-spacing: 0.05em; }

button { font-size: inherit; cursor: pointer; border: 1px solid rgba(255,255,255,0.35); background: rgba(236, 244, 226, 0.92); color: #15200f; padding: 13px 26px; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 3px; transition: background 0.2s, transform 0.2s; }
button:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
button:disabled { opacity: 0.4; cursor: default; }
button.ghost { background: transparent; color: #d7dfd0; margin-left: 10px; }

#hud { position: fixed; inset: 0; pointer-events: none; display: none; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
body[data-mode="playing"] #hud, body[data-mode="found"] #hud { display: block; }
/* the clean screen (H, or the setting): nothing over the picture at all. The drawing of a find is still held up:
   it is the one thing a walker with a clean screen went looking for */
body.nohud #hud > *, body.nohud #toast, body.nohud #reticle, body.nohud #stick, body.nohud #look-hint { display: none !important; }
@media (pointer: coarse) { body.nohud #hud > #pause { display: block !important; opacity: 0.16; } }   /* a phone still needs its way back */
@media (pointer: fine) { .phone-only { display: none !important; } }
@media (pointer: coarse) { .desk-only { display: none !important; } }
.rec { position: absolute; top: max(18px, env(safe-area-inset-top)); left: max(22px, env(safe-area-inset-left)); font-size: 16px; letter-spacing: 0.1em; color: rgba(255,255,255,0.78); }
.rec .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e23b2e; margin-right: 8px; animation: blink 1.6s steps(1) infinite; vertical-align: 0; }
@keyframes blink { 50% { opacity: 0.15; } }
#hud-level { position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(22px, env(safe-area-inset-right)); font-size: 16px; letter-spacing: 0.12em; color: rgba(255,255,255,0.7); }
#hud-weather { position: absolute; top: calc(max(18px, env(safe-area-inset-top)) + 44px); right: max(22px, env(safe-area-inset-right)); font-size: 13px; letter-spacing: 0.16em; color: rgba(255,255,255,0.4); }
#hud-moss { position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); left: max(22px, env(safe-area-inset-left)); font-size: 15px; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); font-style: italic; }
#hud-place { position: absolute; top: calc(max(18px, env(safe-area-inset-top)) + 24px); right: max(22px, env(safe-area-inset-right)); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.hint { position: absolute; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 44px); left: 0; right: 0; text-align: center; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); animation: fade 7s forwards; }
@keyframes fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
#hud .tiny { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); right: max(22px, env(safe-area-inset-right)); pointer-events: auto; background: transparent; color: rgba(255,255,255,0.5); border: 0; padding: 6px; font-family: inherit; font-size: 13px; letter-spacing: 0.1em; }
.touch-only { display: none; position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); pointer-events: auto; background: rgba(0,0,0,0.25); color: #fff; border-color: rgba(255,255,255,0.25); padding: 8px 16px; font-size: 14px; }
@media (pointer: coarse) { .touch-only { display: block; } .keys { display: none; } }

/* the find: a pencil drawing held up for a moment */
/* --- the card held up for a find, a bug, a picture: a panel of the satchel's own (stone-brown, a dark edge with a lit
   line inside, Monocraft with its hard shadow), the drawing on a slip of paper sunk into it, an x to put it away */
#find { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(60px, env(safe-area-inset-bottom)); width: 252px; padding: 6px 8px 10px; z-index: 4;
  background: #4a3e32; color: #e8dcc0; border: 2px solid #15110d; border-radius: 0; box-shadow: inset 2px 2px 0 #6b5b49, inset -2px -2px 0 #2a221b, 4px 4px 0 rgba(0, 0, 0, 0.45);
  font-family: "Monocraft", monospace; text-shadow: 1px 1px 0 #000; text-align: left; -webkit-font-smoothing: none;
  opacity: 0; visibility: hidden; transform: translateX(24px); pointer-events: none; }
#find.show { animation: findpage 6s steps(1, end) forwards, findslide 0.18s steps(3, end); visibility: visible; pointer-events: auto; }
#find.show:hover { animation-play-state: paused; }
#find.gone { animation: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
@keyframes findpage { 0% { opacity: 1; transform: none; } 97% { opacity: 1; transform: none; visibility: visible; } 100% { opacity: 0; transform: none; visibility: hidden; } }
@keyframes findslide { from { transform: translateX(24px); } to { transform: none; } }
#find .find-head { display: flex; align-items: center; gap: 6px; min-height: 20px; margin: 0 -2px 6px 0; }
#find .find-kicker { flex: 1; font-size: 12px; line-height: 14px; color: #ff981f; text-transform: lowercase; letter-spacing: 0.02em; }
#find .find-x { flex: none; width: 24px; height: 22px; padding: 0; margin: 0; border: 2px solid #15110d; border-radius: 0; background: #5a4c3d; color: #e8dcc0; font: inherit; font-size: 16px; line-height: 16px; text-shadow: 1px 1px 0 #000; cursor: pointer; box-shadow: inset 2px 2px 0 #7d6c58, inset -2px -2px 0 #2a221b; transition: none; }
#find .find-x:hover:not(:disabled) { background: #6e5c48; color: #fff; transform: none; }
#find .find-pic { position: relative; padding: 4px; background: #e9e2cf; border: 2px solid #221c16; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.12); }
#find.dark .find-pic { background: #3b3127; box-shadow: inset 2px 2px 0 #2e261f, inset -2px -2px 0 #54483a; }
#find canvas { display: block; width: 220px; height: 160px; margin: 0 auto; }
#find .find-title { font-size: 14px; line-height: 17px; margin: 8px 0 2px; color: #fff; }
#find .find-sub { font-size: 11px; line-height: 14px; color: #c9bd9f; }
#find .find-note { font-size: 11px; line-height: 15px; margin-top: 7px; padding-top: 6px; border-top: 2px solid #2a221b; box-shadow: 0 -1px 0 #5a4c3d; color: #e8dcc0; }
#find .find-note:empty { display: none; }
#find .find-note em { font-style: normal; color: #9c8f78; }
#find.long { width: min(94vw, 680px); max-height: calc(100vh - 24px); overflow-y: auto; }
#find.long .find-pic { float: left; margin: 0 12px 6px 0; }
#find.long::after { content: ''; display: block; clear: both; }
@media (max-width: 560px) { #find.long .find-pic { float: none; margin: 0 0 4px; } }
@media (max-height: 430px) { #find.long { bottom: 12px; } }
body[data-mode="leaving"] #hud { display: none; }

/* the journal: a Book and Quill. 1 book pixel = var(--s) css pixels; the book is 146 x 180 */
@font-face { font-family: "Monocraft"; src: url("fonts/Monocraft.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "Freckle Face"; src: url("fonts/FreckleFace-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("fonts/IMFellEnglish-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell English"; font-style: italic; src: url("fonts/IMFellEnglish-Italic.woff2") format("woff2"); font-display: swap; }
#book { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.5); --s: 2; z-index: 5; }
body.book #book { display: flex; }
body.book #paused, body.book #landing, body.book #hud, body.book #touchui { display: none !important; }
body:not(.hasbook) .hasbook-only { display: none !important; }
#bq { position: relative; margin: auto; width: calc(200px * var(--s)); display: flex; flex-direction: column; align-items: center; font-family: "Monocraft", monospace; font-size: calc(9px * var(--s)); line-height: calc(9px * var(--s)); font-feature-settings: "liga" 0, "calt" 0; font-kerning: none; font-variant-ligatures: none; letter-spacing: 0; -webkit-font-smoothing: none; text-rendering: optimizeSpeed; color: #000; text-align: left; user-select: none; -webkit-user-select: none; }
.bq-book { position: relative; width: calc(146px * var(--s)); height: calc(180px * var(--s)); }
.bq-book > canvas.art { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
#bq-pageno { position: absolute; right: calc(21px * var(--s)); top: calc(16px * var(--s)); white-space: pre; }
#bq-text { position: absolute; left: calc(20px * var(--s)); top: calc(30px * var(--s)); width: calc(114px * var(--s)); height: calc(126px * var(--s)); white-space: pre; overflow: hidden; pointer-events: none; }
#bq-cursor { position: absolute; display: none; left: calc((20px + 6px * var(--col, 0)) * var(--s)); top: calc((30px + 9px * var(--line, 0)) * var(--s)); width: calc(1px * var(--s)); height: calc(9px * var(--s)); background: #000; animation: bq-blink 1s steps(2, start) infinite; pointer-events: none; }
#bq-cursor.end { width: calc(6px * var(--s)); height: calc(1px * var(--s)); top: calc((30px + 9px * var(--line, 0) + 8px) * var(--s)); }
@keyframes bq-blink { to { visibility: hidden; } }
#bq-input { position: absolute; left: calc(20px * var(--s)); top: calc(30px * var(--s)); width: calc(114px * var(--s)); height: calc(126px * var(--s)); margin: 0; padding: 0; border: 0; outline: 0; border-radius: 0; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; resize: none; overflow: hidden; font: inherit; line-height: inherit; letter-spacing: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; cursor: text; }
#bq-input::selection { background: rgba(60, 80, 160, 0.3); }
/* the inputs can be written in even though the book around them cannot be selected; on phones their own text is at least
   16 px so iOS does not zoom the page when the keyboard comes up (what is shown is the rendered copy, not this text) */
#bq-input, #bq-title { user-select: text; -webkit-user-select: text; -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) { #bq-input, #bq-title { font-size: max(16px, 9px * var(--s)); } }
/* on phones, until the page is tapped: where to tap to write */
#bq-hint { display: none; position: absolute; left: calc(20px * var(--s)); top: calc(78px * var(--s)); width: calc(114px * var(--s)); text-align: center; color: #7a6f5a; pointer-events: none; white-space: pre-wrap; }
#bq.hint #bq-hint { display: block; }
#bq-cover { display: none; position: absolute; left: calc(20px * var(--s)); top: calc(56px * var(--s)); width: calc(114px * var(--s)); text-align: center; }
#bq.cover #bq-cover { display: block; }
#bq-cover-title { text-shadow: calc(1px * var(--s)) 0 0 #000; white-space: pre-wrap; overflow-wrap: anywhere; }
#bq-cover-by { margin-top: calc(12px * var(--s)); color: #5a5a5a; }
#bq-signpanel { display: none; position: absolute; left: calc(20px * var(--s)); top: calc(32px * var(--s)); width: calc(114px * var(--s)); text-align: center; }
#bq[data-kind="sign"] #bq-signpanel { display: block; }
.bq-sign-head { text-shadow: calc(1px * var(--s)) 0 0 #000; }
#bq-sign-title { position: relative; margin-top: calc(14px * var(--s)); height: calc(9px * var(--s)); white-space: pre; }
#bq-sign-title::after { content: "_"; animation: bq-blink 1s steps(2, start) infinite; }
#bq-title { position: absolute; left: 0; top: calc(20px * var(--s)); width: 100%; height: calc(12px * var(--s)); margin: 0; padding: 0; border: 0; outline: 0; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font: inherit; text-align: center; }
#bq-sign-by { margin-top: calc(1px * var(--s)); color: #5a5a5a; }
.bq-sign-note { margin-top: calc(22px * var(--s)); white-space: pre-wrap; color: #000; }
.bq-arrow { position: absolute; top: calc(157px * var(--s)); width: calc(23px * var(--s)); height: calc(13px * var(--s)); padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; transition: none; }
.bq-arrow:hover:not(:disabled) { background: transparent; transform: none; }
.bq-arrow canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.bq-arrow canvas.lit { display: none; }
.bq-arrow:hover canvas.lit { display: block; }
.bq-arrow:hover canvas.dim { display: none; }
#bq-prev { left: calc(20px * var(--s)); }
#bq-prev canvas { transform: scaleX(-1); }
#bq-next { left: calc(93px * var(--s)); }
#bq[data-kind="sign"] .bq-arrow, #bq[data-kind="sign"] #bq-text, #bq[data-kind="sign"] #bq-pageno, #bq[data-kind="sign"] #bq-input, #bq[data-kind="sign"] #bq-cursor { display: none !important; }
#bq[data-kind="read"] #bq-input { display: none; }
/* the game's grey bevelled buttons */
button.mc { font: inherit; line-height: calc(9px * var(--s)); height: calc(20px * var(--s)); width: calc(98px * var(--s)); padding: 0; border: calc(1px * var(--s)) solid #000; border-radius: 0; background: #6f6f6f; color: #fff; text-shadow: calc(1px * var(--s)) calc(1px * var(--s)) 0 #3f3f3f; letter-spacing: 0; text-transform: none; transition: none; box-shadow: inset calc(1px * var(--s)) calc(1px * var(--s)) 0 #a9a9a9, inset calc(-1px * var(--s)) calc(-1px * var(--s)) 0 #4a4a4a; }
button.mc:hover:not(:disabled) { background: #7d8bc7; color: #ffffa0; transform: none; box-shadow: inset calc(1px * var(--s)) calc(1px * var(--s)) 0 #b4bfef, inset calc(-1px * var(--s)) calc(-1px * var(--s)) 0 #4f5a85; }
button.mc:disabled { background: #4b4b4b; color: #a0a0a0; opacity: 1; cursor: default; box-shadow: inset calc(1px * var(--s)) calc(1px * var(--s)) 0 #5e5e5e, inset calc(-1px * var(--s)) calc(-1px * var(--s)) 0 #353535; }
button.mc.wide { width: calc(200px * var(--s)); }
button.mc.small { width: auto; padding: 0 calc(4px * var(--s)); }
button.mc.active { background: #8a8a8a; color: #ffffa0; }
.bq-buttons { display: flex; gap: calc(4px * var(--s)); justify-content: center; width: calc(200px * var(--s)); margin-top: calc(16px * var(--s)); }
#bq[data-kind="quill"] #bq-signclose, #bq[data-kind="quill"] #bq-cancel, #bq[data-kind="quill"] #bq-close { display: none; }
#bq[data-kind="sign"] #bq-signbtn, #bq[data-kind="sign"] #bq-done, #bq[data-kind="sign"] #bq-close { display: none; }
#bq[data-kind="read"] #bq-signbtn, #bq[data-kind="read"] #bq-done, #bq[data-kind="read"] #bq-signclose, #bq[data-kind="read"] #bq-cancel { display: none; }
#bq-shelf { display: none; flex-wrap: wrap; gap: calc(4px * var(--s)); justify-content: center; width: calc(200px * var(--s)); margin-top: calc(4px * var(--s)); max-height: calc(48px * var(--s)); overflow-y: auto; scrollbar-width: none; }
#bq-shelf::-webkit-scrollbar { display: none; }
/* the book in the hand: a tap button on phones once it has been found, and the pickup's toast */
#book-btn { left: calc(50% + 34px); transform: none; width: 44px; height: 38px; padding: 4px 0 0; line-height: 0; }
#book-btn canvas { width: 28px; height: 28px; image-rendering: pixelated; image-rendering: crisp-edges; }
#bag-btn { left: calc(50% + 82px); transform: none; width: 44px; height: 38px; padding: 4px 0 0; line-height: 0; }
#bag-btn canvas { width: 28px; height: 28px; image-rendering: pixelated; image-rendering: crisp-edges; }

/* the satchel: the old inventory panel. 1 panel pixel = var(--k) css pixels; the panel is 184 x 360 */
#satchel { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: none; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); --k: 1.5; z-index: 5; }
body.satchel #satchel { display: flex; }
body.satchel #paused, body.satchel #landing, body.satchel #hud, body.satchel #touchui { display: none !important; }
#sat { position: relative; width: calc(184px * var(--k)); height: calc(360px * var(--k)); font-family: "Monocraft", monospace; font-size: calc(8px * var(--k)); line-height: calc(8px * var(--k)); -webkit-font-smoothing: none; text-rendering: optimizeSpeed; font-kerning: none; user-select: none; -webkit-user-select: none; }
#sat > canvas.art { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
#sat-title { position: absolute; left: calc(9px * var(--k)); top: calc(39px * var(--k)); color: #ff981f; text-shadow: calc(1px * var(--k)) calc(1px * var(--k)) 0 #000; }
#sat-count { color: #c9bd9f; margin-left: calc(4px * var(--k)); }
#sat-close { position: absolute; right: calc(6px * var(--k)); top: calc(36px * var(--k)); width: calc(14px * var(--k)); height: calc(13px * var(--k)); cursor: pointer; padding: 0; border: calc(1px * var(--k)) solid #15110d; border-radius: 0; background: #5a4c3d; color: #e8dcc0; font: inherit; line-height: calc(10px * var(--k)); letter-spacing: 0; text-transform: none; transition: none; box-shadow: inset calc(1px * var(--k)) calc(1px * var(--k)) 0 #7d6c58, inset calc(-1px * var(--k)) calc(-1px * var(--k)) 0 #2a221b; }
#sat-close:hover:not(:disabled) { background: #6e5c48; transform: none; }
#sat-slots { position: absolute; inset: 0; transform: scale(var(--k)); transform-origin: 0 0; width: 184px; height: 360px; }
#sat .slot { position: absolute; width: 40px; height: 40px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; cursor: default; transition: none; }
#sat .slot.held { cursor: pointer; }
#sat .slot.locked { cursor: help; }
#sat .slot.locked .icon { opacity: 0.9; }
#sat .slot.held:hover { background: rgba(255, 220, 150, 0.08); transform: none; }
#sat .slot.selected { background: rgba(255, 220, 150, 0.16); outline: 1px solid rgba(255, 200, 100, 0.6); outline-offset: -1px; }
#sat .slot .icon { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }
/* the menu text: the action and the item's name take the title's place while a slot is named */
#sat-name { position: absolute; left: calc(9px * var(--k)); top: calc(39px * var(--k)); right: calc(22px * var(--k)); color: #ff981f; text-shadow: calc(1px * var(--k)) calc(1px * var(--k)) 0 #000; white-space: nowrap; overflow: hidden; display: none; }
#sat-name.show { display: block; }
#sat:has(#sat-name.show) #sat-title { visibility: hidden; }
#sat-name .verb { color: #fff; }
/* the satchel's tabs, its pages, the right-click menu, the line Examine writes, and an item being carried */
#sat .tab { position: absolute; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; transition: none; }
#sat .tab:hover { background: rgba(255, 220, 150, 0.10); transform: none; }
#sat .tab:focus-visible, #sat .slot:focus-visible, #sat .page button:focus-visible, #sat .menu button:focus-visible { outline: 1px solid #ffcf7a; outline-offset: -1px; }
#sat-slots[data-tab]:not([data-tab="bag"]) .slot { display: none; }
#sat-slots[data-tab="bag"] .page { display: none; }
#sat .slot { touch-action: none; }
#sat .slot .n { position: absolute; left: 2px; top: 1px; font-size: 8px; line-height: 8px; color: #ffff00; text-shadow: 1px 1px 0 #000; pointer-events: none; }
#sat .slot.lifting .icon, #sat .slot.lifting .n { opacity: 0.25; }
#sat .slot.over { background: rgba(255, 220, 150, 0.22); outline: 1px solid rgba(255, 200, 100, 0.8); outline-offset: -1px; }
.sat-ghost { position: fixed; z-index: 30; pointer-events: none; image-rendering: pixelated; image-rendering: crisp-edges; opacity: 0.9; }
#sat .page { position: absolute; overflow-x: hidden; overflow-y: auto; font-size: 8px; line-height: 11px; color: #e8dcc0; text-shadow: 1px 1px 0 #000; text-align: left; scrollbar-width: thin; scrollbar-color: #6b5b49 #2e261f; }
#sat .page .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 13px; padding: 1px 3px; margin: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; letter-spacing: 0; text-transform: none; text-shadow: inherit; text-align: left; transition: none; }
#sat .page button.row { cursor: pointer; }
#sat .page button.row:hover { background: rgba(255, 220, 150, 0.12); color: #fff; transform: none; }
#sat .page .row .l { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#sat .page .row .r { flex: none; color: #ff981f; white-space: nowrap; }
#sat .page .row.dim { color: #9c8f78; }
#sat .page .row.head { color: #ff981f; margin-top: 4px; }
#sat .page .row.stat .r { color: #ffff00; }
#sat .page .row.missing { color: #ff3b30; }
#sat .page .row.found { color: #2fe04a; }
#sat .page .row.held { min-height: 40px; }
#sat .page .row.held .icon { flex: none; width: 32px; height: 32px; image-rendering: pixelated; image-rendering: crisp-edges; }
#sat .page .row.held .w { display: block; color: #9c8f78; }
#sat .menu { position: absolute; display: none; min-width: 96px; z-index: 3; background: #5d5447; border: 1px solid #000; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); font-size: 8px; line-height: 11px; text-align: left; }
#sat .menu.show { display: block; }
#sat .menu .head { background: #000; color: #5d5447; padding: 1px 4px 2px; }
#sat .menu button { display: block; width: 100%; padding: 1px 4px; margin: 0; border: 0; border-radius: 0; background: transparent; color: #ff981f; font: inherit; letter-spacing: 0; text-transform: none; text-align: left; white-space: nowrap; text-shadow: 1px 1px 0 #000; cursor: pointer; transition: none; }
#sat .menu button .verb { color: #fff; }
#sat .menu button:hover { background: rgba(0, 0, 0, 0.25); color: #ffff00; transform: none; }
#sat .menu button:hover .verb { color: #ffff00; }
#sat .said { position: absolute; left: 6px; right: 6px; bottom: 6px; display: none; padding: 4px 5px; z-index: 2; background: #cfc09c; color: #1b140c; border: 1px solid #15110d; box-shadow: inset 1px 1px 0 #efe3c4, inset -1px -1px 0 #9c8d6c; font-size: 8px; line-height: 11px; text-align: left; pointer-events: none; }
#sat .said.show { display: block; }
#toast { position: fixed; left: 50%; bottom: max(64px, env(safe-area-inset-bottom)); transform: translateX(-50%); font-family: "Monocraft", monospace; font-size: 18px; line-height: 18px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; background: rgba(16, 0, 16, 0.85); border: 2px solid rgba(96, 32, 255, 0.55); padding: 8px 12px; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 35; -webkit-font-smoothing: none; }
#toast.show { animation: toast 2.8s ease-out forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 10% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* a phone held upright: the buttons go under the clock on the left, and nothing shares a line with anything else */
@media (max-width: 560px) {
  #pause, #book-btn, #bag-btn { top: calc(max(18px, env(safe-area-inset-top)) + 34px); transform: none; }
  #pause { left: max(18px, env(safe-area-inset-left)); width: 44px; height: 38px; padding: 0; }
  #book-btn { left: calc(max(18px, env(safe-area-inset-left)) + 52px); }
  #bag-btn { left: calc(max(18px, env(safe-area-inset-left)) + 104px); }
  body:not(.hasbook) #bag-btn { left: calc(max(18px, env(safe-area-inset-left)) + 52px); }
  #hud-moss { right: 120px; }
  #look-hint { max-width: 120px; text-align: right; line-height: 1.6; }
}
/* where a message for the handheld is typed: never seen (the handheld's own screen shows it), there for the keyboard */
#chat-in { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; pointer-events: none; }
/* the phone's action buttons: a row under the clock, over the sky, clear of both thumbs and of whatever is held up */
#acts { display: none; position: absolute; left: max(18px, env(safe-area-inset-left)); right: max(18px, env(safe-area-inset-right)); top: calc(max(18px, env(safe-area-inset-top)) + 84px); flex-direction: row; flex-wrap: wrap; gap: 6px; pointer-events: none; }
#acts button { display: none; pointer-events: auto; padding: 9px 10px; font-size: 12px; letter-spacing: 0.08em; background: rgba(0,0,0,0.3); color: #fff; border: 1px solid rgba(255,255,255,0.28); border-radius: 4px; margin: 0; }
#acts button.on { display: block; }
#acts button.lit { background: rgba(255,255,255,0.22); }
@media (pointer: coarse) { #acts { display: flex; } }
/* a phone: the action buttons sit under the right thumb (not across the sky, or over the handheld's screen), and
   everything that is pressed is big enough for a thumb */
@media (pointer: coarse) {
  #acts { left: auto; top: auto; right: max(14px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 44px); width: 172px; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 8px; }
  #acts button { flex: 0 0 82px; min-height: 42px; padding: 0 4px; font-size: 12px; letter-spacing: 0.04em; }
  #look-hint { left: 0; right: 0; bottom: auto; top: calc(max(18px, env(safe-area-inset-top)) + 96px); max-width: none; text-align: center; }
  #sat .page .row { min-height: 22px; }
  #sat .menu button { padding: 6px 6px; }
  #sat-close::after { content: ''; position: absolute; inset: -10px; }
}
#satchel.tall { justify-content: flex-start; overflow-y: auto; padding: 8px 0; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
#satchel.tall #sat { flex: none; margin-bottom: 8px; }
@media (pointer: coarse) and (orientation: landscape) {
  #look-hint { top: calc(max(18px, env(safe-area-inset-top)) + 44px); }
}
@media (pointer: coarse) and (orientation: portrait) {
  #acts { width: 82px; }   /* one column up the right edge: the hand and what it holds stay in view */
}
@media (max-width: 560px) {
  .lcd-sub { font-size: 15px; }
}
/* a phone on its side is short: the first card has to fit */
@media (max-height: 430px) {
  .lcd-screen h1 { font-size: 30px; }
}
/* P: the picture blinks as it is taken */
#shutter { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 40; }
#shutter.go { animation: shutter 0.22s ease-out; }
@keyframes shutter { 0% { opacity: 0; } 18% { opacity: 0.55; } 100% { opacity: 0; } }

/* closing, everywhere: a plain Close under the satchel, an x on the journal, an x on the LCD screens' bars */
#sat-done { flex: none; margin-top: calc(4px * var(--k)); width: calc(184px * var(--k)); height: calc(18px * var(--k)); padding: 0; border: calc(1px * var(--k)) solid #15110d; border-radius: 0; background: #5a4c3d; color: #e8dcc0;
  font-family: "Monocraft", monospace; font-size: calc(8px * var(--k)); line-height: calc(8px * var(--k)); letter-spacing: 0; text-transform: none; text-shadow: calc(1px * var(--k)) calc(1px * var(--k)) 0 #000; -webkit-font-smoothing: none; transition: none; cursor: pointer;
  box-shadow: inset calc(1px * var(--k)) calc(1px * var(--k)) 0 #7d6c58, inset calc(-1px * var(--k)) calc(-1px * var(--k)) 0 #2a221b; }
#sat-done:hover:not(:disabled) { background: #6e5c48; color: #fff; transform: none; }
#satchel.tall #sat-done { margin-bottom: 12px; }
#bq-x { position: absolute; right: calc(-6px * var(--s)); top: calc(-6px * var(--s)); z-index: 3; width: calc(14px * var(--s)); height: calc(14px * var(--s)); padding: 0; border: calc(1px * var(--s)) solid #000; border-radius: 0; background: #6f6f6f; color: #fff;
  font: inherit; font-size: calc(9px * var(--s)); line-height: calc(9px * var(--s)); text-shadow: calc(1px * var(--s)) calc(1px * var(--s)) 0 #3f3f3f; transition: none; cursor: pointer;
  box-shadow: inset calc(1px * var(--s)) calc(1px * var(--s)) 0 #aaa, inset calc(-1px * var(--s)) calc(-1px * var(--s)) 0 #555; }
#bq-x:hover:not(:disabled) { background: #7d8bc7; color: #ffffa0; transform: none; }
.lcd-bar { display: flex; align-items: center; }
.lcd-x { margin: -6px 2px -6px auto; width: 30px; height: 26px; padding: 0; border: 2px solid #3d5a36; border-radius: 0; background: transparent; color: #c9d3a2; font-family: inherit; font-size: 22px; line-height: 18px; letter-spacing: 0; cursor: pointer; transition: none; }
.lcd-x:hover:not(:disabled) { background: #c9d3a2; color: #101410; transform: none; }
/* the satchel's button: on a phone among the others at the top; on a desk in the corner with its key. Never hidden,
   not even on a clean screen: it is the way to everything carried */
#bag-btn .key { display: none; }
@media (pointer: fine) {
  #bag-btn { display: flex; align-items: center; gap: 6px; top: auto; bottom: max(16px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); transform: none; width: auto; height: 38px; padding: 4px 8px 4px 6px; }
  #bag-btn .key { display: block; font-family: "Monocraft", monospace; font-size: 12px; line-height: 12px; padding: 2px 5px; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
}
body.nohud #hud > #bag-btn { display: flex !important; opacity: 0.4; }
@media (pointer: coarse) { body.nohud #hud > #bag-btn { display: block !important; } }

/* --- rows that come and go (continue, replay, sign in): the row's own display would otherwise show a hidden one */
.lcd .row[hidden] { display: none !important; }
/* a small table on the glass: the perks screen (collection, its gift, held or not) */
.lcd-table { margin: 2px 18px 6px; font-size: 20px; line-height: 1.2; color: var(--ink2); }
.lcd-tr { display: flex; gap: 10px; padding: 1px 0; border-bottom: 1px dotted rgba(28, 51, 32, 0.35); }
.lcd-tr span:nth-child(1) { flex: 0 0 34%; }
.lcd-tr span:nth-child(2) { flex: 1; }
.lcd-tr span:nth-child(3) { flex: none; text-align: right; }
.lcd-tr.held { color: var(--ink); }
.lcd-tr.held span:nth-child(3) { background: var(--ink); color: var(--glass); padding: 0 6px; }
#replay-list { display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; }
/* a collection's gift in the satchel: a green pip in the slot's corner */
#sat .slot .perk { position: absolute; right: 2px; top: 2px; width: 4px; height: 4px; background: #2fe04a; box-shadow: 1px 1px 0 #000; pointer-events: none; }

/* --- the SmertGlasses, worn. The rim: the frames at the edge of sight, dark and out of focus, heavier at the top
   corners and the bridge. The feed: pale green light in the right lens, lines rising and fading as they go. */
#specs { position: fixed; inset: 0; display: none; pointer-events: none; overflow: hidden; }
body.specs[data-mode="playing"] #specs, body.specs[data-mode="found"] #specs, body.specs[data-mode="ask"] #specs { display: block; }
.specs-rim { position: absolute; inset: -15% -10%; border-radius: 44% / 40%; background: rgba(22, 24, 27, 0.2); box-shadow: 0 0 0 1.4vmin rgba(240, 247, 160, 0.82), 0 0 0 100vmax rgba(206, 222, 66, 0.9), inset 0 0 50px 14px rgba(120, 132, 30, 0.5), inset 0 0 120px 30px rgba(8, 9, 10, 0.3); }   /* seen from inside: smoke lenses, the frosted lime frame out of focus in the corners */
.specs-rim::after { content: ''; position: absolute; left: 50%; bottom: -3%; width: 16%; height: 20%; margin-left: -8%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(ellipse at 50% 100%, rgba(206, 222, 66, 0.82) 30%, rgba(206, 222, 66, 0) 72%); }   /* the nose bridge, a blur at the foot of the view */
#specs.wake .specs-rim { animation: specs-on 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes specs-on { from { transform: translateY(-34%) scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
.specs-feed { position: absolute; right: max(4.5vw, env(safe-area-inset-right)); top: 21%; width: min(31vw, 380px); height: 40%; display: flex; flex-direction: column; font-family: "Jersey 10", "Monocraft", monospace; color: rgba(160, 255, 190, 0.92); text-shadow: 0 0 6px rgba(70, 255, 150, 0.55), 0 0 1px rgba(0, 0, 0, 0.9); text-align: left; }
#specs.wake .specs-feed { animation: specs-feed 1.1s ease-out both; }
@keyframes specs-feed { 0%, 45% { opacity: 0; } 55% { opacity: 1; } 62% { opacity: 0.3; } 100% { opacity: 1; } }
.specs-head { flex: none; font-size: 15px; letter-spacing: 0.2em; padding-bottom: 3px; border-bottom: 1px solid rgba(160, 255, 190, 0.45); color: rgba(160, 255, 190, 0.7); }
.specs-head::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: #7dffa0; box-shadow: 0 0 6px #7dffa0; animation: blink 1.6s steps(1) infinite; }
.specs-note { flex: none; font-size: 17px; line-height: 1.15; margin-top: 4px; color: rgba(160, 255, 190, 0.6); }
.specs-note:empty { display: none; }
.specs-lines { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
.specs-line { flex: none; font-size: clamp(17px, 1.75vw, 23px); line-height: 1.12; margin-top: 5px; overflow-wrap: anywhere; animation: specs-line 0.5s ease-out both; }
.specs-line b { font-weight: 400; color: #e9fff0; }
@keyframes specs-line { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }
@media (pointer: coarse) { .specs-feed { top: 30%; width: min(40vw, 300px); height: 34%; } }
@media (pointer: coarse) and (orientation: portrait) { .specs-feed { right: 110px; top: 16%; width: 52vw; height: 26%; } }
/* the game's name on the start screen: RadMoss over Lost in The Moss */
.lcd-screen h1 .lcd-over { display: block; font-size: 0.5em; letter-spacing: 0.14em; color: var(--ink2); margin-bottom: 4px; }
/* gloves in the satchel: a pair he has can be put on; the worn pair has a gold pip */
#sat .slot.glove { cursor: pointer; }
#sat .slot.glove:hover { background: rgba(255, 220, 150, 0.08); }
#sat .slot .worn { position: absolute; right: 2px; top: 2px; width: 4px; height: 4px; background: #ffcf3a; box-shadow: 1px 1px 0 #000; pointer-events: none; }

/* what he works out as he goes: one quiet line, there until he has done the thing */
#teach { position: fixed; left: 0; right: 0; bottom: calc(max(64px, env(safe-area-inset-bottom)) + 64px); text-align: center; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.78); text-shadow: 0 1px 6px rgba(0,0,0,0.7); pointer-events: none; opacity: 0; transition: opacity 1.2s ease; z-index: 34; }
#teach.show { opacity: 1; }
body.nohud #teach { display: none !important; }
body.fresh #hud-hint { display: none; }
