/* TaroLuna — dark indigo, gold, stars. Fonts are self-hosted (@fontsource, OFL). */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0d0b2b;
  --bg2: #1a1650;
  --panel: rgba(30, 26, 82, 0.72);
  --panel-border: rgba(167, 139, 250, 0.28);
  --gold: #d4af37;
  --gold-light: #f7e3a1;
  --violet: #a78bfa;
  --text: #ece8ff;
  --muted: rgba(236, 232, 255, 0.62);
  --danger: #ff6b6b;
  --ok: #51cf66;
  --radius: 16px;
  --card-w: 150px;
  --gold-grad: linear-gradient(135deg, #f7e3a1 0%, #d4af37 45%, #a8832a 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -10%, #2a2370 0%, var(--bg2) 35%, var(--bg) 75%) fixed, var(--bg);
  color: var(--text);
  font: 400 16px/1.65 "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
body.modal-open, body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--violet); }
a:hover { color: var(--gold-light); }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); text-align: center; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* starry sky: fixed layers of tiny radial dots, slowly twinkling */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 35%, #f7e3a1 50%, transparent 51%),
    radial-gradient(1px 1px at 75% 15%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 60%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 20% 90%, #c4b5fd 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 85%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 10%, #fff 50%, transparent 51%);
  background-size: 420px 420px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 25% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 80% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 60% 50%, #f7e3a1 50%, transparent 51%);
  background-size: 260px 260px;
  animation: twinkle 4s 1s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.75em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem/1.2 "Cinzel", serif; letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-gold { background: var(--gold-grad); color: #1a0f3a; box-shadow: 0 0 22px rgba(212, 175, 55, 0.35); }
.btn-gold:hover { color: #1a0f3a; box-shadow: 0 0 32px rgba(212, 175, 55, 0.55); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--panel-border); }
.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold); }
.btn-lg { font-size: 1.05rem; padding: 0.9em 2em; }
.btn-sm { font-size: 0.8rem; padding: 0.5em 1em; }
.icon-btn { background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; border-radius: 10px; display: inline-flex; }
.icon-btn:hover { color: var(--gold); }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0.4em; }

/* ------------------------------------------------------------------ header */
.site-header { position: relative; z-index: 20; padding: 0 16px; }
.header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1200px; margin: 0 auto; padding: 14px 0 6px; }
.logo {
  justify-self: center; font: 700 clamp(1.6rem, 4vw, 2.4rem) "Cinzel", serif; letter-spacing: 0.08em; text-decoration: none;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}
