* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 800px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.game-card h2 {
    margin-bottom: 10px;
    font-size: 1.8em;
}

.game-card p {
    opacity: 0.9;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #764ba2;
}

.game-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.word-row {
    display: flex;
    gap: 5px;
}

.letter-box {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    background: white;
}

.letter-box.correct {
    background: #6aaa64;
    color: white;
    border-color: #6aaa64;
}

.letter-box.present {
    background: #c9b458;
    color: white;
    border-color: #c9b458;
}

.letter-box.absent {
    background: #787c7e;
    color: white;
    border-color: #787c7e;
}

.keyboard {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
}

.keyboard-row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.key {
    padding: 15px;
    min-width: 40px;
    background: #d3d6da;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.key:hover {
    background: #bbb;
}

.key.wide {
    min-width: 65px;
    font-size: 0.8em;
}

.message {
    text-align: center;
    font-size: 1.2em;
    margin: 20px 0;
    min-height: 30px;
    font-weight: bold;
}

.message.win {
    color: #6aaa64;
}

.message.lose {
    color: #dc3545;
}

input[type="text"], input[type="number"] {
    padding: 15px;
    font-size: 1.2em;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

button {
    padding: 15px 30px;
    font-size: 1.1em;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #764ba2;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.game-section {
    text-align: center;
    margin: 20px 0;
}

.player-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.attempts {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.attempt-item {
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
}

.login-container {
    text-align: center;
    padding: 40px 20px;
}

.login-container h2 {
    margin-bottom: 10px;
    color: #333;
}

.login-container p {
    color: #666;
    margin-bottom: 30px;
}

.login-container form {
    max-width: 400px;
    margin: 0 auto;
}

.login-container input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.login-container input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.user-details {
    flex: 1;
    text-align: left;
}

.user-name {
    font-weight: bold;
    color: #333;
}

.user-email {
    font-size: 0.9em;
    color: #666;
}

.logout-btn {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
}

.logout-btn:hover {
    background: #c82333;
}
