:root {
  --ink: #123c45;
  --deep: #0b2a31;
  --sea: #2b7c86;
  --gold: #e6b66d;
  --cream: #fffaf2;
  --paper: #f6f1e8;
  --muted: #5c6666;
  --line: rgba(18, 60, 69, .16);
  --shadow: 0 28px 80px rgba(7, 34, 39, .18);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--deep);
  font-family: "Montserrat", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(230, 182, 109, .24), transparent 27rem),
    linear-gradient(135deg, #eee5d6 0%, #f9f5ee 55%, #e8eee9 100%);
}

button, a { font: inherit; }
button { color: inherit; }

.shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 720px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(460px, 1.08fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.visual-panel {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: white;
  background:
    linear-gradient(180deg, rgba(5, 29, 34, .18), rgba(5, 29, 34, .82)),
    url("assets/croatia-dalmatian-coast-turquoise-adriatic-water.jpeg") center/cover no-repeat;
}

.visual-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 18px;
  pointer-events: none;
}

.brand-mark {
  position: relative;
  z-index: 1;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.visual-copy { position: relative; z-index: 1; padding: 20px 16px 26px; }
.eyebrow, .kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow { color: #f6d69d; }
.visual-copy h1 {
  max-width: 520px;
  margin: 10px 0 16px;
  font: 600 clamp(3.1rem, 6vw, 5.2rem)/.88 "Cormorant Garamond", serif;
  letter-spacing: -.04em;
}
.visual-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  line-height: 1.7;
}
.photo-credit { position: relative; z-index: 1; padding-left: 16px; font-size: .7rem; opacity: .75; }

.quiz-panel {
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: clamp(36px, 6vw, 76px);
}

.state { display: none; width: 100%; }
.state.active { display: block; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.kicker { margin: 0 0 14px; color: var(--sea); }
h2 {
  margin: 0 0 20px;
  font: 600 clamp(2.35rem, 5vw, 3.6rem)/.98 "Cormorant Garamond", serif;
  letter-spacing: -.025em;
}
.lead, .result-summary, .advisor-note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.lead { max-width: 580px; margin-bottom: 32px; }

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  background: var(--ink);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.primary:hover { background: var(--sea); transform: translateY(-1px); }
.primary:focus-visible, .answer:focus-visible, .back:focus-visible, .restart:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.fine-print { margin: 16px 0 0; color: #7b8583; font-size: .78rem; }

.progress-wrap { margin-bottom: 38px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.progress-track { height: 4px; overflow: hidden; border-radius: 99px; background: #dfe5e2; }
.progress-bar { width: 16.66%; height: 100%; background: linear-gradient(90deg, var(--sea), var(--gold)); transition: width .3s ease; }

fieldset { margin: 0; padding: 0; border: 0; }
legend {
  width: 100%;
  margin-bottom: 24px;
  font: 600 clamp(2rem, 4vw, 3rem)/1.02 "Cormorant Garamond", serif;
}
.answers { display: grid; gap: 12px; }
.answer {
  width: 100%;
  min-height: 60px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  line-height: 1.45;
  background: white;
  cursor: pointer;
  transition: border .2s ease, transform .2s ease, background .2s ease;
}
.answer:hover { border-color: var(--sea); background: #f4fbfa; transform: translateX(3px); }
.answer strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: .95rem; }
.answer span { color: var(--muted); font-size: .82rem; }
.controls { min-height: 28px; margin-top: 24px; }
.back, .restart { padding: 4px 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.back[hidden] { display: none; }

.result-state h2 { margin-bottom: 18px; }
.result-summary { margin: 0 0 24px; }
.result-card { margin: 24px 0; padding: 20px 22px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: #f2eee6; }
.result-card h3 { margin: 0 0 7px; font: 600 1.35rem/1.15 "Cormorant Garamond", serif; }
.result-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.advisor-note { margin: 0 0 26px; font-size: .9rem; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.restart { font-size: .82rem; }

@media (max-width: 840px) {
  .shell { width: 100%; min-height: 100vh; margin: 0; grid-template-columns: 1fr; border-radius: 0; }
  .visual-panel { min-height: 410px; padding: 26px; }
  .visual-panel::after { inset: 12px; }
  .visual-copy { padding: 44px 8px 14px; }
  .visual-copy h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .photo-credit { padding-left: 8px; }
  .quiz-panel { min-height: 560px; padding: 48px 28px 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
