:root {
    --primary-color: #4A90E2;
    --secondary-color: #2C3E50;
    --success-color: #27AE60;
    --error-color: #E74C3C;
    --background-color: #F5F6FA;
    --text-color: #2C3E50;
    --border-radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.game-container {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-container {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.theme {
    font-weight: bold;
    color: var(--primary-color);
}

.hints-container {
    margin-bottom: 30px;
}

.hint {
    background-color: var(--background-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease;
}

.hidden {
    display: none;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 2px solid #DDD;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #357ABD;
}

.secondary-btn {
    background-color: var(--secondary-color);
}

.secondary-btn:hover {
    background-color: #1A252F;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.result-area {
    margin: 16px 0;
    padding: 16px;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--border-radius);
    text-align: center;
}

.result-area .result-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.result-area .score,
.result-area .result-details {
    margin-bottom: 8px;
}

.result-area .share-button {
    margin-top: 12px;
}

.result-area.success {
    background-color: #f0fdf4;
    border-color: #86efac;
}

.result-area.failure {
    background-color: #fef2f2;
    border-color: #fca5a5;
}

.result-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.score {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.result-details {
    color: #666;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.share-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-button:hover {
    background-color: #357ABD;
}

.score-container {
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--secondary-color);
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
    }

    .input-container {
        flex-direction: column;
    }
}
