:root {
    color-scheme: dark;

    --black: #020203;
    --panel: rgba(6, 6, 8, 0.96);
    --gold: #a9782c;
    --gold-soft: #d7ad55;
    --gold-bright: #f2d685;
    --pink: #d24da4;
    --violet: #7b3bb6;
    --blue: #41a4dd;
    --green: #66e497;
    --white: #f1eadc;
    --muted: #b9b0a4;
    --line: rgba(169, 120, 44, 0.58);
    --line-soft: rgba(169, 120, 44, 0.23);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: var(--black);
}

html {
    overflow: hidden;
}

body {
    overflow: hidden;
    color: var(--white);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button {
    font: inherit;
    color: inherit;
}

.world-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 48% 43%,
            rgba(91, 35, 119, 0.26),
            transparent 30%
        ),
        radial-gradient(
            circle at 77% 72%,
            rgba(132, 29, 104, 0.13),
            transparent 31%
        ),
        linear-gradient(
            140deg,
            #010102,
            #07050a 54%,
            #010102
        );
}

.world-stars {
    position: absolute;
    inset: -8%;
    opacity: 0.34;
    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,0.8) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle,
            rgba(215,173,85,0.7) 0 1px,
            transparent 1.5px
        );
    background-size: 139px 139px, 227px 227px;
    background-position: 0 0, 57px 91px;
}

.world-nebula {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 50% 48%,
            rgba(122, 47, 158, 0.2),
            transparent 42%
        );
}

.world-vignette {
    position: absolute;
    inset: 0;
    box-shadow:
        inset 0 0 13rem rgba(0,0,0,0.94);
}

.sage-dashboard {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100dvh;
    padding: 0.65rem;
    display: grid;
    grid-template-columns:
        minmax(20rem, 0.86fr)
        minmax(39rem, 1.45fr)
        minmax(20rem, 0.86fr);
    grid-template-rows:
        minmax(0, 1fr)
        6.85rem;
    grid-template-areas:
        "left center right"
        "rail rail rail";
    gap: 0.55rem;
}

.dashboard-column {
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.dashboard-column--left {
    grid-area: left;
}

.dashboard-column--right {
    grid-area: right;
}

.center-stage {
    grid-area: center;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows:
        minmax(0, 1fr)
        7.3rem;
    gap: 0.55rem;
}

.feature-panel,
.zodiac-stage,
.realms-panel,
.information-rail {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(12,10,14,0.96),
            rgba(3,3,4,0.97)
        );
    box-shadow:
        inset 0 0 0 4px rgba(0,0,0,0.72),
        inset 0 0 0 5px var(--line-soft),
        0 0.8rem 2.4rem rgba(0,0,0,0.42);
}

.feature-panel {
    min-height: 0;
    padding: 0.8rem;
    display: grid;
    grid-template-columns:
        minmax(6.8rem, 37%)
        minmax(0, 1fr);
    gap: 0.85rem;
}

.feature-art {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 0.5rem;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(139,60,175,0.42),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #130a1a,
            #020203
        );
}

.feature-art::before,
.feature-art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.feature-art::before {
    width: 80%;
    aspect-ratio: 1;
    border: 1px solid rgba(242,214,133,0.28);
}

.feature-art::after {
    width: 52%;
    aspect-ratio: 1;
    border: 1px solid rgba(210,77,164,0.38);
}

.feature-art-symbol {
    position: relative;
    z-index: 2;
    color: var(--gold-bright);
    font-family: Georgia, serif;
    font-size: clamp(3.4rem, 5.6vw, 6.4rem);
    text-shadow:
        0 0 1.3rem rgba(210,77,164,0.65);
}

