*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #000;
  -webkit-font-smoothing: antialiased;
  --kerning: -0.02em;
  --page-inset: clamp(22px, 4vw, 64px);
  --terminal-pad-top: 240px;
}

body:has(.artifact-mode) {
  overflow: hidden;
}

body:has(.lie-mode) {
  overflow: hidden;
}

body:has(.info-mode) {
  overflow: hidden;
}

textarea,
button {
  font-family: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.info-button {
  position: fixed;
  z-index: 60;
  top: clamp(16px, 3vw, 42px);
  right: clamp(18px, 3.4vw, 52px);
  width: 24px;
  height: 24px;
  color: #000;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0;
}

.info-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #000;
  color: #fff;
}

.info-overlay p {
  width: min(78vw, 820px);
  margin: 0;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}

.page.info-mode .info-button {
  color: #fff;
}

.page.artifact-mode {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.page.lie-mode {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.top-mark {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  padding: var(--page-inset);
  overflow: hidden;
  background: #fff;
}

.ascii-mark {
  margin: 0;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(6px, 0.86vw, 14px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 4s steps(128, end);
}

.ascii-mark.revealed {
  clip-path: inset(0 0 0 0);
}

.ascii-char {
  display: inline-block;
  opacity: 1;
  transition-property: opacity;
  transition-timing-function: ease;
}

.ascii-char.vanish {
  opacity: 0;
}

.terminal {
  width: min(100%, 1240px);
  padding: var(--terminal-pad-top) var(--page-inset) var(--page-inset);
}

.helper-text {
  margin: 0 0 clamp(18px, 3vh, 34px);
  color: #000;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 34px);
  line-height: 1.05;
  letter-spacing: var(--kerning);
}

.seed-form {
  position: relative;
  min-height: clamp(82px, 14vw, 190px);
}

.seed-input,
.ghost,
.stream-line {
  font-weight: 700;
  font-size: clamp(30px, 5.1vw, 86px);
  line-height: 1.05;
  letter-spacing: var(--kerning);
}

.seed-input {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 72px;
  resize: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
}

.seed-input.locked {
  pointer-events: none;
}

.ghost {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-height: 72px;
  pointer-events: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.caret {
  display: inline-block;
  width: 0.055em;
  height: 0.92em;
  margin-left: 0.04em;
  vertical-align: -0.08em;
  background: #000;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.stream {
  list-style: none;
  padding: 0;
  margin: clamp(26px, 5vh, 62px) 0 0;
}

.stream-line {
  margin: 0 0 0.68em;
  color: #000;
  overflow-wrap: anywhere;
}

.stream-line.seed {
  color: rgba(0, 0, 0, 0.32);
}

.stream-line.pending {
  color: rgba(0, 0, 0, 0.32);
}

.stream-line.indicator {
  height: 1.05em;
  color: rgba(0, 0, 0, 0.32);
}

.stream-line.error {
  color: #000;
  opacity: 0.55;
}

.artifact-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  color: #aaa;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: var(--kerning);
}

.artifact-text {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 72px);
  bottom: clamp(22px, 5vw, 72px);
  width: min(88vw, 1120px);
  color: #000;
  font-weight: 700;
  font-size: clamp(42px, 9.4vw, 168px);
  line-height: 0.92;
  letter-spacing: var(--kerning);
  overflow-wrap: anywhere;
}

.answer-panel {
  position: absolute;
  z-index: 3;
  inset: 0;
  color: #000;
  outline: 0;
  pointer-events: none;
}

.answer-question {
  position: absolute;
  top: clamp(22px, 6vh, 70px);
  left: clamp(20px, 5vw, 72px);
  max-width: min(84vw, 1120px);
  margin: 0 0 0.18em;
  font-weight: 700;
  font-size: clamp(30px, 5.8vw, 104px);
  line-height: 0.95;
  letter-spacing: var(--kerning);
}

.answer-options {
  display: contents;
}

.answer-option {
  position: absolute;
  pointer-events: auto;
  color: #000;
  font-weight: 700;
  font-size: clamp(30px, 5.8vw, 104px);
  line-height: 0.95;
  letter-spacing: var(--kerning);
  opacity: 1;
  animation: openSignBlink 1.08s steps(1, end) infinite;
}

.answer-yes {
  top: clamp(150px, 25vh, 250px);
  left: clamp(40px, 66vw, 860px);
  color: #00a63e;
}

.answer-no {
  top: clamp(250px, 42vh, 390px);
  left: clamp(120px, 36vw, 520px);
  color: #e60000;
  animation-delay: 0.18s;
}

.answer-option.selected,
.answer-option:hover {
  opacity: 1;
}

@keyframes openSignBlink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

.download-run {
  position: absolute;
  z-index: 4;
  top: clamp(86px, 13vh, 150px);
  right: clamp(22px, 6vw, 96px);
  color: #000;
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 34px);
  line-height: 1;
  letter-spacing: var(--kerning);
  opacity: 0.42;
}

.download-run:hover,
.download-run:focus-visible {
  opacity: 1;
}

.lie-text {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  color: #ff0000;
  font-weight: 700;
  font-size: clamp(42px, 10vw, 180px);
  line-height: 0.92;
  letter-spacing: var(--kerning);
  text-align: center;
}

.retry {
  pointer-events: auto;
  font: inherit;
  font-weight: 700;
  letter-spacing: var(--kerning);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  body {
    --page-inset: 20px;
  }

  .page:not(.artifact-mode):not(.lie-mode) {
    padding: 0;
  }

  .top-mark {
    padding: 20px;
  }

  .ascii-mark {
    font-size: 6px;
  }

  .terminal {
    padding: var(--terminal-pad-top) 20px 20px;
  }

  .seed-input,
  .ghost,
  .stream-line {
    font-size: 32px;
    line-height: 1.08;
  }

  .answer-yes {
    top: 22vh;
    left: 64vw;
  }

  .answer-no {
    top: 36vh;
    left: 18vw;
  }

  .download-run {
    top: 72px;
    right: 20px;
  }
}
