body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Game container base styles handled by global.css */
.game-container {
    text-align: center;
    max-width: 900px;
}

.game-area {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
    color: var(--primary-color);
    margin: 0;
}

/* Scoreboard */
.scoreboard {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.score-card.active {
    border-color: var(--primary-color);
    background: #ebf5fb;
}

.score-card.drawing {
    border-color: var(--warning-color);
    background: #fef9e7;
}

.score-value {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Round Info */
.round-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.round-label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
}

.timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--background-color);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    min-width: 60px;
    font-family: monospace;
}

.timer.warning {
    color: var(--warning-color);
    animation: pulse 1s infinite;
}

.timer.danger {
    color: var(--danger-color);
    animation: pulse 0.5s infinite;
}

.word-hint {
    font-size: 1.4rem;
    letter-spacing: 5px;
    font-family: monospace;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Drawing Area */
.drawing-area {
    margin-bottom: 15px;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-group.colors {
    gap: 3px;
}

.tool-btn,
.size-btn,
.action-btn {
    padding: 6px 10px;
    font-size: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover,
.size-btn:hover,
.action-btn:hover {
    border-color: var(--primary-color);
    background: #ebf5fb;
    transform: none;
    box-shadow: none;
}

.tool-btn.active,
.size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.action-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Brush size dots */
.size-dot {
    display: block;
    background: #333;
    border-radius: 50%;
}

.size-btn.active .size-dot {
    background: white;
}

.size-small {
    width: 6px;
    height: 6px;
}

.size-medium {
    width: 10px;
    height: 10px;
}

.size-large {
    width: 16px;
    height: 16px;
}

/* Color buttons */
.color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    padding: 0;
    min-width: 28px;
    min-height: 28px;
    box-shadow: none;
    transition: transform 0.15s ease;
}

.color-btn:hover {
    transform: scale(1.2);
    box-shadow: none;
}

.color-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
    transform: scale(1.1);
}

.custom-color-input {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: none;
    overflow: hidden;
}

.custom-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.custom-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

/* Canvas */
.canvas-wrapper {
    display: inline-block;
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    cursor: crosshair;
    max-width: 100%;
}

.canvas-wrapper.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

#drawing-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Guess Area */
.guess-area {
    margin-top: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.guess-log {
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    background: var(--background-color);
    text-align: left;
    font-size: 0.9rem;
}

.guess-log .guess-entry {
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.guess-log .guess-entry:last-child {
    border-bottom: none;
}

.guess-log .guess-entry.correct {
    color: var(--success-color);
    font-weight: 700;
}

.guess-log .guess-entry.close {
    color: var(--warning-color);
    font-weight: 600;
}

.guess-log .guess-entry .guesser-name {
    font-weight: 600;
}

.guess-input-row {
    display: flex;
    gap: 0;
}

.guess-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-top: 2px solid var(--border-color);
    font-size: 1rem;
    outline: none;
}

.guess-input:focus {
    border-top-color: var(--primary-color);
}

#guess-btn {
    padding: 12px 20px;
    border-radius: 0;
    box-shadow: none;
}

/* Drawer Status */
.drawer-status {
    margin-top: 15px;
    padding: 12px 20px;
    background: #fef9e7;
    border: 2px solid var(--warning-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
}

/* Game Buttons */
.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#exit-game-btn {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Cover Screen */
.cover-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cover-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
}

.cover-content h2 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.cover-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Word Reveal Screen */
.word-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.word-reveal-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
}

.word-reveal-content h2 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.word-category {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.word-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 20px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.word-reveal-content p:last-of-type {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Online Info */
.online-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.opponent-name {
    font-weight: 600;
    color: var(--text-muted);
}

/* Round Summary */
.round-summary {
    padding: 20px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    margin: 15px 0;
    text-align: center;
}

.round-summary h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.round-summary .revealed-word {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 650px) {
    .game-container {
        max-width: 100%;
    }

    .game-area {
        padding: 10px;
    }

    .toolbar {
        padding: 8px;
        gap: 6px;
    }

    .tool-btn, .size-btn {
        min-width: 32px;
        min-height: 32px;
        padding: 4px 8px;
        font-size: 0.9rem;
    }

    .color-btn,
    .custom-color-input {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }

    .action-btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .word-hint {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .scoreboard {
        gap: 8px;
    }

    .score-card {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}
