:root {
  --text-main: #f8f2eb;
  --text-soft: #e5d8f6;
  --text-muted: #cfc2df;
  --accent: #d7b6ff;
  --accent-2: #c8a4f3;
  --accent-3: #f0ca73;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --glow: 0 0 30px rgba(215, 182, 255, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 18%, rgba(122, 93, 186, 0.24) 0%, rgba(122, 93, 186, 0.08) 22%, transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(86, 50, 130, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 85% 85%, rgba(86, 50, 130, 0.14) 0%, transparent 26%),
    linear-gradient(180deg, #43124d 0%, #2a103e 24%, #1b102f 60%, #120b23 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 20px 60px;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(247, 212, 120, 0.12), transparent 18%),
    radial-gradient(circle at 50% 30%, rgba(214, 181, 255, 0.09), transparent 28%);
  filter: blur(18px);
}

.app-shell {
  width: 100%;
  max-width: 980px;
  background: linear-gradient(180deg, rgba(29, 20, 52, 0.94), rgba(34, 24, 58, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  backdrop-filter: blur(14px);
}

.moon {
  text-align: center;
  font-size: 2.1rem;
  line-height: 1;
  margin-top: 4px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 14px rgba(240, 202, 115, 0.22));
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 10px;
  color: var(--text-main);
}

.subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-soft);
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.tool-section {
  margin-bottom: 30px;
}

.tool-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--accent-3);
}

.section-copy {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.choice-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  line-height: 1.3;
  padding: 22px 18px;
  border-radius: 22px;
  color: var(--text-main);
  background: linear-gradient(180deg, rgba(81, 49, 104, 0.88), rgba(58, 36, 83, 0.92));
  transition: 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-height: 88px;
}

.choice-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(90, 57, 114, 0.92), rgba(64, 40, 92, 0.96));
}

.choice-btn.active {
  color: #2d1840;
  background: linear-gradient(180deg, #d9b7ff 0%, #c8a4f3 100%);
  box-shadow: var(--glow);
}

.result-card {
  margin-top: 34px;
  background: rgba(42, 32, 68, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: fadeInUp 0.35s ease;
}

.result-block,
.summary-block {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 18px;
}

.result-block + .result-block,
.summary-block,
.closing-line {
  margin-top: 16px;
}

.result-block h3,
.summary-block h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--accent-3);
}

.summary-block h3 {
  color: var(--accent);
}

.result-block p,
.summary-block p {
  margin: 0;
  color: var(--text-main);
  font-size: 1.03rem;
  line-height: 1.75;
}

.result-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-main);
}

.result-block li {
  line-height: 1.75;
  margin-bottom: 4px;
}

.closing-line {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  font-family: "Playfair Display", serif;
}

.hidden {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .button-grid {
    grid-template-columns: 1fr;
  }

  .choice-btn {
    font-size: 1.08rem;
    min-height: 80px;
    padding: 18px 16px;
  }

  .app-shell {
    padding: 22px;
  }

  .tool-section h2 {
    font-size: 1.4rem;
  }
}