body {
    font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, sans-serif;
    background-color: #e6f7ff;
    text-align: center;
    margin: 0;
    padding: 15px;
    color: #333;
}

.nav-bar { margin-bottom: 15px; }
.btn-back {
    background-color: #b3e6ff; color: #007799; padding: 10px 20px;
    text-decoration: none; border-radius: 20px; font-weight: bold;
    border: 3px solid #80d4ff; display: inline-block;
}
.btn-back:hover { background-color: #0099cc; color: white; }

h1 { color: #0099cc; font-size: 2rem; margin: 10px 0; }

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

.display-area {
    background-color: #ffffff; border: 6px solid #b3e6ff;
    border-radius: 20px; padding: 20px; margin-bottom: 25px;
    min-height: 200px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0px 8px 15px rgba(0, 153, 204, 0.1);
}

.display-emoji { font-size: 70px; margin: 0; }
.display-word { font-size: 28px; color: #0099cc; margin: 10px 0; font-weight: bold; }

.spell-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.spell-letter {
    background-color: #ffeb3b; color: #d32f2f; font-size: 22px;
    font-weight: bold; padding: 10px 15px; border-radius: 10px;
    border: 3px solid #fbc02d; box-shadow: 2px 4px 0px #f9a825;
    text-transform: uppercase; animation: popIn 0.3s ease-in-out;
}

.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.card {
    background-color: #ffffff; border: 4px solid #80d4ff; border-radius: 15px;
    width: 55px; height: 55px; display: flex; align-items: center;
    justify-content: center; font-size: 26px; font-weight: bold;
    color: #007799; cursor: pointer; box-shadow: 0px 4px 6px rgba(0,0,0,0.05);
    user-select: none; transition: 0.2s;
}
.card:hover { transform: scale(1.1); background-color: #e6f7ff; }

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}