:root {
  color-scheme: light dark;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f5f5f7;
  color: #1c1c1e;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: min(90vw, 540px);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 32px;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

p {
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: block;
  background: rgba(92, 114, 255, 0.08);
  border: 1px solid rgba(92, 114, 255, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form input[type="radio"] {
  margin-right: 0.75rem;
}

.form label:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: #5c72ff;
  color: white;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.button:hover {
  background: #4c62e5;
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: #5c72ff;
  border: 1px solid #5c72ff;
}

.button.secondary:hover {
  background: rgba(92, 114, 255, 0.1);
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.result {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.decision {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.decision.yes {
  color: #0a8a4b;
}

.decision.no {
  color: #c63535;
}

.diagram {
  margin-top: 2rem;
  text-align: center;
}

.diagram img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.diagram figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #555;
}

@media (prefers-color-scheme: dark) {
  :root {
    background-color: #111;
    color: #f7f7f7;
  }

  .container {
    background: rgba(28, 28, 32, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .form label {
    background: rgba(92, 114, 255, 0.15);
    border: 1px solid rgba(92, 114, 255, 0.35);
  }

  .diagram figcaption {
    color: #bbb;
  }
}
