
  html, body { margin: 0; height: 100%; background: #07090c; overflow: hidden; font-family: "Segoe UI", system-ui, sans-serif; color: #c8ccd0; }
  canvas { display: block; width: 100vw; height: 100vh; touch-action: none; cursor: crosshair; }
  #hud { position: fixed; inset: 0; pointer-events: none; }
  #hud.hidden { display: none; }
  #title { position: absolute; left: 22px; top: 18px; letter-spacing: 0.32em; font-size: 12px; text-transform: uppercase; color: #9aa0a6; opacity: 0.85; }
  #title b { display: block; font-size: 20px; letter-spacing: 0.22em; color: #e6e1d6; font-weight: 500; margin-bottom: 4px; text-shadow: 0 0 18px rgba(255, 200, 140, 0.25); }
  #hint { position: absolute; left: 22px; bottom: 66px; font-size: 12px; color: #8a9096; letter-spacing: 0.08em; line-height: 1.7; }
  #hint span { color: #d8d2c4; }
  #stats { position: absolute; right: 18px; top: 126px; font-size: 11px; color: #7d848a; letter-spacing: 0.12em; text-align: right; font-variant-numeric: tabular-nums; }
  #stats #quality { text-transform: uppercase; }
  #objective { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #d8d2c4; text-shadow: 0 0 12px rgba(0,0,0,0.9); max-width: 70vw; text-align: center; }
  #objective.flash { animation: objflash 1.6s ease-out; }
  @keyframes objflash { 0% { color: #fff3d8; text-shadow: 0 0 22px rgba(255, 220, 160, 0.8); } 100% { color: #d8d2c4; } }
  #status { position: absolute; right: 22px; bottom: 66px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  #battery { width: 120px; height: 8px; border: 1px solid #6a7077; padding: 1px; position: relative; }
  #battery::after { content: ""; position: absolute; right: -5px; top: 2px; width: 3px; height: 4px; background: #6a7077; }
  #batteryFill { height: 100%; background: #e6d29a; transition: width 0.3s linear; }
  #battery.low #batteryFill { background: #d8503a; animation: blink 0.9s steps(2) infinite; }
  @keyframes blink { 50% { opacity: 0.35; } }
  #sanity { display: flex; gap: 6px; }
  #sanity i { display: block; width: 10px; height: 10px; border: 1px solid #b8b0a0; transform: rotate(45deg); background: #d8c8b0; }
  #sanity i.off { background: transparent; border-color: #4a4f55; }
  #static { display: flex; gap: 3px; align-items: flex-end; height: 14px; }
  #static i { display: block; width: 6px; background: #3a3f45; }
  #static i:nth-child(1) { height: 4px; } #static i:nth-child(2) { height: 7px; } #static i:nth-child(3) { height: 10px; } #static i:nth-child(4) { height: 14px; }
  #static i.on { background: #e6e1d6; box-shadow: 0 0 8px rgba(255,255,255,0.5); }
  #prompt { position: fixed; pointer-events: none; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #f0e8d8; background: rgba(6, 8, 10, 0.75); padding: 4px 8px; border: 1px solid rgba(255, 240, 220, 0.25); opacity: 0; transition: opacity 0.15s; }
  #prompt.show { opacity: 1; }
  #toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); font-size: 14px; color: #e6e1d6; letter-spacing: 0.06em; background: rgba(6, 8, 10, 0.7); padding: 8px 16px; border-left: 2px solid #c8b890; opacity: 0; transition: opacity 0.4s; pointer-events: none; max-width: 60vw; text-align: center; }
  #toast.show { opacity: 1; }
  #fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.7s ease; }
  #fade.show { opacity: 1; pointer-events: all; }
  #card { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
  #card.show { opacity: 1; visibility: visible; transition-delay: 0s; }
  #card h1 { font-size: 44px; letter-spacing: 0.34em; font-weight: 400; color: #ece6d8; margin: 0 0 14px; text-shadow: 0 0 30px rgba(0,0,0,1); text-transform: uppercase; }
  #card p { font-size: 15px; color: #a8aeb4; letter-spacing: 0.1em; max-width: 520px; line-height: 1.7; margin: 0; text-shadow: 0 0 12px #000; }
  .overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(4, 5, 7, 0.55); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.35s, visibility 0s linear 0.35s; cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer; }
  .overlay.show { opacity: 1; visibility: visible; pointer-events: all; transition-delay: 0s; }
  .paper { width: min(520px, 86vw); background: #e8e0cc; color: #2a2622; padding: 34px 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.8); transform: rotate(-1.2deg); font-family: "Courier New", Courier, monospace; }
  .paper h2 { margin: 0 0 16px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #6a5a48; font-weight: 600; }
  .paper pre { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.65; margin: 0; min-height: 120px; }
  .paper small { display: block; margin-top: 18px; font-size: 11px; letter-spacing: 0.15em; color: #8a7a68; text-transform: uppercase; }
  .phone { width: min(560px, 86vw); background: #0b0d10; color: #cfe4ff; padding: 30px 38px; border: 1px solid rgba(160, 200, 255, 0.25); box-shadow: 0 0 60px rgba(120, 160, 255, 0.15); font-family: "Courier New", Courier, monospace; }
  .phone h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.3em; color: #6f8aa8; font-weight: 600; text-transform: uppercase; }
  .phone pre { white-space: pre-wrap; font-family: inherit; font-size: 16px; line-height: 1.8; margin: 0; min-height: 140px; text-shadow: 0 0 8px rgba(160, 200, 255, 0.4); }
  .phone small { display: block; margin-top: 16px; font-size: 11px; letter-spacing: 0.15em; color: #4f6a88; text-transform: uppercase; min-height: 14px; }
  #death { position: fixed; inset: 0; display: grid; place-items: center; background: #000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.5s, visibility 0s linear 0.5s; text-align: center; }
  #death.show { opacity: 1; visibility: visible; transition-delay: 0s; }
  #death p { font-size: 18px; letter-spacing: 0.24em; text-transform: uppercase; color: #b8b0a0; }
  #menu, #ending { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(4, 5, 7, 0.62); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.6s, visibility 0s linear 0.6s; text-align: center; }
  #menu.show, #ending.show { opacity: 1; visibility: visible; pointer-events: all; transition-delay: 0s; }
  #menu h1, #ending h1 { font-size: 52px; letter-spacing: 0.4em; font-weight: 400; color: #ece6d8; margin: 0 0 8px; text-transform: uppercase; text-shadow: 0 0 34px rgba(255, 200, 140, 0.25); }
  #menu p, #ending p { color: #a8aeb4; letter-spacing: 0.1em; font-size: 14px; max-width: 560px; line-height: 1.7; white-space: pre-wrap; }
  #menu button { font: inherit; letter-spacing: 0.3em; text-transform: uppercase; font-size: 14px; color: #ece6d8; background: transparent; border: 1px solid rgba(236, 230, 216, 0.4); padding: 12px 34px; margin: 10px; cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer; transition: background 0.2s, border-color 0.2s; }
  #menu button:hover { background: rgba(236, 230, 216, 0.1); border-color: #ece6d8; }
  #menu .controls { font-size: 12px; color: #7d848a; margin-top: 26px; }
  #menu .controls span { color: #d8d2c4; }
  #nomod { position: fixed; inset: 0; display: none; place-items: center; background: #07090c; color: #c8ccd0; font-size: 14px; text-align: center; line-height: 1.8; }

/* Cryptic Conclave release controls. Keep the procedural street clear while
   giving the fullscreen page a compact set of reversible controls. */
:root { color-scheme: dark; }
html, body { cursor: url('/images/cursors/pointer.cur') 8 8, url('/images/cursors/pointer.png') 8 8, auto; }
button, a, input { cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #d9f4ff; outline-offset: 3px; }
#menu .menu-panel { width: min(720px, 92vw); padding: clamp(24px, 5vw, 54px); border: 1px solid rgba(216, 210, 196, .2); background: linear-gradient(145deg, rgba(7, 9, 12, .94), rgba(10, 15, 22, .86)); box-shadow: 0 30px 80px rgba(0,0,0,.62), inset 0 0 80px rgba(56, 82, 108, .08); }
#menu .menu-panel > p:first-of-type { max-width: 600px; margin-left: auto; margin-right: auto; }
#menu .keeper-field { display: grid; gap: 6px; max-width: 330px; margin: 20px auto 10px; text-align: left; }
#menu .keeper-field label { color: #d8d2c4; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
#menu .keeper-field input { width: 100%; box-sizing: border-box; border: 1px solid rgba(230, 225, 214, .35); background: rgba(2, 4, 7, .78); color: #f1ecdf; padding: 11px 12px; font: 14px "Courier New", monospace; }
#menu .keeper-field input[aria-invalid="true"] { border-color: #db6a56; box-shadow: 0 0 12px rgba(219, 106, 86, .25); }
.cc-keeper-name-status { display: block; color: #ffad98; font: 12px/1.4 "Courier New", monospace; }
#gameTools { position: fixed; z-index: 120; top: 16px; right: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: min(480px, calc(100vw - 32px)); pointer-events: auto; }
#gameTools button, #gameTools a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; box-sizing: border-box; border: 1px solid rgba(216, 210, 196, .3); background: rgba(5, 8, 12, .76); color: #d8d2c4; padding: 7px 12px; font: 11px/1.2 "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
#gameTools button:hover, #gameTools a:hover { border-color: #f2e6c7; color: #f2e6c7; background: rgba(32, 38, 45, .82); }
#gameTools .cc-pause-button { border-color: rgba(216, 210, 196, .45); }
#gameInfo.cc-htp-bar { position: fixed; z-index: 120; left: 18px; bottom: 18px; margin: 0; pointer-events: auto; }
#gameInfo .cc-htp-trigger { border-radius: 2px; border-color: rgba(216, 210, 196, .38); background: rgba(5, 8, 12, .76); color: #d8d2c4; font: 11px/1.2 "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; }
#gameInfo .cc-htp-trigger:hover { color: #fff2d1; border-color: #fff2d1; }
#hud { user-select: none; }
#hud.hidden + #prompt { display: none; }
.cc-keeper-modal, .cc-htp-overlay, .cc-ach-overlay, .cc-bug-overlay, .cc-pause-dialog { font-family: "Segoe UI", system-ui, sans-serif; }
@media (max-width: 1100px) {
  #objective { top: 126px; max-width: calc(100vw - 44px); }
  #stats { top: 174px; }
}
@media (max-width: 700px) {
  #menu h1 { font-size: clamp(32px, 10vw, 52px); letter-spacing: .25em; }
  #menu .controls { font-size: 11px; }
  #gameTools { top: 10px; right: 10px; }
  #gameInfo.cc-htp-bar { left: 10px; bottom: 10px; }
}
