/* ================= OVERLAY ================= */
#phedLoader {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #e3f7ff, #ffffff);
    z-index: 99999;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= WATER BACKGROUND ================= */
.water-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(33,150,243,0.15), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(3,169,244,0.18), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(179,229,252,0.35), transparent 50%);
    animation: waterMove 12s infinite linear;
    z-index: 0;
}

@keyframes waterMove {
    0% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

/* ================= CONTAINER ================= */
.container {
    position: relative;
    display: flex;
    gap: 6px;
    user-select: none;
    cursor: progress;
    z-index: 2;
}

/* ================= LETTERS ================= */
.letter {
    font-size: 4em;
    font-weight: 900;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    opacity: 0;
    animation: letters 4s infinite linear;
}

/* Individual colors */
.c1 { color: #0d47a1; }
.c2 { color: #1565c0; }
.c3 { color: #1e88e5; }
.c4 { color: #0288d1; }
.c5 { color: #039be5; }
.c6 { color: #0277bd; }

/* Delays */
.letter:nth-child(1){animation-delay:.1s}
.letter:nth-child(2){animation-delay:.25s}
.letter:nth-child(3){animation-delay:.4s}
.letter:nth-child(4){animation-delay:.55s}
.letter:nth-child(5){animation-delay:.7s}
.letter:nth-child(6){animation-delay:.85s}
.letter:nth-child(7){animation-delay:1s}
.letter:nth-child(8){animation-delay:1.15s}
.letter:nth-child(9){animation-delay:1.3s}
.letter:nth-child(10){animation-delay:1.45s}
.letter:nth-child(11){animation-delay:1.6s}
.letter:nth-child(12){animation-delay:1.75s}
.letter:nth-child(13){animation-delay:1.9s}
.letter:nth-child(14){animation-delay:2.2s}

/* ================= WATER SHINE ================= */
.shine {
    position: absolute;
    inset: -120px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        rgba(179,229,252,0.9),
        rgba(255,255,255,0.3),
        transparent
    );
    mask: radial-gradient(circle at center, #fff 35%, transparent 75%);
    opacity: 0;
    animation: shine 4s infinite linear;
    pointer-events: none;
}

/* ================= SUBTEXT ================= */
.subtext {
    position: absolute;
    top: 120%;
    width: 100%;
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
    color: #0d47a1;
    animation: fadeText 2s infinite ease-in-out;
}

/* ================= ANIMATIONS ================= */
@keyframes letters {
    0% { opacity: 0; transform: translateY(0); }
    6% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(33,150,243,.6);
        transform: translateY(-6px) scale(1.1);
    }
    22% { opacity: 0.3; }
    100% { opacity: 0; }
}

@keyframes shine {
    0% { opacity: 0; transform: translateX(-60%); }
    15% { opacity: 0.3; }
    30% { opacity: 1; transform: translateX(0%); }
    50% { opacity: 0.4; }
    65% { opacity: 0; transform: translateX(60%); }
    100% { opacity: 0; }
}

@keyframes fadeText {
    0%,100% { opacity: 0.4; }
    50% { opacity: 1; }
}