/* ============ BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --text: #ecdfc4;
  --muted: #a89577;
  --accent: #c9a24a;
  --accent-2: #e3c268;
  --glass: rgba(16, 10, 6, 0.82);
  --border: rgba(201, 162, 74, 0.28);
  --radius: 10px;
}

html, body { height: 100%; overflow: hidden; }

body {
  background: #0a0d16;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  cursor: crosshair;
}

h1, h2, h3, #start-overlay h1, #zone-label { font-family: Georgia, "Times New Roman", serif; letter-spacing: 1px; }

#game-canvas { position: fixed; inset: 0; display: block; }

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ============ HUD ============ */
#zone-label {
  position: fixed;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--text);
  padding: 0.5rem 1.4rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  z-index: 10;
  pointer-events: none;
}

#crosshair {
  position: fixed;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  z-index: 10;
  display: none;
  pointer-events: none;
}
body.playing #crosshair { display: block; }
body.playing { cursor: none; }

#controls {
  position: fixed;
  bottom: 20px; left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  z-index: 10;
  pointer-events: none;
}
#controls b { color: var(--accent-2); margin-right: 4px; }

/* ============ CONTENT PANEL ============ */
#panel {
  position: fixed;
  top: 50%; right: 28px;
  transform: translate(calc(100% + 60px), -50%);
  width: min(430px, calc(100vw - 40px));
  max-height: min(72vh, 640px);
  overflow-y: auto;
  padding: 1.6rem;
  z-index: 20;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
}
#panel.show { transform: translate(0, -50%); }
#panel { border-top: 3px solid var(--accent-room, var(--accent)); }
#panel .badge { color: var(--accent-room, #e3c268); border-color: var(--accent-room, rgba(201, 162, 74, 0.5)); }

/* stays in the corner while the pages scroll */
#panel-close {
  position: sticky;
  top: 0;
  display: block;
  margin: -0.4rem -0.4rem -34px auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  font: 1.25rem/1 Georgia, "Times New Roman", serif;
  color: var(--text);
  background: rgba(16, 10, 6, 0.85);
  border: 1px solid var(--border);
  cursor: pointer;
  z-index: 1;
}
#panel-close:hover, #panel-close:active { border-color: var(--accent-room, var(--accent)); color: var(--accent-2); }

.panel-hint {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}
.panel-hint b { color: var(--accent-2); }

/* --- shared content styles inside panel --- */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  background: rgba(201, 162, 74, 0.16);
  border: 1px solid rgba(201, 162, 74, 0.5);
  color: #e3c268;
  margin-bottom: 0.7rem;
}
#panel-content h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
#panel-content h4 { color: var(--accent-2); font-weight: 500; margin-bottom: 0.5rem; }
#panel-content p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 0.9rem; }
#panel-content a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
#panel-content a:hover { text-decoration: underline; }

.node-list { list-style: none; margin: 0.5rem 0 1rem; }
.node-list li { padding: 0.35rem 0; font-size: 0.9rem; color: var(--muted); }

/* timeline entries */
.tl { border-left: 2px solid var(--accent); padding-left: 1rem; margin: 0.6rem 0 1.2rem; }
.tl:last-child { margin-bottom: 0.4rem; }
.tl .when { font-size: 0.68rem; letter-spacing: 1px; color: #d9a441; }

/* skill bars */
.skill { margin-bottom: 1rem; }
.skill-head { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 0.4rem; }
.bar { height: 7px; border-radius: 7px; background: rgba(201, 162, 74, 0.12); overflow: hidden; }
.bar .fill {
  height: 100%;
  width: var(--w);
  border-radius: 7px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* project cards */
.proj { border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 0.9rem; transition: border-color 0.3s; }
.proj:hover { border-color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.tags span {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(201, 162, 74, 0.08);
  border: 1px solid var(--border);
  color: var(--muted);
}
.proj-links { display: flex; gap: 1rem; font-size: 0.8rem; }

/* contact list */
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 0.6rem; }

/* ============ START OVERLAY ============ */
#start-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  background: radial-gradient(ellipse at center, rgba(12, 12, 30, 0.82), rgba(5, 5, 12, 0.96));
  z-index: 50;
  transition: opacity 0.5s;
}
#start-overlay.hidden { opacity: 0; pointer-events: none; }

#start-overlay h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  background: linear-gradient(90deg, #fff, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#start-overlay h1 span { color: var(--accent-2); -webkit-text-fill-color: var(--accent-2); }

.ov-sub { color: var(--muted); line-height: 1.7; }

.ov-controls {
  list-style: none;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.5rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.4rem 0;
}
.ov-controls b { color: var(--accent-2); }

#start-btn {
  margin-top: 0.6rem;
  padding: 0.9rem 2.6rem;
  font: 600 1rem Georgia, "Times New Roman", serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #241407;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border: 1px solid #6b4f1c;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(201, 162, 74, 0.28), inset 0 1px 0 rgba(255, 241, 205, 0.5);
  transition: transform 0.25s ease;
}
#start-btn:hover:not(:disabled) { transform: translateY(-3px) scale(1.04); }
#start-btn:disabled { opacity: 0.55; cursor: progress; }

