:root {
  --night: #120c24; --night2: #1d1438; --ink: #2a251f; --ink-soft: #6b6257; --paper: #fffaf0; --paper2: #f6ecd8;
  --gold: #c9973a; --gold2: #e8c27a; --saffron: #e2762a; --line: #e3d6bd; --ok: #2e7d4f; --bad: #b0122b; --warn: #b07a12;
  --radius: 14px; --shadow: 0 10px 30px rgba(18, 12, 36, .18);
  --sans: "Noto Sans", "Noto Sans Tamil", "Noto Sans Devanagari", "Noto Sans Malayalam", "Noto Sans Telugu", "Noto Sans Kannada", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Noto Serif Tamil", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; }
a { color: var(--saffron); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(18, 12, 36, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201, 151, 58, .35); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: .5px; }
.logo svg { width: 34px; height: 34px; }
.logo b { color: var(--gold2); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #e9e2f7; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a.on { background: rgba(255, 255, 255, .08); color: var(--gold2); }
.nav select { background: transparent; color: #e9e2f7; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; padding: 6px 8px; max-width: 150px; }
.nav select option { color: #000; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--night); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
}

/* buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; font-family: var(--sans); }
.btn.gold { background: linear-gradient(135deg, #e8c27a, #c9973a); color: #241806; box-shadow: 0 6px 18px rgba(201, 151, 58, .35); }
.btn.saffron { background: linear-gradient(135deg, #f19a4f, #d9601b); color: #fff; }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn.small { padding: 7px 14px; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: default; }
label { display: block; font-size: .85rem; color: var(--ink-soft); margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 600px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
details summary { cursor: pointer; color: var(--ink-soft); margin-top: 12px; font-size: .9rem; }

/* hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 600px at 75% 20%, #3b2470 0%, var(--night2) 45%, var(--night) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding-top: 70px; padding-bottom: 80px; position: relative; z-index: 2; }
.hero p.lead { font-size: 1.15rem; color: #ddd3f2; max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .ctas .ghost { color: var(--gold2); }
.stars { position: absolute; inset: 0; z-index: 1; opacity: .7; }
.galaxy { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; pointer-events: none; }
.hero { min-height: 560px; background: radial-gradient(900px 520px at 72% 45%, #2a1650 0%, #120a26 50%, #07040f 100%); }
.hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.hero .hero-wheel { opacity: .93; }
.hero-wheel { width: 100%; max-width: 480px; justify-self: center; filter: drop-shadow(0 0 40px rgba(232, 194, 122, .25)); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; } .hero-wheel { max-width: 340px; } }

section.band { padding: 64px 0; }
section.band.dark { background: var(--night); color: #efe8fb; }
section.band.cream { background: var(--paper2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(201, 151, 58, .3); box-shadow: none; }
.card h3 { font-size: 1.5rem; color: var(--saffron); }
.dark .card h3 { color: var(--gold2); }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps div { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 18px 18px 18px 58px; position: relative; border: 1px solid var(--line); }
.steps div::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* siddha gallery */
.siddhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.siddha { text-align: center; cursor: pointer; border-radius: var(--radius); padding: 10px 8px 12px; border: 2px solid transparent; transition: .2s; background: rgba(255, 255, 255, .04); }
.siddha:hover { border-color: rgba(232, 194, 122, .5); }
.siddha.on { border-color: var(--gold2); background: rgba(232, 194, 122, .12); }
.siddha img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid rgba(232, 194, 122, .6); background: #2a1d4d; }
.siddha b { display: block; margin-top: 8px; font-size: .95rem; }
.siddha small { display: block; opacity: .75; font-size: .82rem; }

/* app layout */
.app { display: grid; grid-template-columns: 320px 1fr; gap: 22px; padding: 24px 16px 60px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 980px) { .app { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); align-self: start; }
.panel h2 { font-size: 1.6rem; }
.summary { background: var(--paper2); border-radius: 10px; padding: 12px; margin-top: 14px; font-size: .92rem; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.on { color: var(--saffron); border-bottom-color: var(--saffron); font-weight: 700; }
.tabpane { display: none; }
.tabpane.on { display: block; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .charts { grid-template-columns: 1fr; } }
.chartbox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.chartbox h3 { font-size: 1.25rem; text-align: center; margin: 4px 0 6px; color: var(--ink); }
.chartbox svg { width: 100%; height: auto; display: block; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: .9rem; }
.toolbar select { width: auto; padding: 6px 10px; }
.toolbar label { display: inline-flex; gap: 6px; align-items: center; margin: 0; color: var(--ink); }
.toolbar input[type=checkbox] { width: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; background: var(--paper2); color: var(--ink-soft); font-weight: 600; padding: 8px; position: sticky; top: 0; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid #efe6d3; vertical-align: top; }
.tbl tr.hl td { background: #fff3dc; }
.scroll { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pill.ok { background: #e3f3e8; color: var(--ok); } .pill.bad { background: #fbe4e6; color: var(--bad); } .pill.warn { background: #fbf0d9; color: var(--warn); }
.muted { color: var(--ink-soft); font-size: .9rem; }
.notice { background: #fff6e5; border: 1px solid #f0d9a8; border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.err { background: #fde8ea; border-color: #f2b8bf; color: var(--bad); }
.rule { display: flex; gap: 8px; padding: 4px 0; }
.rule .m { width: 18px; font-weight: 700; color: #b8ad9c; }
.rule.met .m { color: var(--ok); } .rule:not(.met) { color: #8a8175; }
.note { color: #34479a; margin: 4px 0 0 26px; }

/* siddha darshan */
.darshan { min-height: calc(100vh - 62px); background: radial-gradient(900px 500px at 50% 0%, #3a2368, var(--night) 70%); color: #f2ecfb; padding: 26px 0 60px; }
.stage { display: grid; grid-template-columns: 360px 1fr; gap: 28px; }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } }
.guru { text-align: center; position: sticky; top: 80px; align-self: start; }
.halo { position: relative; width: min(320px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.halo img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; border-radius: 50%; border: 3px solid var(--gold2); }
.halo::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; z-index: 1; background: radial-gradient(circle, rgba(255, 200, 110, .55), rgba(255, 160, 60, 0) 70%); opacity: .5; transition: .3s; }
.halo.speaking::before { animation: pulse 1.4s ease-in-out infinite; opacity: 1; }
.halo.thinking::before { animation: pulse 2.6s ease-in-out infinite; opacity: .8; }
@keyframes pulse { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.06); } }
.guru h2 { margin-top: 16px; color: var(--gold2); }
.guru p { color: #cfc4e6; font-size: .95rem; }
.convo { display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 90%; padding: 14px 16px; border-radius: 16px; line-height: 1.65; white-space: pre-wrap; }
.bubble.q { align-self: flex-end; background: rgba(255, 255, 255, .1); border-bottom-right-radius: 4px; }
.bubble.a { align-self: flex-start; background: linear-gradient(160deg, rgba(232, 194, 122, .18), rgba(232, 194, 122, .06)); border: 1px solid rgba(232, 194, 122, .35); border-bottom-left-radius: 4px; }
.bubble .acts { margin-top: 8px; display: flex; gap: 8px; }
.bubble .acts button { background: none; border: 1px solid rgba(232, 194, 122, .5); color: var(--gold2); border-radius: 999px; padding: 3px 10px; cursor: pointer; font-size: .82rem; }
.askbar { display: flex; gap: 10px; align-items: flex-end; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--night) 30%); }
.askbar textarea { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(232, 194, 122, .4); min-height: 52px; max-height: 160px; resize: vertical; }
.mic { width: 58px; height: 58px; flex: none; border-radius: 50%; border: 0; background: linear-gradient(135deg, #f19a4f, #d9601b); color: #fff; font-size: 1.5rem; cursor: pointer; box-shadow: 0 0 0 0 rgba(241, 154, 79, .6); }
.mic.on { animation: ring 1.2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(241, 154, 79, .6); } 100% { box-shadow: 0 0 0 18px rgba(241, 154, 79, 0); } }
.darshan .notice { background: rgba(255, 255, 255, .06); border-color: rgba(232, 194, 122, .3); color: #e7dcf7; }
.darshan select, .darshan input { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(232, 194, 122, .35); }
.darshan select option { color: #000; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .88rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.plan.pro { border: 2px solid var(--gold); position: relative; }
.plan .price { font-family: var(--serif); font-size: 3rem; font-weight: 700; }
.plan ul { padding-left: 1.1em; }
.paybtns { display: grid; gap: 10px; margin-top: 14px; }
.modal { position: fixed; inset: 0; background: rgba(10, 6, 20, .6); display: none; place-items: center; z-index: 50; padding: 16px; }
.modal.open { display: grid; }
.modal .box { background: #fff; border-radius: 18px; padding: 24px; width: min(420px, 100%); color: var(--ink); max-height: 90vh; overflow: auto; }
footer { background: var(--night); color: #a99cc4; padding: 30px 0; font-size: .88rem; }
footer a { color: var(--gold2); }
.ac { position: relative; }
.ac ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; list-style: none; margin: 4px 0 0; padding: 4px; max-height: 280px; overflow: auto; box-shadow: var(--shadow); }
.ac li { padding: 8px 10px; cursor: pointer; border-radius: 6px; color: var(--ink); }
.ac li:hover, .ac li.on { background: var(--paper2); }
.ac li small { color: var(--ink-soft); }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(201, 151, 58, .3); border-top-color: var(--gold); border-radius: 50%; animation: sp 1s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
[dir=rtl] .bubble.q { align-self: flex-start; } [dir=rtl] .bubble.a { align-self: flex-end; }
@media print {
  .top, footer, .noprint { display: none !important; }
  body { background: #fff; }
}
.grid2 > div, .grid3 > div { min-width: 0; }
.panel .grid3 { grid-template-columns: 1fr 1fr; }
.panel .grid3 > div:last-child { grid-column: span 2; }

/* the eighteen: choose (left) | let the universe choose (right) */
.twin { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); column-gap: 40px; row-gap: 6px; align-items: start; margin-top: 10px; }
.twin h3 { color: var(--gold2); font-size: 1.45rem; margin: 0 0 6px; }
.muted-l { color: #bfb2da; margin: 0 0 16px; font-size: .95rem; }
.siddhas.compact { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.siddhas.compact .siddha { padding: 8px 6px 10px; text-decoration: none; }
.siddhas.compact .siddha b { font-size: .86rem; margin-top: 6px; line-height: 1.2; }
.siddhas.compact .siddha small { font-size: .78rem; line-height: 1.25; margin-top: 2px; }
.uwheel { position: relative; width: 100%; max-width: 760px; aspect-ratio: 1; margin: 14px auto 0; }
.uw-disc { position: absolute; inset: 0; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, #1a0f33 0 30%, transparent 31%),
    repeating-conic-gradient(from -10deg, rgba(232, 194, 122, .2) 0 20deg, rgba(91, 52, 160, .35) 20deg 40deg);
  border: 3px solid var(--gold2); box-shadow: 0 0 50px rgba(232, 194, 122, .25), inset 0 0 40px rgba(0, 0, 0, .6); }
.uw-disc.spinning { box-shadow: 0 0 80px rgba(255, 200, 110, .55), inset 0 0 40px rgba(0, 0, 0, .6); }
.uw-slot { position: absolute; width: 15%; aspect-ratio: 1; }
.uw-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid rgba(232, 194, 122, .75); background: #2a1d4d; display: block; }
.uw-slot.won img { border-color: #fff; box-shadow: 0 0 0 3px var(--gold2), 0 0 28px 8px rgba(255, 210, 130, .8); }
.uw-pointer { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 3; width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--gold2); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.uw-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%; z-index: 2; cursor: pointer;
  border: 3px solid var(--gold2); background: radial-gradient(circle at 40% 35%, #ffe4a8, #c9973a 70%, #8a5f1c); color: #2a1650;
  font: 700 clamp(1.05rem, 2.1vw, 1.7rem) 'Noto Sans', 'Noto Sans Tamil', sans-serif; box-shadow: 0 0 30px rgba(255, 200, 110, .45); padding: 6px; }
.uw-hub:hover { filter: brightness(1.08); }
.uw-hub:disabled { cursor: wait; filter: saturate(.7); }
.uw-result { min-height: 40px; margin-top: 18px; }
.uw-card { display: flex; gap: 16px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(232, 194, 122, .45); border-radius: var(--radius); padding: 14px; }
.uw-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold2); flex: none; }
.uw-card h3 { margin: 0; font-size: 1.35rem; }
.uw-card h3 small { display: block; font-size: .95rem; color: #ddd3f2; font-weight: 600; }
.uw-k { margin: 0; color: #bfb2da; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.uw-d { margin: 4px 0 0; color: #ddd3f2; font-size: .88rem; }
.uw-acts { margin: 10px 0 0; }
@media (max-width: 900px) { .twin { grid-template-columns: 1fr; } .uw-card { flex-direction: column; text-align: center; } }

.twin-h { color: #e8c27a; text-align: center; margin-bottom: 18px; }
.twin-l, .twin-r { min-width: 0; }
.sid-top { padding-bottom: 26px; }
.siddhas a.siddha.on { outline: 2px solid var(--gold2); outline-offset: -2px; }
.uw-approx { color: #f0b37e; }

/* gender: three buttons */
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; }
.seg label { flex: 1 1 0; min-width: 88px; margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.seg label { position: relative; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px 10px; border: 1.5px solid #e2d6bf;
  border-radius: 12px; background: #fff; font-weight: 600; font-size: .92rem; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.seg label:hover span { border-color: var(--saffron, #e07b2b); }
.seg input:checked + span { background: linear-gradient(135deg, #f0a24a, #d9622b); border-color: #d9622b; color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #e8c27a; outline-offset: 2px; }
.card.tester { border: 1.5px dashed #c9973a; }

/* Begin Siddha Darshan */
.dz-begin { box-shadow: 0 0 26px rgba(255, 200, 110, .45); }
.dz { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex; flex-direction: column; overflow: hidden; animation: dzIn .6s ease; }
.dz.closing { animation: dzOut .45s ease forwards; }
@keyframes dzIn { from { opacity: 0; } } @keyframes dzOut { to { opacity: 0; } }
.dz-stars { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 72% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
    radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 25% 85%, #ddd, transparent), radial-gradient(1px 1px at 58% 38%, #ccc, transparent),
    radial-gradient(1.2px 1.2px at 92% 88%, #fff, transparent), radial-gradient(1px 1px at 5% 55%, #fff, transparent); }
.dz-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, #fff, #c9d6ff 40%, transparent 75%); opacity: 0; pointer-events: none; }
.dz-bolt { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dz-bolt path { fill: none; stroke: #fff; stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 0 10px #9fb6ff) drop-shadow(0 0 30px #7b8cff); vector-effect: non-scaling-stroke; }
.dz.strike .dz-flash { animation: dzFlash .55s ease-out; }
.dz.strike .dz-bolt { animation: dzBolt .5s ease-out; }
@keyframes dzFlash { 0% { opacity: 0; } 8% { opacity: .95; } 20% { opacity: .25; } 30% { opacity: .8; } 100% { opacity: 0; } }
@keyframes dzBolt { 0% { opacity: 0; } 6% { opacity: 1; } 35% { opacity: .9; } 100% { opacity: 0; } }
.dz-stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 18px 8px; text-align: center; opacity: 0; transform: scale(.96); transition: opacity 2.2s ease, transform 3s ease; }
.dz.present .dz-stage { opacity: 1; transform: none; }
.dz-frame { position: relative; width: min(52vh, 78vw); aspect-ratio: 2 / 3; max-height: 62vh; border-radius: 48% 48% 14px 14px / 34% 34% 14px 14px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(232, 194, 122, .8), 0 0 60px 10px rgba(255, 190, 100, .35), 0 0 160px 40px rgba(120, 80, 220, .25); }
.dz-frame img, .dz-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dz-frame video { opacity: 0; transition: opacity 1.2s ease; } .dz-frame video.on { opacity: 1; }
.dz.speaking .dz-frame { animation: dzGlow 2.4s ease-in-out infinite; }
@keyframes dzGlow { 50% { box-shadow: 0 0 0 2px rgba(255, 220, 150, 1), 0 0 90px 22px rgba(255, 200, 110, .55), 0 0 180px 50px rgba(140, 100, 240, .3); } }
.dz-name { margin: 16px 0 4px; color: #e8c27a; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.dz-name small { display: block; color: #ddd3f2; font-size: .6em; font-weight: 600; }
.dz-greet { max-width: 720px; margin: 6px auto 0; color: #f3ead8; font-size: clamp(.95rem, 1.6vw, 1.1rem); line-height: 1.6; min-height: 1.6em; }
.dz-cap { margin: 10px 0 0; color: #a99cc9; font-size: .78rem; }
.dz-note { margin: 8px 0 0; color: #f0b37e; font-size: .85rem; }
.dz-bar { position: relative; display: flex; justify-content: center; gap: 12px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); }
.dz-btn { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid rgba(232, 194, 122, .7); background: rgba(255, 255, 255, .06); color: #f3ead8; font: 600 .95rem 'Noto Sans', 'Noto Sans Tamil', sans-serif; cursor: pointer; }
.dz-btn.gold { background: linear-gradient(135deg, #ffe4a8, #c9973a); color: #2a1650; border-color: transparent; }
.dz-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dz-stage { transition: none; } .dz.speaking .dz-frame { animation: none; } }

/* the eighteen: wider band; headings share one row so the grid and the wheel start level */
#sidSection { max-width: 1400px; }
.twin-lh, .twin-rh { margin: 0; align-self: start; }
.twin-ld, .twin-rd { margin: 0 0 4px; align-self: start; }
.twin-lb, .twin-rb { min-width: 0; }
.twin .siddhas.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .twin { grid-template-columns: 1fr; }
  .twin-lh { order: 1; } .twin-ld { order: 2; } .twin-lb { order: 3; } .twin-rh { order: 4; margin-top: 26px; } .twin-rd { order: 5; } .twin-rb { order: 6; }
  .twin .siddhas.compact { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
/* the consultation opens only after a Siddha is chosen */
.darshan.waiting { display: none; }

.dz-choices { position: relative; display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 12px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); }
.dz-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; min-width: min(300px, 86vw); padding: 12px 22px; border-radius: 18px; cursor: pointer;
  border: 1.5px solid rgba(232, 194, 122, .8); color: #f3ead8; font: 600 1.02rem 'Noto Sans', 'Noto Sans Tamil', sans-serif; background: rgba(255, 255, 255, .07); transition: transform .15s, box-shadow .2s; }
.dz-choice.speak { background: linear-gradient(135deg, #ffe4a8, #c9973a); color: #2a1650; border-color: transparent; box-shadow: 0 0 34px rgba(255, 200, 110, .45); }
.dz-choice:hover { transform: translateY(-2px); }
.dz-choice small { font-weight: 500; font-size: .8rem; opacity: .85; }
.dz-choice small:empty { display: none; }
.dz-choice:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- the big question countdown (speak + write) ---------- */
.qcount { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(232, 194, 122, .55); min-width: 240px; }
.qc-num { grid-row: 1 / 3; font: 800 clamp(2.6rem, 6vw, 3.6rem)/1 'Noto Sans', sans-serif; color: #ffd98a; text-shadow: 0 0 22px rgba(255, 200, 110, .55); min-width: 1.2ch; text-align: center; }
.qc-num.low { color: #ff9f6e; }
.qc-lab { font-weight: 700; font-size: 1rem; color: #f3ead8; align-self: end; }
.qcount .btn { justify-self: start; margin-top: 4px; }
.qcount.pulse { animation: qcPulse .5s ease 3; }
@keyframes qcPulse { 50% { box-shadow: 0 0 0 4px rgba(255, 200, 110, .6); } }

/* ---------- speak with the Siddha ---------- */
.sp { min-height: calc(100vh - 62px); background: radial-gradient(1000px 640px at 50% 30%, #2b1752, #0b0618 70%); color: #f3ead8; padding: 16px 0 30px; display: flex; flex-direction: column; }
.sp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; width: 100%; }
.sp-chip { margin: 0; max-width: 560px; }
.sp-chip a, .wr-head .chip a { color: #e8c27a; }
.sp-stage { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 16px 0; }
.sp-frame { position: relative; width: min(46vh, 80vw); aspect-ratio: 3 / 4; border-radius: 48% 48% 18px 18px / 36% 36% 18px 18px; overflow: hidden; background: #120a24;
  box-shadow: 0 0 0 2px rgba(232, 194, 122, .85), 0 0 60px 12px rgba(255, 190, 100, .3), 0 0 170px 40px rgba(120, 80, 220, .25); }
.sp-frame canvas { width: 100%; height: 100%; display: block; }
.sp-frame.speaking { animation: dzGlow 2.4s ease-in-out infinite; }
.sp-frame.thinking { animation: spThink 2s ease-in-out infinite; }
@keyframes spThink { 50% { box-shadow: 0 0 0 2px rgba(170, 150, 255, .9), 0 0 70px 16px rgba(140, 110, 255, .45), 0 0 170px 40px rgba(120, 80, 220, .3); } }
.sp-name { margin: 14px 0 2px; color: #e8c27a; font-size: clamp(1.5rem, 3.4vw, 2.2rem); text-align: center; }
.sp-name small { display: block; color: #ddd3f2; font-size: .55em; font-weight: 600; }
.sp-caption { max-width: 820px; min-height: 4.8em; margin: 10px auto 0; text-align: center; font-size: clamp(1.02rem, 1.9vw, 1.25rem); line-height: 1.65; }
.sp-caption span { color: rgba(243, 234, 216, .4); transition: color .3s; }
.sp-caption span.now { color: #fff8e6; }
.sp-caption span.past { color: rgba(243, 234, 216, .7); }
.sp-ask { display: flex; gap: 16px; align-items: center; margin-top: 16px; max-width: 900px; }
.sp-mic { flex: none; width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer; font-size: 2.2rem;
  background: radial-gradient(circle at 40% 35%, #ffb36b, #d9622b 70%); box-shadow: 0 0 34px rgba(255, 140, 70, .55); color: #fff; }
.sp-mic.on { animation: micOn 1s ease-in-out infinite; }
@keyframes micOn { 50% { box-shadow: 0 0 0 10px rgba(255, 140, 70, .25), 0 0 50px rgba(255, 140, 70, .8); } }
.sp-type { flex: 1; min-width: 0; }
.sp-type textarea { width: 100%; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(232, 194, 122, .4); border-radius: 14px; padding: 12px; font: inherit; }
.sp-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.sp-switch, .wr-switch { color: #e8c27a; margin-left: auto; font-size: .92rem; }
.sp-note { color: #a99cc9; font-size: .8rem; text-align: center; margin-top: 12px; }
@media (max-width: 700px) { .sp-ask { flex-direction: column; } .sp-mic { width: 80px; height: 80px; } .qcount { min-width: 0; width: 100%; } }

/* ---------- ask in writing ---------- */
.wr { min-height: calc(100vh - 62px); background: radial-gradient(900px 400px at 50% 0%, #3a2368, #120a24 60%); padding: 18px 0 50px; }
.wr-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #f3ead8; }
.wr-guru { display: flex; gap: 14px; align-items: center; }
.wr-guru img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid #e8c27a; box-shadow: 0 0 24px rgba(255, 200, 110, .35); }
.wr-guru h1 { margin: 0; color: #e8c27a; font-size: 1.8rem; }
.wr-guru h1 small { display: block; font-size: .6em; color: #ddd3f2; }
.wr-guru .chip { margin: 6px 0 0; }
.wr-body { max-width: 900px; margin-top: 20px; }
.wr-intro { color: #f3ead8; font-style: italic; text-align: center; margin: 4px auto 18px; max-width: 720px; line-height: 1.6; }
.wr-card { background: #fffaf0; color: #2a251f; border-radius: 18px; padding: 22px 26px; margin: 0 0 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); border-top: 4px solid #c9973a; }
.wr-q { font-weight: 700; font-size: 1.08rem; color: #5b3a12; margin: 0 0 10px; }
.wr-a h3 { color: #8a5a12; font-size: 1.12rem; margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #ecdcbc; }
.wr-a p, .wr-a li { line-height: 1.7; }
.wr-a ul { padding-left: 1.2em; margin: 6px 0; }
.wr-meta { margin: 14px 0 0; color: #8b7d6b; font-size: .85rem; }
.linkbtn { background: none; border: 0; color: #a0661a; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.wr-ask { background: rgba(255, 255, 255, .06); border: 1px solid rgba(232, 194, 122, .35); border-radius: 18px; padding: 16px; }
.wr-ask textarea { width: 100%; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(232, 194, 122, .4); border-radius: 12px; padding: 12px; font: inherit; }
.wr-acts { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.wr-free { color: #cfc3e8; margin: 8px 0 0; }
.wr-body > .notice { margin-top: 16px; background: rgba(255, 255, 255, .06); color: #e7dcf7; border-color: rgba(232, 194, 122, .3); }
@media print { body.print-one * { visibility: hidden; } body.print-one .wr-card.printing, body.print-one .wr-card.printing * { visibility: visible; }
  body.print-one .wr-card.printing { position: absolute; inset: 0; box-shadow: none; } }

.dz-bar[hidden], .dz-choices[hidden] { display: none; }

/* Darshan on phones: the buttons always stay on screen */
.dz { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
.dz-stage { flex: 1 0 auto; }
.dz-bar, .dz-choices { position: sticky; bottom: 0; z-index: 3; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 28%); padding-top: 22px; }
@media (max-width: 700px), (max-height: 760px) {
  .dz-stage { justify-content: flex-start; padding-top: 14px; }
  .dz-frame { width: min(64vw, 26vh); max-height: none; }
  .dz-name { margin-top: 10px; font-size: 1.45rem; }
  .dz-greet { font-size: .95rem; line-height: 1.55; }
  .dz-cap { font-size: .72rem; }
  .dz-choices { flex-direction: column; align-items: stretch; gap: 8px; }
  .dz-choice { min-width: 0; min-height: 56px; padding: 10px 14px; font-size: .95rem; }
  .dz-choices .dz-btn { order: 3; align-self: center; }
}
/* speaking page on phones: smaller arch so the question box is reachable */
@media (max-width: 700px) {
  .sp-frame { width: min(70vw, 34vh); }
  .sp-caption { font-size: 1rem; min-height: 3em; }
}

/* ---- astrologer's chart page: menu, grouped tabs, tool forms, written palan ---- */
.menubar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin-bottom: 14px; box-shadow: var(--shadow); }
.menubar button { background: none; border: 0; border-radius: 8px; padding: 7px 11px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.menubar button:hover, .menubar button:focus-visible { background: var(--paper2); }
.menubar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.tabgroups { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tabgroups button { background: var(--paper2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.tabgroups button.on { background: var(--saffron); border-color: var(--saffron); color: #fff; }
@media (max-width: 640px) {
  .menubar { overflow-x: auto; flex-wrap: nowrap; }
  .tabgroups button { padding: 7px 13px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs button { white-space: nowrap; padding: 9px 11px; }
}
.tool-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.tool-form fieldset { border: 0; padding: 0; margin: 0; }
.tool-form legend { font-weight: 700; color: var(--saffron); margin-bottom: 6px; }
.tool-form .hrs { display: flex; gap: 6px; align-items: center; }
.tool-form .hrs input { width: 5em; }
.tbl.plain td { border-bottom: 0; padding: 3px 6px; }
.tbl tr.hl2 td { background: #f6e3c4; }
.tbl tr.pick { cursor: pointer; }
.tbl tr.pick:hover td { background: #fbf3e2; }
.tbl td.small { font-size: .82rem; }
.hlchip { background: #fff3dc; border-radius: 6px; padding: 1px 6px; font-size: .85rem; }
:is(.palan, .rep) p { line-height: 1.65; margin: 8px 0; }
.palan h2 { color: #a87a1c; }
:is(.palan, .rep) h3 { color: #a87a1c; margin-top: 20px; }
:is(.palan, .rep) .ind { margin-left: 18px; }
.palan .yn { font-size: 1.02rem; }
:is(.app, .rep) :is(.g) { color: #2e7d4f; } :is(.app, .rep) .r { color: #b0122b; } :is(.app, .rep) .a { color: #b07a12; } :is(.app, .rep) .o { color: #7a8b2e; } :is(.app, .rep) .m { color: #6b6257; }
.modal .box.wide { width: min(720px, 100%); }
.printhead { display: none; }
.flash { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #2a251f; color: #fff; padding: 10px 18px; border-radius: 999px; opacity: 0; transition: .25s; z-index: 80; pointer-events: none; }
.flash.on { opacity: 1; transform: translate(-50%, 0); }
.flash.bad { background: #b0122b; }
@media print {
  .app { display: block; padding: 0; }
  .app > aside, .menubar, .tabgroups, .tabs { display: none !important; }
  .printhead { display: block; color: #a87a1c; font-size: 1.4rem; margin: 0 0 10px; }
  .tabpane:not(.on) { display: none !important; }
  .charts { grid-template-columns: 1fr 1fr; }
  .tbl { font-size: 9pt; } .tbl th { position: static; }
  tr { page-break-inside: avoid; }
}
.app > main, .app > aside, .charts > * { min-width: 0; }
.herebar { background: #fffaf0; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: -6px 0 14px; font-size: .92rem; }
.herebar .linkbtn { margin-left: 6px; }
.herebar .here-help { margin: 4px 0 0; font-size: .8rem; }
.herebar #hereEdit { margin-top: 8px; }

/* Chart page: tab groups on the left, the report and Siddha actions on the right */
.navrow { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; margin-bottom: 6px; }
.navrow .tabgroups { margin-bottom: 0; }
.actbar { display: flex; gap: 10px; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 700; font-size: .92rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease; white-space: nowrap; }
.act:hover { transform: translateY(-1px); }
.act .ico { font-size: 1rem; line-height: 1; }
.act-free { background: #fff; color: var(--ink); border-color: #e2c98f; box-shadow: 0 2px 8px rgba(120, 80, 20, .08); }
.act-free:hover { border-color: var(--gold, #c9952e); }
.act-gold { position: relative; color: #3a2400; border-color: #b9821f;
  background: linear-gradient(135deg, #f6dc8a 0%, #e0aa3e 45%, #c78a24 100%);
  animation: actGlow 1.6s ease-in-out infinite; }
.act-gold::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%); background-size: 250% 100%;
  animation: actShine 2.4s linear infinite; }
@keyframes actGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 168, 48, .55), 0 2px 10px rgba(180, 120, 20, .25); }
  50% { box-shadow: 0 0 0 7px rgba(232, 168, 48, 0), 0 0 22px 4px rgba(255, 200, 80, .75); }
}
@keyframes actShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .act-gold, .act-gold::after { animation: none; } }
.propanel { position: relative; background: #fffaf0; border: 1px solid #e9c46a; border-radius: 14px; padding: 16px 20px; margin: 10px 0 14px; box-shadow: 0 6px 22px rgba(160, 110, 20, .12); }
.propanel h3 { margin: 0 0 10px; }
.propanel .x { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
@media (max-width: 700px) { .actbar { width: 100%; } .act { flex: 1 1 auto; justify-content: center; padding: 9px 12px; font-size: .86rem; } }

/* live video face (Simli) over the portrait */
.sp-frame .sp-live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.sp-frame.live .sp-live { opacity: 1; }
.sp-frame.live canvas { visibility: hidden; }

/* life-area bars */
.lcell { min-width: 190px; white-space: nowrap; }
.lbar { display: inline-block; width: 110px; height: 10px; background: #f0e6d2; border-radius: 6px; overflow: hidden; vertical-align: middle; }
.lbar span { display: block; height: 100%; border-radius: 6px; }
.lnum { display: inline-block; width: 26px; text-align: right; font-weight: 700; margin-left: 6px; }
.lb-very_weak { background: #c0392b; } .lb-weak { background: #e67e22; } .lb-average { background: #d4ac0d; } .lb-good { background: #7cb342; } .lb-very_good { background: #2e8b57; }
.lb-t-very_weak, .lb-t-weak { color: #b03a2e; } .lb-t-good, .lb-t-very_good { color: #2e7d32; } .lb-t-average { color: #8a6d00; }

/* My day */
.md-verdict { border-left: 5px solid #c9a227; }
.md-verdict.md-good { border-left-color: #2e8b57; }
.md-verdict.md-careful { border-left-color: #c0392b; }
.md-verdict .lbar { display: inline-block; vertical-align: middle; width: 180px; }

/* depth portrait: Siddha and background on separate layers (Speak page, Darshan) */
.depth { isolation: isolate; }
.depth img, .sp-frame .dp-flat, .dz-frame .dp-flat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; will-change: transform; }
.depth .dp-bg { filter: brightness(.86) saturate(.95); }
.depth .dp-fg { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.depth::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 220, 150, .12), transparent 55%), radial-gradient(ellipse at 50% 120%, rgba(18, 10, 36, .55), transparent 60%); }
/* porutham: the open chart's row */
.mt-open { background: #fbf3e2; border: 1px solid #f0e2c4; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; gap: 8px 18px; }
.mt-open label { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }

/* home: the question first */
.askbox { margin-top: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(232,194,122,.45); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 40px rgba(232,194,122,.12); }
.askbox label { font-weight: 700; color: var(--gold2); }
.askbox textarea { width: 100%; resize: vertical; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(10,6,22,.6); color: #fff; font: inherit; font-size: 1.05rem; padding: 12px 14px; }
.askbox textarea::placeholder { color: #8f86a8; }
.askbox-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: #ddd3f2; font-size: .95rem; }
.askbox a { color: var(--gold2); font-size: .95rem; }
.askbox .notice.err { margin: 0; }
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; color: #c9bfe0; }
.hero-chart { margin: 12px 0 0; font-size: .95rem; }
.hero-chart a { color: var(--gold2); }
.qready { display: flex; gap: 14px; align-items: center; background: rgba(232,194,122,.12); border: 1px solid rgba(232,194,122,.55); border-radius: 14px; padding: 12px 16px; margin: 0 0 20px; color: #fff; line-height: 1.5; }
.qready svg { color: var(--gold2); flex: none; }
.qready div { flex: 1; }
.qready b { color: var(--gold2); }
.qready a { color: var(--gold2); white-space: nowrap; }
@media (max-width: 600px) { .qready { flex-wrap: wrap; } }

/* after a free answer: save it, and the next question with its price */
.after { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.after h3 { margin: 0 0 6px; font-size: 1.2rem; }
.after p { margin: 0 0 10px; font-size: .92rem; line-height: 1.55; }
.after-save { background: #fffaf0; color: var(--ink); border-radius: 16px; padding: 18px; }
.after-next { background: rgba(232,194,122,.08); border: 1px solid rgba(232,194,122,.45); border-radius: 16px; padding: 18px; }
.wr-card .after-next { background: var(--paper2); border-color: var(--line); }
.after-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.after-next a { color: var(--saffron); font-size: .92rem; }
.after-refund { font-size: .8rem !important; opacity: .75; margin: 8px 0 0 !important; }
.sp-after { max-width: 760px; }
.sp .after-next { color: #fff; }
.sp .after-next a { color: var(--gold2); }
.pulse-btn { animation: actGlow 1.6s ease-in-out infinite; }

/* footer links, legal pages */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--gold2); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.4em; }
.legal p, .legal li { line-height: 1.7; }
.legal-ta { display: none; }
html[lang="ta"] .legal-ta { display: block; }
html[lang="ta"] .legal-en { display: none; }
.legal-updated { margin-top: 2em; font-size: .85rem; color: var(--ink-soft); }

/* home hero: a large live sky wheel behind the right side; where it passes under the question it is faded */
@media (min-width: 861px) {
  .hero .wrap { grid-template-columns: minmax(0, 570px) 1fr; }
  .hero .hero-ask { position: relative; z-index: 2; }
  .hero .hero-wheel { position: absolute; z-index: 1; top: 70px; height: 660px; right: -70px; width: auto; max-width: none; aspect-ratio: 1000 / 670;
    opacity: 1; display: flex; align-items: center; pointer-events: none;
    filter: none;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.14) 0%, rgba(0,0,0,.16) 22%, rgba(0,0,0,.35) 32%, rgba(0,0,0,.65) 40%, rgba(0,0,0,.9) 46%, #000 50%);
            mask-image: linear-gradient(to right, rgba(0,0,0,.14) 0%, rgba(0,0,0,.16) 22%, rgba(0,0,0,.35) 32%, rgba(0,0,0,.65) 40%, rgba(0,0,0,.9) 46%, #000 50%); }
  .hero .hero-wheel svg { width: 100%; height: auto; display: block; }
  .hero .askbox { background: rgba(18, 10, 38, .72); backdrop-filter: blur(2px); }
  /* a soft dark veil behind the words, so they stay readable where the wheel passes under them */
  .hero .hero-ask::before { content: ''; position: absolute; z-index: -1; top: -40px; bottom: -40px; left: -45vw; right: -70px;
    background: linear-gradient(to right, rgba(7, 4, 15, .78) 0%, rgba(7, 4, 15, .7) 80%, rgba(7, 4, 15, 0) 100%); pointer-events: none; }
}

/* enlarge a chart to full screen */
.chartbox { position: relative; }
.chartbox > .enl { position: absolute; top: 8px; right: 8px; z-index: 2; font: inherit; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 8px;
  border: 1px solid #c9973a; background: #fff3d6; color: #5a3d12; cursor: pointer; }
.chartbox > .enl:hover { background: #e8c27a; }
.enl-over { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 6, 22, .82); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 12px; }
.enl-panel { background: var(--paper); border-radius: 14px; box-shadow: 0 10px 60px rgba(0,0,0,.5); padding: 8px 12px 12px; display: flex; flex-direction: column;
  width: min(96vw, calc((96vh - 60px) * var(--ar))); max-height: 96vh; }
.enl-bar { display: flex; align-items: center; gap: 10px; }
.enl-bar h3 { flex: 1; margin: 4px 0; text-align: center; font-size: 1.2rem; color: var(--ink); }
.enl-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; }
.enl-x:hover { background: #fde8d8; }
.enl-chart { overflow: auto; }
.enl-chart svg { width: 100%; height: auto; display: block; }
.chartbox:has(> .enl) > h3 { padding-inline: 104px; }
@media (max-width: 600px) { .chartbox:has(> .enl) > h3 { padding-inline: 0; margin-top: 34px; } }
