/* Hast Rekha by MyShaddi: the palm app shell (/palm/). Mobile first, built on the MyShaddi tokens. */
.hr-body { background: var(--ms-ivory); color: var(--ms-text); font-family: var(--ms-font-body); min-height: 100dvh; }
html[lang="hi"] .hr-body { font-family: var(--ms-font-hindi), var(--ms-font-body); }
.hr-frame { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ms-ivory); }
@media (min-width: 600px) { .hr-frame { box-shadow: var(--ms-shadow-lg); } }

.hr-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--ms-wine); color: #fff; }
.hr-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.hr-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.hr-brand b { font-family: var(--ms-font-royal); font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; }
.hr-brand small { color: var(--ms-gold-light); font-size: .72rem; letter-spacing: .06em; }
.hr-lang { border: 1px solid var(--ms-gold-border-strong); background: transparent; color: var(--ms-gold-light); border-radius: var(--ms-r-pill); padding: 6px 14px; font-size: .85rem; min-height: 36px; }
.hr-lang:hover, .hr-lang:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }

#hrView { flex: 1; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); outline: none; }
.hr-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ms-glass-bg); backdrop-filter: var(--ms-glass-blur); border-top: 1px solid var(--ms-border); padding-bottom: env(safe-area-inset-bottom); }
.hr-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; min-height: 56px; color: var(--ms-text-muted); text-decoration: none; font-size: .78rem; }
.hr-nav a i { font-size: 1.25rem; }
.hr-nav a.active { color: var(--ms-wine); font-weight: 600; }

.hr-hero { margin: -16px -16px 16px; padding: 28px 20px 32px; background: var(--ms-wine-gradient); color: #fff; text-align: center; border-radius: 0 0 28px 28px; }
.hr-hero img { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--ms-shadow-gold); }
.hr-hero h1 { font-family: var(--ms-font-royal); color: #fff; font-size: 1.7rem; margin: 16px 0 4px; letter-spacing: .03em; }
.hr-hero .hi { color: var(--ms-gold-light); font-size: 1.1rem; margin-bottom: 10px; }
.hr-hero p { color: rgba(255, 255, 255, .86); margin: 0 auto; max-width: 400px; }
.hr-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hr-points li { display: flex; gap: 12px; align-items: flex-start; }
.hr-points i { flex: 0 0 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ms-gold-soft); color: var(--ms-gold-text); font-size: 1.1rem; }
.hr-h { font-family: var(--ms-font-royal); color: var(--ms-wine); font-size: 1.2rem; letter-spacing: .02em; }
.hr-note { font-size: .8rem; color: var(--ms-text-muted); }
.hr-pass { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--ms-r-md); background: var(--ms-gold-soft); border: 1px solid var(--ms-gold-border); }
.hr-pass i { font-size: 1.4rem; color: var(--ms-gold-text); }
.hr-meter { display: flex; gap: 6px; margin-top: 8px; }
.hr-meter span { flex: 1; height: 8px; border-radius: 6px; background: var(--ms-sand-dark); }
.hr-meter span.on { background: var(--ms-gold-gradient); }
.hr-price { font-family: var(--ms-font-royal); font-size: 2.2rem; color: #fff; line-height: 1; }
.hr-lock { display: flex; align-items: center; gap: 8px; color: var(--ms-text-muted); font-size: .85rem; }
.hr-wait { display: flex; align-items: center; gap: 10px; }
.hr-li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ms-border-subtle); }
.hr-li:first-child { border-top: 0; }
.hr-li .grow { flex: 1; min-width: 0; }
.hr-body .btn { min-height: 44px; }

