:root {
  color-scheme: dark;
  --bg: #030303;
  --surface: rgba(10, 10, 11, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f0;
  --muted: #a6a6a0;
  --signal: #e9ff70;
  --danger: #ff5c7a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(233, 255, 112, 0.08), transparent 28rem),
    linear-gradient(245deg, rgba(255, 255, 255, 0.06), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

button { font: inherit; }

.app {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 72px;
}

.hero {
  display: grid;
  justify-items: center;
  padding: 28px 0 clamp(34px, 6vw, 58px);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
}

.brand-mark {
  width: 17px;
  height: 17px;
  border: 2px solid var(--text);
  border-radius: 50%;
  box-shadow: inset 6px 0 0 var(--signal);
}

.kicker {
  margin: 0;
  color: var(--signal);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 860;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin-top: 14px;
  font-size: clamp(54px, 10vw, 124px);
  line-height: 0.86;
}

h2 {
  font-size: clamp(34px, 5.8vw, 74px);
  line-height: 0.9;
}

.lede,
.intro p,
.progress-panel p,
.breakdown {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.35;
}

.lede {
  max-width: 800px;
  margin: 24px auto 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 70%),
    var(--surface);
  padding: clamp(20px, 4vw, 32px);
}

.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.intro h2 {
  margin-top: 10px;
}

.intro p {
  max-width: 70ch;
  margin: 18px 0 0;
}

.button {
  display: inline-flex;
  min-height: 46px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
  white-space: nowrap;
}

.button-light {
  border: 1px solid #eff2d6;
  background: #f5f7e9;
  color: #11120e;
}

.button-dark {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(520px, 1fr);
  gap: 14px;
}

.progress-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.progress-panel strong {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.9;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(233, 255, 112, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--signal);
  box-shadow: 0 0 22px rgba(233, 255, 112, 0.42);
  transition: width 240ms ease;
}

.question-panel {
  display: grid;
  gap: clamp(22px, 4vw, 34px);
  min-height: 480px;
}

.question-panel h2 {
  overflow-wrap: anywhere;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  font-size: clamp(32px, 6vw, 66px);
  font-weight: 950;
}

.answer:hover {
  border-color: rgba(233, 255, 112, 0.58);
  box-shadow: 0 0 28px rgba(233, 255, 112, 0.12);
}

.answer.yes:hover {
  border-color: rgba(255, 92, 122, 0.58);
  box-shadow: 0 0 28px rgba(255, 92, 122, 0.14);
}

.result-panel {
  display: grid;
  justify-items: start;
  gap: 16px;
  overflow: hidden;
}

.result-panel h2 {
  color: var(--signal);
  font-size: clamp(86px, 18vw, 190px);
  text-shadow: 0 0 34px rgba(233, 255, 112, 0.2);
}

.verdict {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 900;
  line-height: 0.95;
}

.breakdown {
  max-width: 72ch;
  margin: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 840px) {
  .intro,
  .test-layout,
  .answer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: clamp(44px, 15vw, 74px);
  }

  .question-panel {
    min-height: 420px;
  }
}