.feature-content {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-status {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #9f978b;
    font-size: 0.57rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-status > span:first-child {
    width: 0.38rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        0 0 0.7rem rgba(102,228,151,0.75);
}

.panel-eyebrow {
    margin: 0 0 0.32rem;
    color: var(--gold-soft);
    font-family: Georgia, serif;
    font-size: clamp(0.62rem, 0.7vw, 0.79rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-panel h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(1.35rem, 1.7vw, 2rem);
    font-weight: 500;
    line-height: 1.05;
}

.panel-description {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: clamp(0.68rem, 0.77vw, 0.86rem);
    line-height: 1.48;
}

.panel-action {
    width: max-content;
    min-height: 2.15rem;
    margin-top: 0.7rem;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.35rem;
    background:
        linear-gradient(
            135deg,
            rgba(169,120,44,0.13),
            transparent
        );
    cursor: pointer;
}

.feature-panel[data-panel-id="stories"] {
    border-color: rgba(190,54,139,0.62);
}

.feature-panel[data-panel-id="stories"] .feature-art {
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(229,62,188,0.55),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #27102f,
            #050207 72%
        );
}

.feature-panel[data-panel-id="museum"] .feature-art {
    background:
        radial-gradient(
            circle,
            rgba(188,121,40,0.42),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #1b1004,
            #030303
        );
}

.feature-panel[data-panel-id="library"] .feature-art {
    background:
        radial-gradient(
            circle,
            rgba(136,82,28,0.34),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #160d05,
            #020202
        );
}

.feature-panel[data-panel-id="weather"] {
    border-color: rgba(75,134,61,0.56);
}

.feature-panel[data-panel-id="weather"] .feature-art {
    background:
        radial-gradient(
            circle at 76% 28%,
            rgba(255,219,123,0.76),
            transparent 13%
        ),
        radial-gradient(
            ellipse at 55% 65%,
            rgba(129,168,185,0.33),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #17302d,
            #030607
        );
}

.feature-panel[data-panel-id="radio"] {
    border-color: rgba(43,108,181,0.58);
}

.feature-panel[data-panel-id="radio"] .feature-art {
    background:
        radial-gradient(
            circle,
            rgba(65,62,229,0.42),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #090b2b,
            #030307
        );
}

.feature-panel[data-panel-id="lounge"] {
    border-color: rgba(190,54,139,0.58);
}

.feature-panel[data-panel-id="lounge"] .feature-art {
    background:
        radial-gradient(
            circle,
            rgba(224,48,183,0.52),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #2a0623,
            #040204
        );
}

.zodiac-stage {
    min-height: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(139,44,167,0.34),
            transparent 27%
        ),
        radial-gradient(
            circle at 50% 48%,
            rgba(37,45,130,0.21),
            transparent 54%
        ),
        linear-gradient(
            180deg,
            #08050d,
            #020203
        );
}

.zodiac-shell {
    position: relative;
    width: min(96%, 43rem);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.zodiac-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.zodiac-ring--outer {
    inset: 0;
    border: 2px solid rgba(169,120,44,0.76);
    box-shadow:
        0 0 1.4rem rgba(169,120,44,0.18),
        inset 0 0 2rem rgba(169,120,44,0.1);
}

.zodiac-ring--middle {
    inset: 13%;
    border: 1px solid rgba(215,173,85,0.46);
    box-shadow:
        0 0 2.2rem rgba(123,59,182,0.34),
        inset 0 0 2rem rgba(123,59,182,0.25);
}

.zodiac-ring--inner {
    inset: 29%;
    border: 1px solid rgba(215,173,85,0.39);
    background:
        radial-gradient(
            circle,
            rgba(114,39,145,0.27),
            rgba(3,3,4,0.96) 69%
        );
}

.zodiac-signs {
    position: absolute;
    inset: 0;
}

.zodiac-sign {
    --radius: 18.6rem;

    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.4rem;
    min-height: 4.1rem;
    padding: 0.25rem;
    display: grid;
    place-items: center;
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(calc(var(--radius) * -1))
        rotate(calc(var(--angle) * -1));
    border: 0;
    background: transparent;
    color: var(--gold-soft);
    cursor: pointer;
}

.zodiac-sign-symbol {
    width: 2.55rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215,173,85,0.68);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(130,53,200,0.92),
            rgba(33,7,55,0.95)
        );
    color: white;
    font-size: 1.45rem;
    box-shadow:
        0 0 0.9rem rgba(142,52,210,0.45);
}

.zodiac-sign-label {
    color: var(--gold-bright);
    font-family: Georgia, serif;
    font-size: 0.6rem;
    text-transform: uppercase;
}

.zodiac-sign:hover,
.zodiac-sign:focus-visible,
.zodiac-sign.is-active {
    color: white;
    text-shadow:
        0 0 0.8rem rgba(242,214,133,0.75);
}

.zodiac-sign.is-active .zodiac-sign-symbol {
    transform: scale(1.13);
    border-color: var(--gold-bright);
}

.zodiac-core {
    position: relative;
    z-index: 2;
    width: 45%;
    text-align: center;
}

