/* Connection Wall Game Specific Styles */
.instructions {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.instructions p { color: #ccc; font-size: 0.95rem; }

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.tile {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    padding: 20px 10px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile:hover { transform: scale(1.02); }

.tile.selected {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #000;
}

.tile.solved-0 { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: #fff; pointer-events: none; }
.tile.solved-1 { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); color: #fff; pointer-events: none; }
.tile.solved-2 { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); color: #fff; pointer-events: none; }
.tile.solved-3 { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); color: #fff; pointer-events: none; }

.tile.wrong {
    animation: shake 0.5s;
}

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

.solved-groups {
    max-width: 800px;
    margin: 0 auto 20px;
}

.solved-group {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.solved-group.group-0 { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.solved-group.group-1 { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
.solved-group.group-2 { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }
.solved-group.group-3 { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }

.solved-group h3 { font-size: 1rem; margin-bottom: 5px; }
.solved-group p { font-size: 0.85rem; opacity: 0.9; }

.message {
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    max-width: 500px;
    border-radius: 10px;
    display: none;
}

.message.win { display: block; background: rgba(46, 204, 113, 0.2); border: 1px solid #2ecc71; }
.message.lose { display: block; background: rgba(231, 76, 60, 0.2); border: 1px solid #e74c3c; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
