:root {
    --primary: #ffb400;
    --secondary: #2c3e50;
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 41, 0.7);
    --glass: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --white: #ffffff;
    --main-bg: url('../images/background.jpg');
    --btn-bg: url('../images/Button_Dolanan.png');
    /* --frame-img: url('../images/frame.png'); */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #000 var(--main-bg) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    margin: 0;
}


.frame-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    overflow: hidden;
    transform-origin: top left;
}

.zoom-lock {
    position: relative;
    width: 100%;
    height: 100%;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 1200px;
    height: 800px;
}

#v-landing .content-above,
.content-above {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    width: 1200px;
    height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#v-landing .content-behind,
.content-behind {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    width: 1200px;
    height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.frame-side {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    height: 100%;
}

.frame-kiri {
    left: 0;
    top: 0;
}

.frame-kanan {
    right: 0;
    top: 0;
}

.frame-bawah-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 110;
    pointer-events: none;
}

.frame-bawah {
    width: auto;
    max-height: 25%;
}

.main-chars {
    width: 90%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
    position: relative;
    z-index: 50;
}

.btn-dolanan,
.btn-mulai,
.btn-lajeng {
    background: linear-gradient(to bottom, #9ccc65, #7cb342);
    border: 6px solid #4e342e;
    border-radius: 50px;
    width: 220px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.4), 0 0 0 2px #8d6e63;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 200;
    position: relative;
}

.btn-dolanan:hover,
.btn-mulai:hover,
.btn-lajeng:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.btn-mulai.btn-reset {
    background: linear-gradient(to bottom, #ef5350, #d32f2f); /* Crimson red warning background for reset action */
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.4), 0 0 0 2px #ef5350;
}

/* Rangkaian Animasi Keluar: Getar -> Turun -> Baru Menghilang di Akhir */
@keyframes exitSequence {
    0% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }

    /* 0s - 0.4s: Getar (Vibrate) */
    2%,
    6%,
    10%,
    14% {
        transform: translate(-52%, -50%) rotate(-1deg);
    }

    4%,
    8%,
    12%,
    16% {
        transform: translate(-48%, -50%) rotate(1deg);
    }

    18% {
        transform: translate(-50.5%, -50%) rotate(0deg);
        opacity: 1;
    }

    20% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }

    /* 0.4s - 1.6s: Meluncur turun (Tetap Terlihat) */
    80% {
        transform: translate(-50%, 200%);
        opacity: 1;
    }

    /* 1.6s - 2s: Menghilang di akhir */
    100% {
        transform: translate(-50%, 200%);
        opacity: 0;
    }
}

@keyframes exitSequenceFrame {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    /* 0s - 0.4s: Getar (Vibrate) */
    2%,
    6%,
    10%,
    14% {
        transform: translateX(-8px);
    }

    4%,
    8%,
    12%,
    16% {
        transform: translateX(8px);
    }

    18% {
        transform: translateX(-3px);
        opacity: 1;
    }

    20% {
        transform: translateY(0);
        opacity: 1;
    }

    /* 0.4s - 1.6s: Meluncur turun (Tetap Terlihat) */
    80% {
        transform: translateY(120%);
        opacity: 1;
    }

    /* 1.6s - 2s: Menghilang di akhir */
    100% {
        transform: translateY(120%);
        opacity: 0;
    }
}

.animate-exit-content {
    animation: exitSequence 2s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-exit-frame {
    animation: exitSequenceFrame 2s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-exit-button {
    animation: exitSequenceButton 2s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes exitSequenceButton {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    /* 0s - 0.4s: Getar (Vibrate) in perfect sync */
    2%,
    6%,
    10%,
    14% {
        transform: translateX(-8px);
    }

    4%,
    8%,
    12%,
    16% {
        transform: translateX(8px);
    }

    18% {
        transform: translateX(-3px);
        opacity: 1;
    }

    20% {
        transform: translateY(0);
        opacity: 1;
    }

    /* 0.4s - 1.6s: Slide down in sync with bottom frame */
    80% {
        transform: translateY(280px);
        opacity: 1;
    }

    /* 1.6s - 2s: Fade out together at the end */
    100% {
        transform: translateY(280px);
        opacity: 0;
    }
}




#v-landing {
    overflow: hidden;
}

#v-landing .content {
    /* Base content properties are now handled by .content-above/behind */
}

#v-landing .title-logo {
    width: 500px;
    margin-top: -1rem;
    margin-bottom: -3rem;
}

