:root {
  --blue: #0877b9;
  --deep-blue: #075985;
  --sky: #dff6ff;
  --green: #22a06b;
  --leaf: #147d54;
  --yellow: #fff1a8;
  --orange: #f97316;
  --white: #ffffff;
  --ink: #17324d;
  --muted: #5d7185;
  --line: rgba(7, 89, 133, 0.16);
  --shadow: 0 24px 70px rgba(7, 89, 133, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 241, 168, 0.9) 0 120px, transparent 121px),
    linear-gradient(135deg, #e8fbff 0%, #f7fff0 44%, #fff8d8 100%);
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.hero {
  padding-top: 8px;
}

.brand-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep-blue);
  font-weight: 700;
}

.intro-card,
.quiz-card,
.analysis-card,
.result-card {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.intro-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 6vw, 56px);
}

.intro-card::before {
  content: "🏖️";
  position: absolute;
  right: clamp(10px, 5vw, 42px);
  top: 16px;
  font-size: clamp(48px, 12vw, 104px);
  opacity: 0.18;
  transform: rotate(8deg);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: #7a4a00;
  font-weight: 800;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 4.5rem);
  line-height: 1.03;
  color: var(--deep-blue);
  letter-spacing: 0;
}

.subtitle {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.45;
  color: #294c66;
}

.intro-copy {
  max-width: 640px;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.ad-slot {
    width: 100%;
    min-height: 120px;
    margin: 22px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ad-slot-top {
  max-width: 728px;
}

.primary-button,
.secondary-button,
.salary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.secondary-button {
  background: #eef9ff;
  color: var(--deep-blue);
  border-color: rgba(8, 119, 185, 0.28);
}

.salary-link {
  background: var(--green);
  color: var(--white);
}

.primary-button:hover,
.secondary-button:hover,
.salary-link:hover {
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.salary-link:focus-visible,
.answer-option:focus-visible {
  outline: 4px solid rgba(249, 115, 22, 0.38);
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.quiz-card,
.analysis-card,
.result-card {
  margin-top: 22px;
  padding: clamp(18px, 4vw, 34px);
}

.quiz-topline,
.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.quiz-topline {
  color: var(--deep-blue);
  font-weight: 800;
}

#selected-status {
  color: var(--muted);
  font-weight: 700;
}

.progress-wrap {
  margin: 18px 0 26px;
}

.progress-info {
  margin-bottom: 8px;
  font-size: 0.94rem;
  color: var(--muted);
}

.progress-track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7eef8;
  border: 1px solid rgba(7, 89, 133, 0.16);
}

.progress-bar {
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transition: width 220ms ease;
}

.quiz-card h2,
.analysis-card h2,
.result-card h2 {
  margin: 0 0 18px;
  color: var(--deep-blue);
  font-size: clamp(1.45rem, 5vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.answers {
  display: grid;
  gap: 12px;
}

.answer-option {
  width: 100%;
  min-height: 62px;
  padding: 14px 16px;
  border: 2px solid rgba(8, 119, 185, 0.22);
  border-radius: var(--radius);
  background: #fbfeff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
  line-height: 1.35;
}

.answer-option:hover {
  border-color: rgba(34, 160, 107, 0.65);
  background: #f0fff8;
}

.answer-option.is-selected {
  border-color: var(--green);
  background: #e9fff4;
  box-shadow: inset 0 0 0 2px rgba(34, 160, 107, 0.18);
}

.answer-option.is-selected::before {
  content: "✓ ";
  color: var(--leaf);
}

.quiz-actions,
.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.analysis-card {
  text-align: center;
}

.beach-loader {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 2.5rem;
}

.beach-loader span {
  animation: bounce 900ms ease-in-out infinite;
}

.beach-loader span:nth-child(2) {
  animation-delay: 150ms;
}

.beach-loader span:nth-child(3) {
  animation-delay: 300ms;
}

#analysis-message {
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  color: var(--muted);
  font-weight: 800;
}

.result-card {
  text-align: center;
}

.result-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: #7a4a00;
  font-weight: 900;
}

.days-label {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.days-number {
  margin: 2px 0 10px;
  color: var(--orange);
  font-size: clamp(3.5rem, 18vw, 8rem);
  line-height: 0.98;
  font-weight: 900;
}

.result-message {
  max-width: 700px;
  margin: 0 auto 16px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: #294c66;
}

.recommendation {
  max-width: 720px;
  margin: 18px auto;
  padding: 18px;
  border-radius: var(--radius);
  background: #eefbf5;
  border: 1px solid rgba(34, 160, 107, 0.25);
  text-align: left;
}

.recommendation p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.seal {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 18px auto;
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: var(--radius);
  background: #fff8e7;
}

.seal small {
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  padding: 18px 0 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}

.hidden {
  display: none;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 980px);
    padding-top: 10px;
  }

  .brand-strip,
  .quiz-topline,
  .progress-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-card {
    padding: 22px 16px;
  }

  .quiz-card,
  .analysis-card,
  .result-card {
    padding: 18px 14px;
  }

  .quiz-actions,
  .result-actions {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .salary-link,
  .answer-option {
    width: 100%;
  }

  .days-number {
    font-size: clamp(3.3rem, 20vw, 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
