/* Specifické styly pro hru Město, jméno... */

.game-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.lobby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .lobby-grid {
        grid-template-columns: 1fr;
    }
}

.lobby-box {
    background: var(--color-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.lobby-box:hover {
    border-color: var(--color-primary);
}

.game-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.game-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    text-align: left;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.players-ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.players-ul li {
    background: var(--color-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.playing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-bg);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.timer {
    font-size: 2rem;
    font-weight: bold;
    font-family: monospace;
    background: var(--color-bg);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--color-text);
}

.game-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .game-fields-grid {
        grid-template-columns: 1fr;
    }
}

.field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th, .results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background-color: var(--color-bg);
    font-weight: 600;
}

.results-table tr:nth-child(even) {
    background-color: rgba(249, 247, 242, 0.3);
}

.error-msg {
    animation: shake 0.4s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Abeceda */
.alphabet-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.alphabet-letter {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--color-bg);
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.alphabet-letter.active {
    background: var(--color-primary);
    color: white;
}

.alphabet-letter.used {
    text-decoration: line-through;
    opacity: 0.4;
    background: #e0e0e0;
    color: #666;
}

/* Odpočet (Countdown) */
.countdown-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.countdown-content {
    text-align: center;
}

.countdown-number {
    font-size: 6rem;
    font-weight: bold;
    color: var(--color-primary);
    animation: pop 1s infinite;
}

@keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}
