/* Homepage component styles; colors are supplied by theme.css. */
.home-greeting-wrap {
    margin: 2px 15px 14px;
}

.home-greeting-card {
    position: relative;
    min-height: 128px;
    padding: 18px 128px 18px 18px;
    overflow: hidden;
    border: 1px solid rgba(241, 213, 139, 0.32);
    border-radius: 20px;
    background:
        radial-gradient(circle at 86% 50%, rgba(241, 213, 139, 0.2), transparent 38%),
        radial-gradient(120% 140% at 0% 0%, rgba(197, 43, 66, 0.55), transparent 60%),
        linear-gradient(125deg, #5a1229 0%, #3a0f22 55%, #1f0d1a 100%);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 226, 138, 0.18);
    animation: hg-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* shimmer sweep */
.home-greeting-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 244, 214, 0.1) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: hg-shimmer 6s ease-in-out 1.2s infinite;
    pointer-events: none;
}

.hg-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hg-twinkle { animation: hg-twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hg-twinkle.d2 { animation-delay: 0.8s; }
.hg-twinkle.d3 { animation-delay: 1.6s; }
.hg-twinkle.d4 { animation-delay: 2.3s; }

.hg-shooting {
    opacity: 0;
    animation: hg-shoot 7s ease-in 2s infinite;
}

.hg-orb {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 116px;
    height: 116px;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 12px rgba(241, 213, 139, 0.25));
}

.hg-ring, .hg-rays, .hg-sun, .hg-glow, .hg-moon { transform-box: view-box; transform-origin: 60px 60px; }
.hg-ring-outer { animation: hg-spin 26s linear infinite; }
.hg-ring-inner { animation: hg-spin 14s linear infinite reverse; }
.hg-rays { animation: hg-spin 40s linear infinite; opacity: 0.85; }
.hg-sun { animation: hg-pulse 3.6s ease-in-out infinite; }
.hg-glow { animation: hg-glow 3.6s ease-in-out infinite; }
.hg-moon { transform-origin: 97px 27px; animation: hg-float 5s ease-in-out infinite; }

.home-greeting-text { position: relative; z-index: 1; }

.home-greeting-kicker,
.home-greeting-title,
.home-greeting-subtitle {
    animation: hg-fade-up 0.6s ease-out both;
}

.home-greeting-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 4px 11px;
    border: 1px solid rgba(255, 226, 138, 0.4);
    border-radius: 999px;
    color: var(--theme-gold-light);
    background: rgba(255, 201, 40, 0.12);
    font-family: 'OpenSans-Bold', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    animation-delay: 0.15s;
}

.home-greeting-kicker i { font-size: 8px; animation: hg-twinkle 2.4s ease-in-out infinite; }

.home-greeting-title {
    margin: 0;
    color: #fff;
    font-family: 'OpenSans-ExtraBold', sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.3px;
    animation-delay: 0.28s;
}

.home-greeting-title span {
    background: linear-gradient(90deg, #f1d58b, #fff4d6, #d9aa42, #f1d58b);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: hg-gold-flow 6s linear infinite;
}

.home-greeting-subtitle {
    margin: 7px 0 0;
    color: rgba(255, 244, 214, 0.82);
    font-family: 'OpenSans-Bold', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    animation-delay: 0.42s;
}

@keyframes hg-rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes hg-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hg-shimmer { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes hg-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes hg-spin { to { transform: rotate(360deg); } }
@keyframes hg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes hg-glow { 0%, 100% { opacity: 0.6; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes hg-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-8deg); } }
@keyframes hg-gold-flow { to { background-position: -250% 0; } }
@keyframes hg-shoot {
    0% { opacity: 0; transform: translate(40px, 10px) rotate(18deg); }
    3% { opacity: 1; }
    12% { opacity: 0; transform: translate(220px, 70px) rotate(18deg); }
    100% { opacity: 0; transform: translate(220px, 70px) rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
    .home-greeting-card, .home-greeting-card::after, .home-greeting-card *,
    .home-greeting-card svg * { animation: none !important; }
    .hg-shooting { display: none; }
}

.focus-mood-wrap {
    padding: 0 15px;
    margin: 0 0 16px;
}

.focus-mood-card {
    border-radius: 20px;
    padding: 18px 14px 16px;
    border: 1px solid rgba(255, 201, 40, 0.4);
    background: linear-gradient(165deg, var(--theme-maroon) 0%, var(--theme-maroon) 100%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.focus-mood-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.focus-mood-header h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.2px;
    font-family: 'OpenSans-ExtraBold', sans-serif;
}

.focus-mood-info {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 1px solid rgba(143, 0, 38, 0.35);
    background: rgba(255, 248, 223, 0.8);
    color: var(--theme-maroon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.focus-mood-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.focus-mood-item {
    text-align: center;
}

.focus-mood-item p {
    margin: 8px 0 0;
    color: #e7dfd0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    font-family: 'OpenSans-Bold', sans-serif;
}

.focus-mood-ring {
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
    background: conic-gradient(from 0deg, var(--theme-gold-light) 0deg, var(--theme-gold-light) 360deg);
}

.focus-mood-ring::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--theme-gold-pale);
}

.focus-mood-ring span {
    position: relative;
    z-index: 1;
    color: var(--theme-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1px;
    font-family: 'OpenSans-ExtraBold', sans-serif;
}

.focus-mood-career {
    background: conic-gradient(var(--theme-gold) 0 216deg, var(--theme-gold-light) 216deg 360deg);
}

.focus-mood-love {
    background: conic-gradient(#ff6f61 0 252deg, var(--theme-gold-light) 252deg 360deg);
}

.focus-mood-health {
    background: conic-gradient(#49db98 0 198deg, var(--theme-gold-light) 198deg 360deg);
}

.focus-mood-family {
    background: conic-gradient(var(--theme-maroon) 0 234deg, var(--theme-gold-light) 234deg 360deg);
}

@media (max-width: 500px) {
    .home-greeting-wrap { margin: 0 10px 10px; }
    .home-greeting-card { min-height: 116px; padding: 15px 108px 15px 15px; }
    .hg-orb { width: 100px; height: 100px; right: 4px; }
    .home-greeting-title { font-size: 22px; }
    .home-greeting-subtitle { font-size: 12px; }

    .focus-mood-wrap {
        margin-bottom: 14px;
    }

    .focus-mood-card {
        padding: 16px 12px 14px;
    }

    .focus-mood-header h3 {
        font-size: 13px;
    }

    .focus-mood-grid {
        gap: 6px;
    }

    .focus-mood-ring {
        width: 54px;
        height: 54px;
    }

    .focus-mood-item p {
        font-size: 10px;
    }
}

html body .focus-mood-wrap {
    position: relative;
    margin: 0 0 18px;
    padding: 0 15px;
}

html body .focus-mood-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 10px;
    padding: 5px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

html body .focus-mood-tab {
    min-width: 0;
    padding: 10px 4px;
    color: var(--theme-muted);
    background: transparent;
    border: 0;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

html body .focus-mood-tab:hover {
    color: var(--theme-gold-light);
    background: rgba(255, 201, 40, 0.08);
}

html body .focus-mood-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--theme-maroon), var(--theme-maroon-dark));
    box-shadow: 0 6px 16px rgba(143, 0, 38, 0.28);
    transform: translateY(-1px);
}

html body .focus-mood-card {
    position: relative;
    overflow: hidden;
    padding: 18px 14px 16px;
    border-radius: 22px;
}

html body .focus-mood-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(70% 80% at 90% 0%, rgba(255, 201, 40, 0.12), transparent 60%);
}

html body .focus-mood-panel {
    position: relative;
    z-index: 1;
}

html body .focus-mood-panel[hidden] {
    display: none !important;
}

html body .focus-mood-panel.is-active {
    animation: u9-panel-in 260ms ease both;
}

html body .focus-mood-insight {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 17px;
    background: rgba(24, 7, 11, 0.76);
}

html body .focus-mood-insight-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

html body .focus-mood-insight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    color: var(--theme-gold);
    border: 1px solid var(--theme-border);
    border-radius: 50%;
    background: rgba(255, 201, 40, 0.1);
}

html body .focus-mood-insight h4,
html body .focus-mood-topic-card h5 {
    margin: 0;
    color: var(--theme-gold-light);
}

html body .focus-mood-insight p {
    margin: 0;
    color: #d7dde4;
    font-size: 13px;
    line-height: 1.55;
}

html body .focus-mood-topic-scroll {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 3px 1px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 201, 40, 0.35) transparent;
}

html body .focus-mood-topic-card {
    min-width: 195px;
    max-width: 195px;
    padding: 14px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: rgba(42, 11, 18, 0.94);
    scroll-snap-align: start;
}

html body .focus-mood-topic-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--theme-gold);
    font-size: 18px;
}

