:root {
  color-scheme: light;
  --navy: #001d62;
  --navy-2: #06308a;
  --cyan: #00c7ee;
  --cyan-soft: #dff8ff;
  --yellow: #ffea00;
  --green: #0aa06e;
  --ink: #071634;
  --muted: #56647d;
  --muted-2: #7b879c;
  --line: #d7e5f2;
  --paper: #f5f9fc;
  --white: #ffffff;
  --display: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 28px 80px rgba(0, 29, 98, 0.18);
  --shadow-small: 0 16px 36px rgba(0, 29, 98, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(121deg, rgba(255, 234, 0, 0.34) 0 8%, transparent 8.2% 100%),
    linear-gradient(304deg, rgba(255, 234, 0, 0.22) 0 10%, transparent 10.2% 100%),
    radial-gradient(circle at 14% 13%, rgba(255, 234, 0, 0.2), transparent 19%),
    radial-gradient(circle at 86% 9%, rgba(0, 29, 98, 0.1), transparent 24%),
    linear-gradient(145deg, #00c7ee 0%, #dff8ff 42%, #f7fbff 100%),
    #f5f9fc;
  color: var(--ink);
  font-family: var(--body);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.28) 48% 49%, transparent 49% 100%),
    linear-gradient(transparent 0 52%, rgba(255, 255, 255, 0.24) 52% 53%, transparent 53% 100%),
    linear-gradient(90deg, transparent 0 22%, rgba(0, 29, 98, 0.055) 22% 23%, transparent 23% 77%, rgba(0, 29, 98, 0.055) 77% 78%, transparent 78% 100%),
    linear-gradient(rgba(0, 29, 98, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 29, 98, 0.035) 1px, transparent 1px);
  background-position:
    center 4vh,
    center 4vh,
    center 4vh,
    center,
    center;
  background-size:
    min(860px, 86vw) min(560px, 72vh),
    min(860px, 86vw) min(560px, 72vh),
    min(860px, 86vw) min(560px, 72vh),
    44px 44px,
    44px 44px;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    repeat,
    repeat;
  mask-image: linear-gradient(to bottom, #000 0 74%, transparent 100%);
  opacity: 0.76;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    url("./assets/iconos/pala-pickleball_lovers.png"),
    url("./assets/iconos/bola-de-pepinillo.png"),
    url("./assets/iconos/trofeo.png"),
    url("./assets/iconos/diana.png"),
    radial-gradient(circle at 12px 12px, rgba(0, 29, 98, 0.055) 0 3px, transparent 4px),
    radial-gradient(circle at 54px 12px, rgba(255, 234, 0, 0.14) 0 4px, transparent 5px);
  background-position:
    -34px 15%,
    calc(100% + 24px) 10%,
    9% 88%,
    calc(100% - 30px) 78%,
    center,
    34px 30px;
  background-size:
    150px auto,
    142px auto,
    126px auto,
    132px auto,
    96px 96px,
    96px 96px;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    repeat,
    repeat;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, #000 0 74%, transparent 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.intro,
.identity,
.quiz {
  min-height: calc(100svh - 48px);
}

.intro,
.identity,
.quiz {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-layout {
  display: grid;
  align-items: center;
  gap: clamp(30px, 6vw, 68px);
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
}

.intro-copy-col {
  min-width: 0;
}

.brand-clean,
.screen-logo {
  display: flex;
  align-items: center;
}

.brand-clean img {
  display: block;
  width: min(290px, 58vw);
  height: auto;
  object-fit: contain;
}

.screen-logo {
  justify-content: center;
}

.screen-logo img {
  display: block;
  width: min(220px, 46vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 29, 98, 0.08));
}

.eyebrow {
  margin: 28px 0 10px;
  color: var(--navy-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-family: var(--display);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 6vw, 5.35rem);
  line-height: 0.93;
  text-wrap: balance;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.72rem, 3.5vw, 3.08rem);
  line-height: 1.02;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.18;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.22;
}

.intro-copy,
.result-summary,
.question-help {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.6;
}

.is-hidden {
  display: none !important;
}

.promise-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
}

.promise-grid div {
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(0, 29, 98, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-small);
}

.promise-kicker {
  display: inline-flex;
  min-width: 42px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 900;
}

.promise-grid strong,
.promise-grid span {
  display: block;
}

.promise-grid .promise-kicker {
  display: inline-flex;
  width: fit-content;
}

.promise-grid strong {
  margin-bottom: 6px;
  color: var(--navy);
}

