:root {
  --cream: #fbf6ef;
  --paper: #fdfaf5;
  --rose-light: #f3dbd1;
  --rose: #e9c4c0;
  --rose-deep: #c89691;
  --burgundy: #5c1f25;
  --burgundy-soft: #7a2a31;
  --gold: #c69749;
  --gold-soft: #d4b67a;
  --ink: #2d1418;
  --ink-soft: rgba(45, 20, 24, 0.7);
  --ink-mute: rgba(45, 20, 24, 0.45);
  --shadow-card: 0 30px 60px -20px rgba(92, 31, 37, 0.28), 0 12px 24px -12px rgba(92, 31, 37, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, var(--rose-light) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, #e8d4bd 0%, transparent 60%),
    var(--cream);
}

.bg-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.card {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border-radius: 28px;
  padding: 56px 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(198, 151, 73, 0.18);
  overflow: hidden;
}

.card::before {
  content: ''; position: absolute; inset: 6px;
  border-radius: 22px;
  border: 1px solid rgba(198, 151, 73, 0.10);
  pointer-events: none;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.screen.active {
  display: flex;
  animation: fadeIn 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ornament {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 28px;
}

h1.display, h2.display-sm {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.05;
  letter-spacing: -0.018em;
}

h1.display {
  font-size: 48px;
  margin-bottom: 22px;
}
h2.display-sm {
  font-size: 32px;
  margin-bottom: 28px;
  max-width: 340px;
}

em {
  font-style: italic;
  font-weight: 500;
  color: var(--burgundy-soft);
}

.subtitle {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 340px;
}

.btn {
  background: var(--burgundy);
  color: var(--paper);
  border: none;
  padding: 16px 36px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 24px -10px rgba(92, 31, 37, 0.5);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(92, 31, 37, 0.18);
}
.btn:hover {
  background: var(--burgundy-soft);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(92, 31, 37, 0.55);
}
.btn:active { transform: translateY(0); }

.footer-note {
  margin-top: 24px;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.step {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.choice {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(92, 31, 37, 0.18);
  padding: 18px 22px;
  border-radius: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(92, 31, 37, 0.18);
  user-select: none;
  -webkit-user-select: none;
}
.choice:hover {
  background: var(--rose);
  border-color: var(--burgundy);
  transform: translateX(2px);
}
.choice:active { transform: translateX(0) scale(0.99); }

.choice-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--burgundy);
  letter-spacing: -0.01em;
}
.choice-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.spinner {
  width: 38px; height: 38px;
  border: 2px solid rgba(92, 31, 37, 0.12);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.permission-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.01em;
}

.reveal-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.reveal-title { margin-bottom: 18px; }

#map {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  margin: 8px 0 24px;
  border: 1px solid rgba(92, 31, 37, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
  z-index: 1;
}

.ornament-tiny {
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 18px;
}

.reveal-blurb {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin: 4px 0 24px;
  max-width: 380px;
}
.reveal-blurb em { color: var(--burgundy); font-weight: 500; }

.reading {
  width: 100%;
  margin: 4px 0 28px;
  padding: 22px 22px 24px;
  background:
    linear-gradient(180deg, rgba(233, 196, 192, 0.25) 0%, rgba(198, 151, 73, 0.06) 100%);
  border: 1px solid rgba(198, 151, 73, 0.28);
  border-radius: 14px;
  text-align: left;
  position: relative;
}
.reading::before, .reading::after {
  content: '✦';
  position: absolute;
  font-size: 10px;
  color: var(--gold);
  opacity: 0.6;
}
.reading::before { top: 8px; left: 12px; }
.reading::after  { bottom: 8px; right: 12px; }

.reading-step {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.reading-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 500;
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  text-align: center;
}

.reading-lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reading-lines li {
  position: relative;
  padding-left: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}

.reading-lines li::before {
  content: '✦';
  position: absolute;
  left: 0; top: 1px;
  color: var(--gold);
  font-size: 11px;
  opacity: 0.85;
}

.reveal-punchline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  color: var(--burgundy);
  margin-top: 4px;
  max-width: 380px;
  letter-spacing: -0.005em;
}

@media (max-width: 480px) {
  .card { padding: 44px 24px; border-radius: 22px; }
  h1.display { font-size: 38px; }
  h2.display-sm { font-size: 26px; }
  .reveal-punchline { font-size: 19px; }
  .reveal-blurb { font-size: 17px; }
  .reading-headline { font-size: 21px; }
  .reading-lines li { font-size: 16px; }
  #map { height: 220px; }
}

.leaflet-container { background: var(--cream); font-family: inherit; }