html body .focus-mood-topic-score {
    padding: 5px 8px;
    color: #fff;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: rgba(143, 0, 38, 0.7);
    font-size: 11px;
    font-weight: 800;
}

html body .focus-mood-topic-card p {
    margin: 7px 0 0;
    color: #bac4cf;
    font-size: 12px;
    line-height: 1.5;
}

html body .focus-mood-lucky {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

html body .focus-mood-lucky-card {
    padding: 12px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: rgba(35, 8, 15, 0.78);
}

html body .focus-mood-lucky-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

html body .focus-mood-lucky-label {
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

html body .focus-mood-lucky-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--theme-gold);
    box-shadow: 0 0 0 3px rgba(255, 201, 40, 0.12);
}

html body .focus-mood-lucky-value {
    color: var(--theme-gold-light);
    font-size: 17px;
}

html body .banner-slider {
    margin-top: 0;
    border-radius: 0 0 20px 20px;
    background: var(--theme-navy);
}

html body .home-splide .splide__slide {
    position: relative;
}

html body .home-splide .splide__slide > a {
    display: block;
}

html body .home-splide .splide__slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.2;
    object-fit: cover;
}

html body .home-splide .splide__arrow {
    width: 30px;
    height: 30px;
    background: rgba(24, 7, 11, 0.82);
    border: 1px solid rgba(255, 226, 138, 0.45);
    opacity: 0.9;
}

html body .home-splide .splide__arrow svg {
    fill: var(--theme-gold-light);
}

html body .home-splide .splide__pagination {
    bottom: 8px;
}

html body .home-splide .splide__pagination__page {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.55);
}

html body .home-splide .splide__pagination__page.is-active {
    width: 18px;
    border-radius: 999px;
    background: var(--theme-gold);
    transform: none;
}

