/* ... keep body and container styles ... */
body { font-family: 'Comic Sans MS', sans-serif; background: #e0f7fa; text-align: center; margin: 0; padding: 20px; }
.app-container { max-width: 800px; margin: 0 auto; background: white; padding: 20px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
input, select { padding: 10px; font-size: 1.2em; border-radius: 10px; border: 2px solid #ddd; width: 80%; margin-bottom: 10px; }
button { cursor: pointer; border: none; border-radius: 50px; font-weight: bold; margin: 5px; }
.action-btn { font-size: 1.5em; padding: 10px 30px; background: #2ecc71; color: white; width: 100%; }

.leaderboard ul { list-style: none; padding: 0; text-align: left; background: #fff3cd; padding: 15px; border-radius: 10px; }
.leaderboard li { border-bottom: 1px solid #ffeeba; padding: 5px; display: flex; justify-content: space-between; font-weight: bold; }

.grid { display: grid; gap: 15px; justify-content: center; margin-top: 20px; }

/* MEMORY CARD STYLES */
.mem-card { 
    width: 80px; 
    height: 80px; 
    background-color: #ff6b6b; /* Red back */
    color: white;               /* White Question Mark */
    border-radius: 10px; 
    font-size: 3em; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    user-select: none;
    box-shadow: 0 5px 0 #d44646;
}

.mem-card.flipped {
    background-color: white;    /* White front */
    color: black;               /* Emoji Color */
    border: 3px solid #ff6b6b;
    box-shadow: none;
    transform: translateY(5px);
}
/* --- SENTENCE GAME STYLES --- */
.sentence-box {
    font-size: 1.8em;
    margin: 30px 0;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.drop-zone {
    display: inline-block;
    min-width: 120px;
    min-height: 50px;
    border-bottom: 4px solid #4ecdc4;
    background: #e0f2f1;
    color: #4ecdc4;
    vertical-align: middle;
    margin: 0 10px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s;
}

.drop-zone.drag-over {
    background: #b2dfdb;
    transform: scale(1.1);
}

.drop-zone.filled {
    border-bottom: 4px solid #2ecc71;
    background: #d4edda;
    color: #155724;
}

.draggables-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.word-tile {
    background: white;
    border: 2px solid #aaa;
    padding: 10px 20px;
    font-size: 1.5em;
    border-radius: 10px;
    cursor: grab;
    box-shadow: 0 4px 0 #888;
    user-select: none;
    transition: transform 0.1s;
}

.word-tile:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.word-tile.dragging {
    opacity: 0.5;
}