/* Faji landing — "Amethyst Nebula", the app's theme (ui/theme/Color.kt): a night-violet ground, glass cards with a
   lilac-to-magenta rim, the violet → magenta accent gradient, gold for stars and axes. Cinzel + Plus Jakarta Sans.
   Logical properties throughout so Arabic and Urdu (dir="rtl") mirror cleanly. */

:root {
  --ground-0: #170a31;
  --ground: #0f0521;
  --ground-1: #07020f;
  --glass-0: rgba(98, 48, 150, .52);
  --glass-1: rgba(46, 20, 82, .6);
  --glass-flat: rgba(54, 26, 92, .58);
  --glass-deep: rgba(17, 7, 34, .97);
  --glass-line: rgba(206, 150, 255, .26);
  --field: rgba(40, 18, 70, .75);
  --accent-0: #7e2fc4;
  --accent: #b04adf;
  --accent-1: #e21ccb;
  --accent-hi: #e8bdff;
  --magenta: #ff07d6;
  --grad: linear-gradient(135deg, #7e2fc4 0%, #a83cd8 50%, #e21ccb 100%);
  --grad-text: linear-gradient(100deg, #e7a8ff, #ff7ae0);
  --rim: linear-gradient(140deg, rgba(222, 160, 255, .85), rgba(150, 70, 220, .32) 50%, rgba(255, 90, 220, .8));
  --gold-0: #ffe8a6;
  --gold: #faca64;
  --gold-1: #de983e;
  --ivory: #fbf5ff;
  --body: #e3d7f3;
  --muted: #b7a4d6;
  --lilac: #c99bff;
  --sign: #c47bea;
  --heart: #ff6fcf;
  --head: #7cc4ff;
  --life: #9be38a;
  --fate: #faca64;
  --sun: #ff9f5a;
  --shadow: 0 14px 34px rgba(4, 1, 12, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --glow: 0 10px 30px rgba(190, 50, 220, .42);
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
html[lang="vi"] { --font-display: 'Cormorant SC', 'Cinzel', serif; }
html[lang="hi"] { --font-display: 'Tiro Devanagari Hindi', 'Cinzel', serif; --font: 'Mukta', 'Plus Jakarta Sans', system-ui, sans-serif; }
html[lang="ar"] { --font-display: 'Amiri', serif; --font: 'Noto Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; }
html[lang="ur"] { --font-display: 'Amiri', serif; --font: 'Noto Naskh Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
/* the ground lives on <html> so the fixed night sky (.nebula, z-index -1) paints above it — a body background would cover it */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; background: linear-gradient(180deg, var(--ground-0) 0%, var(--ground) 45%, var(--ground-1) 100%) fixed var(--ground-1); }
body {
  margin: 0; font-family: var(--font); color: var(--body); font-size: 16px; line-height: 1.6;
  background: transparent;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100vh;
}
html[dir="rtl"] body { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.flip-x { transform: scaleX(-1); }
html[dir="rtl"] .ic.flip-x { transform: none; }
html[dir="rtl"] .icon-btn .ic:not(.flip-x), html[dir="rtl"] .btn .ic-dir { transform: scaleX(-1); }
.i18n-wait main, .i18n-wait .site-header { opacity: 0; }
main, .site-header { transition: opacity .25s; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ivory); color: var(--ground); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.container { width: min(1180px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- nebula backdrop (fixed, cheap) ---------- */
.nebula { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.nebula i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.nebula .n1 { width: 60vmax; height: 60vmax; inset-inline-end: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(160, 60, 225, .5), transparent 65%); }
.nebula .n2 { width: 50vmax; height: 50vmax; inset-inline-start: -20vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(226, 28, 203, .28), transparent 65%); }
.nebula .n3 { width: 40vmax; height: 40vmax; inset-inline-start: 30%; top: 40%; background: radial-gradient(circle, rgba(120, 50, 200, .22), transparent 70%); }
.nebula::after {
  content: ''; position: absolute; inset: -50%; background-repeat: repeat; opacity: .5; animation: twinkle 7s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, .9), transparent 60%),
    radial-gradient(1px 1px at 72% 62%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 82%, rgba(236, 203, 255, .9), transparent 60%),
    radial-gradient(1.2px 1.2px at 52% 38%, rgba(250, 202, 100, .8), transparent 60%);
  background-size: 520px 520px;
}
/* public/js/cosmos.js: the Milky Way, stars and constellations (painted once) + shooting stars */
.cosmos { position: absolute; left: 0; top: 0; width: 100%; height: 100lvh; }
.lite .nebula::after { animation: none; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .8; } }

/* ---------- buttons ---------- */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h);
  padding: 0 22px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; transition: transform .25s var(--spring), box-shadow .25s, background-color .2s, opacity .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(226, 28, 203, .45), inset 0 1px 0 rgba(255, 255, 255, .35); transform: translateY(-2px); }
.btn-primary:disabled { background: rgba(183, 164, 214, .12); color: #9c8bb8; box-shadow: inset 0 0 0 1px rgba(183, 164, 214, .18); cursor: not-allowed; transform: none; }
.btn-glass { color: var(--ivory); background: rgba(110, 48, 170, .32); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(140, 60, 210, .42); transform: translateY(-2px); }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--ivory); background: rgba(110, 48, 170, .42); box-shadow: inset 0 0 0 1px var(--glass-line); transition: transform .2s var(--spring), background-color .2s; }
.icon-btn:hover { background: rgba(140, 60, 210, .55); }
.icon-btn:active { transform: scale(.92); }
.chip-btn { border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(250, 202, 100, .1); box-shadow: inset 0 0 0 1px rgba(250, 202, 100, .35); }
.chip-btn[aria-pressed="true"], .chip-btn:disabled { opacity: .5; cursor: default; }

/* ---------- glass ---------- */
.glass {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--glass-0), var(--glass-1));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--rim); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.lite .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(160deg, rgba(76, 36, 120, .9), rgba(36, 15, 66, .94)); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.is-scrolled { background: rgba(15, 5, 33, .78); box-shadow: 0 1px 0 rgba(206, 150, 255, .14), 0 10px 30px rgba(0, 0, 0, .3); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.lite .site-header.is-scrolled { background: rgba(15, 5, 33, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 18px rgba(170, 60, 230, .45); }
.brand-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 22px; color: var(--ivory); line-height: 1; display: flex; flex-direction: column; letter-spacing: .04em; }
.brand-name small { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: .32em; color: var(--accent-hi); text-transform: uppercase; margin-top: 3px; }
.main-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.main-nav a { position: relative; padding: 9px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; white-space: nowrap; }
.main-nav a:hover { color: var(--ivory); background: rgba(170, 70, 230, .14); }
.main-nav a.is-active { color: var(--ivory); background: rgba(170, 70, 230, .22); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-menu { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(110, 48, 170, .3); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--ivory); font-weight: 700; font-size: 13px; }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; max-height: min(70vh, 460px); overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); z-index: 10; }
.lang-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--body); }
.lang-list li small { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.lang-list li:hover, .lang-list li:focus { background: rgba(170, 70, 230, .2); outline: none; color: var(--ivory); }
.lang-list li[aria-selected="true"] { color: var(--ivory); background: rgba(170, 70, 230, .3); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(110, 48, 170, .3); box-shadow: inset 0 0 0 1px var(--glass-line); position: relative; }
.menu-toggle span { position: absolute; inset-inline-start: 12px; width: 18px; height: 2px; border-radius: 2px; background: var(--ivory); transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.progress-track { position: absolute; inset: auto 0 0; height: 2px; }
.progress-fill { height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .progress-fill { transform-origin: 100% 50%; }
.site-header.is-compact .main-nav { display: none; }
.site-header.is-compact .menu-toggle { display: block; }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; overflow-x: clip; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 14px; padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); background: rgba(170, 70, 230, .14); box-shadow: inset 0 0 0 1px rgba(200, 120, 255, .28); }
.kicker .ic { color: var(--gold); }
.kicker.small { font-size: 11px; padding: 5px 12px; margin-bottom: 8px; }
html[lang="ar"] .kicker, html[lang="ur"] .kicker, html[lang="hi"] .kicker { letter-spacing: 0; text-transform: none; font-size: 14px; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.12; color: var(--ivory); letter-spacing: .01em; text-shadow: 0 0 34px rgba(190, 100, 255, .35); text-wrap: balance; }
.section-sub { margin: 18px auto 0; max-width: 640px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); text-wrap: pretty; }
.section-sub.small { font-size: 14.5px; margin: 6px 0 0; }
.card-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--ivory); }
.read-card { padding: 22px 24px; }
.read-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--ivory); }
.read-title .ic { color: var(--gold); }
.read-meta { margin: -4px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sign); }
.read-body { margin: 0; color: var(--body); font-size: 15.5px; line-height: 1.7; }
.form-note, .sample-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-note .ic, .sample-note .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-hi); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(15, 5, 33, .55); box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .16); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; padding: 9px 16px; background: none; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .2s, background-color .25s, box-shadow .25s; }
.tabs button:hover { color: var(--ivory); }
.tabs button[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(190, 50, 220, .4); }