.ov-note { font-size: 0.72rem; color: var(--muted); min-height: 1em; }
.ov-note.error { color: #ff8a80; font-size: 0.8rem; max-width: min(560px, 90vw); }

.load-track {
  width: min(320px, 70vw);
  height: 3px;
  border-radius: 3px;
  background: rgba(201, 162, 74, 0.15);
  overflow: hidden;
}
#load-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
body.ready .load-track { opacity: 0; transition: opacity 0.6s ease 0.3s; }

/* ============ ONLINE / MIC BADGES ============ */
#online-badge, #mic-badge {
  position: fixed;
  left: 20px;
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  z-index: 10;
  pointer-events: none;
}
#online-badge { top: 20px; }
#online-badge::first-letter { color: var(--accent-2); }
#mic-badge { top: 64px; color: var(--muted); }

/* ============ TOUCH CONTROLS (mobile) ============ */
html, body { overscroll-behavior: none; }
body { -webkit-tap-highlight-color: transparent; }
#game-canvas { touch-action: none; }
#panel { touch-action: pan-y; }

/* shown once you're inside, and put away while you read an office's pages */
.touch-only { display: none; }
body.touch.playing .touch-only { display: block; }
body.touch.playing .touch-btns { display: grid; }
body.touch.panel-open .touch-only, body.touch.panel-open .touch-btns { display: none; }
body.touch #crosshair, body.touch #controls { display: none; }

#joy-base {
  position: fixed;
  bottom: max(44px, calc(env(safe-area-inset-bottom) + 30px));
  left: max(24px, calc(env(safe-area-inset-left) + 12px));
  width: 124px; height: 124px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  z-index: 15;
  pointer-events: none;
  touch-action: none;
}
#joy-knob {
  position: absolute;
  left: 50%; top: 50%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(124, 108, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* four buttons in a 2×2 block, each with its name underneath */
.touch-btns {
  position: fixed;
  right: max(16px, calc(env(safe-area-inset-right) + 10px));
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 20px));
  grid-template-columns: repeat(2, 58px);
  gap: 22px 14px;
  z-index: 25;
}
.touch-btn {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--text);
  background: rgba(16, 10, 6, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  touch-action: none;
}
.touch-btn::after {
  content: attr(data-label);
  position: absolute;
  left: 50%; top: calc(100% + 3px);
  transform: translateX(-50%);
  font: 0.62rem Georgia, "Times New Roman", serif;
  letter-spacing: 0.5px;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.touch-btn:active { background: rgba(201, 162, 74, 0.45); }
.touch-btn.off { opacity: 0.55; }

/* ============ WARM VIGNETTE (cozy, filmic edge falloff) ============ */
#vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    radial-gradient(120% 90% at 50% 58%, rgba(255, 150, 70, 0.10) 0%, rgba(0, 0, 0, 0) 46%),
    radial-gradient(140% 120% at 50% 50%, rgba(0, 0, 0, 0) 42%, rgba(4, 2, 8, 0.68) 100%);
}

/* ============ NPC PROMPT + BUTLER DIALOGUE ============ */
#npc-prompt {
  position: fixed;
  bottom: 132px; left: 50%;
  transform: translate(-50%, 12px);
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.5rem 1.1rem;
  background: var(--glass);
  border: 1px solid rgba(230, 187, 122, 0.4);
  border-radius: 999px;
  z-index: 18;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#npc-prompt.show { opacity: 1; transform: translate(-50%, 0); }
#npc-prompt b { color: #e6bb7a; }

#dialog {
  position: fixed;
  bottom: 110px; left: 50%;
  transform: translate(-50%, 20px);
  width: min(620px, calc(100vw - 48px));
  padding: 1rem 1.25rem 0.9rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  border-color: rgba(230, 187, 122, 0.32);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#dialog.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.45rem; }