.top-links { justify-self: end; display: flex; gap: 18px; }
.top-links a { color: var(--muted); font: 500 0.72rem "Cinzel", serif; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.top-links a:hover { color: var(--gold); }
.burger { display: none; justify-self: end; }
.lang-switch { justify-self: start; position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); display: inline-flex; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul { position: absolute; top: 110%; left: 0; margin: 0; padding: 6px; list-style: none; background: #1c1756; border: 1px solid var(--panel-border); border-radius: 12px; min-width: 160px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.lang-switch li a { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.lang-switch li a:hover { background: rgba(167, 139, 250, 0.15); }
.flag { border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.spread-nav { display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); max-width: 1200px; margin: 0 auto; padding: 10px 0 14px; }
.spread-nav a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font: 500 0.72rem "Cinzel", serif; letter-spacing: 0.08em; text-transform: uppercase; }
.spread-nav a:hover, .spread-nav a.active { color: var(--gold); }
.offcanvas { position: fixed; inset: 0; background: rgba(5, 4, 20, 0.6); backdrop-filter: blur(3px); z-index: 50; }
.offcanvas-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); overflow-y: auto; background: linear-gradient(180deg, #1c1756, #0f0c33); border-left: 1px solid var(--panel-border); padding: 56px 20px 24px; animation: slideIn 0.25s ease-out; }
.offcanvas-panel ul { list-style: none; margin: 0; padding: 0; }
.offcanvas-panel li a { display: flex; gap: 10px; align-items: center; padding: 10px 6px; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.offcanvas-panel li ul a { padding-left: 34px; font-size: 0.92rem; color: var(--muted); }
.offcanvas-x { position: absolute; top: 12px; right: 12px; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.breadcrumbs { font-size: 0.8rem; color: var(--muted); margin: 6px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--muted); }

/* ------------------------------------------------------------------ generic blocks */
.prose { max-width: 760px; margin: 0 auto; }
.prose p, .prose li { color: rgba(236, 232, 255, 0.88); }
.lead { font-size: 1.08rem; color: rgba(236, 232, 255, 0.85); max-width: 720px; margin: 0 auto 1.2em; text-align: center; }
.content-wrap { margin-top: 48px; }
.content-section { max-width: 820px; margin: 40px auto; }
.content-section h2 { color: var(--gold-light); }
.cta-box { text-align: center; margin: 48px auto; max-width: 720px; padding: 28px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.disclaimer { font-size: 0.82rem; font-style: italic; color: rgba(255, 255, 255, 0.45); text-align: center; max-width: 760px; margin: 24px auto; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 0.7rem "Cinzel", serif; letter-spacing: 0.06em; background: rgba(212, 175, 55, 0.15); color: var(--gold-light); border: 1px solid rgba(212, 175, 55, 0.4); }
.big-emoji { font-size: 2.6rem; text-align: center; }

.accordion, .faq { max-width: 860px; margin: 32px auto; }
.faq > h2 { text-align: center; }
.acc-item { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; margin: 10px 0; overflow: hidden; }
.acc-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative; font: 600 1rem "Playfair Display", serif; text-align: center; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "▾"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--violet); transition: transform 0.2s; }
.acc-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.acc-item > .prose { padding: 0 22px 18px; }

.spread-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.spread-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); color: var(--text); text-decoration: none; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.spread-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 0 26px rgba(167, 139, 250, 0.25); color: var(--text); }
.spread-card h3 { margin: 4px 0 0; color: var(--gold-light); }
.spread-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.spread-ico { color: var(--gold); }
.spread-card.vip { border-color: rgba(212, 175, 55, 0.5); }
.other-readings { margin-top: 56px; text-align: center; }
.spreads .spread-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ------------------------------------------------------------------ home */
.hero { text-align: center; padding: 26px 0 10px; }
.hero-card { width: 150px; margin: 0 auto 18px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.35)); }
.hero-sub { font: 500 1.1rem "Cinzel", serif; color: var(--violet); }
@keyframes float { 50% { transform: translateY(-10px) rotate(1deg); } }
.spreads h2, .testimonials h2 { text-align: center; }
.testimonials { max-width: 900px; margin: 40px auto; display: grid; gap: 14px; }
.testimonials blockquote { margin: 0; padding: 18px; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--panel-border); }
.consulto { max-width: 760px; margin: 36px auto; text-align: center; padding: 26px 20px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(212, 175, 55, 0.1)); border: 1px solid rgba(212, 175, 55, 0.4); }
.consulto.is-hidden { display: none; }

