.site-v2.tarot-atlas-page {
    --atlas-ink: #2b2720;
    --atlas-muted: rgba(43, 39, 32, 0.62);
    --atlas-line: rgba(142, 103, 42, 0.27);
    --atlas-accent: #a9792b;
    --atlas-accent-soft: #684815;
    --atlas-bg: #f3ead7;
    --atlas-bg-deep: #e7d7b8;
    --atlas-panel: rgba(255, 252, 244, 0.74);
    background: var(--atlas-bg-deep);
    color: var(--atlas-ink);
}

.site-v2.tarot-atlas-page main {
    min-height: calc(100svh - var(--site-nav-height, 86px));
}

.site-v2.tarot-atlas-page .site-nav {
    border-bottom-color: rgba(224, 182, 106, 0.24);
}

.site-v2.tarot-atlas-detail-page--reverse {
    --atlas-ink: #eef0f5;
    --atlas-muted: rgba(225, 229, 238, 0.58);
    --atlas-line: rgba(126, 143, 183, 0.22);
    --atlas-accent: #8d9eca;
    --atlas-accent-soft: #c4cbe0;
    --atlas-bg: #0b101c;
    --atlas-bg-deep: #05070d;
    --atlas-panel: rgba(10, 15, 28, 0.82);
}

.tarot-atlas {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - var(--site-nav-height, 86px));
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 249, 224, 0.96), transparent 27%),
        radial-gradient(circle at 15% 16%, rgba(208, 168, 88, 0.22), transparent 31%),
        linear-gradient(145deg, #fbf7eb 0%, #f0e2c8 48%, #ddc89e 100%);
    color: var(--atlas-ink);
    transition: background 700ms ease, color 400ms ease;
}

.tarot-atlas[data-active-deck="reverse"] {
    --atlas-ink: #eef0f5;
    --atlas-muted: rgba(225, 229, 238, 0.58);
    --atlas-line: rgba(126, 143, 183, 0.22);
    --atlas-accent: #8d9eca;
    --atlas-accent-soft: #c4cbe0;
    --atlas-bg: #0b101c;
    --atlas-bg-deep: #05070d;
    --atlas-panel: rgba(10, 15, 28, 0.82);
    background:
        radial-gradient(circle at 50% 48%, rgba(74, 86, 127, 0.18), transparent 28%),
        linear-gradient(148deg, #121a2c 0%, #090d18 48%, #05070d 100%);
}

.tarot-atlas::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 8% 18%, currentColor 0 1px, transparent 1.5px),
        radial-gradient(circle at 24% 72%, currentColor 0 1px, transparent 1.5px),
        radial-gradient(circle at 68% 14%, currentColor 0 1px, transparent 1.5px),
        radial-gradient(circle at 87% 64%, currentColor 0 1px, transparent 1.5px),
        radial-gradient(circle at 74% 83%, currentColor 0 0.8px, transparent 1.4px);
    background-size: 260px 210px, 330px 280px, 290px 250px, 370px 320px, 220px 190px;
    color: rgba(111, 78, 30, 0.32);
    content: "";
    opacity: 0.7;
}

.tarot-atlas[data-active-deck="reverse"]::before {
    color: rgba(188, 201, 236, 0.28);
    opacity: 0.55;
}

.tarot-atlas__masthead {
    position: absolute;
    z-index: 620;
    top: 24px;
    right: clamp(20px, 4vw, 64px);
    left: clamp(20px, 4vw, 64px);
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    pointer-events: none;
}

.tarot-atlas__title-group,
.tarot-atlas__deck-tabs {
    pointer-events: auto;
}