.dlg-speaker {
  font: 600 0.68rem Georgia, "Times New Roman", serif;
  letter-spacing: 2px;
  color: #e6bb7a;
}
.dlg-status-wrap { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.5px; }
.dlg-meter-track { width: 44px; height: 4px; border-radius: 4px; background: rgba(230, 187, 122, 0.14); overflow: hidden; opacity: 0; transition: opacity 0.2s; }
#dialog[data-state="listening"] .dlg-meter-track,
#dialog[data-state="hearing"] .dlg-meter-track { opacity: 1; }
#dlg-meter { display: block; height: 100%; background: #e6bb7a; transform-origin: left center; transform: scaleX(0); transition: transform 0.08s linear; }
#dialog[data-state="hearing"] #dlg-status { color: #e6bb7a; }
#dialog[data-state="thinking"] #dlg-status::after { content: ""; display: inline-block; width: 1em; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
#dialog-you { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-bottom: 0.3rem; min-height: 0; }
#dialog-you:empty { display: none; }
#dialog-text { font-size: 0.92rem; line-height: 1.6; color: var(--text); }
#dialog-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
#dialog-input {
  flex: 1;
  min-width: 0;
  font: 0.85rem Georgia, "Times New Roman", serif;
  color: var(--text);
  background: rgba(255, 245, 225, 0.06);
  border: 1px solid rgba(230, 187, 122, 0.28);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  outline: none;
}
#dialog-input:focus { border-color: rgba(230, 187, 122, 0.7); background: rgba(255, 245, 225, 0.1); }
#dialog-form button {
  font: 600 0.72rem Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
  color: #241407;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border: 1px solid #6b4f1c;
  border-radius: 6px;
  padding: 0 0.9rem;
  cursor: pointer;
}
.dlg-hint { display: block; margin-top: 0.55rem; font-size: 0.68rem; color: var(--muted); }
/* a greeting spoken in passing: just his words, no controls */
#dialog.ambient #dialog-form, #dialog.ambient .dlg-hint, #dialog.ambient .dlg-status-wrap, #dialog.ambient #dialog-you { display: none; }
#dialog.ambient { pointer-events: none; }

/* keep the butler's lines clear of the badges and the touch controls */
body.touch #npc-prompt {
  bottom: auto;
  top: calc(env(safe-area-inset-top) + 132px);
  font-size: 0.74rem;
}
body.touch #dialog {
  bottom: auto;
  top: calc(env(safe-area-inset-top) + 138px);
  width: calc(100vw - 24px);
  max-height: 34dvh;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  background: rgba(16, 10, 6, 0.9);
}
body.touch #dialog.compact { bottom: auto; width: calc(100vw - 24px); }
body.touch #dialog-text { font-size: 0.86rem; }
/* reading an office's pages: his lines stay above the sheet */
body.touch.panel-open #dialog { max-height: calc(max(36dvh, 250px) - env(safe-area-inset-top) - 148px); }

/* ============ SMALL SCREENS ============ */
@media (max-width: 800px) {
  #controls { display: none; }
  #panel {
    top: auto; bottom: 0; left: 0; right: 0;
    width: 100%;
    max-height: 46vh;
    transform: translateY(115%);
    border-radius: 16px 16px 0 0;
  }
  #panel.show { transform: translateY(0); }
  #zone-label { font-size: 0.8rem; letter-spacing: 2px; }
}
/* On touch screens an office's pages come up as a sheet from the bottom, with a
   close button. The walking controls step aside while it's open (tap × or the
   room above it to close and carry on). */
body.touch #panel {
  top: auto;
  bottom: 0;
  left: max(0px, calc(50vw - 360px));
  right: max(0px, calc(50vw - 360px));
  width: auto;
  max-height: calc(100dvh - max(36dvh, 250px));
  padding: 1.1rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  transform: translateY(105%);
}
body.touch #panel.show { transform: translateY(0); }
body.touch #joy-base { z-index: 25; }

/* phones on their side: the sheet becomes a column on the right, his lines sit left of it */
@media (orientation: landscape) and (max-height: 600px) {
  body.touch #panel {
    top: calc(env(safe-area-inset-top) + 56px);
    bottom: 12px;
    left: auto;
    right: max(12px, calc(env(safe-area-inset-right) + 8px));
    width: min(460px, 52vw);
    max-height: none;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    transform: translateX(calc(100% + 40px));
  }
  body.touch #panel.show { transform: translateX(0); }
  body.touch #dialog, body.touch #dialog.compact { top: max(12px, env(safe-area-inset-top)); width: min(480px, 50vw); max-height: calc(100dvh - 190px); }
  body.touch #npc-prompt { top: max(14px, env(safe-area-inset-top)); }
  body.touch.panel-open #dialog {
    top: 128px; left: max(12px, env(safe-area-inset-left)); width: calc(48vw - 40px);
    max-height: calc(100dvh - 140px); transform: translateY(20px);
  }
  body.touch.panel-open #dialog.show { transform: none; }
  .touch-btns { bottom: max(18px, env(safe-area-inset-bottom)); }
  #joy-base { bottom: max(24px, env(safe-area-inset-bottom)); }
}



