:root {
  --bg: #FF766C;
  --text: #111111;
  --btn-dark-bg: #000000;
  --btn-dark-text: #ffffff;
  --btn-light-bg: #ffffff;
  --btn-light-text: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Special Elite", "Courier New", monospace;
}

.wrap {
  width: min(90vw, 760px);
  text-align: center;
  display: grid;
  gap: 2.25rem;
  justify-items: center;
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 6.8vw, 4.8rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  border-right: 0.09em solid var(--text);
  animation:
    typewriter 4.6s steps(22, end) 2s forwards,
    caret 700ms steps(1, end) 2s infinite;
}

.actions {
  display: flex;
  gap: 1.2rem;
  opacity: 0;
  animation: fadeIn 900ms ease-out 7.6s forwards;
}

button {
  border: 3px solid #111111;
  padding: 1.2rem 2rem;
  min-width: 140px;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 7px 0 #111111;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #111111;
}

.duh {
  background: transparent;
  color: #111111;
}

.yes {
  background: var(--btn-light-bg);
  color: var(--btn-light-text);
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 22ch; }
}

@keyframes caret {
  50% { border-color: transparent; }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: clamp(1rem, 6vw, 1.6rem);
  }

  .actions {
    width: 100%;
    justify-content: center;
  }
}