.tarot-atlas__title-group p {
    margin: 0 0 6px;
    color: var(--atlas-accent);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tarot-atlas__title-group h1 {
    max-width: 520px;
    margin: 0;
    color: var(--atlas-ink);
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: clamp(25px, 3vw, 44px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.tarot-atlas__deck-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    padding: 4px;
    border: 1px solid var(--atlas-line);
    background: rgba(255, 252, 244, 0.6);
    box-shadow: 0 18px 60px rgba(92, 64, 24, 0.13);
    backdrop-filter: blur(18px);
}

.tarot-atlas[data-active-deck="reverse"] .tarot-atlas__deck-tabs {
    background: rgba(9, 12, 20, 0.62);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.tarot-atlas__deck-tab {
    min-height: 50px;
    padding: 8px 16px;
    border: 0;
    background: transparent;
    color: var(--atlas-muted);
    text-align: left;
    transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.tarot-atlas__deck-tab span,
.tarot-atlas__deck-tab small {
    display: block;
}

.tarot-atlas__deck-tab span {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.tarot-atlas__deck-tab small {
    margin-top: 2px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tarot-atlas__deck-tab.is-active {
    background: var(--atlas-accent);
    color: #171018;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.tarot-atlas[data-active-deck="reverse"] .tarot-atlas__deck-tab.is-active {
    color: #090d18;
}

.tarot-atlas__deck-tab:focus-visible,
.tarot-atlas__motion:focus-visible,
.tarot-atlas-card:focus-visible,
.tarot-atlas-detail__return:focus-visible {
    outline: 2px solid var(--atlas-accent-soft);
    outline-offset: 4px;
}

.tarot-atlas__panel {
    position: relative;
    z-index: 10;
    min-height: calc(100svh - var(--site-nav-height, 86px));
}

.tarot-atlas__panel[hidden] {
    display: none;
}

.tarot-atlas__stage {
    position: absolute;
    z-index: 20;
    inset: 0;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.tarot-atlas__stage.is-dragging {
    cursor: grabbing;
}

.tarot-atlas__sky {
    position: absolute;
    z-index: 70;
    inset: 0;
    pointer-events: none;
}

.tarot-atlas__meridian,
.tarot-atlas__equator,
.tarot-atlas__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--atlas-line);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tarot-atlas__meridian {
    width: min(32vw, 480px);
    height: min(72vh, 690px);
}

.tarot-atlas__equator {
    width: min(78vw, 1240px);
    height: min(34vh, 320px);
}

.tarot-atlas__ring--one {
    width: min(66vw, 1000px);
    height: min(68vh, 660px);
    border-style: dashed;
    opacity: 0.44;
    transform: translate(-50%, -50%) rotate(11deg);
}

.tarot-atlas__ring--two {
    width: min(61vw, 940px);
    height: min(73vh, 700px);
    opacity: 0.28;
    transform: translate(-50%, -50%) rotate(-14deg);
}

.tarot-atlas__constellation {
    position: absolute;
    width: 86px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--atlas-line), transparent);
    transform-origin: left center;
}

.tarot-atlas__constellation::before,
.tarot-atlas__constellation::after {
    position: absolute;
    top: -2px;
    width: 5px;
    height: 5px;
    border: 1px solid var(--atlas-accent);
    border-radius: 50%;
    content: "";
}

.tarot-atlas__constellation::before { left: 12px; }
.tarot-atlas__constellation::after { right: 5px; }
.tarot-atlas__constellation--one { top: 27%; left: 15%; transform: rotate(31deg); }
.tarot-atlas__constellation--two { right: 14%; bottom: 24%; transform: rotate(-23deg); }

.tarot-atlas__core {
    position: absolute;
    z-index: 135;
    top: 50.5%;
    left: 50%;
    width: clamp(180px, 21vw, 340px);
    aspect-ratio: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.tarot-atlas__core-halo,
.tarot-atlas__core-disc,
.tarot-atlas__core-crystal,
.tarot-atlas__core-axis {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.tarot-atlas__core-crystal {
    position: absolute;
    z-index: 3;
    inset: 9%;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.tarot-atlas__core-crystal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 22px 22px rgba(66, 45, 20, .24))
        saturate(.78)
        brightness(1.05);
}

.tarot-atlas__panel--reverse .tarot-atlas__core-crystal img {
    filter:
        drop-shadow(0 22px 26px rgba(0, 0, 0, .55))
        saturate(.48)
        brightness(.7)
        contrast(1.08);
}

.tarot-atlas__core-halo {
    inset: -22%;
    background: radial-gradient(circle, rgba(236, 190, 107, 0.22) 0 28%, transparent 68%);
    filter: blur(14px);
}

.tarot-atlas__core-disc {
    border: 1px solid rgba(248, 218, 158, 0.62);
    background:
        radial-gradient(circle at 43% 36%, rgba(255, 244, 214, 0.82) 0 4%, transparent 19%),
        radial-gradient(circle, #d49a4d 0%, #a45b37 31%, #4b2531 72%, rgba(18, 10, 17, 0.94) 100%);
    box-shadow:
        0 0 0 12px rgba(224, 182, 106, 0.055),
        0 0 80px rgba(209, 137, 61, 0.34),
        inset 0 0 44px rgba(255, 222, 163, 0.16);
}

.tarot-atlas__core-disc::before,
.tarot-atlas__core-disc::after {
    position: absolute;
    border: 1px solid rgba(246, 222, 174, 0.32);
    border-radius: 50%;
    content: "";
}

.tarot-atlas__core-disc::before { inset: 12%; }
.tarot-atlas__core-disc::after { inset: 31%; }

.tarot-atlas__core-axis {
    right: 48%;
    left: 48%;
    border-radius: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 236, 197, 0.82), transparent);
    box-shadow: 0 0 16px rgba(255, 218, 144, 0.58);
}

.tarot-atlas__core-copy {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    place-content: center;
    color: #fff7e7;
    text-align: center;
    text-shadow: 0 2px 20px rgba(37, 16, 22, 0.72);
}

.tarot-atlas__core-copy small,
.tarot-atlas__core-copy em {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 7px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tarot-atlas__core-copy strong {
    margin: 3px 0;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: clamp(48px, 6.3vw, 92px);
    font-weight: 400;
    line-height: 0.9;
}

.tarot-atlas__panel--reverse .tarot-atlas__core-halo {
    background: radial-gradient(circle, rgba(117, 137, 188, 0.16) 0 26%, transparent 67%);
}

.tarot-atlas__panel--reverse .tarot-atlas__core-disc {
    border-color: rgba(166, 181, 218, 0.44);
    background:
        radial-gradient(circle at 54% 45%, rgba(103, 123, 169, 0.24) 0 5%, transparent 23%),
        radial-gradient(circle, #080b12 0 49%, #111a2e 51%, #05070d 74%, #020307 100%);
    box-shadow:
        0 0 0 12px rgba(127, 148, 199, 0.045),
        0 0 84px rgba(70, 87, 130, 0.28),
        inset 0 0 44px rgba(128, 149, 199, 0.12);
}

.tarot-atlas__panel--reverse .tarot-atlas__core-axis {
    background: linear-gradient(180deg, transparent, rgba(178, 192, 226, 0.66), transparent);
    box-shadow: 0 0 14px rgba(124, 145, 196, 0.42);
}

.tarot-atlas__orbit {
    position: absolute;
    /* Keep the orbit from creating a single stacking context: far cards must
       pass behind the core while near cards pass in front of it. */
    z-index: auto;
    inset: 0;
}

.tarot-atlas-card {
    position: absolute;
    top: var(--orbit-y, 50%);
    left: var(--orbit-x, 50%);
    display: block;
    width: var(--tarot-atlas-card-width, 104px);
    color: var(--atlas-ink);
    opacity: 0;
    outline: none;
    text-decoration: none;
    filter: blur(var(--orbit-blur, 0));
    transform: translate(-50%, -50%) scale(var(--orbit-scale, 1));
    transform-origin: center center;
    transition: opacity 360ms ease, filter 160ms linear;
    will-change: top, left, transform, opacity, filter;
}

.tarot-atlas__panel.is-ready .tarot-atlas-card {
    opacity: var(--orbit-opacity, 1);
}

.tarot-atlas-card__media {
    position: relative;
    z-index: 2;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(244, 219, 170, 0.48);
    background: rgba(8, 7, 10, 0.92);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.42);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tarot-atlas__panel--reverse .tarot-atlas-card__media {
    border-color: rgba(160, 176, 216, 0.38);
}

.tarot-atlas-card__media::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    content: "";
    pointer-events: none;
}

.tarot-atlas-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #09090b;
    pointer-events: none;
}

.tarot-atlas-card__caption {
    position: absolute;
    z-index: 4;
    right: 5px;
    bottom: 5px;
    left: 5px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px;
    align-items: center;
    min-height: 24px;
    padding: 4px 5px;
    background: rgba(7, 6, 9, 0.76);
    color: #fff8eb;
    backdrop-filter: blur(7px);
}

.tarot-atlas-card__caption span {
    color: var(--atlas-accent-soft);
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: clamp(10px, 1vw, 14px);
}

.tarot-atlas-card__caption strong {
    overflow: hidden;
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(6px, 0.62vw, 9px);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tarot-atlas-card__reflection {
    position: absolute;
    z-index: 0;
    top: calc(100% + 4px);
    right: 3%;
    left: 3%;
    display: block;
    overflow: hidden;
    height: 52%;
    opacity: 0.42;
    filter: blur(2.8px) saturate(0.72);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 88%);
    pointer-events: none;
    transform-origin: top center;
}

.tarot-atlas-card__reflection img {
    display: block;
    width: 100%;
    height: 200%;
    object-fit: cover;
    object-position: bottom center;
    transform: scaleY(-1);
    transform-origin: center;
}

.tarot-atlas-card__reflection[data-reflection-side="back"] {
    opacity: 0.28;
    filter: blur(3.5px) saturate(0.38);
}

.tarot-atlas-card:hover .tarot-atlas-card__media,
.tarot-atlas-card:focus-visible .tarot-atlas-card__media,
.tarot-atlas-card[aria-current="true"] .tarot-atlas-card__media {
    border-color: var(--atlas-accent-soft);
    box-shadow: 0 0 0 2px rgba(234, 199, 132, 0.16), 0 18px 44px rgba(0, 0, 0, 0.52);
    transform: translateY(-3px);
}

.tarot-atlas-card.is-concealed .tarot-atlas-card__media::before {
    position: absolute;
    z-index: 4;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--atlas-accent-soft);
    border-radius: 50%;
    background: rgba(8, 7, 11, 0.7);
    content: "";
}

.tarot-atlas__hud {
    position: absolute;
    z-index: 620;
    right: clamp(20px, 4vw, 64px);
    bottom: 24px;
    left: clamp(20px, 4vw, 64px);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 24px;
    align-items: end;
    pointer-events: none;
}

.tarot-atlas__current-copy,
.tarot-atlas__status,
.tarot-atlas__motion {
    pointer-events: auto;
}

.tarot-atlas__current-copy span,
.tarot-atlas__status span {
    color: var(--atlas-accent);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tarot-atlas__current-copy p {
    max-width: 450px;
    margin: 5px 0 0;
    color: var(--atlas-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 10px;
    line-height: 1.45;
}

.tarot-atlas__status {
    display: grid;
    gap: 4px;
    padding: 10px 16px;
    border-right: 1px solid var(--atlas-line);
    border-left: 1px solid var(--atlas-line);
    text-align: center;
}

.tarot-atlas__motion {
    display: inline-flex;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--atlas-line);
    align-items: center;
    background: rgba(8, 7, 11, 0.56);
    color: var(--atlas-ink);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.tarot-atlas__motion:hover,
.tarot-atlas__motion.is-paused {
    border-color: var(--atlas-accent);
    background: var(--atlas-accent);
    color: #111016;
}

.tarot-atlas__notice {
    position: absolute;
    z-index: 615;
    top: 50%;
    right: 9px;
    max-width: 280px;
    color: var(--atlas-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 7px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    pointer-events: none;
    transform: translateY(-50%) rotate(90deg) translateY(-50%);
    transform-origin: right top;
}

.tarot-atlas__empty {
    position: relative;
    z-index: 30;
    display: grid;
    min-height: calc(100svh - var(--site-nav-height, 86px));
    place-content: center;
    padding: 40px 20px;
    color: var(--atlas-muted);
    text-align: center;
}

.tarot-atlas__empty i { color: var(--atlas-accent); font-size: 38px; }
.tarot-atlas__empty h2 { margin: 16px 0 8px; color: var(--atlas-ink); font-family: "Bodoni Moda", Georgia, serif; }
.tarot-atlas__empty p { margin: 0; font-family: "Manrope", Arial, sans-serif; font-size: 13px; }

/* Detail coordinate */
.tarot-atlas-detail {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: clamp(48px, 7vw, 104px) 0;
    background:
        radial-gradient(circle at 20% 24%, rgba(224, 182, 106, 0.17), transparent 28%),
        linear-gradient(145deg, #fbf7eb, #f0e2c8 66%, #ddc89e);
    color: var(--atlas-ink);
}

.tarot-atlas-detail-page--reverse .tarot-atlas-detail {
    background:
        radial-gradient(circle at 18% 22%, rgba(126, 145, 196, 0.12), transparent 28%),
        linear-gradient(145deg, #11192a, #090d17 66%, #05070c);
}

.tarot-atlas-detail::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49.9%, var(--atlas-line) 50%, transparent 50.1%),
        radial-gradient(circle at 78% 16%, rgba(255,255,255,0.24) 0 1px, transparent 1.5px),
        radial-gradient(circle at 82% 30%, rgba(255,255,255,0.18) 0 1px, transparent 1.5px);
    background-size: auto, 180px 160px, 250px 210px;
    content: "";
    opacity: 0.6;
    pointer-events: none;
}

.tarot-atlas-detail__container {
    position: relative;
    z-index: 2;
    max-width: 1180px;
}

.tarot-atlas-detail__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 42px;
    color: var(--atlas-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tarot-atlas-detail__breadcrumb a {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: var(--atlas-accent-soft);
    text-decoration: none;
}

.tarot-atlas-detail__header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: clamp(40px, 6vw, 76px);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--atlas-line);
}

.tarot-atlas-detail__kicker,
.tarot-atlas-detail__label {
    margin: 0 0 8px;
    color: var(--atlas-accent);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tarot-atlas-detail__header h1,
.tarot-atlas-detail--missing h1 {
    margin: 0;
    color: var(--atlas-ink);
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: clamp(44px, 7vw, 96px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.tarot-atlas-detail__coordinate {
    display: grid;
    min-width: 132px;
    text-align: right;
}

.tarot-atlas-detail__coordinate span,
.tarot-atlas-detail__coordinate small {
    color: var(--atlas-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tarot-atlas-detail__coordinate strong {
    color: var(--atlas-accent-soft);
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: 58px;
    font-weight: 400;
    line-height: 0.9;
}

.tarot-atlas-detail__layout {
    display: grid;
    grid-template-columns: minmax(250px, 390px) minmax(0, 1fr);
    gap: clamp(46px, 8vw, 116px);
    align-items: start;
}

.tarot-atlas-detail__card {
    position: sticky;
    top: 96px;
    margin: 0;
}

.tarot-atlas-detail__card-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid var(--atlas-line);
    background: rgba(4, 4, 7, 0.8);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.44);
}

.tarot-atlas-detail__card-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tarot-atlas-detail__reflection {
    display: block;
    overflow: hidden;
    width: 94%;
    height: 135px;
    margin: 5px auto 0;
    opacity: 0.36;
    filter: blur(4px) saturate(0.7);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.66), transparent 90%);
    transform-origin: top center;
}

.tarot-atlas-detail__reflection img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: bottom center;
    transform: scaleY(-1);
    transform-origin: center;
}

.tarot-atlas-detail__reflection[data-reflection-side="back"] {
    opacity: 0.24;
    filter: blur(5px) saturate(0.35);
}

.tarot-atlas-detail__card figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--atlas-line);
    color: var(--atlas-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tarot-atlas-detail__reading {
    display: grid;
    gap: 0;
}

.tarot-atlas-detail__reading section {
    padding: 0 0 34px;
    border-bottom: 1px solid var(--atlas-line);
}

.tarot-atlas-detail__reading section + section {
    padding-top: 34px;
}

.tarot-atlas-detail__reading h2,
.tarot-atlas-detail__placeholder h2 {
    max-width: 660px;
    margin: 0 0 14px;
    color: var(--atlas-ink);
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.tarot-atlas-detail__reading section > p:last-child,
.tarot-atlas-detail__placeholder > p {
    max-width: 720px;
    margin: 0;
    color: var(--atlas-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.85;
}

.tarot-atlas-detail__introduction > p:last-child {
    color: var(--atlas-accent-soft) !important;
    font-family: "Bodoni Moda", Georgia, serif !important;
    font-size: clamp(20px, 2.1vw, 30px) !important;
    line-height: 1.45 !important;
}

.tarot-atlas-detail__context {
    margin-top: 34px;
    padding: 26px !important;
    border: 1px solid var(--atlas-line) !important;
    background: rgba(255, 255, 255, 0.035);
}

.tarot-atlas-detail__notice {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding: 18px 20px;
    border-left: 1px solid var(--atlas-accent);
    background: rgba(0, 0, 0, 0.16);
    color: var(--atlas-muted);
}

.tarot-atlas-detail__notice i { color: var(--atlas-accent); }
.tarot-atlas-detail__notice p { margin: 0; font-family: "Manrope", Arial, sans-serif; font-size: 10px; line-height: 1.6; }

.tarot-atlas-detail__placeholder {
    align-self: center;
    padding: clamp(28px, 5vw, 70px);
    border: 1px solid var(--atlas-line);
    background: rgba(0, 0, 0, 0.14);
}

.tarot-atlas-detail__return {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 28px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--atlas-accent);
    color: var(--atlas-accent-soft);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.tarot-atlas-detail--missing {
    display: grid;
    min-height: 620px;
    align-items: center;
}

.tarot-atlas-detail--missing p:not(.tarot-atlas-detail__kicker) {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--atlas-muted);
    font-family: "Manrope", Arial, sans-serif;
}

@media (max-width: 980px) {
    .tarot-atlas__masthead {
        top: 18px;
        gap: 18px;
    }

    .tarot-atlas__title-group h1 { max-width: 330px; font-size: 29px; }
    .tarot-atlas__deck-tabs { grid-template-columns: repeat(2, minmax(105px, 1fr)); }
    .tarot-atlas__deck-tab { min-height: 46px; padding: 7px 11px; }
    .tarot-atlas__hud { grid-template-columns: 1fr auto auto; gap: 14px; }
    .tarot-atlas__current-copy p { max-width: 310px; }
    .tarot-atlas__notice { display: none; }
}

@media (max-width: 760px) {
    .tarot-atlas,
    .tarot-atlas__panel,
    .tarot-atlas__empty {
        min-height: calc(100svh - 70px);
    }

    .tarot-atlas__masthead {
        right: 14px;
        left: 14px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .tarot-atlas__title-group h1 { max-width: 420px; font-size: clamp(24px, 7vw, 34px); }
    .tarot-atlas__deck-tabs { width: min(100%, 420px); }
    .tarot-atlas__stage { top: 92px; bottom: 58px; }
    .tarot-atlas__core { top: 52%; width: clamp(142px, 37vw, 230px); }
    .tarot-atlas__core-copy strong { font-size: clamp(42px, 12vw, 66px); }
    .tarot-atlas__meridian { width: min(48vw, 300px); height: min(58vh, 480px); }
    .tarot-atlas__equator { width: 88vw; height: 27vh; }
    .tarot-atlas__ring--one { width: 82vw; height: 58vh; }
    .tarot-atlas__ring--two { width: 75vw; height: 62vh; }
    .tarot-atlas__constellation { opacity: 0.55; }

    .tarot-atlas__hud {
        right: 14px;
        bottom: 12px;
        left: 14px;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .tarot-atlas__current-copy { display: none; }
    .tarot-atlas__status { justify-self: start; border-left: 0; text-align: left; }
    .tarot-atlas__motion { min-height: 38px; }

    .tarot-atlas-detail { padding: 42px 0 72px; }
    .tarot-atlas-detail__breadcrumb { margin-bottom: 30px; }
    .tarot-atlas-detail__header { align-items: start; }
    .tarot-atlas-detail__header h1 { font-size: clamp(40px, 13vw, 66px); }
    .tarot-atlas-detail__coordinate { min-width: 90px; }
    .tarot-atlas-detail__coordinate strong { font-size: 46px; }
    .tarot-atlas-detail__layout { grid-template-columns: 1fr; gap: 54px; }
    .tarot-atlas-detail__card { position: relative; top: auto; width: min(82vw, 360px); margin: 0 auto; }
}

@media (max-width: 480px) {
    .tarot-atlas__title-group p { margin-bottom: 3px; font-size: 8px; }
    .tarot-atlas__title-group h1 { font-size: 23px; }
    .tarot-atlas__deck-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tarot-atlas__deck-tab { min-height: 42px; padding: 6px 9px; }
    .tarot-atlas__deck-tab span { font-size: 10px; }
    .tarot-atlas__deck-tab small { font-size: 6px; }
    .tarot-atlas__stage { top: 82px; bottom: 54px; }
    .tarot-atlas__core-copy small,
    .tarot-atlas__core-copy em { font-size: 5px; }
    .tarot-atlas__hud { gap: 8px; }
    .tarot-atlas__status { padding: 7px 9px; }
    .tarot-atlas__status span { font-size: 6px; }
    .tarot-atlas__motion { padding: 7px 9px; font-size: 7px; }
    .tarot-atlas-detail__header { gap: 14px; }
    .tarot-atlas-detail__coordinate { min-width: 70px; }
    .tarot-atlas-detail__coordinate strong { font-size: 38px; }
    .tarot-atlas-detail__placeholder { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .tarot-atlas,
    .tarot-atlas__deck-tab,
    .tarot-atlas-card,
    .tarot-atlas-card__media {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}
