:root {
  --bg-deep:        #100904;
  --bg-panel:       #181009;
  --bg-card:        #211510;
  --bg-card-hover:  #2A1A12;
  --gold:           #C96A2A;
  --gold-bright:    #E07D38;
  --gold-dim:       rgba(201, 106, 42, 0.30);
  --gold-glow:      rgba(201, 106, 42, 0.09);
  --gold-glow-mid:  rgba(201, 106, 42, 0.17);
  --text-primary:   #EAD9C0;
  --text-secondary: #A87858;
  --text-muted:     #5C4230;
  --border-dim:     rgba(201, 106, 42, 0.20);
  --border-mid:     rgba(201, 106, 42, 0.42);
  --border-bright:  rgba(201, 106, 42, 0.70);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 85% 55% at 15%  0%,  rgba(180, 75, 15, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 90% 110%, rgba(140, 55, 10, 0.13) 0%, transparent 58%);
  font-family: "EB Garamond", serif;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}

.quiz-container {
  max-width: 820px;
  margin: 3rem auto;
  padding: 3rem 3.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 24px 72px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(201, 168, 76, 0.06);
}

.quiz-container::before,
.quiz-container::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.38;
}
.quiz-container::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}
.quiz-container::after {
  bottom: 10px;
  right: 10px;
  border-width: 0 1px 1px 0;
}

h1 {
  font-family: "Playfair Display", serif;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.22);
}

.subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.09em;
  margin: 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.6rem 0 1.8rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-dim), transparent);
}
.divider-icon {
  color: var(--gold);
  opacity: 0.45;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.progress-dots {
  display: flex;
  gap: 6px;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--text-muted);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.progress-dot.done {
  background: var(--gold);
  border-color: var(--gold);
}
.progress-dot.active {
  background: transparent;
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.6);
}

.question {
  display: none;
}
.question.active {
  display: block;
}

.question-title {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-primary);
  padding-bottom: 1.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-dim);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.2rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
  text-align: left;
  overflow: hidden;
}

.option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.22s ease;
}

.option-label {
  font-family: "Playfair Display", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
  padding-top: 0.18em;
  transition: opacity 0.2s;
}

.option-text {
  flex: 1;
}

.option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-mid);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35),
              inset 0 0 30px var(--gold-glow);
  transform: translateY(-2px);
}

.option:hover .option-label {
  opacity: 0.75;
}

.option.selected {
  background: var(--bg-card-hover);
  border-color: var(--gold-dim);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4),
              inset 0 0 30px var(--gold-glow-mid),
              0 0 0 1px var(--gold-dim);
  transform: translateY(-1px);
}

.option.selected::before {
  transform: scaleY(1);
}

.option.selected .option-label {
  opacity: 1;
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2.25rem;
  gap: 1rem;
}

button {
  font-family: "Playfair Display", serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  padding: 0.7rem 2rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

button:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
  box-shadow: 0 0 16px var(--gold-glow);
}

button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.result {
  display: none;
  text-align: center;
  padding-top: 0.5rem;
}

.result h2 {
  font-family: "Playfair Display", serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

.result h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.5rem;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.22);
}

.result > p {
  font-style: italic;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  font-size: 1.05rem;
}

.result-image {
  display: block;
  margin: 1.75rem auto 2rem;
  max-width: 400px;
  width: 100%;
}

.footer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.giveaway {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dim);
}

.giveaway button {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 0.9rem 2.8rem;
  margin-bottom: 1.5rem;
  background: var(--gold);
  border-color: var(--gold);
  color: #0D0804;
  box-shadow: 0 0 28px rgba(201, 106, 42, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.giveaway button:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #0D0804;
  box-shadow: 0 0 40px rgba(201, 106, 42, 0.55), 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.giveaway-form {
  width: 100%;
}

.giveaway-form iframe {
  width: 100%;
  max-width: 100%;
  height: 520px;
  border: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .quiz-container {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .option {
    padding: 1.1rem 1.2rem;
    font-size: 1.05rem;
  }

  button {
    padding: 0.75rem 1.4rem;
    font-size: 0.78rem;
  }

  .result h3 {
    font-size: 1.45rem;
  }

  .result-image {
    max-width: 80%;
  }

  .giveaway-form iframe {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .quiz-container {
    margin: 0.5rem;
    padding: 1.5rem 1.1rem;
  }

  h1 {
    font-size: 1.25rem;
  }

  .progress-dots {
    display: none;
  }
}
