/* Faji landing — the app's "Rose Night" theme (ui/theme/Color.kt): the deep plum ground (bgScreenDeep #050307 →
   brushScreen), glass cards (bgCard #130C1A) with a rose rim (colorBorderCard #EB57B5 @28%), the pink CTA gradient
   (brushCta #FF4FB8 → #E9339F → #B62BD6) with white text, a warm gold for the unlock buttons (the gold leaf of the
   app's tarot frames and brushFeatureGlow #E8D46E), cream and lilac text, the six aspect colours. Noto Serif
   SemiBold for titles, Noto Sans for text (res/font). Logical properties throughout. Smoothness: only transform /
   opacity animate; blur and backdrop filters are off on touch devices (.lite); every demo starts when it comes near. */

:root {
  --ground-0: #06030b;
  --ground: #140c1b;
  --ground-1: #3a1b3f;
  --glass-0: rgba(112, 99, 112, .22);
  --glass-1: rgba(19, 12, 26, .84);
  --glass-flat: rgba(23, 15, 38, .8);
  --glass-deep: rgba(9, 5, 14, .97);
  --glass-line: rgba(235, 87, 181, .28);
  --field: rgba(19, 12, 26, .85);
  --accent-0: #3a2a55;
  --accent: #ff5dbe;
  --accent-1: #e9339f;
  --accent-hi: #ff7bc8;
  --grad: linear-gradient(100deg, #ff4fb8 0%, #e9339f 55%, #b62bd6 100%);
  --grad-text: linear-gradient(100deg, #ffc3e4, #ff7bc8 55%, #e9339f);
  --rim: linear-gradient(140deg, rgba(255, 195, 228, .62), rgba(235, 87, 181, .14) 50%, rgba(235, 87, 181, .5));
  --gold-0: #f7e3a8;
  --gold: #e8d36e;
  --gold-1: #d6b84a;
  --ivory: #fbf8fb;
  --body: #cfc4d6;
  --muted: #a79bb0;
  --cream: #f7c3e3;
  --lilac: #c9b5ff;
  --track: #170f26;
  --tab-off: #3a2a55;
  --on-gold: #24183a;
  --on-cta: #ffffff;
  --shadow: 0 14px 34px rgba(4, 2, 6, .55);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  --glow: 0 10px 28px rgba(255, 77, 191, .3);
  --font-display: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* the six life aspects (Color.kt colorAspect* / colorChart*) */
  --a-love: #ff6fa3; --a-family: #ff9f43; --a-marriage: #b88cff;
  --a-business: #4da6ff; --a-wealth: #ffd63a; --a-health: #3de6a8;
  /* the five palm lines (Color.kt colorPalm*) */
  --l-heart: #e9a6c1; --l-head: #d7ccd7; --l-life: #9fe3c9; --l-fate: #f267bf; --l-sun: #ffd63a;
}
html[lang="hi"] { --font-display: 'Noto Serif Devanagari', 'Noto Serif', serif; --font: 'Noto Sans Devanagari', 'Noto Sans', system-ui, sans-serif; }
html[lang="ja"] { --font-display: 'Noto Serif JP', 'Noto Serif', serif; --font: 'Noto Sans JP', 'Noto Sans', system-ui, sans-serif; }
html[lang="mr"] { --font-display: 'Noto Serif Devanagari', 'Noto Serif', serif; --font: 'Noto Sans Devanagari', 'Noto Sans', system-ui, sans-serif; }
html:is([lang="ar"], [lang="fa"], [lang="ur"]) { --font-display: 'Noto Naskh Arabic', serif; --font: 'Noto Sans Arabic', 'Noto Sans', system-ui, sans-serif; }
html[lang="he"] { --font-display: 'Noto Serif Hebrew', 'Noto Serif', serif; --font: 'Noto Sans Hebrew', 'Noto Sans', system-ui, sans-serif; }
html[lang="bn"] { --font-display: 'Noto Serif Bengali', serif; --font: 'Noto Sans Bengali', 'Noto Sans', system-ui, sans-serif; }
html[lang="gu"] { --font-display: 'Noto Serif Gujarati', serif; --font: 'Noto Sans Gujarati', 'Noto Sans', system-ui, sans-serif; }
html[lang="or"] { --font-display: 'Noto Serif Oriya', serif; --font: 'Noto Sans Oriya', 'Noto Sans', system-ui, sans-serif; }
html[lang="ta"] { --font-display: 'Noto Serif Tamil', serif; --font: 'Noto Sans Tamil', 'Noto Sans', system-ui, sans-serif; }
html[lang="te"] { --font-display: 'Noto Serif Telugu', serif; --font: 'Noto Sans Telugu', 'Noto Sans', system-ui, sans-serif; }
html[lang="kn"] { --font-display: 'Noto Serif Kannada', serif; --font: 'Noto Sans Kannada', 'Noto Sans', system-ui, sans-serif; }
html[lang="ml"] { --font-display: 'Noto Serif Malayalam', serif; --font: 'Noto Sans Malayalam', 'Noto Sans', system-ui, sans-serif; }
html[lang="th"] { --font-display: 'Noto Serif Thai', serif; --font: 'Noto Sans Thai', 'Noto Sans', system-ui, sans-serif; }
html[lang="km"] { --font-display: 'Noto Serif Khmer', serif; --font: 'Noto Sans Khmer', 'Noto Sans', system-ui, sans-serif; }
html[lang="my"] { --font-display: 'Noto Serif Myanmar', serif; --font: 'Noto Sans Myanmar', 'Noto Sans', system-ui, sans-serif; }
html[lang="ko"] { --font-display: 'Noto Serif KR', 'Noto Serif', serif; --font: 'Noto Sans KR', 'Noto Sans', system-ui, sans-serif; }
html[lang="zh"] { --font-display: 'Noto Serif SC', 'Noto Serif', serif; --font: 'Noto Sans SC', 'Noto 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) 55%, var(--ground-1) 100%) fixed var(--ground-0); }
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; text-shadow: none; } /* a shadow would paint over the clipped gold */

/* ---------- the night sky (public/js/sky.js): moonlight, painted clouds drifting, stars; fixed and cheap ---------- */
.nebula { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(52vmax 42vmax at 84% 2%, rgba(255, 195, 228, .12), transparent 70%),
    radial-gradient(70vmax 42vmax at 50% 108%, rgba(180, 48, 140, .42), transparent 70%),
    linear-gradient(180deg, #06030b 0%, #120a1a 26%, #1d0f28 52%, #2a1434 78%, #3a1b3f 100%); }
/* a faint canvas weave over everything, like the oil paintings of the app */
.nebula::after { content: ''; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lite .nebula::after { display: none; }
.sky-stars { position: absolute; left: 0; top: 0; width: 100%; height: 100lvh; }
.sky-twinkle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff2fa; box-shadow: 0 0 6px 2px rgba(255, 242, 250, .45); transform: scale(var(--s, 1)); opacity: .2; animation: twinkle 4s ease-in-out infinite; }
.sky-twinkle.gold { background: #f7c4e3; box-shadow: 0 0 7px 2px rgba(247, 196, 227, .55); }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* ---------- 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: var(--on-cta); 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(255, 77, 191, .45), inset 0 1px 0 rgba(255, 255, 255, .35); transform: translateY(-2px); }
.btn-primary:disabled { background: rgba(207, 196, 214, .12); color: #8f91a3; box-shadow: inset 0 0 0 1px rgba(207, 196, 214, .18); cursor: not-allowed; transform: none; }
.btn-glass { color: var(--ivory); background: rgba(58, 42, 85, .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(94, 48, 100, .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(58, 42, 85, .42); box-shadow: inset 0 0 0 1px var(--glass-line); transition: transform .2s var(--spring), background-color .2s; }
.icon-btn:hover { background: rgba(94, 48, 100, .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(232, 211, 110, .1); box-shadow: inset 0 0 0 1px rgba(232, 211, 110, .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(40, 20, 53, .9), rgba(19, 12, 26, .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(19, 12, 26, .78); box-shadow: 0 1px 0 rgba(235, 87, 181, .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(19, 12, 26, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { position: relative; 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(235, 87, 181, .45); }
.brand-name { font-family: var(--font-display); 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: var(--font); 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(235, 87, 181, .14); }
.main-nav a.is-active { color: var(--ivory); background: rgba(235, 87, 181, .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(58, 42, 85, .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(235, 87, 181, .2); outline: none; color: var(--ivory); }
.lang-list li[aria-selected="true"] { color: var(--ivory); background: rgba(235, 87, 181, .3); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(58, 42, 85, .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; }
/* the nav folded into the menu button (narrow screens, or the compact header): the actions keep the right corner (left
   in Arabic) and the menu drops down from the button, at that corner */
.site-header.is-compact .header-actions { margin-inline-start: auto; }
.site-header .main-nav.is-open { display: flex; position: absolute; top: calc(100% - 4px); inset-inline-end: max(20px, env(safe-area-inset-right)); width: min(280px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px; border-radius: 18px; background: var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); transform-origin: 100% 0; animation: menu-in .22s var(--ease) both; }
html[dir="rtl"] .site-header .main-nav.is-open { transform-origin: 0 0; }
.site-header .main-nav.is-open a { padding: 12px 16px; border-radius: 12px; font-size: 16px; text-align: start; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: clamp(64px, 7vw, 96px) 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(235, 87, 181, .14); box-shadow: inset 0 0 0 1px rgba(235, 87, 181, .28); }
.kicker .ic { color: var(--gold); }
.kicker.small { font-size: 11px; padding: 5px 12px; margin-bottom: 8px; }
html[lang="ar"] .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 2px 18px rgba(9, 5, 14, .7), 0 0 34px rgba(255, 123, 200, .3); 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; text-shadow: 0 1px 12px rgba(9, 5, 14, .85); }
.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(19, 12, 26, .55); box-shadow: inset 0 0 0 1px rgba(235, 87, 181, .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(232, 211, 110, .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: var(--gold); }
html[lang="ar"] .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(235, 87, 181, .22); transition: box-shadow .2s, background-color .2s; color-scheme: dark; }
.input::placeholder { color: rgba(207, 196, 214, .65); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgba(235, 87, 181, .18); background: rgba(26, 16, 42, .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(207, 196, 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(235, 87, 181, .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: #ffd6d6; background: rgba(248, 57, 57, .14); box-shadow: inset 0 0 0 1px rgba(248, 57, 57, .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(235, 87, 181, .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(19, 12, 26, .66); box-shadow: inset 0 0 0 1px rgba(232, 211, 110, .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="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(232, 211, 110, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 211, 110, .6); } 70% { box-shadow: 0 0 0 10px rgba(232, 211, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 211, 110, 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(255, 123, 200, .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); text-shadow: 0 1px 12px rgba(9, 5, 14, .85); }
.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(19, 12, 26, .55); box-shadow: inset 0 0 0 1px rgba(235, 87, 181, .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: 0 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 80, 160, .32), rgba(255, 195, 228, .08) 60%, transparent); }
.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; }
/* the scene fades out before the canvas edge, so a drifting cloud never meets a hard line */
.stage3d canvas { -webkit-mask: radial-gradient(50% 50% at 50% 50%, #000 84%, transparent 100%); mask: radial-gradient(50% 50% at 50% 50%, #000 84%, transparent 100%); }
@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(9, 5, 14, .82); box-shadow: inset 0 0 0 1px rgba(232, 211, 110, .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: start; 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(235, 87, 181, .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; }

/* until three.js takes over (or without WebGL): a crescent moon in CSS, in its halo */
/* the hand until the scene takes over: the same share of the stage as in hero3d.js (HAND_H / STAGE_H = 4.1 / 5.4),
   standing on the stage's foot, with the app's moon art behind it where the 3D Moon will be (and stays, without WebGL) */
.stage-fallback { position: absolute; top: auto; bottom: 0; left: 50%; height: 75.9%; width: auto; max-width: none; transform: translateX(-50%); -webkit-mask: linear-gradient(to top, transparent, #000 22%); mask: linear-gradient(to top, transparent, #000 22%); }
.stage3d:not(.is-3d) { background: url(/img/art/moon-hero.webp) 64% 6% / 50% auto no-repeat; }
.stage3d.is-3d .stage-fallback { opacity: 0; transition: opacity .8s; }

/* ---------- shared bits of the app's reading screens ---------- */
.overline { margin: 0 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); text-align: center; }
.overline.start { text-align: start; }
.overline.gold { color: var(--gold); }
html[lang="ar"] .overline, html[lang="hi"] .overline { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
/* UnderlineTabs: the chosen tab in gold with a 66 × 2 gold line, the others #3A2A55 */
.u-tabs { display: flex; border-bottom: 1px solid var(--tab-off); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.u-tabs::-webkit-scrollbar { display: none; }
.u-tabs button { position: relative; flex: 1 0 auto; min-width: 80px; padding: 10px 12px 12px; border: 0; background: none; font-size: 14px; color: #a79bb0; white-space: nowrap; transition: color .2s; }
.u-tabs button:hover { color: var(--body); }
.u-tabs button[aria-selected="true"] { color: var(--gold); }
.u-tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: min(66px, 80%); height: 2px; transform: translateX(-50%); background: var(--grad-text); border-radius: 2px; }
.card-title { font-family: var(--font-display); font-weight: 600; }
.balance-title { margin: 4px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ivory); }
/* AspectChart: x/10 over a 28-wide track, filled dark → light */
.aspect-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 16px 10px 12px; margin-bottom: 20px; border-radius: 20px; background: rgba(14, 8, 24, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.aspect-chart .bar { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.aspect-chart b { font-size: 12px; font-weight: 600; color: var(--ivory); font-variant-numeric: tabular-nums; }
.aspect-chart .track { position: relative; width: 28px; height: 120px; border-radius: 14px; background: var(--track); overflow: hidden; }
.aspect-chart .track i { position: absolute; inset: auto 0 0; height: var(--h); border-radius: 14px; background: linear-gradient(180deg, var(--dark), color-mix(in srgb, var(--light) 55%, transparent)); transform-origin: 50% 100%; transition: transform .9s var(--ease), height .5s var(--ease); }
.aspect-chart.is-grow .track i { transform: scaleY(0); transition: none; }
.aspect-chart small { max-width: 100%; font-size: 10.5px; color: var(--body); text-align: center; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: normal; line-height: 1.25; }
.aspect-list { list-style: none; margin: 0; padding: 4px 16px; border-radius: 20px; background: rgba(14, 8, 24, .7); box-shadow: inset 0 0 0 1px var(--glass-line); position: relative; }
.aspect-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--track); }
.aspect-row:last-of-type { border-bottom: 0; }
.aspect-row img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--dark) 70%, transparent); }
.aspect-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.aspect-head b { font-size: 14px; font-weight: 500; color: var(--dark); }
.aspect-head .score { padding: 1px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--dark); background: color-mix(in srgb, var(--dark) 18%, transparent); }
.aspect-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ivory); }
.aspect-unlock { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); list-style: none; z-index: 2; }
.aspect-unlock .unlock { margin: 0; }
.is-locked-row .aspect-text, li.is-locked-row .aspect-text { filter: blur(5px); opacity: .7; -webkit-user-select: none; user-select: none; }
.aspect-row.is-locked-row { filter: none; opacity: 1; pointer-events: none; }
.aspect-row.is-locked-row .score { filter: blur(3px); }
.lite .is-locked-row .aspect-text { filter: none; color: transparent; text-shadow: 0 0 9px rgba(251, 248, 251, .7); }

/* ============ PALM SCAN ============ */
.scan-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.scan-cam { display: flex; flex-direction: column; gap: 14px; max-width: 460px; width: 100%; justify-self: center; position: sticky; top: calc(var(--header-h) + 24px); }
.hand-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hand-pick button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; border-radius: 14px; font-weight: 600; font-size: 14.5px; color: var(--body); background: rgba(14, 8, 24, .7); box-shadow: inset 0 0 0 1px var(--glass-line); transition: background-color .2s, box-shadow .2s, color .2s; }
.hand-pick button[aria-checked="true"] { color: var(--cream); background: linear-gradient(180deg, rgba(235, 87, 181, .22), rgba(90, 52, 96, .6)); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 16px rgba(235, 87, 181, .22); }
.hand-pick .ic { width: 20px; height: 20px; color: var(--gold); }
.cam-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 24px 24px; overflow: hidden; background: #170f26 url(/img/art/palm-bg.webp) 50% 50% / cover no-repeat; /* the painting's ground stays; only the hand moves */ box-shadow: 0 0 0 1.5px rgba(235, 87, 181, .55), var(--shadow-lg); isolation: isolate; }
.cam-hand { position: absolute; inset: 0; transition: transform .8s var(--ease), opacity .6s, filter .6s; }
/* contain, so the hand sits in the frame exactly where the traced <svg> (same box, xMidYMid meet) draws its lines */
.cam-hand img { width: 100%; height: 100%; object-fit: contain; }
/* palm-cut.webp (Figma asset:hand_left) is a right palm, thumb on the right: mirrored for the left hand */
.cam-frame:not(.is-right) .cam-hand { scale: -1 1; }
.cam-frame[data-phase="far"] .cam-hand { transform: scale(.62) translate(18%, 22%); opacity: .55; filter: blur(1.5px); }
.cam-frame[data-phase="closer"] .cam-hand { transform: scale(.8) translate(12%, 10%); }
.cam-frame[data-phase="center"] .cam-hand { transform: scale(.94); }
.cam-frame[data-phase="spread"] .cam-hand { transform: scale(1.02); }
.cam-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-lines path { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255, 195, 228, .8)); stroke-dasharray: var(--len); stroke-dashoffset: var(--len); opacity: 0; transition: stroke-dashoffset 1s var(--ease), opacity .3s; }
.cam-lines path.is-on { stroke-dashoffset: 0; opacity: 1; }
.lite .cam-lines path { filter: none; }
/* the app's own corner sprigs (AppBackdrop) at the foot of the frame, over a soft shade */
.cam-frame::before { content: ''; position: absolute; inset: auto -4% -2%; height: 26%; z-index: 1; pointer-events: none; opacity: .85; background: url(/img/art/sprig-bl.webp) 6% 92% / 50px auto no-repeat, url(/img/art/sprig-br.webp) 94% 92% / 50px auto no-repeat, linear-gradient(180deg, transparent, rgba(23, 15, 38, .82)); } /* the app's foot sprigs are 46 px: shown near their own size */
.cam-beam { position: absolute; inset-inline: 0; top: 0; height: 26%; background: linear-gradient(180deg, transparent, rgba(255, 195, 228, .22) 70%, rgba(255, 195, 228, .85) 98%, transparent); opacity: 0; pointer-events: none; }
.cam-frame[data-phase="lines"] .cam-beam { opacity: 1; animation: beam 1.1s linear infinite; }
@keyframes beam { from { transform: translateY(-30%); } to { transform: translateY(330%); } }
.cam-frame[data-phase="shot"]::after { content: ''; position: absolute; inset: 0; background: #fff; animation: shot .45s ease-out both; pointer-events: none; }
@keyframes shot { from { opacity: .85; } to { opacity: 0; } }
.cam-corner { position: absolute; width: 34px; height: 34px; border: 3px solid var(--gold); opacity: .9; transition: border-color .3s; }
.cam-corner.c1 { top: 22%; inset-inline-start: 12%; border-width: 3px 0 0 3px; border-start-start-radius: 10px; }
.cam-corner.c2 { top: 22%; inset-inline-end: 12%; border-width: 3px 3px 0 0; border-start-end-radius: 10px; }
.cam-corner.c3 { bottom: 8%; inset-inline-start: 12%; border-width: 0 0 3px 3px; border-end-start-radius: 10px; }
.cam-corner.c4 { bottom: 8%; inset-inline-end: 12%; border-width: 0 3px 3px 0; border-end-end-radius: 10px; }
html[dir="rtl"] .cam-corner.c1 { border-width: 3px 3px 0 0; } html[dir="rtl"] .cam-corner.c2 { border-width: 3px 0 0 3px; }
html[dir="rtl"] .cam-corner.c3 { border-width: 0 3px 3px 0; } html[dir="rtl"] .cam-corner.c4 { border-width: 0 0 3px 3px; }
.cam-frame[data-phase="ready"] .cam-corner, .cam-frame[data-phase="lines"] .cam-corner { border-color: #3de6a8; }
.cam-status { position: absolute; left: 50%; bottom: 14%; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: 86%; margin: 0; padding: 7px 14px; border-radius: 8px; font-size: 12.5px; color: #fff; white-space: nowrap; background: rgba(17, 17, 17, .5); transform: translate(-50%, 8px); opacity: 0; transition: opacity .25s, transform .25s, background-color .25s; }
.cam-status.is-shown { opacity: 1; transform: translate(-50%, 0); }
.cam-status.is-bad { background: #f83939; }
.cam-status.is-ok { background: #0d824b; }
.cam-status .ic { width: 16px; height: 16px; flex: none; }
.cam-status span { overflow: hidden; text-overflow: ellipsis; }
.cam-loading { padding: 14px 16px; border-radius: 16px; background: rgba(14, 8, 24, .75); box-shadow: inset 0 0 0 1px var(--glass-line); }
.cam-meter { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.cam-meter i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .cam-meter i { transform-origin: 100% 50%; }
.cam-loading-title { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 6px; font-family: var(--font-display); font-weight: 600; color: var(--ivory); }
.cam-loading-title b { color: var(--gold); font-variant-numeric: tabular-nums; }
.cam-fact { margin: 0; font-size: 13px; line-height: 1.5; color: var(--body); }
.cam-fact b { color: var(--gold); font-weight: 600; }
.scan-result { padding: 22px 24px; min-height: 420px; }
.scan-result .card-title { margin: 0 0 12px; font-size: 22px; }
.pane-wait { margin: 40px 0; text-align: center; color: var(--muted); }
/* the moon keeps a little air from the card's edge */
.moon-head { padding-inline-start: 4px; }
.summary-card { padding: 16px 18px; margin-bottom: 18px; border-radius: 18px; background: rgba(14, 8, 24, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.summary-card h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .summary-card h4, html[lang="hi"] .summary-card h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.summary-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ivory); }
.lines, .insights { position: relative; }
.line-read { padding: 12px 0; border-top: 1px solid var(--track); }
.line-read h5 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--c); }
.line-read h5 i { width: 4px; height: 18px; border-radius: 2px; background: var(--c); }
.line-read p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; color: var(--body); }
.line-read .facet .lbl { color: var(--gold); font-weight: 600; }
.line-read.is-locked-row { filter: none; opacity: 1; }
.line-read.is-locked-row p { filter: blur(5px); opacity: .6; -webkit-user-select: none; user-select: none; }
.lite .line-read.is-locked-row p { filter: none; color: transparent; text-shadow: 0 0 9px rgba(207, 196, 214, .75); }
.lines > .unlock, .insights > .unlock { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.lines > .unlock:hover, .insights > .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.insight { padding: 12px 0; border-top: 1px solid var(--track); }
.insight h5 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--gold); }
.insight p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ivory); }
.insight.is-locked-row { filter: none; opacity: 1; }
.insight.is-locked-row p, .bullets li.is-locked-row { filter: blur(5px); opacity: .6; -webkit-user-select: none; user-select: none; }
.bullets { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ivory); }
.bullets li::marker { color: var(--gold); }

/* ============ LIFE GUIDE ============ */
.guide-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.guide-art { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.guide-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.guide-art figcaption { display: grid; gap: 4px; padding: 16px 18px 18px; background: linear-gradient(180deg, rgba(19, 12, 26, .9), rgba(14, 8, 24, .98)); }
.guide-art figcaption b { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ivory); }
.guide-art figcaption span { font-size: 14px; color: var(--body); }
.guide-card { padding: 20px 22px; }

/* ============ COMPATIBILITY ============ */
.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.match-pick, .match-result { padding: 20px 22px; }
.match-pick { position: sticky; top: calc(var(--header-h) + 24px); }
.match-pick .tabs { margin-bottom: 18px; }
.tabs button[aria-selected="true"] { color: var(--on-gold); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 16px; margin-bottom: 14px; border-radius: 20px; background: linear-gradient(180deg, rgba(235, 87, 181, .14), rgba(90, 52, 96, .5)); box-shadow: inset 0 0 0 1px var(--glass-line); }
.slot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 0; border-radius: 16px; background: none; color: var(--ivory); transition: background-color .2s; }
.slot img, .slot-empty { width: 72px; height: 72px; border-radius: 50%; }
.slot img { box-shadow: 0 0 0 2px rgba(235, 87, 181, .7); }
.slot-empty { display: grid; place-items: center; background: rgba(14, 8, 24, .7); box-shadow: inset 0 0 0 1.5px rgba(235, 87, 181, .35); color: var(--gold); }
.slot.is-active { background: rgba(235, 87, 181, .1); }
.slot b { font-size: 14px; font-weight: 600; }
.slot small { font-size: 12px; color: var(--muted); }
.pair-heart { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #ff6fa3; background: rgba(255, 111, 163, .12); }
.sign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sign { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border: 0; border-radius: 16px; background: rgba(14, 8, 24, .6); box-shadow: inset 0 0 0 1px rgba(235, 87, 181, .18); color: var(--ivory); transition: transform .2s var(--spring), box-shadow .2s, background-color .2s; }
.sign:hover { transform: translateY(-2px); }
.sign img { width: 56px; height: 56px; margin-bottom: 4px; border-radius: 50%; }
.sign b { font-size: 13px; font-weight: 600; }
.sign small { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.3; }
.sign.is-you, .sign.is-partner, .sign.is-both, .sign.is-on { background: linear-gradient(180deg, rgba(235, 87, 181, .22), rgba(90, 52, 96, .6)); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 16px rgba(235, 87, 181, .22); }
.sign.is-partner { box-shadow: inset 0 0 0 1.5px #ff6fa3, 0 0 16px rgba(255, 111, 163, .2); }
.match-result { min-height: 420px; }
.match-result.is-in .pct-ring .arc { stroke-dashoffset: var(--off); }
.pair-card { text-align: center; padding: 16px; margin-bottom: 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(235, 87, 181, .12), rgba(90, 52, 96, .45)); box-shadow: inset 0 0 0 1px var(--glass-line); }
.pair-imgs { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pair-imgs img { width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(235, 87, 181, .7); }
.pct-wrap { position: relative; width: 72px; height: 72px; }
.pct-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.pct-ring circle { fill: none; stroke: var(--track); stroke-width: 6; }
.pct-ring .arc { stroke: var(--gold); stroke-linecap: round; stroke-dashoffset: 214; transition: stroke-dashoffset 1.1s var(--ease); }
.pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--gold); }
.pair-card .card-title { margin: 10px 0 6px; font-size: 20px; }
.pair-summary { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ivory); }
.score-bars { display: grid; gap: 10px; margin-bottom: 18px; }
.score-row { display: grid; grid-template-columns: minmax(90px, auto) 1fr auto; align-items: center; gap: 12px; font-size: 13.5px; color: var(--body); }
.score-row .track { height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; }
.score-row .track i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: var(--grad); }
.score-row b { font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.match-locked { position: relative; }
.match-locked .is-locked-row { filter: blur(5px); opacity: .55; pointer-events: none; -webkit-user-select: none; user-select: none; }
.match-locked > .unlock { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.match-locked > .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.match-locked p { margin: 0 0 12px; font-size: 13.5px; color: var(--ivory); }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.insight-mini { padding: 12px; border-radius: 14px; background: rgba(14, 8, 24, .6); }
.insight-mini img { width: 32px; height: 32px; border-radius: 50%; }
.insight-mini b { display: block; margin: 6px 0 4px; font-size: 13px; color: var(--gold); }
.insight-mini p { margin: 0; font-size: 12px; color: var(--body); }
.matching { display: grid; place-items: center; gap: 14px; min-height: 360px; color: var(--cream); font-family: var(--font-display); font-weight: 600; }
.orb { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8d8, #e8d36e 40%, rgba(235, 87, 181, .2) 70%, transparent 72%); box-shadow: 0 0 40px rgba(232, 211, 110, .5); animation: orb 1.2s ease-in-out infinite alternate; }
@keyframes orb { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.05); opacity: 1; } }

/* ============ TAROT ============ */
.tarot-stage { padding: clamp(20px, 3vw, 32px); max-width: 980px; margin-inline: auto; }
.topic-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.topic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 0; border-radius: 16px; background: rgba(14, 8, 24, .6); box-shadow: inset 0 0 0 1px rgba(235, 87, 181, .18); color: var(--cream); font-size: 13.5px; transition: transform .2s var(--spring), box-shadow .2s, background-color .2s; }
.topic img { width: 56px; height: 56px; border-radius: 50%; }
.topic.is-on { background: linear-gradient(180deg, rgba(235, 87, 181, .22), rgba(90, 52, 96, .6)); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 16px rgba(235, 87, 181, .22); }
.topic:hover { transform: translateY(-2px); }
.draw { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.draw-hint { margin: 0; white-space: pre-line; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
html[lang="ar"] .draw-hint, html[lang="hi"] .draw-hint { letter-spacing: 0; text-transform: none; font-size: 14px; }
.deck { position: relative; width: 100%; height: 340px; outline: none; overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.deck.is-grabbing { cursor: grabbing; }
.fan.is-dragging .tcard { transition: none; } /* the wheel follows the finger; it eases only when it settles */
.deck-slot { position: absolute; left: 50%; top: 4px; width: 104px; height: 188px; margin-left: -52px; border-radius: 12px; border: 1.5px dashed rgba(235, 87, 181, .45); perspective: 900px; transition: border-color .4s; }
/* before a draw the slot marks where the card will land: a ghost of the card back, not an empty hole */
.deck-slot:empty { border-color: rgba(235, 87, 181, .3); background: url(/img/tarot/back.webp) 50% 50% / cover; box-shadow: inset 0 0 0 100px rgba(19, 12, 26, .72); }
.deck-slot .flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); animation: rise .5s var(--ease) both; }
@keyframes rise { from { transform: translateY(120px) scale(.9); opacity: 0; } }
.deck-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; backface-visibility: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 22px rgba(235, 87, 181, .3); }
.deck-slot .front { transform: rotateY(180deg); }
.deck-slot.is-flipped .flip { transform: rotateY(180deg); }
.fan { position: absolute; left: 50%; top: 214px; width: 0; height: 0; }
.tcard { position: absolute; left: -46px; top: 0; width: 92px; height: 166px; padding: 0; border: 0; border-radius: 10px; background: none; transform-origin: 50% 620px; transition: transform .45s var(--ease), opacity .3s; will-change: transform; }
.tcard img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.tcard.is-chosen img { box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(235, 87, 181, .55); }
.tcard.is-gone { opacity: 0; }
.tarot-stage.is-reading .tcard { pointer-events: none; }
.deck-nav { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.draw.is-done .deck, .draw.is-done .deck-nav, .draw.is-done #tarotRead, .draw.is-done .draw-hint { display: none; }
.reading { margin-top: 6px; }
.card-head { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; margin-bottom: 18px; }
.card-head img { width: 120px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 0 1.5px rgba(235, 87, 181, .6); animation: rise .5s var(--ease) both; }
.card-head .card-title { font-size: 26px; margin: 0; }
.reading-locked { position: relative; padding: 16px 18px; border-radius: 18px; background: rgba(14, 8, 24, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.reading-locked .is-locked-row { pointer-events: none; }
.reading-locked h4 { margin-top: 10px; }
.skel { display: grid; gap: 7px; margin-bottom: 8px; }
.skel i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(207, 196, 214, .14), rgba(207, 196, 214, .3), rgba(207, 196, 214, .14)); }
.skel i:last-child { width: 62%; }
.reading-locked > .unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.reading-locked > .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.reading .again { margin: 16px auto 0; display: flex; }

/* ============ DAILY HOROSCOPE ============ */
.horo-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.horo-pick, .horo-result { padding: 20px 22px; }
.horo-pick { position: sticky; top: calc(var(--header-h) + 24px); }
.horo-pick .sign-grid { margin: 0; }
.horo-head { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.horo-head img { width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(235, 87, 181, .7); }
.horo-head .card-title { margin: 0; font-size: 22px; }
.sign-meta { margin: 2px 0 8px; font-size: 12.5px; color: var(--body); }
.date-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ivory); background: rgba(14, 8, 24, .8); box-shadow: inset 0 0 0 1px var(--glass-line); }
.date-chip .ic { width: 16px; height: 16px; color: var(--gold); }
.reading-card { padding: 16px; margin-bottom: 18px; border-radius: 18px; background: rgba(14, 8, 24, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.reading-card .overline { margin-bottom: 8px; }
.character { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ivory); }


/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.qr-mini .qr-tile img { width: 80px; height: 80px; }
.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(40, 20, 53, .75), rgba(19, 12, 26, .9)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(235, 87, 181, .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(232, 211, 110, .3), inset 0 0 0 1px rgba(255, 195, 228, .5); }
.feature-art { display: block; aspect-ratio: 4 / 3; 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(232, 211, 110, .28), transparent 50%), linear-gradient(140deg, #3a2a55, #130c1a 70%); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 195, 228, .3); }
.dl-art { position: relative; aspect-ratio: 1; width: min(100%, 380px); margin-inline: auto; }
.dl-scene { position: absolute; inset: 6% 0; width: 100%; height: 88%; object-fit: cover; border-radius: 999px 999px 28px 28px; box-shadow: 0 0 0 1.5px rgba(235, 87, 181, .6), var(--shadow-lg); }
.dl-icon { position: absolute; inset: auto 31% -4%; width: 38%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 24px 60px rgba(235, 87, 181, .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-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(235, 87, 181, .14); background: rgba(1, 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(235, 87, 181, .1); }
.footer-bottom p { margin: 0; font-size: 12.5px; color: rgba(207, 196, 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(235, 87, 181, .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(58, 42, 85, .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(235, 87, 181, .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(235, 87, 181, .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; }
  .header-actions { margin-inline-start: auto; }
  .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-cam { position: static; }
  .scan-card { max-width: 760px; width: 100%; margin-inline: auto; }
}
@media (max-width: 980px) {
  .match-pick, .horo-pick, .guide-art { position: static; }
  .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; }
  /* no bleed here, so fade only the corners: the Moon's top and the belt's ends sit close to the square's edges */
  .stage3d canvas { -webkit-mask: radial-gradient(72% 72% at 50% 50%, #000 80%, transparent 100%); mask: radial-gradient(72% 72% at 50% 50%, #000 80%, transparent 100%); }
  .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(235, 87, 181, .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(9, 5, 14, .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; }
}

/* ============ RESPONSIVE — the demos ============ */
@media (max-width: 980px) {
  .scan-grid, .guide-grid, .match-grid, .horo-grid { grid-template-columns: minmax(0, 1fr); }
  .scan-result, .guide-card, .match-pick, .match-result, .horo-pick, .horo-result { max-width: 640px; width: 100%; margin-inline: auto; }
  .guide-art { position: relative; top: 0; max-width: 640px; width: 100%; margin-inline: auto; }
  .scan-result { min-height: 0; }
  .match-result { min-height: 0; }
}
@media (max-width: 720px) {
  .stage3d { aspect-ratio: 1 / .9; }
  .topic-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic { font-size: 13px; }
  .sign-grid { gap: 8px; }
  .sign img { width: 48px; height: 48px; }
  .sign b { font-size: 12.5px; }
  .sign small { font-size: 10px; }
  .guide-card, .match-pick, .match-result, .horo-pick, .horo-result, .scan-result { padding: 16px; }
  .aspect-chart { gap: 4px; padding: 14px 6px 10px; }
  .aspect-chart .track { width: 22px; height: 104px; }
  .aspect-chart small { font-size: 9.5px; }
  .aspect-list { padding: 4px 12px; }
  .score-row { grid-template-columns: minmax(80px, auto) 1fr auto; gap: 8px; font-size: 12.5px; }
  .insight-grid { grid-template-columns: minmax(0, 1fr); }
  .deck { height: 360px; }
  .deck-slot { width: 92px; height: 166px; margin-left: -46px; }
  .fan { top: 186px; }
  .tcard { width: 80px; height: 144px; left: -40px; transform-origin: 50% 520px; }
  .card-head { grid-template-columns: 96px 1fr; gap: 14px; }
  .card-head img { width: 96px; }
  .card-head .card-title { font-size: 22px; }
  .pair { padding: 12px 8px; }
  .slot img, .slot-empty { width: 60px; height: 60px; }
  .cam-status { font-size: 12px; }
}
@media (max-width: 380px) {
  .sign small { display: none; }
  .hand-pick button { font-size: 13px; }
}

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ 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: var(--on-gold); background: linear-gradient(135deg, var(--gold-0), var(--gold) 55%, var(--gold-1));
  box-shadow: 0 8px 24px rgba(232, 211, 110, .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(232, 211, 110, .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(207, 196, 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; }

/* ========== Astrology: the birth form, the Moon sign, Soul Energy and the Vedic chart ========== */
.astro-card { max-width: 980px; margin-inline: auto; padding: 24px; }
.birth-form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) auto; gap: 14px; align-items: end; margin-bottom: 20px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-label { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
html[lang="hi"] .field-label, html[lang="ja"] .field-label { letter-spacing: 0; text-transform: none; font-size: 13px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.field input, .field select {
  min-width: 0; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 14px;
  background: var(--field); color: var(--ivory); font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(235, 87, 181, .18); transition: box-shadow .2s;
}
.field input:focus, .field select:focus { outline: 0; box-shadow: inset 0 0 0 1.5px rgba(235, 87, 181, .4), 0 0 0 4px rgba(235, 87, 181, .18); }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%);
  background-position: right 17px center, right 12px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
html[dir="rtl"] .field select { background-position: left 17px center, left 12px center; }
.field input::-webkit-calendar-picker-indicator { filter: invert(1) sepia(1) saturate(4) hue-rotate(275deg); opacity: .8; cursor: pointer; }
.birth-form .btn { min-height: 46px; }
.field-error { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: #ff8fb8; }

.astro-pane { min-height: 220px; }
.moon-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 18px; }
.moon-art { margin: 0; text-align: center; }
.moon-art img { width: 150px; height: 150px; filter: drop-shadow(0 10px 26px rgba(235, 140, 194, .45)); animation: float 9s ease-in-out infinite; }
.lite .moon-art img, .is-paused .moon-art img { animation: none; }
.moon-copy .overline { margin-bottom: 6px; }
.moon-sign { margin: 0 0 6px; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.15; color: var(--ivory); }
.moon-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.soul-head { text-align: center; margin-bottom: 18px; }
.soul-sign { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ivory); }
.soul-range { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

.read-list { list-style: none; margin: 0; padding: 0; }
.read-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--track); }
.read-item img { width: 40px; height: 40px; border-radius: 12px; }
.read-item h5 { margin: 0 0 5px; font-size: 14px; font-weight: 600; color: var(--gold); }
.read-item p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ivory); }
.read-item.is-locked-row p { filter: blur(5px); opacity: .6; -webkit-user-select: none; user-select: none; }
.lite .read-item.is-locked-row p { filter: none; color: transparent; text-shadow: 0 0 9px rgba(207, 196, 214, .75); }
.read-more { list-style: none; padding-top: 12px; text-align: center; }
.read-more .unlock { margin-top: 0; }

.chart-row { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.chart-board { position: relative; }
.chart-board .pane-wait { margin: 60px 0; }
.chart-svg { width: 100%; height: auto; aspect-ratio: 1; }
.chart-svg rect { fill: #120816; stroke: rgba(235, 140, 194, .55); stroke-width: 1; }
.chart-svg line { stroke: rgba(243, 188, 219, .45); stroke-width: .7; }
.chart-svg text { font-family: var(--font); text-anchor: middle; }
.chart-svg .h-num { font-size: 4.4px; fill: #d1abc1; }
.chart-svg .h-pl { font-size: 5px; font-weight: 700; fill: #fdf6fa; }
.planet-list { list-style: none; margin: 0; padding: 0; }
.planet-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 2px; border-top: 1px solid var(--track); font-size: 13.5px; }
.planet-list li b { color: var(--ivory); font-weight: 600; }
.planet-list li span { color: var(--body); }
.planet-list li i { color: var(--gold); font-style: normal; font-variant-numeric: tabular-nums; }
.planet-list li.is-locked-row { filter: blur(4.5px); opacity: .6; pointer-events: none; -webkit-user-select: none; user-select: none; }
.planet-list .dasha { margin: 0 0 10px; font-size: 13.5px; color: var(--ivory); }
.planet-list .dasha b { color: var(--gold); }

/* ========== Daily report ========== */
.daily-card { max-width: 760px; margin-inline: auto; padding: 24px; }
.daily-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-bottom: 18px; }
.daily-form .btn { min-height: 46px; }
.daily-date { margin: 0 0 14px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
html[lang="hi"] .daily-date, html[lang="ja"] .daily-date { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.daily-sign { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.daily-sign img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(235, 87, 181, .3), 0 8px 22px rgba(229, 106, 176, .3); }
.daily-sign div { display: grid; }
.daily-sign b { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ivory); }
.daily-sign span { font-size: 12.5px; color: var(--muted); }
.daily-grid, .daily-traits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.daily-box { padding: 14px 16px; border-radius: 18px; background: rgba(14, 8, 24, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.daily-box .overline { margin-bottom: 10px; text-align: start; }
.lucky-nums { display: flex; flex-wrap: wrap; gap: 10px; }
.lucky-nums i {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 17px;
  color: var(--ivory); background: #3d1c49; box-shadow: inset 0 0 0 1.5px #ec92c5, 0 6px 16px rgba(229, 106, 176, .5);
  animation: pop .5s var(--spring) both; animation-delay: var(--d, 0ms);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.lucky-colors { display: grid; gap: 10px; }
.lucky-colors span { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ivory); }
.lucky-colors i { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75), 0 6px 14px rgba(235, 140, 194, .5); }
.trait-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--ivory); }
.trait-list li { padding-inline-start: 16px; position: relative; }
.trait-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.trait-list li.is-locked-row { filter: blur(4.5px); opacity: .6; -webkit-user-select: none; user-select: none; }
.lite .trait-list li.is-locked-row { filter: none; color: transparent; text-shadow: 0 0 8px rgba(251, 248, 251, .7); }
.trait-list .read-more { padding-inline-start: 0; text-align: start; }
.trait-list .read-more::before { display: none; }
.life-path { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 14px; margin-bottom: 14px; border-radius: 18px; background: rgba(14, 8, 24, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.lp-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
html[lang="hi"] .lp-label, html[lang="ja"] .lp-label { letter-spacing: 0; text-transform: none; }
.lp-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.lp-sum i { font-style: normal; font-size: 14px; color: var(--ivory); }
.lp-sum b { color: var(--muted); font-weight: 400; }
.lp-eq { color: var(--muted); }
.lp-num { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; font-weight: 800; color: var(--on-cta); background: var(--grad); }

/* ========== AI Palm Chat ========== */
.chat-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; align-items: center; }
.chat-art { margin: 0; position: relative; }
.chat-art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.chat-art figcaption { display: grid; gap: 4px; margin-top: 14px; }
.chat-art figcaption b { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ivory); }
.chat-art figcaption span { font-size: 13.5px; color: var(--body); }
.chat-card { padding: 20px; }
.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--track); margin-bottom: 14px; }
.chat-avatar { width: 52px; height: 52px; border-radius: 50%; background: #0e0818; box-shadow: 0 0 0 1.5px rgba(242, 95, 188, .6), 0 6px 18px rgba(215, 204, 215, .3); }
.chat-top div { display: grid; }
.chat-top b { font-size: 15px; font-weight: 700; color: var(--ivory); }
.chat-online { display: flex; align-items: center; gap: 6px; font-size: 12px; font-style: normal; color: var(--muted); }
.chat-online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 2px #130b19; }
.chat-thread { display: grid; gap: 10px; align-content: start; min-height: 92px; max-height: 330px; overflow-y: auto; padding-inline-end: 4px; margin-bottom: 16px; scrollbar-width: thin; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.6; }
.bubble p { margin: 0; }
.bubble.is-bot { justify-self: start; border-end-start-radius: 6px; color: var(--ivory); background: rgba(14, 8, 24, .78); box-shadow: inset 0 0 0 1px var(--glass-line); }
.bubble.is-me { justify-self: end; border-end-end-radius: 6px; color: var(--on-cta); background: var(--grad); }
.bubble.is-locked { position: relative; }
.bubble.is-locked .unlock { margin: 10px auto 0; }
.bubble .chat-wait { color: var(--cream); }
.bubble .locked-blur { filter: blur(5px); opacity: .6; -webkit-user-select: none; user-select: none; }
.lite .bubble .locked-blur { filter: none; color: transparent; text-shadow: 0 0 9px rgba(251, 248, 251, .7); }
.dots { display: inline-flex; gap: 5px; }
.dots b { width: 7px; height: 7px; border-radius: 50%; background: #e3dce3; animation: dot 1.1s ease-in-out infinite; }
.dots b:nth-child(2) { animation-delay: .15s; }
.dots b:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chat-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 8px 14px; border: 0; border-radius: 999px;
  font-size: 13px; color: var(--ivory); background: rgba(14, 8, 24, .66);
  box-shadow: inset 0 0 0 1px rgba(235, 87, 181, .3); transition: transform .2s var(--spring), box-shadow .2s;
}
.chat-chip .ic { width: 15px; height: 15px; color: var(--accent); }
.chat-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(235, 87, 181, .6); }
.chat-chip:disabled { opacity: .5; cursor: default; transform: none; }

@media (max-width: 980px) {
  .chart-row { grid-template-columns: minmax(0, 1fr); }
  .chart-board { max-width: 360px; margin-inline: auto; }
  .chat-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-art { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .astro-card, .daily-card, .chat-card { padding: 18px 16px; }
  .birth-form { grid-template-columns: minmax(0, 1fr); }
  .daily-form { grid-template-columns: minmax(0, 1fr); }
  .moon-head { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .moon-copy .overline { text-align: center; }
  .moon-art img { width: 124px; height: 124px; }
  .daily-grid, .daily-traits { grid-template-columns: minmax(0, 1fr); }
  .read-item { grid-template-columns: minmax(0, 1fr); }
  .read-item img { width: 34px; height: 34px; }
  .planet-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .planet-list li span { grid-column: 1; }
  .bubble { max-width: 94%; }
}

/* ========== Scripts without capitals, whose letters join (Arabic) or stack (Indic, Thai, Khmer, Myanmar) ========== */
/* tracking and upper-casing are for Latin, Greek and Cyrillic only; Arabic letters break apart if spaced at all */
html:is([lang="ar"], [lang="fa"], [lang="ur"]) * { letter-spacing: 0 !important; }
html:is([lang="he"], [lang="mr"], [lang="bn"], [lang="gu"], [lang="or"], [lang="ta"], [lang="te"], [lang="kn"], [lang="ml"],
  [lang="th"], [lang="km"], [lang="my"], [lang="ko"], [lang="zh"], [lang="ja"], [lang="fa"], [lang="ur"])
  :is(.kicker, .field-label, .live-chip b, .overline, .summary-card h4, .draw-hint, .daily-date, .lp-label, .brand-name small) {
  letter-spacing: 0; text-transform: none;
}
/* tall stacks and marks above / below need room between lines */
html:is([lang="th"], [lang="km"], [lang="my"], [lang="bn"], [lang="gu"], [lang="or"], [lang="ta"], [lang="te"], [lang="kn"],
  [lang="ml"], [lang="mr"], [lang="hi"], [lang="ar"], [lang="fa"], [lang="ur"]) :is(.hero-title, .section-title, .card-title) {
  line-height: 1.32;
}
html:is([lang="th"], [lang="km"], [lang="my"]) body { line-height: 1.75; }

/* 49 languages: two columns on a wide screen, so the list is not a long scroll */
@media (min-width: 721px) {
  .lang-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; min-width: 400px; max-height: min(74vh, 560px); }
  .lang-list[hidden] { display: none; }
}
