:root {
  color-scheme: dark;
  --paper: #d5cebb;
  --muted: #969589;
  --rust: #b87961;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0e0c;
  color: var(--paper);
  font-family: Georgia, serif;
}
button,
input,
summary {
  accent-color: var(--rust);
}
button {
  font: 11px monospace;
  letter-spacing: 2px;
  cursor: pointer;
  min-height: 48px;
  padding: 16px 27px;
  background: #d5cebb;
  color: #1e2420;
  border: 1px solid #d5cebb;
  transition: background 0.2s;
}
button:hover {
  background: #f0eadc;
}
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 6px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  color: var(--paper);
  background: transparent;
  border-color: #7c7d6c;
}
.secondary:hover {
  background: #333b31;
}
[hidden] {
  display: none !important;
}
canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
}
#veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 34%, #0008 100%);
  box-shadow: inset 0 0 100px #0003;
}
#veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, #0000, #0000 2px, #0001 3px);
  opacity: 0.3;
}
#menu {
  position: fixed;
  inset: 0;
  z-index: 3;
  padding: 36px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    90deg,
    #0a100ff5 0%,
    #0a100fdb 40%,
    #0a100f40 100%
  );
}
.menu-top,
footer,
.eyebrow,
#hud {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.8;
}
.menu-top,
footer {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  gap: 24px;
}
.menu-top {
  border-bottom: 1px solid #d5cebb30;
  padding-bottom: 16px;
  color: var(--muted);
}
.menu-body {
  max-width: 540px;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 0;
}
.eyebrow {
  color: var(--rust);
  font-size: 9px;
  letter-spacing: 3px;
}
h1 {
  font-size: clamp(64px, 10vw, 130px);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -5px;
  margin: 32px 0 22px;
}
h1 span {
  display: block;
  margin-left: 8px;
  color: #d5cebb88;
  font-style: italic;
}
#description {
  font-size: 17px;
  line-height: 1.7;
  color: #b7b9aa;
  max-width: 400px;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
footer {
  border-top: 1px solid #d5cebb30;
  padding-top: 18px;
  color: var(--muted);
  font-size: 9px;
}
footer span:last-child {
  text-align: right;
}
details {
  margin-top: 22px;
  max-width: 320px;
  color: var(--muted);
  font: 10px monospace;
  letter-spacing: 1px;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
input[type="range"] {
  width: 125px;
}
#error {
  color: #e0a486;
  max-width: 400px;
  font: 12px/1.6 monospace;
}
#hud {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 5px #000;
}
.topline {
  position: absolute;
  top: 26px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  color: #d5cebb88;
  font-size: 9px;
}
#cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  background: #d5cebb99;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
#cross.active {
  width: 7px;
  height: 7px;
  background: none;
  border: 1px solid #d5cebb;
}
#prompt {
  position: absolute;
  top: 57%;
  width: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
}
#message {
  position: absolute;
  bottom: 22%;
  width: 100%;
  text-align: center;
  font:
    italic 20px/1.6 Georgia,
    serif;
  letter-spacing: 1px;
  padding: 0 24px;
}
#subtitle {
  position: absolute;
  bottom: 12%;
  left: 15%;
  width: 70%;
  text-align: center;
  font:
    15px/1.6 Georgia,
    serif;
  color: #ebe6d8;
}
#subtitle:not(:empty) {
  background: #0b100dc9;
  padding: 8px 14px;
}
#hint {
  position: absolute;
  bottom: 27px;
  width: 100%;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1px;
  color: #c6c4b1bb;
}
#pocket {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: #0d1411f2;
  padding: 12vh 12vw;
  overflow: auto;
}
#pocket h2 {
  font-size: 48px;
  font-weight: 400;
  margin: 15px 0 35px;
}
#items {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.item {
  max-width: 340px;
  flex: 1 1 230px;
  border: 1px solid #647063;
  padding: 24px;
  background: #1a241c;
}
.item h3 {
  font-weight: 400;
  font-size: 22px;
}
.item p {
  font-size: 15px;
  line-height: 1.8;
  color: #b7b9aa;
}
.item-symbol {
  font-size: 38px;
  color: #b19c67;
}
.pocket-help {
  font: 10px monospace;
  letter-spacing: 2px;
  margin-top: 40px;
  color: var(--muted);
}
@media (max-height: 650px) {
  #menu {
    padding: 18px 5vw;
  }
  h1 {
    font-size: 70px;
    margin: 14px 0;
  }
  .menu-body {
    padding: 8px 0;
  }
  #description {
    font-size: 14px;
  }
  .actions {
    margin-top: 12px;
  }
  details {
    margin-top: 8px;
  }
  footer {
    font-size: 8px;
    padding-top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #veil::after {
    display: none;
  }
}
#veil {
  transition: background-color 4s ease;
}
#veil.closing {
  background-color: #030705;
}
canvas {
  image-rendering: auto;
}
#veil {
  background: radial-gradient(ellipse at center, transparent 42%, #0007 100%);
}
#veil::after {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
}
#veil.clean::after {
  display: none;
}
#menu {
  background: linear-gradient(90deg, #0a0d0ef5, #0a0d0edb 40%, #0a0d0e30);
}
select {
  max-width: 185px;
  padding: 7px;
  background: #1e2823;
  border: 1px solid #617064;
  color: var(--paper);
  font: 11px monospace;
}
#inspect {
  position: fixed;
  inset: 0;
  z-index: 4;
  padding: 13vh 15vw;
  background: #101614f5;
  overflow: auto;
}
#inspect h2 {
  font-weight: 400;
  font-size: 48px;
  margin: 18px 0;
}
#inspect p {
  color: var(--muted);
  line-height: 1.7;
}
.time-inputs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0;
  max-width: 380px;
}
.time-inputs label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font: 10px monospace;
  letter-spacing: 2px;
}
.time-inputs input {
  font: 48px Georgia;
  width: 125px;
  border: 0;
  border-bottom: 1px solid #899481;
  background: transparent;
  color: var(--paper);
  padding: 10px;
}
.time-inputs > span {
  font-size: 48px;
}
.item {
  background: #17201d;
  border-color: #3f4d46;
}
.topline {
  color: #d6d1c292;
}
#message {
  font-size: 18px;
}
#subtitle {
  font-size: 15px;
  max-width: 700px;
  left: 50%;
  transform: translateX(-50%);
}
#settings {
  max-width: 360px;
}
details[open] {
  max-height: 270px;
  overflow: auto;
  padding-right: 10px;
}
.menu-body {
  max-width: 570px;
}
#hint {
  color: #d2cab8aa;
}