@keyframes u9-panel-in {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html body *,
    html body *::before,
    html body *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dasha components */
.hd-card {
    margin: 0 16px 16px;
    padding: 18px 16px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: linear-gradient(145deg, var(--theme-maroon-dark), var(--theme-maroon-dark) 75%);
    color: var(--theme-text);
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.hd-header { display: flex; align-items: center; gap: 12px; }
.hd-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--theme-gold-light); color: var(--theme-maroon); }
.hd-header h3 { margin: 0 0 4px; color: var(--theme-maroon-dark); font-size: 17px; font-weight: 700; }
.hd-header p, .hd-profile, .hd-note { margin: 0; color: var(--theme-muted); font-size: 12px; line-height: 1.6; }
.hd-profile { margin: 14px 0 12px; overflow-wrap: anywhere; }
.hd-profile-form { margin: 18px 0 16px; }
.hd-profile-form label { display: block; margin-bottom: 7px; color: var(--theme-muted); font-size: 12px; font-weight: 600; }
.hd-profile-controls { display: flex; gap: 8px; }
.hd-profile-controls select, .hd-profile-controls button { min-height: 44px; border: 1px solid var(--theme-border); border-radius: 10px; font: inherit; font-size: 13px; }
.hd-profile-controls select { min-width: 0; width: 100%; padding: 0 10px; background: var(--theme-gold-pale); color: var(--theme-maroon-dark); }
.hd-profile-controls button { flex-shrink: 0; padding: 0 14px; background: var(--theme-maroon); color: var(--theme-maroon-dark); font-weight: 600; cursor: pointer; }
.hd-profile-controls button:hover { background: var(--theme-maroon-dark); }
.hd-profile-controls select:focus-visible, .hd-profile-controls button:focus-visible { outline: 2px solid var(--theme-maroon); outline-offset: 3px; }
.hd-dasha [hidden] { display: none; }
.hd-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; color: var(--theme-muted); font-size: 13px; }
.hd-spinner { width: 22px; height: 22px; border: 2px solid var(--theme-border); border-top-color: var(--theme-gold); border-radius: 50%; animation: hd-spin .8s linear infinite; }
.hd-fetch-error p { margin: 16px 0 0; color: var(--theme-muted); font-size: 13px; line-height: 1.7; }
.hd-retry { width: 100%; cursor: pointer; font-family: inherit; }
@keyframes hd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hd-spinner { animation-duration: 2s; } }
.hd-dasha .hd-periods { margin-top: 16px; }
.hd-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hd-period { padding: 14px 12px; border: 1px solid var(--theme-border); border-radius: 14px; background: var(--theme-gold-pale); }
.hd-period:nth-child(2) { border-color: var(--theme-border); background: var(--theme-gold-pale); }
.hd-label { color: var(--theme-maroon); font-size: 11px; font-weight: 600; }
.hd-period h4 { margin: 8px 0 14px; color: var(--theme-maroon-dark); font-size: 22px; overflow-wrap: anywhere; }
.hd-period dl { margin: 0; }
.hd-period dl div + div { margin-top: 10px; }
.hd-period dt { color: var(--theme-muted); font-size: 11px; font-weight: 400; }
.hd-period dd { margin: 3px 0 0; color: var(--theme-text); font-size: 12px; }
.hd-note { margin-top: 10px; }
.hd-explanation { margin-top: 14px; color: var(--theme-muted); font-size: 12px; line-height: 1.7; }
.hd-explanation summary { cursor: pointer; color: var(--theme-maroon); }
.hd-explanation p { margin: 8px 0 0; }
.hd-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--theme-border); border-radius: 12px; background: var(--theme-gold-light); color: var(--theme-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.hd-action:hover { background: var(--theme-maroon-dark); color: var(--theme-maroon-dark); }
.hd-action:focus-visible, .hd-explanation summary:focus-visible { outline: 2px solid var(--theme-maroon); outline-offset: 4px; }
.hd-message { margin: 16px 0 0; color: var(--theme-muted); font-size: 13px; line-height: 1.7; }
@media (max-width: 340px) { .hd-periods { grid-template-columns: 1fr; } .hd-profile-controls { flex-wrap: wrap; } .hd-profile-controls button { width: 100%; } }

/* Home extras */
.hx-card { scroll-margin-top: 85px; }
.hx-time-icon { background: var(--theme-maroon); color: var(--theme-gold); }
.hx-tarot-icon { background: var(--theme-maroon); color: var(--theme-gold-light); }
.hx-times { display: grid; gap: 10px; margin: 16px 0 12px; }
.hx-time-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--theme-gold-pale); border: 1px solid var(--theme-border); border-radius: 12px; }
.hx-window { background: var(--theme-maroon-dark); border-color: var(--theme-border); }
.hx-rahu { background: var(--theme-gold-pale); border-color: var(--theme-border); }
.hx-row-icon { color: var(--theme-maroon); padding-top: 3px; }
.hx-window .hx-row-icon { color: var(--theme-gold); }
.hx-rahu .hx-row-icon { color: var(--theme-gold-light); }
.hx-time-row h4 { margin: 0 0 6px; color: var(--theme-muted); font-size: 12px; font-weight: 600; }
.hx-time-row strong { display: block; margin-bottom: 4px; color: var(--theme-maroon-dark); font-size: 16px; }
.hx-time-row p { margin: 0; color: var(--theme-text); font-size: 12px; line-height: 1.7; }
.hx-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 12px; }
.hx-links a { color: var(--theme-maroon); text-underline-offset: 3px; padding: 6px 0; }
.hx-reveal { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 20px 0 16px; padding: 8px; color: var(--theme-maroon); font-size: 14px; font-weight: 600; text-decoration: none; }
.hx-reveal:hover { color: var(--theme-maroon-dark); }
button.hx-reveal { width: 100%; background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.hx-card-back { display: flex; flex-direction: column; align-items: center; justify-content: space-around; width: 100px; height: 160px; padding: 12px; border: 1px solid var(--theme-border); border-radius: 12px; background: radial-gradient(ellipse at center, var(--theme-maroon), var(--theme-maroon-dark) 80%); box-shadow: 0 8px 24px #06091b; color: var(--theme-gold-light); }
.hx-card-back span { font-size: 40px; }
#home-tarot .hd-profile { margin: 12px 0 10px; color: var(--theme-muted); font-size: 12px; }
.hx-tarot-reading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
    padding: 14px;
    background: var(--theme-gold-pale);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
}
.hx-tarot-main {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hx-tarot-main img {
    width: 92px;
    height: auto;
    aspect-ratio: 110 / 190;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hx-tarot-main div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hx-tarot-main .hd-label {
    display: inline-block;
    color: var(--theme-maroon);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}
.hx-tarot-main h4 {
    color: var(--theme-maroon-dark);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    letter-spacing: -0.2px;
}
.hx-tarot-main p {
    color: var(--theme-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hx-tarot-reading .hd-action {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Modal Styling */
body.hx-modal-open { overflow: hidden; }
.hx-tarot-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.hx-tarot-modal[hidden] { display: none; }
.hx-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 24, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.hx-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.hx-modal-content {
    background: linear-gradient(150deg, var(--theme-maroon-dark) 0%, var(--theme-maroon-dark) 100%);
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: var(--theme-text);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}
.hx-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hx-modal-title-group h3 {
    margin: 4px 0 0;
    color: var(--theme-maroon-dark);
    font-size: 20px;
    font-weight: 700;
}
.hx-modal-close {
    background: transparent;
    border: 0;
    color: var(--theme-muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 8px;
    transition: color 0.15s, background-color 0.15s;
}
.hx-modal-close:hover {
    color: var(--theme-maroon-dark);
    background: rgba(255, 255, 255, 0.1);
}
.hx-modal-body {
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.hx-modal-hero {
    display: flex;
    justify-content: center;
}
.hx-modal-hero img {
    width: 120px;
    height: auto;
    aspect-ratio: 110 / 190;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.hx-modal-sections {
    display: grid;
    gap: 12px;
}
.hx-modal-section {
    padding: 14px;
    background: var(--theme-gold-pale);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
}
.hx-modal-section h4 {
    margin: 0 0 6px;
    color: var(--theme-maroon);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hx-modal-section h4 i {
    color: var(--theme-maroon);
}
.hx-modal-section p {
    margin: 0;
    color: var(--theme-text);
    font-size: 13px;
    line-height: 1.65;
}
.hx-modal-footer {
    padding: 12px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hx-modal-done-btn {
    width: 100%;
    margin-top: 0;
    justify-content: center;
    cursor: pointer;
}
.hx-disclaimer { margin-top: 14px; }
.hx-chart-links { display: grid; gap: 10px; margin-top: 12px; }
.hx-chart-links a { display: flex; align-items: center; gap: 12px; padding: 15px 14px; border: 1px solid var(--theme-border); border-radius: 12px; background: var(--theme-gold-pale); color: var(--theme-text); font-size: 13px; text-decoration: none; }
.hx-chart-links a:hover { background: var(--theme-gold-light); }
.hx-chart-links a > i:first-child { color: var(--theme-maroon); width: 20px; text-align: center; }
.hx-chart-links a > i:last-child { margin-left: auto; color: var(--theme-muted); font-size: 10px; }
.hx-links a:focus-visible, .hx-chart-links a:focus-visible, .hx-reveal:focus-visible { outline: 2px solid var(--theme-maroon); outline-offset: 4px; }

.myanmar-dashboard {
    position: relative;
    margin: 0 15px 18px;
    padding: 18px 16px 16px;
    overflow: hidden;
    border: 1px solid rgba(217, 170, 66, 0.28);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(217, 170, 66, 0.16), transparent 55%),
        linear-gradient(170deg, rgba(64, 24, 42, 0.97), rgba(20, 13, 22, 0.98));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.myanmar-dashboard-head { margin-bottom: 14px; text-align: left; }

.myanmar-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid rgba(217, 170, 66, 0.3);
    border-radius: 999px;
    color: var(--theme-gold-light);
    background: rgba(217, 170, 66, 0.08);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.myanmar-dashboard-head h2 {
    margin: 8px 0 2px;
    padding: 0;
    color: var(--theme-text);
    font-family: 'OpenSans-ExtraBold', sans-serif;
    font-size: 19px;
    line-height: 1.15;
    text-align: left;
}

.myanmar-dashboard-head p { margin: 0; padding: 0; color: var(--theme-muted); font-size: 11px; text-align: left; }

/* Small cards */
.mm-grid {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 2px 16px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
}

.mm-grid::-webkit-scrollbar { display: none; }

.mm-grid > .mm-card {
    flex: 0 0 122px;
    min-height: 98px;
    scroll-snap-align: start;
}

.mm-grid > .mm-wide { flex-basis: 230px; }

.mm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(10, 7, 13, 0.45);
    animation: mm-in 0.45s ease-out both;
}

.mm-card:nth-child(2) { animation-delay: 0.05s; }
.mm-card:nth-child(3) { animation-delay: 0.1s; }
.mm-card:nth-child(4) { animation-delay: 0.15s; }
.mm-card:nth-child(5) { animation-delay: 0.2s; }
.mm-card:nth-child(6) { animation-delay: 0.25s; }
.mm-card:nth-child(7) { animation-delay: 0.3s; }
.mm-card:nth-child(8) { animation-delay: 0.35s; }
.mm-card:nth-child(9) { animation-delay: 0.4s; }

.mm-ico {
    display: grid;
    width: 26px;
    height: 26px;
    margin-bottom: 7px;
    place-items: center;
    border-radius: 8px;
    color: var(--theme-gold-light);
    background: rgba(217, 170, 66, 0.12);
    font-size: 12px;
}

.mm-sun .mm-ico { color: #ffb36b; background: rgba(223, 117, 68, 0.18); }
.mm-set .mm-ico { color: #ff8a8a; background: rgba(197, 43, 66, 0.2); }
.mm-moon .mm-ico { color: #e6dcff; background: rgba(170, 150, 255, 0.13); }

.mm-label {
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.mm-card strong {
    margin-top: 2px;
    color: var(--theme-text);
    font-size: 13px;
    line-height: 1.3;
}

.mm-card strong.is-big { color: var(--theme-gold-light); font-size: 16px; }

.mm-card em {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mm-card.is-good {
    border-color: rgba(217, 170, 66, 0.4);
    background: linear-gradient(145deg, rgba(217, 170, 66, 0.16), rgba(217, 170, 66, 0.03));
}

.mm-card.is-good strong { color: var(--theme-gold-light); }
.mm-card.is-good em { color: #2a1a05; background: var(--theme-gold-light); }

.mm-card.is-avoid { border-color: rgba(197, 43, 66, 0.35); background: rgba(197, 43, 66, 0.1); }
.mm-card.is-avoid .mm-ico { color: #ff6b81; background: rgba(197, 43, 66, 0.2); }
.mm-card.is-avoid em { color: #ffd0d7; background: rgba(197, 43, 66, 0.55); }

.mm-wide { flex-direction: row; gap: 10px; }
.mm-wide .mm-ico { flex: 0 0 26px; margin: 0; }
.mm-lunar-body { min-width: 0; }
.mm-lunar strong { color: var(--theme-gold-light); font-family: Georgia, serif; font-size: 17px; }

.mm-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mm-tags span { padding: 2px 8px; border-radius: 999px; color: #ead9b1; background: rgba(217, 170, 66, 0.1); font-size: 9.5px; }
.mm-lunar p { margin: 6px 0 0; color: var(--theme-muted); font-size: 10.5px; line-height: 1.4; }

/* ---- polish: compact, friendlier cards ---- */
.myanmar-dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }

.mm-grid > .mm-card {
    flex-basis: 118px;
    min-height: 0;
    padding: 11px 12px 12px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(10, 7, 13, 0.5));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mm-grid > .mm-card:active { transform: scale(0.97); }

/* coloured glow in the corner of each card */
.mm-grid > .mm-card::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mm-glow, rgba(217, 170, 66, 0.25)), transparent 70%);
    pointer-events: none;
}

.mm-sun { --mm-glow: rgba(255, 160, 80, 0.35); }
.mm-set { --mm-glow: rgba(230, 70, 90, 0.35); }
.mm-moon { --mm-glow: rgba(170, 150, 255, 0.3); }
.mm-card.is-avoid { --mm-glow: rgba(197, 43, 66, 0.45); }
.mm-card.is-good { --mm-glow: rgba(241, 213, 139, 0.4); }

.mm-ico { width: 30px; height: 30px; margin-bottom: 10px; border-radius: 10px; font-size: 13px; }

.mm-card .mm-label { position: relative; font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; }

.mm-card strong { position: relative; margin-top: 3px; font-size: 12.5px; }

.mm-card strong.mm-time {
    font-family: 'OpenSans-ExtraBold', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.mm-card strong.mm-time small {
    margin-left: 3px;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.mm-card em { top: 12px; right: 11px; }

.mm-grid > .mm-wide { flex-basis: 250px; }

/* ---- location: plain text, not a pill ---- */
.myanmar-dashboard .myanmar-eyebrow {
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--theme-gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
}

.mm-pin { width: 13px; height: 13px; color: var(--theme-maroon); filter: drop-shadow(0 0 4px rgba(197, 43, 66, 0.6)); animation: mi-bob 2.4s ease-in-out infinite; }

/* ---- animated SVG card icons ---- */
.mm-ico .mi { width: 20px; height: 20px; overflow: visible; }
.mi * { transform-box: fill-box; transform-origin: center; }

.mi-sunrise .mi-rise { animation: mi-up 3.2s ease-in-out infinite; }
.mi-sunrise .mi-rays { animation: mi-pulse 3.2s ease-in-out infinite; }
.mi-sunset .mi-sink { animation: mi-down 3.2s ease-in-out infinite; }
.mi-moonrise .mi-rise { animation: mi-up 3.6s ease-in-out infinite; }
.mi-moonset .mi-sink { animation: mi-down 3.6s ease-in-out infinite; }
.mi-arrow { animation: mi-blink 3.2s ease-in-out infinite; }
.mi-tw { animation: mi-twinkle 2.2s ease-in-out infinite; }
.mi-tw.d2 { animation-delay: 1.1s; }

.mi-lunar .mi-phase { animation: mi-phase 6s ease-in-out infinite; }
.mi-lunar .mi-orbit { transform-box: view-box; transform-origin: 12px 12px; animation: mi-spin 6s linear infinite; }

.mi-abhijit .mi-star { animation: mi-pulse 2.4s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(241, 213, 139, 0.8)); }

.mi-rahu .mi-shadow { animation: mi-eclipse 4s ease-in-out infinite; }
.mi-rahu circle:last-child { transform-box: view-box; transform-origin: 12px 12px; animation: mi-spin 12s linear infinite; }

.mi-gulika .mi-flip { animation: mi-flip 4s ease-in-out infinite; }
.mi-gulika .mi-sand { transform-origin: center bottom; animation: mi-sand 4s ease-in-out infinite; }

.mi-compass .mi-needle { transform-box: view-box; transform-origin: 12px 12px; animation: mi-swing 3.5s ease-in-out infinite; }

@keyframes mi-up { 0% { transform: translateY(5px); opacity: .4; } 45%, 75% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(5px); opacity: .4; } }
@keyframes mi-down { 0% { transform: translateY(-2px); opacity: 1; } 45%, 75% { transform: translateY(5px); opacity: .5; } 100% { transform: translateY(-2px); opacity: 1; } }
@keyframes mi-pulse { 0%, 100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes mi-blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes mi-twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes mi-phase { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.25); } }
@keyframes mi-spin { to { transform: rotate(360deg); } }
@keyframes mi-eclipse { 0%, 100% { transform: translateX(-9px); } 50% { transform: translateX(3px); } }
@keyframes mi-flip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes mi-sand { 0%, 40% { transform: scaleY(1); } 45% { transform: scaleY(.2); } 90% { transform: scaleY(1); } 100% { transform: scaleY(1); } }
@keyframes mi-swing { 0%, 100% { transform: rotate(-25deg); } 50% { transform: rotate(20deg); } }
@keyframes mi-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
    .mm-pin, .mm-ico .mi, .mm-ico .mi * { animation: none !important; }
}

/* ---- full-background illustrated cards ---- */
.mm-grid > .mm-card {
    justify-content: flex-end;
    min-height: 128px;
    padding: 12px;
    border-color: rgba(255, 255, 255, 0.1);
    background: #1a0d14;
}

.mm-grid > .mm-card::before { display: none; }

.mm-grid > .mm-card > :not(.mm-ico) { position: relative; z-index: 1; }

.mm-grid .mm-ico {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: inherit;
    overflow: hidden;
    background: var(--mm-sky, linear-gradient(160deg, #4a2a1e, #1a0d14 75%));
}

/* readability fade over the illustration */
.mm-grid .mm-ico::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(18, 10, 16, 0.55) 55%, rgba(18, 10, 16, 0.92) 100%);
}

.mm-grid .mm-ico .mi {
    position: absolute;
    top: -6px;
    right: -10px;
    width: 96px;
    height: 96px;
    opacity: 0.95;
    filter: drop-shadow(0 0 14px var(--mm-glow-c, rgba(241, 213, 139, 0.5)));
}

.mm-grid .mm-wide .mm-ico .mi { top: 50%; right: 4px; width: 92px; height: 92px; transform: translateY(-50%); opacity: 0.55; }
.mm-grid .mm-wide .mm-ico::after { background: linear-gradient(90deg, rgba(18, 10, 16, 0.92) 30%, rgba(18, 10, 16, 0.4) 100%); }
.mm-grid > .mm-wide { justify-content: flex-start; }
.mm-grid > .mm-wide .mm-lunar-body { padding-right: 40px; }

/* per-card sky + icon colour */
.mm-grid .mm-sun  { --mm-sky: linear-gradient(170deg, #b8582c 0%, #6b2a2c 45%, #1a0d14 85%); --mm-glow-c: rgba(255, 170, 90, 0.7); }
.mm-grid .mm-set  { --mm-sky: linear-gradient(170deg, #9c2443 0%, #4e1530 45%, #1a0d14 85%); --mm-glow-c: rgba(255, 110, 120, 0.7); }
.mm-grid .mm-moon { --mm-sky: linear-gradient(170deg, #3b3570 0%, #241d40 45%, #140e1c 85%); --mm-glow-c: rgba(200, 185, 255, 0.6); }
.mm-grid .mm-lunar { --mm-sky: linear-gradient(120deg, #1a0d14 30%, #3a2d5c 100%); --mm-glow-c: rgba(241, 213, 139, 0.5); }
.mm-grid .is-good { --mm-sky: linear-gradient(170deg, #8a6420 0%, #4a3316 45%, #1a0d14 85%); --mm-glow-c: rgba(255, 220, 130, 0.8); }
.mm-grid .is-avoid { --mm-sky: linear-gradient(170deg, #5c1020 0%, #2e0a16 50%, #140810 85%); --mm-glow-c: rgba(255, 80, 100, 0.6); }
.mm-grid .mm-gulika { --mm-sky: linear-gradient(170deg, #5a3a22 0%, #2e1d18 50%, #1a0d14 85%); --mm-glow-c: rgba(230, 180, 110, 0.5); }
.mm-grid .mm-dir { --mm-sky: linear-gradient(170deg, #1d4a4a 0%, #1a2a2c 50%, #120e16 85%); --mm-glow-c: rgba(120, 230, 210, 0.5); }

.mm-grid .mm-sun .mm-ico { color: #ffc27a; }
.mm-grid .mm-set .mm-ico { color: #ff8f8f; }
.mm-grid .mm-moon .mm-ico { color: #e3dbff; }
.mm-grid .mm-lunar .mm-ico { color: var(--theme-gold-light); }
.mm-grid .is-good .mm-ico { color: #ffe39a; }
.mm-grid .is-avoid .mm-ico { color: #ff7d92; }
.mm-grid .mm-gulika .mm-ico { color: #f0c07a; }
.mm-grid .mm-dir .mm-ico { color: #8ff0dc; }

.mm-grid .is-good, .mm-grid .is-avoid { background: #1a0d14; }
.mm-grid .mm-card em { top: 10px; left: 10px; right: auto; z-index: 2; }
.mm-grid .mm-card .mm-label { color: rgba(255, 244, 214, 0.75); }

.myanmar-dashboard .myanmar-dashboard-head { align-items: flex-start; }
.myanmar-dashboard-head h2 { margin-top: 0; }
.myanmar-dashboard .myanmar-eyebrow { flex: 0 1 auto; max-width: 45%; margin-top: 4px; text-align: right; }

@keyframes mm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { .mm-card { animation: none; } }

.myanmar-unavailable {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px dashed rgba(217, 170, 66, 0.26);
    border-radius: 14px;
    color: var(--theme-muted);
    background: rgba(13, 10, 17, 0.42);
}

.myanmar-unavailable i { color: var(--theme-gold); }
.myanmar-unavailable p { margin: 0; font-size: 12px; }

@media (max-width: 480px) {
    .myanmar-dashboard { margin-inline: 10px; padding: 16px 13px 13px; }
    .myanmar-dashboard-head h2 { font-size: 18px; }
    .mm-grid { margin: 0 -13px; padding-inline: 13px; scroll-padding-inline: 13px; }
}

@media (max-width: 340px) { .hd-periods { grid-template-columns: 1fr; } .hd-profile-controls { flex-wrap: wrap; } .hd-profile-controls button { width: 100%; } }

/* Home extras */
.hx-card { scroll-margin-top: 85px; }
.hx-time-icon { background: var(--theme-maroon); color: var(--theme-gold); }
.hx-tarot-icon { background: var(--theme-maroon); color: var(--theme-gold-light); }
.hx-times { display: grid; gap: 10px; margin: 16px 0 12px; }
.hx-time-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--theme-gold-pale); border: 1px solid var(--theme-border); border-radius: 12px; }
.hx-window { background: var(--theme-maroon-dark); border-color: var(--theme-border); }
.hx-rahu { background: var(--theme-gold-pale); border-color: var(--theme-border); }
.hx-row-icon { color: var(--theme-maroon); padding-top: 3px; }
.hx-window .hx-row-icon { color: var(--theme-gold); }
.hx-rahu .hx-row-icon { color: var(--theme-gold-light); }
.hx-time-row h4 { margin: 0 0 6px; color: var(--theme-muted); font-size: 12px; font-weight: 600; }
.hx-time-row strong { display: block; margin-bottom: 4px; color: var(--theme-maroon-dark); font-size: 16px; }
.hx-time-row p { margin: 0; color: var(--theme-text); font-size: 12px; line-height: 1.7; }
.hx-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 12px; }
.hx-links a { color: var(--theme-maroon); text-underline-offset: 3px; padding: 6px 0; }
.hx-reveal { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 20px 0 16px; padding: 8px; color: var(--theme-maroon); font-size: 14px; font-weight: 600; text-decoration: none; }
.hx-reveal:hover { color: var(--theme-maroon-dark); }
button.hx-reveal { width: 100%; background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.hx-card-back { display: flex; flex-direction: column; align-items: center; justify-content: space-around; width: 100px; height: 160px; padding: 12px; border: 1px solid var(--theme-border); border-radius: 12px; background: radial-gradient(ellipse at center, var(--theme-maroon), var(--theme-maroon-dark) 80%); box-shadow: 0 8px 24px #06091b; color: var(--theme-gold-light); }
.hx-card-back span { font-size: 40px; }
#home-tarot .hd-profile { margin: 12px 0 10px; color: var(--theme-muted); font-size: 12px; }
.hx-tarot-reading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
    padding: 14px;
    background: var(--theme-gold-pale);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
}
.hx-tarot-main {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hx-tarot-main img {
    width: 92px;
    height: auto;
    aspect-ratio: 110 / 190;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hx-tarot-main div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hx-tarot-main .hd-label {
    display: inline-block;
    color: var(--theme-maroon);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}
.hx-tarot-main h4 {
    color: var(--theme-maroon-dark);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    letter-spacing: -0.2px;
}
.hx-tarot-main p {
    color: var(--theme-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hx-tarot-reading .hd-action {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Modal Styling */
body.hx-modal-open { overflow: hidden; }
.hx-tarot-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.hx-tarot-modal[hidden] { display: none; }
.hx-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 24, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.hx-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.hx-modal-content {
    background: linear-gradient(150deg, var(--theme-maroon-dark) 0%, var(--theme-maroon-dark) 100%);
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: var(--theme-text);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}
.hx-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hx-modal-title-group h3 {
    margin: 4px 0 0;
    color: var(--theme-maroon-dark);
    font-size: 20px;
    font-weight: 700;
}
.hx-modal-close {
    background: transparent;
    border: 0;
    color: var(--theme-muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 8px;
    transition: color 0.15s, background-color 0.15s;
}
.hx-modal-close:hover {
    color: var(--theme-maroon-dark);
    background: rgba(255, 255, 255, 0.1);
}
.hx-modal-body {
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.hx-modal-hero {
    display: flex;
    justify-content: center;
}
.hx-modal-hero img {
    width: 120px;
    height: auto;
    aspect-ratio: 110 / 190;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.hx-modal-sections {
    display: grid;
    gap: 12px;
}
.hx-modal-section {
    padding: 14px;
    background: var(--theme-gold-pale);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
}
.hx-modal-section h4 {
    margin: 0 0 6px;
    color: var(--theme-maroon);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hx-modal-section h4 i {
    color: var(--theme-maroon);
}
.hx-modal-section p {
    margin: 0;
    color: var(--theme-text);
    font-size: 13px;
    line-height: 1.65;
}
.hx-modal-footer {
    padding: 12px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hx-modal-done-btn {
    width: 100%;
    margin-top: 0;
    justify-content: center;
    cursor: pointer;
}
.hx-disclaimer { margin-top: 14px; }
.hx-chart-links { display: grid; gap: 10px; margin-top: 12px; }
.hx-chart-links a { display: flex; align-items: center; gap: 12px; padding: 15px 14px; border: 1px solid var(--theme-border); border-radius: 12px; background: var(--theme-gold-pale); color: var(--theme-text); font-size: 13px; text-decoration: none; }
.hx-chart-links a:hover { background: var(--theme-gold-light); }
.hx-chart-links a > i:first-child { color: var(--theme-maroon); width: 20px; text-align: center; }
.hx-chart-links a > i:last-child { margin-left: auto; color: var(--theme-muted); font-size: 10px; }
.hx-links a:focus-visible, .hx-chart-links a:focus-visible, .hx-reveal:focus-visible { outline: 2px solid var(--theme-maroon); outline-offset: 4px; }

@media (max-width: 340px) {
    .hx-tarot-reading { flex-direction: column; text-align: center; }
    .hx-tarot-reading img { align-self: center; width: 100px; }
}

/* ---- Yesterday / Today / Tomorrow: sliding pill tabs ---- */
html body .focus-mood-tabs {
    position: relative;
    gap: 0;
    padding: 5px;
    border: 1px solid rgba(217, 170, 66, 0.28);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
        rgba(20, 8, 14, 0.92);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.3);
}

html body .fm-tab-slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc((100% - 10px) / 3);
    border-radius: 999px;
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(241, 213, 139, 0.35), transparent 55%),
        linear-gradient(135deg, #d63a55, var(--theme-maroon) 45%, var(--theme-maroon-dark));
    box-shadow:
        inset 0 0 0 1px rgba(241, 213, 139, 0.55),
        inset 0 1px 0 rgba(255, 244, 214, 0.45),
        0 6px 18px rgba(197, 43, 66, 0.45),
        0 0 22px rgba(241, 213, 139, 0.15);
    transform: translateX(calc(var(--fm-i, 1) * 100%));
    transition: transform 0.45s cubic-bezier(0.34, 1.45, 0.5, 1);
    pointer-events: none;
}


html body .focus-mood-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 999px;
    color: var(--theme-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12.5px;
    letter-spacing: 0.2px;
    transform: none !important;
    transition: color 0.3s ease;
}

html body .focus-mood-tab:hover { color: var(--theme-gold-light) !important; }

html body .focus-mood-tab.is-active {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

html body .focus-mood-tab:focus-visible { outline: 2px solid var(--theme-gold-light); outline-offset: 2px; }

.fm-tab-ico {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fm-tab-ico * { transform-box: fill-box; transform-origin: center; }

html body .focus-mood-tab.is-active .fm-tab-ico {
    opacity: 1;
    color: var(--theme-gold-light);
    transform: scale(1.12);
    filter: drop-shadow(0 0 4px rgba(241, 213, 139, 0.7));
}

html body .focus-mood-tab.is-active .fm-rays { animation: fm-spin 8s linear infinite; }
html body .focus-mood-tab.is-active .fm-moon { animation: fm-rock 3s ease-in-out infinite; }
html body .focus-mood-tab.is-active .fm-rise { animation: fm-rise 2.6s ease-in-out infinite; }

@keyframes fm-spin { to { transform: rotate(360deg); } }
@keyframes fm-rock { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes fm-rise { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    html body .fm-tab-slider { transition: none; }
    html body .focus-mood-tab .fm-tab-ico * { animation: none !important; }
}

/* ================= Focus & Mood: refreshed ================= */
@property --fm-p { syntax: '<number>'; inherits: false; initial-value: 0; }

html body .focus-mood-card {
    border-radius: 22px;
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(223, 117, 68, 0.18), transparent 60%),
        radial-gradient(90% 50% at 0% 100%, rgba(197, 43, 66, 0.18), transparent 60%),
        linear-gradient(165deg, #3d1222 0%, #260c18 55%, #1a0912 100%) !important;
    border: 1px solid rgba(217, 170, 66, 0.28) !important;
}

html body .focus-mood-header h3 { font-size: 15px; letter-spacing: 0.2px; }

/* --- animated rings --- */
html body .focus-mood-card .focus-mood-ring {
    width: 62px;
    height: 62px;
    --fm-p: var(--p, 0);
    background:
        conic-gradient(var(--c, #f1d58b) calc(var(--fm-p) * 1%), rgba(255, 255, 255, 0.08) 0) !important;
    box-shadow: 0 0 18px color-mix(in srgb, var(--c, #f1d58b) 35%, transparent);
    animation: fm-ring-fill 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

html body .focus-mood-card .focus-mood-ring::before {
    inset: 5px;
    background: radial-gradient(circle at 35% 30%, #3a1524, #1a0911 75%) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

html body .focus-mood-card .focus-mood-ring span { font-size: 13px; }

html body .focus-mood-item { transition: transform 0.25s ease; }
html body .focus-mood-item.is-best .focus-mood-ring { animation: fm-ring-fill 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both, fm-ring-glow 2.6s ease-in-out 1.3s infinite; }
html body .focus-mood-item.is-best p { color: var(--theme-gold-light) !important; }
html body .focus-mood-item.is-best p::before { content: "\2605  "; color: var(--theme-gold); font-size: 9px; }

@keyframes fm-ring-fill { from { --fm-p: 0; } }
@keyframes fm-ring-glow {
    0%, 100% { box-shadow: 0 0 12px color-mix(in srgb, var(--c, #f1d58b) 30%, transparent); }
    50% { box-shadow: 0 0 26px color-mix(in srgb, var(--c, #f1d58b) 70%, transparent); }
}

/* --- Day vibe summary (new) --- */
.fm-vibe {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "text num" "meter meter";
    gap: 8px 12px;
    align-items: center;
    margin: 14px 0 4px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 170, 66, 0.3);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(217, 170, 66, 0.14), rgba(197, 43, 66, 0.1));
    animation: fm-fade 0.6s ease-out 0.3s both;
}

.fm-vibe-text { grid-area: text; min-width: 0; }
.fm-vibe-kicker { display: block; color: var(--theme-gold); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.fm-vibe strong { display: block; color: var(--theme-text); font-size: 16px; font-weight: 800; line-height: 1.2; }
.fm-vibe small { display: block; margin-top: 1px; color: var(--theme-muted); font-size: 11px; }
.fm-vibe-num {
    grid-area: num;
    color: transparent;
    background: linear-gradient(180deg, #fff4d6, #d9aa42);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: 'OpenSans-ExtraBold', sans-serif;
    font-size: 26px;
    font-weight: 800;
}
.fm-vibe-meter { grid-area: meter; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.fm-vibe-meter span {
    display: block;
    width: calc(var(--v, 0) * 1%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c52b42, #df7544, #f1d58b);
    box-shadow: 0 0 10px rgba(241, 213, 139, 0.6);
    animation: fm-grow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
    transform-origin: left;
}

/* --- Reading card --- */
html body .focus-mood-card article.focus-mood-insight {
    position: relative;
    margin-top: 14px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(217, 170, 66, 0.22) !important;
    border-radius: 18px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 40%),
        rgba(20, 7, 13, 0.55) !important;
    box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.06) !important;
}

html body .focus-mood-card article.focus-mood-insight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theme-gold), transparent);
}

html body .focus-mood-card .focus-mood-insight-icon {
    animation: fm-twinkle 3s ease-in-out infinite;
    color: var(--theme-gold-light) !important;
}

html body .focus-mood-card article.focus-mood-insight p {
    color: #e3d3da !important;
    font-size: 13px;
    line-height: 1.65;
}



/* --- Topic highlight cards --- */
html body .focus-mood-topic-scroll {
    gap: 10px;
    margin: 14px -14px 0;
    padding: 4px 14px 10px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    scrollbar-width: none;
}

html body .focus-mood-topic-scroll::-webkit-scrollbar { display: none; }

html body .focus-mood-topic-card {
    --tc: #f1d58b;
    position: relative;
    min-width: 172px;
    max-width: 172px;
    padding: 14px 14px 18px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent) !important;
    border-radius: 18px;
    background:
        radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%),
        linear-gradient(170deg, #2e0f1c, #1a0911) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3) !important;
}

html body .topic-career   { --tc: #ffc928; }
html body .topic-family   { --tc: #c792ff; }
html body .topic-health   { --tc: #49db98; }
html body .topic-status   { --tc: #f1d58b; }
html body .topic-travel   { --tc: #5ec8ff; }
html body .topic-friends  { --tc: #ff9ad5; }
html body .topic-finances { --tc: #ffb347; }
html body .topic-physique { --tc: #7ef0d0; }
html body .topic-love     { --tc: #ff6f81; }

html body .focus-mood-topic-top { margin-bottom: 12px; }

html body .focus-mood-topic-top > i {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: var(--tc) !important;
    background: color-mix(in srgb, var(--tc) 16%, transparent);
    font-size: 15px;
}

html body .focus-mood-topic-score {
    padding: 4px 9px;
    border: 0 !important;
    color: #1a0911 !important;
    background: var(--tc) !important;
    font-size: 11px;
}

html body .focus-mood-topic-card h5 { margin: 0; font-size: 16px; color: #fff !important; }
html body .focus-mood-topic-card p { font-size: 11.5px; line-height: 1.5; }

.fm-topic-bar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 9px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.fm-topic-bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--s, 0) * 1%);
    border-radius: inherit;
    background: var(--tc);
    box-shadow: 0 0 8px var(--tc);
}

html body .focus-mood-topic-card.is-top { border-color: var(--theme-gold) !important; }
html body .focus-mood-topic-card.is-top::before {
    content: "Top pick";
    position: absolute;
    top: 0;
    left: 50%;
    padding: 2px 10px;
    border-radius: 0 0 8px 8px;
    color: #2a1a05;
    background: var(--theme-gold-light);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transform: translateX(-50%);
}

/* --- Lucky color & number --- */
html body .focus-mood-lucky-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(160deg, #2e0f1c, #1a0911) !important;
}

html body .focus-mood-lucky-card .focus-mood-lucky-label { font-size: 9px; letter-spacing: 1px; }

html body .focus-mood-lucky-card.is-color .focus-mood-lucky-dot {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05), 0 0 16px currentColor;
    animation: fm-swatch 3s ease-in-out infinite;
}

html body .focus-mood-lucky-card .focus-mood-lucky-value { font-size: 16px; }

.fm-coins { display: flex; flex-wrap: wrap; gap: 6px; }

.fm-coin {
    display: grid;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #3a2205 !important;
    background: radial-gradient(circle at 35% 30%, #fff4d6, #f1d58b 45%, #c08a2a);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 3px 10px rgba(217, 170, 66, 0.35);
    font-family: 'OpenSans-ExtraBold', sans-serif;
    font-size: 14px;
    font-weight: 800;
    animation: fm-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.fm-coin:nth-child(2) { animation-delay: 0.1s; }
.fm-coin:nth-child(3) { animation-delay: 0.2s; }

@keyframes fm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fm-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fm-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(20deg); } }
@keyframes fm-swatch { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes fm-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    html body .focus-mood-card *, .fm-vibe, .fm-vibe * { animation: none !important; }
}

/* ================= Reading card v2 ================= */
html body .focus-mood-card .focus-mood-insight-head {
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

html body .focus-mood-card .focus-mood-insight-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(199, 146, 255, 0.35) !important;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 40%, rgba(199, 146, 255, 0.25), rgba(59, 29, 92, 0.35)) !important;
    box-shadow: 0 0 18px rgba(199, 146, 255, 0.25);
    animation: none;
}

.fm-orb-ico { width: 24px; height: 24px; overflow: visible; }
.fm-orb-ico * { transform-box: fill-box; transform-origin: center; }
.fm-orb-swirl { animation: fm-spin-slow 6s linear infinite; }
.fm-orb-star { animation: fm-twinkle 2.2s ease-in-out infinite; }
.fm-orb-ico circle { animation: fm-orb-glow 3s ease-in-out infinite; }

.fm-insight-titles { min-width: 0; flex: 1; }

html body .focus-mood-card .focus-mood-insight h4 {
    margin: 0;
    color: #fff !important;
    font-family: 'OpenSans-ExtraBold', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.fm-insight-meta { display: block; margin-top: 2px; color: var(--theme-muted); font-size: 10.5px; }
.fm-insight-meta:empty { display: none; }

.fm-listen {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid rgba(217, 170, 66, 0.35);
    border-radius: 999px;
    color: var(--theme-gold-light);
    background: rgba(217, 170, 66, 0.1);
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.fm-listen:hover { background: rgba(217, 170, 66, 0.2); }
.fm-listen.is-playing { color: #1a0911; background: var(--theme-gold-light); border-color: var(--theme-gold-light); }
.fm-listen.is-playing .fm-wave { animation: fm-blink 0.9s ease-in-out infinite; }

/* left accent rule beside the text */
html body .focus-mood-card article.focus-mood-insight p {
    position: relative;
    padding-left: 12px;
    border-left: 2px solid rgba(217, 170, 66, 0.35);
    color: #eadde3 !important;
    font-size: 13.5px;
    line-height: 1.7;
}

html body .focus-mood-card article.focus-mood-insight p + p { margin-top: 8px; }

/* collapsed: max height + soft fade, no ellipsis */
html body .focus-mood-card article.focus-mood-insight.is-clamped:not(.is-open) p {
    max-height: 8.4em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
}

html body .focus-mood-card article.focus-mood-insight.is-clamped:not(.is-open) p ~ p { display: none; }

.fm-readmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 9px 0 2px;
    border: 0;
    border-top: 1px solid rgba(217, 170, 66, 0.15);
    color: var(--theme-gold-light);
    background: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.fm-readmore svg { transition: transform 0.3s ease; }
.is-open > .fm-readmore svg { transform: rotate(180deg); }
.fm-readmore:hover span { text-decoration: underline; text-underline-offset: 3px; }

@keyframes fm-spin-slow { to { transform: rotate(360deg); } }
@keyframes fm-orb-glow { 0%, 100% { filter: drop-shadow(0 0 2px rgba(199, 146, 255, 0.5)); } 50% { filter: drop-shadow(0 0 6px rgba(241, 213, 139, 0.9)); } }
@keyframes fm-blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .fm-orb-ico *, .fm-listen .fm-wave { animation: none !important; }
}

/* ================= Reading card v4: night-sky, point-by-point ================= */
html body .focus-mood-card article.focus-mood-insight {
    padding: 14px 14px 4px !important;
    overflow: hidden;
    border: 1px solid rgba(199, 146, 255, 0.28) !important;
    border-radius: 20px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='12' cy='18' r='.8' fill-opacity='.5'/%3E%3Ccircle cx='70' cy='8' r='.6' fill-opacity='.35'/%3E%3Ccircle cx='120' cy='40' r='.9' fill-opacity='.45'/%3E%3Ccircle cx='38' cy='76' r='.6' fill-opacity='.3'/%3E%3Ccircle cx='98' cy='104' r='.8' fill-opacity='.4'/%3E%3Ccircle cx='18' cy='126' r='.5' fill-opacity='.3'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(100% 70% at 100% 0%, rgba(199, 146, 255, 0.22), transparent 60%),
        radial-gradient(80% 60% at 0% 100%, rgba(197, 43, 66, 0.2), transparent 60%),
        linear-gradient(160deg, #2b1640 0%, #1e1030 55%, #170b22 100%) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html body .focus-mood-card article.focus-mood-insight::before {
    left: 24px;
    right: 24px;
    background: linear-gradient(90deg, transparent, rgba(199, 146, 255, 0.8), transparent);
}

html body .focus-mood-card .focus-mood-insight-head { margin-bottom: 14px; }
html body .focus-mood-card .fm-insight-meta { color: #b9a6cf; }

html body .focus-mood-card .fm-listen {
    color: #e9dcff;
    background: rgba(199, 146, 255, 0.14);
    border-color: rgba(199, 146, 255, 0.4);
}

html body .focus-mood-card .fm-listen.is-playing { color: #1e1030; background: #d9bfff; border-color: #d9bfff; }

/* headline */
.fm-lead {
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    color: transparent !important;
    background: linear-gradient(90deg, #fff4d6, #f1d58b 60%, #ffb36b);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: 'OpenSans-ExtraBold', sans-serif;
    font-size: 17px !important;
    font-weight: 800;
    line-height: 1.4 !important;
}

/* points */
.fm-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fm-points li {
    position: relative;
    padding: 9px 4px 9px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #eee4f3;
    font-size: 13.5px;
    line-height: 1.55;
    animation: fm-fade 0.4s ease-out both;
}

.fm-points li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.6L22 12l-7.6 2.4L12 22l-2.4-7.6L2 12l7.6-2.4z' fill='%23f1d58b'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 4px rgba(241, 213, 139, 0.6));
}

.fm-points li:nth-child(3n+2)::before { filter: drop-shadow(0 0 4px rgba(199, 146, 255, 0.8)) hue-rotate(220deg) saturate(1.4); }
.fm-points li:nth-child(3n)::before { filter: drop-shadow(0 0 4px rgba(255, 140, 120, 0.7)) hue-rotate(-30deg) saturate(1.6); }

.fm-points li:nth-child(2) { animation-delay: 0.05s; }
.fm-points li:nth-child(3) { animation-delay: 0.1s; }
.fm-points li:nth-child(4) { animation-delay: 0.15s; }
.fm-points li:nth-child(5) { animation-delay: 0.2s; }
.fm-points li:nth-child(6) { animation-delay: 0.25s; }

/* collapsed: first 3 points */
html body .focus-mood-card article.focus-mood-insight.is-clamped:not(.is-open) .fm-points li:nth-child(n+4) { display: none; }

html body .focus-mood-card .fm-readmore {
    margin-top: 2px;
    padding: 10px 0 8px;
    border-top: 1px solid rgba(199, 146, 255, 0.2);
    color: #d9bfff;
}

html body .focus-mood-card article.focus-mood-insight .fm-lead {
    max-height: none !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

/* ================= Reading card: U9 operator palette =================
   Same tokens as templates/promotion/welcome-to-mystarrology.html.twig */
html body .focus-mood-card article.focus-mood-insight {
    --u9-maroon: #73123f;
    --u9-maroon-deep: #260617;
    --u9-maroon-soft: #9f2059;
    --u9-gold: #ddad2f;
    --u9-gold-light: #f5dc80;
    border-color: rgba(221, 173, 47, 0.45) !important;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='%23f5dc80'%3E%3Ccircle cx='12' cy='18' r='.8' fill-opacity='.45'/%3E%3Ccircle cx='70' cy='8' r='.6' fill-opacity='.3'/%3E%3Ccircle cx='120' cy='40' r='.9' fill-opacity='.4'/%3E%3Ccircle cx='38' cy='76' r='.6' fill-opacity='.25'/%3E%3Ccircle cx='98' cy='104' r='.8' fill-opacity='.35'/%3E%3Ccircle cx='18' cy='126' r='.5' fill-opacity='.25'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(100% 70% at 100% 0%, rgba(159, 32, 89, 0.45), transparent 60%),
        radial-gradient(80% 60% at 0% 100%, rgba(221, 173, 47, 0.12), transparent 60%),
        linear-gradient(160deg, #73123f 0%, #4c0a28 45%, #260617 100%) !important;
    box-shadow: 0 14px 30px rgba(38, 6, 23, 0.55), inset 0 1px 0 rgba(245, 220, 128, 0.15) !important;
}

html body .focus-mood-card article.focus-mood-insight::before {
    background: linear-gradient(90deg, transparent, var(--u9-gold-light), transparent);
}

html body .focus-mood-card article.focus-mood-insight .focus-mood-insight-icon {
    border-color: rgba(245, 220, 128, 0.5) !important;
    background: radial-gradient(circle at 50% 40%, rgba(245, 220, 128, 0.22), rgba(38, 6, 23, 0.6)) !important;
    box-shadow: 0 0 16px rgba(221, 173, 47, 0.3);
}

html body .focus-mood-card article.focus-mood-insight .fm-insight-meta { color: #bc98a9; }

html body .focus-mood-card article.focus-mood-insight .fm-listen {
    color: #260617;
    background: linear-gradient(180deg, #f5dc80, #ddad2f);
    border-color: #f5dc80;
    box-shadow: 0 3px 10px rgba(38, 6, 23, 0.5);
}

html body .focus-mood-card article.focus-mood-insight .fm-listen.is-playing {
    color: #fff;
    background: #9f2059;
    border-color: #ff9ba8;
}

html body .focus-mood-card article.focus-mood-insight .fm-lead {
    background: linear-gradient(90deg, #fff8e9, #f5dc80 55%, #ddad2f);
    -webkit-background-clip: text;
    background-clip: text;
}

html body .focus-mood-card article.focus-mood-insight .fm-points li {
    border-top-color: rgba(245, 220, 128, 0.12);
    color: #f4e6d0;
}

/* bullets: U9 gold, alternating with U9 rose */
html body .focus-mood-card article.focus-mood-insight .fm-points li::before,
html body .focus-mood-card article.focus-mood-insight .fm-points li:nth-child(3n)::before {
    filter: drop-shadow(0 0 4px rgba(245, 220, 128, 0.7));
}

html body .focus-mood-card article.focus-mood-insight .fm-points li:nth-child(3n+2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.6L22 12l-7.6 2.4L12 22l-2.4-7.6L2 12l7.6-2.4z' fill='%23ff9ba8'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 4px rgba(255, 155, 168, 0.7));
}

html body .focus-mood-card article.focus-mood-insight .fm-readmore {
    border-top-color: rgba(245, 220, 128, 0.2);
    color: #f5dc80;
}

/* ================= Life areas list (replaces topic scroll) ================= */
.fm-vibe-desc {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: #e9d9df;
    font-size: 12px;
    line-height: 1.5;
}

/* ================= Life areas: 3x3 tile grid ================= */
.fm-areas { margin-top: 14px; }

.fm-areas-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.fm-areas-head span { color: #f5dc80; font-size: 15px; font-weight: 800; }
.fm-areas-head small { color: #bc98a9; font-size: 10.5px; }

.fm-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.fm-tile {
    --tc: #f5dc80;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    color: inherit;
    background:
        radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 70%),
        linear-gradient(170deg, #3d0c25, #22061a);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: fm-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.fm-tile:active { transform: scale(0.96); }
.fm-tile:focus-visible { outline: 2px solid #f5dc80; outline-offset: 2px; }

.fm-tile[aria-expanded="true"] {
    border-color: var(--tc);
    box-shadow: 0 0 0 1px var(--tc), 0 8px 20px color-mix(in srgb, var(--tc) 30%, transparent);
}

/* mini ring gauge with the icon inside */
.fm-tile-gauge {
    position: relative;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    color: var(--tc);
    background: conic-gradient(var(--tc) calc(var(--s, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tc) 40%, transparent));
    font-size: 16px;
}

.fm-tile-gauge::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #4c0a28, #1c0513);
}

.fm-tile-gauge > i { position: relative; z-index: 1; }

.fm-tile-name {
    max-width: 100%;
    overflow: hidden;
    color: #f4e6d0;
    font-size: 11.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fm-tile-foot { display: flex; align-items: baseline; gap: 5px; }
.fm-tile-foot b { color: #fff; font-family: 'OpenSans-ExtraBold', sans-serif; font-size: 17px; font-weight: 800; line-height: 1; }

.fm-tile-trend { font-size: 9.5px; font-weight: 800; }
.fm-tile-trend.is-up { color: #49db98; }
.fm-tile-trend.is-down { color: #ff7d92; }
.fm-tile-trend.is-flat { color: #bc98a9; }

.fm-tile.is-top::before {
    content: "Best";
    position: absolute;
    top: 7px;
    right: 7px;
    padding: 1px 6px;
    border-radius: 999px;
    color: #260617;
    background: #f5dc80;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* detail panel */
.fm-detail {
    --tc: #f5dc80;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent);
    border-radius: 18px;
    background:
        radial-gradient(80% 90% at 0% 0%, color-mix(in srgb, var(--tc) 16%, transparent), transparent 70%),
        linear-gradient(170deg, #3d0c25, #22061a);
    animation: fm-fade 0.3s ease-out both;
}

.fm-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.fm-detail-ico {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    color: var(--tc);
    background: color-mix(in srgb, var(--tc) 18%, transparent);
}

.fm-detail-head strong { flex: 1; color: #fff; font-size: 15px; }
.fm-detail-score { color: var(--tc); font-size: 12px; font-weight: 800; white-space: pre; }
.fm-detail p { margin: 0; color: #eadde3; font-size: 13px; line-height: 1.65; }

/* ================= Lucky strip v2 ================= */
html body .focus-mood-lucky.fm-lucky-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(221, 173, 47, 0.35);
    border-radius: 18px;
    background:
        radial-gradient(70% 120% at 0% 0%, rgba(245, 220, 128, 0.14), transparent 60%),
        linear-gradient(120deg, #4c0a28, #260617);
}

.fm-lucky-tag {
    grid-column: 1 / -1;
    padding: 10px 14px 0;
    color: #f5dc80;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.fm-lucky-tag::before { content: "\2726  "; }

html body .fm-lucky-strip .focus-mood-lucky-card {
    padding: 8px 14px 12px !important;
    border: 0 !important;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
}

html body .fm-lucky-strip .focus-mood-lucky-card + .focus-mood-lucky-card { border-left: 1px solid rgba(245, 220, 128, 0.15) !important; }
html body .fm-lucky-strip .focus-mood-lucky-top { margin-bottom: 6px; }
html body .fm-lucky-strip .focus-mood-lucky-label { color: #bc98a9; font-size: 9px; }
html body .fm-lucky-strip .focus-mood-lucky-top > i { color: #f5dc80; font-size: 12px; }
html body .fm-lucky-strip .focus-mood-lucky-dot { width: 20px !important; height: 20px !important; animation: none; }
html body .fm-lucky-strip .focus-mood-lucky-value { display: block; font-size: 15px; line-height: 1.2; }
html body .fm-lucky-strip .fm-coins { display: flex; }
html body .fm-lucky-strip .fm-coin { min-width: 28px; height: 28px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
    .fm-tile, .fm-detail { animation: none !important; }
}

/* lucky strip sits above the reading card */
html body .focus-mood-lucky.fm-lucky-strip { margin: 14px 0 0; }
html body .fm-lucky-strip + article.focus-mood-insight { margin-top: 10px; }

/* ================= Lucky strip v3 ================= */
html body .focus-mood-lucky.fm-lucky-strip {
    --lc: #ddad2f;
    position: relative;
    border-color: color-mix(in srgb, var(--lc) 55%, #ddad2f) !important;
    background:
        radial-gradient(60% 130% at 0% 60%, color-mix(in srgb, var(--lc) 38%, transparent), transparent 70%),
        radial-gradient(50% 120% at 100% 50%, rgba(245, 220, 128, 0.14), transparent 70%),
        linear-gradient(120deg, #4c0a28, #260617) !important;
    box-shadow: 0 10px 24px rgba(38, 6, 23, 0.5), inset 0 1px 0 rgba(255, 248, 233, 0.08);
}

.fm-lucky-tag {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fm-lucky-tag::before { content: none !important; }
.fm-lucky-spark { color: #f5dc80; filter: drop-shadow(0 0 4px rgba(245, 220, 128, 0.8)); animation: fm-spark 2.4s ease-in-out infinite; }

/* colour half: big orb + label + name */
html body .fm-lucky-strip .focus-mood-lucky-card.is-color {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-areas: "orb label" "orb value";
    column-gap: 12px;
    align-items: center;
}

html body .fm-lucky-strip .focus-mood-lucky-card.is-color .focus-mood-lucky-top { display: contents; }
html body .fm-lucky-strip .focus-mood-lucky-card.is-color .focus-mood-lucky-label { grid-area: label; align-self: end; }
html body .fm-lucky-strip .focus-mood-lucky-card.is-color .focus-mood-lucky-value { grid-area: value; align-self: start; color: #fff !important; }

html body .fm-lucky-strip .focus-mood-lucky-card.is-color .focus-mood-lucky-dot {
    grid-area: orb;
    position: relative;
    width: 46px !important;
    height: 46px !important;
    border: 0 !important;
    border-radius: 50%;
    box-shadow:
        inset -6px -8px 14px rgba(0, 0, 0, 0.45),
        inset 5px 6px 10px rgba(255, 255, 255, 0.35),
        0 0 0 3px rgba(255, 248, 233, 0.12),
        0 0 22px var(--lc) !important;
    animation: fm-orb-breathe 3.2s ease-in-out infinite !important;
}

/* rotating shine ring around the orb */
html body .fm-lucky-strip .focus-mood-lucky-card.is-color .focus-mood-lucky-dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 248, 233, 0.9) 80%, transparent 90%);
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%);
    mask: radial-gradient(circle, transparent 62%, #000 64%);
    animation: hdr-spin 3s linear infinite;
}

/* number half */
html body .fm-lucky-strip .focus-mood-lucky-card.is-number .focus-mood-lucky-top > i { display: none; }
html body .fm-lucky-strip .fm-coin {
    position: relative;
    min-width: 38px;
    height: 38px;
    overflow: hidden;
    font-size: 16px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 14px rgba(221, 173, 47, 0.45);
}

html body .fm-lucky-strip .fm-coin::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
    transform: translateX(-130%);
    animation: fm-coin-shine 3.5s ease-in-out infinite;
}

html body .fm-lucky-strip .fm-coin:nth-child(2)::after { animation-delay: 0.3s; }
html body .fm-lucky-strip .fm-coins { gap: 8px; }

@keyframes fm-spark { 0%, 100% { transform: scale(0.85) rotate(0); } 50% { transform: scale(1.15) rotate(45deg); } }
@keyframes fm-orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes fm-coin-shine { 0%, 60% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

@media (prefers-reduced-motion: reduce) {
    .fm-lucky-spark, html body .fm-lucky-strip .focus-mood-lucky-dot, html body .fm-lucky-strip .focus-mood-lucky-dot::after, html body .fm-lucky-strip .fm-coin::after { animation: none !important; }
}

/* ================= Uniform spacing between blocks in a panel ================= */
html body .focus-mood-card .focus-mood-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

html body .focus-mood-card .focus-mood-panel > * { margin-top: 0 !important; margin-bottom: 0 !important; }
html body .focus-mood-card .focus-mood-panel > [hidden] { display: none !important; }
