:root {

  --pink: #ff5f9f;
  --pink-light: #fff4f8;
  --pink-dark: #e64686;

  --blue: #6aa7ff;

  --text: #4b2d2d;

  --white: #ffffff;

  --shadow:
    0 10px 35px rgba(0,0,0,0.08);
}

* {

  box-sizing: border-box;
}

body {

  margin: 0;

  font-family: "Poppins", sans-serif;

  background:
    linear-gradient(
      180deg,
      #fff6f8 0%,
      #fffefc 100%
    );

  color: var(--text);
}

.background-deco {

  position: fixed;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at top left,
      rgba(255,200,220,0.25),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255,220,180,0.25),
      transparent 30%
    );
}

.container {

  max-width: 980px;

  margin: auto;

  padding: 30px 20px 60px;
}

.hero {

  text-align: center;

  margin-bottom: 40px;
}

.hero-icons {

  font-size: 28px;

  margin-bottom: 10px;
}

h1 {

  margin: 0;

  font-size: 72px;

  line-height: 1;

  font-family:
    "Playfair Display",
    serif;
}

h1 span {

  color: var(--pink);
}

.separator {

  width: 120px;

  height: 4px;

  border-radius: 999px;

  background: var(--pink);

  margin: 25px auto;
}

.description {

  max-width: 760px;

  margin: auto;

  line-height: 1.9;

  font-size: 18px;
}

.video-section {

  position: relative;

  margin-bottom: 40px;

  border-radius: 30px;

  overflow: hidden;

  box-shadow:
    0 20px 45px rgba(0,0,0,0.12);
}

#babyVideo {

  width: 100%;

  display: block;

  object-fit: cover;

  aspect-ratio: 16 / 9;

  background: #f8f8f8;
}
video {

  width: 100%;

  border-radius: 28px;

  box-shadow: var(--shadow);
}

.card {

  background: rgba(255,255,255,0.92);

  backdrop-filter: blur(10px);

  border-radius: 35px;

  padding: 40px;

  box-shadow: var(--shadow);
}

.card-title {

  font-size: 30px;

  font-weight: 600;

  margin-bottom: 35px;
}

.input-grid {

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(220px, 1fr)
    );

  gap: 20px;

  margin-bottom: 45px;
}

input,
textarea {

  width: 100%;

  border: 2px solid #ffe1eb;

  border-radius: 18px;

  padding: 18px;

  font-size: 16px;

  outline: none;

  transition: 0.3s;

  font-family: inherit;
}

input:focus,
textarea:focus {

  border-color: var(--pink);

  box-shadow:
    0 0 0 5px
    rgba(255,95,159,0.15);
}

.question-block {

  margin-bottom: 50px;
}

.question-number {

  width: 50px;

  height: 50px;

  border-radius: 50%;

  background: var(--pink);

  color: white;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: 700;

  margin-bottom: 20px;

  font-size: 22px;
}

.question-block h2 {

  font-size: 30px;

  line-height: 1.5;

  margin-bottom: 30px;
}

.choices {

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(250px, 1fr)
    );

  gap: 25px;
}

.choice {

  position: relative;

  cursor: pointer;
}

.choice input {

  display: none;
}

.choice-content {

  border-radius: 30px;

  padding: 35px 25px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 18px;

  transition: 0.3s;

  border: 3px solid transparent;

  min-height: 150px;
}

.choice.girl .choice-content {

  background: #fff5f8;
}

.choice.boy .choice-content {

  background: #f5f9ff;
}

.choice input:checked
+ .choice-content {

  transform: scale(1.03);

  border-color: var(--pink);

  box-shadow:
    0 15px 35px
    rgba(255,95,159,0.2);
}

.emoji {

  font-size: 60px;
}

.label {

  font-size: 30px;

  font-weight: 600;
}

textarea {

  resize: vertical;
}

button {

  width: 100%;

  border: none;

  border-radius: 22px;

  padding: 22px;

  font-size: 22px;

  font-weight: 600;

  background:
    linear-gradient(
      90deg,
      #ff7da8,
      #ff4f87
    );

  color: white;

  cursor: pointer;

  transition: 0.3s;

  box-shadow:
    0 12px 30px
    rgba(255,95,159,0.3);
}

button:hover {

  transform: translateY(-2px);
}