/* ---------- fields ---------- */
.form-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; color: var(--ivory); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.field-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #d8b6f2; }
html[lang="ar"] .field-label, html[lang="ur"] .field-label, html[lang="hi"] .field-label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 0; background: var(--field); color: var(--ivory); font-size: 16px; box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .22); transition: box-shadow .2s, background-color .2s; color-scheme: dark; }
.input::placeholder { color: rgba(183, 164, 214, .65); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgba(176, 74, 223, .18); background: rgba(52, 22, 92, .85); }
.input:disabled { opacity: .45; }
.input[type="date"], .input[type="time"] { font-variant-numeric: tabular-nums; }
.input[type="date"]::-webkit-calendar-picker-indicator, .input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.5) hue-rotate(220deg); cursor: pointer; }
textarea.input { resize: none; line-height: 1.5; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--body); -webkit-user-select: none; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(183, 164, 214, .6); transition: background-color .2s, box-shadow .2s; }
.check-box .ic { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--spring); }
.check input:checked + .check-box { background: var(--grad); box-shadow: 0 0 12px rgba(190, 60, 230, .6); }
.check input:checked + .check-box .ic { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #ffd1ef; background: rgba(255, 90, 216, .14); box-shadow: inset 0 0 0 1px rgba(255, 90, 216, .35); }
.place-field { position: relative; }
.place-box { position: relative; }
.place-box .ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--accent-hi); width: 18px; height: 18px; pointer-events: none; }
.place-box .input { padding-inline-start: 42px; }
.place-list { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow: auto; border-radius: 16px; background: var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); overscroll-behavior: contain; }
.place-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; line-height: 1.35; }
.place-list li b { display: block; color: var(--ivory); font-weight: 700; font-size: 15px; }
.place-list li small { color: var(--muted); font-size: 12.5px; }
.place-list li[aria-selected="true"], .place-list li:hover { background: rgba(170, 70, 230, .24); }
.place-list li.place-msg { cursor: default; color: var(--muted); font-size: 13.5px; }
.place-list li.place-msg:hover { background: none; }

