/* ========================================================================== */
/*  CELESTIAL UNIVERSE // UNIVERSE HUB & MACRO ASTRONOMY STYLES             */
/*  全科天象银河总目录与宏观天象 UI 样式                                      */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. 宏观天象抬头 (Hub Header)                                               */
/* -------------------------------------------------------------------------- */
.universe-hub-ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.4s ease;
}

.universe-hub-header {
    position: absolute;
    top: 28px;
    left: 36px;
    pointer-events: auto;
    max-width: 520px;
    user-select: none;
}

.universe-hub-title {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 36px);
    letter-spacing: clamp(2px, 0.3vw, 5px);
    line-height: 1.1;
    white-space: nowrap;
    font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
    font-weight: 400;
    background: linear-gradient(92deg, #ffffff 0%, #a5f3fc 40%, #fef08a 85%, #fde047 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.90));
}

.universe-hub-sub {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 1.8px;
    color: rgba(226, 232, 240, 0.72);
}

.universe-tag {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    font-size: 10px;
    letter-spacing: 1px;
}

/* -------------------------------------------------------------------------- */
/* 2. 顶部天区快速聚焦胶囊栏 (Constellation Sector Navigation Pills)         */
/* -------------------------------------------------------------------------- */
.universe-sector-nav {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(6, 11, 20, 0.85);
    border: 1px solid rgba(115, 216, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(56, 189, 248, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: auto;
    user-select: none;
}

.universe-sector-pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(226, 232, 240, 0.75);
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.22s ease;
    outline: none;
    white-space: nowrap;
}

.universe-sector-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.universe-sector-pill.active {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.55);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

/* -------------------------------------------------------------------------- */
/* 3. 悬停天象浮动卡片 (Celestial Subject Tooltip Card)                       */
/* -------------------------------------------------------------------------- */
.universe-celestial-card {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 330px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(6, 12, 24, 0.92);
    border: 1px solid rgba(115, 216, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 24px rgba(56, 189, 248, 0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    user-select: none;
}

.universe-celestial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-header {
    border-left: 3px solid #38bdf8;
    padding-left: 10px;
    margin-bottom: 12px;
}

.card-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 4px;
    letter-spacing: 0.8px;
}

.card-title {
    margin: 2px 0 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
}

.card-sub {
    font-size: 11px;
    color: rgba(226, 232, 240, 0.55);
    display: block;
    margin-top: 2px;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 8px 0 10px;
    font-size: 11.5px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label {
    color: rgba(226, 232, 240, 0.6);
}

.meta-val {
    color: #ffffff;
}

.card-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.module-chip {
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(226, 232, 240, 0.85);
}

.card-desc {
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.7);
    margin: 0 0 14px;
}

.card-action {
    font-size: 11.5px;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.8px;
}

.action-active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(37, 99, 235, 0.35));
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: #e0f2fe;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
    animation: actionPulse 1.8s infinite ease-in-out;
}

.action-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(226, 232, 240, 0.85);
}

@keyframes actionPulse {
    0%, 100% { opacity: 0.88; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* -------------------------------------------------------------------------- */
/* 4. 常驻返回全科银河与返回白板操作行 (Cosmos & Blackboard Action Buttons)   */
/* -------------------------------------------------------------------------- */
.header-actions-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    pointer-events: auto;
}

.universe-hub-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    pointer-events: auto;
}

.return-universe-hub-btn,
.return-blackboard-btn {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    height: 32px;
    padding: 0 14px 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(115, 216, 255, 0.28);
    background: linear-gradient(135deg, rgba(115, 216, 255, 0.12), rgba(6, 12, 24, 0.82) 65%);
    color: rgba(224, 242, 254, 0.92);
    font-size: 11px;
    letter-spacing: 1.2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    outline: none;
    white-space: nowrap;
    touch-action: manipulation;
}

.return-blackboard-btn {
    border-color: rgba(147, 197, 253, 0.32);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(8, 16, 32, 0.85) 65%);
}

