:root {
    --bg-color: #1a1a1a;
    --text-color: #4caf50;
    --accent: #ff5252;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    padding: 1rem;
}

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.back-btn {
    text-decoration: none;
    color: #fff;
    background-color: #4caf50;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 0 #388e3c;
    transition: transform 0.1s, box-shadow 0.1s;
}

.back-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #388e3c;
}

h1 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    color: #ffeb3b;
    margin: 0;
}

.hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 900;
    background: #2a2a2a;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    color: #ffeb3b;
}

.month-display {
    color: #4caf50;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: linear-gradient(to bottom, #112233 0%, #224455 100%);
    touch-action: none; /* Prevent scroll on canvas touch */
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    background-color: transparent;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 30, 30, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    color: #ffeb3b;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 0 #000;
}

.overlay p {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
    line-height: 1.4;
}

.btn {
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 0 #388e3c;
    transition: transform 0.1s, box-shadow 0.1s;
    font-family: 'Outfit', sans-serif;
}

.btn:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #388e3c;
}

.hidden {
    display: none !important;
}
