/* public/style.css */
:root {
    --bg-color: #1e1e24;
    --card-color: #2a2a35;
    --text-color: #f7f4ea;
    --accent-green: #76c893;
    --accent-blue: #1a75ff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 540px;
    width: 100%;
}

.canvas-wrapper {
    background: #141419;
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
}

canvas {
    display: block;
    max-width: 100%;
}

#vitals {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.bar-bg {
    width: 65%;
    background: #141419;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: var(--accent-green);
    transition: width 0.4s ease;
}

#bar-hydration { background: var(--accent-blue); }
#bar-health { background: #ff4d6d; }

#controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

button {
    flex: 1;
    background: #3a3a4a;
    border: none;
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

button:hover {
    background: var(--accent-green);
    color: #141419;
}
