:root {
    --navy: #002B5B;
    --red: #EA4335;
    --white: #FFFFFF;
    --black: #000000;
    --cream: #F4F1EA;
    --grid-color: rgba(208, 225, 249, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

#home {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), 
                      linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.interactive-scene {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.layer-bg { z-index: 1; }
.layer-pagar { z-index: 10; }

.character-group {
    position: absolute;
    bottom: -2%; /* turunkan agar kaki menyentuh dasar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    will-change: transform;
}

.character-group.smooth-reset {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.layer-orang {
    height: 68vh;
    width: auto;
    object-fit: contain;
    display: block;
}

.lab-note {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 var(--red);
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    max-width: 280px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.15s ease, transform 0.15s ease;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
}

.lab-note::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px 12px 0;
    border-style: solid;
    border-color: var(--black) transparent transparent transparent;
}

.lab-note.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================
   RESPONSIVE MOBILE (KARAKTER DIPERBESAR & TURUN)
========================================= */
@media (max-width: 768px) {
    .character-group {
        bottom: -5%; /* turunkan lebih banyak */
    }
    .layer-orang {
        height: 70vh; /* perbesar */
        max-width: 90vw;
    }
    .lab-note {
        font-size: 1.3rem;
        max-width: 280px;
        padding: 10px 18px;
        margin-bottom: 15px;
    }
    .lab-note::after {
        border-width: 10px 10px 0;
        bottom: -10px;
    }
}

@media (max-width: 480px) {
    .character-group {
        bottom: -8%;
    }
    .layer-orang {
        height: 65vh; /* lebih besar dari sebelumnya */
        max-width: 150vw;
    }
    .lab-note {
        font-size: 1.1rem;
        max-width: 260px;
        padding: 8px 15px;
    }
    .lab-note::after {
        border-width: 8px 8px 0;
        bottom: -8px;
    }
}