#v-landing .character-box {
    position: relative;
    width: 420px;
    margin-top: 0rem;
}

#v-landing .btn-dolanan {
    margin-top: -10rem;
    margin-bottom: 2rem;
    z-index: 200;
}


#v-dashboard {
    overflow: hidden;
}

#v-quiz-play .top-nav,
#v-dashboard .top-nav {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 1rem;
    z-index: 200;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--primary);
    color: #000;
}

#v-dashboard .main-layout {
    display: flex;
    width: 90%;
    max-width: 1200px;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 60;
}

#v-dashboard .character-side {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#v-quiz-play .character-side .main-chars,
#v-dashboard .character-side .main-chars {
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.9));
    animation: floating 4s ease-in-out infinite;
}

#v-quiz-play .character-side .main-chars.excited,
#v-dashboard .character-side .main-chars.excited {
    animation: cheerful-hop 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    transform-origin: bottom center;
    filter: drop-shadow(0 25px 60px rgba(255, 215, 0, 0.15)) drop-shadow(0 20px 45px rgba(0, 0, 0, 0.85));
}

.char-glow-back.excited {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.28) 0%, rgba(255, 180, 0, 0.08) 50%, rgba(255, 180, 0, 0) 72%);
    filter: blur(15px);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}

/* Elegant Sparkles floating around happy Javanese kids */
.sparkles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 96;
}
.sparkle {
    position: absolute;
    color: #ffd700;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.9), 0 0 15px rgba(255, 180, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    animation: float-sparkle 3.5s infinite ease-in-out;
}
.sp-1 { left: 10%; bottom: 25%; animation-delay: 0s; font-size: 20px; }
.sp-2 { left: 30%; bottom: 45%; animation-delay: 0.8s; font-size: 26px; }
.sp-3 { left: 75%; bottom: 20%; animation-delay: 1.6s; font-size: 18px; }
.sp-4 { left: 85%; bottom: 50%; animation-delay: 0.4s; font-size: 28px; }
.sp-5 { left: 45%; bottom: 60%; animation-delay: 2.2s; font-size: 22px; }

@keyframes float-sparkle {
    0% {
        transform: translateY(30px) scale(0) rotate(0deg);
        opacity: 0;
    }
    30% {
        opacity: 0.95;
    }
    80% {
        opacity: 0.95;
    }
    100% {
        transform: translateY(-90px) scale(1.3) rotate(180deg);
        opacity: 0;
    }
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes cheerful-hop {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    /* Hop 1: quick cheerful jump */
    8% {
        transform: translateY(-26px) rotate(-1.5deg);
    }
    14% {
        transform: translateY(0) rotate(0deg);
    }
    /* Quick cute recoil bounce */
    19% {
        transform: translateY(-8px) rotate(0.8deg);
    }
    24% {
        transform: translateY(0) rotate(0deg);
    }
    /* Stillness of anticipation */
    25%, 48% {
        transform: translateY(0) rotate(0deg);
    }
    /* Hop 2: playful hop in the other direction */
    56% {
        transform: translateY(-22px) rotate(1.5deg);
    }
    62% {
        transform: translateY(0) rotate(0deg);
    }
    /* Quick cute recoil bounce */
    67% {
        transform: translateY(-6px) rotate(-0.5deg);
    }
    72% {
        transform: translateY(0) rotate(0deg);
    }
    /* Remaining time: cute breathing idle at rest */
    73%, 99% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes glow-pulse {
    0% {
        transform: translateX(-50%) scale(0.95);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) scale(1.12);
        opacity: 1;
    }
}

.lantern-visual {
    position: absolute;
    right: 5%;
    bottom: 15%;
    width: 140px;
    filter: drop-shadow(0 0 25px rgba(255, 180, 0, 0.6));
    z-index: 65;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: lantern-float 3s ease-in-out infinite alternate;
}

@keyframes lantern-float {
    from {
        transform: translateY(0) rotate(-2deg);
    }

    to {
        transform: translateY(-10px) rotate(2deg);
    }
}

.lantern-visual.pwr-0 {
    filter: grayscale(1) brightness(0.5);
}

.lantern-visual.pwr-max {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px #ffb400);
    }

    to {
        filter: drop-shadow(0 0 40px #ffb400);
    }
}

#v-dashboard .menu-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#v-quiz-play .panel-container,
#v-dashboard .panel-container {
    background: url('../images/panel_bg.png') no-repeat center center;
    background-size: 100% 100%;
    width: 760px;
    height: 528px;
    display: grid;
    grid-template-columns: repeat(2, 280px);
    grid-template-rows: repeat(2, 150px);
    justify-content: center;
    align-content: center;
    gap: 0.2rem;
    padding: 7.5rem 3.8rem 1rem 4.2rem;
    position: relative;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
}