.result {

  margin-top: 30px;

  text-align: center;

  background: white;

  padding: 35px;

  border-radius: 25px;

  box-shadow: var(--shadow);
}

.hidden {

  display: none;
}

footer {

  text-align: center;

  margin-top: 40px;

  font-size: 18px;

  opacity: 0.8;
}

@media (max-width: 768px) {

  h1 {

    font-size: 50px;
  }

  .card {

    padding: 25px;
  }

  .question-block h2 {

    font-size: 22px;
  }

  .label {

    font-size: 24px;
  }
}

.chart-container {

  display: flex;

  justify-content: center;

  margin: 30px 0;
}

.donut-chart {

  position: relative;

  width: 220px;

  height: 220px;
}

svg {

  transform: rotate(-90deg);
}

circle {

  fill: none;

  stroke-width: 18;
}

.bg {

  stroke: #f2f2f2;
}

.girl {

  stroke: #ff5f9f;

  stroke-linecap: round;

  transition: 1s;

  stroke-dasharray: 534;

  stroke-dashoffset: 534;
}

.boy {

  stroke: #6aa7ff;

  stroke-linecap: round;

  transition: 1s;

  stroke-dasharray: 408;

  stroke-dashoffset: 408;
}

.chart-center {

  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;
}

.chart-center div {

  font-size: 42px;

  font-weight: 700;
}

.stats-details {

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(220px, 1fr)
    );

  gap: 20px;

  margin-top: 30px;
}

.stat-card {

  display: flex;

  align-items: center;

  gap: 20px;

  padding: 25px;

  border-radius: 25px;

  color: white;
}

.girl-card {

  background:
    linear-gradient(
      135deg,
      #ff7eb3,
      #ff5f9f
    );
}

.boy-card {

  background:
    linear-gradient(
      135deg,
      #7ab7ff,
      #5b9dff
    );
}

.stat-card .emoji {

  font-size: 42px;
}

.stat-card strong {

  font-size: 22px;
}

.stat-card p {

  margin: 5px 0 0;

  font-size: 28px;

  font-weight: bold;
}

.option-card {

  position: relative;

  display: flex;

  align-items: center;

  gap: 15px;

  padding: 28px;

  border-radius: 28px;

  border: 3px solid transparent;

  cursor: pointer;

  transition: all 0.3s ease;

  background: white;

  overflow: hidden;
}

.option-card:hover {

  transform: translateY(-3px);

  box-shadow:
    0 12px 30px rgba(0,0,0,0.08);
}

.option-card input[type="radio"] {

  display: none;
}

.option-content {

  display: flex;

  align-items: center;

  gap: 18px;

  flex: 1;
}

.option-emoji {

  width: 90px;

  height: 90px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 48px;

  background: rgba(255,255,255,0.7);
}

.option-title {

  font-size: 34px;

  font-weight: 700;

  margin-bottom: 5px;
}

.option-subtitle {

  font-size: 18px;

  opacity: 0.7;
}

.girl-card {

  background:
    linear-gradient(
      135deg,
      #fff5f9,
      #fff0f6
    );
}

.boy-card {

  background:
    linear-gradient(
      135deg,
      #f5f9ff,
      #eef5ff
    );
}

.check-icon,
.radio-circle {

  width: 36px;

  height: 36px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 20px;

  font-weight: bold;

  transition: 0.3s;
}

.check-icon {

  background: #ff5f9f;

  color: white;

  opacity: 0;
}

.radio-circle {

  border: 3px solid #bcd5ff;
}

.option-card.selected {

  transform: scale(1.02);
}

.girl-card.selected {

  border-color: #ff5f9f;

  box-shadow:
    0 12px 35px rgba(255,95,159,0.25);
}

.boy-card.selected {

  border-color: #6aa7ff;

  box-shadow:
    0 12px 35px rgba(106,167,255,0.25);
}

.option-card.selected .check-icon {

  opacity: 1;
}

.option-card.selected .radio-circle {

  background: #6aa7ff;

  border-color: #6aa7ff;
}

.vote-notice {

  margin-top: 18px;

  padding: 18px;

  border-radius: 18px;

  background: #fff8fb;

  font-size: 16px;
}

@media (max-width: 768px) {

  .option-title {

    font-size: 26px;
  }

  .option-subtitle {

    font-size: 15px;
  }

  .option-emoji {

    width: 70px;

    height: 70px;

    font-size: 36px;
  }
}