@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair600.woff2') format('woff2');
  font-weight: 600;
}
@font-face {
  font-family: 'Playfair Display Light';
  src: url('fonts/playfair500.woff2') format('woff2');
  font-weight: 500;
}
@font-face {
  font-family: 'Allura';
  src: url('fonts/allura400.woff2') format('woff2');
  font-weight: 400;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins600.woff2') format('woff2');
  font-weight: 600;
}

:root {
  --cream: #EDE4D3;
  --gold: #D9B76A;
  --brown: #4A3826;
  --dark: #14100C;
}

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

html, body {
  height: 100%;
  font-family: 'Playfair Display Light', serif;
  background: var(--dark);
  overflow: hidden;
}

#app {
  position: relative;
  height: 100dvh;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 8vh 8vw 6vh;
  background-size: cover;
  background-position: center;
  color: var(--cream);
}

.screen.active { display: flex; }

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,16,12,0.25) 0%, rgba(20,16,12,0.35) 45%, rgba(20,16,12,0.88) 100%);
  z-index: 0;
}

.screen > * { position: relative; z-index: 1; }

.script-title {
  font-family: 'Allura', cursive;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  line-height: 1.25;
  white-space: pre-line;
  margin-bottom: 1.2rem;
}

.serif-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 5.5vw, 1.7rem);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.subtitle {
  font-family: 'Playfair Display Light', serif;
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 1rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

.btn:active { opacity: 0.85; }

.answers {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.answer-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  background: rgba(237,228,211,0.08);
  border: 1px solid rgba(217,183,106,0.4);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  color: var(--cream);
  font-family: 'Playfair Display Light', serif;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.answer-btn:active,
.answer-btn.selected {
  background: rgba(217,183,106,0.22);
  border-color: var(--gold);
}

.answer-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(237,228,211,0.3);
}

.progress-dot.done { background: var(--gold); }

.result-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 6vw, 2rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.result-desc {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.result-price {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.8rem;
  opacity: 0.85;
}

.signature {
  font-family: 'Allura', cursive;
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 1.4rem;
}
