:root {
    --primary: #ff007a;
    --secondary: #00f2ff;
    --accent: #ffeb3b;
    --glass: rgba(0, 0, 0, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    color: white;
    background: #050515;
}

#bg-sky {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #0a0a2e 0%, #050515 100%);
    z-index: 0;
}

#stars-container, #clouds-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: white;
    filter: blur(10px);
    border-radius: 50%;
    opacity: 0.15;
    animation: drift var(--duration) infinite linear;
}

@keyframes drift {
    from { transform: translateX(-200px); }
    to { transform: translateX(calc(100vw + 200px)); }
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

#moon {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    z-index: 2;
    opacity: 0.7;
}

#fireworksCanvas {
    position: fixed;
    top: 0; left: 0;
    z-index: 10;
}

#landscape {
    position: fixed;
    bottom: 0; left: 0; width: 100%; height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0 100 L0 80 Q100 60 200 80 T400 70 T600 90 T800 60 T1000 80 L1000 100 Z" fill="%230a0a20"/></svg>');
    background-size: 100% 100%;
    z-index: 20;
}

#launcher {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(45deg, #ff0000, #ffcc00);
    border: 3px solid #ffcc00;
    border-radius: 5px;
    z-index: 25;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    pointer-events: none;
}

#launcher::after {
    content: '🎇';
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 1.2rem;
}

#ui-container {
    position: fixed;
    bottom: 70px; /* Significantly increased to avoid overlap */
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 10px;
    pointer-events: none;
}

#ui-container.hidden { display: none; }

#controls {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    max-width: 95%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mode-selector {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 10px;
}

.mode-selector::-webkit-scrollbar { display: none; }

.mode-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: white;
    color: black;
}

.action-btns {
    display: flex;
    gap: 6px;
    border-left: 1px solid var(--glass-border);
    padding-left: 8px;
}

#clear-btn, #fullscreen-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Game Style Overlay */
#overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/banner.png');
    background-position: top center; /* Start from top */
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Move to bottom */
    padding-bottom: 50px;
    z-index: 200;
    background-color: #050510;
}

#overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
}

#start-btn {
    position: relative;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#start-btn:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

#start-btn:active {
    transform: scale(0.95);
}

#start-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

#start-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #c49000;
}
