@font-face {
  font-family: VesperaBitmap;
  src: url("fonts/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #fff;
  --panel: #fff;
  --ink: #000;
  --gold: #000;
  --line: #000;
  --green: #000;
  font-family: VesperaBitmap, monospace;
  font-size: 22px;
}
body {
  background: #fff;
  color: #000;
}
button,
input,
select,
textarea {
  font-family: VesperaBitmap, monospace;
  font-size: 20px;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 0;
}
button {
  padding: 8px 14px;
}
button:hover {
  color: #fff;
  background: #000;
  border-color: #000;
}
button:disabled {
  opacity: 1;
  color: #666;
  border-style: dotted;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px dashed #000;
  outline-offset: 4px;
}
h1,
h2 {
  font-family: VesperaBitmap, monospace;
  color: #000;
  font-weight: 400;
}
h1 {
  font-size: clamp(54px, 6vw, 100px);
  letter-spacing: 5px;
  line-height: 1;
}
h2 {
  font-size: 36px;
  letter-spacing: 1px;
}
p {
  line-height: 1.35;
}
.eyebrow {
  font-size: 17px;
  letter-spacing: 2px;
  color: #000;
}
.muted,
small {
  color: #000;
}
.home-copy {
  padding-top: 45px;
  padding-bottom: 45px;
}
.home-copy h2 {
  font-size: 28px;
}
.home-actions button {
  background: #fff;
  border: 2px solid #000;
  font-size: 24px;
}
.home-actions button:first-child {
  color: #fff;
  background: #000;
  border: 2px solid #000;
}
.home-actions button:hover {
  background: #000;
  color: #fff;
}
.intro {
  font-size: 25px;
}
.edition {
  font-size: 19px;
  letter-spacing: 1px;
}
.home-scene {
  background: #fff;
  border-left: 6px double #000;
  padding: 22px;
}
.scene {
  background: #000;
  border: 6px double #000;
}
.mono-source {
  display: none !important;
}
.mono-scene {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.scene-caption {
  color: #000;
  background: #fff;
  border-top: 3px double #000;
  font-size: 18px;
  letter-spacing: 2px;
  padding: 12px;
}
.scene-caption small {
  color: #000;
}
.home-scene .scene-caption {
  border-bottom: 3px double #000;
}
.home-scene img {
  animation: none !important;
  filter: none !important;
}
header {
  border-bottom: 6px double #000;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  min-height: 66px;
}
.brand {
  font-family: VesperaBitmap, monospace;
  font-size: 28px;
  color: #fff;
  letter-spacing: 3px;
}
#stats {
  font-size: 18px;
  color: #fff;
}
nav button {
  font-size: 18px;
  padding: 5px 10px;
}
.exploration {
  gap: 22px;
  padding: 20px 0;
}
.room-info p {
  font-size: 21px;
}
.objects label {
  font-size: 18px;
}
.objects select {
  padding: 5px;
}
#verbs button {
  font-size: 19px;
  letter-spacing: 0;
  padding: 7px 10px;
}
#narrative {
  font-size: 20px;
  color: #000;
}
#exits button {
  font-size: 20px;
}
.workbench {
  border: 3px double #000;
  border-radius: 0;
}
.quest-bar {
  background: #fff;
  border-bottom: 3px double #000;
  padding: 10px 14px;
}
.quest-bar label {
  font-size: 19px;
}
#quest-count {
  font-size: 18px;
  color: #000;
}
.lesson-panel {
  border-right: 3px double #000;
}
.tabs {
  border-bottom: 2px solid #000;
}
.tabs button {
  font-size: 19px;
  padding: 9px 12px;
  color: #000;
  border-right: 1px solid #000;
}
.tabs button[aria-selected="true"] {
  color: #fff;
  background: #000;
  border-bottom: 0;
}
.tab-body {
  font-size: 21px;
  line-height: 1.35;
  max-height: 480px;
  padding: 16px;
}
.tab-body strong {
  font-size: 23px;
  color: #000;
  font-weight: 400;
  text-decoration: underline;
}
.code-panel label {
  font-size: 19px;
}
#editor {
  font-family: VesperaBitmap, monospace;
  font-size: 23px;
  line-height: 1.25;
  padding: 10px;
  min-height: 125px;
}

.execution button {
  font-size: 19px;
  padding: 6px 10px;
}
.primary {
  color: #fff;
  background: #000;
  border-color: #000;
}
kbd {
  font-family: VesperaBitmap, monospace;
  font-size: 17px;
  color: inherit;
  margin-left: 10px;
}
#feedback,
#feedback.error {
  font-size: 20px;
  color: #000;
}
#feedback.error {
  border-left: 5px solid #000;
  padding-left: 10px;
}
#result {
  background: #fff;
  border: 2px solid #000;
  min-height: 90px;
}
#result p {
  font-size: 19px;
}
table {
  font-size: 20px;
}
th,
td {
  border-bottom: 1px solid #000;
  padding: 7px 10px;
}
th {
  color: #000;
  font-weight: 400;
  background: #fff;
  text-decoration: underline;
}
footer {
  font-size: 17px;
  color: #000;
}
dialog {
  background: #fff;
  color: #000;
  border: 6px double #000;
  border-radius: 0;
}
#dialog-body {
  font-size: 22px;
  line-height: 1.35;
}
#close-dialog {
  font-size: 18px;
}
.contrast {
  --ink: #000;
  --line: #000;
  --panel: #fff;
}
dialog::backdrop {
  background: #000b;
}
@media (max-width: 850px) {
  .home-scene {
    border-left: 0;
    border-top: 6px double #000;
  }
  .home-copy {
    padding: 30px;
  }
  .home-copy h1 {
    font-size: 56px;
  }
  .lesson-panel {
    border-right: 0;
    border-bottom: 3px double #000;
  }
  .tabs button {
    font-size: 18px;
    padding: 9px 10px;
  }
  .mono-scene {
    max-height: 340px;
    object-fit: contain;
  }
  #stats {
    font-size: 17px;
  }
  nav button {
    font-size: 17px;
  }
}
.objects label,
.room-info,
.quest-bar label,
header > div {
  min-width: 0;
  max-width: 100%;
}
.objects select,
#quests {
  min-width: 0;
  max-width: 100%;
}
#quests {
  width: 100%;
}
.quest-bar label {
  flex: 1;
}
footer {
  gap: 8px;
  flex-wrap: wrap;
}
