:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #f7f0df;
  background: #111820;
  color-scheme: dark;
  --amber: #e8b477;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
#entry {
  position: fixed;
  inset: 0;
  padding: 7vh 7vw;
  background: linear-gradient(
    90deg,
    rgba(8, 15, 23, 0.95),
    rgba(8, 15, 23, 0.78) 35%,
    rgba(8, 15, 23, 0.08) 75%
  );
  animation: arrive 0.65s ease-out;
}
.eyebrow,
.footnote {
  font-size: 10px;
  letter-spacing: 0.19em;
  color: #c8c5bd;
}
h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  margin: 5vh 0 24px;
}
h1 span {
  color: var(--amber);
}
.invitation {
  font:
    italic 24px Georgia,
    serif;
  margin: 0 0 38px;
  color: #d9d3c8;
}
form {
  width: min(300px, 100%);
}
label {
  display: block;
  font-size: 12px;
  margin: 20px 0 9px;
}
label span {
  color: #a8aaa8;
  font-size: 11px;
  margin-left: 5px;
}
input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #687071;
  background: rgba(15, 24, 32, 0.5);
  padding: 12px 10px;
  border-radius: 0;
  color: #fff;
  transition: border-color 0.18s;
}
input:hover,
input:focus {
  border-color: var(--amber);
}
#code {
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
#code::placeholder {
  text-transform: none;
  letter-spacing: normal;
}
button {
  border: 0;
  background: var(--amber);
  color: #172027;
  padding: 14px 20px;
  font-weight: 600;
  transition:
    background 0.18s,
    transform 0.18s;
}
button:hover {
  background: #f3c995;
  transform: translateY(-1px);
}
#enter {
  width: 100%;
  margin-top: 24px;
}
#message {
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
  color: #ecc299;
  margin: 13px 0;
}
.footnote {
  position: absolute;
  bottom: 5vh;
  left: 7vw;
  right: 7vw;
  display: flex;
  justify-content: space-between;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.room {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 32px;
  right: 32px;
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 12px;
  text-shadow: 0 1px 8px #000;
}
.room strong {
  letter-spacing: 0.2em;
}
.room button {
  padding: 8px 12px;
  background: #12202bd9;
  color: #f5e8d0;
  font-size: 11px;
  pointer-events: auto;
}
.room button span {
  color: var(--amber);
  padding-left: 10px;
  font-family: monospace;
}
.room #count {
  margin-left: auto;
}
#pause {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #101923aa;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}
h2 {
  font:
    normal clamp(28px, 4vw, 48px) Georgia,
    serif;
}
.quiet {
  background: transparent;
  color: #e5ddcc;
  font-size: 12px;
  margin-top: 16px;
}
.quiet:hover {
  background: #ffffff12;
}
#play-message {
  font-size: 12px;
}
.controls {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 8px #000;
}
.controls span {
  color: #c5c8ca;
  margin: 0 12px 0 4px;
  letter-spacing: 0;
}
#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 24px;
  transform: translate(-50%, -50%);
}
#markers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.marker {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 12px;
  background: #16212ad9;
  padding: 6px 9px;
  border-bottom: 2px solid var(--amber);
  white-space: nowrap;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-height: 740px) {
  #entry {
    padding-top: 4vh;
  }
  h1 {
    margin-top: 3vh;
    font-size: 90px;
  }
  .invitation {
    margin-bottom: 20px;
  }
  label {
    margin-top: 14px;
  }
  .footnote {
    bottom: 20px;
  }
}
@media (max-width: 600px) {
  #entry {
    background: #0c1624bc;
    padding: 6vh 8vw;
  }
  h1 {
    font-size: 100px;
  }
  form {
    width: 100%;
    max-width: 340px;
  }
  .footnote span {
    display: none;
  }
  .room {
    left: 14px;
    right: 14px;
    gap: 10px;
  }
  .controls {
    font-size: 8px;
  }
  .controls span {
    margin-right: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.inventory {
  position: absolute;
  bottom: 75px;
  left: 32px;
  color: #acb7be;
  font-size: 14px;
  line-height: 1.7;
}
.inventory .selected {
  color: #f6c982;
}
.inventory p {
  margin: 2px 0;
}
.inventory small {
  font-size: 11px;
}
#interaction-prompt {
  color: #fff3d9;
}
#action-message {
  color: #f4b3a1;
}

.voice-panel {
  position: absolute;
  top: 76px;
  right: 32px;
  max-width: 300px;
  pointer-events: auto;
  font-size: 12px;
}
.voice-panel button,
.voice-panel select {
  font: inherit;
  padding: 8px 12px;
}
.voice-panel select {
  background: #15232d;
  color: #fff3d9;
  border: 1px solid #38444e;
}
.voice-panel label {
  display: inline;
}
#voice-status {
  color: #acb7be;
  margin: 8px 0;
}
#voice-level {
  width: 100%;
  height: 5px;
}
#voice-people {
  display: flex;
  flex-wrap: wrap;
}

.marker.speaking {
  color: #f6c982;
  border-bottom: 2px solid #f6c982;
}
