:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #b9cdf6;
  --blue: #1f75ff;
  --blue-2: #00c2ff;
  --deep: #020817;
  --panel: rgba(4, 18, 45, 0.72);
  --line: rgba(125, 184, 255, 0.25);
  --good: #48f5b4;
  --bad: #ff5d84;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 22%, rgba(31, 117, 255, 0.55), transparent 28%),
    radial-gradient(circle at 78% 14%, rgba(0, 194, 255, 0.34), transparent 24%),
    radial-gradient(circle at 55% 105%, rgba(73, 93, 255, 0.44), transparent 34%),
    linear-gradient(135deg, #020817 0%, #071b43 48%, #020817 100%);
  display: grid;
  place-items: center;
  padding: 22px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  pointer-events: none;
}

.app {
  width: min(960px, 100%);
}

.screen {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100vh - 44px));
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 38%),
    var(--panel);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
}

.screen::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -210px;
  top: -220px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--blue), var(--blue-2), #8db7ff, var(--blue));
  filter: blur(2px);
  opacity: 0.42;
}

.screen::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: -190px;
  bottom: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.glass {
  position: relative;
  z-index: 1;
  min-height: min(720px, calc(100vh - 44px));
  padding: clamp(32px, 7vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  align-self: flex-start;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9ebff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  max-width: 820px;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(58px, 11vw, 124px);
  line-height: 0.86;
}

h2 {
  font-size: clamp(36px, 7vw, 78px);
  line-height: 0.98;
}

.lead,
.copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2.7vw, 24px);
  line-height: 1.55;
}

.lead {
  margin: 28px 0 18px;
  color: var(--ink);
  font-weight: 800;
}

.copy {
  margin: 0 0 22px;
}

button {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  color: #001331;
  background: linear-gradient(135deg, #ffffff, #9edcff);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 194, 255, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(0, 194, 255, 0.34);
}

.status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: #d9ebff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track {
  height: 8px;
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transition: width 0.3s ease;
}

.answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.answer {
  min-height: 128px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: left;
}

.answer:hover {
  color: #001331;
  background: linear-gradient(135deg, #ffffff, #bce8ff);
}

.answer.correct,
.answer.correct:hover {
  color: #002218;
  background: linear-gradient(135deg, #eafff7, var(--good));
}

.answer.wrong,
.answer.wrong:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #ff7a9d, #d62452);
}

.feedback {
  min-height: 30px;
  margin: 24px 0 0;
  color: #d9ebff;
  font-size: 18px;
  font-weight: 850;
}

.score-card {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 24px 0 24px;
}

.score-card span {
  font-size: clamp(92px, 19vw, 170px);
  font-weight: 950;
  line-height: 0.9;
}

.score-card small {
  color: var(--muted);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 850;
}

.code {
  display: flex;
  gap: clamp(10px, 2vw, 18px);
  margin: 28px 0 30px;
}

.code span {
  display: grid;
  place-items: center;
  width: clamp(78px, 17vw, 140px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  color: #001331;
  background: linear-gradient(145deg, #ffffff, #8ad9ff);
  font-size: clamp(58px, 14vw, 118px);
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 24px 58px rgba(0, 194, 255, 0.28);
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding: 16px;
  }

  .screen,
  .glass {
    min-height: calc(100vh - 32px);
  }

  .screen {
    border-radius: 24px;
  }

  .glass {
    padding: 30px 22px;
  }

  .answers {
    grid-template-columns: 1fr;
  }

  .answer {
    min-height: 72px;
    text-align: center;
  }

  .status,
  .score-card {
    flex-direction: column;
  }
}
