/* DEFAULT LIGHT MODE VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,600;1,400&family=Poppins:wght@400;600&display=swap');
:root {
    --bg-main: #F5F3FF;            /* Soft Cream-Lavender */
    --card-bg: #FFFFFF;            /* Pure White Card */
    --primary-purple: #8B5CF6;     /* Vibrant Purple */
    --primary-purple-dark: #6D28D9;
    --accent-gold: #D97706;        /* Warm Gold */
    --text-main: #1E1B4B;          /* Deep Indigo Text */
    --text-muted: #64748B;
    --border-card: rgba(139, 92, 246, 0.3);
    --shadow-card: 0 12px 30px rgba(139, 92, 246, 0.15);
    --hud-bg: rgba(255, 255, 255, 0.88);
}

/* DARK MODE OVERRIDES */
body.dark-mode {
    --bg-main: #0B0C10;            /* Midnight Deep Dark */
    --card-bg: #1F232D;            /* Dark Slate Card */
    --primary-purple: #C084FC;     /* Bright Neon Purple */
    --primary-purple-dark: #A855F7;
    --accent-gold: #FCD34D;        /* Glowing Amber Gold */
    --text-main: #F8FAFC;          /* Crisp White Text */
    --text-muted: #94A3B8;
    --border-card: rgba(192, 132, 252, 0.4);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.7);
    --hud-bg: rgba(31, 35, 45, 0.88);
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-main);
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    transition: background-color 0.4s ease;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#game-container canvas {
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* HUD COUNTDOWN TIMER (POJOK KIRI ATAS) */
.timer-container {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99;
    display: flex;
    gap: 5px;
    background: var(--hud-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-card);
}

.timer-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1;
}

.timer-label {
    font-size: 6px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.timer-divider {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-purple);
    align-self: center;
}

/* HUD TOP RIGHT HEADER: LOGO J&A + DARK MODE TOGGLE (POJOK KANAN ATAS) */
.top-right-hud {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-badge {
    background: var(--hud-bg);
    border: 1px solid var(--border-card);
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.btn-theme-toggle {
    background: var(--hud-bg);
    border: 1px solid var(--border-card);
    color: var(--primary-purple);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.btn-theme-toggle:active {
    transform: scale(0.92);
}

/* HUD CONTROLS MOBILE (POJOK KANAN BAWAH) */
.game-controls-container {
    position: fixed;
    bottom: 20px;
    right: 15px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.control-hint {
    background: var(--card-bg);
    color: var(--primary-purple);
    font-size: 9px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-card);
}

.game-controls {
    display: flex;
    gap: 10px;
    background: var(--hud-bg);
    backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-radius: 35px;
    border: 1px solid var(--border-card);
}

.btn-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    font-size: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    touch-action: manipulation;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-nav:active {
    transform: scale(0.85);
    background: var(--primary-purple);
    color: #FFFFFF;
}

/* MODAL POP-UP OVERLAY */
.modal-content {
    background-color: var(--card-bg);
    border: 1.5px solid var(--primary-purple);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.modal-header {
    border-bottom: 1px dashed var(--border-card);
    background: rgba(139, 92, 246, 0.08);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

.modal-title {
    color: var(--primary-purple);
    font-weight: 700;
}

body.dark-mode .modal-header .btn-close {
    filter: invert(1);
}

.bride-groom-photo {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
    box-shadow: var(--shadow-card);
}

.gallery-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-card);
}

.bank-card {
    background: var(--bg-main);
    border: 1px dashed var(--primary-purple);
    border-radius: 16px;
    padding: 12px;
}

/* Form Controls */
.form-control, .form-select {
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border-card) !important;
    color: var(--text-main) !important;
    border-radius: 12px !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-purple) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3) !important;
}

.btn-primary {
    background-color: var(--primary-purple) !important;
    border-color: var(--primary-purple) !important;
    color: #FFFFFF !important;
}

.btn-outline-primary {
    color: var(--primary-purple) !important;
    border-color: var(--primary-purple) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-purple) !important;
    color: #FFFFFF !important;
}

.rsvp-item-card {
    background: var(--bg-main);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 8px;
    text-align: left;
}

/* =========================================================
   MEDIA QUERIES KHUSUS UNTUK TAMPILAN MOBILE (RESPONSIVE)
   ========================================================= */
@media (max-width: 768px) {
    .timer-container {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        gap: 3px;
    }

    .timer-box {
        min-width: 32px;
        height: 32px;
    }

    .timer-num {
        font-size: 11px;
    }

    .timer-label {
        font-size: 5px;
    }

    /* J&A DAN DARK MODE DITATA VERTIKAL (ATAS-BAWAH) DI KANAN HP */
    .top-right-hud {
        top: 10px;
        right: 10px;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .brand-logo-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .btn-theme-toggle {
        font-size: 10px;
        padding: 4px 10px;
    }

    .game-controls-container {
        bottom: 22px;
        right: 12px;
        gap: 4px;
    }

    .control-hint {
        font-size: 8px;
        padding: 3px 8px;
    }

    .btn-nav {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
}

/* header */
/* MAIN THEME HEADER BAR CONTAINER */
.main-theme-header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

/* HEADER KIRI (MUSIK, MODE & MONOGRAM) */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-circle-theme {
    border: 1.5px solid var(--primary-purple);
    color: var(--primary-purple);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-circle-theme i {
    font-size: 14px;
    line-height: 1;
}

.btn-circle-theme .btn-label {
    font-size: 6px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    margin-top: 2px;
    color: var(--primary-purple);
}

.btn-circle-theme:active {
    transform: scale(0.9);
    background: var(--primary-purple);
    color: #FFFFFF;
}

.btn-circle-theme:active .btn-label {
    color: #FFFFFF;
}

.brand-monogram {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-purple);
    letter-spacing: 1.5px;
    margin-left: 4px;
    user-select: none;
}

.brand-monogram span {
    font-size: 18px;
    font-weight: 400;
    color: var(--accent-gold);
}

/* HEADER TENGAH (COUNTDOWN TIMER) */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.timer-title {
    font-size: 9px;
    font-weight: 700;
    color: var(--primary-purple);
    letter-spacing: 1.5px;
}

.timer-boxes {
    display: flex;
    gap: 6px;
}

.theme-timer-box {
    background: var(--card-bg);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    min-width: 42px;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.02);
}

.theme-timer-box .num {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1;
}

.theme-timer-box .label {
    font-size: 6.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* HEADER KANAN (TANGGAL) */
.event-date-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-purple);
    letter-spacing: 1.5px;
}