#v-quiz-play .quiz-panel {
    display: flex;
    flex-direction: column;
    padding: 6.5rem 5rem 3rem 5rem; /* Padding disesuaikan untuk teks */
    justify-content: flex-start;
    align-items: center;
}

#v-quiz-play .quiz-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#v-quiz-play .quiz-title {
    color: #8d6e63; 
    border-bottom: 2px solid #8d6e63; 
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

#v-quiz-play .quiz-text-box {
    background: rgba(45, 25, 15, 0.6);
    border: 3px solid #a67c52;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

#v-quiz-play .quiz-text-box p {
    font-size: 1.2rem; 
    line-height: 1.6; 
    font-weight: 600; 
    color: #ffd700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

#v-quiz-play .quiz-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#v-quiz-play .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

#v-quiz-play .option-label {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #8d6e63;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

#v-quiz-play .option-label:hover {
    background: rgba(109, 62, 36, 0.8);
    border-color: #ffd700;
    transform: scale(1.02);
}

#v-quiz-play .option-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

#v-quiz-play .radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ffd700;
    border-radius: 50%;
    position: relative;
}

#v-quiz-play input[type="radio"] {
    display: none;
}

#v-quiz-play input[type="radio"]:checked + .option-text .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ffd700;
    border-radius: 50%;
}

#v-quiz-play input[type="radio"]:checked + .option-text {
    color: #ffd700;
}

#v-quiz-play .quiz-action {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

#v-quiz-play .panel-title,
#v-dashboard .panel-title,
#v-leaderboard-index .panel-title {
    position: absolute;
    top: 60px;
    /* Diturunkan sedikit */
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    /* Diperlebar agar teks tidak turun ke baris baru */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    /* Paksa satu baris */
    color: #ffd700;
    /* Warna emas agar kontras dengan kayu gelap */
    font-weight: 800;
    font-size: 2.2rem;
    /* Dikembalikan ke ukuran besar */
    letter-spacing: 4px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    z-index: 70;
}

#v-leaderboard-index .panel-title {
    font-size: 1.7rem;
    letter-spacing: 2px;
    top: 64px; /* Lowered by another 2px (total 64px) */
}

.menu-item {
    background: rgba(45, 25, 15, 0.6);
    border: 3px solid #a67c52;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    height: 150px;
    /* Kunci tinggi mati di 80px */
    align-self: center;
    /* Mencegah kotak melar mengikuti tinggi grid */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.menu-item:hover {
    background: rgba(109, 62, 36, 0.6);
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.3), 0 8px 25px rgba(255, 215, 0, 0.2);
}

.menu-item img {
    width: 40px;
    /* Ikon diperkecil lagi */
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
    margin-bottom: 0.3rem;
}

.menu-item span {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    /* Teks kotak alur diperkecil */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Layout Khusus Panuntun */
.menu-item.type-panuntun {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    /* Diubah dari space-between agar lebih rapat */
    padding: 0.5rem 0.8rem;
    /* Padding lebih rapat */
}

.menu-item.type-panuntun .top-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Gap diperkecil dari 1rem */
    width: 100%;
    justify-content: center;
}

