@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');

/* ==========================================================================
   JURNAL PENELITIAN & MEKANIKA - TEMA BUKU KULIT ASLI & MEJA KAYU
   Latar meja kayu (assets/wood-table.jpg), sampul kulit (assets/leather-cover.jpg),
   dan tekstur lembaran kertas halus aged parchment identik dengan form login.
   ========================================================================== */

/* 1. Sembunyikan Navigasi Atas Total Sesuai Permintaan */
.codex-realm-nav {
    display: none !important;
}

/* Reset Layout: Tanpa offset navbar 50px */
body {
    padding-top: 0 !important;
    margin: 0;
    background: #000000;
    overflow: hidden;
}

#void-ground {
    top: 0 !important;
    left: 0;
    width: auto !important;
    flex: 1 !important;
    height: 100% !important;
}

#toolbox {
    top: 0 !important;
    height: 100% !important;
}

/* ==========================================================================
   PAGE UTAMA: ANATOMI BUKU JURNAL FISIK TERBUKA (OPEN VINTAGE JOURNAL)
   Latar meja kerja bertekstur non-repetitive dengan pencahayaan vignette.
   ========================================================================== */
.page-menu-utama {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #100804;
    display: flex;
    align-items: stretch;
    justify-content: center;
    z-index: 500;
    overflow: hidden;
    padding: 16px 20px;
    box-sizing: border-box;
}

.page-menu-utama.hidden {
    display: none !important;
}

/* Master Landscape Layout Container */
.menu-landscape-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    box-sizing: border-box;
}

/* 5-Kolom Galeri Sketsa Da Vinci */
.menu-quad-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    height: 100%;
    min-width: 0;
    width: 100%;
    padding: 6px 4px 12px 4px;
    box-sizing: border-box;
    perspective: 1200px;
}

.menu-quad-column {
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transform-style: preserve-3d;
    touch-action: manipulation !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none;
}

.quad-col-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f7f1e1;
    background-image: 
        radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.55) 0%, rgba(225, 205, 175, 0.42) 72%, rgba(175, 140, 102, 0.68) 100%),
        linear-gradient(to bottom, transparent 27px, rgba(120, 140, 160, 0.16) 28px);
    background-size: 100% 100%, 100% 28px;
    border-top: 2px solid #c69853;
    border-left: 2px solid #9d6d38;
    border-right: 3px solid #593514;
    border-bottom: 7px solid #442409;
    border-radius: 10px;
    box-shadow: 
        0 8px 0 #261204,
        0 18px 34px rgba(0, 0, 0, 0.88),
        0 5px 14px rgba(0, 0, 0, 0.65),
        inset 0 2px 0 rgba(255, 250, 232, 0.92),
        inset 0 -3px 8px rgba(85, 48, 18, 0.30);
    overflow: hidden;
    position: relative;
    transform: translateY(-2px);
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.quad-col-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(255, 252, 235, 0.28) 0%, rgba(255, 245, 210, 0.05) 36%, transparent 60%, rgba(35, 16, 4, 0.14) 100%);
    pointer-events: none;
    z-index: 3;
}

.quad-col-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 75%;
    height: 100%;
    background: linear-gradient(108deg, transparent 0%, rgba(255, 238, 173, 0.45) 45%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 224, 130, 0.38) 55%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    z-index: 4;
}

@media (hover: hover) and (pointer: fine) {
    .menu-quad-column:hover .quad-col-card,
    .menu-quad-column:focus-visible .quad-col-card {
        border-top-color: #f6cf65;
        border-left-color: #e5b443;
        border-right-color: #9e6b1d;
        border-bottom-color: #6b420a;
        transform: translateY(-7px) scale(1.012);
        box-shadow: 
            0 12px 0 #261204,
            0 26px 46px rgba(0, 0, 0, 0.94),
            0 0 24px rgba(212, 175, 55, 0.45),
            inset 0 2px 0 rgba(255, 253, 240, 0.95),
            inset 0 0 20px rgba(212, 175, 55, 0.22);
    }
}

.menu-quad-column:active .quad-col-card {
    transform: translateY(3px) scale(0.988);
    border-color: #f5c542;
    border-bottom-width: 4px;
    box-shadow: 
        0 3px 0 #261204,
        0 10px 20px rgba(0, 0, 0, 0.85),
        0 0 26px rgba(251, 191, 36, 0.72),
        inset 0 0 24px rgba(251, 191, 36, 0.32);
}

.menu-quad-column.is-menu-selected .quad-col-card {
    transform: translateY(2px) scale(1.016);
    border-top: 2.5px solid #fde047;
    border-left: 2.5px solid #f59e0b;
    border-right: 3px solid #d97706;
    border-bottom: 6px solid #92400e;
    filter: brightness(1.06);
    box-shadow: 
        0 4px 0 #3a1a04,
        0 0 0 3px rgba(251, 191, 36, 0.92),
        0 0 34px rgba(251, 191, 36, 0.85),
        0 20px 38px rgba(0, 0, 0, 0.9),
        inset 0 2px 0 rgba(255, 255, 245, 1),
        inset 0 0 28px rgba(251, 191, 36, 0.38);
}

.menu-quad-column.is-menu-selected .quad-col-card::after {
    opacity: 1;
    animation: menuCardHighlightSweep 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.menu-quad-column.is-menu-selected .quad-col-number,
.menu-quad-column.is-menu-selected .quad-col-title {
    color: #92400e;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.72);
}

@keyframes menuCardHighlightSweep {
    0% {
        left: -130%;
        opacity: 0.95;
    }
    100% {
        left: 145%;
        opacity: 0;
    }
}

/* Card Header (Strictly Symmetrical & Auto-Fitted Typography - 1920x864 Virtual Scale) */
.quad-col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-height: 76px;
    min-width: 0;
    box-sizing: border-box;
    border-bottom: 1.5px solid rgba(124, 81, 39, 0.35);
    background: rgba(255, 255, 255, 0.5);
}

.quad-col-number {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 40px;
    font-weight: 800;
    color: #6e4622;
    line-height: 1;
    letter-spacing: -0.5px;
    opacity: 0.95;
    flex-shrink: 0;
}

.quad-col-title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.quad-col-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    color: #8c5d2e;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quad-col-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 21.5px;
    font-weight: 800;
    color: #241205;
    margin: 2px 0 0 0;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-quad-column:hover .quad-col-title {
    color: #613816;
}

/* Card Artwork Viewport */
.quad-col-image-wrap {
    flex: 1;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    background: #f4ecd8;
    background-image: radial-gradient(#e5d8be 1px, transparent 1px);
    background-size: 16px 16px;
    border-top: 1px solid rgba(124, 81, 39, 0.2);
    border-bottom: 1.5px solid rgba(124, 81, 39, 0.35);
}

.quad-col-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
}

.quad-col-overlay-vignette {
    position: absolute;
    inset: 0;
    box-shadow:
        inset 0 4px 12px rgba(35, 18, 8, 0.48),
        inset 0 0 24px rgba(35, 18, 8, 0.45);
    pointer-events: none;
}

/* Card Footer */
.quad-col-footer {
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(124, 81, 39, 0.22);
}

.quad-col-desc {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13.8px; /* Scaled +20% from 11.5px */
    font-style: italic;
    color: #4a2e16;
    margin: 0;
    line-height: 1.42;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   KOLOM KANAN: SIDEBAR MENU (+50% Width & Enlarged Action Icons)
   ========================================================================== */
.menu-sidebar-panel {
    width: 108px;
    height: 100%;
    flex-shrink: 0;
    background: #241207 url('assets/leather-cover.jpg') repeat;
    background-size: 400px auto;
    border: 2.5px solid #5a3416;
    border-radius: 8px;
    box-shadow: 
        0 16px 38px rgba(0, 0, 0, 0.9),
        inset 0 0 20px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    box-sizing: border-box;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.menu-sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid rgba(194, 154, 83, 0.35);
    width: 100%;
    flex-shrink: 0;
}

.sidebar-seal-icon {
    font-size: 18px;
    color: #d4af37;
}

.sidebar-title {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 800;
    color: #f7edd4;
    letter-spacing: 2.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.menu-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    align-items: center;
    flex: 1 1 0;
    min-height: 0;
    justify-content: space-evenly;
    margin-top: 2px;
    overflow: hidden;
}

.menu-side-btn {
    width: 86px;
    height: 48px;
    flex-shrink: 1;
    min-height: 0;
    border-radius: 8px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    touch-action: manipulation !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
    position: relative;
    user-select: none;
    outline: none;
    padding: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .menu-side-btn:hover {
        background: rgba(212, 175, 55, 0.14);
        transform: scale(1.08);
        box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
    }
    .menu-side-btn:hover .jurnal-top-icon {
        stroke: #ffd978;
        filter: drop-shadow(0 0 6px rgba(255, 217, 120, 0.7));
    }
}

.menu-side-btn:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.22);
}

.menu-side-btn .jurnal-top-icon {
    width: 38px;
    height: 38px;
    stroke: #e2cca8;
    transition: transform 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
    flex-shrink: 0;
}

.sidebar-action-divider {
    width: 72%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(194, 154, 83, 0.45), transparent);
    margin: 1px 0;
    flex-shrink: 0;
}

.side-btn-label {
    display: none;
}

.menu-side-btn .lang-icon-badge {
    position: absolute;
    bottom: 1px;
    right: 6px;
    background: #3b1c09;
    color: #ffd978;
    font-size: 10px;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid #d4af37;
    line-height: 1;
    pointer-events: none;
}

/* User Account Wrapper & Popover on Left of Sidebar */
.jurnal-user-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.jurnal-user-popover {
    position: absolute;
    top: 50%;
    right: calc(100% + 14px);
    transform: translateY(-50%);
    width: 230px;
    background: #fbf6e9;
    border: 1.5px solid #8c5d2e;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 10px rgba(140, 93, 46, 0.12);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
    animation: fadeInPopover 0.15s ease-out;
    color: #2b1d0c;
    text-align: left;
}

.jurnal-user-popover::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 7px solid #8c5d2e;
}

.jurnal-user-popover.hidden {
    display: none !important;
}

