:root {
    --primary-color: #2ecc71;
    --primary-glow: rgba(46, 204, 113, 0.5);
    --secondary-color: #e74c3c;
    --bg-dark: #1a1a1a;
    --bg-card: #2d2d2d;
    --text-light: #ecf0f1;
    --text-muted: #bdc3c7;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.game-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    margin-bottom: 3rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.score-board {
    display: flex;
    gap: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
}

.score-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#current-score {
    color: var(--primary-color);
}

#high-score {
    color: #f1c40f;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #333;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    padding: 2rem;
}

.overlay h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}

.overlay p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

button {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

button:active {
    transform: translateY(0);
}

.game-controls {
    margin-top: 1.5rem;
    text-align: center;
}

.control-hints {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.control-hints strong {
    color: var(--text-light);
}

/* Comments Section Styling (from feedback.js) */
.feedback-container {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .game-container {
        padding: 1rem;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .overlay h2 {
        font-size: 2rem;
    }
    
    .control-hints {
        flex-direction: column;
        gap: 0.5rem;
    }
}