.core-kicker {
    margin: 0;
    color: var(--gold-soft);
    font-family: Georgia, serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}

.core-symbol {
    width: clamp(5rem, 7vw, 7.2rem);
    aspect-ratio: 1;
    margin: 0.6rem auto 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(228,119,215,0.53);
    border-radius: 0.8rem;
    background:
        linear-gradient(
            145deg,
            #b85de2,
            #5a21a3 70%
        );
    color: white;
    font-size: clamp(4rem, 6vw, 6.4rem);
    line-height: 0.9;
    box-shadow:
        0 0 1.5rem rgba(194,73,222,0.49);
}

.zodiac-core h1 {
    margin: 0.5rem 0 0;
    font-family: Georgia, serif;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 500;
    line-height: 0.95;
    text-transform: uppercase;
}

.core-dates,
.core-element {
    margin: 0.22rem 0;
    color: #e2d5c1;
    font-family: Georgia, serif;
    font-size: 0.82rem;
}

.zodiac-core blockquote {
    max-width: 17rem;
    margin: 0.6rem auto 0;
    color: var(--white);
    font-family: Georgia, serif;
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.35;
}

.core-action {
    min-height: 2.3rem;
    margin-top: 0.65rem;
    padding: 0.42rem 1rem;
    border: 1px solid rgba(210,77,164,0.7);
    border-radius: 0.35rem;
    background:
        linear-gradient(
            135deg,
            rgba(173,37,136,0.36),
            rgba(52,15,71,0.74)
        );
    cursor: pointer;
}

.realms-panel {
    min-height: 0;
    padding: 0.5rem 0.75rem;
}

.panel-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.65rem;
}

.panel-heading span {
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--line)
        );
}

.panel-heading span:last-child {
    background:
        linear-gradient(
            90deg,
            var(--line),
            transparent
        );
}

.panel-heading h2 {
    margin: 0;
    color: var(--gold-soft);
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.realm-grid {
    margin-top: 0.38rem;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.38rem;
}

.realm-placeholder {
    min-width: 0;
    min-height: 4.25rem;
    padding: 0.25rem;
    display: grid;
    place-items: center;
    gap: 0.18rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.45rem;
    background:
        linear-gradient(
            145deg,
            rgba(169,120,44,0.09),
            transparent
        );
    cursor: default;
}

.realm-symbol {
    width: 2rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-soft);
    font-size: 1rem;
}

.realm-label {
    color: #d9ccb9;
    font-family: Georgia, serif;
    font-size: 0.52rem;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}

.realm-notice {
    margin: 0.28rem 0 0;
    color: #777067;
    font-size: 0.48rem;
    letter-spacing: 0.11em;
    text-align: center;
    text-transform: uppercase;
}

.information-rail {
    grid-area: rail;
    min-height: 0;
    display: grid;
    grid-template-columns:
        0.92fr
        1.12fr
        1.12fr
        1.12fr
        1.12fr
        1.05fr;
}

.information-rail > * {
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border: 0;
    border-right: 1px solid var(--line-soft);
    background: transparent;
}

.information-rail > *:last-child {
    border-right: 0;
}

.about-sage-chip,
.rail-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
}

.about-sage-chip {
    cursor: pointer;
}

.rail-icon {
    flex: 0 0 auto;
    width: 2.4rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-soft);
    font-size: 1.08rem;
}