.jurnal-user-popover .popover-badge {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #8c5d2e;
    border-bottom: 1px solid rgba(140, 93, 46, 0.35);
    padding-bottom: 4px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.jurnal-user-popover .popover-line {
    font-size: 12px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #3b230f;
    line-height: 1.4;
}

.jurnal-user-popover .popover-key {
    font-weight: 700;
    color: #78350f;
    min-width: 44px;
    flex-shrink: 0;
}

.jurnal-user-popover .popover-value {
    color: #1c1917;
    font-weight: 600;
    word-break: break-all;
}

.jurnal-user-popover .popover-status {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(22, 101, 52, 0.12);
    border: 1px solid #16a34a;
    color: #15803d;
}

@media (hover: hover) and (pointer: fine) {
    .btn-top-logout:hover {
        background: rgba(185, 28, 28, 0.25);
        border-color: #ef4444;
        box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    }

    .btn-top-logout:hover .jurnal-top-icon {
        stroke: #fca5a5;
    }

    .btn-top-logout:hover .side-btn-label {
        color: #fca5a5;
    }
}

/* Virtual Canvas Scaler Architecture:
   Seluruh elemen dalam viewport 1920x864 diskalakan seragam oleh CSS transform matrix.
   Legacy media query max-height dinonaktifkan agar rendering mobile Android identik dengan desktop browser. */

/* Tombol Universal Kembali ke Menu Utama */
.btn-kembali-jurnal {
    background: linear-gradient(180deg, #442714 0%, #291509 100%);
    border: 1.5px solid #9c733f;
    border-radius: 4px;
    color: #f7eed8;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
    transition: all 0.15s;
    pointer-events: auto;
    z-index: 200;
}

.btn-kembali-jurnal:hover {
    background: linear-gradient(180deg, #5c351b 0%, #3a1e0d 100%);
    border-color: #baa06e;
    transform: translateY(-1px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(186, 160, 110, 0.35);
}

/* Tombol Menu Utama di Toolbox Header (Icon-Only di Pojok Kanan) */
.toolbox-header-controls .btn-kembali-jurnal.toolbox-menu-btn {
    background: #3b2213;
    border: 1px solid #6b4125;
    color: #edd6a4;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px #0f0703;
    transition: all 0.2s ease;
}

.toolbox-header-controls .btn-kembali-jurnal.toolbox-menu-btn:hover {
    background: #4a2c19;
    border-color: #8c5834;
    color: #fff1cc;
    transform: translateY(-1px);
}

.toolbox-header-controls .btn-kembali-jurnal.toolbox-menu-btn:active {
    transform: translateY(1px);
    background: #2b180d;
}

.toolbox-header-controls .btn-kembali-jurnal.toolbox-menu-btn .header-icon-svg {
    width: 20px;
    height: 20px;
    color: #edd6a4;
    stroke: currentColor;
    fill: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.toolbox-header-controls .btn-kembali-jurnal.toolbox-menu-btn:hover .header-icon-svg {
    transform: scale(1.1);
    color: #fff1cc;
}

.kembali-icon {
    font-size: 13px;
    color: #e0be77;
}

/* ==========================================================================
   REALM VIEWS (WORKSHOP, TEST)
   ========================================================================== */
.codex-realm-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1c1109;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.codex-realm-view.active-realm {
    display: flex !important;
}

/* Workshop Layout */
#realm-view-workshop {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    flex-direction: column;
    background: #0e0704;
}

.workshop-top-bar {
    height: 80.5px; /* Scaled +15% from 70px */
    background-color: #2b180d;
    background-image: url('assets/leather-texture-long.jpg');
    background-repeat: repeat-x;
    background-position: center center;
    background-size: 512px 189px;
    border-bottom: 2px solid #8c5d2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 0; /* Scaled +15% from 0 16px 0 0 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(223, 194, 130, 0.25), inset 0 -3px 8px rgba(0, 0, 0, 0.45);
    z-index: 10;
    gap: 14px; /* Scaled +15% from 12px */
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Zona 1: Hangar Dok Automata (Aligned 1:1 with 414px Left Sidebar below) */
.workshop-left-cluster {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 414px !important;
    height: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    border-right: 2.5px solid #8c5d2e;
}

.workshop-hangar-label {
    display: none !important;
}

.automata-slot-selector {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    height: 100%;
}

.automata-slot-btn {
    flex: 1 1 0;
    width: 0;
    height: 100%;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(223, 194, 130, 0.35);
    color: #dfcba5;
    padding: 0;
    border-radius: 0;
    font-family: 'Cinzel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
    font-size: 17.5px; /* Scaled +15% from 15px */
    font-weight: 800;
    letter-spacing: 0.9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-sizing: border-box;
    transition: all 0.18s ease;
    box-shadow: none;
}

.automata-slot-btn:last-child {
    border-right: none;
}

.automata-slot-num {
    font-size: 18px; /* Scaled +15% from 15.5px */
    color: #ba986e;
    font-weight: 800;
    transition: color 0.18s ease;
}

.automata-slot-btn:hover {
    background: rgba(223, 194, 130, 0.08);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.automata-slot-btn:hover .automata-slot-num {
    color: #ffd060;
}

.automata-slot-btn.active {
    background: rgba(223, 194, 130, 0.12);
    color: #ffd060;
    font-weight: 800;
    box-shadow: none;
    text-shadow: 0 0 10px rgba(255, 208, 96, 0.5);
    border-bottom: 2px solid #ffd060;
}

.automata-slot-btn.active .automata-slot-num {
    color: #ffffff;
}

.automata-slot-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6e4622;
    transition: all 0.18s ease;
}

.automata-slot-btn.active .automata-slot-badge {
    background: #ffe39b;
    box-shadow: 0 0 8px #ffd060, 0 0 3px #ffffff;
}

/* Zona 2: Identity Crest & Plakat Workshop Renaisans - Hidden on top bar to prevent button collision */
.workshop-center-banner {
    display: none !important;
}

/* Zona 3: Taktikal Kontrol & Aksi Terpadu (Frameless Toolbar separated by |) */
.workshop-controls {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.wb-ctrl-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.wb-parchment-btn {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(223, 194, 130, 0.4);
    color: #eeddbb;
    font-family: 'Cinzel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
    font-size: 16.8px; /* Scaled +15% from 14.5px */
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 0 16px; /* Scaled +15% from 14px */
    border-radius: 0;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px; /* Scaled +15% from 8px */
    white-space: nowrap;
    height: 50.6px; /* Scaled +15% from 44px */
    box-sizing: border-box;
}

.wb-btn-icon {
    font-size: 18.5px; /* Scaled +15% from 16px */
    color: #dfc282;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.wb-parchment-btn:hover {
    background: rgba(223, 194, 130, 0.08);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.wb-parchment-btn:hover .wb-btn-icon {
    color: #ffffff;
}

/* Tombol Aksi Menonjol: Meja Tempa (Neutral Parchment Theme, Non-Kuning per User Instruction) */
.wb-parchment-btn.forge-btn {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(223, 194, 130, 0.4);
    color: #eeddbb;
    font-weight: 600;
    box-shadow: none;
}

.wb-parchment-btn.forge-btn .wb-btn-icon {
    color: #dfc282;
}

.wb-parchment-btn.forge-btn:hover {
    background: rgba(223, 194, 130, 0.08);
    color: #ffffff;
    text-shadow: none;
    box-shadow: none;
}

.wb-parchment-btn.forge-btn:hover .wb-btn-icon {
    color: #ffffff;
}

/* Tombol Aksi Menonjol: Jadikan Unit Utama (Neutral Parchment Theme, Non-Ijo per User Instruction) */
.wb-parchment-btn.accent {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(223, 194, 130, 0.4);
    color: #eeddbb;
    font-weight: 600;
    box-shadow: none;
}

.wb-parchment-btn.accent .wb-btn-icon {
    color: #dfc282;
}

.wb-parchment-btn.accent:hover {
    background: rgba(223, 194, 130, 0.08);
    color: #ffffff;
    box-shadow: none;
}

.wb-parchment-btn.accent:hover .wb-btn-icon {
    color: #ffffff;
}

/* Status Ketika Unit Sudah Aktif Utama (Neutral Parchment Theme, Non-Ijo per User Instruction) */
.wb-parchment-btn.accent.is-active-main {
    background: transparent;
    color: #eeddbb;
    border-right: 1px solid rgba(223, 194, 130, 0.4);
    box-shadow: none;
    text-shadow: none;
}

.wb-parchment-btn.accent.is-active-main .wb-btn-icon {
    color: #dfc282;
}

/* Toggle Soket ON State */
.wb-parchment-btn.active {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.wb-parchment-btn.active .wb-btn-icon {
    color: #4ade80;
}

/* Toggle Uji Terbang ON State */
.wb-parchment-btn.flight-btn {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wb-parchment-btn.flight-btn:hover {
    color: #4ade80;
}

.wb-parchment-btn.flight-btn.active {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    font-weight: 700;
    box-shadow: none;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.wb-parchment-btn.flight-btn.active .wb-btn-icon {
    color: #4ade80;
}

.workshop-top-divider {
    display: none;
}

/* Home Button - Symmetrical with all buttons */
.btn-kembali-jurnal.wb-home-btn {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(223, 194, 130, 0.4);
    color: #edd6a4;
    width: 55.2px; /* Scaled +15% from 48px */
    height: 50.6px; /* Scaled +15% from 44px */
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.18s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.btn-kembali-jurnal.wb-home-btn:hover {
    background: rgba(223, 194, 130, 0.1);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.btn-kembali-jurnal.wb-home-btn:active {
    background: rgba(0, 0, 0, 0.2);
}

.btn-kembali-jurnal.wb-home-btn .wb-home-icon-svg {
    width: 25.3px; /* Scaled +15% from 22px */
    height: 25.3px; /* Scaled +15% from 22px */
    stroke: currentColor;
    fill: none;
    transition: transform 0.18s ease;
}

.btn-kembali-jurnal.wb-home-btn:hover .wb-home-icon-svg {
    transform: scale(1.12);
}

/* ==========================================================================
   WORKSHOP BOTTOM FOOTER BAR (Matching Top Bar Da Vinci Theme)
   ========================================================================== */
.workshop-bottom-bar {
    display: none !important;
    height: 0px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

.workshop-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10.5px;
    color: #dfcba5;
    letter-spacing: 0.8px;
    flex-shrink: 0;
}

.footer-status-pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e, 0 0 12px rgba(34, 197, 94, 0.6);
    animation: pipPulse 2.4s infinite ease-in-out;
}

@keyframes pipPulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
}

.footer-telemetry-label {
    font-weight: 700;
    color: #c9ab7b;
}

.workshop-footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.wb-footer-nav-hints {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10px;
    color: #ebd7b2;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 18px;
    border-radius: 12px;
    border: 1px solid rgba(140, 93, 46, 0.4);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
}

.footer-hint-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.footer-hint-key {
    color: #f6d289;
    font-weight: 800;
}

.footer-hint-sep {
    color: #8c5d2e;
    font-size: 8px;
}

.workshop-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.footer-codex-sig {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10px;
    font-weight: 700;
    color: #a48259;
    letter-spacing: 1px;
}

.workshop-main-workspace {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1920px;
}

/* Sidebar Kiri: Lembaran Kertas Arsip Spesifikasi & Infusi (+15% Scaling to 414px) */
.workshop-sidebar-left {
    width: 414px !important;
    min-width: 414px !important;
    max-width: 414px !important;
    height: 100%;
    max-height: 100%;
    background-color: #f7f1e1;
    background-image: 
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.4) 0%, rgba(225, 205, 175, 0.5) 75%, rgba(185, 155, 120, 0.7) 100%),
        linear-gradient(to bottom, transparent 27px, rgba(120, 140, 160, 0.2) 28px);
    background-size: 100% 100%, 100% 28px;
    border-right: 2.5px solid #8c5d2e;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    box-sizing: border-box;
    overflow-y: hidden;
    overflow-x: hidden;
    gap: 8px;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.65), inset 0 0 30px rgba(90, 50, 20, 0.15);
    z-index: 5;
    color: #2b1708;
    flex-shrink: 0 !important;
}

.workshop-viewport-center {
    flex: 1 1 0;
    min-width: 0 !important;
    width: 991px;
    max-width: calc(100% - 414px - 515px) !important;
    height: 100%;
    position: relative;
    overflow: hidden !important;
    background: radial-gradient(ellipse at 50% 48%, #ffffff 0%, #eef2f7 36%, #94a0b0 64%, #222831 86%, #090c11 100%);
    box-shadow: inset 0 0 64px rgba(6, 8, 12, 0.85);
    touch-action: none !important;
}

.workshop-viewport-center::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, 0) 44%, rgba(18, 24, 34, 0.36) 76%, rgba(6, 8, 12, 0.86) 100%);
    z-index: 2;
}

#workshop-3d-canvas-container > canvas,
.wb-threejs-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    pointer-events: auto !important;
    touch-action: none !important;
    z-index: 1;
}

.canvas-overlay-watermark {
    position: absolute;
    bottom: 16px;
    left: 20px;
    color: rgba(236, 212, 156, 0.65);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
    z-index: 4;
}

/* Viewport Corner Brackets & Navigation Hint Overlay */
.wb-viewport-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    border-color: rgba(223, 194, 130, 0.55);
    z-index: 4;
}

.wb-viewport-corner.top-left {
    top: 12px;
    left: 12px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.wb-viewport-corner.top-right {
    top: 12px;
    right: 12px;
    border-top: 2px solid;
    border-right: 2px solid;
}

.wb-viewport-corner.bottom-left {
    bottom: 12px;
    left: 12px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.wb-viewport-corner.bottom-right {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.wb-viewport-nav-hint {
    display: none !important; /* Terintegrasi bersih di .workshop-bottom-bar */
}

.nav-hint-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-hint-key {
    color: #f6d289;
    font-weight: 700;
}

.nav-hint-sep {
    color: #8c5d2e;
    font-size: 8px;
}

/* Sidebar Kanan: Lembaran Kertas Arsip Komponen Modular (+12% Scaling from 460px to 515px per User Instruction) */
.workshop-sidebar-right {
    width: 515px !important;
    min-width: 515px !important;
    max-width: 515px !important;
    height: 100%;
    max-height: 100%;
    background-color: #f7f1e1;
    background-image: 
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.4) 0%, rgba(225, 205, 175, 0.5) 75%, rgba(185, 155, 120, 0.7) 100%),
        linear-gradient(to bottom, transparent 27px, rgba(120, 140, 160, 0.2) 28px);
    background-size: 100% 100%, 100% 28px;
    border-left: 2.5px solid #8c5d2e;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column;
    padding: 12px 14px;
    box-sizing: border-box;
    overflow-y: hidden;
    overflow-x: hidden;
    gap: 8px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.65), inset 0 0 30px rgba(90, 50, 20, 0.15);
    z-index: 5;
    color: #2b1708;
    flex-shrink: 0 !important;
}

.codex-section-header {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 13.5px;
    color: #2b1708;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #8c5d2e;
    padding-bottom: 7px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#wb-drone-name-display {
    background: #8c5d2e;
    color: #ffffff !important;
    padding: 3px 9px;
    border-radius: 4px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10.5px !important;
    font-weight: 700;
    letter-spacing: 0.8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Stats Cards - Prominent Hero Spec Display (Generous Height, Symmetrical 6 Stats) */
.stats-grid-card {
    background: rgba(255, 255, 255, 0.90);
    border: 1.5px solid rgba(140, 93, 46, 0.55);
    border-radius: 9px;
    padding: 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10), inset 0 0 20px rgba(225, 205, 175, 0.35);
    flex: 0 0 auto;
    height: 310px;
    box-sizing: border-box;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17.5px;
    gap: 10px;
    color: #3b220e;
}

.stat-icon {
    display: none !important;
}

.stat-label {
    width: 84px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #3b220e;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.stat-bar-container {
    flex: 1;
    height: 22px;
    background: #1c1108;
    border: 1.5px solid #7c522b;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 12px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65);
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    background: #8c5d2e;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    position: relative;
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 100%);
    pointer-events: none;
}

.stat-bar-fill.hp { 
    background: linear-gradient(90deg, #b91c1c, #ef4444); 
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); 
}
.stat-bar-fill.def { 
    background: linear-gradient(90deg, #785e2f, #b89146); 
    box-shadow: 0 0 6px rgba(184, 145, 70, 0.4); 
}
.stat-bar-fill.atk { 
    background: linear-gradient(90deg, #c25e03, #f59e0b); 
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); 
}
.stat-bar-fill.aspd { 
    background: linear-gradient(90deg, #0284c7, #38bdf8); 
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4); 
}
.stat-bar-fill.speed { 
    background: linear-gradient(90deg, #15803d, #22c55e); 
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); 
}
.stat-bar-fill.energy { 
    background: linear-gradient(90deg, #b45309, #eab308); 
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.4); 
}

.stat-val {
    min-width: 82px;
    width: auto;
    white-space: nowrap;
    text-align: right;
    font-weight: 900;
    color: #1a0f07;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 19px;
    letter-spacing: 0.2px;
}

.stat-val-sub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #0284c7;
    margin-left: 3px;
}

.stat-row-mass,
.stat-row-status {
    display: none !important;
}

.status-badge {
    display: inline-block;
    padding: 2.5px 8px;
    border-radius: 4px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #4a341e;
    background: #e6dac6;
    border: 1px solid #b59878;
}

.status-badge.active-main {
    background: #dcfce7;
    color: #14532d;
    border: 1.2px solid #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.25);
}

#btn-wb-toggle-sockets.active {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    background: rgba(34, 197, 94, 0.12);
}

#btn-wb-toggle-sockets.off {
    color: #888888;
    background: transparent;
}

