:root {
    color-scheme: dark;
    --bg: #070812;
    --bg-soft: #101024;
    --glass: rgba(18, 18, 38, 0.72);
    --glass-strong: rgba(25, 24, 48, 0.9);
    --line: rgba(224, 207, 158, 0.5);
    --line-soft: rgba(221, 226, 238, 0.22);
    --gold: #e6c878;
    --silver: #d9deeb;
    --text: #f7f1ff;
    --muted: #b8b3cf;
    --violet: #8f62ff;
    --rose: #da6ea8;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

button {
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(244, 220, 149, 0.9);
    outline-offset: 3px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 12%, rgba(130, 77, 255, 0.28), transparent 28rem),
        radial-gradient(circle at 82% 8%, rgba(232, 196, 116, 0.15), transparent 20rem),
        linear-gradient(145deg, #050610 0%, #0c1025 45%, #180d2c 100%);
    overflow-x: hidden;
}

body.is-modal-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.8) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(230,200,120,0.6) 0 1px, transparent 1.4px);
    background-size: 46px 46px, 83px 83px;
    background-position: 0 0, 18px 31px;
    opacity: 0.22;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

button,
a {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
li,
dd,
dt,
td,
th,
span,
strong,
a,
button {
    overflow-wrap: break-word;
}

.cosmic-shell,
.cosmic-section-nav,
.cosmic-section-nav__links,
.weather-card,
.lunar-card,
.chart-card,
.report-card,
.status-card,
.archetype-section,
.question-card,
.result-card,
.quiz-intro-card,
.quiz-question-card,
.quiz-result-card,
.compatibility-card,
.compatibility-result-card,
.detail-panel,
.horoscope-dialog,
.cosmic-banner,
.cosmic-hero {
    max-width: 100%;
    min-width: 0;
}

.cosmic-shell {
    position: relative;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(10px, 3vw, 24px) clamp(10px, 3vw, 24px) 172px;
}

.cosmic-section-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid rgba(217, 222, 235, 0.16);
    border-radius: 20px;
    background: rgba(8, 9, 22, 0.78);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.cosmic-section-nav__brand,
.cosmic-section-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cosmic-section-nav__brand {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: var(--gold);
    font-size: 0.94rem;
}

.cosmic-section-nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cosmic-section-nav__link {
    min-width: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--silver);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.cosmic-section-nav__link:hover,
.cosmic-section-nav__link:focus-visible,
.cosmic-section-nav__link.is-active {
    border-color: rgba(230, 200, 120, 0.5);
    background: rgba(230, 200, 120, 0.12);
    color: var(--text);
    outline: none;
    transform: translateY(-1px);
}

.cosmic-section-nav__link.is-active {
    box-shadow: inset 0 0 0 1px rgba(230, 200, 120, 0.18);
}

.weather-card,
.chart-card,
.detail-panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(24, 23, 48, 0.78), rgba(12, 13, 29, 0.72));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.weather-card {
    border-radius: 22px;
    padding: 18px;
}

.lunar-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(217, 222, 235, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 14% 18%, rgba(217, 222, 235, 0.16), transparent 14rem),
        linear-gradient(145deg, rgba(24, 23, 48, 0.76), rgba(8, 9, 22, 0.74));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 18px;
}

.lunar-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 26%, rgba(230, 200, 120, 0.12), transparent 14rem),
        radial-gradient(circle at 82% 78%, rgba(143, 98, 255, 0.16), transparent 16rem);
}

.lunar-orb {
    position: absolute;
    top: 18px;
    right: 18px;
    width: clamp(64px, 18vw, 104px);
    height: clamp(64px, 18vw, 104px);
    border: 1px solid rgba(217, 222, 235, 0.32);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), rgba(217, 222, 235, 0.72) 34%, rgba(120, 123, 148, 0.34) 70%, rgba(5, 6, 16, 0.28) 100%);
    box-shadow:
        0 0 34px rgba(217, 222, 235, 0.2),
        inset -14px -8px 24px rgba(8, 9, 22, 0.34);
    opacity: 0.48;
}

.lunar-phase {
    max-width: 24rem;
    margin: 10px 0 0;
    color: var(--text);
    font-size: clamp(1.6rem, 8vw, 3.2rem);
    font-weight: 900;
    line-height: 1.04;
}

.lunar-meta,
.lunar-source {
    max-width: 44rem;
    margin: 10px 0 0;
    color: var(--silver);
    line-height: 1.55;
}

.lunar-source {
    color: var(--muted);
    font-size: 0.9rem;
}

.cosmic-hero,
.cosmic-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(8, 9, 22, 0.86);
    box-shadow: var(--shadow);
}

.cosmic-hero {
    min-height: clamp(240px, 72vw, 360px);
    margin-bottom: 10px;
}

