:root {
  color-scheme: dark;
  --bg: #171b19;
  --panel: #202521;
  --line: #41473a;
  --cream: #f0e9d7;
  --muted: #b8b8a4;
  --gold: #e3bb76;
  --blue: #a8c4c8;
  --red: #d69c88;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--cream);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
.cinema-controls {
  padding: 13px 28px;
  background: #171e19;
  border-bottom: 1px solid var(--line);
}
#playback-error {
  margin: 0 0 12px;
}
.playback-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.playback-buttons button {
  background: #2c332b;
  border: 1px solid #626b58;
  border-radius: 3px;
  padding: 8px 15px;
  min-height: 40px;
  font-size: 0.875rem;
}
.text-button {
  display: block;
  margin: 20px auto 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  text-decoration: underline;
  padding: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
button:disabled {
  opacity: 0.5;
}
.restaurant {
  scroll-margin-top: 12px;
}
.conversation {
  min-height: 150px;
}
@media (max-width: 650px) {
  .cinema-controls {
    padding: 12px 17px;
  }
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0, #30372b 0, transparent 68%);
  min-height: 100vh;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
}
button {
  touch-action: manipulation;
}
button:hover:not(:disabled) {
  filter: brightness(1.12);
}
[hidden] {
  display: none !important;
}
.cabinet {
  max-width: 1040px;
  margin: auto;
  padding: 30px 32px 20px;
}
.masthead {
  text-align: center;
  padding: 0 0 26px;
}
.eyebrow,
.game-bar,
.small-print,
.start-button span {
  font-family: "Courier New", monospace;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.3vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  margin: 12px 0 9px;
  line-height: 1.08;
}
h1 em {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--gold);
}
.masthead > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  letter-spacing: 0.015em;
}
.game {
  border: 1px solid #67705a;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 20px 70px #0004;
  background: #202420;
}
.game-bar {
  padding: 13px 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  background: #252c25;
  border-bottom: 1px solid #626747;
}
.restaurant {
  position: relative;
  background: #221a17;
  border-bottom: 1px solid #626747;
  overflow: hidden;
}
.restaurant canvas {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.restaurant:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    #00000012 0px,
    #00000012 1px,
    transparent 1px,
    transparent 4px
  );
}
.intro {
  text-align: center;
  padding: 27px 24px 24px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  color: var(--gold);
  margin: 0 0 10px;
}
h2 {
  font:
    400 1.7rem/1.2 Georgia,
    "Times New Roman",
    serif;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.start-button {
  display: inline-flex;
  gap: 44px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  color: #27271e;
  background: var(--gold);
  border: 1px solid #f0d7a5;
  box-shadow: 0 4px 0 #8c6c3a;
  border-radius: 2px;
  font-weight: 700;
}
.start-button span {
  font-size: 0.75rem;
  border: 1px solid #9b7e4e;
  padding: 3px 5px;
  font-weight: 400;
}
.small-print {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 18px 0 0;
}
.conversation {
  padding: 22px 28px 16px;
}
.dialogue {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
  color: #f0e9d7;
}
.previous {
  border-left: 2px solid #727a60;
  padding: 2px 0 2px 14px;
  margin: 0 0 20px;
}
.previous p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 5px;
  color: #c3c5b5;
}
.previous p:last-child {
  margin: 0;
}
.previous p > span:first-child {
  font:
    0.7rem "Courier New",
    monospace;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-right: 9px;
}
.previous q {
  quotes: none;
}
.controls {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.choice {
  padding: 15px 16px;
  text-align: left;
  border: 1px solid #626b58;
  border-bottom-width: 4px;
  border-radius: 3px;
  background: #2c332b;
  min-height: 70px;
  justify-content: center;
  transition:
    background 0.15s,
    transform 0.15s;
  display: flex;
  flex-direction: column;
}
.choice:hover:not(:disabled) {
  background: #384131;
  transform: translateY(-2px);
}
.choice:active:not(:disabled) {
  transform: translateY(2px);
}
.choice.gold {
  --accent: var(--gold);
}
.choice.blue {
  --accent: var(--blue);
}
.choice.red {
  --accent: var(--red);
}
.choice-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 0;
}
.choice kbd {
  font: 1.25rem monospace;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #1d241f;
  border: 1px solid #626b58;
  border-radius: 3px;
  flex-shrink: 0;
}

.ending {
  text-align: center;
  padding: 27px 32px 32px;
}
.ending h2 {
  font-size: 2rem;
}
.ending .dialogue {
  max-width: 720px;
  margin: 0 auto 18px;
}
.ending-subtitle {
  color: var(--gold);
  margin: 0 0 14px;
  font-size: 0.9rem;
}
.ending .start-button {
  margin-top: 22px;
}
h2:focus {
  outline: none;
}
@media (min-width: 1400px) {
  .cabinet {
    padding-top: 40px;
  }
  .masthead {
    padding-bottom: 32px;
  }
}
@media (max-width: 650px) {
  .cabinet {
    padding: 20px 14px 10px;
  }
  .masthead {
    padding-bottom: 20px;
  }
  h1 {
    font-size: 2.6rem;
  }
  .masthead > p {
    font-size: 0.8rem;
  }
  .game-bar {
    padding: 11px 12px;
    font-size: 0.62rem;
    letter-spacing: 0;
  }
  .intro {
    padding: 24px 16px;
  }
  .intro h2 {
    font-size: 1.65rem;
  }
  .desktop-break {
    display: none;
  }
  .conversation {
    padding: 20px 17px 14px;
  }
  .dialogue {
    font-size: 1.08rem;
    line-height: 1.55;
  }
  .controls {
    grid-template-columns: 1fr;
    padding: 20px 17px;
    gap: 9px;
  }
  .choice {
    min-height: 0;
    padding: 12px;
  }
  .choice kbd {
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }
  .ending {
    padding: 25px 19px;
  }
  .ending h2 {
    font-size: 1.7rem;
  }
  .previous p {
    font-size: 0.83rem;
  }
  .small-print {
    font-size: 0.68rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.875rem;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  padding: 8px;
}
footer a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