.promise-grid span:not(.promise-kicker),
.microcopy,
.resource-card p,
.result-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.primary-action {
  width: fit-content;
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--navy);
  color: var(--navy);
}

.secondary-action {
  background: var(--white);
  color: var(--navy);
}

.primary-action:hover:not(:disabled),
.secondary-action:hover:not(:disabled),
.answer-card:hover {
  transform: translateY(-2px);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  transform: none;
  box-shadow: 3px 3px 0 rgba(0, 29, 98, 0.55);
}

.microcopy {
  max-width: 690px;
  margin: 14px 0 0;
  font-size: 0.94rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-photo-card {
  position: relative;
  width: min(440px, 100%);
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid var(--navy);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 234, 0, 0.35), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(222, 249, 255, 0.96)),
    var(--white);
  box-shadow: 16px 16px 0 var(--navy), var(--shadow);
  animation: float-panel 5.4s ease-in-out infinite;
}

.hero-photo-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 15% 14%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(132deg, rgba(0, 29, 98, 0.18) 0 30%, transparent 30% 100%),
    linear-gradient(312deg, rgba(255, 234, 0, 0.34) 0 22%, transparent 22% 100%);
  opacity: 0.62;
  pointer-events: none;
}

.hero-ball-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.04) contrast(1.02);
}

.hero-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background: rgba(0, 29, 98, 0.76);
  color: #fff;
  backdrop-filter: blur(16px);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  margin: 5px 0 8px;
  font-family: var(--display);
  font-size: clamp(1.42rem, 3vw, 1.76rem);
  line-height: 1.02;
  text-wrap: balance;
}

.hero-panel span:not(.panel-label) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
  line-height: 1.4;
}

.panel-label {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stat {
  position: absolute;
  display: grid;
  min-width: 128px;
  min-height: 88px;
  place-items: center;
  padding: 12px;
  border: 2px solid var(--navy);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--navy);
  text-align: center;
}

.hero-stat strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 2.15rem;
  line-height: 0.9;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stat-a {
  left: -10px;
  top: 138px;
}

@keyframes float-panel {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

.quiz {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(10px, 1.8vh, 22px) 0;
}

.quiz-header {
  display: grid;
  gap: clamp(12px, 1.9vh, 20px);
  text-align: center;
}

.question-title-row {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 14px;
  grid-template-columns: 1fr;
}

.question-icon {
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 20px;
  background:
    linear-gradient(135deg, var(--yellow), #ffffff 48%, var(--cyan));
  box-shadow: 6px 6px 0 var(--navy);
  opacity: 0.92;
  transform: translateY(-50%) rotate(-2deg);
}

.question-icon svg {
  width: 56px;
  height: 56px;
}

.question-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 29, 98, 0.12));
}

.question-help {
  margin: 14px auto 0;
}

.progress-track {
  height: 11px;
  overflow: hidden;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #fff;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--cyan), var(--green));
  box-shadow: 0 0 18px rgba(0, 199, 238, 0.42);
  transition: width 220ms ease;
}

.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 14px);
  margin: clamp(16px, 2.2vh, 22px) 0;
}

.answers-many {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.answer-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: clamp(104px, 14vh, 136px);
  overflow: hidden;
  place-items: center;
  padding: 16px 20px;
  border: 2px solid rgba(0, 29, 98, 0.15);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.98));
  box-shadow: 0 12px 28px rgba(0, 29, 98, 0.1);
  color: var(--navy);
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.answer-card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(0, 199, 238, 0.12);
  border-radius: 12px;
  content: "";
  pointer-events: none;
}

.answer-card::after {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 29, 98, 0.22);
  border-radius: 50%;
  content: "";
  background: #fff;
}

.answer-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 22ch);
  gap: 7px;
  place-items: center;
  justify-items: center;
  min-width: 0;
}

.answer-card strong {
  display: block;
  max-width: 100%;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.22rem, 2.15vw, 2.12rem);
  font-weight: 800;
  line-height: 1;
  hyphens: auto;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
}

.answers-many .answer-card strong {
  font-size: clamp(1.08rem, 1.72vw, 1.62rem);
}

.answer-card span span,
.answer-content > span {
  display: block;
  max-width: 28ch;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.15vw, 0.94rem);
  font-weight: 700;
  line-height: 1.32;
  text-align: center;
}