.cosmic-hero img,
.cosmic-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cosmic-hero img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.cosmic-hero::after,
.cosmic-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 6, 16, 0.4), rgba(5, 6, 16, 0.86));
}

.cosmic-hero-copy {
    display: grid;
    align-content: end;
    min-height: clamp(240px, 72vw, 360px);
    max-width: 520px;
    margin-left: auto;
    padding: clamp(16px, 5vw, 28px);
}

.cosmic-hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(1.9rem, 10vw, 4rem);
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.56);
}

.cosmic-hero-copy p:not(.eyebrow),
.cosmic-banner-copy h2 {
    color: var(--silver);
    line-height: 1.5;
}

.cosmic-banner {
    min-height: 190px;
    margin-top: 10px;
}

.cosmic-banner img {
    min-height: 190px;
}

.cosmic-banner-copy {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(5, 6, 16, 0.84), transparent);
}

.cosmic-banner-copy h2 {
    max-width: 34rem;
    font-size: 1.2rem;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.05;
}

h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 12vw, 4.8rem);
}

h2 {
    font-size: 1.45rem;
}

.weather-card h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 12vw, 4.8rem);
}

.vibe-line {
    max-width: 38rem;
    margin: 12px 0 0;
    color: var(--silver);
    font-size: 1rem;
    line-height: 1.55;
}

.weather-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    min-width: 0;
}

.primary-action,
.secondary-action {
    min-width: 0;
    min-height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.primary-action {
    border: 1px solid rgba(230, 200, 120, 0.72);
    color: #17100a;
    background: linear-gradient(135deg, #f4dc95, #cfa65d);
    font-weight: 800;
}

.primary-action:hover,
.primary-action:focus-visible {
    box-shadow: 0 0 24px rgba(230, 200, 120, 0.28);
    transform: translateY(-1px);
    outline: none;
}

.secondary-action {
    border: 1px solid rgba(217, 222, 235, 0.24);
    color: var(--silver);
    background: rgba(255, 255, 255, 0.06);
}

.secondary-action:hover,
.secondary-action:focus-visible,
.secondary-action.is-active {
    border-color: rgba(217, 222, 235, 0.5);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.coming-soon {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.chart-card {
    margin-top: 10px;
    border-radius: 22px;
    padding: clamp(10px, 3vw, 22px);
    min-width: 0;
}

.chart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    min-width: 0;
}

.chart-heading > *,
.report-heading.split > *,
.quiz-result-content,
.compatibility-result-header > *,
.compatibility-profile,
.compatibility-explanation-card,
.cosmic-reading__block,
.archetype-card {
    min-width: 0;
}

.planet-count {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.82rem;
}

.planet-count[data-tone="success"] {
    color: var(--gold);
}

.planet-count[data-tone="error"] {
    color: #ffb3c7;
}

.report-count[data-tone="error"] {
    border-color: rgba(255, 179, 199, 0.3);
    background: rgba(255, 179, 199, 0.08);
    color: #ffb3c7;
}

.zodiac-chart {
    width: 100%;
    aspect-ratio: 1;
    max-width: 680px;
    min-height: 0;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.zodiac-chart svg {
    width: 100%;
    height: auto;
    max-width: 680px;
    aspect-ratio: 1;
    overflow: hidden;
}

.zodiac-sector {
    fill: rgba(255, 255, 255, 0.001);
    stroke: transparent;
    stroke-width: 0;
    cursor: pointer;
    transition: fill 160ms ease, filter 160ms ease, stroke 160ms ease, stroke-width 160ms ease;
}

.zodiac-slice {
    fill: rgba(255, 255, 255, 0.001);
    stroke: transparent;
    stroke-width: 0;
    cursor: pointer;
}

.zodiac-sector:hover,
.zodiac-sector:focus-visible,
.zodiac-sector.is-active {
    fill: rgba(143, 98, 255, 0.22);
    stroke: rgba(244, 220, 149, 0.95);
    stroke-width: 2;
    filter: drop-shadow(0 0 12px rgba(230, 200, 120, 0.55));
    outline: none;
}

.zodiac-sector.is-active {
    fill: rgba(230, 200, 120, 0.18);
    filter: drop-shadow(0 0 16px rgba(230, 200, 120, 0.68));
}

.zodiac-slice:focus-visible {
    stroke: rgba(244, 220, 149, 0.95);
    stroke-width: 2;
    outline: none;
}

.wheel-ring,
.aspect-line {
    fill: none;
    stroke: var(--line-soft);
    stroke-width: 1;
}

.wheel-ring {
    stroke: var(--line);
    stroke-width: 1.5;
}

.zodiac-line {
    stroke: rgba(230, 200, 120, 0.36);
    stroke-width: 1;
}

.zodiac-label,
.planet-label {
    fill: var(--text);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    letter-spacing: 0;
}

.zodiac-label {
    fill: var(--silver);
    font-size: 10px;
    font-weight: 800;
}

.house-line {
    stroke: rgba(217, 222, 235, 0.26);
    stroke-dasharray: 4 6;
    stroke-width: 0.9;
}

.house-label {
    fill: rgba(217, 222, 235, 0.72);
    font-size: 9px;
    font-weight: 800;
    pointer-events: none;
}

.planet-label {
    fill: var(--text);
    font-size: 10px;
    font-weight: 700;
}

.planet-dot {
    fill: var(--planet-color, rgba(230, 200, 120, 0.95));
    stroke: rgba(5, 6, 16, 0.9);
    stroke-width: 1.4;
    filter: drop-shadow(0 0 7px color-mix(in srgb, var(--planet-color, var(--gold)) 62%, transparent));
}

.planet-stem {
    stroke: color-mix(in srgb, var(--planet-color, var(--gold)) 58%, transparent);
    stroke-width: 0.8;
}

.planet-label-bg {
    fill: rgba(5, 6, 16, 0.86);
    stroke: var(--planet-color, rgba(230, 200, 120, 0.76));
    stroke-width: 1.2;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--planet-color, var(--gold)) 38%, transparent));
}

.aspect-conjunction {
    stroke: rgba(244, 220, 149, 0.76);
}

.aspect-opposition,
.aspect-square {
    stroke: rgba(218, 110, 168, 0.72);
}

.aspect-trine,
.aspect-sextile {
    stroke: rgba(117, 217, 197, 0.72);
}

.aspect-other {
    stroke: rgba(217, 222, 235, 0.44);
}

.chart-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.weather-report {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.report-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(24, 23, 48, 0.74), rgba(12, 13, 29, 0.68));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 18px;
}