.menu-item.type-panuntun .bottom-row {
    display: flex;
    gap: 0.5rem;
    /* Gap antar kunci diperkecil */
    margin-top: 1rem;
    /* Didorong lebih ke bawah */
    width: 100%;
    justify-content: center;
}

.status-circle {
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #7d4a2d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
    /* Ikon diperbesar lagi */
}

.status-circle.key-blue { border-color: #3498db; box-shadow: inset 0 0 10px rgba(52, 152, 219, 0.3); }
.status-circle.key-silver { border-color: #bdc3c7; box-shadow: inset 0 0 10px rgba(189, 195, 199, 0.3); }
.status-circle.key-gold { border-color: #f1c40f; box-shadow: inset 0 0 10px rgba(241, 196, 15, 0.3); }
.status-circle.key-green { border-color: #2ecc71; box-shadow: inset 0 0 10px rgba(46, 204, 113, 0.3); }

.status-circle.active {
    background: rgba(255, 255, 255, 0.1);
}

.status-circle.key-blue.active { border-color: #3498db; box-shadow: 0 0 15px rgba(52, 152, 219, 0.8); }
.status-circle.key-silver.active { border-color: #fff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
.status-circle.key-gold.active { border-color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
.status-circle.key-green.active { border-color: #2ecc71; box-shadow: 0 0 15px rgba(46, 204, 113, 0.8); }

.menu-item.locked {
    filter: grayscale(1) opacity(0.5);
    cursor: not-allowed;
}

.lock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
}

#v-leaderboard-index {
    padding: 4rem 2rem; /* Restored original page padding to keep back button in its original position */
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), var(--main-bg);
    background-size: cover;
    background-attachment: fixed;
    overflow-y: auto;
}

#v-leaderboard-index h1 {
    text-align: center;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 3rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.leader-table {
    position: relative; /* Added relative positioning to anchor absolutely positioned panel-title */
    max-width: 680px; /* Squeezed max-width from 800px to fit perfectly inside the lighter parchment core */
    margin: -80px auto 0 auto; /* Raised the board up by 80px while back button remains in place */
    background: url('../images/panel_bg.png') no-repeat center center;
    background-size: 100% 100%;
    padding: 7.98rem 5.2rem 5.5rem 5.2rem; /* Raised content further (from 8.48rem to 7.98rem) */
    min-height: 580px;
    color: #ffd700; /* Bright gold primary text color */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.leader-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 110px; /* Compacted column widths so they fit inside without overflow */
    padding: 0.9rem 0.5rem; /* Squeezed row height */
    align-items: center;
    border-bottom: 1px solid rgba(78, 52, 46, 0.15); /* Soft dark brown divider contrast */
    transition: 0.2s;
}

.leader-row span {
    color: #fff8e1 !important; /* Elegant bright warm cream color */
    font-weight: 600; /* Medium bold for excellent definition and visibility */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); /* Dark shadow for supreme contrast and premium glow */
}

.leader-row.header-row {
    margin-bottom: 1rem;
    border-bottom: 2px solid #8d6e63; /* Accent line for table header */
}

.leader-row.header-row span {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    color: #ffd700 !important; /* Rich bright gold for headers */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    opacity: 0.95;
}

.leader-row:hover:not(.header-row) {
    background: rgba(78, 52, 46, 0.05); /* soft brown hover highlight */
}

.rank {
    font-weight: 800;
    font-size: 1.15rem;
}

.rank-1 {
    color: #ffd700 !important; /* Prestige Bright Gold for Rank 1 */
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5), 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.rank-2 {
    color: #e0e0e0 !important; /* Prestige Bright Silver for Rank 2 */
    font-weight: 800;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4), 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.rank-3 {
    color: #d7ccc8 !important; /* Prestige Bright Bronze/Rose Gold for Rank 3 */
    font-weight: 800;
    text-shadow: 0 0 6px rgba(215, 204, 200, 0.4), 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.username {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff !important; /* Absolute bright white for the name */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.stat-val {
    font-weight: 700;
    text-align: center;
    color: #ffe082 !important; /* Bright warm gold for stat values */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.power-tag {
    background: #5d4037 !important; /* Dark solid background tag for outstanding contrast */
    color: #ffffff !important; /* White text for extremely sharp readability */
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#v-admin-dashboard,
#v-admin-quiz-index,
#v-admin-group-index,
#v-admin-match-index,
#v-admin-quiz-form,
#v-admin-quiz-create {
    padding: 2rem;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), var(--main-bg);
    background-size: cover;
    background-attachment: fixed;
    overflow-y: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.btn-back {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.content-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 1.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-admin {
    background: rgba(255, 180, 0, 0.2);
    color: var(--primary);
}

.badge-student {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
}

.auth-box {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    margin: 2rem auto;
    z-index: 200;
    max-height: 90vh;
    overflow-y: auto;
    /* Fix for backdrop-filter flickering */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.auth-box h1 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--text);
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
}

.btn-auth:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Prevent Chrome Autofill from flashing backgrounds */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover, 
.form-group input:-webkit-autofill:focus, 
.form-group input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px rgba(15, 23, 42, 0.9) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

#v-auth-login,
#v-auth-register {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--main-bg) no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-message {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Gembok Celebration Animation v2 (Epic Level-Up) */
.gembok-celebration {
    width: 250px;
    transform: scale(0);
    z-index: 55;
}

.gembok-overlay.active .gembok-celebration {
    animation: gembokEpicReveal 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, gembokEpicPulse 2s ease-in-out infinite alternate 1.2s;
}

@keyframes gembokEpicReveal {
    0% { transform: scale(0) translateY(50px); filter: brightness(3) drop-shadow(0 0 50px #fff); opacity: 0; }
    40% { transform: scale(1.4) translateY(-15px); filter: brightness(2) drop-shadow(0 0 150px #fff) drop-shadow(0 0 100px #00ffff); opacity: 1; }
    70% { transform: scale(1.0) translateY(0); filter: brightness(1.2) drop-shadow(0 0 60px #ffea00); }
    100% { transform: scale(1.1) translateY(-5px); filter: drop-shadow(0 0 60px #ffb400) drop-shadow(0 0 100px #ffea00); }
}

@keyframes gembokEpicPulse {
    0% { filter: drop-shadow(0 0 40px #ffb400) drop-shadow(0 0 60px #ffea00); transform: scale(1.1) translateY(-5px); }
    100% { filter: drop-shadow(0 0 60px #00e5ff) drop-shadow(0 0 120px #ffea00); transform: scale(1.15) translateY(-8px); }
}

/* Audio Source Attribution Styling */
.audio-attribution {
    position: fixed;
    bottom: 15px;
    left: 20px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    z-index: 9999;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

/* Audio Autoplay Unlock Overlay */
.audio-unlock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 24, 0.93);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999; /* Always on top */
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.audio-unlock-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.unlock-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 180, 0, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 740px;
    max-width: 90%;
    padding: 2.2rem;
    gap: 2.2rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .unlock-card {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Left Column: Visual Characters */
.unlock-char-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.char-glow-back {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 180, 0, 0.15) 0%, rgba(255, 180, 0, 0) 70%);
    filter: blur(10px);
    z-index: 0;
}

.unlock-characters {
    width: 220px;
    height: auto;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    animation: charSway 3s ease-in-out infinite alternate;
}

@keyframes charSway {
    from { transform: translateY(0) scale(1) rotate(-1deg); }
    to { transform: translateY(-8px) scale(1.02) rotate(1deg); }
}

/* Right Column: Actions & Logo */
.unlock-action-column {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.unlock-logo {
    width: 240px;
    max-width: 95%;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
    animation: logoFloat 3s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.tap-container {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tap-icon {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 10px rgba(255, 180, 0, 0.3));
}

/* Ripples */
.ripple {
    transform-origin: 50px 20px;
    opacity: 0;
}
.ripple-1 {
    animation: rippleAnim 1.6s infinite ease-out;
}
.ripple-2 {
    animation: rippleAnim 1.6s infinite ease-out 0.8s;
}

@keyframes rippleAnim {
    0% { r: 5px; opacity: 0; }
    20% { opacity: 0.8; }
    100% { r: 25px; opacity: 0; }
}

/* Floating Music Notes */
.music-note {
    opacity: 0.6;
}
.note-l {
    animation: noteFloatLeft 2s infinite ease-in-out alternate;
    transform-origin: 24px 32px;
}
.note-r {
    animation: noteFloatRight 2s infinite ease-in-out alternate 1s;
    transform-origin: 68px 27px;
}

@keyframes noteFloatLeft {
    0% { transform: translateY(0) rotate(-10deg) scale(0.9); opacity: 0.4; }
    100% { transform: translateY(-12px) rotate(15deg) scale(1.15); opacity: 0.95; }
}

@keyframes noteFloatRight {
    0% { transform: translateY(0) rotate(10deg) scale(0.9); opacity: 0.4; }
    100% { transform: translateY(-12px) rotate(-15deg) scale(1.15); opacity: 0.95; }
}

/* Hand Tapping Motion */
.hand-shape {
    transform-origin: 50px 80px;
    animation: handTap 1.6s infinite ease-in-out;
}

@keyframes handTap {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(6px) scale(0.94); }
    55% { transform: translateY(-2px) scale(1.02); }
}

/* Golden Typography */
.unlock-action-column h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.unlock-action-column h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3), 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.8rem;
    text-align: center;
    animation: textPulse 2s ease-in-out infinite alternate;
}

@keyframes textPulse {
    from { transform: scale(0.98); opacity: 0.85; }
    to { transform: scale(1.02); opacity: 1; }
}

.unlock-action-column p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

/* ==========================================================================
   GLOBAL PERSISTENT AUDIO CONTROL
   ========================================================================== */
.audio-control-global {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    cursor: pointer;
}

/* When placed next to leaderboard in top-nav, flow as flex item */
.top-nav .audio-control-global {
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

.audio-control-global .audio-icon {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* Muted state style adjustments (subtle transparency to look elegant) */
.audio-control-global.muted {
    opacity: 0.6;
}

.audio-control-global.muted:hover {
    opacity: 1;
}

/* Hide control on victory closing page */
#v-closing .audio-control-global {
    display: none !important;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .audio-control-global {
        top: 20px;
        left: 20px;
        width: 34px;
        height: 34px;
        padding: 0 !important;
    }
    .audio-control-global .audio-icon {
        font-size: 1rem;
    }
}

/* ==========================================================================
   SCHOOL LOGO SPECIFIC STYLES
   ========================================================================== */
/* Global Floating Logo on subsequent pages (Dashboard, Quizzes, etc.) */
.school-logo-global {
    position: fixed;
    top: 40px;
    left: 100px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px; /* Set to exactly 150px as requested */
    height: 150px;
    background: rgba(255, 255, 255, 0.05); /* Faint background to blend perfectly */
    border: 2px solid rgba(255, 215, 0, 0.25); /* Subtle golden border */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0.25; /* Disguised / blended into background watermark */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    pointer-events: auto; /* allows hovering and clicks */
}

.school-logo-global img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(30%) contrast(95%); /* Warm tone matching CI4 parchment theme */
    transition: all 0.4s ease;
}

.school-logo-global:hover {
    opacity: 0.9; /* Lights up beautifully on hover */
    transform: scale(1.03);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.school-logo-global:hover img {
    filter: none; /* Restores full colors on hover */
}

/* Hide on victory closing page & all admin-facing pages */
#v-closing .school-logo-global,
[id^="v-admin"] .school-logo-global {
    display: none !important;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .school-logo-global {
        top: 20px;
        left: 68px; /* sits next to mobile mute button (20px left + 34px width + 14px gap = 68px) */
        width: 60px; /* Scaled down watermark on mobile */
        height: 60px;
        opacity: 0.2;
    }
    
    .school-logo-global:hover {
        opacity: 0.8;
    }
}

/* ==========================================================================
   VICTORY CLOSING PAGE STYLES (#v-closing)
   ========================================================================== */
#v-closing {
    background: #000 url('../images/background.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

#v-closing .closing-layout {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 80;
}

#v-closing .closing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 800px;
    text-align: center;
    gap: 1.2rem;
}

#v-closing .title-logo {
    width: 380px;
    max-width: 100%;
    filter: drop-shadow(0 4px 15px rgba(255, 215, 0, 0.3));
    margin-bottom: -1.2rem;
    animation: closing-logo-glow 4s ease-in-out infinite alternate;
}

#v-closing .character-side {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#v-closing .closing-visual {
    max-height: 210px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.75));
    z-index: 95;
}

#v-closing .char-glow-back.excited {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 224, 130, 0.3) 0%, rgba(255, 179, 0, 0.08) 55%, rgba(255, 179, 0, 0) 75%);
    filter: blur(10px);
    z-index: 90;
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}

#v-closing .text-board {
    background: linear-gradient(135deg, #fffdf2 0%, #f7ebd0 100%);
    border: 4px solid #cc9c60;
    border-radius: 30px;
    padding: 1.2rem 2.2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), inset 0 0 25px rgba(212, 163, 115, 0.25);
    max-width: 700px;
    margin-bottom: 0.2rem;
}

#v-closing .board-title {
    font-family: 'Outfit', sans-serif;
    color: #8d4f1c;
    font-size: 1.55rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 2px;
    margin: 0 0 0.4rem 0;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

#v-closing .ornament-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.3rem 0 0.6rem 0;
    opacity: 0.95;
}

#v-closing .ornament-container.reverse {
    margin: 0.6rem 0 0.3rem 0;
}

#v-closing .decorative-ornament {
    width: 200px;
    height: 16px;
}

#v-closing .board-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

#v-closing .final-text {
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 600;
    color: #3d2511;
    text-shadow: none;
    margin: 0;
}

#v-closing .final-text.highlight-p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #a65d00;
}

#v-closing .final-text.font-javanese-bold {
    font-size: 1.15rem;
    font-weight: 800;
    color: #92400e;
}

#v-closing .closing-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.4rem;
    z-index: 200;
    position: relative;
}

#v-closing .btn-lajeng {
    margin-top: 0;
    z-index: 200;
    position: relative;
    width: 240px;
    height: 72px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    border-radius: 35px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, filter 0.3s ease;
}

#v-closing .btn-main-text {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
}