.rail-card strong,
.about-sage-chip strong {
    display: block;
    color: var(--gold-soft);
    font-family: Georgia, serif;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.rail-card small,
.about-sage-chip small {
    display: block;
    margin-top: 0.22rem;
    color: var(--muted);
    font-size: 0.58rem;
    line-height: 1.35;
}

.rail-card--status {
    position: relative;
    border: 1px solid var(--line-soft);
    border-radius: 0.45rem;
    margin: 0.55rem;
    padding: 0.55rem 0.7rem;
}

.status-light {
    flex: 0 0 auto;
    width: 0.48rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        0 0 0.7rem rgba(102,228,151,0.79);
}

.status-copy {
    color: var(--green) !important;
}

@media (max-height: 850px) and (min-width: 1181px) {
    .sage-dashboard {
        grid-template-rows:
            minmax(0, 1fr)
            5.7rem;
    }

    .center-stage {
        grid-template-rows:
            minmax(0, 1fr)
            6.65rem;
    }

    .feature-panel {
        padding: 0.65rem;
    }

    .zodiac-shell {
        width: min(91%, 38rem);
    }

    .zodiac-sign {
        --radius: 16.4rem;
    }

    .core-symbol {
        width: 5rem;
        font-size: 4rem;
    }

    .zodiac-core h1 {
        font-size: 2.9rem;
    }

    .rail-card small,
    .about-sage-chip small {
        font-size: 0.53rem;
    }
}

@media (max-width: 1180px) {
    html,
    body {
        overflow: auto;
    }

    .sage-dashboard {
        height: auto;
        min-height: 100dvh;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "center center"
            "left right"
            "rail rail";
    }

    .center-stage {
        min-height: 47rem;
    }

    .dashboard-column {
        min-height: 52rem;
    }

    .information-rail {
        grid-template-columns: repeat(3, 1fr);
    }

    .information-rail > * {
        border-bottom: 1px solid var(--line-soft);
    }
}

@media (max-width: 760px) {
    .sage-dashboard {
        display: flex;
        flex-direction: column;
        padding: 0.45rem;
    }

    .center-stage {
        min-height: auto;
        order: 1;
    }

    .zodiac-stage {
        min-height: 32rem;
    }

    .dashboard-column--left {
        order: 2;
    }

    .dashboard-column--right {
        order: 3;
    }

    .information-rail {
        order: 4;
        display: grid;
        grid-template-columns: 1fr;
    }

    .feature-panel {
        min-height: 15rem;
        grid-template-columns: 7rem 1fr;
    }

    .zodiac-shell {
        width: 100%;
    }

    .zodiac-sign {
        --radius: min(41vw, 10.6rem);
        width: 3.1rem;
        min-height: 3.3rem;
    }

    .zodiac-sign-symbol {
        width: 2rem;
        font-size: 1.05rem;
    }

    .zodiac-sign-label {
        display: none;
    }

    .zodiac-core {
        width: 48%;
    }

    .core-symbol {
        width: 4rem;
        font-size: 3rem;
    }

    .zodiac-core h1 {
        font-size: 1.6rem;
    }

    .core-dates,
    .core-element,
    .zodiac-core blockquote {
        font-size: 0.68rem;
    }

    .realm-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   SAGE PHASE 3 — ZODIAC CIRCLE SCALE CORRECTION
   Shrinks only the wheel inside the existing center panel.
   ========================================================== */

@media (min-width: 1181px) {
    .zodiac-shell {
        width: min(82%, 37rem);
    }

    .zodiac-sign {
        --radius: 16rem;
    }
}

@media (min-width: 1500px) and (min-height: 850px) {
    .zodiac-shell {
        width: min(84%, 39rem);
    }

    .zodiac-sign {
        --radius: 16.9rem;
    }
}

/* ==========================================================
   SAGE — INNER ARIES CORE SHRINK
   Changes only the central sign-information circle.
   Outer wheel, center panel and realm bar remain unchanged.
   ========================================================== */

@media (min-width: 1181px) {
    .zodiac-ring--inner {
        inset: 35%;
    }

    .zodiac-core {
        width: 34%;
    }

    .core-symbol {
        width: clamp(4.1rem, 5.2vw, 5.6rem);
        font-size: clamp(3.2rem, 4.7vw, 4.8rem);
        margin-top: 0.35rem;
    }

    .zodiac-core h1 {
        margin-top: 0.32rem;
        font-size: clamp(2rem, 3.2vw, 3.15rem);
    }

    .core-kicker {
        font-size: 0.61rem;
    }

    .core-dates,
    .core-element {
        font-size: 0.72rem;
    }

    .zodiac-core blockquote {
        max-width: 13rem;
        margin-top: 0.42rem;
        font-size: 0.75rem;
        line-height: 1.28;
    }

    .core-action {
        min-height: 2.05rem;
        margin-top: 0.48rem;
        padding: 0.34rem 0.85rem;
        font-size: 0.82rem;
    }
}

/* SAGE SIGN-WHEEL TARGET — START
   The center panel box remains unchanged.
   This resizes only the wheel containing the twelve zodiac signs.
   It also restores the inner Aries core changed by the previous patch.
*/

@media (min-width: 1181px) {
    .zodiac-shell {
        --sage-wheel-size: min(
            calc(100dvh - 20rem),
            30rem
        );

        width: var(--sage-wheel-size);
        height: var(--sage-wheel-size);
        max-width: none;
    }

    .zodiac-sign {
        --radius: calc(
            var(--sage-wheel-size) * 0.425
        );
    }

    /* Restore the inner Aries circle */
    .zodiac-ring--inner {
        inset: 29%;
    }

    .zodiac-core {
        width: 45%;
    }

    .core-kicker {
        font-size: 0.68rem;
    }

    .core-symbol {
        width: 5rem;
        margin: 0.6rem auto 0;
        font-size: 4rem;
    }

    .zodiac-core h1 {
        margin: 0.5rem 0 0;
        font-size: 2.9rem;
    }

    .core-dates,
    .core-element {
        font-size: 0.82rem;
    }

    .zodiac-core blockquote {
        max-width: 17rem;
        margin-top: 0.6rem;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .core-action {
        min-height: 2.3rem;
        margin-top: 0.65rem;
        padding: 0.42rem 1rem;
        font-size: inherit;
    }
}

/* SAGE SIGN-WHEEL TARGET — END */

/* SAGE REPLACEABLE ZODIAC MEDALLIONS — START
   Adds replaceable artwork support without changing dimensions.
*/

.zodiac-sign.has-custom-medallion .zodiac-sign-symbol {
    overflow: hidden;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.zodiac-sign-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
}

/* SAGE REPLACEABLE ZODIAC MEDALLIONS — END */

/* SAGE_NATIVE_PANEL_IMAGES_20260728 START */

.feature-panel.has-custom-panel-image .feature-art {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #050306;
}

.feature-panel.has-custom-panel-image .feature-art::before,
.feature-panel.has-custom-panel-image .feature-art::after {
    display: none;
}

.feature-panel-custom-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter:
        brightness(0.88)
        saturate(1.05)
        contrast(1.04);
    transition:
        transform 220ms ease,
        filter 220ms ease;
}

.feature-art--interactive {
    cursor: pointer;
}

.feature-art--interactive:hover
.feature-panel-custom-image,
.feature-art--interactive:focus-visible
.feature-panel-custom-image {
    transform: scale(1.025);
    filter:
        brightness(0.98)
        saturate(1.08)
        contrast(1.04);
}

.feature-art--interactive:focus-visible {
    outline: 2px solid #d9a93a;
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    .feature-panel-custom-image {
        transition: none;
    }
}

/* SAGE_NATIVE_PANEL_IMAGES_20260728 END */

/* SAGE_FULL_ART_SIDE_WINDOWS_20260728 START */

/*
 * Converts the six side destination panels into full-art windows.
 * Controls remain accessible through pointer movement, touch and focus.
 */

.feature-panel.sage-living-window {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: block !important;
    padding: 0 !important;
    background: #030304;
    touch-action: manipulation;
    box-shadow:
        inset 0 0 0 1px rgba(242, 214, 133, 0.14),
        0 0.8rem 2.4rem rgba(0, 0, 0, 0.42);
}

.feature-panel.sage-living-window > .feature-art {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    display: block !important;
    border-radius: inherit;
    background-color: #030304;
}

.feature-panel.sage-living-window
.feature-panel-custom-image,
.feature-panel.sage-living-window
.museum-spotlight-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter:
        brightness(0.96)
        saturate(1.08)
        contrast(1.04);
    transform: scale(1.01);
    transition:
        transform 700ms ease,
        filter 700ms ease;
}

.feature-panel.sage-living-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.2;
    background:
        linear-gradient(
            180deg,
            transparent 48%,
            rgba(0, 0, 0, 0.08) 66%,
            rgba(0, 0, 0, 0.34) 100%
        );
    transition: opacity 420ms ease;
}