.report-intro h2 {
    font-size: clamp(2rem, 9vw, 3.6rem);
}

.report-meta,
.quick-read {
    margin: 10px 0 0;
    color: var(--silver);
    line-height: 1.55;
}

.report-heading {
    margin-bottom: 12px;
}

.report-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.2;
}

.report-heading.split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.report-count {
    flex: 0 0 auto;
    border: 1px solid rgba(230, 200, 120, 0.28);
    border-radius: 999px;
    background: rgba(230, 200, 120, 0.09);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 10px;
}

.report-table-wrap {
    width: 100%;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    overscroll-behavior-inline: contain;
}

.report-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    border-bottom: 1px solid rgba(217, 222, 235, 0.12);
    color: var(--silver);
    padding: 11px 10px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.report-table td {
    max-width: 18rem;
    white-space: normal;
    overflow-wrap: break-word;
}

.report-table th {
    color: var(--gold);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.report-planet-marker {
    display: inline-block;
    width: 0.72rem;
    height: 0.72rem;
    margin-right: 8px;
    border: 1px solid rgba(5, 6, 16, 0.82);
    border-radius: 50%;
    background: var(--planet-color, var(--muted));
    box-shadow: 0 0 10px color-mix(in srgb, var(--planet-color, var(--muted)) 55%, transparent);
    vertical-align: -0.04em;
}

.aspect-tag {
    display: inline-flex;
    margin-left: 8px;
    border: 1px solid rgba(217, 222, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 7px;
    white-space: nowrap;
}

.report-toggle {
    width: fit-content;
    max-width: 100%;
    min-height: 40px;
    margin-top: 12px;
    padding: 9px 12px;
}

.science-note-card {
    position: relative;
    overflow: hidden;
}

.science-note-card::after {
    content: "";
    position: absolute;
    right: -76px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    pointer-events: none;
    border: 1px solid rgba(217, 222, 235, 0.12);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(217, 222, 235, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(143, 98, 255, 0.1), transparent 68%);
    background-size: 32px 32px, auto;
    opacity: 0.6;
}

.science-object-control {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    gap: 7px;
    width: min(100%, 220px);
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.science-object-control select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(217, 222, 235, 0.2);
    border-radius: 14px;
    background-color: #121126;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 12px;
    text-transform: none;
}

.science-object-control select:focus-visible {
    outline: 2px solid rgba(244, 220, 149, 0.9);
    outline-offset: 3px;
}

.science-object-control option {
    background-color: #ffffff;
    color: #111111;
}

.science-status,
.science-source,
.science-note {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    color: var(--silver);
    line-height: 1.55;
}

.science-status[data-tone="success"] {
    color: var(--gold);
}

.science-status[data-tone="error"] {
    color: #ffb3c7;
}

.science-data-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.science-data-list div {
    display: grid;
    gap: 5px;
    min-width: 0;
    border: 1px solid rgba(217, 222, 235, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    padding: 11px 12px;
}

.science-data-list,
.science-data-list div,
.science-data-list dd {
    max-width: 100%;
}

.science-data-list dt {
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.science-data-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 750;
    overflow-wrap: anywhere;
}

.science-source,
.science-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.empty-state {
    display: grid;
    gap: 8px;
    width: min(100%, 420px);
    margin: auto;
    border: 1px solid rgba(217, 222, 235, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--silver);
    padding: 18px;
    text-align: center;
}

.empty-state strong {
    color: var(--text);
}

.detail-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 10;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 20px;
    max-height: min(58vh, 360px);
    overflow-y: auto;
    padding: 14px 42px 14px 14px;
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform 190ms ease, opacity 190ms ease;
}

.detail-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.horoscope-action {
    width: fit-content;
    max-width: 100%;
    min-height: 40px;
    margin-top: 12px;
    padding: 9px 12px;
}

.horoscope-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

.horoscope-modal.is-open {
    pointer-events: auto;
    opacity: 1;
}

.horoscope-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 3, 10, 0.72);
    backdrop-filter: blur(8px);
}

