:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #172033;
  background: #0e1630;
  --accent: #5267d8;
  --accent-deep: #172654;
  --accent-soft: #eef0ff;
}
.theme-love { --accent: #c73562; --accent-deep: #59152d; --accent-soft: #fff0f4; }
.theme-star { --accent: #8a5608; --accent-deep: #13264d; --accent-soft: #fff6e6; }
.theme-money { --accent: #147d68; --accent-deep: #123f38; --accent-soft: #eaf8f4; }
.theme-draw-me { --accent: #a94f08; --accent-deep: #432711; --accent-soft: #fff3e7; }
.theme-choice-under-3 { --accent: #b33323; --accent-deep: #48201a; --accent-soft: #fff0ed; }
.theme-friend-view { --accent: #7048bd; --accent-deep: #28194f; --accent-soft: #f3efff; }
.theme-last-five { --accent: #5267d8; --accent-deep: #172654; --accent-soft: #eef0ff; }
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
}
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 75% 0, #485fc9 0, transparent 32rem), #0e1630;
}
.shell {
  width: min(calc(100% - 30px), 680px);
  margin: auto;
  padding: 18px 0 34px;
}
header,
footer {
  display: flex;
  min-height: 48px;
  color: #cdd5ff;
  align-items: center;
  justify-content: space-between;
}
header a,
footer a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}
.lang {
  padding: 8px 11px;
  border: 1px solid #8794d0;
  border-radius: 999px;
  font-size: 12px;
}
.card {
  overflow: hidden;
  min-height: 680px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 28px 90px #0007;
}
.screen {
  padding: clamp(28px, 7vw, 54px);
}
[hidden] {
  display: none !important;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.hero {
  display: grid;
  height: 200px;
  margin-bottom: 30px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--accent-deep), var(--accent));
  color: #fff;
  font-size: clamp(38px, 14vw, 72px);
  font-weight: 900;
  place-items: center;
}
.intro {
  text-align: center;
}
.intro h1,
.result h2 {
  margin: 13px 0;
  font-size: clamp(38px, 10vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  word-break: keep-all;
}
.lead {
  color: #5e6473;
  font-size: 15px;
  line-height: 1.75;
}
.meta {
  margin: 22px 0;
  color: #66708f;
  font-size: 12px;
}
.primary,
.secondary,
.answer {
  width: 100%;
  min-height: 60px;
  border-radius: 15px;
  font: 800 15px/1.45 inherit;
  cursor: pointer;
}
.primary {
  border: 1px solid var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
}
.secondary {
  border: 1px solid #d8ddea;
  background: #f4f6fb;
  color: #27304a;
}
.progress {
  overflow: hidden;
  height: 8px;
  border-radius: 99px;
  background: #e6e9f1;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.25s;
}
.count {
  display: flex;
  margin-bottom: 11px;
  color: #66708f;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
}
.question {
  margin: 48px 0 27px;
  font-size: clamp(27px, 7vw, 39px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.answers {
  display: grid;
  gap: 11px;
}
.answer {
  padding: 15px 18px;
  border: 1px solid #d9deea;
  background: #f8f9fc;
  color: #1c2438;
  text-align: left;
}
.answer:hover,
.answer:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.result {
  text-align: center;
}
.result-mark {
  display: grid;
  width: 96px;
  height: 96px;
  margin: 8px auto 20px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #fff;
  font-size: 43px;
  place-items: center;
}
.result blockquote {
  margin: 0 0 24px;
  color: #454d61;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.6;
}
.result-copy,
.tip {
  padding: 22px;
  border-radius: 18px;
  background: #f0f2f9;
  text-align: left;
}
.result-copy p,
.tip p {
  margin: 8px 0 0;
  color: #555e73;
  line-height: 1.7;
}
.scores {
  display: grid;
  margin: 24px 0;
  gap: 12px;
  text-align: left;
}
.score-head {
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
}
.track {
  height: 8px;
  border-radius: 9px;
  background: #e3e6ed;
}
.track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.actions {
  display: grid;
  gap: 10px;
}
.status {
  min-height: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffc94a;
  outline-offset: 3px;
}
footer {
  font-size: 10px;
  gap: 14px;
  flex-wrap: wrap;
}
.catalog {
  padding: clamp(28px, 7vw, 54px);
}
.catalog h1 {
  margin: 12px 0;
  font-size: clamp(39px, 9vw, 58px);
  letter-spacing: -0.05em;
}
.catalog-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.catalog-grid a {
  display: block;
  min-height: 150px;
  padding: 20px;
  border: 1px solid #dce0ea;
  border-radius: 18px;
  background: #f7f8fc;
  color: #172033;
  text-decoration: none;
}
.catalog-grid a:nth-child(1) { border-top: 4px solid #c73562; }
.catalog-grid a:nth-child(2) { border-top: 4px solid #b87512; }
.catalog-grid a:nth-child(3) { border-top: 4px solid #147d68; }
.catalog-grid a:nth-child(4) { border-top: 4px solid #d96b13; }
.catalog-grid a:nth-child(5) { border-top: 4px solid #dd4933; }
.catalog-grid a:nth-child(6) { border-top: 4px solid #7048bd; }
.catalog-grid a:nth-child(7) { border-top: 4px solid #5267d8; }
.catalog-grid span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.catalog-grid h2 {
  margin: 10px 0 8px;
  font-size: 21px;
}
.catalog-grid p {
  margin: 0;
  color: #626a7d;
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 520px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-grid a {
    min-height: 0;
  }
}
@media (max-width: 560px) {
  .shell {
    width: 100%;
    padding: 0;
  }
  header {
    height: 58px;
    padding: 0 18px;
  }
  .card {
    min-height: calc(100vh - 58px);
    border-radius: 27px 27px 0 0;
  }
  .screen {
    padding: 28px 20px 40px;
  }
  footer {
    min-height: 64px;
    padding: 12px 18px;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