.feature-panel.sage-living-window
.feature-content {
    position: absolute !important;
    z-index: 7;
    top: auto !important;
    right: auto !important;
    bottom: 0.62rem;
    left: 50%;

    width: calc(100% - 1.2rem);
    max-width: calc(100% - 1.2rem);
    min-width: 0;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    padding: 0.58rem 0.7rem 0.62rem;
    border: 1px solid rgba(242, 214, 133, 0.34);
    border-radius: 0.62rem;

    background:
        linear-gradient(
            135deg,
            rgba(5, 4, 8, 0.17),
            rgba(5, 4, 8, 0.05)
        );

    box-shadow:
        0 0.55rem 1.4rem rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);

    -webkit-backdrop-filter:
        blur(4px)
        saturate(1.06);

    backdrop-filter:
        blur(4px)
        saturate(1.06);

    text-align: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translate(-50%, 0.55rem);

    transition:
        opacity 420ms ease,
        transform 420ms ease,
        visibility 0s linear 420ms;
}

.feature-panel.sage-living-window.is-overlay-visible
.feature-content,
.feature-panel.sage-living-window:focus-within
.feature-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translate(-50%, 0);

    transition-delay: 0s;
}

.feature-panel.sage-living-window.is-overlay-visible::after,
.feature-panel.sage-living-window:focus-within::after {
    opacity: 0.78;
}