.return-universe-hub-btn:hover,
.return-blackboard-btn:hover {
    border-color: rgba(115, 216, 255, 0.65);
    background: linear-gradient(135deg, rgba(115, 216, 255, 0.22), rgba(6, 12, 24, 0.92) 65%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(115, 216, 255, 0.35);
    transform: translateY(-2px);
    color: #ffffff;
}

.return-blackboard-btn:hover {
    border-color: rgba(147, 197, 253, 0.7);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(10, 22, 42, 0.94) 65%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(96, 165, 250, 0.35);
}

.return-universe-hub-btn:active,
.return-blackboard-btn:active {
    transform: translateY(0);
}

.return-universe-hub-btn .return-icon,
.return-blackboard-btn .return-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(115, 216, 255, 0.18);
    color: #7dd3fc;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 0 10px rgba(115, 216, 255, 0.25);
    transition: transform 0.24s ease, background 0.24s ease;
}

.return-universe-hub-btn:hover .return-icon,
.return-blackboard-btn:hover .return-icon {
    background: rgba(115, 216, 255, 0.35);
    box-shadow: 0 0 14px rgba(115, 216, 255, 0.5);
    transform: translateX(-2px);
}

.return-universe-hub-btn .return-text,
.return-blackboard-btn .return-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 500;
}

body.universe-hub-active .header-actions-row,
body.universe-hub-active .return-universe-hub-btn {
    display: none !important;
}

@media (max-width: 720px) {
    .header-actions-row,
    .universe-hub-actions {
        margin-top: 10px;
        gap: 8px;
    }
    .return-universe-hub-btn,
    .return-blackboard-btn {
        height: 28px;
        padding: 0 11px 0 8px;
        font-size: 10px;
    }
    .return-universe-hub-btn .return-icon,
    .return-blackboard-btn .return-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

/* -------------------------------------------------------------------------- */
/* 5. 全屏曲率跃迁光学光锥 (Warp Optical Flare & Hyperspace Speed Streaks)    */
/* 彻底废除不透明蒙版与模糊！中心 100% 清晰透明，保留全程 3D 纵深与深空视差 */
/* -------------------------------------------------------------------------- */
.warp-transition-flare {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
    /* 中心完全透明通透！外围微弱速度暗晕与曲率光学晕彩，营造真实景深压迫感 */
    background:
        radial-gradient(ellipse 75% 65% at 50% 50%, transparent 40%, rgba(56, 189, 248, 0.08) 72%, rgba(2, 6, 18, 0.55) 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(125, 211, 252, 0.06) 30%, transparent 65%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* 跃迁外围曲率星流拉丝 (Cinematic Peripheral Speed Streaks) */
.warp-transition-flare::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        transparent 8deg,
        rgba(56, 189, 248, 0.07) 9deg,
        transparent 10deg,
        rgba(255, 255, 255, 0.12) 10.5deg,
        transparent 11deg,
        transparent 18deg
    );
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6) rotate(0deg);
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, transparent 45%, black 85%);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, transparent 45%, black 85%);
}

/* 核心深潜光爆冲击 (Soft Stellar Core Bloom) */
.warp-transition-flare::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.55) 0%, rgba(125, 211, 252, 0.3) 25%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.22s ease, transform 0.25s ease-out;
}

.warp-transition-flare.flash {
    opacity: 0.85;
    transform: scale(1.0);
}

.warp-transition-flare.flash::before {
    opacity: 0.85;
    transform: scale(1.15) rotate(25deg);
}

.warp-transition-flare.core-dive {
    opacity: 0.95;
}

.warp-transition-flare.core-dive::after {
    opacity: 0.75;
    transform: scale(1.4);
}

/* -------------------------------------------------------------------------- */
/* 6. 初高中大纲预览模态弹窗 (Subject Curriculum Modal)                       */
/* -------------------------------------------------------------------------- */
.universe-subject-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.universe-subject-modal.open {
    display: flex;
    animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.universe-modal-card {
    width: min(92vw, 760px);
    max-height: 88vh;
    background: rgba(8, 14, 26, 0.96);
    border: 1px solid rgba(115, 216, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.2);
    overflow-y: auto;
    padding: 30px 34px;
    box-sizing: border-box;
    color: #ffffff;
}

.modal-hero {
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.modal-hero h1 {
    margin: 8px 0 4px;
    font-size: 26px;
    font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
}

.modal-tagline {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.65);
    margin: 0;
}

.modal-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid;
    font-size: 11px;
    font-weight: 500;
}

.modal-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 22px;
}