/* ============ START: two ways in ============ */
.ov-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; align-items: center; }
#tour-btn {
  margin-top: 0.6rem;
  padding: 0.85rem 1.8rem;
  font: 600 0.9rem Georgia, "Times New Roman", serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(201, 162, 74, 0.08);
  border: 1px solid rgba(201, 162, 74, 0.55);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
#tour-btn:hover:not(:disabled) { background: rgba(201, 162, 74, 0.18); transform: translateY(-2px); }
#tour-btn:disabled { opacity: 0.45; cursor: progress; }

/* ============ VOICE MODE BADGE ============ */
#voice-badge {
  position: fixed;
  left: 20px; top: 108px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 0.78rem Georgia, "Times New Roman", serif;
  padding: 0.45rem 0.9rem;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  z-index: 10;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
#voice-badge b { color: var(--accent-2); margin-left: 0.2rem; }
#voice-badge .vb-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(201, 162, 74, 0.35); }
#voice-badge.on { color: var(--text); border-color: rgba(230, 187, 122, 0.8); box-shadow: 0 0 18px rgba(230, 187, 122, 0.25); }
#voice-badge.on .vb-dot { background: #e6bb7a; animation: vb-pulse 1.4s ease-in-out infinite; }
@keyframes vb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 187, 122, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(230, 187, 122, 0); } }
body:not(.playing):not(.touch) #voice-badge { opacity: 0.85; }

/* ============ VOICE MODE: subtitles only ============ */
#dialog.compact { padding: 0.7rem 1.1rem 0.75rem; bottom: 36px; width: min(640px, calc(100vw - 48px)); }
#dialog.compact #dialog-form, #dialog.compact .dlg-hint, #dialog.compact #dialog-you { display: none; }
#dialog.compact.typing #dialog-form { display: flex; }
#dialog.compact #dialog-text { font-size: 0.95rem; }

/* ============ HARLOW'S NOTE CARD ============ */
#note-card {
  position: fixed;
  right: 24px; bottom: 24px;
  width: min(330px, calc(100vw - 48px));
  padding: 0.95rem 1.1rem;
  z-index: 22;
  font-size: 0.82rem;
  color: var(--text);
  border-color: rgba(230, 187, 122, 0.45);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#note-card.show { opacity: 1; transform: translateY(0); }
#note-card .nc-head { font: 600 0.72rem Georgia, "Times New Roman", serif; letter-spacing: 1.5px; color: #e6bb7a; text-transform: uppercase; margin-bottom: 0.5rem; }
#note-card div span { display: inline-block; min-width: 66px; color: var(--muted); font-size: 0.72rem; }
#note-card .nc-msg { margin-top: 0.45rem; font-style: italic; color: var(--text); line-height: 1.5; }
#note-card .nc-foot { margin-top: 0.6rem; font-size: 0.68rem; color: var(--muted); }

/* ============ NARROW SCREENS: keep the HUD from colliding ============ */
@media (max-width: 820px) {
  #zone-label { left: auto; right: 12px; transform: none; top: 16px; padding: 0.4rem 0.9rem; }
  #online-badge { top: 14px; left: 12px; }
  #mic-badge { top: 52px; left: 12px; }
  #voice-badge { top: 90px; left: 12px; }
}
/* phones: clear of the notch and the rounded corners */
body.touch #zone-label { left: auto; right: max(12px, calc(env(safe-area-inset-right) + 8px)); transform: none; top: calc(env(safe-area-inset-top) + 16px); padding: 0.4rem 0.9rem; font-size: 0.8rem; letter-spacing: 2px; }
body.touch #online-badge { top: calc(env(safe-area-inset-top) + 14px); left: max(12px, calc(env(safe-area-inset-left) + 8px)); }
body.touch #mic-badge { top: calc(env(safe-area-inset-top) + 52px); left: max(12px, calc(env(safe-area-inset-left) + 8px)); }
body.touch #voice-badge { top: calc(env(safe-area-inset-top) + 90px); left: max(12px, calc(env(safe-area-inset-left) + 8px)); }
body.touch #note-card { left: 12px; right: 12px; width: auto; bottom: auto; top: 42%; }
body.touch #voice-badge b { display: none; }                       /* no V key on a phone */

/* the start screen scrolls rather than cutting off its buttons on short screens */
#start-overlay { overflow-y: auto; padding: 16px; }
@media (max-height: 640px) {
  #start-overlay { justify-content: flex-start; gap: 0.6rem; padding: 18px 16px 24px; }
  #start-overlay h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .ov-sub { line-height: 1.5; font-size: 0.92rem; }
  .ov-controls { grid-template-columns: repeat(3, auto); gap: 0.35rem 1.4rem; font-size: 0.8rem; }
  #start-btn, #tour-btn { margin-top: 0.2rem; }
}
/* the "press E" hint waits for Harlow's line to fade before appearing */
#npc-prompt.show { transition-delay: 0.4s; }