/* Daily Rashifal */
.hr-rashis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hr-rashi { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--ms-border); background: var(--ms-surface, #fff); font-size: .8rem; color: var(--ms-text); cursor: pointer; transition: transform .15s, border-color .15s; }
.hr-rashi .sym { font-size: 1.6rem; line-height: 1; color: var(--ms-maroon); }
.hr-rashi:hover, .hr-rashi.on { border-color: var(--ms-gold); transform: translateY(-2px); }
.hr-rashi-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #8a2140, #3e0c1a); }
.hr-rashi-head .sym { font-size: 2.4rem; line-height: 1; color: var(--ms-gold-light, #F3D27A); text-shadow: 0 0 18px rgba(243, 210, 122, .6); }
.hr-rashi-head .grow { flex: 1; }
.hr-rashi-head .hr-h { color: #fff; }
.hr-rashi-head .btn { color: #fff; border-color: rgba(255, 255, 255, .4); }
.hr-day { padding: 18px; border-radius: 18px; background: linear-gradient(160deg, #fffaf0, #fbefe0); border: 1px solid rgba(201, 160, 80, .35); }
.hr-day-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ms-maroon); color: #fff; font-size: .75rem; letter-spacing: .04em; }
.hr-mood { font-size: 1.02rem; font-weight: 500; margin: 6px 0 12px; }
.hr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hr-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--ms-border); font-size: .8rem; }
.hr-more dt { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ms-maroon); margin-top: 8px; }
.hr-more dd { margin: 2px 0 0; font-size: .9rem; }

/* Scan: a soft golden glow around the scan window while the reading runs */
.palm-stage { box-shadow: 0 0 0 1px rgba(232, 184, 74, .35), 0 12px 40px rgba(232, 184, 74, .25); }
.palm-status { backdrop-filter: blur(6px); border: 1px solid rgba(243, 210, 122, .35); }
@media (prefers-reduced-motion: reduce) { .hr-rashi { transition: none; } }

/* Reading told like a pandit: flowing story, gentle wave of sentences */
.hr-guru { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #8a2140, #3e0c1a); box-shadow: 0 10px 30px rgba(91, 19, 39, .25); }
.hr-guru p { font-size: 1.02rem; line-height: 1.6; }
.hr-guru-mark { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 1.5rem; color: #3e0c1a; background: linear-gradient(135deg, #f3dfac, #d8b15d 55%, #b3862d); box-shadow: 0 0 18px rgba(243, 210, 122, .6); }
.hr-section { background: linear-gradient(180deg, #fff, #fffaf2); }
.hr-story { font-size: 1.02rem; line-height: 1.75; color: var(--ms-text); }
.hr-s { opacity: .08; transition: opacity .9s ease var(--d, 0s), filter .9s ease var(--d, 0s); filter: blur(2px); }
.hr-story.hr-in .hr-s { opacity: 1; filter: none; }
.hr-s-open { display: block; margin-bottom: 8px; font-family: "Playfair Display", "Noto Serif Devanagari", serif; font-style: italic; color: var(--ms-maroon); }
.hr-s-close { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(201, 160, 80, .5); color: #8a5f22; font-style: italic; }
.hr-why { margin-top: 12px; font-size: .8rem; color: var(--ms-text-muted); }
.hr-why summary { cursor: pointer; color: var(--ms-gold-dark, #8a5f22); }
.hr-why ul { margin: 6px 0 0; padding-left: 18px; }
@media (prefers-reduced-motion: reduce) { .hr-s { opacity: 1; filter: none; transition: none; } }

/* Jyotish Timings */
.hr-tim-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--ms-text); background: linear-gradient(135deg, #fff8ea, #f7e7c8); border: 1px solid rgba(201, 160, 80, .45); }
.hr-tim-link > i:first-child { font-size: 1.6rem; color: var(--ms-maroon); }
.hr-tim-link .grow { flex: 1; }
.hr-akshar { display: inline-block; padding: 2px 12px; border-radius: 10px; background: var(--ms-maroon); color: #fff; font-weight: 600; }
.hr-wins { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hr-wins li { padding: 10px 12px; border-radius: 12px; background: #fffaf2; border: 1px solid rgba(201, 160, 80, .3); }
.hr-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; }
.hr-tag.strong { background: #2e7d32; color: #fff; }
.hr-tag.good { background: #f3dfac; color: #5b1327; }
.hr-places { display: grid; gap: 4px; margin-top: 6px; }
.hr-place { text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--ms-border); background: #fff; font-size: .85rem; }
.hr-place:hover { border-color: var(--ms-gold); }
