body {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; 
    margin: 0;
    background: #363434;
    font-family: sans-serif;
}
.spin {
    animation: rotate 2s linear infinite;
}
@keyframes rotate {100% {transform: rotate(360deg);}}

button.toggle-button {
    margin-top: 30px; 
    padding: 10px 20px; 
    font-size: 16px; 
    cursor: pointer; 
    border-radius: 8px; 
    border: none;
    color: white;
    transition: background 0.2s;
    background: #484747;
}
button.toggle-button:hover {background: #5e5b5b;}
#fish {
    cursor: pointer;
    transition: transform 0.2s;
    width: 400px;
    height: 400px;
    object-fit: contain;
}
#fish:active {
    transform: scale(0.95);
}
#fish.gold {
    filter: hue-rotate(25deg) saturate(1.8) brightness(1.15);
}
.dash {
    position: fixed;
    top: 15px;
    left: 15px; 
    background: #252424; 
    color: rgb(50, 211, 50);
    padding: 15px; 
    font-family: monospace; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.ai {
    position: fixed; 
    bottom: 15px; 
    right: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-family: sans-serif; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
}
.ai input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
}
.ai button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.ai button:hover {
    background: #0056b3;
}
#shop {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #252424;
    color: white;
    padding: 15px;
    border-radius: 8px;
}
#shop button {
    background: #3e3e3e;
    color: #f4f4f4;
    border: 1px solid #747070;
    border-radius: 6px;
    padding: 7px 10px;
    margin-top: 6px;
    cursor: pointer;
}
#shop button:disabled {
    background: #2f2f2f;
    color: #cfcfcf;
    border-color: #5c5858;
    opacity: 1; /* wasn't readable before */
}
#disaster-box {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #252424;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: monospace;
    z-index: 20;
    min-width: 220px;
}
#disaster-bar {
    width: 100%;
    height: 10px;
    background: #334c33;
    border-radius: 670px;
    margin-top: 6.7px;
    overflow: hidden;
}

#disaster-fill {
    width: 0%;
    height: 100%;
    background: #3ecf5e;
    transition: width 0.2s ease, background 0.2s ease;
}
#fall-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 15;
}
.fall-item {
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 24px;
    user-select: none;
    will-change: transform;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
