@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #f5a623;
  --dark: #0f0e0d;
  --cream: #faf8f4;
  --text: #1a1a18;
  --muted: #888880;
  --green: #3a7d44;
  --red: #c0392b;
  --border: #e8e4db;
}

html, body {
  min-height: 100%;
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

/* BANNER */
.top-banner {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.top-banner span { color: var(--gold); }

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.logo span { color: var(--gold); }
.header-badges { display: flex; gap: 10px; }
.hbadge {
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* PROGRESS */
.progress-wrap {
  background: #fff;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.progress-label { font-size: 12px; color: var(--muted); }
.progress-score { font-size: 12px; font-weight: 600; color: var(--dark); }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.dot-row { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  transition: all 0.3s;
}
.dot.correct { background: #d4edda; color: var(--green); }
.dot.wrong   { background: #fde8e8; color: var(--red); }
.dot.active  { background: var(--gold); color: #fff; }
.dot-label { font-size: 11px; color: var(--muted); margin-left: 4px; }

/* QUIZ */
.quiz-container { max-width: 480px; margin: 0 auto; padding: 20px 16px; }

.era-badge {
  display: inline-block;
  background: var(--dark);
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.q-label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.q-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px; font-weight: 700; line-height: 1.25;
  margin-bottom: 18px; color: var(--dark);
}

/* PHOTO — rectangular for TV scenes */
.photo-wrap {
  width: 100%;
  max-width: 340px;
  height: 200px;
  margin: 0 auto 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--dark);
}
.photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.photo-era {
  text-align: center;
  font-size: 11px; color: var(--muted);
  margin-bottom: 18px; font-style: italic;
}

/* OPTIONS */
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.opt {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.opt:hover { border-color: var(--dark); background: var(--cream); }
.opt.correct { background: #d4edda; border-color: var(--green); color: var(--green); }
.opt.wrong   { background: #fde8e8; border-color: var(--red); color: var(--red); }
.opt:disabled { cursor: default; }

/* REVEAL */
.reveal-box {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 12px;
  display: none; line-height: 1.45;
}
.reveal-box.show { display: block; }
.reveal-box.correct { background: #d4edda; color: var(--green); }
.reveal-box.wrong   { background: #fff3cd; color: #7d5a00; }

/* NEXT BTN */
.next-btn {
  display: none; width: 100%;
  background: var(--dark); color: #fff;
  border: none; border-radius: 12px;
  padding: 15px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: opacity 0.15s;
}
.next-btn.show { display: block; }
.next-btn:hover { opacity: 0.88; }

/* RESULT */
.result-screen { display: none; max-width: 480px; margin: 0 auto; padding: 24px 16px; text-align: center; }
.result-screen.show { display: block; }
.quiz-area.hide { display: none; }

.trophy {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gold);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.result-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 900;
  color: var(--dark); margin-bottom: 4px;
}
.result-score-big {
  font-size: 52px; font-weight: 900;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.result-score-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.result-rank {
  background: var(--dark); color: var(--gold);
  border-radius: 8px; padding: 7px 14px;
  font-size: 13px; font-weight: 600;
  display: inline-block; margin-bottom: 18px;
}
.result-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }

.gift-box {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 14px;
  margin-bottom: 14px;
  display: flex; gap: 14px; align-items: center; text-align: left;
}
.gift-icon {
  width: 52px; height: 52px;
  background: var(--cream); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.gift-name { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.gift-meta { font-size: 12px; color: var(--muted); }
.gift-price { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 2px; }

.get-gift-btn {
  display: block; width: 100%;
  background: var(--gold); color: var(--dark);
  border: none; border-radius: 14px;
  padding: 17px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-decoration: none; text-align: center;
  margin-bottom: 8px; transition: opacity 0.15s;
}
.get-gift-btn:hover { opacity: 0.9; }

.gift-trust { display: flex; justify-content: center; gap: 14px; font-size: 11px; color: var(--muted); }
.gift-trust span { display: flex; align-items: center; gap: 4px; }

/* FOOTER */
.site-footer {
  text-align: center; padding: 20px;
  font-size: 11px; color: var(--muted);
  border-top: 1px solid var(--border); margin-top: 28px;
}
.site-footer a { color: inherit; }