#v-closing .btn-sub-text {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.9;
    line-height: 1;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

#v-closing .btn-reset {
    background: linear-gradient(to bottom, #ffee55 0%, #ffb300 50%, #ff8f00 100%);
    border: 3.5px solid #ffcc00;
    border-bottom: 6px solid #b85c00;
    color: #4a2300;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 0 #cc6a00, 0 15px 30px rgba(255, 143, 0, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.6);
}

/* Float animations */
#v-closing .floating-animation {
    animation: closing-visual-float 4s ease-in-out infinite alternate;
}

@keyframes closing-visual-float {
    0% {
        transform: translateY(0px) rotate(0.5deg);
    }
    100% {
        transform: translateY(-12px) rotate(-0.5deg);
    }
}

@keyframes closing-logo-glow {
    0% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3)) brightness(0.95);
        transform: scale(0.98);
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6)) brightness(1.05);
        transform: scale(1.02);
    }
}

/* Intermediate Penutup page styling (#v-penutup) */
#v-penutup {
    background: #000 url('../images/background.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

#v-penutup .penutup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 1200px;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 80;
}

#v-penutup .penutup-wrapper {
    position: relative;
    display: inline-block;
    z-index: 95;
    animation: penutup-glow 2.5s ease-in-out infinite alternate;
}