.horoscope-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(88dvh, 680px);
    overscroll-behavior: contain;
    overflow-y: auto;
    border: 1px solid rgba(230, 200, 120, 0.3);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 0%, rgba(143, 98, 255, 0.22), transparent 18rem),
        linear-gradient(145deg, rgba(24, 23, 48, 0.96), rgba(8, 9, 22, 0.96));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
    padding: clamp(16px, 5vw, 22px);
    outline: none;
    transform: translateY(10px) scale(0.98);
    transition: transform 180ms ease;
}

.horoscope-modal.is-open .horoscope-dialog {
    transform: translateY(0) scale(1);
}

.horoscope-dialog h2 {
    max-width: min(100%, 15ch);
    padding-right: 34px;
    font-size: clamp(1.8rem, 8vw, 3.4rem);
}

.zodiac-image-frame {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(230, 200, 120, 0.5);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(230, 200, 120, 0.12), transparent 64%),
        rgba(5, 6, 16, 0.62);
    box-shadow:
        0 0 24px rgba(230, 200, 120, 0.2),
        inset 0 0 28px rgba(143, 98, 255, 0.18);
}

.zodiac-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.sign-panel-zodiac-image {
    width: 76px;
    height: 76px;
}

.horoscope-zodiac-image {
    width: clamp(86px, 30vw, 132px);
    height: clamp(86px, 30vw, 132px);
    margin: 0 0 14px;
}

.horoscope-date,
.horoscope-text {
    color: var(--silver);
    line-height: 1.58;
}

.horoscope-date {
    margin: 12px 0 0;
    color: var(--gold);
    font-weight: 800;
}

.horoscope-text {
    margin: 14px 0 0;
    font-size: 1rem;
}

.horoscope-close {
    top: 12px;
    right: 12px;
}

.panel-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: var(--silver);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.panel-close:hover,
.panel-close:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.panel-glyph {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(230, 200, 120, 0.5);
    color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 800;
    font-size: 0.98rem;
    box-shadow: inset 0 0 26px rgba(143, 98, 255, 0.22);
}

.ruler-line,
.panel-summary {
    margin: 8px 0 0;
    color: var(--silver);
}

.panel-summary {
    line-height: 1.48;
}

.personality-shell {
    padding-bottom: 48px;
}

.personality-hero h1 {
    max-width: 13ch;
}

.status-card,
.archetype-section {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(24, 23, 48, 0.72), rgba(12, 13, 29, 0.66));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 18px;
}

.status-card h2 {
    max-width: 42rem;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.28;
}

.status-copy {
    margin: 12px 0 0;
    color: var(--silver);
    line-height: 1.5;
}

.is-disabled,
.is-disabled:hover {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.archetype-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.archetype-card {
    min-height: 150px;
    border: 1px solid rgba(230, 200, 120, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    padding: 16px;
}

.archetype-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.2;
}

.archetype-preview-art {
    aspect-ratio: 2 / 3;
    width: min(100%, 180px);
    margin: 0 auto 12px;
    overflow: hidden;
    border: 1px solid rgba(230, 200, 120, 0.24);
    border-radius: 14px;
    background: rgba(5, 6, 16, 0.62);
    box-shadow: 0 0 24px rgba(143, 98, 255, 0.12);
}

.archetype-preview-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.archetype-card p {
    margin: 10px 0 0;
    color: var(--silver);
    line-height: 1.48;
}

.archetype-subtitle {
    color: var(--gold) !important;
    font-weight: 700;
}

.assessment-form {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.question-card,
.result-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(24, 23, 48, 0.72), rgba(12, 13, 29, 0.66));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 18px;
}

.question-card {
    margin: 0;
    min-width: 0;
}

.question-card legend {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 0;
    color: var(--text);
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.28;
}