/* Infusion List & Grid */
.infusion-panel {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.infusion-storage-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.infusion-bottle-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(140, 93, 46, 0.35);
    border-radius: 6px;
    padding: 6px 4px 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 114px;
}

.infusion-bottle-card:hover {
    border-color: #8c5d2e;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(80, 50, 20, 0.15);
}

.infusion-bottle-card.empty-slot {
    border: 1px dashed rgba(171, 147, 109, 0.45);
    background: rgba(240, 233, 218, 0.25);
    opacity: 0.55;
    justify-content: center;
}

.infusion-bottle-container {
    width: 62px;
    height: 72px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.infusion-bottle-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.infusion-mol-preview {
    position: absolute;
    top: 47px;
    left: 50%;
    width: 0;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.infusion-mol-preview .molecule {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0.24) !important;
    transform-origin: center center !important;
    pointer-events: none !important;
    margin: 0 !important;
}

.infusion-bottle-meta {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.infusion-mol-formula {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10px;
    font-weight: 700;
    color: #2b1708;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.infusion-mol-name {
    font-size: 8.5px;
    color: #7a542b;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    margin-bottom: 4px;
}

.infusion-btn-apply {
    width: 100%;
    background: linear-gradient(180deg, #8c5d2e 0%, #68411b 100%);
    border: 1px solid #543314;
    color: #ffffff;
    padding: 3px 0;
    border-radius: 3px;
    font-size: 9.5px;
    cursor: pointer;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: bold;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.infusion-btn-apply:hover {
    background: linear-gradient(180deg, #a4703a 0%, #7d4d20 100%);
    border-color: #baa06e;
    color: #ffffff;
}

/* Carousel Controls & Mini Nav */
.carousel-mini-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-arrow-btn {
    background: #3b2210;
    border: 1px solid #754c25;
    color: #f7eed8;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.15s;
    user-select: none;
}

.carousel-arrow-btn:hover {
    background: #5d381b;
    border-color: #baa06e;
    color: #ffffff;
}

.carousel-indicator-text {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10.5px;
    font-weight: 700;
    color: #8c5d2e;
    min-width: 26px;
    text-align: center;
}

/* Category Filter Bar (1-Row 2-Visible Carousel) */
.parts-category-carousel {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.parts-category-bar {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
}

.parts-category-bar::-webkit-scrollbar {
    display: none;
}

.cat-slide-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 6px;
    flex-shrink: 0;
}

.cat-pill {
    flex: 0 0 calc(50% - 3px);
    scroll-snap-align: start;
    min-width: 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 230, 215, 0.75) 100%);
    border: 1px solid rgba(140, 93, 46, 0.45);
    border-radius: 5px;
    padding: 0 8px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #4a2c12;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cat-pill:hover {
    background: #ffffff;
    color: #1a0d05;
    border-color: #8c5d2e;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(140, 93, 46, 0.25);
}

.cat-pill.active {
    background: linear-gradient(180deg, #3d2514 0%, #1e1208 100%);
    border-color: #c9a86a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Socket Code Badges - High Contrast Solid Theme (Bebas Silau / Gradasi Putih) */
.part-socket-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #18120b;
    color: #ebd7b2;
    border: 1.2px solid #8c5d2e;
    border-radius: 4px;
    height: 32px;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.part-socket-badge .part-socket-code-letter {
    font-weight: 900;
    font-size: 13px;
}

/* Socket Type Specific Solid Dark Color Themes */
.part-socket-badge.socket-B {
    background: #0b1a26;
    border-color: #0284c7;
    color: #bae6fd;
}
.part-socket-badge.socket-B .part-socket-code-letter { 
    color: #38bdf8; 
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.7); 
}

.part-socket-badge.socket-M {
    background: #0a1f11;
    border-color: #16a34a;
    color: #bbf7d0;
}
.part-socket-badge.socket-M .part-socket-code-letter { 
    color: #4ade80; 
    text-shadow: 0 0 6px rgba(74, 222, 128, 0.7); 
}

.part-socket-badge.socket-EC {
    background: #241403;
    border-color: #d97706;
    color: #fef3c7;
}
.part-socket-badge.socket-EC .part-socket-code-letter { 
    color: #fbbf24; 
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.7); 
}

.part-socket-badge.socket-CPU {
    background: #121029;
    border-color: #4f46e5;
    color: #e0e7ff;
}
.part-socket-badge.socket-CPU .part-socket-code-letter { 
    color: #818cf8; 
    text-shadow: 0 0 6px rgba(129, 140, 248, 0.7); 
}

.part-socket-badge.socket-WA {
    background: #260a0a;
    border-color: #dc2626;
    color: #fee2e2;
}
.part-socket-badge.socket-WA .part-socket-code-letter { 
    color: #f87171; 
    text-shadow: 0 0 6px rgba(248, 113, 113, 0.7); 
}

.part-socket-badge.socket-WB {
    background: #1f0a2b;
    border-color: #9333ea;
    color: #f3e8ff;
}
.part-socket-badge.socket-WB .part-socket-code-letter { 
    color: #c084fc; 
    text-shadow: 0 0 6px rgba(192, 132, 252, 0.7); 
}

.part-socket-badge.socket-L {
    background: #151920;
    border-color: #64748b;
    color: #f1f5f9;
}
.part-socket-badge.socket-L .part-socket-code-letter { 
    color: #cbd5e1; 
    text-shadow: 0 0 6px rgba(203, 213, 225, 0.7); 
}

/* Modular Parts Tray */
.parts-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 6px;
    flex: 1;
    min-height: 0;
    overflow: hidden; /* Dilarang ada slider / scrollbar vertikal */
    padding-right: 0;
    touch-action: pan-y;
    will-change: transform, opacity;
}

.part-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 246, 238, 0.93) 100%);
    border: none !important; /* Dilarang ada frame jika komponen tidak dipasang */
    border-left: none !important;
    border-radius: 7px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 0 12px rgba(225, 205, 175, 0.22);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    flex: 1 1 0;
    min-height: 0;
    max-height: calc(50% - 5px);
    cursor: pointer;
    position: relative;
}

.part-card:hover {
    background: #ffffff;
    border: none !important;
    border-left: none !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(80, 50, 20, 0.15);
}

/* Frame Cokelat Gelap Tebal Komponen Terpasang (Per User Instruction) */
.part-card.is-equipped {
    border: 3px solid #3b230f !important;
    border-left: 5px solid #24140b !important;
    box-shadow: 0 3px 12px rgba(43, 23, 8, 0.35), inset 0 0 12px rgba(43, 23, 8, 0.08) !important;
}

.part-card.is-equipped:hover {
    background: #ffffff !important;
    border-color: #5d3816 !important;
    border-left-color: #3b230f !important;
    box-shadow: 0 6px 18px rgba(43, 23, 8, 0.45), inset 0 0 16px rgba(43, 23, 8, 0.12) !important;
}

.part-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 32px;
    margin-bottom: 5px;
    flex-wrap: nowrap !important; /* Header tag pasti 1 baris per komponen */
    width: 100%;
}

.part-card-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap !important; /* Header tag pasti 1 baris per komponen */
    min-width: 0;
    flex-shrink: 1;
}

/* Kotak Kuantitas Komponen (Pojok Kiri Atas: X1, X2, dst) */
.part-qty-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 13px;
    font-weight: 800;
    color: #ebd7b2;
    background: #24140b;
    border: 1.2px solid #8c5d2e;
    border-radius: 4px;
    height: 32px;
    padding: 0 9px;
    box-sizing: border-box;
    line-height: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

/* Badge Kualitas Dasar Komponen (CBQ: Normal, Good, Excellent, dst - Sejajar 32px Tanpa Persen) */
.part-cbq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 12px;
    font-weight: 800;
    border: 1.2px solid #78716c;
    border-radius: 4px;
    height: 32px;
    padding: 0 9px;
    box-sizing: border-box;
    line-height: 1;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Kotak Status Terpasang di Dock (EQUIPPED - DOCK 1) - Hidden per user instruction: replaced by green frame */
.part-equipped-dock-box {
    display: none !important;
}

.part-equipped-dock-box.other-dock {
    color: #78350f;
    background: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}

.part-btn-in-use {
    font-family: 'Cinzel', serif;
    font-size: 12.5px;
    font-weight: 800;
    height: 32px;
    padding: 0 11px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #64748b;
    border: 1px solid #cbd5e1;
    cursor: not-allowed;
    letter-spacing: 0.4px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}

.part-action-col {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.part-slot-count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #8c5d2e;
}

.part-info-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 16.5px;
    font-weight: 800;
    color: #241306;
    letter-spacing: 0.4px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* Video Game RPG Stat Block Layout */
.part-stat-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 5px;
    background: rgba(140, 93, 46, 0.07);
    border: 1px solid rgba(140, 93, 46, 0.25);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 4px;
    flex: 1;
    min-height: 0;
}

.part-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    gap: 6px;
    border-bottom: 0.5px dashed rgba(140, 93, 46, 0.2);
    padding-bottom: 2.5px;
}