.feature-panel.sage-living-window.is-overlay-visible
.feature-panel-custom-image,
.feature-panel.sage-living-window:focus-within
.feature-panel-custom-image,
.feature-panel.sage-living-window.is-overlay-visible
.museum-spotlight-image.is-active,
.feature-panel.sage-living-window:focus-within
.museum-spotlight-image.is-active {
    transform: scale(1.026);

    filter:
        brightness(1)
        saturate(1.1)
        contrast(1.04);
}

.feature-panel.sage-living-window
.panel-description,
.feature-panel.sage-living-window
.feature-status {
    display: none !important;
}

.feature-panel.sage-living-window
.panel-eyebrow {
    margin: 0 0 0.18rem;
    color: #f0c969;
    font-size: clamp(0.59rem, 0.67vw, 0.75rem);
    line-height: 1.1;
    text-shadow:
        0 1px 0.3rem rgba(0, 0, 0, 0.98),
        0 0 0.8rem rgba(0, 0, 0, 0.88);
}

.feature-panel.sage-living-window h2 {
    margin: 0;
    max-width: 100%;
    color: #fff8e9;
    font-size: clamp(1.18rem, 1.5vw, 1.72rem);
    line-height: 1.03;
    text-wrap: balance;
    text-shadow:
        0 2px 0.35rem rgba(0, 0, 0, 1),
        0 0 1rem rgba(0, 0, 0, 0.94);
}

.feature-panel.sage-living-window
.panel-action {
    width: max-content;
    max-width: 100%;
    min-height: 2rem;
    margin-top: 0.42rem;
    padding: 0.34rem 0.86rem;

    border:
        1px solid rgba(242, 214, 133, 0.66);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(4, 3, 7, 0.2),
            rgba(4, 3, 7, 0.08)
        );

    box-shadow:
        0 0.25rem 0.9rem rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);

    -webkit-backdrop-filter:
        blur(6px)
        saturate(1.1);

    backdrop-filter:
        blur(6px)
        saturate(1.1);

    color: #fff9eb;
    text-shadow:
        0 1px 0.35rem rgba(0, 0, 0, 1);

    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.feature-panel.sage-living-window
.panel-action:hover,
.feature-panel.sage-living-window
.panel-action:focus-visible {
    border-color: rgba(255, 225, 150, 0.96);

    background:
        linear-gradient(
            135deg,
            rgba(38, 23, 8, 0.42),
            rgba(8, 5, 12, 0.22)
        );

    box-shadow:
        0 0 1rem rgba(215, 173, 85, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.055);

    transform: translateY(-1px);
}

/*
 * Museum arrows and slide counter follow the same reveal behavior.
 */

.feature-panel.sage-living-window
.museum-spotlight-arrow,
.feature-panel.sage-living-window
.museum-spotlight-counter {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 360ms ease,
        visibility 0s linear 360ms;
}