.question-number {
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.question-helper {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.answer-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.answer-option {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid rgba(217, 222, 235, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--silver);
    cursor: pointer;
    line-height: 1.45;
    padding: 13px;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.answer-option:hover,
.answer-option:focus-within {
    border-color: rgba(230, 200, 120, 0.5);
    background: rgba(255, 255, 255, 0.085);
    box-shadow: 0 0 18px rgba(143, 98, 255, 0.16);
}

.answer-option input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--gold);
}

.form-message {
    margin: 10px 0 0;
    border: 1px solid rgba(230, 200, 120, 0.32);
    border-radius: 16px;
    background: rgba(230, 200, 120, 0.08);
    color: var(--silver);
    padding: 12px 14px;
}

.result-card {
    margin-top: 10px;
    border-color: rgba(230, 200, 120, 0.34);
}

.result-card h2 {
    color: var(--text);
    font-size: clamp(2rem, 10vw, 3.6rem);
}

.result-body {
    margin: 14px 0 0;
    color: var(--silver);
    line-height: 1.55;
}

.cosmic-notes {
    margin-top: 18px;
    border: 1px solid rgba(217, 222, 235, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    padding: 14px;
}

.cosmic-notes h3 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.2;
}

.score-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.score-list span {
    min-width: 0;
    border: 1px solid rgba(230, 200, 120, 0.28);
    border-radius: 999px;
    background: rgba(230, 200, 120, 0.09);
    color: var(--gold);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 7px 10px;
    overflow-wrap: anywhere;
}

.copy-status {
    min-height: 1.4em;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.quiz-app {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.quiz-intro-card,
.quiz-question-card,
.quiz-result-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(230, 200, 120, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 4%, rgba(143, 98, 255, 0.2), transparent 20rem),
        linear-gradient(145deg, rgba(24, 23, 48, 0.82), rgba(8, 9, 22, 0.78));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 18px;
}

.quiz-intro-card::after,
.quiz-question-card::after,
.quiz-result-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.4px),
        radial-gradient(circle at 76% 34%, rgba(230, 200, 120, 0.34) 0 1px, transparent 1.4px),
        radial-gradient(circle at 62% 82%, rgba(143, 98, 255, 0.34) 0 1px, transparent 1.4px);
    opacity: 0.48;
}

.quiz-intro-card h2,
.quiz-question-card h2,
.quiz-result-card h2 {
    position: relative;
    z-index: 1;
    max-width: 15ch;
    font-size: clamp(1.8rem, 8vw, 3.2rem);
}

.quiz-intro-card p:not(.eyebrow),
.quiz-helper {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    color: var(--silver);
    line-height: 1.55;
}

.quiz-progress {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(217, 222, 235, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 12px;
}

.quiz-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(217, 222, 235, 0.12);
}

.quiz-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--gold));
    box-shadow: 0 0 18px rgba(230, 200, 120, 0.38);
    transition: width 320ms ease;
}

.quiz-stage {
    min-height: 280px;
}

.quiz-question-card {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.quiz-question-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quiz-answer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: 18px;
    min-width: 0;
}

.quiz-answer-card {
    min-width: 0;
    min-height: 58px;
    width: 100%;
    border: 1px solid rgba(217, 222, 235, 0.16);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(230, 200, 120, 0.08), transparent 38%),
        rgba(255, 255, 255, 0.055);
    color: var(--silver);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.42;
    padding: 14px;
    text-align: left;
    overflow-wrap: break-word;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quiz-answer-card:hover,
.quiz-answer-card:focus-visible {
    border-color: rgba(230, 200, 120, 0.55);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 22px rgba(143, 98, 255, 0.2);
    transform: translateY(-1px);
}

.quiz-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quiz-reveal {
    display: grid;
    min-height: 260px;
    place-items: center;
    border: 1px solid rgba(230, 200, 120, 0.24);
    border-radius: 22px;
    background: rgba(8, 9, 22, 0.72);
    color: var(--gold);
    font-weight: 900;
    text-align: center;
}

.quiz-orbit {
    width: 118px;
    height: 118px;
    border: 1px solid rgba(230, 200, 120, 0.32);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(230, 200, 120, 0.42) 0 5px, transparent 6px),
        radial-gradient(circle at 50% 0%, rgba(143, 98, 255, 0.75) 0 6px, transparent 7px);
    box-shadow:
        inset 0 0 34px rgba(143, 98, 255, 0.18),
        0 0 34px rgba(230, 200, 120, 0.14);
    animation: quizOrbit 1.1s linear infinite;
}

.quiz-result {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.quiz-result.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.quiz-result-card {
    display: grid;
    gap: 18px;
}

.quiz-result-art {
    position: relative;
    z-index: 1;
    aspect-ratio: 2 / 3;
    width: min(100%, 320px);
    max-height: 520px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(230, 200, 120, 0.34);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 28%, rgba(230, 200, 120, 0.12), transparent 42%),
        rgba(5, 6, 16, 0.74);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.36),
        0 0 38px rgba(143, 98, 255, 0.17);
}

