body {
    margin: 0;
    overflow: hidden;
    font-family: monospace;
    user-select: none;
}

/* --- MAIN MENU STYLES --- */
#mainMenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #87CEEB, #1ca3ec); /* Sky blue to Ocean blue */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100; /* Ensures it sits on top of everything */
}

#mainMenu h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

#menuInstructions {
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    margin-bottom: 30px;
    font-size: 1.2rem;
    text-align: center;
}

#startButton {
    padding: 20px 50px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background: #ff9800; /* Orange */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px #c66900;
    transition: transform 0.1s, box-shadow 0.1s;
}

#startButton:active {
    transform: translateY(4px);
    box-shadow: 0 2px #c66900;
}

#startButton:hover {
    background: #ffac33;
}

/* --- GAME UI STYLES --- */
#gameUI {
    display: none; /* Hidden until start */
}

#instructions {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
}

#fishingStatus {
    position: absolute;
    bottom: 150px; /* Moved up slightly to make room for reel bar */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    pointer-events: none;
    transition: transform 0.1s;
}

/* --- REEL BAR STYLES --- */
#reelContainer {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 25px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    border-radius: 12px;
    display: none; /* Hidden by default */
    overflow: hidden;
}

#reelBarFill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4e50, #f9d423);
    /* REMOVED TRANSITION TO PREVENT LAG */
}

#drownWarning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    background: rgba(255, 0, 0, 0.9);
    padding: 30px 50px;
    border-radius: 15px;
    text-align: center;
    display: none;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    z-index: 50;
}

.bite-alert {
    animation: pulse 0.5s infinite;
    background: rgba(255, 100, 0, 0.95) !important;
    border: 2px solid white;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}