@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root { color: #e5ffce; background: #071308; font-family: "VT323", monospace; font-size: 22px; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
main { width: min(920px, 100%); }
header { margin-bottom: 18px; }
h1, h2, p { margin: 0; }
h1 { font: 22px "Press Start 2P", monospace; line-height: 1.45; }
h2 { font: 17px "Press Start 2P", monospace; line-height: 1.5; }
.eyebrow, .chapter, .hint { letter-spacing: .08em; opacity: .75; }
.chapter { margin-top: 10px; }
.terminal { width: min(780px, 100%); margin: auto; }
.screen { border: 10px solid #376342; background: #061106; box-shadow: 0 0 0 3px #9bd78f, 0 0 42px #33a24b66; padding: 18px; min-height: 370px; }
.transcript { height: 300px; overflow: auto; }
.transcript p { line-height: 1.05; margin-bottom: 7px; }
form { display: flex; gap: 8px; border-top: 1px solid #6bbf63; padding-top: 9px; }
input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; }
button { font: inherit; cursor: pointer; }
form button { background: #183c1c; color: inherit; border: 1px solid #99d98c; padding: 2px 8px; }
.inventory { display: flex; gap: 12px; margin-top: 15px; align-items: baseline; }
.inventory div { display: flex; gap: 8px; flex-wrap: wrap; }.inventory button { padding: 1px 7px; border: 1px solid currentColor; color: inherit; background: transparent; }.inventory button:hover { background: currentColor; color: #17293d; }.hint { margin-top: 16px; }
.eightbit, .sixteenbit { width: min(850px, 100%); margin: auto; }.game-window { display: grid; grid-template-columns: 1fr 180px; border: 5px solid #fff3b0; min-height: 420px; }.scene { position: relative; overflow: hidden; min-height: 420px; padding: 22px; color: #fff7c9; background-position: center; background-size: cover; image-rendering: pixelated; }.lab-scene { background-image: url('../assets/restoration-lab-8bit.png'); }.vault-scene { background-image: url('../assets/software-vault-16bit.png'); }.scene h2, .scene > p { position: relative; z-index: 1; display: inline; padding: 3px 6px; background: #17293dcc; text-shadow: 2px 2px #17293d; }.scene > p { display: table; max-width: 440px; margin-top: 12px; line-height: 1.1; }.verbs { padding: 10px; display: grid; align-content: start; gap: 8px; background: #17293d; }.verbs button { text-align: left; border: 0; padding: 9px; color: #fff3b0; background: transparent; font-family: "Press Start 2P"; font-size: 11px; line-height: 1.45; }.verbs button.active { background: #d94f70; color: #fff; }.hotspot { position: absolute; z-index: 2; min-width: 32px; min-height: 32px; border: 0; color: #fff7c9; background: transparent; padding: 0; cursor: pointer; font-family: "Press Start 2P"; font-size: 9px; line-height: 1.4; }.hotspot span { opacity: 0; display: block; width: max-content; max-width: 140px; padding: 5px; background: #17293de6; }.hotspot:focus-visible { outline: 2px solid #fff7c9; outline-offset: 2px; }.hotspot:hover span, .hotspot:focus-visible span { opacity: 1; }.desk { left: 12%; bottom: 12%; }.memo { left: 20%; bottom: 25%; }.key { left: 31%; bottom: 15%; }.securityDoor { right: 13%; bottom: 18%; min-height: 170px; }.computer { left: 2%; bottom: 0; width: 38%; height: 50%; }.cabinet { right: 2%; bottom: 23%; width: 30%; height: 70%; }.mouse { left: 45%; bottom: 7%; width: 12%; height: 14%; }.radio { left: 7%; bottom: 52%; width: 20%; height: 20%; }.mug { left: 2%; bottom: 5%; width: 12%; height: 15%; }.tapeDrive { left: 34%; bottom: 50%; width: 16%; height: 15%; }.floppyBox { left: 34%; bottom: 24%; width: 15%; height: 14%; }.cable { left: 22%; bottom: 2%; width: 38%; height: 10%; }.shelf { left: 0; bottom: 10%; width: 32%; height: 90%; }.disk { left: 7%; bottom: 50%; width: 10%; height: 12%; }.hotspot.terminal { right: 3%; bottom: 23%; width: 33%; height: 43%; }.fern { left: 32%; bottom: 37%; width: 17%; height: 38%; }.lavaLamp { left: 60%; bottom: 40%; width: 10%; height: 28%; }.magazines { right: 4%; bottom: 12%; width: 26%; height: 15%; }.robot { right: 1%; bottom: 27%; width: 13%; height: 23%; }.chair { left: 48%; bottom: 1%; width: 26%; height: 45%; }.vaultDoor { left: 49%; bottom: 30%; width: 17%; height: 65%; }.status { margin-top: 12px; min-height: 48px; }
.stage-2 { background: #245b8a; color: #fff3b0; }.stage-3 { background: #252b54; color: #f9e5bb; }.stage-3 .game-window { display: block; border-color: #c9a55b; box-shadow: 7px 7px 0 #12152c; }.stage-3 .hotspot { border-radius: 5px; }.ending { text-align: center; max-width: 680px; margin: auto; }.ending-card { padding: 48px 25px; border: 4px solid #d9b361; background: #252b54; box-shadow: 12px 12px 0 #11152b; }.disk-icon { font-size: 70px; color: #e8c875; }.ending-card h2 { margin: 16px 0; }.ending button { margin-top: 25px; padding: 12px 16px; border: 2px solid #e8c875; background: #5c4780; color: white; font-family: "Press Start 2P"; font-size: 11px; }.reflection { margin-top: 30px; }
.inventory button.selected { background: #e8c875; color: #252b54; box-shadow: 2px 2px 0 #11152b; }
.lab-scene.cabinet-unlocked { background-image: url('../assets/restoration-lab-c64-unlocked.png'); }
.lab-scene:not(.cabinet-unlocked) { background-image: url('../assets/restoration-lab-c64-locked-empty.png'); }
.lab-scene.cabinet-unlocked.items-collected { background-image: url('../assets/restoration-lab-c64-collected.png'); }
.lab-scene.cabinet-unlocked.cable-taken { background-image: url('../assets/restoration-lab-c64-cable-taken.png'); }
.lab-scene.cabinet-unlocked.mouse-taken { background-image: url('../assets/restoration-lab-c64-mouse-taken.png'); }
.eightbit .hotspot span, .sixteenbit .hotspot span { background: #000 !important; color: #fff !important; opacity: 1; border: 1px solid #fff; text-shadow: 1px 1px #000; }
.hotspot span { visibility: hidden; }
.hotspot:hover span, .hotspot:focus-visible span { visibility: visible; }
.vault-scene.disk-taken { background-image: url('../assets/software-vault-16bit-disk-collected.png'); }
.mouse { left: 40%; bottom: 0; width: 20%; height: 24%; }
.cable { left: 18%; bottom: 0; width: 45%; height: 18%; }
@media (max-width: 600px) {
  :root { font-size: 17px; }
  body { display: block; padding: 10px; }
  main, .terminal, .eightbit, .sixteenbit { width: 100%; max-width: none; }
  header { margin: 5px 0 14px; }
  h1 { font-size: 18px; }
  h2 { font-size: 13px; }
  .screen { min-height: 0; padding: 10px; border-width: 5px; box-shadow: 0 0 0 2px #9bd78f, 0 0 25px #33a24b66; }
  .transcript { height: 280px; }
  .transcript p { line-height: 1.12; }
  form { gap: 6px; }
  form button { padding: 3px 6px; }
  .inventory { margin-top: 11px; }
  .hint { margin-top: 12px; }
  .game-window { grid-template-columns: 1fr; min-height: 0; }
  .verbs { grid-template-columns: repeat(3, 1fr); }
  .verbs button { padding: 8px 4px; font-size: 8px; }
  .scene { min-height: 360px; padding: 12px; }
}