.answer-card.is-selected {
  border-color: var(--navy);
  background:
    linear-gradient(135deg, rgba(255, 234, 0, 0.35), rgba(0, 199, 238, 0.16)),
    #fff;
  box-shadow: 8px 8px 0 var(--navy), 0 16px 36px rgba(0, 29, 98, 0.16);
}

.answer-card.is-selected::after {
  border-color: var(--navy);
  background: radial-gradient(circle at center, var(--navy) 0 42%, var(--yellow) 45%);
}

.text-answer {
  display: grid;
  gap: 12px;
  margin: clamp(16px, 2.2vh, 22px) 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(0, 29, 98, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-small);
}

.text-answer label {
  color: var(--navy);
  font-weight: 900;
}

.text-answer input {
  width: 100%;
  min-height: 58px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  outline: none;
}

.text-answer input:focus {
  box-shadow: 0 0 0 4px rgba(0, 199, 238, 0.22);
}

.identity {
  align-items: center;
}

.identity-card {
  width: min(760px, 100%);
  padding: clamp(26px, 5vw, 46px);
  border: 2px solid rgba(0, 29, 98, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 234, 0, 0.28), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(0, 199, 238, 0.26), transparent 30%),
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.identity-card .screen-logo {
  margin-bottom: 14px;
}

.identity-card h2 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
}

.identity-copy {
  max-width: 640px;
  margin: 0 auto 22px;
  color: var(--muted);
  line-height: 1.58;
}

.identity-form {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.identity-form label {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 900;
}

.identity-form input {
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.identity-form input:focus {
  box-shadow: 0 0 0 4px rgba(0, 199, 238, 0.22);
}

.identity-form .primary-action {
  width: 100%;
  margin-top: 4px;
}

.field-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.field-feedback[data-state="valid"] {
  color: var(--green);
}

.field-feedback[data-state="error"] {
  color: #b42318;
}

.quiz-actions {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns: minmax(132px, 180px) minmax(0, 1fr) minmax(132px, 180px);
}

.step-label {
  margin: 0;
  text-align: center;
}

.reveal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, #001d62, #063a99 58%, #00c7ee);
  color: #fff;
}

.reveal.is-hidden {
  display: none;
}

.reveal-card {
  position: relative;
  display: grid;
  width: min(560px, calc(100% - 32px));
  min-height: 430px;
  place-items: center;
  padding: 40px;
  border: 3px solid #fff;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.18);
  text-align: center;
  backdrop-filter: blur(18px);
}

.reveal-logo {
  width: min(230px, 70%);
  height: auto;
  object-fit: cover;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.16));
}

.reveal-card .eyebrow {
  margin: 0;
  color: var(--yellow);
}

.reveal-card strong {
  font-family: var(--display);
  font-size: clamp(6rem, 22vw, 12rem);
  line-height: 0.9;
}

.reveal.is-done .reveal-card strong {
  display: block;
  max-width: 100%;
  padding: 0 12px;
  color: var(--yellow);
  font-size: clamp(2.45rem, 8.2vw, 4.9rem);
  line-height: 1.02;
  white-space: normal;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
  overflow-wrap: anywhere;
}

.reveal.is-done .reveal-card {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 234, 0, 0.24), transparent 34%),
    rgba(255, 255, 255, 0.14);
}

.reveal-card > span:not(.reveal-ball) {
  font-size: 1.15rem;
  font-weight: 800;
}

.reveal-ball {
  width: 96px;
  height: 96px;
  border: 5px solid #001d62;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, #fffbc0 0 7px, transparent 8px),
    radial-gradient(circle at 62% 34%, #7b6400 0 5px, transparent 6px),
    radial-gradient(circle at 40% 66%, #7b6400 0 6px, transparent 7px),
    radial-gradient(circle at 72% 68%, #7b6400 0 5px, transparent 6px),
    linear-gradient(135deg, #fff24a, #ffd600);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.24);
  animation: reveal-ball 900ms ease-in-out infinite;
}

.confetti-piece {
  position: fixed;
  top: -20px;
  z-index: 60;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: var(--yellow);
  animation: confetti-fall 950ms ease-out forwards;
}

@keyframes reveal-ball {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(18deg);
  }
}

@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(540deg);
  }
}

.result {
  padding: 42px 0;
}

.result-brand {
  margin-bottom: 28px;
}

.result-hero {
  display: grid;
  align-items: center;
  gap: 26px;
  grid-template-columns: 190px minmax(0, 1fr);
  margin-bottom: 28px;
}

.avatar-stage {
  position: relative;
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: #fff;
  box-shadow: 10px 10px 0 var(--navy);
  color: var(--navy);
  overflow: hidden;
}

.avatar-stage svg {
  width: 86px;
  height: 86px;
}

.avatar-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 10px 16px rgba(0, 29, 98, 0.18));
}

