/* ======================================================== */
/*  PHYSICS-NEBULA // TEACHER ATLAS DECK & CARD STYLES   */
/* ======================================================== */
        .atlas-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 18px;
            min-height: 46px;
            border-radius: 999px;
            border: 1px solid rgba(135, 210, 255, 0.14);
            background:
                linear-gradient(135deg, rgba(78, 214, 255, 0.16), rgba(255, 119, 85, 0.08) 52%, rgba(255, 255, 255, 0.03)),
                rgba(5, 10, 19, 0.78);
            color: rgba(239, 247, 255, 0.94);
            font-size: 11px;
            letter-spacing: 1.8px;
            text-transform: uppercase;
            cursor: pointer;
            backdrop-filter: blur(14px);
            box-shadow:
                0 16px 40px rgba(0, 0, 0, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
            touch-action: manipulation;
        }

        .atlas-button::before {
            content: "";
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background:
                radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.22) 32%, rgba(255, 255, 255, 0) 74%),
                conic-gradient(from 0deg, #7be4ff 0deg 130deg, #ffb36e 130deg 230deg, #8a7cff 230deg 360deg);
            box-shadow:
                0 0 16px rgba(123, 228, 255, 0.48),
                0 0 24px rgba(255, 179, 110, 0.18);
        }

        .atlas-button:hover {
            transform: translateY(-2px);
            border-color: rgba(123, 228, 255, 0.34);
            box-shadow:
                0 18px 46px rgba(0, 0, 0, 0.34),
                0 0 28px rgba(123, 228, 255, 0.1);
        }

        .atlas-button.is-active {
            border-color: rgba(123, 228, 255, 0.4);
            background:
                linear-gradient(135deg, rgba(78, 214, 255, 0.22), rgba(255, 119, 85, 0.12) 52%, rgba(255, 255, 255, 0.05)),
                rgba(6, 11, 20, 0.82);
            box-shadow:
                0 20px 52px rgba(0, 0, 0, 0.36),
                0 0 32px rgba(123, 228, 255, 0.12);
        }

        .timeline-speed {
            width: 100%;
            max-width: 248px;
            padding: 10px 12px 11px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
                rgba(5, 10, 18, 0.68);
            box-shadow:
                0 16px 40px rgba(0, 0, 0, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(14px);
        }

        .timeline-speed__head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 9px;
        }

        .timeline-speed__label {
            font-size: 9px;
            line-height: 1;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: rgba(178, 224, 255, 0.76);
        }

        .timeline-speed__value {
            font-size: 12px;
            line-height: 1;
            font-weight: 600;
            letter-spacing: 0.04em;
            color: rgba(245, 249, 255, 0.94);
        }

        .timeline-speed__input {
            width: 100%;
            margin: 0;
            accent-color: #7be4ff;
            cursor: pointer;
            touch-action: manipulation;
        }

        .timeline-speed__ticks {
            display: flex;
            justify-content: space-between;
            margin-top: 6px;
            font-size: 9px;
            line-height: 1;
            letter-spacing: 0.08em;
            color: rgba(208, 224, 244, 0.5);
        }

        .timeline-status {
            max-width: 240px;
            max-height: 0;
            padding: 0 12px;
            border-radius: 16px;
            border: 1px solid transparent;
            background: rgba(6, 10, 18, 0.58);
            color: rgba(230, 239, 255, 0.74);
            font-size: 11px;
            letter-spacing: 1px;
            text-align: right;
            line-height: 1.7;
            backdrop-filter: blur(12px);
            opacity: 0;
            transform: translateY(-6px);
            overflow: hidden;
            pointer-events: none;
            transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
        }

        .timeline-status.is-visible {
            max-height: 132px;
            padding: 8px 12px 9px;
            border-color: rgba(255, 255, 255, 0.08);
            opacity: 1;
            transform: translateY(0);
        }

        #tooltip {
            position: absolute;
            padding: 16px 18px;
            max-width: 320px;
            background: rgba(5, 10, 18, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-left: 4px solid var(--accent-color);
            border-radius: 14px 18px 18px 14px;
            backdrop-filter: blur(14px);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
            pointer-events: none;
            opacity: 0;
            transform: translateY(14px) scale(0.98);
            transition: opacity 0.22s ease, transform 0.22s ease;
            z-index: 100;
        }

        body.is-touch-device #tooltip {
            display: block;
            width: min(332px, calc(100vw - 24px));
            max-width: min(332px, calc(100vw - 24px));
            border-left-width: 1px;
            border-radius: 18px;
            background: rgba(6, 10, 18, 0.88);
            box-shadow:
                0 20px 44px rgba(0, 0, 0, 0.34),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        body.is-low-power .gravity-lens {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        #tooltip h3 {
            margin: 0 0 10px 0;
            font-size: 19px;
            letter-spacing: 1px;
            color: var(--accent-color);
            font-weight: 600;
        }

        #tooltip .meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 10px;
        }

        #tooltip .tag {
            display: inline-flex;
            align-items: center;
            padding: 3px 9px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            font-size: 11px;
            letter-spacing: 0.5px;
        }

        #tooltip .tag-secondary {
            color: rgba(255, 255, 255, 0.75);
            background: rgba(255, 255, 255, 0.06);
        }

        #tooltip p {
            margin: 0;
            font-size: 13px;
            line-height: 1.7;
            color: rgba(234, 242, 255, 0.82);
        }

        #tooltip .related-list {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 12px;
        }

        #tooltip .related-pill {
            padding: 4px 9px;
            border-radius: 999px;
            font-size: 11px;
            color: #e9f5ff;
            background: rgba(115, 216, 255, 0.12);
            border: 1px solid rgba(115, 216, 255, 0.18);
        }

        .travel-overlay {
            position: absolute;
            inset: 0;
            opacity: 0;
            pointer-events: none;
            z-index: 22;
            overflow: hidden;
            --travel-accent: rgba(115, 216, 255, 0.88);
        }

        .travel-overlay::before {
            content: "";
            position: absolute;
            inset: -20%;
            background:
                radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 16%),
                conic-gradient(from 0deg, transparent 0deg 18deg, rgba(255, 255, 255, 0.16) 18deg 22deg, transparent 22deg 48deg, rgba(255, 255, 255, 0.12) 48deg 52deg, transparent 52deg 360deg);
            filter: blur(14px);
            transform: scale(0.28);
            opacity: 0;
        }

        .travel-overlay.is-active {
            animation: travelFade 1.05s ease forwards;
        }

        .travel-overlay.is-active::before {
            animation: travelBurst 0.92s cubic-bezier(0.16, 0.84, 0.24, 1) forwards;
        }

        .travel-streaks,
        .travel-ring,
        .travel-core {
            position: absolute;
            inset: 50% auto auto 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
        }

        .travel-streaks {
            width: min(72vw, 940px);
            height: min(72vw, 940px);
            opacity: 0;
            background:
                repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.16) 0deg 3deg, transparent 3deg 12deg),
                radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 56%);
            mask: radial-gradient(circle at center, transparent 0 14%, #000 36%, transparent 76%);
            filter: blur(1px);
        }

        .travel-overlay.is-active .travel-streaks {
            animation: travelStreak 0.96s cubic-bezier(0.2, 0.8, 0.18, 1) forwards;
        }

        .travel-ring {
            border: 1px solid rgba(255, 255, 255, 0.16);
            box-shadow: 0 0 40px rgba(255, 255, 255, 0.08), inset 0 0 26px rgba(255, 255, 255, 0.06);
            opacity: 0;
        }

        .travel-ring.ring-a {
            width: 180px;
            height: 180px;
        }

        .travel-ring.ring-b {
            width: 320px;
            height: 320px;
        }

        .travel-overlay.is-active .travel-ring.ring-a {
            animation: travelRing 0.94s ease forwards;
        }

        .travel-overlay.is-active .travel-ring.ring-b {
            animation: travelRing 0.94s ease 0.05s forwards;
        }

        .travel-core {
            width: 130px;
            height: 130px;
            opacity: 0;
            background:
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.34) 24%, rgba(255, 255, 255, 0) 70%),
                radial-gradient(circle at 50% 50%, var(--travel-accent) 0%, rgba(255, 255, 255, 0) 72%);
            filter: blur(1px);
        }

        .travel-overlay.is-active .travel-core {
            animation: travelCore 0.86s ease forwards;
        }

        .travel-caption {
            position: absolute;
            left: 50%;
            bottom: 18%;
            transform: translateX(-50%);
            padding: 9px 16px;
            border-radius: 999px;
            background: rgba(6, 12, 20, 0.68);
            border: 1px solid rgba(255, 255, 255, 0.12);
            font-size: 12px;
            letter-spacing: 1px;
            color: rgba(244, 248, 255, 0.9);
            opacity: 0;
            box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
            backdrop-filter: blur(10px);
        }

        .travel-overlay.is-active .travel-caption {
            animation: travelCaption 0.85s ease 0.12s forwards;
        }

        .dimension-overlay {
            position: absolute;
            inset: 0;
            opacity: 0;
            pointer-events: none;
            z-index: 32;
            overflow: hidden;
            --warp-accent: #7be4ff;
        }

        .dimension-overlay.is-active {
            animation: dimensionFade 1.15s cubic-bezier(0.18, 0.84, 0.2, 1) forwards;
        }

        .dimension-overlay__spiral,
        .dimension-overlay__ring,
        .dimension-overlay__core,
        .dimension-overlay__tunnel {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            pointer-events: none;
        }

        .dimension-overlay__spiral {
            width: min(94vw, 1280px);
            height: min(94vw, 1280px);
            opacity: 0;
            background:
                radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 22%),
                conic-gradient(from 0deg, rgba(123, 228, 255, 0) 0deg 14deg, rgba(123, 228, 255, 0.24) 14deg 52deg, rgba(255, 179, 110, 0.22) 52deg 86deg, rgba(105, 129, 255, 0.18) 86deg 130deg, rgba(123, 228, 255, 0) 130deg 360deg);
            mask: radial-gradient(circle at center, transparent 0 10%, #000 26%, transparent 78%);
            filter: blur(8px) saturate(1.2);
        }

        .dimension-overlay__tunnel {
            width: min(68vw, 920px);
            height: min(68vw, 920px);
            opacity: 0;
            background:
                repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.18) 0deg 2deg, transparent 2deg 9deg),
                radial-gradient(circle at center, rgba(123, 228, 255, 0.24) 0%, rgba(123, 228, 255, 0) 68%);
            mask: radial-gradient(circle at center, transparent 0 16%, #000 34%, transparent 78%);
            filter: blur(1px);
        }

        .dimension-overlay__ring {
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow:
                0 0 44px rgba(123, 228, 255, 0.1),
                inset 0 0 28px rgba(255, 255, 255, 0.07);
            opacity: 0;
        }

        .dimension-overlay__ring.ring-a {
            width: 200px;
            height: 200px;
        }

        .dimension-overlay__ring.ring-b {
            width: 380px;
            height: 380px;
        }

        .dimension-overlay__core {
            width: 150px;
            height: 150px;
            opacity: 0;
            background:
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.38) 18%, rgba(255, 255, 255, 0.02) 58%, rgba(255, 255, 255, 0) 74%),
                radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--warp-accent) 78%, white 22%) 0%, rgba(255, 255, 255, 0) 72%);
            filter: blur(1px);
        }

        .dimension-overlay__caption {
            position: absolute;
            left: 50%;
            bottom: 15%;
            transform: translateX(-50%);
            padding: 10px 16px;
            border-radius: 999px;
            background: rgba(5, 10, 18, 0.72);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
            color: rgba(242, 247, 255, 0.92);
            font-size: 12px;
            letter-spacing: 1.4px;
            opacity: 0;
            backdrop-filter: blur(10px);
        }

        .dimension-overlay.is-active .dimension-overlay__spiral {
            animation: dimensionSpiral 1.06s cubic-bezier(0.18, 0.84, 0.2, 1) forwards;
        }

        .dimension-overlay.is-active .dimension-overlay__tunnel {
            animation: dimensionTunnel 0.92s cubic-bezier(0.24, 0.8, 0.18, 1) forwards;
        }

        .dimension-overlay.is-active .dimension-overlay__ring.ring-a {
            animation: dimensionRing 0.88s ease forwards;
        }

        .dimension-overlay.is-active .dimension-overlay__ring.ring-b {
            animation: dimensionRing 0.88s ease 0.05s forwards;
        }

        .dimension-overlay.is-active .dimension-overlay__core {
            animation: dimensionCore 0.8s ease forwards;
        }

        .dimension-overlay.is-active .dimension-overlay__caption {
            animation: dimensionCaption 0.82s ease 0.1s forwards;
        }

        .atlas-stage {
            position: absolute;
            inset: 0;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: none;
            z-index: 26;
        }

        .atlas-stage.is-visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .atlas-stage__shell {
            position: absolute;
            inset: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
            border-radius: 30px;
            overflow: hidden;
            background:
                radial-gradient(circle at 18% 20%, rgba(77, 255, 177, 0.1), transparent 28%),
                radial-gradient(circle at 82% 18%, rgba(255, 215, 102, 0.08), transparent 26%),
                radial-gradient(circle at 50% 80%, rgba(64, 184, 255, 0.09), transparent 34%),
                linear-gradient(180deg, rgba(5, 10, 18, 0.92) 0%, rgba(2, 5, 10, 0.97) 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow:
                0 30px 90px rgba(0, 0, 0, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(24px);
        }

        .atlas-stage__shell::before,
        .atlas-stage__shell::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .atlas-stage__shell::before {
            background:
                linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
            background-size: 44px 44px;
            mask: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 92%);
            opacity: 0.22;
        }

        .atlas-stage__shell::after {
            background:
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 58%),
                linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.03));
            opacity: 0.58;
        }

        .atlas-stage__hud,
        .atlas-stage__legend,
        .atlas-stage__detail,
        .atlas-stage__close {
            position: absolute;
            z-index: 3;
        }

        .atlas-stage__hud {
            top: max(24px, env(safe-area-inset-top));
            left: max(26px, env(safe-area-inset-left));
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            max-width: min(360px, calc(100% - 188px));
        }

        .atlas-stage__eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: rgba(224, 235, 255, 0.78);
            font-size: 11px;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .atlas-stage__eyebrow::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: linear-gradient(180deg, #7be4ff 0%, #ffb36e 100%);
            box-shadow: 0 0 14px rgba(123, 228, 255, 0.46);
        }

        .atlas-stage__title {
            margin: 0;
            font-size: clamp(22px, 2vw, 30px);
            line-height: 1.08;
            letter-spacing: 0.4px;
            font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
            font-weight: 500;
            color: rgba(247, 250, 255, 0.96);
            text-shadow: 0 0 26px rgba(123, 228, 255, 0.16);
            white-space: nowrap;
        }

        .atlas-stage__copy {
            margin: 0;
            max-width: 28ch;
            font-size: 12px;
            line-height: 1.7;
            color: rgba(215, 227, 246, 0.62);
        }

        .atlas-stage__copy,
        .atlas-stage__legend,
        .atlas-stage__detail {
            display: none;
        }

        .atlas-stage__close {
            top: max(28px, env(safe-area-inset-top));
            right: max(30px, env(safe-area-inset-right));
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 11px 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 999px;
            background: rgba(7, 11, 19, 0.66);
            color: rgba(243, 248, 255, 0.92);
            font-size: 11px;
            letter-spacing: 1.6px;
            text-transform: uppercase;
            cursor: pointer;
            backdrop-filter: blur(12px);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
            transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
        }

        .atlas-stage__close::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: linear-gradient(180deg, #7be4ff 0%, #ffffff 100%);
            box-shadow: 0 0 12px rgba(123, 228, 255, 0.34);
        }

        .atlas-stage__close:hover {
            transform: translateY(-2px);
            border-color: rgba(123, 228, 255, 0.28);
            box-shadow:
                0 18px 38px rgba(0, 0, 0, 0.3),
                0 0 24px rgba(123, 228, 255, 0.08);
        }

        .atlas-stage__actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 4px;
        }

        .atlas-stage__btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 11px;
            letter-spacing: 1.2px;
            cursor: pointer;
            transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
        }

        .atlas-stage__btn--draw {
            background: linear-gradient(135deg, rgba(123, 228, 255, 0.18), rgba(255, 179, 110, 0.1));
            color: rgba(247, 252, 255, 0.96);
            box-shadow: 0 0 20px rgba(123, 228, 255, 0.12);
        }

        .atlas-stage__btn--draw:hover {
            transform: translateY(-2px);
            border-color: rgba(123, 228, 255, 0.35);
            box-shadow: 0 0 28px rgba(123, 228, 255, 0.2);
        }

        .atlas-stage__pool-btn,
        .atlas-stage__btn,
        .atlas-module-pool__btn,
        .atlas-module-pool__cluster-btn,
        .atlas-module-pool__item,
        .atlas-card,
        .atlas-card *,
        .knowledge-card__close {
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
        }

        .atlas-stage__pool-btn,
        .atlas-stage__btn,
        .atlas-module-pool__btn,
        .atlas-module-pool__cluster-btn,
        .atlas-module-pool__item,
        .atlas-card,
        .knowledge-card__close {
            -webkit-user-select: none;
            user-select: none;
            touch-action: manipulation;
            outline: none;
        }

        .atlas-stage__pool-btn:focus,
        .atlas-stage__btn:focus,
        .atlas-module-pool__btn:focus,
        .atlas-module-pool__cluster-btn:focus,
        .atlas-module-pool__item:focus,
        .atlas-card:focus,
        .knowledge-card__close:focus {
            outline: none;
            box-shadow: none;
        }

        .atlas-card-library {
            position: absolute;
            inset: 0;
            top: 100px;
            left: max(24px, env(safe-area-inset-left));
            right: max(24px, env(safe-area-inset-right));
            bottom: max(24px, env(safe-area-inset-bottom));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            overflow-x: hidden;
            overflow-y: auto;
            z-index: 2;
            padding: 20px 108px 56px 108px;
            padding-top: 48px;
            min-height: 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .atlas-card-library::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        .atlas-card-library.atlas-card-library--hidden {
            display: none;
        }

        .atlas-card-library.atlas-card-library--pool-open .atlas-card-library__center {
            justify-content: flex-start;
            padding-top: 10px;
        }

        .atlas-card-library__hint {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 12px;
            color: rgba(200, 220, 255, 0.6);
            letter-spacing: 0.5px;
            text-align: center;
            max-width: min(520px, calc(100% - 32px));
        }

        .atlas-card-library__toolbar {
            width: min(620px, calc(100% - 32px));
            margin: 28px auto 32px;
            display: flex;
            justify-content: center;
            flex-shrink: 0;
            z-index: 3;
        }
        .atlas-mode-switch {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }
        .atlas-mode-switch__btn {
            flex: 1 1 168px;
            min-width: 0;
            padding: 10px 16px;
            border-radius: 14px;
            border: 1px solid rgba(123, 228, 255, 0.16);
            background:
                linear-gradient(180deg, rgba(11, 18, 34, 0.84), rgba(7, 13, 24, 0.92));
            color: rgba(210, 226, 248, 0.8);
            font-size: 12px;
            font-weight: 600;
            line-height: 1.4;
            letter-spacing: 0.2px;
            cursor: pointer;
            transition:
                border-color 0.22s ease,
                background 0.22s ease,
                color 0.22s ease,
                transform 0.22s ease,
                box-shadow 0.22s ease;
        }
        .atlas-mode-switch__btn:hover {
            transform: translateY(-1px);
            border-color: rgba(123, 228, 255, 0.32);
            color: rgba(244, 249, 255, 0.96);
        }
        .atlas-mode-switch__btn.is-active,
        .atlas-mode-switch__btn[aria-pressed="true"] {
            background:
                linear-gradient(180deg, rgba(88, 196, 255, 0.18), rgba(16, 40, 68, 0.94));
            border-color: rgba(132, 230, 255, 0.42);
            color: rgba(248, 252, 255, 0.98);
            box-shadow: 0 12px 28px rgba(34, 122, 184, 0.18);
        }

        .atlas-stage__pool-btn {
            position: absolute;
            right: max(24px, env(safe-area-inset-right));
            bottom: max(24px, env(safe-area-inset-bottom));
            z-index: 10;
            padding: 10px 18px;
            font-size: 13px;
            font-weight: 600;
            border-radius: 12px;
            border: 1px solid rgba(123, 228, 255, 0.3);
            background: rgba(12, 22, 38, 0.9);
            color: rgba(200, 230, 255, 0.95);
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        }
        .atlas-stage__pool-btn:hover {
            background: rgba(123, 228, 255, 0.15);
            border-color: rgba(123, 228, 255, 0.5);
        }

        .atlas-module-pool {
            margin: 12px 0 16px;
            padding: 16px 18px 18px;
            border-radius: 18px;
            border: 1px solid rgba(123, 228, 255, 0.16);
            background:
                linear-gradient(180deg, rgba(8, 18, 34, 0.9), rgba(5, 12, 24, 0.94));
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.04),
                0 18px 36px rgba(0, 0, 0, 0.2);
            max-width: min(1040px, 100%);
            width: 100%;
            flex-shrink: 0;
            max-height: min(40vh, 420px);
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .atlas-module-pool::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }
        .atlas-module-pool.atlas-module-pool--hidden {
            display: none;
        }
        .atlas-module-pool__title-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 10px;
        }
        .atlas-module-pool__title {
            font-size: 12px;
            font-weight: 600;
            color: rgba(123, 228, 255, 0.9);
            letter-spacing: 0.5px;
        }
        .atlas-module-pool__summary {
            font-size: 11px;
            line-height: 1.55;
            color: rgba(194, 218, 255, 0.72);
            text-align: right;
        }
        .atlas-module-pool__preset-head {
            display: grid;
            gap: 4px;
            margin-bottom: 10px;
        }
        .atlas-module-pool__preset-title {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.8px;
            color: rgba(242, 247, 255, 0.92);
        }
        .atlas-module-pool__preset-copy {
            font-size: 10px;
            line-height: 1.55;
            color: rgba(188, 212, 248, 0.66);
        }
        .atlas-module-pool__preset-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
            gap: 8px;
            margin-bottom: 14px;
        }
        .atlas-module-pool__preset-btn {
            min-width: 0;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px solid rgba(123, 228, 255, 0.12);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
            color: rgba(218, 232, 251, 0.82);
            cursor: pointer;
            text-align: left;
            transition:
                transform 0.22s ease,
                border-color 0.22s ease,
                background 0.22s ease,
                box-shadow 0.22s ease,
                color 0.22s ease;
        }
        .atlas-module-pool__preset-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(123, 228, 255, 0.24);
            color: rgba(246, 250, 255, 0.96);
        }
        .atlas-module-pool__preset-btn.is-active {
            border-color: rgba(123, 228, 255, 0.36);
            background:
                linear-gradient(180deg, rgba(95, 196, 255, 0.14), rgba(8, 18, 34, 0.92));
            box-shadow: 0 10px 24px rgba(25, 94, 148, 0.14);
            color: rgba(248, 252, 255, 0.98);
        }
        .atlas-module-pool__preset-label {
            display: block;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }
        .atlas-module-pool__preset-meta {
            display: block;
            margin-top: 4px;
            font-size: 10px;
            line-height: 1.45;
            color: rgba(188, 212, 248, 0.66);
        }
        .atlas-module-pool__list {
            display: grid;
            gap: 14px;
            margin-bottom: 12px;
        }
        .atlas-module-pool__cluster {
            padding: 14px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.016));
        }
        .atlas-module-pool__cluster-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }
        .atlas-module-pool__cluster-kicker {
            display: inline-flex;
            align-items: center;
            padding: 4px 8px;
            border-radius: 999px;
            margin-bottom: 8px;
            font-size: 10px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(129, 231, 255, 0.95);
            background: rgba(115, 216, 255, 0.12);
            border: 1px solid rgba(115, 216, 255, 0.18);
        }
        .atlas-module-pool__cluster-title {
            font-size: 14px;
            font-weight: 700;
            line-height: 1.35;
            color: rgba(244, 248, 255, 0.96);
        }
        .atlas-module-pool__cluster-summary {
            margin-top: 4px;
            font-size: 11px;
            line-height: 1.55;
            color: rgba(194, 218, 255, 0.72);
        }
        .atlas-module-pool__cluster-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 66px;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 11px;
            color: rgba(222, 236, 255, 0.82);
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
        .atlas-module-pool__cluster-actions {
            display: flex;
            justify-content: flex-start;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        .atlas-module-pool__cluster-btn,
        .atlas-module-pool__btn {
            padding: 6px 12px;
            font-size: 11px;
            border-radius: 999px;
            border: 1px solid rgba(123, 228, 255, 0.24);
            background: rgba(11, 20, 34, 0.84);
            color: rgba(206, 228, 255, 0.9);
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        }
        .atlas-module-pool__cluster-btn:hover,
        .atlas-module-pool__btn:hover {
            background: rgba(123, 228, 255, 0.12);
            border-color: rgba(123, 228, 255, 0.42);
            transform: translateY(-1px);
        }
        .atlas-module-pool__grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 10px;
        }
        .atlas-module-pool__item {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.018));
            color: rgba(220, 235, 255, 0.88);
            cursor: pointer;
            user-select: none;
            min-height: 48px;
            box-sizing: border-box;
        }
        .atlas-module-pool__item:hover {
            border-color: rgba(123, 228, 255, 0.18);
            background:
                linear-gradient(180deg, rgba(115, 216, 255, 0.07), rgba(255, 255, 255, 0.02));
        }
        .atlas-module-pool__item input {
            width: 16px;
            height: 16px;
            margin-top: 2px;
            accent-color: #73d8ff;
            cursor: pointer;
            flex-shrink: 0;
        }
        .atlas-module-pool__item-copy {
            min-width: 0;
            display: grid;
            gap: 2px;
        }
        .atlas-module-pool__item-title {
            font-size: 12px;
            font-weight: 600;
            line-height: 1.45;
            color: rgba(244, 248, 255, 0.95);
            overflow-wrap: anywhere;
        }
        .atlas-module-pool__item-meta {
            font-size: 10px;
            line-height: 1.4;
            color: rgba(186, 210, 246, 0.68);
        }
        .atlas-module-pool__actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .atlas-card-library__center {
            flex: 1 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            margin-top: 8px;
        }
        @media (orientation: landscape) {
            .atlas-card-library__toolbar {
                margin-bottom: 42px;
            }
            .atlas-card-library__center {
                margin-top: 16px;
            }
        }
        .atlas-card-library__draw-area {
            position: relative;
            width: min(390px, min(92vw, calc(100% - 24px)));
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            perspective: 1200px;
            transform-style: preserve-3d;
            isolation: isolate;
            overflow: visible;
            margin-bottom: 12px;
            z-index: 2;
        }
        .atlas-card-library__draw-area::before,
        .atlas-card-library__draw-area::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            pointer-events: none;
            opacity: 0;
            transform: translate3d(-50%, -50%, 0) scale(0.74);
            transform-origin: center;
        }
        .atlas-card-library__draw-area::before {
            width: min(540px, 138%);
            height: min(560px, 120%);
            border-radius: 50%;
            background:
                radial-gradient(circle at 50% 50%, rgba(123, 228, 255, 0.26), rgba(123, 228, 255, 0.12) 28%, rgba(255, 179, 110, 0.08) 50%, transparent 72%),
                radial-gradient(circle at 30% 42%, rgba(135, 244, 255, 0.2), transparent 34%),
                radial-gradient(circle at 72% 58%, rgba(255, 179, 110, 0.18), transparent 30%);
            filter: blur(18px);
            z-index: 0;
        }
        .atlas-card-library__draw-area::after {
            width: min(430px, 118%);
            height: min(210px, 48%);
            border-radius: 999px;
            border: 1px solid rgba(123, 228, 255, 0.24);
            background:
                linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 20%, rgba(123, 228, 255, 0.2) 50%, rgba(255, 179, 110, 0.12) 78%, transparent 100%);
            box-shadow:
                0 0 0 1px rgba(123, 228, 255, 0.05),
                0 0 34px rgba(123, 228, 255, 0.18),
                inset 0 0 28px rgba(123, 228, 255, 0.08);
            mix-blend-mode: screen;
            z-index: 1;
        }
        .atlas-card-library__draw-area.is-summoning::before {
            animation: atlasDrawPortalBloom 0.98s cubic-bezier(0.16, 0.9, 0.24, 1);
        }
        .atlas-card-library__draw-area.is-summoning::after {
            animation: atlasDrawPortalRing 0.96s cubic-bezier(0.18, 0.88, 0.22, 1);
        }
        .atlas-card-library__draw-area.is-summoning-lite::before {
            animation: atlasDrawPortalBloomLite 0.46s ease-out;
        }
        .atlas-card-library__draw-area.is-summoning-lite::after {
            animation: atlasDrawPortalRingLite 0.42s ease-out;
        }
        .atlas-card-library__draw-area[data-rarity="gold"]::before {
            background:
                radial-gradient(circle at 50% 50%, rgba(255, 208, 120, 0.34), rgba(255, 208, 120, 0.16) 26%, rgba(123, 228, 255, 0.14) 54%, transparent 74%),
                radial-gradient(circle at 32% 40%, rgba(255, 227, 166, 0.24), transparent 32%),
                radial-gradient(circle at 72% 60%, rgba(123, 228, 255, 0.18), transparent 30%);
        }
        .atlas-card-library__draw-area[data-rarity="gold"]::after {
            border-color: rgba(255, 210, 132, 0.3);
            background:
                linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 16%, rgba(255, 217, 146, 0.26) 44%, rgba(123, 228, 255, 0.18) 74%, transparent 100%);
            box-shadow:
                0 0 0 1px rgba(255, 218, 162, 0.08),
                0 0 42px rgba(255, 188, 92, 0.24),
                inset 0 0 32px rgba(255, 210, 132, 0.1);
        }
        .atlas-card-library__draw-area[data-rarity="blackgold"]::before {
            background:
                radial-gradient(circle at 50% 50%, rgba(255, 206, 120, 0.32), rgba(255, 206, 120, 0.12) 20%, rgba(0, 0, 0, 0.08) 44%, rgba(123, 228, 255, 0.1) 62%, transparent 78%),
                radial-gradient(circle at 28% 40%, rgba(255, 228, 170, 0.24), transparent 32%),
                radial-gradient(circle at 74% 58%, rgba(255, 179, 110, 0.22), transparent 28%);
            filter: blur(24px);
        }
        .atlas-card-library__draw-area[data-rarity="blackgold"]::after {
            border-color: rgba(255, 216, 142, 0.36);
            background:
                linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 14%, rgba(255, 221, 158, 0.3) 42%, rgba(123, 228, 255, 0.16) 70%, transparent 100%);
            box-shadow:
                0 0 0 1px rgba(255, 226, 188, 0.1),
                0 0 56px rgba(255, 192, 96, 0.28),
                0 0 88px rgba(0, 0, 0, 0.24),
                inset 0 0 38px rgba(255, 211, 132, 0.14);
        }
        .atlas-card-library__draw-area[data-focus-tier="2"]::before {
            filter: blur(20px);
            background:
                radial-gradient(circle at 50% 50%, rgba(123, 228, 255, 0.3), rgba(123, 228, 255, 0.14) 28%, rgba(255, 179, 110, 0.1) 50%, transparent 72%),
                radial-gradient(circle at 28% 40%, rgba(135, 244, 255, 0.22), transparent 34%),
                radial-gradient(circle at 74% 58%, rgba(255, 179, 110, 0.2), transparent 30%);
        }
        .atlas-card-library__draw-area[data-focus-tier="3"]::before {
            filter: blur(22px);
            background:
                radial-gradient(circle at 50% 50%, rgba(123, 228, 255, 0.34), rgba(123, 228, 255, 0.16) 26%, rgba(255, 179, 110, 0.14) 50%, transparent 72%),
                radial-gradient(circle at 30% 42%, rgba(148, 246, 255, 0.28), transparent 34%),
                radial-gradient(circle at 72% 58%, rgba(255, 197, 126, 0.24), transparent 31%);
        }
        .atlas-card-library__draw-area[data-focus-tier="3"]::after {
            border-color: rgba(123, 228, 255, 0.3);
            box-shadow:
                0 0 0 1px rgba(123, 228, 255, 0.06),
                0 0 42px rgba(123, 228, 255, 0.24),
                inset 0 0 34px rgba(123, 228, 255, 0.12);
        }
        .atlas-card-library__draw-area[data-focus-tier="4"]::before {
            filter: blur(24px);
            background:
                radial-gradient(circle at 50% 50%, rgba(123, 228, 255, 0.38), rgba(123, 228, 255, 0.16) 24%, rgba(255, 207, 132, 0.18) 52%, transparent 74%),
                radial-gradient(circle at 28% 40%, rgba(158, 246, 255, 0.3), transparent 34%),
                radial-gradient(circle at 74% 58%, rgba(255, 212, 146, 0.28), transparent 30%);
        }
        .atlas-card-library__draw-area[data-focus-tier="4"]::after {
            border-color: rgba(255, 209, 128, 0.34);
            background:
                linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 16%, rgba(123, 228, 255, 0.26) 42%, rgba(255, 205, 126, 0.26) 68%, transparent 100%);
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.08),
                0 0 54px rgba(123, 228, 255, 0.28),
                0 0 82px rgba(255, 179, 110, 0.18),
                inset 0 0 38px rgba(255, 210, 132, 0.12);
        }
        .atlas-card-library__draw-area[data-rarity="common"]::before {
            background:
                radial-gradient(circle at 50% 50%, rgba(123, 228, 255, 0.26), rgba(123, 228, 255, 0.12) 28%, rgba(144, 196, 255, 0.08) 50%, transparent 72%),
                radial-gradient(circle at 30% 42%, rgba(135, 244, 255, 0.2), transparent 34%),
                radial-gradient(circle at 72% 58%, rgba(155, 188, 255, 0.16), transparent 30%);
        }
        .atlas-card-library__draw-area[data-rarity="common"]::after {
            border-color: rgba(123, 228, 255, 0.24);
            background:
                linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 20%, rgba(123, 228, 255, 0.2) 50%, rgba(155, 188, 255, 0.12) 78%, transparent 100%);
            box-shadow:
                0 0 0 1px rgba(123, 228, 255, 0.05),
                0 0 34px rgba(123, 228, 255, 0.18),
                inset 0 0 28px rgba(123, 228, 255, 0.08);
        }
        .atlas-card-library__draw-area[data-rarity="gold"]::before {
            background:
                radial-gradient(circle at 50% 50%, rgba(255, 208, 120, 0.34), rgba(255, 208, 120, 0.16) 26%, rgba(123, 228, 255, 0.14) 54%, transparent 74%),
                radial-gradient(circle at 32% 40%, rgba(255, 227, 166, 0.24), transparent 32%),
                radial-gradient(circle at 72% 60%, rgba(123, 228, 255, 0.18), transparent 30%);
        }
        .atlas-card-library__draw-area[data-rarity="gold"]::after {
            border-color: rgba(255, 210, 132, 0.3);
            background:
                linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 16%, rgba(255, 217, 146, 0.26) 44%, rgba(123, 228, 255, 0.18) 74%, transparent 100%);
            box-shadow:
                0 0 0 1px rgba(255, 218, 162, 0.08),
                0 0 42px rgba(255, 188, 92, 0.24),
                inset 0 0 32px rgba(255, 210, 132, 0.1);
        }
        .atlas-card-library__draw-area[data-rarity="blackgold"]::before {
            background:
                radial-gradient(circle at 50% 50%, rgba(255, 206, 120, 0.32), rgba(255, 206, 120, 0.12) 20%, rgba(0, 0, 0, 0.08) 44%, rgba(123, 228, 255, 0.1) 62%, transparent 78%),
                radial-gradient(circle at 28% 40%, rgba(255, 228, 170, 0.24), transparent 32%),
                radial-gradient(circle at 74% 58%, rgba(255, 179, 110, 0.22), transparent 28%);
            filter: blur(24px);
        }
        .atlas-card-library__draw-area[data-rarity="blackgold"]::after {
            border-color: rgba(255, 216, 142, 0.36);
            background:
                linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 14%, rgba(255, 221, 158, 0.3) 42%, rgba(123, 228, 255, 0.16) 70%, transparent 100%);
            box-shadow:
                0 0 0 1px rgba(255, 226, 188, 0.1),
                0 0 56px rgba(255, 192, 96, 0.28),
                0 0 88px rgba(0, 0, 0, 0.24),
                inset 0 0 38px rgba(255, 211, 132, 0.14);
        }
        .atlas-card-library__draw-actions {
            padding: 20px 0 0;
            margin-top: 4px;
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            z-index: 1;
        }
        .atlas-card-library__draw-btn {
            padding: 14px 32px;
            font-size: 15px;
            font-weight: 600;
        }

        .atlas-card {
            position: relative;
            width: 100%;
            max-width: 360px;
            height: clamp(380px, 56vh, 500px);
            min-height: clamp(380px, 56vh, 500px);
            cursor: pointer;
            transform-style: preserve-3d;
            -webkit-transform-style: preserve-3d;
            transform-origin: center 62%;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform, opacity, filter;
            z-index: 2;
        }

        .atlas-card[aria-hidden="true"] {
            pointer-events: none;
            visibility: hidden;
        }

        .atlas-card[aria-hidden="false"] .atlas-card__face--front {
            opacity: 1 !important;
            visibility: visible !important;
        }
        .atlas-card[aria-hidden="false"] .atlas-card__module-label {
            opacity: 1 !important;
            visibility: visible !important;
            color: rgba(247, 252, 255, 0.98);
        }
        .atlas-card[aria-hidden="false"] .atlas-card__flip-hint {
            opacity: 1 !important;
            visibility: visible !important;
        }

        .atlas-card.atlas-card--drawing {
            animation: atlasCardDraw 0.88s cubic-bezier(0.16, 0.9, 0.24, 1) forwards;
        }

        .atlas-card.atlas-card--drawing-lite {
            animation: atlasCardDrawLite 0.4s cubic-bezier(0.24, 0.82, 0.3, 1) forwards;
        }

        .atlas-card.is-flipped {
            transform: none !important;
        }

        .atlas-card.atlas-card--flipping .atlas-card__inner {
            animation: atlasCardFlipPulse 0.48s cubic-bezier(0.24, 0.88, 0.28, 1);
        }

        .atlas-card.atlas-card--flipping-lite .atlas-card__inner {
            animation: atlasCardFlipPulseLite 0.28s ease-out;
        }

        /* 翻转后强制正面隐藏、背面显示，避免部分环境下 backface 不生效 */
        .atlas-card.is-flipped .atlas-card__face--front {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none;
        }
        .atlas-card.is-flipped .atlas-card__face--back {
            opacity: 1 !important;
            visibility: visible !important;
        }

        @keyframes atlasCardDraw {
            0% {
                opacity: 0;
                transform: translate3d(0, 56px, -220px) scale(0.28) rotateY(-28deg) rotateX(14deg);
            }
            36% {
                opacity: 1;
                transform: translate3d(0, 10px, -56px) scale(0.84) rotateY(7deg) rotateX(-4deg);
            }
            68% {
                opacity: 1;
                transform: translate3d(0, -12px, 0) scale(1.035) rotateY(-2deg) rotateX(1.5deg);
            }
            100% {
                opacity: 1;
                transform: translate3d(0, 0, 0) scale(1) rotateY(0deg) rotateX(0deg);
            }
        }

        @keyframes atlasCardDrawLite {
            0% {
                opacity: 0;
                transform: translate3d(0, 28px, 0) scale(0.78);
            }
            70% {
                opacity: 1;
                transform: translate3d(0, -4px, 0) scale(1.018);
            }
            100% {
                opacity: 1;
                transform: translate3d(0, 0, 0) scale(1);
            }
        }

        @keyframes atlasDrawPortalBloom {
            0% {
                opacity: 0;
                transform: translate3d(-50%, -50%, 0) scale(0.42);
            }
            26% {
                opacity: 0.92;
            }
            68% {
                opacity: 0.52;
                transform: translate3d(-50%, -50%, 0) scale(1.04);
            }
            100% {
                opacity: 0;
                transform: translate3d(-50%, -50%, 0) scale(1.18);
            }
        }

        @keyframes atlasDrawPortalRing {
            0% {
                opacity: 0;
                transform: translate3d(-50%, -50%, 0) scaleX(0.56) scaleY(0.64) rotate(-10deg);
            }
            30% {
                opacity: 0.88;
            }
            62% {
                opacity: 0.42;
                transform: translate3d(-50%, -50%, 0) scaleX(1.04) scaleY(0.98) rotate(0deg);
            }
            100% {
                opacity: 0;
                transform: translate3d(-50%, -50%, 0) scaleX(1.16) scaleY(1.12) rotate(8deg);
            }
        }

        @keyframes atlasDrawPortalBloomLite {
            0% {
                opacity: 0;
                transform: translate3d(-50%, -50%, 0) scale(0.72);
            }
            46% {
                opacity: 0.52;
            }
            100% {
                opacity: 0;
                transform: translate3d(-50%, -50%, 0) scale(1.05);
            }
        }

        @keyframes atlasDrawPortalRingLite {
            0% {
                opacity: 0;
                transform: translate3d(-50%, -50%, 0) scaleX(0.78) scaleY(0.82);
            }
            54% {
                opacity: 0.38;
            }
            100% {
                opacity: 0;
                transform: translate3d(-50%, -50%, 0) scaleX(1.04) scaleY(1.02);
            }
        }

        @keyframes atlasBlackGoldEdgeFlow {
            0% {
                opacity: 0.6;
                transform: rotate(0deg) scale(1);
                filter: drop-shadow(0 0 10px rgba(255, 194, 96, 0.16)) drop-shadow(0 0 18px rgba(0, 0, 0, 0.18));
            }
            50% {
                opacity: 0.9;
                filter: drop-shadow(0 0 14px rgba(255, 207, 132, 0.22)) drop-shadow(0 0 24px rgba(0, 0, 0, 0.22));
            }
            100% {
                opacity: 0.6;
                transform: rotate(360deg) scale(1);
                filter: drop-shadow(0 0 10px rgba(255, 194, 96, 0.16)) drop-shadow(0 0 18px rgba(0, 0, 0, 0.18));
            }
        }

        @keyframes atlasCardFlipPulse {
            0% {
                transform: scale(1);
                filter: saturate(1);
            }
            38% {
                transform: scale(1.018);
                filter: saturate(1.08);
            }
            100% {
                transform: scale(1);
                filter: saturate(1);
            }
        }

        @keyframes atlasCardFlipPulseLite {
            0% {
                transform: scale(1);
            }
            45% {
                transform: scale(1.01);
            }
            100% {
                transform: scale(1);
            }
        }

        .atlas-card__inner {
            position: relative;
            width: 100%;
            height: 100%;
            min-height: inherit;
            transform-style: preserve-3d;
            -webkit-transform-style: preserve-3d;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background:
                linear-gradient(145deg, rgba(12, 22, 38, 0.95) 0%, rgba(5, 12, 24, 0.98) 100%);
            box-shadow:
                0 24px 56px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(123, 228, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(16px);
            transform-style: preserve-3d;
            overflow: hidden;
            will-change: transform, box-shadow, filter;
        }

        .atlas-card__inner::before,
        .atlas-card__inner::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 0;
        }

        .atlas-card__inner::before {
            background:
                radial-gradient(circle at 18% 18%, rgba(123, 228, 255, 0.16), transparent 38%),
                radial-gradient(circle at 84% 78%, rgba(255, 179, 110, 0.12), transparent 36%);
            opacity: 0.88;
        }

        .atlas-card__inner::after {
            inset: 14px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.04);
            opacity: 0.72;
        }

        .atlas-card__fx {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
            mix-blend-mode: screen;
        }

        .atlas-card__fx-core,
        .atlas-card__fx-sweep,
        .atlas-card__fx-ring,
        .atlas-card__fx-spark {
            position: absolute;
            opacity: 0;
            will-change: transform, opacity, filter;
        }

        .atlas-card__fx-core {
            inset: -18%;
            background:
                radial-gradient(circle at 50% 50%, rgba(123, 228, 255, 0.2), rgba(123, 228, 255, 0.08) 30%, transparent 62%),
                radial-gradient(circle at 48% 56%, rgba(255, 179, 110, 0.1), transparent 56%);
            filter: blur(18px);
        }

        .atlas-card__fx-sweep {
            top: -24%;
            bottom: -24%;
            left: -42%;
            width: 38%;
            background:
                linear-gradient(
                    90deg,
                    transparent 0%,
                    rgba(255, 255, 255, 0.04) 16%,
                    rgba(123, 228, 255, 0.24) 46%,
                    rgba(255, 255, 255, 0.08) 58%,
                    transparent 100%
                );
            transform: skewX(-18deg);
            filter: blur(6px);
        }

        .atlas-card__fx-ring {
            inset: 10px;
            border-radius: 22px;
            border: 1px solid rgba(123, 228, 255, 0.34);
            box-shadow:
                0 0 0 1px rgba(123, 228, 255, 0.04),
                0 0 28px rgba(123, 228, 255, 0.14);
        }

        .atlas-card__fx-ring--secondary {
            inset: 24px;
            border-color: rgba(255, 179, 110, 0.24);
            box-shadow: 0 0 18px rgba(255, 179, 110, 0.08);
        }

        .atlas-card__fx-spark {
            width: 9px;
            height: 9px;
            border-radius: 999px;
            background:
                radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.94), rgba(123, 228, 255, 0.72) 48%, transparent 72%);
            filter: blur(0.4px);
        }

        .atlas-card__fx-spark--a {
            left: 18%;
            top: 22%;
        }

        .atlas-card__fx-spark--b {
            right: 20%;
            bottom: 24%;
        }

        .atlas-card[data-focus-tier="2"] .atlas-card__inner {
            border-color: rgba(153, 232, 255, 0.18);
            box-shadow:
                0 24px 56px rgba(0, 0, 0, 0.42),
                0 0 0 1px rgba(123, 228, 255, 0.12),
                0 0 28px rgba(123, 228, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.07);
        }

        .atlas-card[data-focus-tier="2"] .atlas-card__face--front {
            background:
                radial-gradient(circle at 30% 20%, rgba(123, 228, 255, 0.16), transparent 48%),
                radial-gradient(circle at 70% 80%, rgba(255, 179, 110, 0.1), transparent 50%),
                linear-gradient(180deg, rgba(8, 16, 30, 0.97) 0%, rgba(4, 10, 20, 0.98) 100%);
        }

        .atlas-card[data-focus-tier="3"] .atlas-card__inner {
            border-color: rgba(178, 238, 255, 0.24);
            box-shadow:
                0 26px 62px rgba(0, 0, 0, 0.44),
                0 0 0 1px rgba(123, 228, 255, 0.16),
                0 0 36px rgba(123, 228, 255, 0.12),
                0 0 76px rgba(255, 179, 110, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .atlas-card[data-focus-tier="3"] .atlas-card__face--front {
            background:
                radial-gradient(circle at 28% 18%, rgba(123, 228, 255, 0.22), transparent 48%),
                radial-gradient(circle at 74% 82%, rgba(255, 191, 122, 0.14), transparent 46%),
                linear-gradient(180deg, rgba(9, 17, 31, 0.98) 0%, rgba(5, 11, 22, 0.99) 100%);
        }

        .atlas-card[data-focus-tier="3"] .atlas-card__face--back {
            background:
                radial-gradient(circle at 70% 30%, rgba(123, 228, 255, 0.12), transparent 46%),
                radial-gradient(circle at 20% 70%, rgba(255, 179, 110, 0.08), transparent 34%),
                linear-gradient(180deg, rgba(7, 14, 28, 0.99) 0%, rgba(4, 10, 22, 1) 100%);
        }

        .atlas-card[data-focus-tier="3"] .atlas-card__fx-ring {
            border-color: rgba(150, 233, 255, 0.44);
            box-shadow:
                0 0 0 1px rgba(123, 228, 255, 0.06),
                0 0 36px rgba(123, 228, 255, 0.2);
        }

        .atlas-card[data-focus-tier="4"] .atlas-card__inner {
            border-color: rgba(255, 211, 130, 0.32);
            box-shadow:
                0 28px 68px rgba(0, 0, 0, 0.46),
                0 0 0 1px rgba(255, 225, 166, 0.12),
                0 0 42px rgba(123, 228, 255, 0.16),
                0 0 96px rgba(255, 179, 110, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .atlas-card[data-focus-tier="4"] .atlas-card__face--front {
            background:
                radial-gradient(circle at 26% 18%, rgba(123, 228, 255, 0.26), transparent 50%),
                radial-gradient(circle at 78% 80%, rgba(255, 206, 132, 0.18), transparent 46%),
                linear-gradient(180deg, rgba(10, 18, 33, 0.99) 0%, rgba(5, 11, 23, 1) 100%);
        }

        .atlas-card[data-focus-tier="4"] .atlas-card__face--back {
            background:
                radial-gradient(circle at 72% 28%, rgba(123, 228, 255, 0.14), transparent 46%),
                radial-gradient(circle at 18% 72%, rgba(255, 203, 132, 0.12), transparent 34%),
                linear-gradient(180deg, rgba(8, 15, 29, 1) 0%, rgba(4, 10, 22, 1) 100%);
        }

        .atlas-card[data-focus-tier="4"] .atlas-card__fx-ring {
            border-color: rgba(255, 211, 130, 0.48);
            box-shadow:
                0 0 0 1px rgba(255, 220, 170, 0.08),
                0 0 42px rgba(123, 228, 255, 0.22),
                0 0 58px rgba(255, 179, 110, 0.16);
        }

        .atlas-card[data-focus-tier="4"] .atlas-card__fx-spark {
            width: 11px;
            height: 11px;
            box-shadow:
                0 0 14px rgba(123, 228, 255, 0.22),
                0 0 20px rgba(255, 179, 110, 0.1);
        }

        .atlas-card[data-focus-tier="3"] .atlas-card__module-label,
        .atlas-card[data-focus-tier="4"] .atlas-card__module-label {
            text-shadow:
                0 0 34px rgba(123, 228, 255, 0.18),
                0 0 16px rgba(255, 179, 110, 0.08);
        }
        .atlas-card[data-rarity="common"] .atlas-card__inner {
            border-color: rgba(150, 232, 255, 0.18);
            box-shadow:
                0 24px 56px rgba(0, 0, 0, 0.42),
                0 0 0 1px rgba(123, 228, 255, 0.12),
                0 0 28px rgba(123, 228, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.07);
        }
        .atlas-card[data-rarity="common"] .atlas-card__face--front {
            background:
                radial-gradient(circle at 30% 20%, rgba(123, 228, 255, 0.16), transparent 48%),
                radial-gradient(circle at 70% 80%, rgba(144, 198, 255, 0.1), transparent 50%),
                linear-gradient(180deg, rgba(8, 16, 30, 0.97) 0%, rgba(4, 10, 20, 0.98) 100%);
        }
        .atlas-card[data-rarity="gold"] .atlas-card__inner {
            border-color: rgba(255, 212, 134, 0.3);
            box-shadow:
                0 26px 62px rgba(0, 0, 0, 0.44),
                0 0 0 1px rgba(255, 218, 160, 0.14),
                0 0 34px rgba(255, 190, 92, 0.16),
                0 0 76px rgba(123, 228, 255, 0.06),
                inset 0 1px 0 rgba(255, 245, 220, 0.08);
        }
        .atlas-card[data-rarity="gold"] .atlas-card__face--front {
            background:
                radial-gradient(circle at 26% 18%, rgba(255, 214, 138, 0.22), transparent 50%),
                radial-gradient(circle at 78% 82%, rgba(123, 228, 255, 0.12), transparent 46%),
                linear-gradient(180deg, rgba(22, 19, 15, 0.98) 0%, rgba(11, 10, 15, 0.99) 100%);
        }
        .atlas-card[data-rarity="gold"] .atlas-card__face--back {
            background:
                radial-gradient(circle at 74% 26%, rgba(255, 212, 134, 0.12), transparent 44%),
                radial-gradient(circle at 16% 74%, rgba(123, 228, 255, 0.08), transparent 32%),
                linear-gradient(180deg, rgba(18, 15, 14, 0.99) 0%, rgba(8, 9, 18, 1) 100%);
        }
        .atlas-card[data-rarity="gold"] .atlas-card__fx-ring {
            border-color: rgba(255, 212, 134, 0.44);
            box-shadow:
                0 0 0 1px rgba(255, 214, 156, 0.08),
                0 0 40px rgba(255, 193, 96, 0.18);
        }
        .atlas-card[data-rarity="gold"] .atlas-card__module-label {
            text-shadow:
                0 0 30px rgba(255, 193, 96, 0.14),
                0 0 14px rgba(123, 228, 255, 0.06);
        }
        .atlas-card[data-rarity="blackgold"] .atlas-card__inner {
            border-color: rgba(255, 216, 144, 0.38);
            background:
                linear-gradient(145deg, rgba(8, 10, 14, 0.98) 0%, rgba(2, 4, 8, 1) 100%);
            box-shadow:
                0 28px 70px rgba(0, 0, 0, 0.52),
                0 0 0 1px rgba(255, 221, 168, 0.12),
                0 0 42px rgba(255, 196, 104, 0.2),
                0 0 92px rgba(0, 0, 0, 0.32),
                inset 0 1px 0 rgba(255, 245, 224, 0.08);
        }
        .atlas-card[data-rarity="blackgold"] .atlas-card__inner::before {
            background:
                repeating-linear-gradient(
                    122deg,
                    rgba(255, 213, 130, 0.065) 0 2px,
                    rgba(255, 213, 130, 0) 2px 15px
                ),
                repeating-linear-gradient(
                    -58deg,
                    rgba(118, 88, 36, 0.12) 0 3px,
                    rgba(118, 88, 36, 0) 3px 18px
                ),
                radial-gradient(circle at 20% 16%, rgba(255, 213, 130, 0.18), transparent 36%),
                radial-gradient(circle at 82% 78%, rgba(123, 228, 255, 0.08), transparent 34%),
                linear-gradient(135deg, rgba(255, 221, 168, 0.08), rgba(49, 36, 18, 0.04) 34%, transparent 54%, rgba(255, 214, 132, 0.07) 78%, transparent 100%);
            opacity: 0.96;
        }
        .atlas-card[data-rarity="blackgold"] .atlas-card__inner::after {
            inset: 0;
            padding: 1.5px;
            border: none;
            border-radius: inherit;
            opacity: 0.86;
            z-index: 1;
            background:
                conic-gradient(
                    from 0deg,
                    rgba(255, 231, 190, 0.02) 0deg,
                    rgba(255, 216, 142, 0.72) 24deg,
                    rgba(255, 214, 138, 0.08) 72deg,
                    rgba(123, 228, 255, 0.18) 116deg,
                    rgba(255, 214, 138, 0.06) 176deg,
                    rgba(255, 223, 168, 0.7) 216deg,
                    rgba(255, 214, 138, 0.04) 276deg,
                    rgba(123, 228, 255, 0.16) 318deg,
                    rgba(255, 231, 190, 0.02) 360deg
                );
            -webkit-mask:
                linear-gradient(#000 0 0) content-box,
                linear-gradient(#000 0 0);
            mask:
                linear-gradient(#000 0 0) content-box,
                linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            transform-origin: center;
            animation: atlasBlackGoldEdgeFlow 10.5s linear infinite;
        }
        .atlas-card[data-rarity="blackgold"] .atlas-card__face--front {
            background:
                radial-gradient(circle at 24% 18%, rgba(255, 214, 136, 0.18), transparent 46%),
                radial-gradient(circle at 76% 78%, rgba(123, 228, 255, 0.1), transparent 42%),
                linear-gradient(180deg, rgba(8, 9, 12, 1) 0%, rgba(2, 4, 8, 1) 100%);
        }
        .atlas-card[data-rarity="blackgold"] .atlas-card__face--back {
            background:
                radial-gradient(circle at 74% 28%, rgba(255, 212, 134, 0.14), transparent 44%),
                radial-gradient(circle at 18% 72%, rgba(255, 179, 110, 0.08), transparent 32%),
                linear-gradient(180deg, rgba(8, 9, 12, 1) 0%, rgba(3, 4, 8, 1) 100%);
        }
        .atlas-card[data-rarity="blackgold"] .atlas-card__fx-ring {
            border-color: rgba(255, 217, 146, 0.56);
            box-shadow:
                0 0 0 1px rgba(255, 224, 172, 0.08),
                0 0 46px rgba(255, 195, 102, 0.24),
                0 0 68px rgba(0, 0, 0, 0.18);
        }
        .atlas-card[data-rarity="blackgold"] .atlas-card__fx-ring--secondary {
            border-color: rgba(255, 234, 188, 0.28);
            box-shadow: 0 0 24px rgba(255, 209, 124, 0.14);
        }
        .atlas-card[data-rarity="blackgold"] .atlas-card__module-label {
            text-shadow:
                0 0 34px rgba(255, 201, 112, 0.18),
                0 0 14px rgba(123, 228, 255, 0.06);
        }
        .atlas-card[data-rarity="blackgold"].atlas-card--drawing .atlas-card__inner::after {
            animation-duration: 3.8s;
            opacity: 0.96;
        }
        .atlas-card[data-rarity="blackgold"].atlas-card--flipping .atlas-card__inner::after {
            animation-duration: 5.6s;
            opacity: 0.92;
        }

        @media (prefers-reduced-motion: reduce) {
            .atlas-card[data-rarity="blackgold"] .atlas-card__inner::after {
                animation: none;
                opacity: 0.82;
            }
        }

        .atlas-card.atlas-card--flipping .atlas-card__fx-core {
            animation: atlasCardFlipCore 0.46s ease-out;
        }

        .atlas-card.atlas-card--flipping .atlas-card__fx-sweep {
            animation: atlasCardFlipSweep 0.48s cubic-bezier(0.22, 0.74, 0.24, 1);
        }

        .atlas-card.atlas-card--flipping .atlas-card__fx-ring {
            animation: atlasCardFlipRing 0.46s ease-out;
        }

        .atlas-card.atlas-card--flipping .atlas-card__fx-spark--a {
            animation: atlasCardFlipSparkA 0.44s ease-out;
        }

        .atlas-card.atlas-card--flipping .atlas-card__fx-spark--b {
            animation: atlasCardFlipSparkB 0.44s ease-out;
        }

        .atlas-card.atlas-card--flipping-lite .atlas-card__fx-core {
            animation: atlasCardFlipCoreLite 0.24s ease-out;
        }

        .atlas-card.atlas-card--flipping-lite .atlas-card__fx-ring {
            animation: atlasCardFlipRingLite 0.26s ease-out;
        }

        .atlas-card.atlas-card--drawing .atlas-card__inner {
            animation: atlasCardDrawInner 0.88s cubic-bezier(0.16, 0.9, 0.24, 1);
        }

        .atlas-card.atlas-card--drawing .atlas-card__fx-core {
            animation: atlasCardDrawCore 0.86s cubic-bezier(0.14, 0.84, 0.2, 1);
        }

        .atlas-card.atlas-card--drawing .atlas-card__fx-sweep {
            animation: atlasCardDrawSweep 0.84s cubic-bezier(0.16, 0.9, 0.22, 1);
        }

        .atlas-card.atlas-card--drawing .atlas-card__fx-ring {
            animation: atlasCardDrawRing 0.84s cubic-bezier(0.16, 0.9, 0.24, 1);
        }

        .atlas-card.atlas-card--drawing .atlas-card__fx-spark--a {
            animation: atlasCardDrawSparkA 0.74s cubic-bezier(0.18, 0.86, 0.24, 1);
        }

        .atlas-card.atlas-card--drawing .atlas-card__fx-spark--b {
            animation: atlasCardDrawSparkB 0.74s cubic-bezier(0.18, 0.86, 0.24, 1);
        }

        .atlas-card.atlas-card--drawing .atlas-card__front-meta {
            animation: atlasCardContentRise 0.38s ease-out 0.18s both;
        }

        .atlas-card.atlas-card--drawing .atlas-card__front-body {
            animation: atlasCardContentRise 0.42s ease-out 0.24s both;
        }

        .atlas-card.atlas-card--drawing .atlas-card__stats {
            animation: atlasCardContentRise 0.4s ease-out 0.3s both;
        }

        .atlas-card.atlas-card--drawing .atlas-card__flip-hint {
            animation: atlasCardContentRise 0.34s ease-out 0.36s both;
        }

        .atlas-card.atlas-card--drawing-lite .atlas-card__inner {
            animation: atlasCardDrawInnerLite 0.4s ease-out;
        }

        .atlas-card.atlas-card--drawing-lite .atlas-card__fx-core {
            animation: atlasCardDrawCoreLite 0.3s ease-out;
        }

        .atlas-card.atlas-card--drawing-lite .atlas-card__fx-ring {
            animation: atlasCardDrawRingLite 0.32s ease-out;
        }

        @keyframes atlasCardFlipCore {
            0% {
                opacity: 0;
                transform: scale(0.82);
            }
            40% {
                opacity: 0.88;
            }
            100% {
                opacity: 0;
                transform: scale(1.16);
            }
        }

        @keyframes atlasCardFlipCoreLite {
            0% {
                opacity: 0;
                transform: scale(0.96);
            }
            45% {
                opacity: 0.42;
            }
            100% {
                opacity: 0;
                transform: scale(1.04);
            }
        }

        @keyframes atlasCardFlipSweep {
            0% {
                opacity: 0;
                transform: translateX(0) skewX(-18deg);
            }
            22% {
                opacity: 0.72;
            }
            100% {
                opacity: 0;
                transform: translateX(360%) skewX(-18deg);
            }
        }

        @keyframes atlasCardDrawInner {
            0% {
                transform: scale(0.92);
                filter: brightness(1.28) saturate(1.22);
            }
            58% {
                transform: scale(1.018);
                filter: brightness(1.08) saturate(1.1);
            }
            100% {
                transform: scale(1);
                filter: brightness(1) saturate(1);
            }
        }

        @keyframes atlasCardDrawInnerLite {
            0% {
                transform: scale(0.97);
                filter: brightness(1.14);
            }
            100% {
                transform: scale(1);
                filter: brightness(1);
            }
        }

        @keyframes atlasCardDrawCore {
            0% {
                opacity: 0;
                transform: scale(0.46);
            }
            26% {
                opacity: 0.96;
            }
            100% {
                opacity: 0;
                transform: scale(1.18);
            }
        }

        @keyframes atlasCardDrawCoreLite {
            0% {
                opacity: 0;
                transform: scale(0.84);
            }
            48% {
                opacity: 0.42;
            }
            100% {
                opacity: 0;
                transform: scale(1.04);
            }
        }

        @keyframes atlasCardDrawSweep {
            0% {
                opacity: 0;
                transform: translateX(-18%) skewX(-18deg);
            }
            24% {
                opacity: 0.88;
            }
            100% {
                opacity: 0;
                transform: translateX(352%) skewX(-18deg);
            }
        }

        @keyframes atlasCardDrawRing {
            0% {
                opacity: 0;
                transform: scale(0.72);
            }
            24% {
                opacity: 0.92;
            }
            100% {
                opacity: 0;
                transform: scale(1.08);
            }
        }

        @keyframes atlasCardDrawRingLite {
            0% {
                opacity: 0;
                transform: scale(0.92);
            }
            54% {
                opacity: 0.34;
            }
            100% {
                opacity: 0;
                transform: scale(1.02);
            }
        }

        @keyframes atlasCardDrawSparkA {
            0% {
                opacity: 0;
                transform: translate3d(-10px, 12px, 0) scale(0.4);
            }
            30% {
                opacity: 0.98;
            }
            100% {
                opacity: 0;
                transform: translate3d(26px, -20px, 0) scale(1.28);
            }
        }

        @keyframes atlasCardDrawSparkB {
            0% {
                opacity: 0;
                transform: translate3d(12px, -10px, 0) scale(0.4);
            }
            28% {
                opacity: 0.94;
            }
            100% {
                opacity: 0;
                transform: translate3d(-24px, 22px, 0) scale(1.24);
            }
        }

        @keyframes atlasCardContentRise {
            0% {
                opacity: 0;
                transform: translate3d(0, 14px, 0);
            }
            100% {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes atlasCardFlipRing {
            0% {
                opacity: 0;
                transform: scale(0.96);
            }
            36% {
                opacity: 0.72;
            }
            100% {
                opacity: 0;
                transform: scale(1.04);
            }
        }

        @keyframes atlasCardFlipRingLite {
            0% {
                opacity: 0;
                transform: scale(0.985);
            }
            50% {
                opacity: 0.32;
            }
            100% {
                opacity: 0;
                transform: scale(1.015);
            }
        }

        @keyframes atlasCardFlipSparkA {
            0% {
                opacity: 0;
                transform: translate3d(0, 0, 0) scale(0.6);
            }
            28% {
                opacity: 0.95;
            }
            100% {
                opacity: 0;
                transform: translate3d(16px, -18px, 0) scale(1.25);
            }
        }

        @keyframes atlasCardFlipSparkB {
            0% {
                opacity: 0;
                transform: translate3d(0, 0, 0) scale(0.6);
            }
            24% {
                opacity: 0.9;
            }
            100% {
                opacity: 0;
                transform: translate3d(-18px, 16px, 0) scale(1.18);
            }
        }

        .atlas-card__face {
            position: absolute;
            inset: 0;
            border-radius: 24px;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: space-between;
            padding: 22px 20px 20px;
            overflow: hidden;
            transform-style: preserve-3d;
        }

        .atlas-card__face > * {
            position: relative;
            z-index: 2;
        }

        .atlas-card__face--front {
            background:
                radial-gradient(circle at 30% 20%, rgba(123, 228, 255, 0.12), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 179, 110, 0.08), transparent 50%),
                linear-gradient(180deg, rgba(8, 16, 30, 0.97) 0%, rgba(4, 10, 20, 0.98) 100%);
        }

        .atlas-card:not(.is-flipped) .atlas-card__face--back {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .atlas-card__face--back {
            transform: none;
            -webkit-transform: none;
            background:
                radial-gradient(circle at 70% 30%, rgba(123, 228, 255, 0.08), transparent 45%),
                linear-gradient(180deg, rgba(6, 14, 26, 0.98) 0%, rgba(4, 10, 22, 0.99) 100%);
            align-items: stretch;
            justify-content: flex-start;
            gap: 12px;
        }

        .atlas-card__front-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .atlas-card__badge {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 10px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(241, 247, 255, 0.95);
            background: rgba(115, 216, 255, 0.14);
            border: 1px solid rgba(115, 216, 255, 0.2);
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .atlas-card__badge--secondary {
            color: rgba(216, 228, 248, 0.9);
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.08);
        }
        .atlas-card__badge--focus {
            color: rgba(255, 243, 226, 0.96);
            background: rgba(255, 179, 110, 0.14);
            border-color: rgba(255, 179, 110, 0.24);
        }
        .atlas-card__badge--focus[data-rarity="common"] {
            color: rgba(238, 246, 255, 0.95);
            background: linear-gradient(90deg, rgba(115, 216, 255, 0.14), rgba(144, 196, 255, 0.12));
            border-color: rgba(115, 216, 255, 0.22);
            box-shadow: 0 0 16px rgba(123, 228, 255, 0.08);
        }
        .atlas-card__badge--focus[data-rarity="gold"] {
            color: rgba(255, 247, 231, 0.98);
            background: linear-gradient(90deg, rgba(255, 205, 116, 0.2), rgba(255, 226, 168, 0.18));
            border-color: rgba(255, 210, 130, 0.32);
            box-shadow:
                0 0 18px rgba(255, 193, 94, 0.14),
                0 0 24px rgba(255, 227, 170, 0.08);
        }
        .atlas-card__badge--focus[data-rarity="blackgold"] {
            color: rgba(255, 245, 222, 0.98);
            background: linear-gradient(90deg, rgba(18, 22, 28, 0.92), rgba(52, 44, 24, 0.94) 52%, rgba(255, 212, 132, 0.22));
            border-color: rgba(255, 215, 136, 0.36);
            box-shadow:
                0 0 18px rgba(0, 0, 0, 0.22),
                0 0 26px rgba(255, 190, 96, 0.12);
        }
        .atlas-card__badge--focus[data-focus-tier="1"] {
            color: rgba(238, 246, 255, 0.95);
            background: rgba(115, 216, 255, 0.12);
            border-color: rgba(115, 216, 255, 0.2);
        }
        .atlas-card__badge--focus[data-focus-tier="2"] {
            background: rgba(141, 228, 255, 0.16);
            border-color: rgba(141, 228, 255, 0.24);
        }
        .atlas-card__badge--focus[data-focus-tier="3"] {
            background: linear-gradient(90deg, rgba(123, 228, 255, 0.16), rgba(255, 190, 116, 0.18));
            border-color: rgba(164, 228, 255, 0.3);
            box-shadow: 0 0 18px rgba(123, 228, 255, 0.12);
        }
        .atlas-card__badge--focus[data-focus-tier="4"] {
            background: linear-gradient(90deg, rgba(123, 228, 255, 0.2), rgba(255, 207, 132, 0.24));
            border-color: rgba(255, 210, 130, 0.34);
            box-shadow:
                0 0 20px rgba(123, 228, 255, 0.14),
                0 0 30px rgba(255, 179, 110, 0.12);
        }
        .atlas-card__badge--focus[data-rarity="common"] {
            color: rgba(238, 246, 255, 0.95);
            background: linear-gradient(90deg, rgba(115, 216, 255, 0.14), rgba(144, 196, 255, 0.12));
            border-color: rgba(115, 216, 255, 0.22);
            box-shadow: 0 0 16px rgba(123, 228, 255, 0.08);
        }
        .atlas-card__badge--focus[data-rarity="gold"] {
            color: rgba(255, 247, 231, 0.98);
            background: linear-gradient(90deg, rgba(255, 205, 116, 0.2), rgba(255, 226, 168, 0.18));
            border-color: rgba(255, 210, 130, 0.32);
            box-shadow:
                0 0 18px rgba(255, 193, 94, 0.14),
                0 0 24px rgba(255, 227, 170, 0.08);
        }
        .atlas-card__badge--focus[data-rarity="blackgold"] {
            color: rgba(255, 245, 222, 0.98);
            background: linear-gradient(90deg, rgba(18, 22, 28, 0.92), rgba(52, 44, 24, 0.94) 52%, rgba(255, 212, 132, 0.22));
            border-color: rgba(255, 215, 136, 0.36);
            box-shadow:
                0 0 18px rgba(0, 0, 0, 0.22),
                0 0 26px rgba(255, 190, 96, 0.12);
        }
        .atlas-card__front-body {
            display: grid;
            gap: 12px;
            margin-top: 14px;
            flex: 1 1 auto;
            min-height: 0;
        }
        .atlas-card__module-label {
            font-size: clamp(23px, 3vw, 30px);
            font-weight: 600;
            font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
            color: rgba(247, 252, 255, 0.96);
            text-align: left;
            line-height: 1.22;
            text-shadow: 0 0 30px rgba(123, 228, 255, 0.15);
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .atlas-card__module-desc {
            margin: 0;
            font-size: 13px;
            line-height: 1.72;
            color: rgba(214, 228, 248, 0.8);
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 4;
            line-clamp: 4;
        }
        .atlas-card__stats {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin-top: 14px;
        }
        .atlas-card__stat {
            min-width: 0;
            padding: 10px 10px 9px;
            border-radius: 14px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024));
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
        .atlas-card__stat-label {
            display: block;
            font-size: 10px;
            letter-spacing: 0.5px;
            color: rgba(184, 208, 245, 0.72);
            margin-bottom: 6px;
        }
        .atlas-card__stat-value {
            display: block;
            font-size: 16px;
            font-weight: 700;
            line-height: 1.2;
            color: rgba(248, 251, 255, 0.97);
        }

        .atlas-card__flip-hint {
            margin-top: 14px;
            font-size: 11px;
            letter-spacing: 1.4px;
            color: rgba(180, 210, 255, 0.6);
            align-self: flex-start;
        }
        .atlas-card__back-head {
            display: grid;
            gap: 6px;
            padding-bottom: 2px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }
        .atlas-card__back-kicker {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.6px;
            text-transform: uppercase;
            color: rgba(123, 228, 255, 0.9);
        }
        .atlas-card__back-title {
            font-size: 18px;
            font-weight: 700;
            line-height: 1.32;
            color: rgba(246, 250, 255, 0.98);
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .atlas-card__back-topic {
            font-size: 11px;
            line-height: 1.5;
            color: rgba(188, 214, 249, 0.7);
            overflow-wrap: anywhere;
        }
        .atlas-card__back-scroll {
            overflow-y: auto;
            display: grid;
            gap: 10px;
            min-height: 0;
            padding-right: 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .atlas-card__back-scroll::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }
        .atlas-card__detail-section {
            padding: 10px 12px;
            border-radius: 16px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .atlas-card__detail-title {
            margin: 0 0 8px;
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(123, 228, 255, 0.92);
        }
        .atlas-card__detail-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: 8px;
        }
        .atlas-card__detail-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        .atlas-card__detail-symbol {
            flex-shrink: 0;
            min-width: 34px;
            padding-top: 1px;
            font-family: "Cambria Math", "STIX Two Text", "Times New Roman", serif;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.2;
            color: rgba(247, 251, 255, 0.96);
        }
        .atlas-card__detail-content {
            min-width: 0;
            display: grid;
            gap: 2px;
        }
        .atlas-card__detail-name {
            font-size: 12px;
            line-height: 1.4;
            font-weight: 600;
            color: rgba(244, 248, 255, 0.95);
        }
        .atlas-card__detail-text {
            font-size: 11px;
            line-height: 1.56;
            color: rgba(210, 225, 246, 0.8);
            overflow-wrap: anywhere;
        }
        .atlas-card__detail-formula {
            font-family: "Cambria Math", "STIX Two Text", "Times New Roman", serif;
            font-size: 13px;
            line-height: 1.35;
            letter-spacing: 0.1px;
            color: rgba(248, 251, 255, 0.98);
            overflow-wrap: anywhere;
        }
        .atlas-card__detail-empty {
            font-size: 11px;
            line-height: 1.55;
            color: rgba(182, 205, 240, 0.68);
        }
        .atlas-card__back-hint {
            font-size: 10px;
            letter-spacing: 1px;
            color: rgba(178, 206, 244, 0.58);
            text-align: right;
        }

        .atlas-card[data-atlas-mode="quantity_formula"] .atlas-card__module-label,
        .atlas-card[data-atlas-mode="law_name"] .atlas-card__module-label {
            font-size: clamp(20px, 2.7vw, 26px);
            line-height: 1.24;
        }
        .atlas-card[data-atlas-mode="letter_symbol"] .atlas-card__module-label {
            font-size: clamp(38px, 7vw, 68px);
            line-height: 1;
            letter-spacing: 0.02em;
        }
        .atlas-card[data-atlas-mode="law_name"] .atlas-card__back-title {
            font-size: 17px;
        }

        .atlas-stage__legend {
            left: 30px;
            right: 360px;
            bottom: 24px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .atlas-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 7px 11px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: rgba(236, 244, 255, 0.84);
            font-size: 11px;
            letter-spacing: 0.8px;
        }

        .atlas-chip::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--chip-color, #7be4ff);
            box-shadow: 0 0 12px color-mix(in srgb, var(--chip-color, #7be4ff) 72%, transparent);
        }

        .atlas-stage__detail {
            right: 30px;
            bottom: 24px;
            width: min(320px, calc(100% - 60px));
            min-height: 144px;
            padding: 16px 18px 18px;
            border-radius: 20px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
                rgba(5, 9, 16, 0.74);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
            backdrop-filter: blur(14px);
        }

        .atlas-stage__detail-label {
            font-size: 11px;
            letter-spacing: 1.8px;
            color: rgba(255, 255, 255, 0.46);
            text-transform: uppercase;
        }

        .atlas-stage__detail-title {
            margin: 10px 0 8px;
            font-size: 22px;
            line-height: 1.25;
            color: rgba(247, 250, 255, 0.96);
        }

        .atlas-stage__detail-text {
            margin: 0;
            font-size: 13px;
            line-height: 1.8;
            color: rgba(215, 228, 246, 0.72);
        }

        .atlas-stage__detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .atlas-stage__detail-pill {
            display: inline-flex;
            align-items: center;
            padding: 4px 8px;
            border-radius: 999px;
            font-size: 10px;
            letter-spacing: 0.8px;
            color: rgba(244, 248, 255, 0.82);
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .atlas-map {
            position: absolute;
            inset: 118px 18px 18px;
            border-radius: 26px;
            overflow: hidden;
            background:
                radial-gradient(circle at 50% 50%, rgba(10, 17, 30, 0.44), rgba(2, 5, 10, 0.86)),
                linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.05),
                0 20px 60px rgba(0, 0, 0, 0.26);
        }

        .atlas-map::before,
        .atlas-map::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .atlas-map::before {
            background:
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
            background-size: 56px 56px;
            opacity: 0.24;
        }

        .atlas-map::after {
            background:
                radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 60%),
                radial-gradient(circle at 18% 24%, rgba(77, 255, 177, 0.08), transparent 22%),
                radial-gradient(circle at 84% 18%, rgba(255, 215, 102, 0.08), transparent 24%),
                radial-gradient(circle at 50% 82%, rgba(64, 184, 255, 0.08), transparent 28%);
            opacity: 0.84;
        }

        .atlas-map__links,
        .atlas-map__zones,
        .atlas-map__headers,
        .atlas-map__nodes {
            position: absolute;
            inset: 0;
        }

        .atlas-map__links {
            width: 100%;
            height: 100%;
            z-index: 1;
            overflow: visible;
        }

        .atlas-map__zones {
            z-index: 0;
        }

        .atlas-map__headers {
            z-index: 4;
            pointer-events: none;
            overflow: visible;
        }

        .atlas-map__nodes {
            z-index: 2;
        }

        .atlas-zone {
            position: absolute;
            transform: none;
            transform-origin: center center;
            border-radius: 28px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
                linear-gradient(135deg, color-mix(in srgb, var(--zone-color) 12%, rgba(255, 255, 255, 0.02)), rgba(255, 255, 255, 0) 58%),
                rgba(6, 10, 18, 0.52);
            box-shadow:
                0 0 40px color-mix(in srgb, var(--zone-color) 12%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
            overflow: hidden;
            opacity: 0;
        }

        .atlas-zone::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background:
                linear-gradient(90deg, color-mix(in srgb, var(--zone-color) 22%, transparent), transparent 36%),
                radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--zone-color) 20%, rgba(255, 255, 255, 0.02)), transparent 42%);
            opacity: 0.86;
        }

        .atlas-zone::after {
            display: none;
        }

        .atlas-zone__header {
            position: absolute;
            display: inline-flex;
            align-items: center;
            transform: translateY(calc(-100% - 10px));
            min-height: 0;
            max-width: 220px;
            padding: 4px 12px 4px 10px;
            pointer-events: none;
            background: linear-gradient(90deg, rgba(5, 10, 18, 0.72), rgba(5, 10, 18, 0.16) 78%, transparent);
            border-radius: 999px;
        }

        .atlas-zone__label {
            position: relative;
            z-index: 1;
            display: block;
            white-space: nowrap;
            color: rgba(245, 249, 255, 0.86);
            font-size: 14px;
            line-height: 1.1;
            letter-spacing: 0.5px;
            text-shadow: 0 0 18px color-mix(in srgb, var(--zone-color) 16%, transparent);
        }

        .atlas-link {
            fill: none;
            stroke: rgba(255, 255, 255, 0.18);
            stroke-width: 1.0;
            stroke-linecap: round;
            stroke-linejoin: round;
            opacity: 0.12;
            transition: none;
        }

        .atlas-link--chronology {
            stroke-dasharray: 5 8;
        }

        .atlas-link--cluster {
            opacity: 0.1;
        }

        .atlas-link.is-related {
            opacity: 0.42;
            stroke-width: 1.6;
            filter: drop-shadow(0 0 10px currentColor);
        }

        .atlas-link.is-dimmed {
            opacity: 0.03;
        }

        .atlas-node {
            position: absolute;
            transform: translate(-50%, -50%);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            width: min(var(--atlas-node-width, 132px), 156px);
            min-height: 44px;
            padding: 8px 11px 8px 10px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
                rgba(5, 10, 18, 0.74);
            color: rgba(244, 248, 255, 0.94);
            box-shadow:
                0 12px 26px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            cursor: pointer;
            text-align: left;
            backdrop-filter: blur(12px);
            opacity: 0;
            transition: none;
        }

        .atlas-node::after {
            content: "";
            position: absolute;
            inset: 1px;
            border-radius: inherit;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 44%, transparent 58%, rgba(255, 255, 255, 0.04));
            pointer-events: none;
        }

        .atlas-node:hover {
            transform: translate(-50%, -50%);
        }

        .atlas-node:focus-visible {
            outline: 2px solid color-mix(in srgb, var(--atlas-color) 70%, white 30%);
            outline-offset: 3px;
        }

        .atlas-node__core {
            position: relative;
            width: var(--atlas-core-size, 12px);
            height: var(--atlas-core-size, 12px);
            border-radius: 50%;
            flex: none;
            background:
                radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.36) 28%, rgba(255, 255, 255, 0) 68%),
                radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--atlas-color) 82%, white 18%) 0%, var(--atlas-color) 52%, rgba(255, 255, 255, 0) 82%);
            box-shadow:
                0 0 16px color-mix(in srgb, var(--atlas-color) 58%, transparent),
                0 0 30px color-mix(in srgb, var(--atlas-color) 20%, transparent);
        }

        .atlas-node__label {
            position: relative;
            z-index: 1;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            overflow: hidden;
            font-size: 9.5px;
            line-height: 1.28;
            letter-spacing: 0.2px;
            word-break: break-all;
            text-wrap: balance;
            color: rgba(244, 248, 255, 0.92);
        }

        .atlas-node.is-primary {
            border-color: color-mix(in srgb, var(--atlas-color) 42%, rgba(255, 255, 255, 0.18));
            box-shadow:
                0 20px 42px rgba(0, 0, 0, 0.28),
                0 0 36px color-mix(in srgb, var(--atlas-color) 22%, transparent);
        }

        .atlas-node.is-related {
            border-color: color-mix(in srgb, var(--atlas-color) 28%, rgba(255, 255, 255, 0.12));
            box-shadow:
                0 16px 34px rgba(0, 0, 0, 0.24),
                0 0 26px color-mix(in srgb, var(--atlas-color) 14%, transparent);
        }

        .atlas-node.is-dimmed {
            opacity: 0.14 !important;
            filter: saturate(0.78);
        }

        .atlas-stage.is-visible .atlas-zone,
        .atlas-stage.is-visible .atlas-link,
        .atlas-stage.is-visible .atlas-node {
            animation: none;
        }

        .atlas-stage.is-visible .atlas-zone {
            opacity: 1;
        }

        .atlas-stage.is-visible .atlas-link {
            opacity: 0.12;
        }

        .atlas-stage.is-visible .atlas-node {
            opacity: 1;
        }

            .atlas-stage__hud {
                top: 22px;
                left: 24px;
                gap: 10px;
                max-width: min(320px, calc(100% - 168px));
            }

            .atlas-stage__legend {
                right: 28px;
                bottom: 186px;
            }

            .atlas-stage__detail {
                left: 30px;
                right: 30px;
                width: auto;
                min-height: 0;
            }

            .atlas-map {
                inset: 110px 18px 18px;
            }
        }

        @media (pointer: coarse) and (min-width: 721px) {
            .header h1 {
                font-size: clamp(20px, 6vw, 28px);
                letter-spacing: 1px;
            }

            .header .version {
                font-size: 9px;
                letter-spacing: 1.2px;
            }

            .guide {
                display: block;
                left: var(--touch-guide-left, 12px);
                right: auto;
                bottom: var(--touch-guide-bottom, calc(env(safe-area-inset-bottom, 0px) + 14px));
                max-width: 180px;
                padding: 9px 10px;
                font-size: 10px;
                line-height: 1.65;
                text-align: left;
            }

            .atlas-stage__shell {
                inset: 10px;
                border-radius: 24px;
            }

            .atlas-stage__hud {
                top: 16px;
                left: 16px;
                gap: 9px;
                max-width: calc(100% - 132px);
            }

            .atlas-stage__title {
                font-size: 21px;
                line-height: 1.08;
            }

            .atlas-stage__copy {
                font-size: 12px;
                line-height: 1.7;
            }

            .atlas-stage__close {
                top: 18px;
                right: 18px;
                padding: 10px 13px;
                font-size: 10px;
            }

            .atlas-stage__pool-btn {
                right: max(12px, env(safe-area-inset-right));
                bottom: max(12px, env(safe-area-inset-bottom));
                padding: 8px 14px;
                font-size: 12px;
            }

            .atlas-card-library {
                top: 64px;
                left: max(12px, env(safe-area-inset-left));
                right: max(12px, env(safe-area-inset-right));
                bottom: max(12px, env(safe-area-inset-bottom));
                padding: 10px 80px 52px 80px;
                padding-top: max(36px, env(safe-area-inset-top));
            }

            .atlas-card-library__center {
                justify-content: center;
                align-items: center;
            }

            .atlas-card-library__hint {
                font-size: 11px;
                max-width: calc(100% - 24px);
                top: 12px;
            }

            .atlas-card-library__toolbar {
                width: calc(100% - 10px);
                margin: 20px auto 24px;
            }

            @media (orientation: landscape) {
                .atlas-card-library__toolbar {
                    margin-top: 16px;
                    margin-bottom: 40px;
                }
                .atlas-card-library__center {
                    margin-top: 20px;
                }
            }

            .atlas-mode-switch {
                gap: 8px;
            }

            .atlas-mode-switch__btn {
                flex-basis: calc(50% - 8px);
                padding: 9px 12px;
                font-size: 11px;
                border-radius: 12px;
            }

            .atlas-module-pool {
                margin: 6px 0 8px;
                padding: 12px 14px 14px;
                max-height: min(34vh, 320px);
            }

            .atlas-module-pool__title-row,
            .atlas-module-pool__cluster-head {
                flex-direction: column;
                align-items: stretch;
            }

            .atlas-module-pool__title {
                font-size: 11px;
            }

            .atlas-module-pool__summary {
                text-align: left;
            }

            .atlas-module-pool__preset-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 7px;
            }

            .atlas-module-pool__preset-btn {
                padding: 9px 10px;
                border-radius: 12px;
            }

            .atlas-module-pool__list {
                gap: 10px;
                margin-bottom: 8px;
            }

            .atlas-module-pool__cluster {
                padding: 12px;
            }

            .atlas-module-pool__grid {
                grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
                gap: 8px;
            }

            .atlas-module-pool__item {
                padding: 9px 10px;
            }

            .atlas-module-pool__item input {
                width: 14px;
                height: 14px;
            }

            .atlas-card-library__draw-area {
                min-height: 0;
                margin-bottom: 10px;
            }

            .atlas-card {
                max-width: 300px;
                height: clamp(320px, 48vh, 430px);
                min-height: clamp(320px, 48vh, 430px);
            }

            .atlas-card__face {
                padding: 18px 16px 16px;
            }

            .atlas-card__module-desc {
                -webkit-line-clamp: 3;
                line-clamp: 3;
            }

            .atlas-card__stats {
                gap: 6px;
            }

            .atlas-card__stat {
                padding: 8px 8px 7px;
            }

            .atlas-card__stat-value {
                font-size: 14px;
            }

            .atlas-card-library__draw-actions {
                padding: 18px 0 0;
                margin-top: 4px;
            }

            .atlas-card-library__draw-btn {
                padding: 12px 24px;
                font-size: 14px;
            }

            @media (max-height: 580px) {
                .atlas-card-library {
                    padding-top: max(32px, env(safe-area-inset-top));
                    padding-bottom: max(44px, env(safe-area-inset-bottom));
                }
                .atlas-card-library__hint {
                    font-size: 10px;
                }
                .atlas-module-pool {
                    margin: 6px 0 8px;
                    padding: 8px 10px;
                    max-height: min(32vh, 250px);
                }
                .atlas-module-pool__preset-grid {
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                }
                .atlas-module-pool__grid {
                    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
                }
                .atlas-card {
                    height: clamp(280px, 44vh, 360px);
                    min-height: clamp(280px, 44vh, 360px);
                    max-width: 280px;
                }
                .atlas-card-library__draw-actions {
                    padding: 8px 0 6px;
                }
            }

            @media (max-width: 400px) {
                .atlas-card-library {
                    padding-left: 16px;
                    padding-right: 88px;
                    padding-bottom: 56px;
                }
                .atlas-card-library__toolbar {
                    width: calc(100% - 6px);
                }
                .atlas-mode-switch__btn {
                    flex-basis: 100%;
                }
                .atlas-card {
                    max-width: min(292px, calc(100vw - 140px));
                }
            }

            .atlas-map {
                inset: 94px 10px 14px;
                border-radius: 22px;
            }

            .atlas-stage__legend {
                left: 18px;
                right: 18px;
                bottom: 104px;
            }

            .atlas-stage__detail {
                left: 18px;
                right: 18px;
                bottom: 18px;
                width: auto;
                padding: 14px 14px 15px;
            }

            .atlas-node {
                width: min(var(--atlas-node-width, 132px), 124px);
                min-height: 32px;
                padding: 7px 10px 7px 8px;
                gap: 8px;
            }

            .atlas-node__label {
                font-size: 9px;
            }