/* ------------------------------------------------------------------ reading engine */
.reading-head { text-align: center; margin: 10px 0 20px; }
.reading-sub { font: 500 1.05rem "Cinzel", serif; color: var(--violet); text-align: center; margin-top: -0.3em; }
.reader { position: relative; scroll-margin-top: 12px; }
.rd-intro, .love-choice { max-width: 640px; margin: 0 auto; padding: 28px 22px; text-align: center; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 24px; box-shadow: 0 0 60px rgba(124, 58, 237, 0.18); backdrop-filter: blur(4px); animation: fadeUp 0.5s ease-out; }
.rd-intro h2, .love-choice h2 { font-family: "Cinzel", serif; font-variant: small-caps; }
.moons { width: 200px; height: 60px; margin: 0 auto 10px; display: block; }
.moon-lit { fill: #f7e3a1; filter: drop-shadow(0 0 8px rgba(247, 227, 161, 0.7)); }
.moon-dark { fill: #2a2370; stroke: var(--violet); stroke-width: 1.5; }
.chips { margin: 14px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.chips-track { display: flex; gap: 10px; width: max-content; animation: chips 60s linear infinite; padding: 4px 0; }
.chips:hover .chips-track, .chips:focus-within .chips-track { animation-play-state: paused; }
@keyframes chips { to { transform: translateX(-50%); } }
.chip { white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--panel-border); background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer; font: 0.85rem "Inter", sans-serif; }
.chip:hover { border-color: var(--gold); color: var(--gold-light); }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; margin: 10px 0; position: relative; }
.field > span { font-size: 0.88rem; color: var(--muted); }
input, textarea, select { width: 100%; font: 1rem "Inter", sans-serif; color: var(--text); background: rgba(10, 8, 40, 0.65); border: 1px solid var(--panel-border); border-radius: 12px; padding: 12px 14px; }
textarea { resize: vertical; min-height: 92px; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 0 24px rgba(167, 139, 250, 0.25); }
input[type="date"] { color-scheme: dark; }
.counter { position: absolute; right: 12px; bottom: 8px; font-size: 0.72rem; color: var(--muted); }
.fields fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.hint { font-size: 0.88rem; color: var(--muted); font-style: italic; }
.vip-cost { font: 600 0.95rem "Cinzel", serif; color: var(--gold-light); }
.choice-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 18px; }
.choice-card { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 22px 12px; border-radius: 18px; border: 1px solid var(--panel-border); background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer; font: inherit; transition: border-color 0.2s, transform 0.2s; }
.choice-card strong { font: 700 1.1rem "Cinzel", serif; color: var(--gold-light); }
.choice-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.choice-or { display: flex; flex-direction: column; align-items: center; color: #f472b6; font-style: italic; }

.num-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0; }
.num-slot { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--panel-border); background: rgba(10, 8, 40, 0.6); }
.num-slot.revealed { border-color: var(--gold); box-shadow: 0 0 16px rgba(212, 175, 55, 0.35); }
.num-val { font: 700 1.6rem "Cinzel", serif; color: var(--gold-light); }
.num-label { font-size: 0.65rem; color: var(--muted); text-align: center; line-height: 1.2; }
.num-spoken { grid-column: 1 / -1; font-family: "Cinzel", serif; color: var(--gold-light); }
.numbers-modal dl > div { display: grid; gap: 2px; margin: 10px 0; text-align: left; }
.numbers-modal dt { font: 600 1rem "Cinzel", serif; }
.numbers-modal dt .num-val { font-size: 1.2rem; margin-right: 6px; }
.numbers-modal dd { margin: 0; color: var(--muted); font-size: 0.9rem; }

.rd-cards { text-align: center; }
.choose { font: 700 clamp(1.3rem, 4vw, 1.9rem) "Cinzel", serif; font-variant: small-caps; display: flex; align-items: center; justify-content: center; gap: 12px; }
.count { display: inline-grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-light); box-shadow: 0 0 18px rgba(212, 175, 55, 0.45); }
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px calc(50% - var(--card-w) / 2) 30px; scrollbar-width: none; outline: none; }
.carousel::-webkit-scrollbar { display: none; }
.c-card { flex: 0 0 var(--card-w); scroll-snap-align: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; transition: transform 0.3s, opacity 0.3s, filter 0.3s; opacity: 0.55; transform: scale(0.88); }
.c-card img { display: block; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.c-card.is-center { opacity: 1; transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.55)); }
@media (pointer: fine) { .c-card { opacity: 0.85; } .c-card:hover { opacity: 1; transform: translateY(-14px); filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.5)); } }
.c-card.picked { opacity: 0.15 !important; transform: translateY(-40px) scale(0.8) !important; pointer-events: none; }
.carousel.done .c-card:not(.picked) { opacity: 0 !important; transition-duration: 0.6s; }

