/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: #1a1a1a;
}

/* Game Container */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Game Header */
.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
}

/* Canvas */
#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Word Input */
.word-input {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.word-input input {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Game Menu */
.game-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
}

.game-menu h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-buttons button {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 0.25rem;
    background: #4a90e2;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-buttons button:hover {
    background: #357abd;
}

/* Game Over Screen */
.game-over {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
    color: white;
}

.game-over h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.final-score {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}