:root {
  --bg: #0d0b1f;
  --bg2: #1b1440;
  --card: rgba(30, 24, 66, 0.78);
  --line: rgba(232, 197, 109, 0.28);
  --text: #ece6f6;
  --muted: #b3a9cc;
  --gold: #e8c56d;
  --gold2: #f5dfa0;
  --rose: #e98fae;
  --err: #ff9a8a;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 17px/1.6 var(--sans);
  background: radial-gradient(ellipse at 20% -10%, #3a2675 0%, transparent 55%),
              radial-gradient(ellipse at 110% 30%, #2a1c5c 0%, transparent 50%),
              linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
}
.sky {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .8;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, #f5dfa0 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 84%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 32%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 88%, #f5dfa0 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 8%, #fff 50%, transparent 51%);
  background-size: 420px 420px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .sky, .crystal { animation: none !important; } }

header.top, main, footer { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 8px; }
.brand { font: 600 1.35rem var(--serif); color: var(--gold); text-decoration: none; letter-spacing: .02em; }
.brand-glyph { color: var(--gold2); }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--gold); }
.poc { position: relative; z-index: 2; background: #3d2a12; color: var(--gold2); text-align: center; font-size: .85rem; padding: 6px 16px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--gold2); }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 1.2em 0 .5em; }
h2 { font-size: 1.35rem; margin-top: 0; }
a { color: var(--gold); }
p { margin: 0 0 1em; }
.small, .hint { color: var(--muted); font-size: .85rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; margin: 22px 0; backdrop-filter: blur(4px);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 36rem; margin: 0 auto 1.5em; }

.button, button { text-align: center;
  display: inline-block; cursor: pointer; border: 0; border-radius: 999px; padding: 12px 26px;
  font: 600 1rem var(--sans); text-decoration: none; color: #24180a;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  box-shadow: 0 4px 18px rgba(232,197,109,.25);
}
.button:hover, button:hover { filter: brightness(1.07); }
.button.ghost, button.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); box-shadow: none; }

input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: rgba(10, 8, 26, .65);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
label, .label { display: block; font-weight: 600; margin: 8px 0 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font: 600 1.15rem var(--serif); color: var(--gold2); margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.choice { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: rgba(10,8,26,.4); }
.choice input { width: auto; margin: 0; accent-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(232,197,109,.12); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.tier-choices { flex-direction: column; }
.tier-choices .choice { border-radius: 12px; }
.err { color: var(--err); font-size: .9rem; margin: -6px 0 10px; }
.notice { border-left: 3px solid var(--gold); background: rgba(232,197,109,.08); padding: 10px 14px; border-radius: 6px; }
.hp { position: absolute; left: -9999px; }
.personal.hidden { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 16px 0; }
.consent input { width: auto; margin-top: 5px; accent-color: var(--gold); }

.teaser-form { display: flex; gap: 10px; flex-wrap: wrap; }
.teaser-form select { flex: 1 1 12rem; margin: 0; }
.oracle { margin: 20px 0 10px; padding: 20px 20px 20px 84px; position: relative; border-radius: 12px;
  background: radial-gradient(circle at 40px 50%, rgba(232,197,109,.18), transparent 70px); font: italic 1.2rem/1.5 var(--serif); }
.oracle .glyph { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font: 2.6rem var(--serif); color: var(--gold); font-style: normal; }
.oracle p { margin: 0; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 16px; margin: 10px 0 30px; }
.tier { margin: 0; display: flex; flex-direction: column; }
.tier p:last-of-type { flex: 1; }
.price { font: 600 1.6rem var(--serif); color: var(--gold); margin: 0 0 .4em; }

.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; color: var(--gold2); }
@media (max-width: 520px) { .summary { grid-template-columns: 1fr; } .summary dd { margin-bottom: 8px; } .summary .total { border: 0; } }

.share { display: flex; gap: 8px; }
.share input { margin: 0; min-width: 0; }
.share button { white-space: nowrap; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
textarea { font-size: .9rem; }
details summary { cursor: pointer; color: var(--gold); margin: 10px 0; }
.methods { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.method { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 16px; color: var(--muted); }

.crystal { width: 120px; height: 120px; margin: 10px auto 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8 0, #c9b6ff55 18%, #5a3fb055 45%, #1b1440 72%);
  box-shadow: 0 0 40px #8f6bff66, inset 0 0 30px #e8c56d44; animation: glow 2.4s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 24px #8f6bff44, inset 0 0 20px #e8c56d22; } to { box-shadow: 0 0 60px #8f6bffaa, inset 0 0 40px #e8c56d66; } }

/* recipient's page: an old scroll in a dark tent */
.scroll { position: relative; margin: 64px 0 34px; padding: 70px 26px 30px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(40,30,80,.92), rgba(24,18,52,.94));
  border: 1px solid var(--line); box-shadow: 0 0 0 6px rgba(13,11,31,.6), 0 0 0 7px var(--line), 0 20px 60px rgba(0,0,0,.5); }
.scroll h1 { text-align: center; margin-top: .4em; }
.story > p { font: 1.12rem/1.75 var(--serif); }
.story > p:first-child::first-letter { float: left; font-size: 3.2em; line-height: .9; padding: 4px 8px 0 0; color: var(--gold); }
.eyebrow { text-align: center; text-transform: uppercase; letter-spacing: .18em; font: .78rem var(--sans) !important; color: var(--muted); margin: 0; }
.zodiac { position: absolute; left: 50%; top: -42px; transform: translateX(-50%); width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(circle, #2c2160, #120e2a); border: 1px solid var(--gold);
  box-shadow: 0 0 30px rgba(232,197,109,.35); }
.card .zodiac { position: static; transform: none; margin: 0 auto 10px; }
.zodiac span { font: 2.8rem var(--serif); color: var(--gold); }
.omens { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; padding: 14px 0; text-align: center; }
.omens p { margin: 4px 0; font: italic 1.02rem var(--serif); color: var(--gold2); }
.sig { text-align: right; font: italic .95rem var(--serif) !important; color: var(--muted); }

.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }

footer { color: var(--muted); font-size: .85rem; text-align: center; padding-top: 30px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 40px; }
footer a { color: var(--muted); }

textarea.free-text { resize: vertical; min-height: 4.5em; }
.counter { text-align: right; margin: -4px 0 8px; }
.counter.over { color: var(--err); }
.greeting { text-align: right; font: italic 1.1rem var(--serif) !important; color: var(--gold2); margin: 18px 0 4px; }
.retry { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
