:root {
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --ink: #1e2922;
  --green: #213b2d;
  --green-2: #48624f;
  --sage: #dfe6dc;
  --stone: #e8e2d8;
  --muted: #6e746f;
  --line: #ded9d0;
  --shadow: 0 24px 70px rgba(34, 45, 37, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(222,230,220,.6), transparent 35%),
    linear-gradient(180deg, #fbfaf7 0%, var(--cream) 100%);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #b68b56; outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255,253,249,.94);
  border-bottom: 1px solid rgba(36,54,43,.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--green);
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  line-height: .84;
  letter-spacing: .02em;
}
.brand span { font-size: 23px; }
.brand small { margin-top: 7px; font: 500 11px/1 "DM Sans", sans-serif; letter-spacing: .28em; }

nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .035em;
}
nav a:hover, nav a.active { color: var(--green-2); }
nav a.active { padding-bottom: 7px; border-bottom: 2px solid var(--green); }

.app-shell {
  width: min(1480px, calc(100% - 32px));
  min-height: calc(100vh - 145px);
  margin: 48px auto 34px;
}

.card {
  background: rgba(255,253,249,.96);
  border: 1px solid rgba(33,59,45,.13);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro, .result {
  max-width: 880px;
  margin: 8vh auto 0;
  padding: clamp(38px, 7vw, 86px);
  text-align: center;
}

.eyebrow {
  color: var(--green-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--green);
}

h1 {
  margin: 14px 0 2px;
  font-size: clamp(52px, 8vw, 92px);
  line-height: .96;
  letter-spacing: -.035em;
}

.tagline { margin: 16px 0 0; font-size: clamp(20px, 3vw, 28px); }
.intro-copy { max-width: 620px; margin: 30px auto; color: var(--muted); font-size: 18px; line-height: 1.7; }
.fine-print { margin: 20px 0 0; color: var(--muted); font-size: 13px; }

.primary-button, .secondary-button {
  min-height: 54px;
  padding: 0 27px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button {
  color: white;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(33,59,45,.18);
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 17px 36px rgba(33,59,45,.23); }
.primary-button.compact { min-width: 190px; }
.secondary-button {
  color: var(--green);
  background: transparent;
  border-color: var(--green);
}
.secondary-button:hover { background: var(--sage); transform: translateY(-2px); }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.game { padding: clamp(22px, 4vw, 52px); }
.game-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.progress-text { margin-top: 5px; color: var(--muted); font-size: 14px; }
.text-button { border: 0; background: transparent; color: var(--green-2); font-weight: 700; }
.text-button:hover { text-decoration: underline; }

.progress-track {
  width: min(520px, 100%);
  height: 8px;
  margin: 20px auto 36px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--stone);
}
.progress-bar { height: 100%; width: 12.5%; border-radius: inherit; background: var(--green); transition: width .35s ease; }

.game h2 {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(30px, 4vw, 49px);
  line-height: 1.14;
}
.question-prompt { margin: 14px auto 30px; color: var(--muted); text-align: center; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 36px); }
.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  border: 2px solid transparent;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 15px 35px rgba(37,48,41,.09);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.room-card:hover:not(:disabled) { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(37,48,41,.14); }
.room-card.selected { border-color: var(--green); box-shadow: 0 0 0 5px rgba(33,59,45,.10), 0 22px 44px rgba(37,48,41,.14); }
.room-card.not-selected { opacity: .58; }
.room-card.correct::after {
  content: "Expert pick";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 14px;
  border-radius: 99px;
  color: white;
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.room-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone); }
.room-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 9px 14px;
  color: white;
  background: rgba(33,59,45,.94);
  border-radius: 12px;
  font-weight: 700;
}
.choice-hint { padding: 17px 20px; color: var(--green); font-weight: 700; text-align: center; }

.feedback {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #d6ddd3;
  border-radius: 20px;
  background: #f2f6f0;
}
.feedback-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 25px;
  font-weight: 800;
}
.feedback-title { font-weight: 800; font-size: 19px; }
.feedback p { margin: 5px 0 0; color: #556158; line-height: 1.55; }

.future-ad-slot {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin: 30px 0 0;
  border: 1px dashed #c6c2b9;
  color: #8a877f;
  background: #f4f1eb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 26px auto 14px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 40px;
}
.result h2 { margin: 8px 0 14px; font-size: clamp(40px, 6vw, 68px); }
.result-description { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 19px; line-height: 1.65; }
.score-box {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin: 30px 0;
  padding: 18px 34px;
  border-radius: 18px;
  background: var(--sage);
}
.score-box strong { color: var(--green); font-size: 28px; }
.score-box span { color: #536057; font-size: 13px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.share-status { min-height: 22px; color: var(--green-2); font-size: 14px; }

footer { padding: 0 24px 34px; color: #767b77; text-align: center; font-size: 12px; }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  nav a:not(.active) { display: none; }
  .choices { grid-template-columns: 1fr; }
  .room-card img { aspect-ratio: 16 / 10; }
  .feedback { grid-template-columns: auto 1fr; }
  .feedback .primary-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 600px) {
  .site-header { min-height: 68px; padding: 12px 17px; }
  .brand span { font-size: 18px; }
  .brand small { font-size: 8px; }
  nav a.active { font-size: 12px; }
  .app-shell { width: min(100% - 18px, 1480px); margin-top: 18px; }
  .intro, .result { margin-top: 18px; padding: 38px 22px; }
  .game { padding: 20px 13px 24px; }
  .game h2 { font-size: 29px; }
  .question-prompt { margin-bottom: 20px; }
  .room-label { top: 12px; left: 12px; }
  .room-card.correct::after { top: 12px; right: 12px; }
  .feedback { padding: 16px; }
  .result-actions > * { width: 100%; }
}

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