/* Giftmas — premium Christmas theme, mobile-first, fluid */
:root {
  --evergreen: #0B3D2E;
  --red: #C0392B;
  --gold: #C9A227;
  --off-white: #FDF8F0;
  --bg-1: #07291F;
  --bg-2: #0B3D2E;
  --bg-3: #1a1a3e;
  --card: #FDF8F0;
  --text: #1a2e24;
  --text-on-bg: #FDF8F0;
  --muted: #5a6b60;
  --cta: #C0392B;
  --cta-hover: #A93226;
  --gold: #C9A227;
  --gold-soft: #E8D9A0;
  --border: #C9A227;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  background: linear-gradient(135deg, #061a14 0%, #0B3D2E 100%);
  color: #FDF8F0;
  min-height: 100vh;
  position: relative;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23C9A227' fill-opacity='0.06'%3E%3Ccircle cx='20' cy='20' r='1.2'/%3E%3Ccircle cx='80' cy='40' r='0.9'/%3E%3Ccircle cx='50' cy='90' r='1.1'/%3E%3Ccircle cx='100' cy='100' r='0.8'/%3E%3Ccircle cx='10' cy='70' r='0.7'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, "Times New Roman", serif; color: var(--text-on-bg); margin: 0; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); margin-top: clamp(1.25rem, 2vw, 2rem); }
h3 { font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.3rem); }
p { margin: 0 0 clamp(0.5rem, 1vw, 0.75rem); }
.wrap { max-width: 720px; margin: 0 auto; padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.5rem) clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }
.hero { position: relative; padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1rem, 2vw, 1.5rem); text-align: center; }
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='40' viewBox='0 0 200 40'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='1.5' stroke-opacity='0.5'%3E%3Cpath d='M0 20 Q50 0 100 20 T200 20'/%3E%3Ccircle cx='25' cy='12' r='2' fill='%23C9A227' fill-opacity='0.6'/%3E%3Ccircle cx='75' cy='12' r='2' fill='%23C0392B' fill-opacity='0.6'/%3E%3Ccircle cx='125' cy='12' r='2' fill='%23C9A227' fill-opacity='0.6'/%3E%3Ccircle cx='175' cy='12' r='2' fill='%23C0392B' fill-opacity='0.6'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  opacity: 0.7;
}
.brand-badge { display: inline-block; background: var(--card); padding: 10px 20px; border-radius: 14px; margin: 0 0 clamp(0.75rem, 1.5vw, 1rem); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.brand-logo { max-width: 220px; height: auto; display: block; mix-blend-mode: multiply; }
@media (max-width: 480px) { .brand-logo { max-width: 170px; } }
.countdown { font-size: 0.85rem; color: var(--gold-soft); margin: 0 0 clamp(0.75rem, 1.5vw, 1rem); }
.intro { color: var(--gold-soft); margin: 0 0 clamp(0.75rem, 1.5vw, 1rem); }
.disclosure { background: rgba(7,41,31,0.6); color: var(--gold-soft); padding: clamp(0.5rem, 1vw, 0.65rem) clamp(0.75rem, 1.5vw, 1rem); border-radius: 8px; font-size: 0.8rem; margin: clamp(0.75rem, 1.5vw, 1rem) 0; border: 1px solid var(--gold); backdrop-filter: blur(6px); }
.quiz { background: rgba(255,253,240,0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(201,162,39,0.4); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2rem); margin: clamp(0.75rem, 1.5vw, 1rem) 0; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.quiz-step { display: none; animation: fadeUp 0.4s ease; }
.quiz-step.active { display: block; }
.quiz-step h2 { margin-top: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); color: var(--gold); }
.progress { font-size: 0.85rem; color: var(--gold-soft); margin: 0 0 clamp(0.5rem, 1vw, 0.75rem); }
.progress-bar { height: 8px; background: rgba(201,162,39,0.15); border-radius: 999px; overflow: hidden; margin: 0 0 clamp(1rem, 2vw, 1.25rem); border: 1px solid rgba(201,162,39,0.3); }
.progress-fill { height: 100%; width: 25%; background: repeating-linear-gradient(45deg, var(--cta) 0 8px, #fff 8px 16px); border-radius: 999px; transition: width 0.4s ease; box-shadow: 0 0 8px rgba(192,57,43,0.6); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(0.6rem, 1.2vw, 0.85rem); margin: clamp(0.6rem, 1.2vw, 0.85rem) 0; }
.card-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; min-height: 90px; padding: 1rem 0.75rem; border: 2px solid rgba(201,162,39,0.5); border-radius: 12px; background: rgba(255,253,240,0.08); color: var(--text-on-bg); cursor: pointer; transition: all 0.3s ease; text-align: center; font-size: 1rem; backdrop-filter: blur(4px); }
.card-option:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.card-option.selected { border-color: var(--gold); border-width: 3px; background: rgba(201,162,39,0.15); box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(201,162,39,0.3); }
.card-option .icon { font-size: 2rem; line-height: 1; }
.card-option .checkmark { position: absolute; top: 8px; right: 10px; color: var(--gold); font-size: 1.2rem; font-weight: 700; opacity: 0; transition: opacity 0.2s ease; }
.card-option.selected .checkmark { opacity: 1; }
.option-btn { min-height: 44px; padding: 0.6rem 1rem; border: 1px solid var(--gold); border-radius: 8px; background: rgba(255,253,240,0.08); color: var(--text-on-bg); cursor: pointer; font-size: 1rem; transition: all 0.3s ease; }
.option-btn.selected { background: var(--cta); color: #fff; border-color: var(--cta); }
.quiz-nav { display: flex; gap: clamp(0.5rem, 1vw, 0.75rem); margin-top: clamp(0.75rem, 1.5vw, 1rem); align-items: center; }
.quiz-nav button { min-height: 44px; }
.quiz-nav .spacer { flex: 1; }
.btn-primary { background: var(--cta); color: #fff; border: none; border-radius: 10px; padding: 0.7rem 1.5rem; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(192,57,43,0.4); transition: all 0.3s ease; }
.btn-primary:hover { background: var(--cta-hover); transform: scale(1.04); box-shadow: 0 6px 20px rgba(192,57,43,0.6); }
.spinner { display: inline-block; font-size: 1.6rem; animation: spin 1s linear infinite; color: var(--gold); vertical-align: middle; margin-right: 0.5rem; }
.loading { display: flex; align-items: center; gap: 0.5rem; color: var(--gold-soft); font-style: italic; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeUp 0.5s ease; }
.card { background: var(--card); color: var(--text); border: 1px solid var(--gold); border-top: 4px solid var(--cta); border-radius: var(--radius); padding: clamp(0.875rem, 2vw, 1.125rem); margin: clamp(0.75rem, 1.5vw, 1rem) 0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.card h3 { color: var(--text); margin: 0 0 0.375rem; font-family: 'Playfair Display', Georgia, serif; }
.card .reason { margin: 0 0 0.5rem; color: var(--muted); }
.card .band { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.75rem; }
.card .buy { display: flex; align-items: center; justify-content: center; min-height: 44px; background: var(--cta); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; padding: 0.5rem 0.75rem; transition: background 0.2s ease, transform 0.2s ease; }
.card .buy:hover { background: var(--cta-hover); transform: scale(1.03); }
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; padding: 0; margin: 0.5rem 0 0; }
.chips li { background: var(--bg-deep); color: var(--gold-soft); padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.8rem; border: 1px solid var(--gold); }
.parsed { font-size: 0.9rem; color: var(--gold-soft); margin: 0.75rem 0 0.25rem; }
.loading { color: var(--gold-soft); }
.error { color: #fca5a5; }
.error-msg { color: #fca5a5; font-size: 0.85rem; margin-top: 0.5rem; }
.pill { min-height: 40px; padding: 0.5rem 0.85rem; border: 1px solid var(--gold); border-radius: 999px; background: rgba(255,253,240,0.08); color: var(--text-on-bg); cursor: pointer; font-size: 0.9rem; transition: all 0.2s ease; }
.pill.selected { background: var(--cta); color: #fff; border-color: var(--cta); }
.pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
footer { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--gold); padding-top: clamp(0.75rem, 1.5vw, 1rem); color: var(--gold-soft); font-size: 0.8rem; }
a { color: var(--gold); }
/* Force-applied premium classes (user spec) */
.quiz-container {
  background: rgba(253, 248, 240, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 2rem auto;
}
.option-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid rgba(253, 248, 240, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--off-white);
  margin-bottom: 1rem;
}
.option-card input[type="radio"] { display: none; }
.option-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  box-shadow: 0 0 15px rgba(201, 162, 39, 0.2);
}
.option-card:has(input:checked)::after {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
  margin-left: auto;
  font-size: 1.2rem;
}
.btn-primary {
  background: var(--red);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  width: 100%;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
}
.btn-primary:hover {
  background: #a93226;
  transform: translateY(-2px);
}
.top-nav { margin: 0 0 clamp(0.5rem, 1vw, 0.75rem); font-size: 0.85rem; }
.top-nav a { color: var(--gold-soft); text-decoration: none; }
.top-nav a:hover { color: var(--gold); }
@media (min-width: 768px) { .wrap { max-width: 760px; } }
@media (min-width: 1024px) { .wrap { max-width: 820px; } }
@media (max-width: 480px) { .options { grid-template-columns: 1fr 1fr; } .card-option { min-height: 80px; } }