/* =====================================================================
   load.css — Halaman load (index.php, ?page=load)
   Pakai canvas 1920×1080 — konsisten dengan cover, reader, finish.
   ===================================================================== */

.load-page {
    background: #2B2418; /* letterbox sama dengan semua halaman lain */
}

/* Stage: identik dengan reader-stage & cover-stage */
.load-stage {
    position: relative;
        width: var(--client-w, 100vw);   /* diset JS: clientWidth */
        height: var(--client-h, 100vh); /* diset JS: clientHeight */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas 1920×1080 */
.load-canvas {
    position: relative;
    width: calc(var(--canvas-w) * 1px);
    height: calc(var(--canvas-h) * 1px);
    flex-shrink: 0;
    overflow: hidden;
    transform: scale(var(--canvas-scale, 1));
    background: linear-gradient(180deg, #FFF7E8 0%, #FDEBD3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Konten di dalam canvas — semua px absolut */
.load-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 80px;
}

.load-logo {
    width: 640px;
    height: auto;
    margin-bottom: 80px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
    animation: float-gentle 3.6s ease-in-out infinite;
}

.start-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 80px;
    font-size: 38px;
    font-weight: 700;
    font-family: inherit;
    color: #FFF7E8;
    background: #6B7A4F;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(107, 122, 79, 0.4);
    animation: pulse-btn 1.8s ease-in-out infinite;
}

.start-btn:active { transform: scale(0.96); }
.start-btn-icon   { font-size: 0.8em; }

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.04); }
}

.load-hint {
    margin-top: 28px;
    font-size: 22px;
    color: #8A7A5C;
}

.load-spinner {
    display: none;
    width: 40px; height: 40px;
    border: 5px solid rgba(107, 122, 79, 0.25);
    border-top-color: #6B7A4F;
    border-radius: 50%;
    margin-top: 24px;
    animation: spin 0.8s linear infinite;
}
.load-spinner.active { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }
