/* ==========================================================
   BADGE STATUS KONTEN (PREMIUM LOOK)
   ========================================================== */
.unlocked-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(240, 253, 244, 0.8);
    backdrop-filter: blur(4px);
    color: #16a34a;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #bbf7d0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.05);
    animation: fadeInBadge 0.5s ease forwards;
}

.unlocked-status-badge i { font-size: 11px; }

/* ==========================================================
   1. KONTAINER UTAMA (SISTEM GRID CENTERED)
   ========================================================== */
.block-comment-anchor {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto; 
    
    /* KUNCI: 'center' memaksa alat Sultan berada di TENGAH tinggi konten */
    align-items: center; 
    
    gap: 20px;
    margin-bottom: 55px;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
    /* Isolasi lapisan agar z-index di dalamnya bekerja sempurna */
    isolation: isolate; 
}

.para-rich-wrapper, .media-frame-thumbnail, .code-snippet-wrapper {
    width: 100%;
    min-width: 0;
}

/* ==========================================================
   2. AREA TOOLS (BARISAN TOMBOL DI TENGAH GARIS)
   ========================================================== */
.block-visual-indicator {
    width: 0px; 
    display: flex;
    flex-direction: column;
    /* Menjaga elemen internal (tombol/heat bar) tetap di tengah kolom */
    align-items: center; 
    gap: 15px;
    z-index: 50; 
    position: relative;
    flex-shrink: 0; 
  margin-left: -11px;
}

/* Aktifkan interaksi klik */
.comment-trigger-btn, .block-reaction-hub, .reac-add-btn, .mini-emoji-picker, .reac-pill {
    pointer-events: auto;
}

/* ==========================================================
   3. DESAIN PILL KOMENTAR & HEAT BAR (ANIMATED)
   ========================================================== */
.comment-heat-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.comment-trigger-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.7;
}

