body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    transition: background 0.5s ease;
}

#egg-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none; 
}

.egg {
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
    opacity: 0.05; 
    position: absolute;
}

.egg:hover { opacity: 1; transform: scale(1.2); }

#egg1 { top: 10%; left: 5%; }
#egg2 { bottom: 20%; right: 10%; }
#egg3 { bottom: 5px; left: 50%; opacity: 0.09; }

/* Fixed: Closed the party-mode block correctly */
.party-mode {
    background-color: #ff00ff !important;
    color: white !important;
}

/* Menu Styles */
.menu-page {
    background: #0d0d0d !important;
    color: #00ff41;
    font-family: 'Courier New', monospace;
}

.terminal-card {
    border: 2px solid #00ff41;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    background: rgba(0, 0, 0, 0.9);
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.menu-btn {
    text-decoration: none;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 15px 40px;
    font-size: 1.2rem;
    transition: all 0.3s;
    letter-spacing: 3px;
    display: inline-block;
}

.menu-btn:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 30px #00ff41;
    transform: scale(1.05);
}

/* Game Over / Master Key Styles */
#egg-final {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    cursor: pointer;
    z-index: 9999;
    background: white;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 0 50px gold;
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-50%, -50%) scale(1.1); }
}

/* New Timer and Stat Styles for start.html */
.stat {
    font-weight: bold;
    font-size: 1.2rem;
}

#timer-display.panic {
    color: #ff0000 !important;
    animation: shake 0.2s infinite;
    font-weight: 900;
}

@keyframes shake {
    0% { transform: translate(1px, 1px); }
    50% { transform: translate(-2px, -1px); }
    100% { transform: translate(1px, 1px); }
}

#stage {
    width: 100vw;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

/* Game Mode Items */
.game-egg {
    position: absolute;
    cursor: crosshair;
    opacity: 0.15;
    transition: opacity 0.2s, transform 0.2s;
    user-select: none;
}

.game-egg:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

/* NEW: Bomb Styles */
.game-bomb {
    position: absolute;
    cursor: crosshair;
    opacity: 0.25; /* Slightly more visible than eggs to entice clicking */
    transition: opacity 0.2s, transform 0.1s;
    user-select: none;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0));
}

.game-bomb:hover {
    opacity: 0.8;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
    animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
    from { filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5)); }
    to { filter: drop-shadow(0 0 15px rgba(255, 0, 0, 1)); }
}