.notice-icon {
    font-size: 22px;
    line-height: 1;
}

.notice-text p {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.85);
}

.modal-modules-box h3 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #94a3b8;
}

.modal-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.modal-module-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mod-idx {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: rgba(56, 189, 248, 0.8);
}

.mod-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod-count {
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.55);
}

.mod-desc {
    font-size: 11.5px;
    color: rgba(226, 232, 240, 0.65);
    margin-top: 3px;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.modal-btn--focus {
    background: rgba(56, 189, 248, 0.22);
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: #ffffff;
}

.modal-btn--focus:hover {
    background: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}

.modal-btn--close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(226, 232, 240, 0.7);
}

.modal-btn--close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* 7. 模式状态控制 (Body Class Toggles)                                       */
/* -------------------------------------------------------------------------- */
body.universe-hub-active .top-nebula-controls,
body.universe-hub-active .nebula-labels-switcher,
body.universe-hub-active .depth-bg-switcher,
body.universe-hub-active #fiber-rail,
body.universe-hub-active #spectral-stream,
body.universe-hub-active .header,
body.universe-hub-active #cosmic-tooltip,
body.universe-hub-active .cosmic-tooltip,
body.universe-hub-active #tooltip,
body.universe-hub-active .tooltip {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.universe-hub-active .depth-bg-layer {
    background-image: url('../assets/backgrounds/bg_milkyway_bokeh_depth.jpg') !important;
    opacity: 0.82 !important;
    filter: brightness(0.9) saturate(1.2) !important;
}

body.universe-hub-active .depth-bg-mask {
    background: radial-gradient(ellipse 95% 85% at 50% 50%, transparent 35%, rgba(1, 4, 10, 0.85) 100%) !important;
    opacity: 0.8 !important;
}

body.subject-mode-active .universe-hub-ui {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/* 8. 学科按需加载前摇准备指示器 (Preparation Phase HUD)                        */
/* 悬浮于底部「观枢」助教图标正上方，避免重叠遮挡文字与进度条                     */
/* -------------------------------------------------------------------------- */
.universe-prep-hud {
    position: fixed;
    bottom: 124px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(6, 12, 24, 0.94);
    border: 1px solid rgba(115, 216, 255, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 28px rgba(56, 189, 248, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    z-index: 10005;
    user-select: none;
    max-width: 90vw;
}

.universe-prep-hud.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* 当准备加载条激活时，自动隐藏观枢提示，保持视野聚焦与清爽 */
body:has(.universe-prep-hud.visible) .gravitational-voice-tooltip,
.universe-prep-hud.visible ~ .gravitational-voice-container .gravitational-voice-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-height: 620px) {
    .universe-prep-hud {
        bottom: 96px;
    }
}

.prep-spinner {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.prep-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid rgba(115, 216, 255, 0.15);
    border-top-color: #38bdf8;
    border-right-color: #818cf8;
    animation: prep-spin 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

@keyframes prep-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.prep-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.prep-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prep-badge {
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 0.8px;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
}

.prep-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    white-space: nowrap;
}

.prep-status {
    font-size: 11px;
    color: rgba(226, 232, 240, 0.75);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.prep-progress-bar-wrap {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.prep-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
    border-radius: 2px;
    transition: width 0.12s linear;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.prep-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.8);
    font-size: 11px;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    flex-shrink: 0;
}

.prep-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

/* -------------------------------------------------------------------------- */
/* 9. 加载失败与超时容灾模态窗 (Load Error / Timeout Modal)                     */
/* -------------------------------------------------------------------------- */
.universe-load-error-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.universe-load-error-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.error-modal-card {
    width: 440px;
    max-width: 90vw;
    border-radius: 16px;
    padding: 28px;
    background: rgba(10, 16, 28, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 32px rgba(239, 68, 68, 0.25);
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.universe-load-error-modal.open .error-modal-card {
    transform: scale(1);
}

.error-modal-icon {
    font-size: 38px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.6));
}

.error-modal-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 1px;
}

.error-modal-message {
    margin: 0 0 22px 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.75);
}

.error-modal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.error-btn-retry {
    padding: 8px 22px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.6);
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-btn-retry:hover {
    background: rgba(56, 189, 248, 0.38);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.error-btn-dismiss {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(226, 232, 240, 0.7);
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}