#v-penutup .penutup-img {
    max-width: 950px;
    max-height: 600px;
    width: 90vw;
    height: auto;
    object-fit: contain;
    z-index: 95;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
}

#v-penutup .penutup-glow-back {
    position: absolute;
    width: 850px;
    height: 850px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.35) 0%, rgba(255, 180, 0, 0.1) 50%, rgba(255, 180, 0, 0) 70%);
    filter: blur(40px);
    z-index: 90;
    pointer-events: none;
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

/* Pulsing lantern glow overlay exactly over the lantern at top center of penutup.png */
#v-penutup .lentera-glow {
    position: absolute;
    top: 9%; /* Sits exactly over the lantern bulb at top center of the card */
    left: 50.3%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 245, 180, 1) 0%, rgba(255, 200, 50, 0.8) 30%, rgba(255, 140, 0, 0.45) 60%, rgba(255, 60, 0, 0) 80%);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 98;
    pointer-events: none;
    animation: lantern-glow-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes lantern-glow-pulse {
    0% {
        opacity: 0.7;
        transform: translate(-50%, 0) scale(0.9);
        filter: blur(6px);
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.6);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -5px) scale(1.15);
        filter: blur(12px);
        box-shadow: 0 0 65px rgba(255, 215, 0, 0.9), 0 0 100px rgba(255, 140, 0, 0.5);
    }
}