.rd-result { text-align: center; }
.phase-title { font: 700 1.6rem "Cinzel", serif; color: var(--gold-light); min-height: 1.4em; }
.result-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 18px 0 30px; }
.flip { position: relative; width: var(--card-w); padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; color: var(--text); }
.flip-inner { position: relative; display: block; aspect-ratio: 3 / 5; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }
.face.front { transform: rotateY(180deg); display: block; }
.face.front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip.reversed .face.front img { transform: rotate(180deg); }
.rev-mark { position: absolute; left: 0; right: 0; bottom: 8%; font: 700 0.62rem "Cinzel", serif; letter-spacing: 0.08em; color: #fff; background: rgba(183, 28, 28, 0.75); padding: 3px 0; }
.card-name { display: block; min-height: 1.6em; margin-top: 10px; font: 600 0.95rem "Cinzel", serif; color: var(--gold-light); animation: fadeUp 0.5s; }
.flip:not(.flipped):hover .flip-inner { transform: translateY(-6px); }
.flip.next-to-flip .face.back { box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(212, 175, 55, 0.7); }
.flip.fade { opacity: 0; transform: rotate(12deg) scale(0.9); transition: 0.8s; }
.slot-no { position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); color: #1a0f3a; font: 700 0.8rem "Cinzel", serif; display: grid; place-items: center; z-index: 2; }
.spark { position: absolute; left: 50%; top: 40%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 8px var(--gold); pointer-events: none; animation: spark 0.9s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--x), var(--y)) scale(0.2); opacity: 0; } }

/* Celtic cross: 3×3 cross + staff of 4 (positions 1–10) */
.layout-celtic { display: grid; grid-template-columns: repeat(3, var(--card-w)) 40px var(--card-w); grid-template-rows: repeat(4, auto); gap: 14px; justify-content: center; --card-w: 108px; }
.layout-celtic .slot-1 { grid-area: 2 / 2 / 4 / 3; align-self: center; }
.layout-celtic .slot-2 { grid-area: 2 / 2 / 4 / 3; align-self: center; transform: rotate(90deg) scale(0.92); z-index: 1; }
.layout-celtic .slot-2.flipped { z-index: 1; }
.layout-celtic .slot-3 { grid-area: 2 / 1 / 4 / 2; align-self: center; }
.layout-celtic .slot-4 { grid-area: 2 / 3 / 4 / 4; align-self: center; }
.layout-celtic .slot-5 { grid-area: 4 / 2; }
.layout-celtic .slot-6 { grid-area: 1 / 2; }
.layout-celtic .slot-7 { grid-area: 4 / 5; }
.layout-celtic .slot-8 { grid-area: 3 / 5; }
.layout-celtic .slot-9 { grid-area: 2 / 5; }
.layout-celtic .slot-10 { grid-area: 1 / 5; }
.layout-celtic .card-name { font-size: 0.72rem; }