.result-grid,
.resource-list {
  display: grid;
  gap: 14px;
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0;
}

.result-grid article,
.resource-card,
.tips-box {
  border: 1px solid rgba(0, 29, 98, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-small);
}

.result-grid article,
.tips-box {
  padding: 20px;
}

.tips-box {
  background:
    linear-gradient(135deg, rgba(255, 234, 0, 0.22), rgba(0, 199, 238, 0.12)),
    rgba(255, 255, 255, 0.94);
}

.tips-box ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tips-box li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.45;
}

.tips-box li::before {
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  content: "";
  background: var(--yellow);
}

.card-label {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-2);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recommendations {
  margin-top: 30px;
}

.recommendations > h3 {
  font-size: 1.46rem;
}

.resource-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.resource-card > div:not(.preview-card),
.resource-card > a {
  margin-right: 20px;
  margin-left: 20px;
}

.resource-card > a {
  margin-bottom: 20px;
}

.preview-card {
  position: relative;
  display: flex;
  min-height: 142px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border-bottom: 1px solid rgba(0, 29, 98, 0.11);
  background:
    linear-gradient(135deg, rgba(255, 234, 0, 0.42), rgba(0, 199, 238, 0.24)),
    #fff;
}

.preview-image {
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #06183f;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 220ms ease;
}

.preview-contain {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 234, 0, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(0, 199, 238, 0.1), rgba(0, 29, 98, 0.06)),
    #f7fbff;
}

.preview-contain img {
  padding: 8px;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.02);
}

.preview-product.preview-contain {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 234, 0, 0.18), transparent 30%),
    #fff;
}

.preview-product.preview-contain img {
  padding: 14px;
}

.resource-card:hover .preview-image img {
  transform: scale(1.035);
}

.preview-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 20px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--navy);
}

.preview-icon svg {
  width: 58px;
  height: 58px;
}

.preview-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.preview-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.preview-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-copy strong {
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.05;
}

.resource-meta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.resource-card a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.resource-card a:hover {
  text-decoration: underline;
}

.copy-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--navy);
  font-weight: 850;
}

.result-footer {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  border: 2px solid rgba(0, 29, 98, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 234, 0, 0.28), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(0, 199, 238, 0.24), transparent 30%),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-small);
  text-align: center;
}

.result-footer h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.result-footer p {
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.55;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-links a,
.social-links button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 0 18px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.social-links a {
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--navy);
}

@media (max-width: 980px) {
  .intro-layout,
  .result-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
    order: -1;
  }

  .hero-photo-card {
    min-height: 480px;
  }

}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 24px, 1120px);
    padding: 18px 0;
  }

  .intro,
  .identity,
  .quiz {
    min-height: calc(100svh - 36px);
  }

  .promise-grid,
  .answers,
  .answers-many,
  .result-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .answers-many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .promise-grid div {
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

  .question-title-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .question-icon {
    display: none;
  }

  .answer-card {
    min-height: 98px;
    padding: 14px 16px;
  }

  .answer-card strong,
  .answers-many .answer-card strong {
    font-size: clamp(1.18rem, 6.4vw, 1.85rem);
  }

  .answers-many .answer-card {
    min-height: 84px;
    padding: 12px 10px;
  }

  .answers-many .answer-card strong {
    font-size: clamp(1.02rem, 5.2vw, 1.42rem);
  }

  .answer-content > span {
    max-width: 30ch;
    font-size: 0.84rem;
  }

  .answers-many .answer-content > span {
    max-width: 16ch;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .quiz-actions {
    grid-template-columns: minmax(84px, 1fr) minmax(88px, 1fr) minmax(84px, 1fr);
    padding: 8px 0 0;
    background: transparent;
  }

  .quiz-actions button {
    min-height: 48px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .avatar-stage {
    width: 122px;
    height: 122px;
    border-radius: 50%;
  }

  .avatar-stage svg {
    width: 68px;
    height: 68px;
  }

  .avatar-stage img {
    width: 100%;
    height: 100%;
  }

  .step-label {
    font-size: 0.68rem;
  }

  .social-links a,
  .social-links button {
    width: 100%;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  }

  .question-help {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .answer-card {
    min-height: 100px;
  }

  .answer-card strong {
    font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  }
}

@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;
  }
}
