:root {
  color-scheme: light;
  --bg-a: #edf5ef;
  --bg-b: #f7fbf8;
  --bg-c: #deebe1;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #334155;
  --border: #d6deea;
  --hover: #edf3ff;
  --error: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1000px 560px at 10% 0%, var(--bg-c) 0%, transparent 72%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b));
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 50% 44%, rgba(255, 255, 255, 0.04), rgba(16, 24, 40, 0.2)),
    rgba(15, 23, 42, 0.18);
}

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  padding: 0.55rem;
  background: linear-gradient(180deg, #f6faf7 0%, #f4f8f5 42%, #f1f6f2 100%);
  filter: blur(3px) saturate(0.97);
  transform: scale(1.008);
  pointer-events: none;
  overflow: hidden;
}

.bg-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 250, 247, 0.28);
}

.scene-header {
  height: 74px;
  border-bottom: 1px solid #d7e2d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.8rem;
}

.scene-logo {
  width: 122px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(90deg, #2b9348, #3aa85b);
}

.scene-menu {
  width: 27px;
  height: 20px;
  border-radius: 6px;
  background: #355440;
}

.scene-hero {
  margin-top: 0.35rem;
  border-radius: 0;
  background: #edf4ee;
  padding: 1.25rem 0.85rem 1.35rem;
}

.scene-title {
  width: min(190px, 72%);
  height: 40px;
  margin: 0 auto 0.85rem;
  border-radius: 12px;
  background: #2d9447;
}

.scene-line {
  width: 80%;
  height: 12px;
  margin: 0 auto 0.45rem;
  border-radius: 999px;
  background: #6a7f70;
  opacity: 0.8;
}

.scene-line.short {
  width: 58%;
}

.scene-cta {
  width: min(270px, 84%);
  height: 72px;
  margin: 1rem auto 0;
  border-radius: 18px;
  background: #38a34f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.scene-play {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid rgba(247, 255, 250, 0.95);
}

.scene-cta-text {
  width: 106px;
  height: 12px;
  border-radius: 999px;
  background: rgba(248, 255, 250, 0.9);
}

.scene-stats {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 0.95rem 0 1rem;
}

.scene-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scene-stat-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #3e9a4f;
}

.scene-stat-text {
  width: 66px;
  height: 11px;
  border-radius: 999px;
  background: #6c816f;
}

.scene-features {
  padding: 0 0.25rem;
}

.scene-card {
  min-height: 144px;
  border: 1px solid #d2dfd4;
  border-radius: 14px;
  background: #f6faf7;
  margin-bottom: 0.75rem;
  padding: 0.85rem;
  display: grid;
  place-items: center;
}

.scene-card.ghost {
  opacity: 0.55;
}

.scene-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #d9e8dc;
}

.scene-card-line {
  width: 64%;
  height: 11px;
  border-radius: 999px;
  background: #6f8572;
}

.scene-card-line.short {
  width: 72%;
  opacity: 0.82;
}

.scene-footer {
  height: 84px;
  margin-top: 0.8rem;
  border-top: 1px solid #d7e2d8;
  background: #eef4ef;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.card {
  position: relative;
  isolation: isolate;
  width: min(100%, 560px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d9e1ee;
  border-radius: 24px;
  padding: 1.7rem 1rem 1rem;
  box-shadow:
    0 34px 70px rgba(2, 8, 23, 0.4),
    0 10px 22px rgba(2, 8, 23, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  z-index: -1;
  background: radial-gradient(70% 70% at 50% 35%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.card.closing {
  opacity: 0;
  transform: scale(0.97) translateY(8px);
}

h1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin: 0 0 1.4rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.14;
  text-align: start;
  letter-spacing: -0.02em;
}

.title-text {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.title-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 0.18em;
}

.title-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--muted);
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.option-btn {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas: "icon label";
  align-items: center;
  justify-items: start;
  gap: 0.9rem;
  min-height: 110px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.option-btn:hover {
  border-color: #b5c3da;
  background: var(--hover);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.option-btn:active {
  transform: translateY(0);
}

.option-btn:focus-visible {
  outline: 3px solid color-mix(in oklab, #2563eb 34%, white);
  outline-offset: 2px;
}

.option-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.icon-box {
  grid-area: icon;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12);
}

.icon-female {
  background: linear-gradient(180deg, #db2777 0%, #be185d 100%);
}

.icon-male {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
}

.icon-other {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
}

.icon-glyph {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.option-label {
  grid-area: label;
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.error {
  margin-top: 1rem;
  color: var(--error);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 760px) {
  .bg-scene {
    filter: blur(2.6px) saturate(0.98);
    transform: scale(1.005);
  }

  .scene-card {
    min-height: 126px;
  }

  .scene-footer {
    height: 72px;
  }

  .card {
    width: min(100%, 560px);
    border-radius: 20px;
    box-shadow:
      0 24px 48px rgba(2, 8, 23, 0.36),
      0 8px 18px rgba(2, 8, 23, 0.18),
      0 1px 0 rgba(255, 255, 255, 0.52) inset;
  }

  .option-btn {
    min-height: 106px;
    grid-template-columns: 66px 1fr;
    padding: 0.85rem 0.9rem;
  }

  .icon-box {
    width: 66px;
    height: 66px;
    border-radius: 13px;
  }

  .icon-glyph {
    font-size: 1.6rem;
  }

  .option-label {
    font-size: 1.08rem;
  }
}

@media (max-width: 460px) {
  .bg-scene {
    padding: 0.4rem;
    filter: blur(2px) saturate(0.99);
    transform: none;
  }

  .scene-header {
    height: 66px;
  }

  .scene-logo {
    width: 92px;
    height: 26px;
  }

  .scene-hero {
    padding: 0.95rem 0.7rem 1rem;
  }

  .scene-cta {
    height: 64px;
  }

  .scene-card {
    min-height: 112px;
  }

  .scene-footer {
    height: 62px;
  }

  .card {
    padding: 1.25rem 1rem 1rem;
    box-shadow:
      0 18px 34px rgba(2, 8, 23, 0.34),
      0 6px 14px rgba(2, 8, 23, 0.16),
      0 1px 0 rgba(255, 255, 255, 0.56) inset;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }

  .title-icon {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2em;
  }

  .option-btn {
    min-height: 96px;
    grid-template-columns: 58px 1fr;
    padding: 0.75rem 0.8rem;
  }

  .icon-box {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  .icon-glyph {
    font-size: 1.45rem;
  }
}
