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

:root {
    --primary: #E84393;
    --secondary: #FD79A8;
    --accent: #6C5CE7;
    --background: #1A0A14;
    --surface: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
}

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

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

#game-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    max-height: 800px;
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(232, 67, 147, 0.2);
    display: flex;
    flex-direction: column;
}

header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

canvas {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.overlay.visible {
    display: flex;
}

.overlay h2 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(232, 67, 147, 0.5);
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(232, 67, 147, 0.3);
}

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

#controls-hint {
    position: absolute;
    bottom: 100px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}