.quiz-result-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.archetype-card--visionary .quiz-result-art img,
.archetype-card--shadow .quiz-result-art img {
    object-position: center top;
}

.quiz-result-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.quiz-result-actions {
    margin-top: 18px;
}

.archetype-share-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.archetype-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.archetype-share-actions .secondary-action {
    min-height: 44px;
    padding: 10px 12px;
}

.archetype-result-download-btn,
.archetype-result-share-btn {
    border-color: rgba(230, 200, 120, 0.38);
    background: rgba(230, 200, 120, 0.1);
}

.archetype-share-status {
    min-height: 1.4em;
    margin: 8px 0 0;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 800;
}

.compatibility-shell {
    width: min(100%, 1080px);
}

.compatibility-hero h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.1rem, 10vw, 4.8rem);
    line-height: 1.02;
}

.compatibility-app {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.compatibility-stage {
    min-height: 320px;
}

.compatibility-card,
.compatibility-result-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 12%, rgba(143, 98, 255, 0.18), transparent 16rem),
        linear-gradient(145deg, rgba(24, 23, 48, 0.82), rgba(9, 10, 24, 0.78));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 18px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 280ms ease, transform 280ms ease;
}

.compatibility-card.is-visible,
.compatibility-result.is-visible .compatibility-result-card {
    opacity: 1;
    transform: translateY(0);
}

.compatibility-fields {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.compatibility-name-field,
.compatibility-sign-select {
    display: grid;
    gap: 7px;
    color: var(--silver);
    font-size: 0.88rem;
    font-weight: 800;
}

.compatibility-name-field input,
.compatibility-sign-select select {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background-color: #121126;
    color: var(--text);
    outline: none;
}

.compatibility-name-field input:focus,
.compatibility-sign-select select:focus {
    border-color: rgba(230, 200, 120, 0.66);
    box-shadow: 0 0 0 3px rgba(230, 200, 120, 0.12);
}

.zodiac-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    min-width: 0;
}

