@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --bg-color: #0A1F1C;
    --card-bg: #071614;
    --primary: #00B894;
    --secondary: #55EFC4;
    --accent: #FDCB6E;
    --text: #ffffff;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
    max-height: 800px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-header {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-header h1 {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: 700;
}

.controls-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

#gameCanvas {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 31, 28, 0.8);
    transition: opacity 0.3s ease;
}

.hidden {
    opacity: 0;
}

.btn {
    background: var(--primary);
    color: var(--bg-color);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    pointer-events: auto;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

.btn:active {
    transform: translateY(0);
}