/* Sparkles positioning customized for enlarged victory card */
#v-penutup .sparkles-container {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    pointer-events: none;
    z-index: 100;
}

#v-penutup .sparkle {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.95));
}

#v-penutup .sp-1 { left: -8%; bottom: 15%; animation-delay: 0s; font-size: 28px; }
#v-penutup .sp-2 { left: 5%; bottom: 45%; animation-delay: 0.6s; font-size: 34px; }
#v-penutup .sp-3 { left: 103%; bottom: 10%; animation-delay: 1.2s; font-size: 26px; }
#v-penutup .sp-4 { left: 95%; bottom: 55%; animation-delay: 0.3s; font-size: 36px; }
#v-penutup .sp-5 { left: 45%; bottom: -5%; animation-delay: 2s; font-size: 30px; }
#v-penutup .sp-6 { left: -12%; bottom: 65%; animation-delay: 1.5s; font-size: 32px; color: #fff7c2; }
#v-penutup .sp-7 { left: 108%; bottom: 65%; animation-delay: 0.9s; font-size: 28px; color: #fff7c2; }
#v-penutup .sp-8 { left: 15%; bottom: 80%; animation-delay: 2.5s; font-size: 30px; }
#v-penutup .sp-9 { left: 85%; bottom: 80%; animation-delay: 1.8s; font-size: 32px; }
#v-penutup .sp-10 { left: 50%; bottom: 92%; animation-delay: 0.7s; font-size: 36px; }
#v-penutup .sp-11 { left: -3%; bottom: 90%; animation-delay: 2.1s; font-size: 26px; }
#v-penutup .sp-12 { left: 102%; bottom: 90%; animation-delay: 1.4s; font-size: 28px; }

