/* =========================================================
   RESET & GLOBAL
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100dvh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Sized dynamically between header and footer with zero scrollbars */
.canvas-container {
    flex: 1;
    width: 100%;
    min-height: 0; /* Crucial: allows flex container to shrink past default heights */
    position: relative;
    overflow: hidden;
}

#main-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* =========================================================
   GREETING HEADER
   ========================================================= */
.greeting-bar {
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid rgba(212, 175, 55, 0.35);
    padding: 6px 20px 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.greeting-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 0.92rem;
    color: #d4af37;
    font-style: italic;
}

.eid-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.3rem;
    color: #1a1a2e;
    text-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.eid-msg {
    font-size: 0.78rem;
    color: #666;
    font-weight: 300;
}

/* =========================================================
   SCENE FOOTER BAR
   ========================================================= */
.scene-bar {
    z-index: 20;
    flex-shrink: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 6px 20px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scene-dots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.scene-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.35s, transform 0.35s;
    cursor: pointer;
    border: none;
    padding: 0;
}

.scene-dot.active {
    background: #d4af37;
    transform: scale(1.4);
}

.scene-dot:hover {
    background: #c8a820;
}

.scene-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.4px;
}

/* =========================================================
   SOUND BUTTON
   ========================================================= */
.sound-btn {
    position: fixed;
    top: 68px;
    right: 18px;
    z-index: 30;
    background: rgba(255,255,255,0.92);
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; align-items: center; justify-content: center;
}

.sound-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px) {
    .eid-title { font-size: 1.2rem; }
    .bismillah { font-size: 0.95rem; }
    .eid-msg { display: none; }
    .sound-btn { top: 90px; right: 12px; width: 40px; height: 40px; }
}
