/* ==========================================================
   futuristic.css
   Lapisan efek futuristik tambahan (ringan: hanya transform/opacity).
   - Cahaya mengikuti kursor di latar (laptop)
   - Tekstur grain tipis
   - Denyut angka klik saat bertambah
   - Teks boot di splash screen
   Efek BARU di file ini menghormati "kurangi animasi" milik sistem.
   ========================================================== */

/* Tekstur grain (mix-blend-mode + feTurbulence layar penuh) DIHAPUS: membuat latar berkedip / bagian hilang di GPU tertentu. */

/* Cahaya lembut yang mengikuti kursor (dibuat oleh js/futuristic.js, hanya untuk perangkat dengan mouse) */
.fx-cursor {
    position: absolute;
    left: 0;
    top: 0;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, rgba(0, 243, 255, 0.14), rgba(176, 38, 255, 0.06) 55%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: transform;
}
.fx-cursor.on { opacity: 1; }

/* Angka klik berdenyut sebentar saat bertambah */
@keyframes countBump {
    0%   { transform: scale(1);   color: inherit; text-shadow: none; }
    35%  { transform: scale(1.5); color: #00f3ff; text-shadow: 0 0 8px rgba(0, 243, 255, 0.9); }
    100% { transform: scale(1);   color: inherit; text-shadow: none; }
}
.count-bump { display: inline-block; animation: countBump 0.7s ease-out; }

/* Teks boot di splash: kursor berkedip di ujung baris */
#splashStatusText::after {
    content: "_";
    margin-left: 2px;
    color: #00f3ff;
    animation: bootCaret 0.9s steps(1) infinite;
}
@keyframes bootCaret { 50% { opacity: 0; } }
#splashStatusText { color: rgba(0, 243, 255, 0.75); letter-spacing: 0.02em; }

/* Garis pindai (scanline) tipis yang melintas sekali di splash */
#splashScreen::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(0, 243, 255, 0.08), transparent);
    animation: splashScan 1.6s ease-in-out 0.1s 1 both;
}
@keyframes splashScan {
    from { transform: translateY(-120px); }
    to   { transform: translateY(100vh); }
}

@media (prefers-reduced-motion: reduce) {
    .fx-cursor { display: none; }
    .count-bump, #splashScreen::after, #splashStatusText::after { animation: none; }
}