/* Victory closing page content centering alignment */
#v-closing .closing-content-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 800px;
    text-align: center;
    gap: 2.2rem;
}

#v-closing .btn-logout {
    background: linear-gradient(to bottom, #e1bee7 0%, #ab47bc 50%, #7b1fa2 100%);
    border: 3.5px solid #e1bee7;
    border-bottom: 6px solid #4a148c;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 0 #5c18a6, 0 15px 30px rgba(123, 31, 162, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.5);
}

#v-closing .btn-reset:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 0 #cc6a00, 0 22px 35px rgba(255, 143, 0, 0.55), inset 0 3px 4px rgba(255, 255, 255, 0.7);
    filter: brightness(1.05);
}

#v-closing .btn-reset:active {
    transform: translateY(6px) scale(0.98);
    box-shadow: 0 4px 0 #cc6a00, 0 8px 15px rgba(255, 143, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

#v-closing .btn-logout:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 0 #5c18a6, 0 22px 35px rgba(123, 31, 162, 0.45), inset 0 3px 4px rgba(255, 255, 255, 0.6);
    filter: brightness(1.05);
}

#v-closing .btn-logout:active {
    transform: translateY(6px) scale(0.98);
    box-shadow: 0 4px 0 #5c18a6, 0 8px 15px rgba(123, 31, 162, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

@keyframes penutup-glow {
    0% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.45)) brightness(0.95);
        transform: scale(0.97);
    }
    100% {
        filter: drop-shadow(0 0 35px rgba(255, 215, 0, 0.9)) brightness(1.05);
        transform: scale(1.03);
    }
}