.comment-trigger-btn i { font-size: 15px; color: #94a3b8; }
.mini-count { font-size: 13px; font-weight: 800; color: #64748b; }

.comment-heat-bar {
    width: 28px;
    height: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    margin-top: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.heat-fill {
    height: 100%;
    background: linear-gradient(90deg, #facc15, #f87171, #ef4444);
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================
   4. HUB REAKSI & EMOJI PICKER (LAPISAN VVIP)
   ========================================================== */
.block-reaction-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.reac-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid #f1f5f9;
    padding: 4px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.reac-pill.active { background: #f0fdf4; border-color: #10b981; color: #10b981; transform: scale(1.05); }

.mini-emoji-picker {
    position: absolute;
    right: 55px; 
    top: 50%; 
    transform: translateY(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px; border-radius: 20px;
    display: none; gap: 10px; 
    z-index: 100; /* KUNCI: Tidak akan tertindih konten */
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    animation: slideInEmoji 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mini-emoji-picker.active { display: flex; }

/* ==========================================================
   5. GARIS MERAH (IDENTITAS SULTAN)
   ========================================================== */
.red-dashed-line {
    position: absolute;
    left: 50%; 
    transform: translateX(-50%);
    /* Mengikuti tinggi kontainer yang center secara vertikal */
    top: -20px; 
    bottom: -40px; 
    width: 0;
    border-right: 2px dashed rgba(239, 68, 68, 0.15);
    z-index: -1; 
    transition: all 0.4s ease;
}

/* ==========================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================== */
@media (max-width: 768px) {
    .block-comment-anchor { gap: 12px; margin-bottom: 40px; }
    .block-visual-indicator { width: 50px; gap: 12px; } 
    
    .comment-trigger-btn { padding: 5px 12px; }
    .mini-emoji-picker { right: 52px; padding: 10px; }
}

/* Animasi */
@keyframes fadeInBadge {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInEmoji {
    from { opacity: 0; transform: translateY(-50%) scale(0.7) translateX(15px); }
    to { opacity: 1; transform: translateY(-50%) scale(1) translateX(0); }
}

/* Untuk Block Link */
.line-chart-container {
    margin: 25px 0;
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.05);
}
.line-canvas-wrapper {
    width: 100%;
    height: 250px; /* Tinggi ideal untuk line chart */
}
    .link-card-premium {
        background: linear-gradient(135deg, #1e293b, #0f172a);
        border: 2px solid #334155;
        border-radius: 22px;
        padding: 22px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    .link-icon-vault {
        width: 50px;
        height: 50px;
        background: rgba(99, 102, 241, 0.15);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6366f1;
        font-size: 20px;
        border: 1px solid rgba(99, 102, 241, 0.2);
    }
    .link-category {
        font-size: 10px;
        font-weight: 900;
        color: #6366f1;
        letter-spacing: 1.5px;
        margin-bottom: 5px;
    }
    .link-label-text {
        font-size: 17px;
        font-weight: 900;
        color: #f8fafc;
        line-height: 1.2;
    }
    .link-action-hint {
        background: rgba(255,255,255,0.05);
        padding: 8px 16px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 900;
        color: #94a3b8;
        border: 1px solid rgba(255,255,255,0.05);
    }

    /* Hover State */
    .link-block-quest:hover .link-card-premium {
        transform: translateY(-8px);
        border-color: #6366f1;
        box-shadow: 0 20px 45px rgba(99, 102, 241, 0.2);
    }
    .link-block-quest:hover .link-icon-vault {
        background: #6366f1;
        color: #fff;
    }
  .link-preview-box {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 12px;
}
.link-preview-box img {
    display: block;
    transition: 0.3s;
}

/* Untuk Block Quoote*/ 
    /* BASE STYLE */
    .quote-container { padding: 40px; border-radius: 24px; position: relative; overflow: hidden; }
    .quote-text-main { font-size: 20px; font-weight: 800; line-height: 1.5; margin-bottom: 15px; position: relative; z-index: 2; }
    .quote-author-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
    .quote-icon-main { font-size: 40px; position: absolute; top: 20px; left: 20px; opacity: 0.1; }

    /* STYLE 1: MODERN MINIMALIST */
    .q-style-modern { background: #f8fafc; border-left: 6px solid #161823; color: #161823; }
    .q-style-modern .quote-line { width: 40px; height: 3px; background: #161823; margin-bottom: 10px; }

    /* STYLE 2: NEON GLOW (GALAU) */
    .q-style-glow { 
        background: #0f172a; color: #38bdf8; 
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
        border: 1px solid rgba(56, 189, 248, 0.3);
    }
    .q-style-glow .quote-text-main { text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
    .q-style-glow .quote-line { width: 100%; height: 1px; background: linear-gradient(90deg, #38bdf8, transparent); margin-bottom: 15px; }

    /* STYLE 3: CLASSIC PAPER (MUTIARA) */
    .q-style-classic { 
        background: #fffef0; border: 2px solid #e2e8f0; color: #475569;
        font-family: 'Georgia', serif; font-style: italic;
    }
    .q-style-classic .quote-text-main { font-weight: 500; }
    .q-style-classic .quote-line { width: 60px; height: 1px; background: #94a3b8; margin: 0 auto 15px; }
    .q-style-classic .quote-content { text-align: center; }  

/* --- 7 STYLE BARU QUOTE --- */

/* 1. CYBERPUNK NIGHT */
.q-style-cyber { 
    background: #000; color: #0ff; border: 2px solid #f0f; 
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 95% 100%, 0% 100%);
    box-shadow: 5px 5px 0px #f0f;
}
.q-style-cyber .quote-author-name { color: #f0f; text-shadow: 0 0 5px #f0f; }

/* 2. NATURE ZEN */
.q-style-zen { 
    background: #f0f4f0; color: #2d4a22; border-radius: 50px 5px 50px 5px;
    border: 1px solid #c3d6c1;
}
.q-style-zen .quote-line { background: #86a37f; width: 50px; }

/* 3. ROYAL GOLD */
.q-style-royal { 
    background: linear-gradient(135deg, #1a1a1a, #333); color: #d4af37;
    border: 2px solid #d4af37; text-align: center;
}
.q-style-royal .quote-text-main { font-family: 'Playfair Display', serif; letter-spacing: 1px; }

/* 4. RETRO VHS */
.q-style-retro { 
    background: #2b2b2b; color: #ffeb3b; border: 3px double #ff1744;
    font-family: 'Courier New', monospace;
}
.q-style-retro .quote-text-main { text-transform: uppercase; }

/* 5. DEEP DARK */
.q-style-dark { 
    background: #000; color: #fff; border-bottom: 4px solid #ef4444;
    padding-left: 60px !important;
}

/* 6. HANDWRITTEN SKETCH */
.q-style-sketch { 
    background: #fff; color: #333; border: 2px solid #333;
    box-shadow: 8px 8px 0px #eee; transform: rotate(-1deg);
}
.q-style-sketch .quote-text-main { font-family: 'Cursive', sans-serif; }

/* 7. GLASSMORPHISM */
.q-style-glass { 
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); color: #444;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}  
    /* --- SOCIAL PULSE REACTION SYSTEM --- */
    .adv-reac-area {
        margin-top: 20px;
        position: relative;
		border-top: 1px dashed rgba(0,0,0,0.05);
        clear: both;
        padding: 5px 0;
    }

    .pulse-pill-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    /* Styling Bubble Reaksi */
    .pulse-bubble {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f8fafc;
        padding: 6px 14px;
        border-radius: 100px;
        cursor: pointer;
        border: 1.5px solid #f1f5f9;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        user-select: none;
    }

    .pulse-bubble:hover {
        background: #ffffff;
        border-color: #6366f1;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.15);
    }

    /* State Aktif (Glow Emerald) */
    .pulse-bubble.active {
        background: #ecfdf5 !important;
        border-color: #10b981 !important;
        color: #047857 !important;
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    }

    .pulse-bubble.active span:last-child {
        color: #10b981;
    }

    /* Tombol Tambah Reaksi */
    .pulse-add-trigger {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px dashed #e2e8f0;
        background: transparent;
        color: #94a3b8;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .pulse-add-trigger:hover {
        border-color: #6366f1;
        color: #6366f1;
        transform: rotate(90deg);
        background: #f5f3ff;
    }

    /* Glassmorphism Picker */
    .glass-picker {
        position: absolute;
        bottom: 55px;
        left: 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        border-radius: 20px;
        padding: 15px;
        display: none;
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
        z-index: 2000;
        border: 1px solid rgba(255, 255, 255, 0.5);
        animation: slideUpReac 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes slideUpReac {
        from { opacity: 0; transform: translateY(15px) scale(0.9); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .glass-picker span {
        font-size: 24px;
        cursor: pointer;
        transition: transform 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        border-radius: 12px;
    }

    .glass-picker span:hover {
        background: #fff;
        transform: scale(1.4) rotate(5deg);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    /* Responsive */
    @media (max-width: 600px) {
        .glass-picker { grid-template-columns: repeat(4, 1fr); width: 220px; }
    } 
  
/* --- CSS UNTUK CODE BLOCK --- */
    .code-snippet-wrapper {
        margin: 25px 0; 
        position: relative; 
        border-radius: 16px; 
        overflow: hidden; 
        background: #272822;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .code-header {
        background: rgba(255,255,255,0.05); 
        padding: 10px 20px; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Memastikan nomor baris punya ruang dan terlihat */
    .code-snippet-wrapper pre[class*="language-"].line-numbers {
        padding-left: 3.8em !important;
        margin: 0;
    }
    .copy-btn {
        background: transparent;
        border: 1px solid #565869;
        color: #d1d5db;
        padding: 4px 8px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: 0.2s;
    }
    .copy-btn:hover { background: #565869; color: #fff; }
    .code-wrapper pre { margin: 0 !important; border-radius: 0 0 12px 12px !important; }  
	
.timer-display-mini {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 950;
    color: #1e293b;
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 15px;
    display: inline-block;
}
.rpg-timer-wrapper {
    padding: 10px;
}	
  
.voice-note-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 2px solid #ddd6fe;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.voice-note-card i {
    font-size: 24px;
    color: #7c3aed;
    animation: pulse-audio 2s infinite;
}

@keyframes pulse-audio {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

audio::-webkit-media-controls-panel {
    background-color: #f5f3ff;
} 
  
.secret-container {
    margin: 25px 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
}

.secret-content-blur {
    padding: 25px;
    filter: blur(12px);
    user-select: none;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.3;
}

.secret-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10;
    cursor: pointer;
    transition: 0.4s;
}

.secret-overlay i { font-size: 30px; color: #f59e0b; margin-bottom: 10px; }
.secret-overlay span { font-weight: 900; font-size: 12px; color: #b45309; letter-spacing: 1px; text-transform: uppercase; }

/* State Terbuka */
.secret-container.is-revealed .secret-content-blur {
    filter: blur(0);
    opacity: 1;
    user-select: auto;
}

.secret-container.is-revealed .secret-overlay {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
} 
  
.ba-wrapper {
    margin: 30px 0;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

img-comparison-slider {
    --divider-width: 4px;
    --divider-color: #fff;
    --default-handle-opacity: 1;
    outline: none;
}

.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}  
  
.ba-wrapper {
    position: relative;
    background: #000; /* Latar belakang hitam saat full screen */
}

.ba-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.ba-fullscreen-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

/* Pengaturan Saat Mode Full Screen Aktif */
.ba-wrapper:fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; /* Latar belakang hitam pekat agar fokus */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.ba-wrapper:fullscreen img-comparison-slider {
    width: auto !important;
    height: auto !important;
    max-width: 100vw;
    max-height: 100vh;
}
  
.ba-wrapper:fullscreen img {
    /* KUNCI: Biarkan lebar menyesuaikan agar seluruh gambar masuk ke layar */
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Memastikan gambar tidak dicrop */
    display: block;
    margin: auto;
}

/* Sembunyikan label saat fullscreen agar tidak mengganggu (Opsional) */
.ba-wrapper:fullscreen .ba-label {
    opacity: 0.5;
    bottom: 40px;
}  

.ba-wrapper:fullscreen .ba-fullscreen-btn i {
    content: "\f066"; /* Ganti ikon ke 'compress' jika didukung fontawesome */
} 
  
.xp-container {
    margin: 25px 0;
    background: #1e293b; /* Warna gelap khas UI game */
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #334155;
}

.xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.xp-title {
    font-weight: 900;
    font-size: 12px;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.xp-level {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    color: #94a3b8;
    font-size: 12px;
}

.xp-bar-bg {
    width: 100%;
    height: 16px;
    background: #0f172a;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.xp-bar-fill {
    height: 100%;
    border-radius: 50px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px var(--glow-color);
}

/* Efek Cahaya Bergerak (Shine) */
.xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: xp-shine 2s infinite;
}

@keyframes xp-shine {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}
  
  
.radar-container {
    margin: 25px 0;
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.05);
    text-align: center;
}
.radar-title {
    font-weight: 900;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.radar-canvas-wrapper {
    max-width: 350px;
    margin: 0 auto;
} 
  
.social-embed-container {
    margin: 25px 0;
    width: 100%;
    max-width: 500px; /* Ukuran ideal postingan sosial */
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #eee;
}
  
.quest-log-container {
    margin: 25px 0;
    background: #fffef2; /* Warna kertas tua */
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #fde68a;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.05);
}

.quest-log-title {
    font-weight: 950;
    font-size: 14px;
    color: #854d0e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quest-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #fef3c7;
}

.quest-item:last-child { border-bottom: none; }

.quest-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.quest-check.done { background: #22c55e; color: #fff; border: 1.5px solid #22c55e; }
.quest-check.pending { border: 2px solid #fbbf24; background: #fff; color: transparent; }

.quest-text { font-size: 14px; font-weight: 700; color: #451a03; }
.quest-text.done { color: #92400e; text-decoration: line-through; opacity: 0.6; }  
  
.scratch-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 25px auto;
    background: #f8fafc; /* Warna latar belakang konten rahasia */
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scratch-secret-text {
    padding: 20px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
    text-align: center;
    user-select: none;
}

.scratch-canvas {
    position: absolute;
    top: 0; left: 0;
    cursor: crosshair;
    touch-action: none; /* Penting untuk kelancaran di mobile */
} 
  
.pie-container {
    margin: 25px 0;
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.05);
    text-align: center;
}
.pie-canvas-wrapper {
    max-width: 300px; /* Ukuran pie chart agar tidak terlalu besar */
    margin: 0 auto;
} 
    
/* --- ADVENTURE PATH (TIMELINE) SYSTEM --- */
.adv-path-container {
    padding: 10px 0 10px 20px;
    margin: 25px 0 25px 10px;
    border-left: 3px solid #f1f5f9;
    position: relative;
}

.path-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 25px;
}

.path-item:last-child { margin-bottom: 10px; }

/* Titik Node */
.path-node {
    position: absolute;
    left: -31.5px; /* Menempel tepat di garis */
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #cbd5e1;
    z-index: 2;
    transition: 0.3s;
}

/* Status: Selesai (Done) */
.node-done { border-color: #22c55e; background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, 0.2); }
/* Status: Sedang Berjalan (Active/Now) */
.node-now { 
    border-color: var(--dy-red); 
    background: #fff; 
    box-shadow: 0 0 15px rgba(254, 44, 85, 0.4);
    animation: pulse-node 2s infinite;
}

@keyframes pulse-node {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(254, 44, 85, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(254, 44, 85, 0); }
}

.path-date {
    font-size: 10px;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.path-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.3;
}

.path-desc {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.5;
}    

/* Untuk Paraaa */

    .para-sidebar-vault.active { right: 0 !important; }
    .para-discuss-badge:hover { transform: scale(1.1); filter: brightness(0.9); }
  
/* Efek saat paragraf diarahkan kursor */
.para-unit-container:hover {
    background: rgba(255, 243, 191, 0.4); /* Warna kuning transparan tipis */
    box-shadow: -4px 0 0 #f59f00; /* Garis kuning di sisi kiri */
}

/* Sembunyikan badge jika 0 (Opsional, agar lebih bersih) */
.para-badge-floating:empty {
    display: none;
}

/* Animasi halus saat sidebar muncul */
.sidebar-marginalia {
    border-left: 1px solid #f1f5f9;
} 
  
/* htdocs/templates/view.twig */

.para-text-content p {
    display: inline !important; /* Rahasia agar badge bisa di ujung teks */
    margin: 0 !important;
    padding: 0 !important;
}

.para-unit-container:hover .para-text-content {
    background: rgba(255, 243, 191, 0.3); /* Highlight tipis saat kursor di paragraf */
    border-radius: 4px;
}

.para-badge-inline {
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.para-unit-container:hover .para-badge-inline {
    transform: translateY(-2px) scale(1.1);
    background: #fde68a !important;
} 