/* ============ HERO ============ */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; padding: calc(var(--header-h) + 28px) 0 70px; overflow-x: clip; }
.hero-grid { position: relative; }
.hero-copy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "chip visual" "title visual" "sub visual" "ctas visual" "feats visual"; column-gap: 40px; align-items: center; }
.live-chip { grid-area: chip; align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; color: var(--body); background: rgba(40, 16, 72, .66); box-shadow: inset 0 0 0 1px rgba(250, 202, 100, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.live-chip b { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
html[lang="ar"] .live-chip b, html[lang="ur"] .live-chip b, html[lang="hi"] .live-chip b { text-transform: none; letter-spacing: 0; font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(250, 202, 100, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(250, 202, 100, .6); } 70% { box-shadow: 0 0 0 10px rgba(250, 202, 100, 0); } 100% { box-shadow: 0 0 0 0 rgba(250, 202, 100, 0); } }
.hero-title { grid-area: title; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.05; color: var(--ivory); letter-spacing: .005em; text-shadow: 0 0 40px rgba(190, 100, 255, .45); text-wrap: balance; }
.hero-title em { display: inline; }
.hero-sub { grid-area: sub; margin: 22px 0 0; max-width: 560px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--body); }
.hero-ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-features { grid-area: feats; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-features li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--body); background: rgba(46, 20, 82, .55); box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .18); }
.hero-features .ic { width: 16px; height: 16px; color: var(--accent-hi); }
.hero-visual { grid-area: visual; position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage3d { position: relative; width: 100%; aspect-ratio: 1; max-width: 640px; margin-inline: auto; touch-action: pan-y; }
.stage3d::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(170, 60, 230, .35), transparent 68%); filter: blur(10px); }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: spin 120s linear infinite; opacity: .9; }
.stage-core { position: absolute; inset: 30%; width: 40%; height: 40%; border-radius: 22%; box-shadow: 0 20px 60px rgba(170, 60, 230, .55); animation: float 6s ease-in-out infinite; }
.stage3d.is-3d .stage-fallback, .stage3d.is-3d .stage-core { opacity: 0; transition: opacity .8s; animation: none; }
.stage3d { cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* the fallback art stays under the canvas: it must never catch the pointer, or the browser starts an image drag and
   cancels the spin (pointercancel) */
.stage3d img { pointer-events: none; -webkit-user-drag: none; }
.stage3d:active, .stage3d.is-grabbing { cursor: grabbing; }
/* the canvas bleeds past the square so orbiting cards never meet a hard edge; the stage itself takes the pointer */
.stage3d canvas { position: absolute; inset: -12%; width: 124% !important; height: 124% !important; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.stage-tip { position: absolute; top: 12%; inset-inline: 0; margin: 0 auto; width: max-content; max-width: 90%; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ivory); background: rgba(17, 7, 34, .82); box-shadow: inset 0 0 0 1px rgba(250, 202, 100, .4), var(--shadow); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.stage-tip.is-shown { opacity: 1; transform: none; }
.stage-hint { display: flex; align-items: center; gap: 8px; max-width: 420px; margin: 4px auto 0; font-size: 12.5px; color: var(--muted); text-align: center; justify-content: center; }
.stage-hint .ic { width: 16px; height: 16px; color: var(--gold); }
.scroll-cue { position: absolute; bottom: 22px; inset-inline-start: 50%; width: 26px; height: 42px; margin-inline-start: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(206, 150, 255, .5); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent-hi); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.is-paused .stage-fallback, .is-paused .stage-core, .is-paused .live-dot { animation-play-state: paused; }

/* ============ BIRTH CHART ============ */
.chart-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.chart-grid .form-card { position: sticky; top: calc(var(--header-h) + 20px); }
.result-for { margin: 0 0 16px; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.result-for b { color: var(--ivory); }
.result-for.is-warn { color: #ffd1ef; }
.big-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
.sign-card { aspect-ratio: .78; }
.sign-card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--spring); }
.sign-card.is-flipping .sign-card-in { transform: rotateY(180deg); transition: none; }
.sign-face { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sign-back { transform: rotateY(180deg); background: url(/img/tarot/back.webp) center / cover; box-shadow: var(--shadow), inset 0 0 0 1px rgba(250, 202, 100, .35); }
.sign-front { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 10px; background: radial-gradient(circle at 50% 30%, rgba(200, 80, 255, .32), transparent 60%), linear-gradient(165deg, rgba(98, 48, 150, .6), rgba(26, 10, 50, .9)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(222, 160, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .16); overflow: hidden; }
.sign-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%); transform: translateX(-120%); transition: transform 1.1s var(--ease); pointer-events: none; }
.sign-card.is-shown .sign-front::after { transform: translateX(120%); }
.sign-front img { width: 62%; max-width: 132px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(200, 80, 255, .55)); }
.sign-role { margin: 10px 0 0; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .sign-role, html[lang="ur"] .sign-role, html[lang="hi"] .sign-role { letter-spacing: 0; font-size: 13px; }
.sign-name { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2vw, 24px); line-height: 1.15; color: var(--ivory); overflow-wrap: anywhere; }
.sign-deg { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sign-card.is-guess .sign-front { opacity: .55; }
.chart-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: center; }
.chart-read { display: contents; }
.planet-read, #chartMore { grid-column: 1 / -1; }
.wheel-wrap { margin: 0; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wheel { width: 100%; max-width: 440px; aspect-ratio: 1; overflow: visible; filter: drop-shadow(0 0 18px rgba(170, 60, 230, .45)); }
.wheel-wrap figcaption { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; color: var(--muted); text-align: center; }
.wheel-tip { position: absolute; top: 14px; inset-inline-start: 50%; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ivory); background: rgba(17, 7, 34, .9); box-shadow: inset 0 0 0 1px rgba(250, 202, 100, .4); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
html[dir="rtl"] .wheel-tip { transform: translateX(50%); }
.wheel-tip.is-shown { opacity: 1; }
/* wheel parts (public/js/wheel.js) */
.w-ring { fill: none; stroke: rgba(214, 160, 255, .45); stroke-width: .8; }
.w-bg { fill: #160830; }
.w-inner { fill: rgba(30, 11, 60, .6); }
.w-cell { fill: rgba(168, 60, 216, .16); }
.w-spoke { stroke: rgba(214, 160, 255, .35); stroke-width: .6; }
.w-sign { fill: #e3c2ff; font-family: 'Cinzel', serif; font-weight: 700; font-size: 8.4px; letter-spacing: .04em; text-anchor: middle; dominant-baseline: central; }
.w-house-line { stroke: rgba(214, 160, 255, .3); stroke-width: .6; }
.w-house { fill: rgba(214, 180, 255, .7); font-size: 7.5px; font-weight: 500; text-anchor: middle; dominant-baseline: central; font-family: 'Plus Jakarta Sans', sans-serif; }
.w-axis { stroke: rgba(250, 202, 100, .75); stroke-width: 1.1; }
.w-axis-label { fill: var(--gold); font-size: 7.5px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; text-anchor: middle; dominant-baseline: central; }
.w-aspect { stroke-width: .8; opacity: .8; fill: none; }
.w-aspect.t0 { stroke: #faca64; } .w-aspect.t1 { stroke: #9be38a; } .w-aspect.t2 { stroke: #ff5ad8; } .w-aspect.t3 { stroke: #6fb8ff; } .w-aspect.t4 { stroke: #ff7a9a; }
.w-planet { cursor: pointer; }
.w-planet circle.halo { fill: rgba(255, 255, 255, .18); }
.w-planet circle.dot { fill: #fff; }
.w-planet.outer circle.dot { fill: var(--gold); }
.w-planet.outer circle.halo { fill: rgba(250, 202, 100, .22); }
.w-planet use { color: #fff; }
.w-planet.outer use { color: var(--gold); }
.w-planet:hover circle.halo, .w-planet.is-hot circle.halo { fill: rgba(232, 189, 255, .45); }
.w-center { fill: var(--gold); }
.wheel .w-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
.wheel .w-pop { opacity: 0; animation: pop .5s var(--spring) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.w-planet { transform-box: fill-box; transform-origin: center; }
.element-bars { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.element-bars li { display: grid; grid-template-columns: 40px minmax(64px, auto) 1fr 44px; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--body); }
.element-bars img { width: 40px; height: 40px; border-radius: 50%; }
.element-bars .bar { height: 8px; border-radius: 99px; background: rgba(220, 190, 255, .12); overflow: hidden; }
.element-bars .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.2s var(--ease); }
.element-bars b { text-align: end; font-variant-numeric: tabular-nums; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.element-bars li.is-top .el-name { color: var(--ivory); }
.planet-read .tabs { margin-bottom: 14px; }
.planet-read .tabs button { padding: 7px 12px; font-size: 13px; }
.planet-read .tabs .ic { width: 16px; height: 16px; }

/* ============ LOVE ============ */
.love-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
.person { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.person legend { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ivory); }
.person-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .7); flex: none; }
.person-dot.gold { background: var(--gold); box-shadow: 0 0 10px rgba(250, 202, 100, .8); }
.love-link { display: flex; align-items: center; gap: 12px; color: var(--magenta); }
.love-link::before, .love-link::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 90, 220, .5), transparent); }
.love-link .ic { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(255, 7, 214, .7)); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.love-result { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.love-tabs { align-self: center; max-width: 100%; }
.love-view { display: none; }
.love-view.is-active { display: grid; gap: 18px; animation: fadeUp .5s var(--ease); }
.love-view[data-view="score"].is-active { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.score-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.score-ring { position: relative; width: min(100%, 340px); aspect-ratio: 1; }
.score-wheel { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 90s linear infinite; opacity: .95; }
.score-arc { position: absolute; inset: 12%; width: 76%; height: 76%; transform: rotate(-90deg); overflow: visible; }
.arc-track { fill: none; stroke: rgba(220, 190, 255, .1); stroke-width: 8; }
.arc-fill { fill: none; stroke: url(#arcGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 490; stroke-dashoffset: 490; transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 6px rgba(255, 7, 214, .6)); }
.score-core { position: absolute; inset: 27%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, #3a1670 0%, #1a0a33 70%); box-shadow: 0 0 40px rgba(190, 60, 230, .5), inset 0 0 0 1px rgba(222, 160, 255, .3); }
.score-label { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); max-width: 80%; line-height: 1.3; }
html[lang="ar"] .score-label, html[lang="ur"] .score-label, html[lang="hi"] .score-label { letter-spacing: 0; font-size: 12px; }
.score-num { margin: 2px 0; font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(40px, 6vw, 58px); line-height: 1; }
.score-num b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.score-level { margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--onp, #2b1600); background: linear-gradient(90deg, var(--gold-0), var(--gold), var(--gold-1)); }
.pair-names { margin: 0; font-family: var(--font-display); font-size: 18px; color: var(--ivory); text-align: center; }
.factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.factors li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(15, 5, 33, .4); box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .12); cursor: pointer; transition: background-color .2s, transform .2s; font-size: 14px; line-height: 1.4; animation: fadeUp .45s var(--ease) both; }
.factors li:hover, .factors li.is-on { background: rgba(170, 70, 230, .2); }
.factors li b { justify-self: center; font-family: 'Cinzel', serif; font-weight: 800; font-size: 17px; color: var(--gold); }
.factors li.is-empty { grid-template-columns: 1fr; cursor: default; color: var(--muted); }
.factor-read { margin-top: 14px; font-size: 14.5px; min-height: 1em; }

/* ============ SKY ============ */
.day-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: -12px auto 36px; flex-wrap: wrap; }
.day-label { margin: 0; min-width: 230px; text-align: center; display: flex; flex-direction: column; line-height: 1.3; }
.day-label b { font-family: var(--font-display); font-size: 19px; color: var(--ivory); }
.day-label span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sky-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.moon-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.moon-stage { position: relative; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.moon-stage::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(200, 150, 255, .3), transparent 62%); }
.moon-canvas { position: absolute; inset: 19%; width: 62%; height: 62%; border-radius: 50%; filter: drop-shadow(0 0 30px rgba(220, 190, 255, .45)); }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(206, 150, 255, .28); }
.orbit.o1 { inset: 4%; animation: spin 60s linear infinite; border-top-color: rgba(250, 202, 100, .7); }
.orbit.o2 { inset: 13%; border-style: dashed; opacity: .6; animation: spin 90s linear infinite reverse; }
.spark { position: absolute; width: 12px; height: 12px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.6s ease-in-out infinite alternate; }
.spark.s1 { top: 14%; inset-inline-start: 8%; }
.spark.s2 { top: 26%; inset-inline-end: 6%; width: 9px; height: 9px; background: #fff; animation-delay: .8s; }
.spark.s3 { bottom: 12%; inset-inline-end: 12%; width: 8px; height: 8px; animation-delay: 1.6s; }
.moon-name { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); color: var(--ivory); text-shadow: 0 0 24px rgba(190, 100, 255, .5); }
.moon-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 0; }
.moon-facts div { padding: 10px 16px; border-radius: 16px; background: rgba(46, 20, 82, .55); box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .18); min-width: 120px; }
.moon-facts dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.moon-facts dd { margin: 2px 0 0; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phase-line { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin: 22px 0; padding: 0; }
.phase-line li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; background: rgba(15, 5, 33, .45); box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .14); font-size: 12px; line-height: 1.3; color: var(--muted); }
.phase-line li img { width: 44px; height: 44px; }
.phase-line li b { color: var(--ivory); font-size: 12.5px; }
.phase-line li.is-past { opacity: .55; }
.phase-line li.is-next { box-shadow: inset 0 0 0 1.5px rgba(250, 202, 100, .6); }
.phase-line li.is-next::after { content: attr(data-next); position: absolute; top: -9px; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #2b1600; background: var(--gold); }
.moon-read { text-align: start; width: 100%; }
.planets-col { display: flex; flex-direction: column; gap: 16px; }
.planets-card { padding: 22px; }
.planet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.planet-list li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; transition: background-color .2s; }
.planet-list li:hover { background: rgba(170, 70, 230, .14); }
.planet-list .p-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(170, 70, 230, .2); color: #e3b6ff; }
.planet-list .p-ic .ic { width: 20px; height: 20px; }
.planet-list .p-name { font-weight: 700; color: var(--ivory); }
.planet-list .p-sign { display: inline-flex; align-items: center; gap: 8px; color: var(--sign); font-weight: 700; }
.planet-list .p-sign img { width: 26px; height: 26px; object-fit: contain; }
.planet-list .p-deg { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 64px; text-align: end; }
.planet-list .p-r { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-inline-start: 6px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #2b1600; background: var(--gold); vertical-align: middle; }

/* ============ TAROT ============ */
.message-card { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; max-width: 820px; margin: 0 auto 44px; padding: 20px 26px; }
.message-art { width: 96px; border-radius: 10px; box-shadow: 0 10px 30px rgba(170, 60, 230, .5); transform: rotate(-6deg); }
.message-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .message-kicker, html[lang="ur"] .message-kicker, html[lang="hi"] .message-kicker { letter-spacing: 0; font-size: 13px; }
.message-text { margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 500; font-style: italic; line-height: 1.5; color: var(--ivory); }
.tarot-table { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ask { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.step-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ivory); }
.step-label > b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: 'Cinzel', serif; font-size: 14px; color: #2b1600; background: linear-gradient(135deg, var(--gold-0), var(--gold-1)); }
.pick-count { margin-inline-start: auto; font-family: var(--font); font-size: 13px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.suggested { display: flex; flex-direction: column; gap: 8px; }
.suggested button { text-align: start; border: 0; border-radius: 14px; padding: 12px 14px; background: rgba(15, 5, 33, .45); box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .16); color: var(--body); font-size: 14.5px; line-height: 1.45; transition: background-color .2s, box-shadow .2s; }
.suggested button:hover { background: rgba(170, 70, 230, .16); }
.suggested button[aria-pressed="true"] { background: rgba(170, 70, 230, .26); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ivory); }
.question { min-height: 84px; font-size: 15px; }
.draw { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.fan-wrap { position: relative; height: 250px; perspective: 1400px; }
.fan { position: absolute; left: 50%; bottom: 74px; width: 0; height: 0; transform-style: preserve-3d; }
.tcard { position: absolute; left: -45px; bottom: 0; width: 90px; height: 156px; border: 0; padding: 0; border-radius: 9px; background: url(/img/tarot/back.webp) center / cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(250, 202, 100, .3); transform-origin: 50% 560px; transition: transform .45s var(--spring), box-shadow .3s, opacity .3s; }
.tcard:hover, .tcard:focus-visible { box-shadow: 0 10px 28px rgba(226, 28, 203, .55), inset 0 0 0 1.5px var(--gold); }
.tcard.is-taken { opacity: 0; pointer-events: none; }
.fan.is-shuffling .tcard { transition-duration: .5s; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2.4vw, 24px); max-width: 430px; width: 100%; margin: 0 auto; perspective: 1000px; }
.slot { position: relative; aspect-ratio: 140 / 243; border-radius: 12px; display: grid; place-items: center; background: rgba(15, 5, 33, .4); box-shadow: inset 0 0 0 1.5px rgba(206, 150, 255, .25); }
.slot::before { content: ''; position: absolute; inset: 6px; border-radius: 8px; border: 1px dashed rgba(206, 150, 255, .28); }
.slot-num { font-family: 'Cinzel', serif; font-weight: 700; font-size: 22px; color: rgba(206, 150, 255, .45); }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--spring); }
.flip.is-open { transform: rotateY(180deg); }
.flip > span { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-size: cover; background-position: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(250, 202, 100, .35); }
.flip .f-back { background-image: url(/img/tarot/back.webp); }
.flip .f-face { transform: rotateY(180deg); overflow: hidden; }
.flip .f-face img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.flip.is-reversed .f-face img { transform: rotate(180deg); }
.slot .card-name { position: absolute; top: calc(100% + 8px); inset-inline: -10px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ivory); line-height: 1.3; opacity: 0; transition: opacity .4s .6s; }
.slot .card-name small { display: block; color: var(--sign); font-weight: 700; font-size: 11px; }
.slot.is-filled .card-name { opacity: 1; }
.slot.is-filled { margin-bottom: 40px; }
.flyer { position: fixed; z-index: 50; border-radius: 9px; background: url(/img/tarot/back.webp) center / cover; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); pointer-events: none; transition: transform .7s var(--ease), width .7s var(--ease), height .7s var(--ease); }
.draw-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.reading { margin-top: 48px; animation: fadeUp .6s var(--ease); }
.reading-q { margin: 0 auto 22px; max-width: 760px; text-align: center; font-size: clamp(18px, 2vw, 22px); font-weight: 600; font-style: italic; color: var(--ivory); }
.reading-q small { font-style: normal; }
.reading-q small { display: block; font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 20px; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; animation: fadeUp .6s var(--ease) both; }
.pillar img { width: 72px; border-radius: 8px; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.pillar.is-reversed img { transform: rotate(180deg); }
.pillar h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 16px; line-height: 1.3; color: var(--ivory); }
.pillar p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.advice-card { margin-top: 18px; padding: 24px 28px; }
.advice-card .read-body { font-size: 16.5px; }
.tarot-note { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ============ BOOK · DEEP TALK · LIBRARY ============ */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.book-col { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.book-scene { width: min(100%, 380px); aspect-ratio: 1.1; display: grid; place-items: center; perspective: 1800px; }
.book { position: relative; width: 60%; aspect-ratio: 322 / 387; border: 0; padding: 0; background: none; transform-style: preserve-3d; transform: rotateX(16deg) rotateY(-18deg); transition: transform 1s var(--ease); }
.book:hover { transform: rotateX(10deg) rotateY(-10deg) translateY(-6px); }
.book.is-open { transform: rotateX(8deg) rotateY(0deg) translateX(30%); }
.book::after { content: ''; position: absolute; inset: auto 6% -14% 6%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse, rgba(170, 60, 230, .55), transparent 70%); filter: blur(10px); transform: translateZ(-40px) rotateX(80deg); }
.book-page, .book-cover, .cover-front, .cover-inside { position: absolute; inset: 0; border-radius: 6px 14px 14px 6px; }
.book-page { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18% 12%; background: linear-gradient(90deg, #e9e1d2, #fbf7ef 12%, #f6f0e4); box-shadow: inset 6px 0 14px rgba(0, 0, 0, .25), 0 20px 40px rgba(0, 0, 0, .5); color: #3a1670; transform: translateZ(-2px); }
.answer-kicker { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #a83cd8; }
html[lang="ar"] .answer-kicker, html[lang="ur"] .answer-kicker, html[lang="hi"] .answer-kicker { letter-spacing: 0; font-size: 12px; }
.answer-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 2vw, 21px); line-height: 1.3; opacity: 0; transform: scale(.9); transition: opacity .8s .5s, transform .8s .5s var(--ease); }
.book.is-open .answer-text { opacity: 1; transform: none; }
.book-cover { transform-style: preserve-3d; transform-origin: 0 50%; transition: transform 1.2s var(--ease); }
.book.is-open .book-cover { transform: rotateY(-170deg); }
html[dir="rtl"] .book-cover { transform-origin: 0 50%; }
.cover-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: url(/img/art/book-closed.webp) center / 100% 100%, #2a1150; box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(170, 60, 230, .35); color: var(--gold); font-family: 'Cinzel', serif; text-align: center; padding: 10%; }
.cover-the { font-size: 12px; letter-spacing: .3em; }
.cover-book { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: .12em; color: var(--gold-0); text-shadow: 0 0 16px rgba(250, 202, 100, .5); }
.cover-of { font-size: 11px; letter-spacing: .2em; }
html[lang="vi"] .cover-front, html[lang="hi"] .cover-front, html[lang="ar"] .cover-front, html[lang="ur"] .cover-front { font-family: var(--font-display); letter-spacing: 0; }
html[lang="vi"] .cover-front span, html[lang="hi"] .cover-front span, html[lang="ar"] .cover-front span, html[lang="ur"] .cover-front span { letter-spacing: 0; }
.cover-star { width: 26px; height: 26px; margin-top: 10px; color: var(--gold); animation: twinkle 2s ease-in-out infinite alternate; }
.cover-inside { transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(90deg, #2a1150, #3a1670); box-shadow: inset 0 0 0 6px rgba(250, 202, 100, .25); }
.book-hint { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent-hi); }
.book-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; max-width: 420px; text-align: start; }
.book-steps li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.book-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(250, 202, 100, .45); }
.talk-col { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.talk-head { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.talk-head img { width: 120px; border-radius: 16px; box-shadow: var(--shadow); }
.talk-deck { position: relative; min-height: 210px; perspective: 1000px; }
.talk-card { position: relative; z-index: 2; min-height: 210px; padding: 30px 28px; border-radius: 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: radial-gradient(circle at 80% 0%, rgba(255, 7, 214, .25), transparent 55%), linear-gradient(160deg, #4a1f86, #22103f); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 140, 230, .35); transition: transform .5s var(--ease), opacity .4s; }
.talk-card.is-out { transform: translateX(40%) rotate(8deg); opacity: 0; }
html[dir="rtl"] .talk-card.is-out { transform: translateX(-40%) rotate(-8deg); }
.talk-card.is-in { animation: cardIn .55s var(--spring); }
@keyframes cardIn { from { transform: translateY(20px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.talk-card p { margin: 0; font-size: clamp(19px, 2.1vw, 23px); font-weight: 600; line-height: 1.45; color: var(--ivory); }
.talk-no { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ff9ce8; }
.talk-under { position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(160deg, #3a1670, #1a0a33); box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .2); }
.talk-under.u1 { transform: translateY(10px) scale(.96); z-index: 1; opacity: .8; }
.talk-under.u2 { transform: translateY(20px) scale(.92); z-index: 0; opacity: .5; }
.talk-col .btn { align-self: flex-start; margin-top: 14px; }
.library { margin-top: clamp(60px, 8vw, 90px); }
.library-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.library-head > div:first-child { max-width: 560px; }
.search-box { position: relative; width: min(100%, 300px); }
.search-box .ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box .input { padding-inline-start: 42px; border-radius: 999px; }
.ring-stage { position: relative; height: 330px; perspective: 1300px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); touch-action: pan-y; cursor: grab; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.ring .rc { position: absolute; left: -55px; top: -96px; width: 110px; height: 191px; border: 0; padding: 0; border-radius: 9px; background-size: cover; background-position: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(250, 202, 100, .3); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: box-shadow .2s, filter .2s; }
.ring .rc:hover, .ring .rc.is-on { box-shadow: 0 12px 34px rgba(226, 28, 203, .6), inset 0 0 0 2px var(--gold); }
.ring .rc span { position: absolute; inset: auto 0 -28px; font-size: 11.5px; font-weight: 700; color: var(--body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-detail { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 22px; margin-top: 10px; animation: fadeUp .5s var(--ease); }
.card-detail img { width: 120px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.detail-name { margin: 0 0 10px; font-family: var(--font-display); font-size: 24px; color: var(--ivory); }
.detail-tag { margin: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-tag.up { color: var(--life); }
.detail-tag.rev { color: var(--heart); }
.library-none { text-align: center; color: var(--muted); }

/* ============ PALM & FACE ============ */
.scan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scan-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; padding: 22px; align-items: start; }
.scan-photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 335 / 450; background: #1a0c30; box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .2); }
.face-photo { aspect-ratio: 400 / 420; }
.palm-lines, .face-mesh { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl { fill: none; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 4px currentColor); stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.4s var(--ease), opacity .3s, stroke-width .3s; opacity: .9; }
.pl.heart { stroke: var(--heart); color: var(--heart); } .pl.head { stroke: var(--head); color: var(--head); } .pl.life { stroke: var(--life); color: var(--life); } .pl.fate { stroke: var(--fate); color: var(--fate); } .pl.sun { stroke: var(--sun); color: var(--sun); }
.palm-card.is-traced .pl { stroke-dashoffset: 0; }
.palm-card.is-traced .pl.dim { opacity: .3; }
.palm-card.is-traced .pl.hot { stroke-width: 6; }
.scan-beam { position: absolute; inset-inline: 0; top: 0; height: 26%; background: linear-gradient(180deg, transparent, rgba(200, 120, 255, .35) 80%, rgba(255, 255, 255, .9) 99%, transparent); mix-blend-mode: screen; opacity: 0; pointer-events: none; }
.is-scanning .scan-beam { opacity: 1; animation: beam 1.6s ease-in-out infinite; }
@keyframes beam { 0% { transform: translateY(-100%); } 100% { transform: translateY(400%); } }
.scan-status { position: absolute; inset: auto 10px 10px; margin: 0; padding: 7px 12px; border-radius: 999px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ivory); background: rgba(15, 5, 33, .78); box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .3); }
.is-done .scan-status { color: #2b1600; background: var(--gold); box-shadow: none; }
.face-mesh .fm-dot { fill: #fff; opacity: 0; transition: opacity .3s; }
.face-mesh .fm-line { stroke: rgba(232, 189, 255, .55); stroke-width: 1; opacity: 0; transition: opacity .4s; }
.face-card.is-traced .face-mesh .fm-dot, .face-card.is-traced .face-mesh .fm-line { opacity: 1; }
.face-mesh .fm-box { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 22 10; opacity: .85; }
.scan-read { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.scan-read .btn { align-self: flex-start; margin-top: 4px; }
.line-tabs { border-radius: 16px; flex-wrap: wrap; }
.line-tabs button { flex: 1 1 auto; padding: 7px 10px; font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.heart { background: var(--heart); } .dot.head { background: var(--head); } .dot.life { background: var(--life); } .dot.fate { background: var(--fate); }
#lineText { font-size: 14.5px; min-height: 9em; }
.face-sections { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.face-sections li { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(15, 5, 33, .45); box-shadow: inset 0 0 0 1px rgba(206, 150, 255, .14); transition: color .3s, background-color .3s, box-shadow .3s; }
.face-sections li.is-on { color: var(--ivory); background: rgba(170, 70, 230, .26); box-shadow: inset 0 0 0 1px rgba(222, 160, 255, .45); }
.shape-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13px; }
.shape-label { font-weight: 700; color: var(--muted); }
.shapes { display: flex; flex-wrap: wrap; gap: 6px; }
.shapes b { padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--muted); background: rgba(15, 5, 33, .4); transition: color .3s, background-color .3s; }
.shapes b.is-on { color: #2b1600; background: var(--gold); }
.scan-privacy { display: flex; justify-content: center; gap: 8px; margin: 22px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.scan-privacy .ic { width: 16px; height: 16px; color: var(--accent-hi); }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; perspective: 1400px; }
.feature { position: relative; display: flex; flex-direction: column; text-align: start; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: linear-gradient(170deg, rgba(76, 36, 120, .75), rgba(26, 12, 48, .9)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(206, 150, 255, .2); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .3s; --rx: 0deg; --ry: 0deg; }
.feature.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.feature:hover { box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(190, 50, 220, .3), inset 0 0 0 1px rgba(232, 189, 255, .5); }
.feature-art { display: block; aspect-ratio: 780 / 564; overflow: hidden; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature-art img { transform: scale(1.06); }
.feature-text { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.feature-text b { font-family: var(--font-display); font-size: 17px; color: var(--ivory); line-height: 1.25; }
.feature-text span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.feature-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 45%); opacity: 0; transition: opacity .3s; }
.feature:hover .feature-sheen { opacity: 1; }

/* ============ DOWNLOAD ============ */
.download-card { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 15% 50%, rgba(226, 28, 203, .28), transparent 50%), linear-gradient(140deg, #3a1670, #1a0a33 70%); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(222, 160, 255, .3); }
.dl-art { position: relative; aspect-ratio: 1; width: min(100%, 380px); margin-inline: auto; }
.dl-wheel { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 80s linear infinite; }
.dl-icon { position: absolute; inset: 24%; width: 52%; height: 52%; border-radius: 22%; box-shadow: 0 24px 60px rgba(170, 60, 230, .65); animation: float 6s ease-in-out infinite; }
.dl-copy .section-title { text-align: start; }
.dl-copy .section-sub { margin-inline: 0; }
.dl-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.play-badge img { width: 200px; height: auto; }
.qr-mini { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); max-width: 200px; }
.qr-mini .qr-tile { padding: 8px; border-radius: 12px; background: #fff; flex: none; }
.qr-mini img { width: 80px; height: 80px; }
.dl-meta { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.is-paused .dl-wheel, .is-paused .dl-icon { animation-play-state: paused; }

/* ============ FOOTER ============ */
.site-footer { position: relative; padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(206, 150, 255, .14); background: rgba(7, 2, 15, .6); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-brand { max-width: 440px; }
.footer-brand p { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.footer-links a { font-size: 14.5px; font-weight: 600; color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--ivory); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(206, 150, 255, .1); }
.footer-bottom p { margin: 0; font-size: 12.5px; color: rgba(183, 164, 214, .75); max-width: 760px; }

/* ============ DOCK · MODAL · TOAST ============ */
.get-dock { display: none; }
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 2, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-dialog { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; padding: 28px; border-radius: 26px; background: radial-gradient(circle at 50% 0%, rgba(170, 60, 230, .22), transparent 55%), var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); animation: pop .35s var(--spring); outline: none; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(110, 48, 170, .4); color: var(--ivory); }
.modal-app { display: flex; gap: 14px; align-items: center; padding-inline-end: 44px; }
.modal-app img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 22px rgba(170, 60, 230, .5); }
.modal-app-name { margin: 0; font-weight: 800; color: var(--ivory); }
.modal-app-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.modal-title { margin: 22px 0 6px; font-family: var(--font-display); font-size: 24px; line-height: 1.25; color: var(--ivory); }
.modal-sub { margin: 0; color: var(--body); font-size: 15px; }
.modal-visual { display: flex; justify-content: center; gap: 10px; margin: 18px 0 0; }
.modal-visual:empty { display: none; }
.modal-visual img { height: 120px; width: auto; border-radius: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.modal-get { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(206, 150, 255, .14); }
.qr-block { text-align: center; }
.qr-block p { margin: 8px 0 0; font-size: 12px; color: var(--muted); max-width: 150px; }
.qr-tile { position: relative; padding: 10px; border-radius: 16px; background: #fff; }
.qr-tile img { width: 140px; height: 140px; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 34px !important; height: 34px !important; margin: -17px 0 0 -17px; border-radius: 9px; box-shadow: 0 0 0 4px #fff; }
.modal-actions .play-badge img { width: 180px; }
.modal-steps { margin: 14px 0 0; padding-inline-start: 20px; font-size: 14px; color: var(--body); display: grid; gap: 4px; }
.modal-steps .step-tap { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 500; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ivory); background: var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
html.modal-open { overflow: hidden; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.is-open { display: flex; position: absolute; top: calc(var(--header-h) + env(safe-area-inset-top)); inset-inline: 12px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); }
  .main-nav.is-open a { padding: 13px 16px; font-size: 16px; }
  .chart-grid, .love-grid { grid-template-columns: minmax(0, 1fr); }
  .chart-grid .form-card { position: relative; top: 0; max-width: 620px; width: 100%; margin-inline: auto; }
  .love-form { max-width: 620px; width: 100%; margin-inline: auto; }
  .tarot-table { grid-template-columns: minmax(0, 1fr); }
  .ask { max-width: 620px; width: 100%; margin-inline: auto; }
  .scan-grid { grid-template-columns: minmax(0, 1fr); }
  .scan-card { max-width: 760px; width: 100%; margin-inline: auto; }
}
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 22px); }
  .hero-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chip" "title" "visual" "sub" "ctas" "feats"; text-align: center; justify-items: center; }
  .live-chip { justify-self: center; }
  .hero-visual { width: 100%; margin: 6px 0 0; }
  .stage3d { max-width: 520px; }
  .stage3d canvas { inset: 0; width: 100% !important; height: 100% !important; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-features { justify-content: center; }
  .scroll-cue { display: none; }
  .chart-body { grid-template-columns: minmax(0, 1fr); }
  .wheel-wrap { max-width: 520px; width: 100%; margin-inline: auto; }
  .elements-card, .planet-read, #chartMore { max-width: 620px; width: 100%; margin-inline: auto; }
  .sky-grid { grid-template-columns: minmax(0, 1fr); }
  .planets-col { max-width: 620px; width: 100%; margin-inline: auto; }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .talk-col { max-width: 620px; width: 100%; margin-inline: auto; }
  .pillars { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-inline: auto; }
  .download-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .dl-copy .section-title { text-align: center; }
  .dl-copy .section-sub { margin-inline: auto; }
  .dl-actions { justify-content: center; }
}
@media (max-width: 760px) {
  .love-view[data-view="score"].is-active { grid-template-columns: minmax(0, 1fr); }
  .score-ring { width: min(100%, 300px); }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; --radius: 20px; }
  .container { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .header-cta { display: none; }
  .brand-name { font-size: 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 30px; }
  .stage3d { aspect-ratio: 1; max-width: 420px; }
  .big-three { gap: 10px; }
  .sign-front { padding: 10px 6px; border-radius: 16px; }
  .sign-face { border-radius: 16px; }
  .sign-role { font-size: 9.5px; letter-spacing: .08em; }
  .sign-name { font-size: 16px; }
  .sign-deg { font-size: 11px; }
  .form-card { padding: 20px; }
  .read-card { padding: 18px; }
  .message-card { grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 18px; }
  .message-art { width: 64px; }
  .fan-wrap { height: 200px; }
  .fan { bottom: 52px; }
  .tcard { width: 74px; height: 128px; left: -37px; transform-origin: 50% 420px; }
  .pillar { grid-template-columns: 60px 1fr; padding: 16px; }
  .pillar img { width: 60px; }
  .scan-card { grid-template-columns: minmax(0, 1fr); }
  .scan-photo { max-width: 340px; width: 100%; margin-inline: auto; }
  .ring-stage { height: 290px; }
  .ring .rc { width: 96px; height: 167px; left: -48px; top: -84px; }
  .card-detail { grid-template-columns: 88px 1fr; gap: 16px; padding: 18px; }
  .card-detail img { width: 88px; }
  .detail-name { font-size: 20px; }
  .talk-head { grid-template-columns: 88px 1fr; }
  .talk-head img { width: 88px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .feature-text { padding: 10px 12px 14px; }
  .feature-text b { font-size: 15px; }
  .feature-text span { font-size: 12.5px; }
  .moon-facts div { min-width: 0; flex: 1 1 30%; padding: 10px 10px; }
  .phase-line { gap: 6px; }
  .phase-line li { font-size: 11px; padding: 10px 4px 8px; }
  .phase-line li img { width: 36px; height: 36px; }
  .planet-list li { grid-template-columns: 30px 1fr auto; gap: 10px; padding: 8px 6px; }
  .planet-list .p-ic { width: 30px; height: 30px; }
  .planet-list .p-deg { grid-column: 3; grid-row: 2; min-width: 0; font-size: 12.5px; margin-top: -6px; }
  .planet-list .p-sign { grid-column: 3; grid-row: 1; }
  .modal { place-items: end stretch; padding: 0; }
  .modal-dialog { width: 100%; max-height: calc(100dvh - 30px); border-radius: 26px 26px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); animation: sheetIn .35s var(--ease); }
  .modal-dialog::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(206, 150, 255, .35); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .modal-get { grid-template-columns: 1fr; }
  .qr-block { display: none; }
  .modal-steps .step-scan { display: none; }
  .modal-steps .step-tap { display: list-item; }
  .modal-actions { display: flex; flex-direction: column; align-items: center; }
  .get-dock { position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: rgba(17, 7, 34, .94); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); transform: translateY(140%); transition: transform .4s var(--ease); }
  html.show-dock .get-dock { transform: none; }
  html.modal-open .get-dock { transform: translateY(140%); }
  .get-dock img { width: 40px; height: 40px; border-radius: 11px; }
  .get-dock-text { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .get-dock-text strong { font-size: 14px; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .get-dock-text small { font-size: 12px; color: var(--muted); }
  html.show-dock .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .hero-title { font-size: 34px; }
  .hero-features li { font-size: 12px; padding: 6px 10px; }
  .btn-lg { --h: 52px; padding: 0 22px; font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 10px; }
  .tabs button { padding: 8px 12px; font-size: 13px; }
  .love-tabs { align-self: stretch; }
  .day-label { min-width: 0; flex: 1; }
}
@media (max-width: 370px) {
  .lang-btn { padding: 0 9px; }
  .lang-btn .chev { display: none; }
  .brand-name small { display: none; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover, .btn-glass:hover { transform: none; }
  .feature:hover .feature-art img { transform: none; }
  .book:hover { transform: rotateX(16deg) rotateY(-18deg); }
  .book.is-open:hover { transform: rotateX(8deg) rotateY(0deg) translateX(30%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ TEASERS — a taste here, the rest in the app ============ */
.teaser { position: relative; }
.t-lock { filter: blur(5px); opacity: .7; -webkit-user-select: none; user-select: none; pointer-events: none; }
.teaser:not(.is-open) { padding-bottom: 8px; }
.teaser:not(.is-open) .t-lock { display: inline; }
.unlock {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: 100%; margin: 14px auto 0;
  padding: 10px 18px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 800; line-height: 1.3; text-align: center;
  color: #2b1600; background: linear-gradient(135deg, var(--gold-0), var(--gold) 55%, var(--gold-1));
  box-shadow: 0 8px 24px rgba(250, 202, 100, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .25s var(--spring), box-shadow .25s;
}
.unlock .ic { width: 18px; height: 18px; }
.unlock:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(250, 202, 100, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
.teaser .unlock { position: relative; z-index: 1; margin-top: -1.4em; }
.is-locked { position: relative; }
.is-locked > .locked-blur { filter: blur(6px); opacity: .6; pointer-events: none; -webkit-user-select: none; user-select: none; }
.is-locked > .unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.is-locked > .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.tabs button.is-lock { color: rgba(183, 164, 214, .7); }
.tabs button.is-lock .ic-lock { width: 13px; height: 13px; color: var(--gold); }
.factors li.is-locked-row { filter: blur(4px); opacity: .55; pointer-events: none; }
.planet-list li.is-locked-row { filter: blur(4px); opacity: .5; pointer-events: none; }
.planets-lock { position: relative; }
.planets-lock .unlock { position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.planets-lock .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.factors li.factor-unlock { display: flex; justify-content: center; padding: 2px 0 0; background: none; box-shadow: none; cursor: default; }
.factors li.factor-unlock .unlock { margin: 4px auto 0; }
.reading-cta { display: flex; justify-content: center; margin-top: 22px; }
.pillar .teaser .unlock { margin-top: -1.2em; font-size: 13px; padding: 8px 14px; }