.zodiac-pick-card {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 112px;
    padding: 12px 8px;
    border: 1px solid rgba(217, 222, 235, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
    text-align: center;
    overflow-wrap: anywhere;
    transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.zodiac-pick-card:hover,
.zodiac-pick-card:focus-visible,
.zodiac-pick-card[aria-pressed="true"] {
    border-color: rgba(230, 200, 120, 0.6);
    background: rgba(230, 200, 120, 0.12);
    outline: none;
    transform: translateY(-2px);
}

.zodiac-pick-card__image {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(230, 200, 120, 0.22));
}

.compatibility-actions {
    margin-top: 18px;
}

.compatibility-result {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.compatibility-result.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.compatibility-result-card {
    display: grid;
    gap: 18px;
    opacity: 1;
    transform: none;
}

.compatibility-result-header {
    display: grid;
    gap: 10px;
}

.compatibility-result-header h2 {
    margin: 0;
    font-size: clamp(1.9rem, 8vw, 3.5rem);
    line-height: 1.02;
}

.compatibility-label {
    width: fit-content;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(230, 200, 120, 0.38);
    border-radius: 999px;
    background: rgba(230, 200, 120, 0.1);
    color: var(--gold);
    font-weight: 900;
}

.compatibility-overall-score {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(230, 200, 120, 0.5);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(230, 200, 120, 0.14), transparent 58%),
        conic-gradient(from 180deg, rgba(230, 200, 120, 0.88), rgba(143, 98, 255, 0.74), rgba(230, 200, 120, 0.88));
    box-shadow: 0 0 38px rgba(143, 98, 255, 0.22);
    color: var(--text);
}

.compatibility-overall-score strong {
    font-size: 2.45rem;
    line-height: 1;
}

.compatibility-overall-score span {
    margin-top: -24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.compatibility-profile-grid {
    display: grid;
    gap: 12px;
}

.compatibility-profile {
    display: grid;
    gap: 14px;
    min-width: 0;
    justify-items: center;
    padding: 16px;
    border: 1px solid rgba(217, 222, 235, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    text-align: center;
}

.compat-person-name {
    margin: 0;
    max-width: 100%;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.compat-person-visuals {
    display: grid;
    grid-template-columns: minmax(56px, 82px) minmax(150px, 1fr);
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 340px;
}

.compatibility-profile__zodiac {
    width: clamp(64px, 9vw, 88px);
    height: clamp(64px, 9vw, 88px);
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(230, 200, 120, 0.22));
}

.compatibility-profile__archetype {
    width: 100%;
    max-width: 230px;
    height: clamp(180px, 24vw, 240px);
    max-height: 240px;
    border-radius: 14px;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.compat-person-meta {
    display: grid;
    gap: 4px;
    width: 100%;
}

.compat-person-meta p {
    margin: 0;
    color: var(--silver);
    font-weight: 800;
    line-height: 1.35;
}

.compat-person-archetype {
    color: var(--gold);
    font-size: 1.05rem;
}

.compatibility-score-grid {
    display: grid;
    gap: 12px;
}

.compatibility-score-bar {
    display: grid;
    gap: 8px;
}

.compatibility-score-bar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--silver);
    font-weight: 900;
    min-width: 0;
}

.compatibility-score-bar__top span {
    min-width: 0;
}

.compatibility-score-bar__top strong {
    color: var(--gold);
}

.compatibility-score-bar__track {
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(217, 222, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.compatibility-score-bar__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--violet));
}

.compatibility-explanations {
    display: grid;
    gap: 12px;
}

.compatibility-explanation-card {
    padding: 14px;
    border: 1px solid rgba(217, 222, 235, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.compatibility-explanation-card h3 {
    margin: 0 0 8px;
    color: var(--gold);
}

.compatibility-explanation-card p {
    margin: 0;
    color: var(--silver);
    line-height: 1.58;
}

.compatibility-result-actions {
    margin-top: 2px;
}

.assessment-form-fallback[hidden] {
    display: none;
}

@keyframes quizOrbit {
    to {
        transform: rotate(360deg);
    }
}

.admin-shell {
    padding-bottom: 48px;
}

.admin-warning {
    margin: 16px 0 0;
    border: 1px solid rgba(230, 200, 120, 0.34);
    border-radius: 16px;
    background: rgba(230, 200, 120, 0.1);
    color: var(--gold);
    font-weight: 800;
    line-height: 1.4;
    padding: 12px 14px;
}

.admin-grid {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.admin-card,
.admin-panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(24, 23, 48, 0.72), rgba(12, 13, 29, 0.66));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 18px;
}

.admin-card {
    color: var(--text);
    text-decoration: none;
}

.admin-card:hover,
.admin-card:focus-visible {
    border-color: rgba(230, 200, 120, 0.45);
    outline: none;
}

.admin-card h2,
.admin-panel h2 {
    font-size: 1.15rem;
}

.admin-card p,
.admin-muted {
    color: var(--muted);
    line-height: 1.45;
    margin: 10px 0 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: var(--silver);
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 11px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-table a {
    color: var(--gold);
    font-weight: 800;
}

.admin-form {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--gold);
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    border: 1px solid rgba(217, 222, 235, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font: inherit;
    padding: 11px 12px;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form-grid {
    display: grid;
    gap: 10px;
}

.admin-checkbox {
    align-items: center;
    grid-template-columns: 20px 1fr;
}

.admin-checkbox input {
    width: 18px;
    height: 18px;
}

.admin-answer-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 10px;
    padding: 14px 0;
}

.admin-muted span {
    display: inline-block;
    margin: 3px 4px 0 0;
    border: 1px solid rgba(230, 200, 120, 0.22);
    border-radius: 999px;
    padding: 4px 8px;
}

.admin-status-ok,
.admin-status-missing {
    display: inline-flex;
    border-radius: 999px;
    font-weight: 800;
    padding: 5px 9px;
}

.admin-status-ok {
    border: 1px solid rgba(230, 200, 120, 0.28);
    background: rgba(230, 200, 120, 0.09);
    color: var(--gold);
}

.admin-status-missing {
    border: 1px solid rgba(217, 222, 235, 0.18);
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
}

@media (max-width: 560px) {
    .cosmic-shell {
        padding-bottom: 196px;
    }

    .cosmic-home-link {
        min-height: 44px;
        max-width: 100%;
    }

    .weather-card,
    .lunar-card,
    .report-card {
        border-radius: 18px;
        padding: 16px;
    }

    .lunar-orb {
        top: 14px;
        right: 14px;
        opacity: 0.34;
    }

    .cosmic-hero,
    .cosmic-banner,
    .chart-card {
        border-radius: 18px;
    }

    .cosmic-hero::after {
        background: linear-gradient(0deg, rgba(5, 6, 16, 0.88), rgba(5, 6, 16, 0.22));
    }

    .cosmic-hero-copy {
        margin: 0;
        max-width: 100%;
    }

    .cosmic-hero-copy h1,
    h1,
    .weather-card h2,
    .report-intro h2 {
        max-width: 14ch;
    }

    .weather-actions {
        grid-template-columns: 1fr;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
        min-height: 48px;
        padding: 12px;
    }

    .cosmic-section-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .cosmic-section-nav__brand {
        justify-content: flex-start;
    }

    .cosmic-section-nav__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .cosmic-section-nav__link {
        width: 100%;
        min-height: 44px;
        padding-inline: 10px;
        text-align: center;
    }

    .chart-heading,
    .report-heading.split {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .planet-count,
    .report-count {
        align-self: flex-start;
    }

    .zodiac-label,
    .planet-label {
        font-size: 9px;
    }

    .planet-label-bg {
        stroke-width: 1;
    }

    .aspect-line {
        stroke-width: 0.72;
        opacity: 0.82;
    }

    .report-table {
        min-width: 540px;
    }

    .report-table th,
    .report-table td {
        padding: 10px 9px;
    }

    .aspect-tag {
        display: flex;
        width: fit-content;
        margin: 5px 0 0;
    }

    .report-toggle,
    .horoscope-action {
        width: 100%;
    }

    .science-object-control {
        width: 100%;
    }

    .detail-panel {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        left: 8px;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        max-height: min(64dvh, 430px);
        border-radius: 18px;
        padding: 12px 48px 12px 12px;
    }

    .sign-panel-zodiac-image {
        width: 60px;
        height: 60px;
    }

    .detail-panel h2 {
        font-size: 1.25rem;
        line-height: 1.1;
    }

    .panel-summary,
    .ruler-line {
        overflow-wrap: anywhere;
    }

    .horoscope-dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    .horoscope-text {
        font-size: 0.98rem;
    }

    .quiz-intro-card,
    .quiz-question-card,
    .quiz-result-card {
        border-radius: 18px;
        padding: 16px;
    }

    .quiz-stage {
        min-height: 340px;
    }

    .quiz-result-art {
        width: min(100%, 250px);
        max-height: 380px;
    }

    .quiz-result-actions {
        grid-template-columns: 1fr;
    }

    .archetype-share-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .archetype-share-actions .secondary-action {
        width: 100%;
    }

    .compatibility-profile {
        gap: 12px;
        padding: 14px;
    }

    .compat-person-visuals {
        grid-template-columns: minmax(56px, 72px) minmax(136px, 1fr);
        gap: 10px;
        max-width: 290px;
    }

    .compatibility-profile__zodiac {
        width: clamp(56px, 18vw, 72px);
        height: clamp(56px, 18vw, 72px);
    }

    .compatibility-profile__archetype {
        height: clamp(160px, 48vw, 200px);
        max-height: 200px;
    }

    .compatibility-overall-score {
        width: 128px;
        height: 128px;
    }

    .compatibility-overall-score strong {
        font-size: 2rem;
    }

    .cosmic-banner-copy {
        padding: 16px;
    }
}

@media (max-width: 390px) {
    .weather-actions {
        margin-top: 16px;
    }

    .report-table {
        min-width: 500px;
    }

    .zodiac-label,
    .planet-label {
        font-size: 8.4px;
    }

    .house-label {
        font-size: 8px;
    }

    .detail-panel {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .sign-panel-zodiac-image {
        width: 54px;
        height: 54px;
    }

    .quiz-result-art {
        width: min(100%, 230px);
    }

    .cosmic-section-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .cosmic-section-nav__brand {
        justify-content: flex-start;
    }

    .cosmic-section-nav__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .cosmic-section-nav__link {
        width: 100%;
        min-height: 44px;
        padding-inline: 10px;
        text-align: center;
    }
}

@media (min-width: 720px) {
    .cosmic-shell {
        padding: 34px 24px 170px;
    }

    .cosmic-hero {
        min-height: 460px;
        margin-bottom: 14px;
    }

    .cosmic-hero-copy {
        min-height: 460px;
        padding: 42px;
    }

    .cosmic-hero-copy p:not(.eyebrow) {
        font-size: 1.08rem;
    }

    .cosmic-banner {
        min-height: 220px;
        margin-top: 14px;
    }

    .cosmic-banner-copy {
        padding: 26px;
    }

    .weather-card {
        padding: 32px;
    }

    .weather-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .chart-card {
        padding: 22px;
    }

    .weather-report {
        gap: 14px;
        margin-top: 14px;
    }

    .report-card {
        padding: 22px;
    }

    .science-data-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-card,
    .archetype-section,
    .question-card,
    .result-card {
        padding: 22px;
    }

    .archetype-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quiz-answer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quiz-result-card {
        grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
        align-items: center;
        padding: 24px;
    }

    .compatibility-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zodiac-picker {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .compatibility-result-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .compatibility-overall-score {
        grid-row: 1 / span 3;
        grid-column: 2;
    }

    .compatibility-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compatibility-score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compatibility-explanations {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-grid,
    .admin-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-panel {
        left: 50%;
        right: auto;
        width: min(620px, calc(100% - 32px));
        transform: translate(-50%, calc(100% + 24px));
    }

    .detail-panel.is-open {
        transform: translate(-50%, 0);
    }
}

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

    .quiz-question-card,
    .quiz-result,
    .compatibility-card,
    .compatibility-result,
    .quiz-question-card.is-visible,
    .quiz-result.is-visible,
    .compatibility-card.is-visible,
    .compatibility-result.is-visible {
        opacity: 1;
        transform: none;
    }
}
