body {
    font-family: 'Lilita One', cursive;
    background-color: #3d8cfc;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    user-select: none;
    text-align: center;
}

#game-container {
    width: 90%;
    max-width: 900px;
    background-color: #0b52b8;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

h1 {
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#status-board {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 1.5rem;
}

#score-board {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.puzzle-item {
    background-color: #3d8cfc;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.puzzle-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.word-container {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    padding-top: 20px;
    min-height: 60px;
}

.letter-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.accent-mark {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.5rem;
    color: white;
    pointer-events: none;
    line-height: 1;
}

.letter-tile {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    border-radius: 8px;
    background-color: white;
    color: #333;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
}

.drop-zone {
    background-color: #bde0ff;
    border: 2px dashed #0b52b8;
}

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

.drop-zone.correct {
    background-color: #a7ffba;
    border-style: solid;
    color: #0b52b8;
    transform: scale(1.1);
    transition: transform 0.2s, background-color 0.2s;
}

.incorrect-shake {
    animation: shake 0.5s;
}

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

#vowel-bank {
    display: flex;
    justify-content: center;
    gap: 15px;
    background-color: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 15px;
}

.vowel-tile {
    width: 50px;
    height: 50px;
    cursor: grab;
    background-color: #ffc107;
    color: #333;
    border-bottom: 5px solid #e0a800;
    transition: transform 0.1s;
}

.vowel-tile:active {
    cursor: grabbing;
    transform: scale(0.9);
}

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

#level-win-message,
#game-win-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#level-win-message h2,
#game-win-message h2 {
    font-size: 3rem;
    color: #ffc107;
    text-shadow: 3px 3px 5px black;
}

#next-level-btn,
#play-again-btn {
    font-family: 'Lilita One', cursive;
    font-size: 1.5rem;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    background-color: #ffc107;
    color: #333;
    cursor: pointer;
    border-bottom: 5px solid #e0a800;
    margin-top: 20px;
}

#next-level-btn:hover,
#play-again-btn:hover {
    background-color: #ffda77;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.4rem;
    }
    #game-board {
        grid-template-columns: 1fr;
    }
    .letter-tile {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}