/* =========================================================
   RESPONSIVE MOBILE (VERSI HP DIATUR ATAS-BAWAH TANPA NINDIH)
   ========================================================= */
@media (max-width: 768px) {
    .main-theme-header {
        width: 96%;
        top: 8px;
        padding: 5px 10px;
        border-radius: 16px;
    }

    .header-left {
        gap: 6px;
    }

    .btn-circle-theme {
        margin-top: 12px;
        width: 36px;
        height: 36px;
    }

    .btn-circle-theme i {
        font-size: 11px;
    }

    .btn-circle-theme .btn-label {
        font-size: 5px;
    }

    .brand-monogram {
        margin-top: 12px;
        font-size: 10px;
        margin-left: 1px;
    }

    .timer-title {
        font-size: 7.5px;
        letter-spacing: 1px;
    }

    .theme-timer-box {
        min-width: 34px;
        height: 38px;
        padding: 1px 4px;
        border-radius: 8px;
    }

    .theme-timer-box .num {
        font-size: 12px;
    }

    .theme-timer-box .label {
        font-size: 5.5px;
    }
}
/* akhir header */

/* =========================================================
   LANDING COVER / SPLASH OVERLAY STYLING (COLOR-MATCHED)
   ========================================================= */
/* =========================================================
   BACKGROUND BELAKANG & STYLIST TYPOGRAPHY
   ========================================================= */
/* =========================================================
   GLASSMORPHISM COVER (GAME Phaser KELIHATAN DI BELAKANG)
   ========================================================= */
.wedding-cover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    
    /* 1. Background semi-transparan (Ungu Gelap + Dark Slate Transparan) */
    background: rgba(15, 23, 42, 0.65); 
    
    /* 2. Effect Blur Kaca Mewah (Game di belakang langsung kelihatan blur) */
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.wedding-cover-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.dark-mode .wedding-cover-overlay {
    background: rgba(11, 12, 16, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* KARTU UTAMA COVER (GLASSMORPHISM MEWAH) */
.cover-card-container {
    background: var(--card-bg);
    border: 1.5px solid var(--border-card);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: row; /* Desktop: Kiri - Kanan */
    align-items: center;
    max-width: 950px;
    width: 100%;
    padding: 35px;
    gap: 35px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* CONTAINER FOTO & SHIMMER LIGHT */
.cover-photo-wrapper {
    position: relative;
    flex: 1;
    max-width: 420px;
    width: 100%;
}

.photo-frame-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: 8px;
    bottom: 8px;
    border: 1.5px solid var(--accent-gold);
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.photo-img-container {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    z-index: 2;
}

.cover-photo {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* CAHAYA BERGERAK DI FOTO */
.shimmer-light {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.1) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: moveLight 3.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes moveLight {
    0% { left: -150%; }
    50%, 100% { left: 150%; }
}

/* KONTEN & STYLIST TYPOGRAPHY */
.cover-content-wrapper {
    flex: 1.2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cover-sub {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-purple);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.divider-line {
    height: 1px;
    flex: 1;
    background: var(--border-card);
}

/* NAMA MEMPELAI ELEGANT STYLIST (GREAT VIBES) */
.mempelai-names-stylist {
    font-family: 'Great Vibes', cursive;
    font-size: 52px;
    font-weight: 400;
    color: var(--primary-purple);
    line-height: 1.1;
    margin: 6px 0;
    text-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.mempelai-names-stylist .ampersand {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 36px;
    color: var(--accent-gold);
    margin: 0 4px;
}

/* KOTAK NAMA TAMU EKSKLUSIF */
.guest-box {
    background: rgba(139, 92, 246, 0.05);
    border-top: 1px dashed var(--primary-purple);
    border-bottom: 1px dashed var(--primary-purple);
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    margin: 10px 0;
}

.guest-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.guest-name-stylist {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.guest-place {
    font-size: 11px;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0;
}

/* TOMBOL BUKA UNDANGAN ROYAL */
.btn-open-invitation {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.btn-open-invitation:hover,
.btn-open-invitation:active {
    background: var(--primary-purple);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}

/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */
@media (max-width: 768px) {
    .cover-card-container {
        flex-direction: column;
        padding: 22px 18px;
        gap: 18px;
        max-height: 92vh;
        overflow-y: auto;
    }

    .cover-photo {
        height: 240px;
    }

    .mempelai-names-stylist {
        font-size: 35px;
    }

    .guest-name-stylist {
        font-size: 20px;
    }

    .btn-open-invitation {
        width: 100%;
        padding: 10px 20px;
    }
}
/* =========================================================
   akhir LANDING COVER / SPLASH OVERLAY STYLING (COLOR-MATCHED)
   ========================================================= */