.feature-panel.sage-living-window.is-overlay-visible
.museum-spotlight-arrow,
.feature-panel.sage-living-window.is-overlay-visible
.museum-spotlight-counter,
.feature-panel.sage-living-window:focus-within
.museum-spotlight-arrow,
.feature-panel.sage-living-window:focus-within
.museum-spotlight-counter {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.feature-panel.sage-living-window.is-overlay-visible
.museum-spotlight-arrow,
.feature-panel.sage-living-window:focus-within
.museum-spotlight-arrow {
    pointer-events: auto;
}

@media (max-width: 1180px) {
    .feature-panel.sage-living-window {
        min-height: 18rem;
    }

    .feature-panel.sage-living-window
    .feature-content {
        bottom: 0.7rem;
        width: calc(100% - 1.3rem);
    }
}

@media (max-width: 760px) {
    .feature-panel.sage-living-window {
        min-height: 19rem;
    }

    .feature-panel.sage-living-window
    .feature-content {
        bottom: 0.55rem;
        width: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
        padding: 0.58rem 0.62rem;
    }

    .feature-panel.sage-living-window h2 {
        font-size: clamp(1.28rem, 6vw, 1.72rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-panel.sage-living-window::after,
    .feature-panel.sage-living-window
    .feature-content,
    .feature-panel.sage-living-window
    .feature-panel-custom-image,
    .feature-panel.sage-living-window
    .museum-spotlight-image,
    .feature-panel.sage-living-window
    .museum-spotlight-arrow,
    .feature-panel.sage-living-window
    .museum-spotlight-counter {
        transition: none !important;
    }
}

/* SAGE_FULL_ART_SIDE_WINDOWS_20260728 END */

/* SAGE_TAROT_ATTRACTION_BUTTONS_20260729 START */

/*
 * Visual treatment only.
 * Existing grid, width, height, padding, spacing and position rules
 * above remain untouched.
 */

.realms-panel .realm-placeholder {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    border-color:
        rgba(208, 174, 255, 0.38);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(200, 169, 255, 0.15),
            transparent 64%
        ),
        linear-gradient(
            145deg,
            rgba(95, 52, 133, 0.2),
            rgba(18, 12, 25, 0.56)
        );

    box-shadow:
        inset 0 0 0.72rem
            rgba(126, 71, 188, 0.11),
        0 0 0.42rem
            rgba(213, 173, 83, 0.08);

    text-decoration: none;

    transition:
        border-color 240ms ease,
        box-shadow 240ms ease,
        filter 240ms ease;
}

.realms-panel .realm-placeholder::before {
    position: absolute;
    inset: -35%;
    z-index: -1;

    content: "";

    pointer-events: none;

    opacity: 0.2;

    background:
        linear-gradient(
            115deg,
            transparent 38%,
            rgba(255, 226, 160, 0.16) 48%,
            rgba(200, 169, 255, 0.2) 52%,
            transparent 62%
        );
}

.realms-panel .realm-placeholder
.realm-symbol {
    border-color:
        rgba(213, 173, 83, 0.58);

    color: #d8c0ff;

    background:
        radial-gradient(
            circle,
            rgba(126, 71, 188, 0.28),
            rgba(22, 13, 29, 0.55)
        );

    box-shadow:
        inset 0 0 0.55rem
            rgba(200, 169, 255, 0.11),
        0 0 0.55rem
            rgba(213, 173, 83, 0.09);

    text-shadow:
        0 0 0.5rem
            rgba(200, 169, 255, 0.72);
}

.realms-panel .realm-placeholder
.realm-label {
    color: #e4d7f4;

    text-shadow:
        0 0 0.42rem
            rgba(200, 169, 255, 0.32);
}

.realms-panel .realm-placeholder:not(.is-active) {
    opacity: 0.76;
}

.realms-panel .realm-placeholder.is-active {
    cursor: pointer;

    border-color:
        rgba(255, 218, 139, 0.88);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(200, 169, 255, 0.3),
            transparent 67%
        ),
        linear-gradient(
            145deg,
            rgba(116, 61, 158, 0.42),
            rgba(23, 13, 32, 0.75)
        );

    box-shadow:
        inset 0 0 0.88rem
            rgba(200, 169, 255, 0.19),
        0 0 0.66rem
            rgba(126, 71, 188, 0.47),
        0 0 1rem
            rgba(213, 173, 83, 0.22);

    animation:
        sageAttractionGlow
        3.8s
        ease-in-out
        infinite;
}

.realms-panel .realm-placeholder.is-active::before {
    opacity: 0.72;

    animation:
        sageAttractionShimmer
        4.6s
        linear
        infinite;
}

.realms-panel .realm-placeholder.is-active
.realm-symbol {
    border-color:
        rgba(255, 226, 160, 0.96);

    color: #fff0c3;

    box-shadow:
        inset 0 0 0.65rem
            rgba(200, 169, 255, 0.25),
        0 0 0.72rem
            rgba(213, 173, 83, 0.48);

    text-shadow:
        0 0 0.42rem
            rgba(255, 226, 160, 0.9),
        0 0 0.72rem
            rgba(200, 169, 255, 0.72);
}

.realms-panel .realm-placeholder.is-active
.realm-label {
    color: #fff0c3;

    text-shadow:
        0 0 0.45rem
            rgba(213, 173, 83, 0.62),
        0 0 0.7rem
            rgba(200, 169, 255, 0.5);
}

.realms-panel .realm-placeholder.is-active:hover,
.realms-panel .realm-placeholder.is-active:focus-visible {
    border-color: #ffe2a0;

    outline: none;

    filter:
        brightness(1.09)
        saturate(1.08);

    box-shadow:
        inset 0 0 1rem
            rgba(200, 169, 255, 0.25),
        0 0 0.82rem
            rgba(126, 71, 188, 0.64),
        0 0 1.3rem
            rgba(213, 173, 83, 0.34);
}

@keyframes sageAttractionGlow {
    0%,
    100% {
        box-shadow:
            inset 0 0 0.88rem
                rgba(200, 169, 255, 0.17),
            0 0 0.58rem
                rgba(126, 71, 188, 0.42),
            0 0 0.9rem
                rgba(213, 173, 83, 0.18);
    }

    50% {
        box-shadow:
            inset 0 0 1rem
                rgba(200, 169, 255, 0.23),
            0 0 0.8rem
                rgba(126, 71, 188, 0.62),
            0 0 1.18rem
                rgba(213, 173, 83, 0.3);
    }
}

@keyframes sageAttractionShimmer {
    from {
        transform: translateX(-64%);
    }

    to {
        transform: translateX(64%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .realms-panel .realm-placeholder.is-active,
    .realms-panel .realm-placeholder.is-active::before {
        animation: none !important;
    }
}

/* SAGE_TAROT_ATTRACTION_BUTTONS_20260729 END */


/* ==========================================================
   MENTAL HEALTH & WELLNESS — FULL INFORMATION RAIL BUTTON
   ========================================================== */

.rail-card--wellness {
    position: relative;

    cursor: pointer;

    text-decoration: none;

    color: inherit;

    background:
        radial-gradient(
            circle at 18% 50%,
            rgba(88, 224, 194, 0.12),
            transparent 42%
        );

    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}


.rail-card--wellness::after {
    content: "";

    position: absolute;

    inset: 0.28rem;

    pointer-events: none;

    border:
        1px solid
        rgba(103, 229, 200, 0.20);

    border-radius: 0.45rem;

    box-shadow:
        inset 0 0 1.2rem
        rgba(80, 220, 187, 0.04);

    opacity: 0.85;
}


.rail-card--wellness .rail-icon {
    color:
        #8ff1d7;

    border-color:
        rgba(107, 232, 203, 0.48);

    box-shadow:
        0 0 0.75rem
        rgba(84, 223, 190, 0.24),
        inset 0 0 0.65rem
        rgba(84, 223, 190, 0.08);
}


.rail-card--wellness strong {
    color:
        #a7f3df;

    text-shadow:
        0 0 0.65rem
        rgba(105, 231, 200, 0.38);
}


.rail-card--wellness:hover,
.rail-card--wellness:focus-visible {
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(92, 232, 199, 0.21),
            transparent 48%
        ),
        rgba(47, 137, 118, 0.055);

    box-shadow:
        inset 0 0 1.35rem
        rgba(85, 225, 192, 0.07);

    transform:
        translateY(-1px);

    outline: none;
}


.rail-card--wellness:hover .rail-icon,
.rail-card--wellness:focus-visible .rail-icon {
    box-shadow:
        0 0 1.15rem
        rgba(93, 239, 204, 0.48),
        inset 0 0 0.75rem
        rgba(93, 239, 204, 0.13);
}


/* SAGE_TIGHTEN_20260827 START
   Fix slight top clipping + remove excess tablet/narrow-desktop scroll.
   Artwork proportions preserved.
*/
@media (min-width: 761px) and (max-width: 1180px) {

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .sage-dashboard {
        padding: 1rem 0.5rem 0.5rem;
        gap: 0.4rem;
    }

    .center-stage {
        min-height: 38rem;
        gap: 0.4rem;
        grid-template-rows:
            minmax(0, 1fr)
            6.25rem;
    }

    .dashboard-column {
        min-height: 40rem;
        gap: 0.4rem;
    }

    .feature-panel {
        padding: 0.6rem;
        gap: 0.65rem;
    }
}
/* SAGE_TIGHTEN_20260827 END */