.rd-reading { max-width: 860px; margin: 0 auto; }
.loader { text-align: center; padding: 30px 0; }
.mystic-loader { width: 160px; height: 160px; }
.mystic-loader .ring { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 6 10; transform-origin: 60px 60px; }
.mystic-loader .r1 { animation: spin 14s linear infinite; }
.mystic-loader .r2 { stroke: var(--violet); animation: spin 9s linear infinite reverse; }
.mystic-loader .r3 { animation: spin 6s linear infinite; }
.mystic-loader text { fill: var(--gold-light); font: 28px "Cinzel", serif; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font: 600 1.15rem "Cinzel", serif; color: var(--gold-light); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.reading-out { animation: fadeUp 0.6s ease-out; }
.eye { text-align: center; color: var(--violet); filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.7)); }
.reading-title { text-align: center; font-family: "Playfair Display", serif; }
.your-question { text-align: center; font-style: italic; color: var(--muted); }
.verdict { text-align: center; margin: 10px 0 24px; }
.verdict strong { display: block; font: 800 clamp(3rem, 12vw, 5rem) "Cinzel", serif; line-height: 1; }
.verdict.si strong { color: #7ee2a8; text-shadow: 0 0 30px rgba(81, 207, 102, 0.6); }
.verdict.no strong { color: #ff9a9a; text-shadow: 0 0 30px rgba(255, 107, 107, 0.55); }
.verdict.maybe strong { color: var(--violet); text-shadow: 0 0 30px rgba(167, 139, 250, 0.5); }
.verdict-note { max-width: 520px; margin: 10px auto 0; font-size: 0.95rem; color: rgba(236, 232, 255, 0.85); }
.verdict span { font: 600 1.1rem "Cinzel", serif; color: var(--gold-light); }
.reading-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px; margin: 14px 0; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); opacity: 0; transform: translateY(12px); transition: 0.6s; }
.reading-row.in { opacity: 1; transform: none; }
.reading-row figure { margin: 0; position: relative; }
.reading-row figure img { border-radius: 10px; display: block; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.reading-row figure.reversed img { transform: rotate(180deg); }
.reading-row h3 { font-family: "Cinzel", serif; color: var(--gold-light); font-size: 1rem; letter-spacing: 0.03em; }
.reading-row .text, .reading-general p { white-space: pre-line; }
mark.kw { background: none; color: var(--violet); font-weight: 600; text-shadow: 0 0 10px rgba(167, 139, 250, 0.6); }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--gold); margin-left: 2px; vertical-align: text-bottom; animation: pulse 0.8s steps(2) infinite; }
.read-more { display: inline-block; margin-top: 8px; font-size: 0.9rem; }
.reading-general { margin: 26px 0; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(167, 139, 250, 0.12)); border: 1px solid rgba(212, 175, 55, 0.45); text-align: center; }
.reading-general h3 { font-family: "Cinzel", serif; color: var(--gold-light); }
.share-block, .pdf-block { text-align: center; margin: 22px 0; }
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: #fff; font: 700 1rem "Inter", sans-serif; border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.2s; }
.share-btn:hover { transform: translateY(-3px); color: #fff; }
.share-whatsapp { background: #1fa855; } .share-telegram { background: #229ed9; } .share-facebook { background: #1877f2; }
.share-x { background: #111; } .share-pinterest { background: #c8232c; } .share-reddit { background: #ff4500; }
.remaining { text-align: center; }
[data-again] { display: block; margin: 16px auto; }
.reader [data-retry] { margin-top: 12px; }

/* ------------------------------------------------------------------ oracle */
.oracle { max-width: 900px; margin: 0 auto; scroll-margin-top: 12px; }
.oracle-intro { text-align: center; padding: 26px 20px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 24px; }
.oracle-title { font: 700 2.2rem "Cinzel", serif; margin: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oracle-sub { font-style: italic; color: var(--violet); margin-top: 0; }
.oracle-name { max-width: 380px; margin: 0 auto; }
.oracle-head { text-align: center; }
.oracle-body { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.oracle-card { text-align: center; position: sticky; top: 16px; }
.oracle-card .flip { --card-w: 180px; cursor: default; }
.oracle-messages { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; min-height: 360px; }
.messages { flex: 1; overflow-y: auto; max-height: 460px; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; animation: fadeUp 0.3s; }
.msg p { margin: 0; white-space: pre-line; }
.msg-who { display: block; font: 600 0.68rem "Cinzel", serif; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.msg-user { align-self: flex-end; background: rgba(167, 139, 250, 0.22); }
.msg-oracle { align-self: flex-start; background: rgba(212, 175, 55, 0.12); border: 1px solid rgba(212, 175, 55, 0.3); }
.oracle-input { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.oracle-input textarea { min-height: 52px; }
.send-btn { flex: 0 0 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold-grad); color: #1a0f3a; cursor: pointer; display: grid; place-items: center; }
.oracle-left { color: var(--gold-light); text-align: center; }
.shake { animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ------------------------------------------------------------------ modals, toasts, popups */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 20, 0.72); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 24px 24px; border-radius: 20px; text-align: center; background: linear-gradient(160deg, #1a0533, #0d1b4b); border: 1px solid rgba(167, 139, 250, 0.55); box-shadow: 0 0 60px rgba(124, 58, 237, 0.35); animation: fadeUp 0.3s ease-out; }
.modal-card::before { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 2px; background: var(--gold-grad); }
.modal-x { position: absolute; top: 10px; right: 10px; }
.modal input { text-transform: none; }
.paywall .quote { font-style: italic; }
.offer { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 16px; margin: 14px 0; border-radius: 14px; background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.4); }
.offer strong { font: 700 1.4rem "Cinzel", serif; color: var(--gold-light); }
.code-form .row { display: flex; gap: 8px; }
.code-form input { text-transform: uppercase; letter-spacing: 0.12em; text-align: center; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; margin: 18px 0 10px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--panel-border); }
.form-error { color: var(--danger); font-size: 0.88rem; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.pack { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 18px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--panel-border); color: var(--text); font: inherit; }
button.pack { cursor: pointer; }
button.pack:hover, .pack.popular { border-color: var(--gold); }
.pack strong { font-family: "Cinzel", serif; color: var(--gold-light); }
.pack .price { font: 700 1.4rem "Cinzel", serif; }
.pack .badge { position: absolute; top: -11px; }
.toasts { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border-radius: 12px; color: #fff; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); animation: slideToast 0.3s ease-out; transition: opacity 0.5s, transform 0.5s; }
.toast-error { background: linear-gradient(135deg, #ff6b6b, #ee5a6f); }
.toast-ok { background: linear-gradient(135deg, #51cf66, #37b24d); }
.toast.out { opacity: 0; transform: translateX(30px); }
@keyframes slideToast { from { transform: translateX(40px); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.email-popup .modal-card { max-width: 480px; }
.email-popup form { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner { position: fixed; z-index: 90; right: 16px; bottom: 16px; left: auto; width: min(420px, calc(100vw - 32px)); padding: 18px; border-radius: 16px; background: #17134a; border: 1px solid var(--panel-border); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); font-size: 0.9rem; }
.cookie-banner .row { display: flex; gap: 10px; justify-content: flex-end; }
.vip-tab { position: fixed; left: 0; top: 40%; z-index: 30; display: flex; align-items: stretch; text-decoration: none; color: #1a0f3a; transform: translateX(-100%); transition: transform 0.4s; }
.vip-tab.visible { transform: translateX(calc(-100% + 44px)); }
.vip-tab.visible:hover, .vip-tab.visible:focus { transform: none; }
.vip-tab-body { order: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px; background: #1c1756; color: var(--text); border: 1px solid var(--gold); border-left: 0; font-size: 0.85rem; width: 170px; }
.vip-tab-label { order: 2; writing-mode: vertical-rl; display: flex; align-items: center; gap: 6px; padding: 14px 10px; background: var(--gold-grad); border-radius: 0 12px 12px 0; font: 700 0.85rem "Cinzel", serif; animation: glow 2.5s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 24px rgba(212, 175, 55, 0.7); } }
.vip-banner { display: none; }
.orientation-warning { display: none; }
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .orientation-warning { display: flex; position: fixed; inset: 0; z-index: 300; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bg); text-align: center; padding: 20px; font-size: 1.1rem; }
  .orientation-warning span { font-size: 3rem; }
}

/* ------------------------------------------------------------------ cards, blog, static, shop */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; margin: 16px 0 28px; }
.card-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: 0.82rem; text-align: center; }
.card-tile img { border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); transition: transform 0.2s; }
a.card-tile:hover img { transform: translateY(-4px); }
div.card-tile { opacity: 0.6; }
.card-hero { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; margin-bottom: 24px; }
.card-hero img { border-radius: 14px; box-shadow: 0 0 40px rgba(212, 175, 55, 0.3); }
.card-hero h1 { text-align: left; }
.card-nav { display: flex; justify-content: space-between; margin: 30px 0; }
/* card pages in the new structure: Scheda, table of contents, tables, source quote, visible FAQ */
.card-v2 .card-hero { align-items: start; }
.card-v2 .card-hero > div { min-width: 0; }
.card-byline { margin: -0.2em 0 1em; font-size: 0.85rem; color: var(--muted); }
.scheda { padding: 18px 20px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); }
.scheda h2 { font-size: 1.15rem; color: var(--gold-light); margin-bottom: 0.7em; }
.scheda dl { margin: 0; display: grid; gap: 8px; }
.scheda dl > div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; }
.scheda dt { font-weight: 600; font-size: 0.88rem; color: var(--gold-light); }
.scheda dd { margin: 0; font-size: 0.94rem; color: rgba(236, 232, 255, 0.88); }
.toc { max-width: 820px; margin: 28px auto 0; padding: 14px 20px; border: 1px solid var(--panel-border); border-radius: var(--radius); }
.toc-title { margin: 0 0 6px; font: 600 0.8rem "Cinzel", serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; font-size: 0.92rem; }
.toc li { break-inside: avoid; margin: 2px 0; }
.card-v2 .content-section h2 { scroll-margin-top: 16px; }
.card-v2 .prose { max-width: none; overflow-wrap: break-word; }
.card-v2 .prose ul { padding-left: 1.2em; }
.card-v2 .prose li { margin: 0.45em 0; }
.table-figure { margin: 1.2em 0; }
.table-figure figcaption { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.scroll-hint { display: none; white-space: nowrap; }
.cta-inline { margin: 32px auto; padding: 20px 18px; }
.cta-inline p { margin-top: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--panel-border); border-radius: 12px; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 0.9rem; }
.table-scroll th, .table-scroll td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--panel-border); }
.table-scroll th { font-weight: 600; color: var(--gold-light); background: var(--panel); }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll td:first-child { font-weight: 600; }
.source-quote { margin: 1.2em 0; }
.source-quote blockquote { margin: 0; padding: 14px 20px; border-left: 3px solid var(--gold); background: var(--panel); border-radius: 0 12px 12px 0; }
.source-quote blockquote p { margin: 0; font: italic 400 1.1rem/1.5 "Playfair Display", Georgia, serif; color: var(--text); }
.source-quote figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.faq-list h3 { margin: 1.4em 0 0.4em; color: var(--text); }
.post-grid { display: grid; gap: 16px; }
.post-card { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.post-card h2 { font-size: 1.2rem; margin: 0 0 4px; }
.post-card h2 a { color: var(--gold-light); text-decoration: none; }
.post-card time { font-size: 0.8rem; color: var(--muted); }
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0 24px; }
.cat-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--panel-border); text-decoration: none; font-size: 0.85rem; color: var(--text); }
.cat-nav a.active, .cat-nav a:hover { border-color: var(--gold); color: var(--gold-light); }
.post, .static { max-width: 800px; margin: 0 auto; }
.post-cover { float: right; width: 140px; margin: 0 0 16px 20px; border-radius: 10px; }
.static h2, .post h2 { color: var(--gold-light); margin-top: 1.6em; }
.contact-form { max-width: 560px; margin: 24px auto; }
.form-msg { text-align: center; }
.checkout-result, .download { max-width: 620px; margin: 30px auto; text-align: center; padding: 30px 20px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 22px; }
.code-box .code { font: 700 2rem "Cinzel", serif; letter-spacing: 4px; color: var(--violet); }
.vip-hero { text-align: center; color: var(--gold); }
.vip-balance { font: 600 1.05rem "Cinzel", serif; color: var(--gold-light); }
.buy-credits { text-align: center; margin: 40px 0; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--panel-border); background: rgba(8, 6, 30, 0.7); padding: 30px 16px 20px; margin-top: 40px; }
.site-footer > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.footer-share { text-align: center; }
.footer-share > p:first-child { font-family: "Cinzel", serif; color: var(--gold-light); }
.socials a { margin: 0 6px; }
.toys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px auto; }
.toy { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--panel-border); display: flex; flex-direction: column; gap: 8px; }
.toy h3 { font-size: 1rem; margin: 0; }
.toy label { font-size: 0.82rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.toy-out { font-size: 0.88rem; min-height: 1.4em; }
.toy-big { display: block; font: 700 2.2rem "Cinzel", serif; color: var(--gold-light); }
.clock { font: 600 2rem ui-monospace, "SFMono-Regular", monospace; font-variant-numeric: tabular-nums; color: var(--gold-light); letter-spacing: 0.05em; }
.bio-row { display: grid; grid-template-columns: 1fr; gap: 3px; margin: 4px 0; }
.bio-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bio-bar span { display: block; height: 100%; background: var(--gold-grad); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h3 { font: 600 0.85rem "Cinzel", serif; letter-spacing: 0.08em; color: var(--gold-light); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 4px 0; font-size: 0.9rem; }
.footer-cols a, .footer-cols .link-btn { color: var(--muted); text-decoration: none; padding: 0; }
.footer-cols a:hover { color: var(--gold); }
.copyright { text-align: center; font-size: 0.8rem; color: var(--muted); }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; justify-content: center; align-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .top-links, .spread-nav, .vip-tab { display: none; }
  .burger { display: inline-flex; }
  .vip-banner { display: flex; position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 35; align-items: center; gap: 6px; padding: 6px 8px 6px 16px; border-radius: 999px; background: var(--gold-grad); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
  .vip-banner a { color: #1a0f3a; font: 700 0.85rem "Cinzel", serif; text-decoration: none; display: flex; gap: 6px; align-items: center; }
  .vip-banner .icon-btn { color: #1a0f3a; }
  .vip-banner.closed { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .toys, .footer-cols { grid-template-columns: 1fr; }
  .card-hero { grid-template-columns: 1fr; text-align: center; }
  .card-hero img { max-width: 220px; margin: 0 auto; }
  .card-hero h1 { text-align: center; }
  .card-v2 .card-hero { text-align: left; }
  .card-v2 .card-hero h1, .card-byline { text-align: center; }
  .scheda { padding: 14px 16px; }
  .scheda dl > div { grid-template-columns: 1fr; gap: 0; }
  .toc ol { columns: 1; }
  .scroll-hint { display: inline; }
  .reading-row { grid-template-columns: 1fr; text-align: center; }
  .reading-row figure img { max-width: 150px; margin: 0 auto; }
  .choice-row { grid-template-columns: 1fr; }
  .fields fieldset { grid-template-columns: 1fr; }
  .num-slots { grid-template-columns: repeat(3, 1fr); }
  .oracle-body { grid-template-columns: 1fr; }
  .oracle-card { position: static; }
  .oracle-card .flip { --card-w: 130px; }
  :root { --card-w: 130px; }
  .result-cards { gap: 14px; }
  .result-cards:not(.layout-celtic) .flip { --card-w: 120px; }
  .layout-celtic { --card-w: 62px; grid-template-columns: repeat(3, var(--card-w)) 10px var(--card-w); gap: 8px; }
  .layout-celtic .card-name { display: none; }
  .post-card { grid-template-columns: 64px 1fr; }
  .cookie-banner { right: 16px; bottom: 16px; }
  .rd-intro, .love-choice { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .chips-track { animation: none; }
}
