:root {
  --paper: #e5e8d9;
  --dim: #929887;
  --accent: #d7e8a4;
  --orange: #df9367;
  --red: #d46651;
  --mono: "Courier New", monospace;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #11140f;
  color: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
[hidden] {
  display: none !important;
}
#stage {
  position: fixed;
  inset: 0;
  background: #10130e;
}
#world,
#noise {
  width: 100%;
  height: 100%;
  display: block;
}
#noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  image-rendering: pixelated;
  mix-blend-mode: screen;
}
.vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 20vw 6vw #05080499;
  pointer-events: none;
}
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    #0003 3px
  );
  pointer-events: none;
  opacity: 0.35;
}
#menu {
  position: absolute;
  inset: 0;
  padding: 32px 5%;
  background: linear-gradient(
    90deg,
    #11150ff5 0%,
    #11150fe8 29%,
    #11150f66 55%,
    transparent 75%
  );
  display: flex;
  flex-direction: column;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 2px;
}
.brand b {
  font-weight: normal;
  color: var(--dim);
}
.brandmark {
  width: 42px;
  height: 44px;
  border: 1px solid #d8e3bb77;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font:
    900 33px Georgia,
    serif;
  position: relative;
  color: var(--accent);
}
.brandmark span {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 10px;
}
.edition {
  font: 10px var(--mono);
  letter-spacing: 2px;
  color: var(--dim);
}
.edition span {
  margin-left: 30px;
  color: #c5caba;
}
.icon-button {
  height: 37px;
  min-width: 37px;
  border: 1px solid #a6ae8f44;
  font: 12px var(--mono);
  padding: 0 11px;
}
.icon-button span {
  margin-left: 6px;
  font-size: 10px;
}
.menu-body {
  margin: auto 0;
  width: 460px;
  max-width: 47%;
  padding: 32px 0;
}
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 2.5px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
}
.eyebrow i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
h1 {
  font-family: Impact, "Arial Narrow", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1.5px;
  font-size: clamp(45px, 6.1vw, 94px);
  line-height: 0.98;
  margin: 0 0 25px;
  text-shadow: 1px 2px 0 #aab39033;
}
h1 span {
  color: var(--accent);
}
.tagline {
  font-size: 14px;
  line-height: 1.8;
  color: #a9ad9e;
  margin-bottom: 35px;
}
.tiny {
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 1.5px;
  color: var(--dim);
  margin-bottom: 12px;
}
.tiny span {
  color: var(--accent);
  letter-spacing: 0.7px;
}
#nights {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
#nights button {
  border: 1px solid #88957744;
  width: 53px;
  height: 44px;
  color: #87907a;
  font: 15px var(--mono);
  transition: 0.2s;
}
#nights button.active {
  background: var(--accent);
  color: #182016;
  border-color: var(--accent);
  box-shadow: 0 0 25px #d7e8a414;
}
#nights button:hover {
  border-color: var(--accent);
}
.start-button {
  width: 100%;
  background: var(--accent);
  color: #1b2416;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  transition: 0.2s;
}
.start-button:hover {
  background: #edfac8;
  transform: translateY(-2px);
}
.start-button .arrow {
  font-size: 24px;
  line-height: 15px;
}
.menu-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
}
.menu-actions button {
  font: 10px var(--mono);
  color: #b1b7a2;
  padding: 0;
}
.menu-actions button span {
  font-size: 8px;
  padding: 4px 5px;
  border: 1px solid #858d6e55;
  margin-left: 5px;
}
.menu-actions button[aria-pressed="true"] {
  color: var(--accent);
}
.scene-caption {
  position: absolute;
  right: 5%;
  bottom: 19%;
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: #c1cab0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 255px;
}
.scene-caption small {
  display: block;
  width: 100%;
  font: 8px var(--mono);
  color: #818d74;
  letter-spacing: 0.5px;
}
.caption-line {
  flex: 1;
  border-top: 1px solid #a5ae8e55;
}
.record-dot {
  display: inline-block;
  background: var(--red);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 8px #d4665155;
  animation: blink 2.8s infinite;
}
.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid #85916e44;
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: #a6ae99;
}
.menu-footer .muted {
  margin: 0 12px;
  color: #5e6e52;
}
.footer-middle {
  font-size: 8px;
}
.footer-middle i {
  font-style: normal;
  color: #596b47;
  margin: 0 15px;
}
.menu-footer button {
  font: 8px var(--mono);
  letter-spacing: 0.8px;
  padding: 0;
}
.game-hud {
  position: absolute;
  top: 30px;
  left: 35px;
  right: 35px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.live-label {
  font: 11px var(--mono);
  letter-spacing: 1px;
  line-height: 2;
  align-self: flex-start;
  max-width: 60%;
}
.live-label .record-dot {
  margin-right: 10px;
}
.live-label small {
  display: block;
  font-size: 8px;
  color: #929d81;
  margin-left: 18px;
  letter-spacing: 2px;
}
.game-top-right {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  pointer-events: auto;
}
.clock {
  text-align: right;
  margin-left: 15px;
}
.clock strong {
  display: block;
  font: 32px var(--mono);
  letter-spacing: -2px;
}
.clock span {
  font: 10px var(--mono);
  letter-spacing: 2px;
}
.door-controls {
  position: absolute;
  top: 41%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 116px;
}
.left-controls {
  left: 25px;
}
.right-controls {
  right: 25px;
}
.door-controls > span {
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #9a9e8c;
  margin-bottom: 5px;
}
.door-controls button {
  background: #10140ee8;
  border: 1px solid #9ba67b66;
  min-height: 45px;
  font: 10px var(--mono);
  text-align: left;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 3px 20px #0005;
}
.door-controls button i {
  width: 6px;
  height: 6px;
  background: #94a179;
  border-radius: 1px;
}
.door-controls button.active {
  border-color: var(--red);
  color: #ffac91;
}
.door-controls button.active i {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
.door-controls .light-button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.door-controls .light-button.active i {
  background: var(--accent);
}
kbd {
  font: 8px var(--mono);
  opacity: 0.45;
  margin-left: auto;
}
#game {
  position: absolute;
  inset: 0;
}
.game-bottom {
  position: absolute;
  bottom: 22px;
  left: 35px;
  right: 35px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.power {
  width: 175px;
  font: 10px var(--mono);
}
.power > span {
  display: flex;
  justify-content: space-between;
  color: #abb79a;
}
.power b {
  font: 16px var(--mono);
  color: var(--paper);
}
.power-track {
  background: #a9bb7c22;
  height: 4px;
  margin: 10px 0;
}
.power-track i {
  height: 100%;
  display: block;
  background: var(--accent);
  width: 100%;
  transition: width 0.5s;
}
.power small {
  font: 8px var(--mono);
  display: flex;
  gap: 13px;
  align-items: center;
}
.power small span {
  display: flex;
  gap: 4px;
}
.power small i {
  width: 9px;
  height: 11px;
  background: var(--accent);
  display: block;
}
.power small i:nth-child(n + 4) {
  background: var(--orange);
}
#monitor {
  width: 42%;
  max-width: 500px;
  border: 1px solid #d3e3ac77;
  border-bottom: 3px solid #d3e3ac88;
  background: #10170de0;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font: 10px var(--mono);
  letter-spacing: 2px;
  transition: 0.2s;
}
#monitor:hover {
  background: #28321ce6;
}
#monitor kbd {
  margin-left: 0;
  font-size: 8px;
  letter-spacing: 0;
}
.chevrons {
  font-size: 18px;
  letter-spacing: 4px;
}
.survive {
  text-align: right;
  font: 10px var(--mono);
  letter-spacing: 2px;
  color: var(--paper);
  width: 175px;
  line-height: 1.7;
}
.survive small {
  font-size: 8px;
  color: var(--dim);
}
#camera-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.camera-border {
  position: absolute;
  inset: 18px 20px 86px;
  border: 1px solid #dbe5ce66;
}
.feed-title {
  position: absolute;
  left: 40px;
  top: 105px;
}
.feed-title > span {
  font: 12px var(--mono);
  padding: 5px 9px;
  border: 1px solid #c0d3b688;
  background: #111b10a8;
}
.feed-title h2 {
  font-size: 30px;
  font-weight: 400;
  margin: 20px 0 8px;
}
.feed-title small {
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #a9bca0;
}
#map {
  position: absolute;
  right: 40px;
  bottom: 105px;
  width: 300px;
  height: 310px;
  color: #99a88b;
  background: #0b120acc;
  pointer-events: auto;
  border: 1px solid #94a27c33;
  padding: 10px;
}
#map svg {
  width: 100%;
  height: 265px;
  opacity: 0.55;
}
.map-title {
  font: 9px var(--mono);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.map-title span {
  font-size: 7px;
  color: #788a6a;
}
#camera-buttons {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 30px;
  bottom: 15px;
}
#camera-buttons button {
  position: absolute;
  width: 44px;
  height: 26px;
  background: #273121;
  border: 1px solid #a9b99688;
  color: #e1ebd3;
  font: 8px var(--mono);
  box-shadow: 0 2px 6px #0008;
}
#camera-buttons button.active {
  background: var(--accent);
  color: #172510;
  border-color: var(--accent);
}
#camera-buttons button:hover {
  filter: brightness(1.4);
}
#kitchen {
  position: absolute;
  top: 40%;
  left: 35%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #c0cab3;
}
#kitchen > span {
  font-size: 60px;
  color: #728164;
}
#kitchen h2 {
  font: 18px var(--mono);
  letter-spacing: 3px;
}
#kitchen p {
  font: 9px var(--mono);
  letter-spacing: 2px;
}
#notice {
  position: absolute;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  font: 10px var(--mono);
  letter-spacing: 1px;
  text-align: center;
  color: #dce9c5;
  background: #131b0ee8;
  padding: 10px 16px;
  border-left: 2px solid var(--accent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  max-width: 70%;
}
#notice.visible {
  opacity: 1;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #0b100bea;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  padding: 30px;
}
.overlay .eyebrow {
  margin-bottom: 20px;
}
.overlay h2 {
  font:
    clamp(50px, 9vw, 110px) Impact,
    "Arial Narrow",
    sans-serif;
  letter-spacing: 2px;
  margin: 0 0 15px;
  color: var(--accent);
}
.overlay p {
  font: 12px/1.9 var(--mono);
  color: #a3b093;
  max-width: 520px;
}
.overlay .start-button {
  max-width: 350px;
  margin-top: 25px;
}
.overlay .secondary {
  font: 10px var(--mono);
  margin-top: 20px;
  text-decoration: underline;
  text-underline-offset: 5px;
  color: #aab797;
}
dialog {
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow: auto;
  background: #171d13;
  border: 1px solid #8da27377;
  padding: 45px;
  color: var(--paper);
  box-shadow: 0 30px 100px #000b;
}
dialog::backdrop {
  background: #050905c9;
  backdrop-filter: blur(8px);
}
dialog h2 {
  font:
    35px Impact,
    Arial,
    sans-serif;
  letter-spacing: 1px;
  margin: 0 0 25px;
}
dialog h3 {
  font: 12px var(--mono);
  color: var(--accent);
  margin: 23px 0 8px;
}
dialog p,
dialog li {
  font-size: 13px;
  line-height: 1.8;
  color: #b2bba5;
}
dialog a {
  color: var(--accent);
}
dialog .close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 26px;
  color: #afba9d;
}
dialog ul {
  padding-left: 18px;
}
dialog .keys {
  border-top: 1px solid #91a17544;
  padding-top: 16px;
  font: 11px/2 var(--mono);
}
#loading {
  position: fixed;
  inset: 0;
  background: #11170f;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  justify-content: center;
  z-index: 30;
  font: 10px var(--mono);
  letter-spacing: 2px;
}
.flash {
  animation: flash 0.25s;
}
@keyframes flash {
  0% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.055;
  }
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
@media (min-width: 1500px) {
  .menu-body {
    width: 510px;
  }
  .tagline {
    font-size: 16px;
  }
}
@media (max-height: 730px) and (min-width: 800px) {
  #menu {
    padding: 23px 5%;
  }
  .menu-body {
    padding: 22px 0;
  }
  .eyebrow {
    margin-bottom: 15px;
  }
  h1 {
    font-size: 68px;
    margin-bottom: 16px;
  }
  .tagline {
    margin-bottom: 22px;
    font-size: 12px;
  }
  .night-picker .tiny {
    margin-bottom: 8px;
  }
  #nights {
    margin-bottom: 12px;
  }
  #nights button {
    height: 36px;
  }
  .start-button {
    padding: 15px 20px;
  }
  .menu-footer {
    padding-top: 17px;
  }
  .menu-actions {
    margin-top: 13px;
  }
}
@media (max-width: 700px) {
  #menu {
    padding: 22px 24px;
    background: linear-gradient(90deg, #11150ff5, #11150fa9 65%, #11150f44);
  }
  .edition {
    display: none;
  }
  .brandmark {
    width: 35px;
    height: 38px;
    font-size: 29px;
  }
  .brand {
    font-size: 9px;
  }
  .menu-body {
    max-width: 100%;
    width: 370px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  h1 {
    font-size: clamp(45px, 10vw, 70px);
  }
  .tagline {
    font-size: 12px;
    max-width: 65%;
    margin-bottom: 28px;
  }
  .night-picker {
    max-width: 340px;
  }
  .scene-caption {
    display: none;
  }
  .footer-middle {
    display: none;
  }
  .menu-footer {
    font-size: 8px;
  }
  .menu-footer button {
    font-size: 7px;
  }
  .menu-actions {
    max-width: 340px;
  }
  .start-button {
    max-width: 340px;
  }
  .game-hud {
    top: 22px;
    left: 20px;
    right: 20px;
  }
  .clock strong {
    font-size: 25px;
  }
  .clock {
    margin-left: 0;
  }
  .game-top-right {
    gap: 7px;
  }
  .game-hud .icon-button {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
  }
  .live-label {
    font-size: 9px;
    max-width: 47%;
  }
  .live-label small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .door-controls {
    width: 87px;
    top: 45%;
  }
  .left-controls {
    left: 12px;
  }
  .right-controls {
    right: 12px;
  }
  .door-controls button {
    font-size: 8px;
    padding: 0 7px;
    min-height: 43px;
  }
  .door-controls > span {
    font-size: 7px;
  }
  .door-controls kbd {
    display: none;
  }
  .game-bottom {
    left: 20px;
    right: 20px;
    bottom: 17px;
    gap: 12px;
  }
  .survive {
    display: none;
  }
  .power {
    width: 115px;
    font-size: 8px;
  }
  .power b {
    font-size: 14px;
  }
  #monitor {
    width: auto;
    flex: 1;
    font-size: 8px;
    letter-spacing: 1px;
    gap: 8px;
    height: 44px;
  }
  #monitor kbd {
    display: none;
  }
  .chevrons {
    font-size: 14px;
  }
  #map {
    right: 20px;
    bottom: 98px;
    transform: scale(0.74);
    transform-origin: bottom right;
  }
  .feed-title {
    top: 95px;
    left: 25px;
  }
  .feed-title h2 {
    font-size: 23px;
  }
  .feed-title small {
    font-size: 7px;
  }
  #kitchen {
    left: 45%;
    top: 33%;
    width: 260px;
  }
  #kitchen h2 {
    font-size: 13px;
  }
  .camera-border {
    inset: 12px 12px 77px;
  }
  dialog {
    padding: 35px 24px;
  }
  #notice {
    max-width: 85%;
    font-size: 8px;
    width: max-content;
    bottom: 90px;
  }
}
@media (max-height: 550px) {
  .menu-body {
    padding: 15px 0;
  }
  .tagline {
    display: none;
  }
  .eyebrow {
    margin-bottom: 12px;
  }
  h1 {
    font-size: 48px;
    margin-bottom: 22px;
  }
  .menu-footer {
    padding-top: 12px;
  }
  .masthead {
    height: 33px;
  }
  .menu-actions {
    margin-top: 10px;
  }
  #nights button {
    height: 30px;
  }
  .start-button {
    padding: 12px 18px;
  }
  .door-controls {
    top: 35%;
  }
  #map {
    transform: scale(0.65);
    transform-origin: bottom right;
  }
  .game-hud {
    top: 15px;
  }
  .feed-title {
    top: 80px;
  }
  .feed-title h2 {
    font-size: 20px;
  }
}

#film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#world {
  transition: filter 0.12s;
}
.game-top-right .sound span {
  display: none;
}

#game .vignette {
  opacity: 0.3;
}
#camera-overlay {
  color: #eee;
}
#map {
  color: #d1d5c9;
}
#camera-buttons button {
  background: #52534d;
  border-color: #d3d6c9;
  color: #fff;
}
#camera-buttons button.active {
  background: #8da947;
  color: #fff;
}
.game-hud {
  text-shadow: 0 2px 8px #000;
}
.vignette {
  box-shadow: inset 0 0 15vw 1vw #05080466;
}

#mute-call {
  pointer-events: auto;
  display: block;
  margin: 12px 0 0 18px;
  padding: 7px 10px;
  border: 1px solid #afbd8c77;
  background: #10160dd9;
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #d2dfb5;
}
#mute-call:hover {
  background: #34432b;
}

@media (max-width: 700px) {
  #mute-call {
    position: absolute;
    top: 45px;
    left: 0;
    margin: 0;
    white-space: nowrap;
    font-size: 7px;
    padding: 6px 8px;
  }
  .live-label {
    line-height: 1.7;
  }
}
