:root {
  --bg: #ffffff;
  --ink: #050505;
  --muted: rgba(5, 5, 5, 0.58);
  --line: rgba(5, 5, 5, 0.12);
  --green: #16a34a;
  --green-dark: #15803d;
  --mint: #f0fdf4;
  --shadow: 0 34px 90px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

button,
input,
label {
  -webkit-tap-highlight-color: transparent;
}

.router-shell {
  min-height: 100vh;
}

.choice-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 58%, rgba(22, 163, 74, 0.08), transparent 20rem),
    linear-gradient(180deg, #ffffff, #ffffff);
}

.choice-card {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 28px);
  transform: translateY(0);
  animation: cardIn 360ms ease both;
}

.choice-eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  line-height: 1.4;
  text-transform: uppercase;
}

.choice-card h1 {
  max-width: 330px;
  margin: 0 0 20px;
  color: #070707;
  font-size: clamp(1.65rem, 7vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.choice-option {
  position: relative;
  display: block;
  margin-top: 12px;
  cursor: pointer;
}

.choice-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-option span {
  display: grid;
  gap: 8px;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  padding: 16px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.choice-option strong {
  color: #080808;
  font-size: 0.98rem;
  font-weight: 820;
  line-height: 1.2;
}

.choice-option em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.45;
}

.choice-option:hover span,
.choice-option input:focus-visible + span {
  border-color: rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
}

.choice-option input:checked + span {
  border-color: var(--green);
  background: var(--mint);
  box-shadow: 0 18px 42px rgba(22, 163, 74, 0.12);
}

.continue-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  margin-top: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 18px 38px rgba(22, 163, 74, 0.24);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.continue-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.continue-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(22, 163, 74, 0.28);
}

.choice-note {
  max-width: 290px;
  margin: 12px auto 0;
  color: rgba(5, 5, 5, 0.48);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.experience-screen {
  min-height: 100vh;
  background: #ffffff;
}

.experience-frame {
  display: block;
  width: 100%;
  min-width: 320px;
  height: 100vh;
  border: 0;
  background: #ffffff;
}

.is-loading .choice-card {
  pointer-events: none;
}

.is-loading .continue-button {
  opacity: 0.74;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .choice-screen {
    align-items: center;
    padding: 18px;
  }

  .choice-card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
