:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #ffffff;
  background: #222222;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

#app {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: #222222;
  color: #ffffff;
}

.screen {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  padding: clamp(28px, 5vw, 80px);
  place-items: center;
  text-align: center;
}

.content {
  display: grid;
  justify-items: center;
  width: min(100%, 86rem);
  gap: clamp(22px, 4vh, 48px);
}

.setup-content {
  width: min(100%, 72rem);
}

.welcome-content {
  width: min(100%, 70rem);
}

.title {
  margin: 0;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.phrase-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
  text-wrap: balance;
}

.body-copy {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.5;
  font-weight: 400;
  white-space: pre-line;
}

.script-lines {
  margin: 0;
  max-width: 70ch;
  font-size: clamp(28px, 3vw, 56px);
  line-height: 1.5;
  font-weight: 500;
  color: #000000;
  white-space: pre-line;
  text-wrap: balance;
}

.counter {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  color: currentColor;
}

.bottom-hint {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(24px, 4vw, 56px);
  left: clamp(24px, 4vw, 56px);
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
  font-weight: 550;
}

.start-button {
  min-width: 12rem;
  border: 2px solid #ffffff;
  border-radius: 0;
  padding: 18px 34px;
  color: #ffffff;
  background: transparent;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.start-button:focus-visible {
  outline: 4px solid #ffffff;
  outline-offset: 6px;
}

.url {
  display: block;
  color: #ffffff;
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  max-width: 58ch;
  list-style: none;
  text-align: left;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.45;
}

.check-list li::before {
  content: "- ";
}

.error {
  color: #ffffff;
  background: #222222;
}