.part-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.part-stat-label {
    color: #1f160e;
    font-size: 13.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.part-stat-value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #1c1917;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Stat Value Modifiers - Deep Dark Contrast Palette per User Instruction */
.part-stat-value.atk {
    color: #7f1d1d; /* Dark Crimson */
    font-weight: 900;
}

.part-stat-value.def {
    color: #5a3814; /* Dark Bronze */
    font-weight: 900;
}

.part-stat-value.hp {
    color: #14532d; /* Dark Forest Emerald */
    font-weight: 900;
}

.part-stat-value.speed {
    color: #1e3a8a; /* Dark Navy Blue */
    font-weight: 900;
}

.part-stat-value.energy {
    color: #78350f; /* Dark Burnt Amber */
    font-weight: 900;
}

.part-stat-value.highlight {
    color: #312e81; /* Dark Indigo */
    font-weight: 900;
}

.part-stat-value.mass {
    color: #1f2937; /* Dark Slate Ink */
    font-weight: 900;
    font-size: 14.5px;
}

.part-btn-assemble {
    background: linear-gradient(180deg, #3d2514 0%, #1e1208 100%);
    border: 1px solid #c9a86a;
    color: #ffffff;
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 800;
    letter-spacing: 0.6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.part-btn-assemble:hover {
    background: linear-gradient(180deg, #5a381f 0%, #2e1c10 100%);
    border-color: #ffd700;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(46, 28, 16, 0.6);
}

.part-btn-disassemble {
    background: linear-gradient(180deg, #8b1d1d 0%, #5a1111 100%);
    border: 1px solid #3d0a0a;
    color: #ffffff;
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 800;
    letter-spacing: 0.6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.part-btn-disassemble:hover {
    background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(185, 28, 28, 0.5);
}

/* Navigasi Paginasi Komponen Modular di Tengah Bawah */
.parts-bottom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
    margin-top: auto;
    border-top: 1.5px solid rgba(140, 93, 46, 0.35);
    flex-shrink: 0;
}

.parts-bottom-pagination .carousel-mini-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.parts-bottom-pagination .carousel-arrow-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 6px;
}

.parts-bottom-pagination .carousel-indicator-text {
    font-size: 15px;
    font-weight: 800;
    min-width: 42px;
}

/* ==========================================================================
   TEST FLIGHT ROOM
   ========================================================================== */
.flight-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flight-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.flight-hud-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flight-telemetry-box {
    background: linear-gradient(180deg, #20120a 0%, #120a05 100%);
    border: 1.5px solid #8c5d2e;
    border-radius: 4px;
    padding: 12px 18px;
    color: #ecdcb9;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    pointer-events: auto;
}

.telemetry-row {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.telemetry-val {
    color: #baa06e;
    font-weight: bold;
}

.flight-controls-guide {
    background: linear-gradient(180deg, #20120a 0%, #120a05 100%);
    border: 1.5px solid #8c5d2e;
    border-radius: 4px;
    padding: 12px 18px;
    color: #eddcb7;
    font-size: 11px;
    line-height: 1.6;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.target-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 2px solid #baa06e;
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================================================
   3D COMPONENT INSPECTOR MODAL (Interactive Three.js CAD Viewport)
   ========================================================================== */
.ci-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #140d07 url('assets/desk-component.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

.ci-modal-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 10, 5, 0.4) 0%, rgba(8, 4, 2, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

.ci-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.ci-modal-window {
    position: relative;
    z-index: 2;
    width: min(95%, 1380px);
    max-width: 1400px;
    height: 96%;
    max-height: 825px;
    background: #f4ecd8;
    background-image: radial-gradient(#e4d6bc 1px, transparent 1px);
    background-size: 20px 20px;
    border: 3px double #5a3d1b;
    border-radius: 10px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(90, 61, 27, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ciModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes ciModalPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ornamental Corner Rivets */
.ci-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid #baa06e;
    pointer-events: none;
    z-index: 5;
}
.ci-corner.top-left { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.ci-corner.top-right { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.ci-corner.bottom-left { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.ci-corner.bottom-right { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* Header */
.ci-modal-header {
    background-color: #29180b;
    background-image: url('assets/leather-texture-long.jpg');
    background-repeat: repeat-x;
    background-position: center center;
    background-size: 512px 189px;
    border-bottom: 2px solid #baa06e;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(223, 194, 130, 0.2), inset 0 -3px 8px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.ci-header-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ci-socket-badge {
    align-self: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #baa06e;
    letter-spacing: 1.2px;
}

.ci-component-title {
    margin: 2px 0 0 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 32px; /* Enlarged per user instruction */
    font-weight: 900;
    color: #f7ecd5;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.15;
}

.ci-component-code {
    display: none !important; /* "bagian atas Code : ... itu ilangin aja" */
}

.ci-btn-close {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #baa06e;
    border-radius: 6px;
    color: #baa06e;
    font-size: 28px;
    line-height: 1;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ci-btn-close:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: scale(1.05);
}

/* Modal Body Grid */
.ci-modal-body {
    display: flex;
    padding: 14px 22px;
    gap: 18px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* 3D Viewport Column */
.ci-viewport-col {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ci-viewport-box {
    flex: 1;
    position: relative;
    background-color: #cfd6e0;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 50% 45%, #e6ebf2 0%, #c5cdd8 72%, #aeb8c6 100%);
    background-size: 28px 28px, 28px 28px, 100% 100%;
    border: 1.5px solid rgba(140, 93, 46, 0.45);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(90, 61, 27, 0.12);
    min-height: 0;
    height: 100%;
}

.ci-viewport-box canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    cursor: grab;
}

.ci-viewport-box canvas:active {
    cursor: grabbing;
}

/* HUD Overlay Elements (Hidden per user instruction: "tulisan Drag putar 3D, Scroll perbesar, ilangin aja") */
.ci-hud-top-left {
    display: none !important;
}

.ci-hud-label {
    display: none !important;
}

.ci-hud-key {
    display: none !important;
}

.ci-hud-controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.ci-hud-btn {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(28, 22, 17, 0.90);
    border: 1.5px solid #8c6a3e;
    border-radius: 6px;
    color: #f7ecd5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ci-hud-btn:hover {
    background: #3e2817;
    border-color: #baa06e;
    color: #ffffff;
}

.ci-hud-btn.active {
    background: linear-gradient(180deg, #baa06e 0%, #8c5d2e 100%);
    color: #1a0f07;
    border-color: #5a3d1b;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(90, 61, 27, 0.4);
}

/* Specifications Column (+15% Width Expansion per User Instruction) */
.ci-specs-col {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    box-sizing: border-box;
}

.ci-specs-col::-webkit-scrollbar {
    width: 6px;
}

.ci-specs-col::-webkit-scrollbar-track {
    background: rgba(90, 61, 27, 0.1);
    border-radius: 3px;
}

.ci-specs-col::-webkit-scrollbar-thumb {
    background: #8c5d2e;
    border-radius: 3px;
}

.ci-specs-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1.5px solid #c2a882;
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: inset 0 1px 3px rgba(90, 61, 27, 0.1), 0 2px 6px rgba(90, 61, 27, 0.08);
    display: flex;
    flex-direction: column;
}

.ci-section-title {
    margin: 0 0 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17.5px;
    font-weight: 900;
    color: #3b220e;
    border-bottom: 1.5px solid rgba(140, 93, 46, 0.45);
    padding-bottom: 5px;
    letter-spacing: 0.6px;
}

.ci-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 28px;
}

.ci-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(180, 150, 110, 0.5);
    padding: 4px 0;
}

.ci-stat-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #3b220e;
    letter-spacing: 0.2px;
}

.ci-stat-value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17.6px;
    font-weight: 900;
    color: #1a0f07;
    letter-spacing: 0.2px;
}

.ci-stat-value.atk { color: #7f1d1d; font-weight: 900; }
.ci-stat-value.hp { color: #14532d; font-weight: 900; }
.ci-stat-value.def { color: #5a3814; font-weight: 900; }
.ci-stat-value.speed { color: #1e3a8a; font-weight: 900; }
.ci-stat-value.energy { color: #78350f; font-weight: 900; }
.ci-stat-value.highlight { color: #312e81; font-weight: 900; }

/* CAD Spec Box */
.ci-cad-spec-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ci-cad-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 18px; /* Enlarged from 15.5px per user instruction */
    line-height: 1.4;
    gap: 14px;
    padding: 2px 0;
}

.ci-cad-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    font-size: 18px; /* Enlarged from 15.5px */
    color: #3b220e;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.ci-cad-val {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px; /* Enlarged from 15.5px */
    font-weight: 700;
    color: #1a0f07;
    text-align: right;
    line-height: 1.4;
    word-break: break-word;
    max-width: 70%;
}

.ci-cad-val.highlight {
    color: #78350f;
    font-family: 'Consolas', 'Segoe UI', monospace;
    font-size: 19px; /* Enlarged from 16px */
    font-weight: 900;
}

.ci-cad-notes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1.5px dashed rgba(140, 93, 46, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-size: 17.5px; /* Enlarged from 15px */
    font-weight: 600;
    line-height: 1.45;
    color: #2b1708;
    letter-spacing: 0.15px;
    word-break: break-word;
}

/* Action Button Tray */
.ci-action-tray {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 4px;
}

.ci-action-btn {
    width: 100%;
    padding: 13px 18px; /* Scaled +15% from 11px 16px */
    min-height: 48px; /* Scaled +15% from 42px */
    font-family: 'Cinzel', serif;
    font-size: 16px; /* Scaled +15% from 14px */
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ci-action-btn.assemble {
    background: linear-gradient(180deg, #baa06e 0%, #8c5d2e 100%);
    border: 1px solid #f7ecd5;
    color: #1a0f07;
}

.ci-action-btn.assemble:hover {
    background: linear-gradient(180deg, #d4ba88 0%, #a6733c 100%);
    box-shadow: 0 4px 12px rgba(186, 160, 110, 0.4);
    transform: translateY(-1px);
}

.ci-action-btn.disassemble {
    background: linear-gradient(180deg, #991b1b 0%, #6b1414 100%);
    border: 1px solid #ef4444;
    color: #ffffff;
}

.ci-action-btn.disassemble:hover {
    background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.ci-action-btn.disabled {
    background: #b5a48e;
    border: 1px solid #8c7e6c;
    color: #554839;
    cursor: not-allowed;
    opacity: 0.7;
}

.ci-action-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
}

.ci-action-row .ci-action-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 12px; /* Scaled +15% from 11px 10px */
    font-size: 15px; /* Scaled +15% from 13px */
    min-height: 48px; /* Scaled +15% from 42px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ci-action-btn.dismantle {
    background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
    border: 1px solid #b45309;
    color: #fef3c7;
}

.ci-action-btn.dismantle:hover {
    background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.4);
    transform: translateY(-1px);
}

.ci-action-btn.dismantle.disabled {
    background: #b5a48e;
    border: 1px solid #8c7e6c;
    color: #554839;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 10-Second Dismantle Countdown Bar */
.ci-dismantle-bar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 48px; /* Scaled +15% from 42px */
    box-sizing: border-box;
}

.ci-dismantle-bar-container.hidden {
    display: none !important;
}

.ci-dismantle-track {
    position: relative;
    flex: 1;
    height: 100%;
    background: #2a1608;
    border: 1.5px solid #8c5d2e;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.ci-dismantle-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    transition: width 0.1s linear;
}

.ci-dismantle-text {
    position: relative;
    z-index: 2;
    font-family: 'Cinzel', serif;
    font-size: 13.8px; /* Scaled +15% from 12px */
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 4px #000;
    pointer-events: none;
    white-space: nowrap;
}

.ci-dismantle-cancel-btn {
    width: 48px; /* Scaled +15% from 42px */
    height: 48px; /* Scaled +15% from 42px */
    flex-shrink: 0;
    background: linear-gradient(180deg, #991b1b 0%, #5f1010 100%);
    border: 1px solid #ef4444;
    border-radius: 7px;
    color: #ffffff;
    font-size: 18px; /* Scaled +15% from 16px */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.ci-dismantle-cancel-btn:hover {
    background: linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%);
    border-color: #f87171;
    transform: scale(1.05);
}

.part-3d-hint-tag {
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    color: #8c5d2e;
    background: rgba(186, 160, 110, 0.18);
    border: 1px solid rgba(140, 93, 46, 0.3);
    border-radius: 2px;
    padding: 1px 4px;
    margin-left: 6px;
    display: inline-block;
    transition: all 0.15s ease;
}

.part-card:hover .part-3d-hint-tag {
    background: #baa06e;
    color: #1a0f07;
    border-color: #8c5d2e;
}

/* Responsive adjustments (Neutralized for Virtual Canvas Scaler 1920x864 parity) */
@media (max-width: 0px) {
    .ci-modal-window {
        width: 98% !important;
        height: 96% !important;
        max-height: 96% !important;
    }
}

/* ==========================================================================
   MISSION SELECTOR MODAL (BAB IV EKSPEDISI)
   ========================================================================== */
.mission-modal-window {
    max-width: 1280px !important;
}

.mission-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 20px 22px 24px;
    box-sizing: border-box;
}

.mission-tier-card {
    background: radial-gradient(circle at 50% 20%, #2a2016 0%, #17120c 100%);
    border: 1.5px solid #6b4c2b;
    border-radius: 8px;
    padding: 36px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.mission-tier-card:hover {
    transform: translateY(-4px);
    border-color: #d4af37;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85), 0 0 18px rgba(212, 175, 55, 0.35);
}

.mission-card-badge {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.mission-card-badge.tier-d {
    background: rgba(180, 83, 9, 0.25);
    color: #fbbf24;
    border: 1px solid #d97706;
}

.mission-card-badge.tier-c {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid #059669;
}

.mission-card-badge.tier-b {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid #2563eb;
}

.mission-card-badge.tier-a {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid #9333ea;
}

.mission-card-badge.tier-s {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(234, 179, 8, 0.3));
    color: #fef08a;
    border: 1px solid #eab308;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
}

.mission-card-badge.tier-x {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.55), rgba(30, 27, 75, 0.65));
    color: #fca5a5;
    border: 1px solid #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.65);
}

.mission-card-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 800;
    color: #f3e8d2;
    margin: 4px 0 2px;
    letter-spacing: 1px;
}

.mission-card-role {
    font-size: 10px;
    font-weight: 600;
    color: #a89478;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-card-desc {
    font-size: 11px;
    color: #d1c2aa;
    line-height: 1.45;
    margin: 0 0 16px;
    flex: 1;
}

.mission-card-footer {
    width: 100%;
    margin-top: auto;
}

.mission-deploy-btn {
    width: 100%;
    padding: 8px 10px;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #231709;
    background: linear-gradient(180deg, #e8c67a 0%, #c49942 100%);
    border: 1px solid #ffd880;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.mission-deploy-btn:hover {
    background: linear-gradient(180deg, #f7dda0 0%, #d8ad52 100%);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

.mission-deploy-btn:active {
    transform: translateY(1px);
}

/* Locked & Cleared Progression States on Mission Selector */
.mission-tier-card.is-locked {
    filter: grayscale(0.55) brightness(0.76);
    border-color: #4a3a29;
    cursor: not-allowed;
}

.mission-tier-card.is-locked:hover {
    transform: none;
    border-color: #5b4530;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.mission-lock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(20, 14, 10, 0.92);
    border: 1px solid #9c7a48;
    color: #e6c675;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    pointer-events: none;
}

.mission-cleared-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(6, 78, 59, 0.85);
    border: 1px solid #34d399;
    color: #a7f3d0;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.mission-deploy-btn.is-locked,
.mission-deploy-btn:disabled {
    background: linear-gradient(180deg, #3a3026 0%, #261f18 100%);
    border-color: #5a4835;
    color: #a89478;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
}

.mission-deploy-btn.is-locked:hover,
.mission-deploy-btn:disabled:hover {
    background: linear-gradient(180deg, #3a3026 0%, #261f18 100%);
    box-shadow: none;
    transform: none;
}

@media (max-width: 1024px) {
    .mission-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 640px) {
    .mission-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BAB IV: SISTEM MISI EKSPEDISI ANTARIKSA & MANDA INTERACTION
   ========================================================================== */

/* 1. Manda Proximity Action Prompt [E] */
.manda-action-prompt {
    position: fixed;
    bottom: 24%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    background: #0f172a;
    border: 1px solid rgba(245, 158, 11, 0.7);
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.35);
    z-index: 9990;
    cursor: pointer;
    animation: mandaPromptPulse 2.0s infinite ease-in-out;
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.manda-action-prompt:hover {
    transform: translateX(-50%) scale(1.04);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 24px rgba(245, 158, 11, 0.55);
}

@keyframes mandaPromptPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 158, 11, 0.6);
    }
}

.manda-prompt-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 900;
    color: #1a1208;
    background: linear-gradient(180deg, #fce59f 0%, #d4af37 100%);
    border: 1px solid #ffe699;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.manda-prompt-text {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #fce7b0;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 2. Manda Dialogue Popup (Kanan Atas Samping Manda) */
/* Sembunyikan Flight HUD saat chatbox dialog Manda dibuka */
body.manda-dialogue-active .flight-hud-overlay,
body.manda-dialogue-active .flight-hud-top,
body.manda-dialogue-active .flight-hud-bottom,
body.manda-dialogue-active #flight-joystick-zone,
body.manda-dialogue-active #flight-actions-cluster,
body.manda-dialogue-active #flight-btn-nano-liquid,
body.manda-dialogue-active #flight-terminal-container,
body.manda-dialogue-active #fl-attitude-disc,
body.manda-dialogue-active #btn-flight-home,
body.manda-dialogue-active #bg-tactical-radar,
body.manda-dialogue-active #bg-combat-scoreboard,
body.manda-dialogue-active #manda-action-prompt,
body.manda-dialogue-active #manda-nano-liquid-widget,
body.manda-dialogue-active .flight-touch-interactive {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 2. Unified Manda Expedition Console (Master Modal - Anti-Overlap & Mobile-First) */
.manda-dialogue-popup {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005;
    pointer-events: auto;
    padding: clamp(8px, 1.5vh, 18px);
    box-sizing: border-box;
    animation: mandaDialogueFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.manda-dialogue-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 8, 4, 0.88);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
}

@keyframes mandaDialogueFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.unified-expedition-card {
    position: relative;
    z-index: 2;
    width: 1606px;
    max-width: 98%;
    height: 858px;
    max-height: 98%;
    display: flex;
    flex-direction: column;
    background: #f4ecd8 url('assets/deckle-paper.jpg') repeat;
    background-size: cover;
    border: 3px double #78350f;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 0 60px rgba(120, 53, 15, 0.25);
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    color: #2b1d0c;
}

/* Antique Manuscript Corner Brackets */
.manda-card-border-ornament {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #8c5d2e;
    border-style: solid;
    pointer-events: none;
    z-index: 3;
}
.manda-card-border-ornament.tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.manda-card-border-ornament.tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.manda-card-border-ornament.bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.manda-card-border-ornament.br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

/* Master Header - Rich Dark Leather Matching Forge & Dossier */
.manda-dialogue-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 26px;
    border-bottom: 2px solid #8c5d2e;
    background: linear-gradient(180deg, #382313 0%, #241409 100%);
    box-shadow: inset 0 1px 0 rgba(223, 194, 130, 0.2), 0 2px 8px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    box-sizing: border-box;
}

.manda-avatar-frame {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #9a5412 0%, #5c2d08 75%, #2f1403 100%);
    border: 2px solid #c99a49;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 0 6px rgba(254, 243, 199, 0.25);
}

.manda-avatar-emblem {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    color: #fff8e7;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.manda-header-info {
    flex: 1;
}

.manda-char-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 22px;
    font-weight: 800;
    color: #f7ecd5;
    letter-spacing: 1.4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.manda-char-tag {
    font-family: 'Cinzel', serif;
    font-size: 11.5px;
    font-weight: 800;
    color: #f7ecd5;
    background: rgba(180, 83, 9, 0.25);
    border: 1px solid #c99a49;
    border-radius: 4px;
    padding: 2.5px 8px;
    margin-left: 10px;
    letter-spacing: 0.8px;
    display: inline-block;
    vertical-align: middle;
}

.manda-char-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    color: #e6d3b3;
    letter-spacing: 0.6px;
    font-style: italic;
}

.manda-header-gold-pill {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 17px;
    background: #1a0f06;
    border: 1.5px solid #9a6b32;
    border-radius: 7px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}

.manda-gold-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    color: #d9c09a;
    letter-spacing: 1px;
}

.manda-gold-value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 20.5px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.4px;
}

.manda-gold-unit {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    color: #f6c95b;
    letter-spacing: 0.8px;
}

.manda-dialogue-btn-close {
    width: 48px;
    height: 48px;
    background: #4a2e18;
    border: 1.5px solid #c99a49;
    border-radius: 50%;
    color: #fbf5e8;
    font-size: 30px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.manda-dialogue-btn-close:hover {
    background: #6e4420;
    border-color: #ffd700;
    color: #ffffff;
    transform: scale(1.05);
}

/* Master 2 Columns Body: 30% Narrative / 70% Tactics (Width reduced -15% from left side) */
.manda-dialogue-body-unified {
    display: grid;
    grid-template-columns: 30% 70%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: transparent;
}

/* Left Column: Rich Narrative & Lore */
.manda-col-narrative {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-right: 2px solid #8c5d2e;
    padding: 24px 22px 24px 22px;
    min-height: 0;
    background: rgba(255, 252, 245, 0.72);
    box-sizing: border-box;
    overflow: hidden;
    gap: 24px;
}

/* Symmetrical M01 Manda Portrait at Top (+15% larger: 202x202px) */
.manda-portrait-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-shrink: 0;
    width: 100%;
}

.manda-portrait-img {
    width: 202px;
    height: 202px;
    object-fit: cover;
    border-radius: 16px;
    border: 2.5px solid #8c5d2e;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), inset 0 0 12px rgba(120, 53, 15, 0.2);
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    background: #0f172a;
}

.manda-tactics-section .manda-col-panel-title {
    display: none;
}

.manda-col-panel-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 900;
    color: #2b1708;
    letter-spacing: 1.1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.manda-panel-icon {
    font-size: 13px;
    color: #9a5412;
}

.manda-narrative-scroll {
    flex: 1 1 auto;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px 12px 4px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: #8c5d2e transparent;
}

.manda-dialogue-speech {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 19.5px;
    line-height: 1.48;
    color: #1c1917;
    letter-spacing: 0.15px;
    margin: auto 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.manda-speech-lead {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #3b1904;
    letter-spacing: 0.2px;
    line-height: 1.44;
    text-shadow: none;
    margin: 0;
    text-align: center;
    width: 100%;
}

.manda-speech-lead strong {
    color: #7f1d1d;
    font-weight: 900;
}

.manda-speech-body-p {
    color: #26190f;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.48;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.15px;
    margin: 0;
    width: 100%;
}

.manda-speech-body-p strong {
    color: #451a03;
    font-weight: 800;
}

/* Right Column: Tactics & Sektor + Nano Liquid */
.manda-col-tactics {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    padding: 14px 26px 12px;
    overflow: hidden;
    min-height: 0;
    box-sizing: border-box;
}

.manda-tactics-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Clear Visual Demarcation between Sektor Coordinates & Nano Dispensary */
.manda-tactics-section + .manda-tactics-section {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px dashed rgba(140, 93, 46, 0.35);
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Sektor Chips Grid (6 Columns: D, C, B, A, S, X) - Clean Frame Isolation */
.manda-tier-selector-container {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.manda-tier-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    background: transparent !important;
    border: 2px solid transparent !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    gap: 8px;
    touch-action: manipulation !important;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
    box-shadow: none !important;
}

.manda-tier-chip > * {
    pointer-events: none;
}

.manda-tier-chip:hover:not(.active) {
    background: rgba(255, 255, 255, 0.55) !important;
    transform: translateY(-2px);
}

.manda-tier-chip.active {
    background: #ffffff !important;
    border: 2.5px solid #1c1917 !important;
    box-shadow: 0 4px 12px rgba(45, 24, 10, 0.18) !important;
    transform: translateY(-2px);
}

.manda-tier-chip.active:hover {
    background: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 6px 14px rgba(45, 24, 10, 0.24) !important;
}

.manda-tier-chip .manda-tier-badge {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: #2b1708;
    background: rgba(255, 252, 245, 0.65);
    border: 2px solid #7c5c3e;
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.manda-tier-chip.active .manda-tier-badge {
    color: #fff8e7 !important;
    background: #2b1708 !important;
    border: 2px solid #2b1708 !important;
    box-shadow: 0 2px 6px rgba(43, 23, 8, 0.25) !important;
}

.manda-tier-chip .manda-tier-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.manda-tier-chip .manda-tier-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #2b1708;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.manda-tier-chip.active .manda-tier-title {
    color: #1c1917 !important;
    font-weight: 900;
}

.manda-tier-chip .manda-tier-boss {
    display: none !important;
}

.manda-tier-chip .manda-tier-threat {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    border: none !important;
    color: #543d26 !important;
    background: transparent !important;
    letter-spacing: 0.5px;
}

.manda-tier-chip.active .manda-tier-threat {
    border: 1.5px solid #2b1708 !important;
    color: #f8ebd2 !important;
    background: #2b1708 !important;
    font-weight: 900;
}

.manda-char-tag,
.manda-char-title {
    display: none !important;
}

/* Nano Liquid Cards 4 Rows Vertical List - Full-Height Stretch Mentok Sampai Bawah */
.manda-nano-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    justify-content: space-between;
    box-sizing: border-box;
}

.nano-shop-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1 1 0;
    min-height: 0;
    padding: 11px 20px;
    background: #fdfaf3;
    border: 1.5px solid #b5996e;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 2px 6px rgba(69, 26, 3, 0.08);
}

.nano-shop-item-card:hover {
    background: #ffffff;
    border-color: #8c5d2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 45, 20, 0.16);
}

.nano-shop-item-card.active {
    background: #f7eed6;
    border: 2px solid #8c5d2e;
    box-shadow: 0 3px 10px rgba(140, 93, 46, 0.24);
}

.nano-card-vial-preview {
    width: 26px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nano-mini-vial-tube {
    width: 18px;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 9px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
    border: 1.5px solid #8c5d2e;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.5), 0 2px 5px rgba(69, 26, 3, 0.18);
}

.nano-mini-vial-cap {
    width: 100%;
    height: 6px;
    background: linear-gradient(180deg, #b5833d 0%, #6b4115 100%);
    flex-shrink: 0;
}

.nano-mini-vial-liquid {
    width: 100%;
    flex: 1;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nano-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nano-card-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nano-card-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 21.5px;
    font-weight: 900;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Specific high-contrast dark ink accents for nano titles on warm parchment */
.nano-shop-item-card.green .nano-card-title { color: #065f46 !important; }
.nano-shop-item-card.red .nano-card-title { color: #991b1b !important; }
.nano-shop-item-card.blue .nano-card-title { color: #1e40af !important; }
.nano-shop-item-card.purple .nano-card-title { color: #6b21a8 !important; }

.nano-card-badge {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    padding: 3.5px 10px;
    border-radius: 4px;
    border: 1.5px solid #8c5d2e;
    background: #efe4cf;
    color: #2b1708;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.nano-shop-item-card.green .nano-card-badge {
    background: #dcfce7 !important;
    border-color: #15803d !important;
    color: #14532d !important;
}
.nano-shop-item-card.red .nano-card-badge {
    background: #fee2e2 !important;
    border-color: #b91c1c !important;
    color: #7f1d1d !important;
}
.nano-shop-item-card.blue .nano-card-badge {
    background: #dbeafe !important;
    border-color: #1d4ed8 !important;
    color: #1e3a8a !important;
}
.nano-shop-item-card.purple .nano-card-badge {
    background: #f3e8ff !important;
    border-color: #7e22ce !important;
    color: #581c87 !important;
}

.nano-card-desc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nano-card-effect-desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17.5px;
    color: #26190f;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nano-card-bullet {
    color: #8c5d2e;
    font-size: 16px;
    font-weight: 900;
    user-select: none;
}

.nano-card-charges {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #5c3b17;
    font-size: 16.5px;
    font-weight: 700;
    white-space: nowrap;
}

.nano-card-price {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.nano-shop-item-card.green .nano-card-price { color: #065f46 !important; }
.nano-shop-item-card.red .nano-card-price,
.nano-shop-item-card.blue .nano-card-price,
.nano-shop-item-card.purple .nano-card-price { color: #7c2d12 !important; }

.nano-card-actions {
    flex-shrink: 0;
}

.comic-chip-active-badge {
    padding: 12px 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: #14532d;
    border: 1.5px solid #166534;
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(20, 83, 45, 0.28);
    white-space: nowrap;
}

.comic-btn-equip {
    padding: 12px 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff8e7;
    background: linear-gradient(180deg, #5e3b1e 0%, #3a220e 100%);
    border: 1.5px solid #8c5d2e;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(45, 24, 10, 0.35);
}

.comic-btn-equip:hover {
    background: linear-gradient(180deg, #7c4f28 0%, #4d2d12 100%);
    border-color: #d4af37;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(45, 24, 10, 0.45);
    transform: translateY(-1px);
}

/* Master Footer - Rich Dark Leather Band */
.manda-dialogue-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 26px;
    border-top: 2px solid #8c5d2e;
    background: linear-gradient(180deg, #2b180b 0%, #1d1006 100%);
    box-shadow: inset 0 1px 0 rgba(223, 194, 130, 0.18);
    flex-shrink: 0;
    box-sizing: border-box;
}

.manda-footer-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.manda-status-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #d9c09a;
}

.manda-status-tier-tag {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #fff8e7 !important;
    background: #3d2412 !important;
    border: 1px solid #9a6b32 !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    letter-spacing: 0.6px;
}

.manda-status-dot {
    color: #c99a49;
    font-size: 14px;
}

.manda-status-nano-tag {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #86efac;
    background: #1a0f06 !important;
    border: 1px solid #8c5d2e !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    letter-spacing: 0.5px;
}

.manda-status-nano-tag.nano-green { color: #86efac !important; border-color: #16a34a !important; }
.manda-status-nano-tag.nano-red { color: #fca5a5 !important; border-color: #dc2626 !important; }
.manda-status-nano-tag.nano-blue { color: #93c5fd !important; border-color: #2563eb !important; }
.manda-status-nano-tag.nano-purple { color: #d8b4fe !important; border-color: #9333ea !important; }

.manda-footer-btns {
    display: flex;
    align-items: center;
    gap: 14px;
}

.manda-choice-btn {
    height: 62px;
    box-sizing: border-box;
    padding: 0 38px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    white-space: nowrap;
}

.manda-footer-btns .manda-btn-sub {
    display: none !important;
}

.manda-btn-secondary {
    min-width: 168px;
    background: #f4ecd8;
    border: 1.5px solid #c99a49;
    color: #2b1708;
}

.manda-btn-secondary:hover {
    background: #ffffff;
    border-color: #ffd700;
    color: #1a0d04;
    transform: translateY(-1px);
}

.manda-btn-primary {
    min-width: 264px;
    position: relative;
    background: linear-gradient(180deg, #b85c12 0%, #833c07 100%);
    border: 1.5px solid #e6b450;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 244, 214, 0.3);
}

.manda-btn-primary .manda-btn-sub {
    color: #fde68a;
    opacity: 0.9;
}

.manda-btn-primary:hover {
    background: linear-gradient(180deg, #cc6b18 0%, #964509 100%);
    border-color: #ffd700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    transform: translateY(-1px);
}

/* 3. Wave HUD & Boss Vital Bar (Streamlined & Minimalist +40% Scale) */
.mission-wave-hud {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) scale(1.40) !important;
    transform-origin: top center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    pointer-events: none;
}

.mission-wave-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: #0a0f1a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.mission-wave-tier-badge {
    font-family: 'Cinzel', serif;
    font-size: 9.5px;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 1px 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 2px;
    white-space: nowrap;
}

.mission-wave-title {
    font-family: 'Cinzel', serif;
    font-size: 11.5px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.mission-wave-sep {
    font-size: 10px;
    color: rgba(148, 163, 184, 0.5);
    user-select: none;
}

.mission-wave-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 10.5px;
    color: #94a3b8;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.mission-boss-vital-wrap {
    width: 380px;
    max-width: calc(100vw - 32px);
    padding: 5px 12px 6px 12px;
    background: linear-gradient(180deg, #140a0f 0%, #0c080e 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 10px rgba(239, 68, 68, 0.2);
}

.mission-boss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 8px;
}

.mission-boss-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mission-boss-tier-tag {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    font-weight: 800;
    color: #f59e0b;
    padding: 1px 5px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 2px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.mission-boss-tag {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    font-weight: 800;
    color: #ef4444;
    padding: 1px 5px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 2px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.mission-boss-name {
    font-family: 'Cinzel', serif;
    font-size: 11.5px;
    font-weight: 800;
    color: #fca5a5;
    letter-spacing: 1px;
    white-space: nowrap;
}

.mission-boss-hp-val {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mission-boss-hp-track {
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.mission-boss-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #b91c1c 0%, #ef4444 60%, #f87171 100%);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
    transition: width 0.15s ease-out;
}

/* 4. Mission Victory Modal - Authentic Renaissance Parchment & Ledger */
.mission-victory-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 12, 7, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10020;
    animation: missionVictoryFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-victory-modal.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@keyframes missionVictoryFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.mission-victory-card {
    position: relative;
    width: 1380px;
    min-height: 782px; /* +15% height from 680px */
    max-width: 95%;
    max-height: 95%;
    box-sizing: border-box;
    padding: 46px 50px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f4ecd8 url('assets/deckle-paper.jpg') repeat;
    background-size: cover;
    border: 3.5px double #78350f;
    border-radius: 12px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.88), inset 0 0 65px rgba(120, 53, 15, 0.22);
    text-align: center;
    font-family: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    color: #2b1d0c;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Inner decorative manuscript line */
.mission-victory-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1.5px solid rgba(140, 93, 46, 0.45);
    border-radius: 8px;
    pointer-events: none;
}

/* Antique Brass Corner Filigrees */
.mission-victory-card .brass-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: #8c5d2e;
    border-style: solid;
    pointer-events: none;
    z-index: 5;
}
.mission-victory-card .brass-corner-tl { top: 12px; left: 12px; border-width: 3.5px 0 0 3.5px; }
.mission-victory-card .brass-corner-tr { top: 12px; right: 12px; border-width: 3.5px 3.5px 0 0; }
.mission-victory-card .brass-corner-bl { bottom: 12px; left: 12px; border-width: 0 0 3.5px 3.5px; }
.mission-victory-card .brass-corner-br { bottom: 12px; right: 12px; border-width: 0 3.5px 3.5px 0; }

.mission-victory-badge {
    display: none !important;
}

.mission-victory-title {
    font-family: 'Cinzel', 'Palatino Linotype', Georgia, serif;
    font-size: 38px;
    font-weight: 900;
    color: #2b1807;
    letter-spacing: 3.5px;
    margin: 4px 0 24px 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.mission-victory-desc {
    display: none !important;
}

.mission-victory-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px;
    margin-bottom: 28px;
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid #ad8a57;
    border-radius: 10px;
    box-shadow: inset 0 1px 4px rgba(120, 53, 15, 0.1), 0 3px 8px rgba(0, 0, 0, 0.06);
}

.mission-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 4px;
    border-right: 1.5px dashed rgba(140, 93, 46, 0.38);
    min-width: 0;
    overflow: visible;
}

.mission-stat-item:last-child {
    border-right: none;
}

.mission-stat-label {
    font-family: 'Cinzel', serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #78350f;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

.mission-stat-val {
    font-family: 'Cinzel', 'Palatino Linotype', Georgia, serif;
    font-size: 21px;
    font-weight: 900;
    color: #2b1807;
    white-space: nowrap;
    text-align: center;
}

#mission-stat-score {
    color: #92400e !important;
    font-size: 24px;
    font-weight: 900;
}

.mission-victory-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.mission-btn-gold,
.mission-btn-outline {
    min-width: 340px;
    padding: 18px 40px;
    font-family: 'Cinzel', serif;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-btn-gold {
    color: #fffbeb;
    background: linear-gradient(180deg, #9a5412 0%, #78350f 100%);
    border: 1.5px solid #b45309;
    box-shadow: 0 4px 14px rgba(69, 26, 3, 0.35);
}
.mission-btn-gold:hover {
    background: linear-gradient(180deg, #b45309 0%, #92400e 100%);
    box-shadow: 0 6px 18px rgba(180, 83, 9, 0.45);
    transform: translateY(-1px);
}
.mission-btn-gold:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(69, 26, 3, 0.35);
}

.mission-btn-outline {
    color: #451a03;
    background: rgba(120, 53, 15, 0.08);
    border: 1.5px solid #8c5d2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mission-btn-outline:hover {
    background: rgba(120, 53, 15, 0.18);
    color: #200b02;
    border-color: #5c2d08;
    transform: translateY(-1px);
}
.mission-btn-outline:active {
    transform: translateY(1px);
}

/* Mission Reward Section & Loot Cards */
.mission-rewards-section {
    margin-bottom: 28px;
    text-align: left;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(140, 93, 46, 0.45);
    border-radius: 10px;
    padding: 18px 22px;
}

.mission-rewards-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #78350f;
    margin-bottom: 16px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission-rewards-title-diamond {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #b45309;
    transform: rotate(45deg);
}

.mission-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.mission-reward-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #fbf6ea;
    border: 1.5px solid #d4b996;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 6px rgba(60, 30, 10, 0.09);
    transition: transform 0.15s ease, border-color 0.15s ease;
    min-width: 0;
    box-sizing: border-box;
    min-height: 78px;
}
.mission-reward-card:hover {
    transform: translateY(-1px);
    border-color: #b45309;
}

.mission-reward-card.shard-card {
    border-color: #8da4be;
    background: linear-gradient(135deg, #f4f7fb 0%, #e2ebf4 100%);
}

.mission-reward-card.gold-reward-card {
    border-color: #e0a950;
    background: linear-gradient(135deg, #fdf8ee 0%, #f7ebcf 100%);
}

.mission-reward-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
    flex-shrink: 0;
}

.mission-reward-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    gap: 4px;
}

.mission-reward-name {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 800;
    color: #2b1807;
    white-space: normal;
    word-break: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.3;
}

.mission-reward-tier {
    font-size: 13.5px;
    color: #78350f;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.mission-reward-qty {
    position: static !important;
    margin-left: auto;
    flex-shrink: 0;
    font-family: 'Cinzel', monospace;
    font-size: 17px;
    font-weight: 900;
    color: #15803d;
    background: rgba(22, 101, 52, 0.12);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(22, 101, 52, 0.35);
    white-space: nowrap;
}

.mission-reward-card.gold-reward-card .mission-reward-qty {
    color: #92400e;
    background: rgba(146, 64, 14, 0.12);
    border-color: rgba(146, 64, 14, 0.35);
}

/* Defeat Card Variations - Deep Antique Carmine */
.mission-victory-card.defeat-mode {
    border-color: #881337;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), inset 0 0 55px rgba(136, 19, 55, 0.16);
}

.mission-victory-card.defeat-mode::before {
    border-color: rgba(136, 19, 55, 0.35);
}

.mission-victory-card.defeat-mode .brass-corner {
    border-color: #9f1239;
}

.mission-victory-card.defeat-mode .mission-victory-title {
    color: #5c0919;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Red Wax/Ink Stamp for Top 1–100 Leaderboard Score (2x Size, Centered, Delayed Slam) */
.mission-rank-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 25;
    width: 316px;
    height: 316px;
    border-radius: 50%;
    border: 7px solid rgba(185, 28, 28, 0.85);
    background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, rgba(185, 28, 28, 0.14) 100%);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25) inset, 0 8px 24px rgba(127, 29, 29, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) rotate(-14deg);
    pointer-events: none;
    user-select: none;
    mix-blend-mode: multiply;
    opacity: 0.78;
}

.mission-rank-stamp::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 3px solid rgba(185, 28, 28, 0.45);
    opacity: 0;
    pointer-events: none;
}

.mission-rank-stamp.hidden {
    display: none !important;
}

.mission-rank-stamp.stamp-slam {
    animation: missionStampSlam 0.46s cubic-bezier(0.22, 1.28, 0.36, 1) both;
}

.mission-rank-stamp.stamp-slam::after {
    animation: missionStampShockwave 0.55s ease-out 0.22s both;
}

@keyframes missionStampSlam {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-26deg) scale(2.8);
    }
    55% {
        opacity: 0.92;
        transform: translate(-50%, -50%) rotate(-11deg) scale(0.92);
    }
    78% {
        opacity: 0.82;
        transform: translate(-50%, -50%) rotate(-15deg) scale(1.04);
    }
    100% {
        opacity: 0.78;
        transform: translate(-50%, -50%) rotate(-14deg) scale(1);
    }
}

@keyframes missionStampShockwave {
    0% {
        opacity: 0.75;
        transform: scale(0.85);
    }
    100% {
        opacity: 0;
        transform: scale(1.38);
    }
}

.mission-victory-card.stamp-impact-shake {
    animation: missionCardStampShake 0.28s ease-out 0.24s;
}

@keyframes missionCardStampShake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-4px, 4px); }
    50% { transform: translate(3px, -3px); }
    75% { transform: translate(-2px, 2px); }
}

.mission-rank-stamp-inner {
    width: 274px;
    height: 274px;
    border-radius: 50%;
    border: 3px dashed rgba(185, 28, 28, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
    color: #991b1b;
}

.mission-rank-stamp-kicker {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.mission-rank-stamp-num {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 80px;
    font-weight: 900;
    line-height: 1.02;
    margin: 4px 0;
    letter-spacing: 1px;
    color: #b91c1c;
}

.mission-rank-stamp-sub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    border-top: 2px solid rgba(185, 28, 28, 0.65);
    padding-top: 8px;
    margin-top: 6px;
}



/* 6. Nano Intelligence Liquid (Skill Q) HUD Widget - Simetris di Sisi Kanan Tepat di Bawah Telemetri */
.manda-nano-liquid-widget {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: rgba(18, 14, 11, 0.92);
    border: 1.5px solid rgba(16, 185, 129, 0.55);
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 12px rgba(16, 185, 129, 0.22);
    z-index: 1000;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.manda-nano-liquid-widget:hover {
    border-color: #34d399;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 18px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
}

.manda-nano-liquid-widget.exhausted {
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: none;
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.nano-vial-glass-body {
    position: relative;
    width: 22px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nano-vial-metal-cap {
    width: 18px;
    height: 6px;
    background: linear-gradient(90deg, #d4af37 0%, #fef08a 50%, #ca8a04 100%);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.nano-vial-metal-cap.top { border-bottom: 1px solid rgba(0, 0, 0, 0.3); }
.nano-vial-metal-cap.bottom { border-top: 1px solid rgba(0, 0, 0, 0.3); }

.nano-vial-chamber {
    position: relative;
    width: 14px;
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.nano-vial-liquid-fill {
    width: 100%;
    background: linear-gradient(180deg, #34d399 0%, #10b981 40%, #059669 100%);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.8), inset 0 0 6px rgba(255, 255, 255, 0.4);
    transition: height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.nano-vial-level-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.nano-vial-level-marks .mark {
    position: absolute;
    left: 0;
    width: 4px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}
.nano-vial-level-marks .mark.m1 { bottom: 33.33%; }
.nano-vial-level-marks .mark.m2 { bottom: 66.66%; }

.nano-vial-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nano-vial-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nano-vial-key-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 900;
    color: #064e3b;
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.nano-vial-title {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.nano-vial-effect {
    font-family: 'Cinzel', serif;
    font-size: 9.5px;
    font-weight: 600;
    color: #34d399;
    letter-spacing: 0.5px;
}

.nano-vial-charges-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.nano-charge-pip {
    width: 18px;
    height: 4px;
    background: #059669;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
    transition: all 0.3s ease;
}

.nano-charge-pip.empty {
    background: rgba(100, 116, 139, 0.4);
    box-shadow: none;
}

.nano-vial-charges-text {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    margin-left: 4px;
}

/* ==========================================================================
   GAME INTRO SPLASH SCREEN (VGP LOGO INTRO)
   Layar hitam pekat, logo VGP di tengah, efek sekali flash sinematik.
   ========================================================================== */
.game-intro-splash {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

.game-intro-splash.splash-fade-out {
    opacity: 0;
    pointer-events: none;
}

.game-intro-splash.splash-hidden {
    display: none !important;
}

.splash-logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(140px, 30vmin, 240px);
    height: clamp(140px, 30vmin, 240px);
}

.splash-logo-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 0 28px rgba(255, 215, 110, 0.22), 0 12px 45px rgba(0, 0, 0, 0.95);
    opacity: 0;
    transform: scale(0.96);
    animation: splashLogoSequence 5.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cahaya hangat ambient di belakang logo via radial-gradient ringan (tanpa offscreen blur 420px) */
.splash-flash-overlay,
.splash-glow-overlay {
    position: absolute;
    z-index: 1;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 222, 130, 0.32) 0%,
        rgba(245, 185, 65, 0.18) 32%,
        rgba(205, 125, 25, 0.06) 56%,
        rgba(160, 85, 15, 0) 72%
    );
    opacity: 0;
    pointer-events: none;
    animation: splashAmbientGlow 5.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Eliminasi berkas garis flash optik silang */
.splash-flash-overlay::before,
.splash-flash-overlay::after,
.splash-glow-overlay::before,
.splash-glow-overlay::after {
    display: none !important;
}

@keyframes splashLogoSequence {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    20% {
        opacity: 1;
        transform: scale(1.0);
    }
    80% {
        opacity: 1;
        transform: scale(1.008);
    }
    100% {
        opacity: 0;
        transform: scale(1.02);
    }
}

@keyframes splashAmbientGlow {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ==========================================================================
   DISMANTLE REWARD IN-GAME MODAL (Renaissance Alchemical Material Dialog)
   ========================================================================== */
.ci-reward-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(10, 8, 5, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ci-reward-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.ci-reward-modal-window {
    width: min(92%, 520px);
    background: #fbf5e8;
    background-image: radial-gradient(#e6d8c0 1.2px, transparent 1.2px);
    background-size: 18px 18px;
    border: 3px double #78350f;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), inset 0 0 25px rgba(120, 53, 15, 0.15);
    padding: 24px 28px 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: scale(0.92) translateY(14px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.ci-reward-overlay.visible .ci-reward-modal-window {
    transform: scale(1) translateY(0);
}

.ci-reward-badge {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
    border: 2px solid #b45309;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fef08a;
    box-shadow: 0 4px 14px rgba(69, 26, 3, 0.35);
    margin-bottom: 12px;
}

.ci-reward-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 20px;
    font-weight: 900;
    color: #451a03;
    letter-spacing: 1.2px;
    margin: 0 0 6px;
}

.ci-reward-subtitle {
    font-family: 'Georgia', serif;
    font-size: 14px;
    color: #78350f;
    line-height: 1.45;
    margin: 0 0 18px;
    max-width: 440px;
}

.ci-reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
    max-height: 280px;
    overflow-y: auto;
    padding: 2px;
    box-sizing: border-box;
}

.ci-reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid #a1784e;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(69, 26, 3, 0.08);
    transition: transform 0.15s ease;
}

.ci-reward-item:hover {
    transform: translateY(-1px);
    border-color: #b45309;
}

.ci-reward-item-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border: 1px solid rgba(140, 93, 46, 0.3);
    border-radius: 6px;
    background: #fdfaf3;
    padding: 2px;
    flex-shrink: 0;
}

.ci-reward-item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
}

.ci-reward-item-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #2b1807;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.ci-reward-item-code {
    font-size: 11px;
    color: #8c5d2e;
    font-family: monospace;
    text-transform: uppercase;
}

.ci-reward-item-qty {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 15px;
    font-weight: 900;
    color: #047857;
    background: rgba(4, 120, 87, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.4);
    border-radius: 6px;
    padding: 3px 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.ci-reward-btn {
    font-family: 'Cinzel', serif;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #fffbeb;
    background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
    border: 1.5px solid #b45309;
    border-radius: 6px;
    padding: 10px 32px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(69, 26, 3, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ci-reward-btn:hover {
    background: linear-gradient(180deg, #b45309 0%, #92400e 100%);
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.45);
    transform: translateY(-1px);
}

/* Toast Banner inside Inspector */
.ci-toast-banner {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #7f1d1d;
    color: #fef2f2;
    border: 1.5px solid #b91c1c;
    border-radius: 6px;
    padding: 10px 20px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    display: none;
    max-width: 90%;
    text-align: center;
    animation: ciToastFade 0.3s ease;
}

.ci-toast-banner.warning {
    background: #92400e;
    border-color: #d97706;
    color: #fffbeb;
}

@keyframes ciToastFade {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}





/* ============================================================================
 * M01 MANDA MISSION DIALOG — FUTURISTIC DYNAMIC CAROUSEL REDESIGN
 * ============================================================================ */
.manda-futuristic-shell {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
    max-width: 96%;
}

.manda-dialogue-card.manda-futuristic-card {
    position: relative;
    z-index: 10;
    width: 1500px;
    max-width: 88%;
    height: 770px;
    max-height: 92%;
    background: linear-gradient(155deg, rgba(13, 18, 29, 0.96) 0%, rgba(9, 13, 22, 0.98) 100%);
    border: 1px solid rgba(156, 203, 240, 0.28);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(156, 203, 240, 0.08) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.manda-futuristic-header {
    background: rgba(16, 22, 36, 0.88);
    border-bottom: 1px solid rgba(156, 203, 240, 0.16);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.manda-futuristic-header .manda-avatar-emblem {
    background: rgba(156, 203, 240, 0.14);
    border: 1px solid rgba(156, 203, 240, 0.45);
    color: #9CCBF0;
}

.manda-futuristic-header .manda-char-name {
    color: #F2F1EE;
    font-size: 23.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.manda-header-status {
    display: none;
}

.manda-futuristic-header .manda-header-gold-pill {
    background: rgba(10, 14, 24, 0.85);
    border: 1px solid rgba(156, 203, 240, 0.28);
}

.manda-futuristic-header .manda-dialogue-btn-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(156, 203, 240, 0.3);
    color: #F2F1EE;
}

.manda-futuristic-header .manda-dialogue-btn-close:hover {
    background: rgba(156, 203, 240, 0.2);
    border-color: #9CCBF0;
}

.manda-futuristic-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    padding: 18px 20px;
}

/* --- Left Rail: Vertical Nano Liquid Carousel + START Orb --- */
.manda-nano-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 24, 38, 0.65);
    border: 1px solid rgba(156, 203, 240, 0.14);
    border-radius: 12px;
    padding: 12px 12px 16px;
    min-height: 0;
    user-select: none;
    touch-action: none;
}

.manda-carousel-arrow {
    width: 44px;
    height: 36px;
    border-radius: 8px;
    background: rgba(156, 203, 240, 0.08);
    border: 1px solid rgba(156, 203, 240, 0.24);
    color: #9CCBF0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
    flex-shrink: 0;
}

.manda-carousel-arrow:hover {
    background: rgba(156, 203, 240, 0.2);
    border-color: #9CCBF0;
    transform: scale(1.06);
}

.manda-carousel-arrow:active {
    transform: scale(0.95);
}

.manda-nano-carousel {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    overflow: hidden;
    cursor: grab;
}

.manda-nano-slot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid rgba(156, 203, 240, 0.14);
    background: rgba(12, 16, 26, 0.75);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    cursor: pointer;
    box-sizing: border-box;
}

.manda-nano-slot.prev,
.manda-nano-slot.next {
    flex: 0.72 1 0;
    padding: 10px 12px;
    opacity: 0.52;
    transform: scale(0.90);
}

.manda-nano-slot.prev:hover,
.manda-nano-slot.next:hover {
    opacity: 0.82;
    transform: scale(0.94);
}

.manda-nano-slot.center {
    flex: 1.35 1 0;
    padding: 12px 14px;
    gap: 10px;
    opacity: 1;
    transform: scale(1);
    background: rgba(20, 28, 44, 0.92);
    border-color: rgba(156, 203, 240, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(156, 203, 240, 0.12);
}

.manda-capsule-tube {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.manda-nano-slot.center .manda-capsule-tube {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65));
}

.manda-capsule-cap {
    width: 11px;
    height: 24px;
    background: linear-gradient(180deg, #f1f5f9 0%, #94a3b8 38%, #475569 78%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 3px rgba(0, 0, 0, 0.45);
    position: relative;
}

.manda-capsule-cap.left {
    border-radius: 6px 2px 2px 6px;
}

.manda-capsule-cap.right {
    border-radius: 2px 6px 6px 2px;
}

.manda-nano-slot.center .manda-capsule-cap {
    width: 15px;
    height: 36px;
}

.manda-capsule-collar {
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #334155 0%, #0f172a 55%, #334155 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
}

.manda-nano-slot.center .manda-capsule-collar {
    width: 7px;
    height: 42px;
}

.manda-capsule-glass {
    position: relative;
    width: 92px;
    height: 26px;
    padding: 3px 4px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.22) 0%, rgba(15, 23, 42, 0.72) 50%, rgba(30, 41, 59, 0.55) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 14px color-mix(in srgb, var(--nano-color, #10b981) 35%, transparent);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.manda-nano-slot.center .manda-capsule-glass {
    width: 146px;
    height: 38px;
    padding: 4px 5px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px color-mix(in srgb, var(--nano-color, #10b981) 50%, transparent);
}

.manda-capsule-core {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--nano-color, #10b981) 55%, #ffffff) 0%,
        var(--nano-color, #10b981) 42%,
        color-mix(in srgb, var(--nano-color, #10b981) 58%, #020617) 100%);
    box-shadow: 0 0 10px var(--nano-color, #10b981), inset 0 1px 2px rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.manda-capsule-bubbles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 58%, rgba(255, 255, 255, 0.65) 0 1.5px, transparent 2px),
        radial-gradient(circle at 42% 35%, rgba(255, 255, 255, 0.5) 0 2px, transparent 2.5px),
        radial-gradient(circle at 68% 65%, rgba(255, 255, 255, 0.6) 0 1.3px, transparent 1.8px),
        radial-gradient(circle at 84% 42%, rgba(255, 255, 255, 0.45) 0 1.8px, transparent 2.3px);
    pointer-events: none;
}

.manda-capsule-ticks {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 5px;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.42) 0 1px,
        transparent 1px 12px
    );
    pointer-events: none;
}

.manda-capsule-sheen {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 3px;
    height: 32%;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.manda-nano-slot-info {
    text-align: center;
}

.manda-nano-slot-name {
    font-size: 19px;
    font-weight: 800;
    color: #F2F1EE;
    letter-spacing: 0.6px;
}

.manda-nano-slot.center .manda-nano-slot-name {
    font-size: 21px;
}

.manda-nano-slot.prev .manda-nano-slot-meta,
.manda-nano-slot.next .manda-nano-slot-meta {
    display: none;
}

.manda-nano-slot-meta {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.35;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

.manda-nano-slot-price-row {
    margin-top: 3px;
}

.manda-nano-slot-price {
    color: #fbbf24;
    font-weight: 700;
}

.manda-nano-slot-free {
    color: #34d399;
    font-weight: 700;
}

/* Circular START Orb Button + Half-Circle Frame Background (Right Outside Edge) */
.manda-start-orb-wrap {
    position: relative;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: -1px;
    padding: 16px 20px 16px 12px;
    background: linear-gradient(155deg, rgba(13, 18, 29, 0.96) 0%, rgba(9, 13, 22, 0.98) 100%);
    border: 1px solid rgba(156, 203, 240, 0.28);
    border-left: none;
    border-radius: 0 999px 999px 0;
    box-shadow: 14px 12px 36px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(14px);
}

.manda-start-orb-btn {
    position: relative;
    width: 114px;
    height: 114px;
    border-radius: 50%;
    border: 2px solid #9CCBF0;
    background: radial-gradient(circle at 35% 30%, #2b4c73 0%, #142236 65%, #0c1421 100%);
    color: #F2F1EE;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2.2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(156, 203, 240, 0.28), inset 0 1px 4px rgba(255, 255, 255, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.manda-start-orb-btn:hover {
    transform: scale(1.06);
    border-color: #ffffff;
    box-shadow: 0 0 32px rgba(156, 203, 240, 0.55), inset 0 1px 6px rgba(255, 255, 255, 0.45);
}

.manda-start-orb-btn:active {
    transform: scale(0.96);
}

.manda-start-orb-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(156, 203, 240, 0.45);
    pointer-events: none;
}

/* --- Right Stage: Horizontal Sector Coverflow Carousel (no outer box) --- */
.manda-sector-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    min-width: 0;
    min-height: 0;
    user-select: none;
    touch-action: none;
}

.manda-sector-stage .manda-carousel-arrow {
    display: none !important;
}

.manda-sector-coverflow {
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    cursor: grab;
}

.manda-sector-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(156, 203, 240, 0.22);
    background: #0d121d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 14px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.manda-sector-card.prev,
.manda-sector-card.next {
    flex: 0.86 1 0;
    height: 86%;
    opacity: 0.56;
    filter: saturate(0.75);
}

.manda-sector-card.prev:hover,
.manda-sector-card.next:hover {
    opacity: 0.85;
    transform: translateY(-3px);
}

.manda-sector-card.center {
    flex: 1.45 1 0;
    height: 100%;
    opacity: 1;
    border: 1.5px solid rgba(156, 203, 240, 0.75);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.65), 0 0 26px rgba(156, 203, 240, 0.18);
}

.manda-sector-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.52;
    transition: transform 300ms ease, opacity 240ms ease;
}

.manda-sector-card.center .manda-sector-bg {
    opacity: 0.78;
}

.manda-sector-card.center:hover .manda-sector-bg {
    transform: scale(1.04);
}

.manda-sector-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(156, 203, 240, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(156, 203, 240, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.manda-sector-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.78) 0%, rgba(9, 13, 22, 0.18) 48%, rgba(9, 13, 22, 0.88) 100%);
    pointer-events: none;
}

.manda-sector-letter {
    position: relative;
    z-index: 2;
    font-size: 44px;
    font-weight: 900;
    color: #F2F1EE;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.manda-sector-card.center .manda-sector-letter {
    font-size: 60px;
    color: #9CCBF0;
}

.manda-sector-meta {
    position: relative;
    z-index: 2;
    text-align: center;
}

.manda-sector-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: #F2F1EE;
}

.manda-sector-card.prev .manda-sector-threat,
.manda-sector-card.prev .manda-sector-boss,
.manda-sector-card.next .manda-sector-threat,
.manda-sector-card.next .manda-sector-boss {
    display: none;
}

.manda-sector-threat {
    margin-top: 4px;
    font-size: 17.5px;
    font-weight: 700;
    color: #F6C3A5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.manda-sector-boss {
    margin-top: 4px;
    font-size: 16px;
    color: #cbd5e1;
}

/* Manda Dialogue Sector Carousel Lock & Cleared Badges */
.manda-sector-card.is-locked .manda-sector-bg {
    filter: grayscale(0.75) brightness(0.45);
}

.manda-sector-card.is-locked .manda-sector-letter {
    color: #94a3b8;
}

.manda-sector-lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.90);
    border: 1px solid rgba(248, 113, 113, 0.65);
    color: #fecaca;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    pointer-events: none;
}

.manda-sector-card.prev .manda-sector-lock-badge span,
.manda-sector-card.next .manda-sector-lock-badge span {
    display: none;
}

.manda-sector-cleared-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(6, 78, 59, 0.88);
    border: 1px solid #34d399;
    color: #a7f3d0;
    font-size: 10px;
    font-weight: 800;
    pointer-events: none;
}

.manda-start-orb-btn.is-locked {
    filter: grayscale(0.7) brightness(0.65);
    cursor: not-allowed;
}

/* ============================================================================
   MISSION PLUS (MISSION+) TOGGLE & DARK-RED TACTICAL THEME
   ============================================================================ */
.manda-futuristic-header .manda-mission-plus-toggle {
    margin-left: auto;
    height: 44px;
    padding: 0 13px;
    border-radius: 7px;
    border: 1px solid rgba(156, 203, 240, 0.28);
    background: rgba(10, 14, 24, 0.85);
    color: #E2E8F0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    user-select: none;
    transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.manda-futuristic-header .manda-mission-plus-toggle + .manda-header-gold-pill {
    margin-left: 0;
}

.manda-futuristic-header .manda-mission-plus-toggle:hover {
    border-color: rgba(239, 68, 68, 0.72);
    background: rgba(45, 10, 15, 0.85);
}

.manda-futuristic-header .manda-mission-plus-toggle:focus-visible {
    outline: 2px solid #f87171;
    outline-offset: 2px;
}

.manda-plus-toggle-label {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #CBD5E1;
    transition: color 150ms ease;
}

.manda-plus-switch-track {
    position: relative;
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: #1a2234;
    border: 1px solid rgba(148, 163, 184, 0.45);
    flex-shrink: 0;
    transition: background 150ms ease, border-color 150ms ease;
}

.manda-plus-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #94a3b8;
    transition: transform 150ms ease, background 150ms ease;
}

.manda-futuristic-header .manda-mission-plus-toggle.active {
    background: rgba(69, 10, 16, 0.92);
    border-color: rgba(239, 68, 68, 0.78);
    box-shadow: 0 0 14px rgba(185, 28, 28, 0.35);
}

.manda-futuristic-header .manda-mission-plus-toggle.active .manda-plus-toggle-label {
    color: #fecaca;
}

.manda-futuristic-header .manda-mission-plus-toggle.active .manda-plus-switch-track {
    background: #b91c1c;
    border-color: rgba(254, 202, 202, 0.65);
}

.manda-futuristic-header .manda-mission-plus-toggle.active .manda-plus-switch-thumb {
    transform: translateX(16px);
    background: #ffffff;
}

/* Deep Crimson-Obsidian Panel Theme when Mission+ is ON */
.manda-dialogue-card.manda-futuristic-card.mission-plus-active {
    background: linear-gradient(155deg, rgba(28, 9, 13, 0.97) 0%, rgba(15, 5, 8, 0.99) 100%);
    border-color: rgba(220, 38, 38, 0.48);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(239, 68, 68, 0.14) inset;
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-futuristic-header {
    background: rgba(38, 10, 15, 0.92);
    border-bottom-color: rgba(220, 38, 38, 0.28);
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-futuristic-header .manda-header-gold-pill {
    background: rgba(18, 6, 9, 0.90);
    border-color: rgba(220, 38, 38, 0.42);
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-futuristic-header .manda-dialogue-btn-close {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(239, 68, 68, 0.42);
    color: #F2F1EE;
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-futuristic-header .manda-dialogue-btn-close:hover {
    background: rgba(185, 28, 28, 0.36);
    border-color: #f87171;
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-nano-rail {
    background: rgba(22, 8, 11, 0.72);
    border-color: rgba(220, 38, 38, 0.22);
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-carousel-arrow {
    background: rgba(185, 28, 28, 0.14);
    border-color: rgba(239, 68, 68, 0.34);
    color: #fca5a5;
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-carousel-arrow:hover {
    background: rgba(185, 28, 28, 0.34);
    border-color: #f87171;
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-nano-slot {
    background: rgba(16, 6, 9, 0.80);
    border-color: rgba(220, 38, 38, 0.18);
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-nano-slot.center {
    background: rgba(34, 10, 15, 0.94);
    border-color: rgba(239, 68, 68, 0.62);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.54), 0 0 18px rgba(185, 28, 28, 0.22);
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-sector-card {
    background: #110508;
    border-color: rgba(220, 38, 38, 0.28);
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-sector-card.center {
    border-color: rgba(248, 113, 113, 0.82);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.72), 0 0 28px rgba(185, 28, 28, 0.28);
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-sector-grid-overlay {
    background-image: linear-gradient(rgba(248, 113, 113, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(248, 113, 113, 0.06) 1px, transparent 1px);
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-sector-vignette {
    background: linear-gradient(180deg, rgba(16, 5, 8, 0.78) 0%, rgba(16, 5, 8, 0.14) 48%, rgba(16, 5, 8, 0.88) 100%);
}

.manda-dialogue-card.manda-futuristic-card.mission-plus-active .manda-sector-card.center .manda-sector-letter {
    color: #f87171;
}

.manda-start-orb-wrap.mission-plus-active {
    background: linear-gradient(155deg, rgba(28, 9, 13, 0.97) 0%, rgba(15, 5, 8, 0.99) 100%);
    border-color: rgba(220, 38, 38, 0.48);
}

.manda-start-orb-wrap.mission-plus-active .manda-start-orb-btn {
    border-color: #f87171;
    background: radial-gradient(circle at 35% 30%, #7f1d1d 0%, #3b080e 65%, #160406 100%);
    box-shadow: 0 0 24px rgba(185, 28, 28, 0.42), inset 0 1px 4px rgba(255, 255, 255, 0.22);
}

.manda-start-orb-wrap.mission-plus-active .manda-start-orb-btn:hover {
    border-color: #ffffff;
    box-shadow: 0 0 32px rgba(220, 38, 38, 0.65), inset 0 1px 6px rgba(255, 255, 255, 0.42);
}

.manda-start-orb-wrap.mission-plus-active .manda-start-orb-ring {
    border-color: rgba(248, 113, 113, 0.50);
}

@media (prefers-reduced-motion: reduce) {
    .manda-futuristic-header .manda-mission-plus-toggle,
    .manda-plus-switch-track,
    .manda-plus-switch-thumb {
        transition: none;
    }
}
