* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: linear-gradient(135deg, #FFD1FF 0%, #FAD0C4 50%, #FFD1FF 100%);
    font-family: 'Quicksand', sans-serif;
    color: #2C3A4B;
    min-height: 100vh;
    padding: 20px;
}

h1, .phonics-letter, .home-btn { font-family: 'Fredoka One', cursive; }
.container { max-width: 950px; margin: 0 auto; }

header { text-align: center; margin-bottom: 25px; position: relative; }
.home-btn {
    display: inline-block;
    background: #FFF;
    color: #3C2A21;
    border: 3px solid #3C2A21;
    border-radius: 12px;
    padding: 8px 16px;
    text-decoration: none;
    margin-bottom: 15px;
    box-shadow: 0 4px 0 #3C2A21;
}
.home-btn:hover { background: #3C2A21; color: #FFF; }

header h1 { font-size: 2.5rem; color: #9D4EDD; text-shadow: 2px 2px 0 #FFF; }
header p { font-weight: 700; color: #5C3317; font-size: 1.1rem; }

.phonics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    background: #FFFFFF;
    border: 5px solid #9D4EDD;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 0 #5C3317;
}

.phonics-card {
    background: #FFFDF0;
    border: 3.5px solid #3C2A21;
    border-radius: 18px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 0 #3C2A21;
    transition: transform 0.15s, background-color 0.2s;
    user-select: none;
}

.phonics-card:hover { transform: translateY(-4px); background: #FFF8C9; }
.phonics-card:active, .phonics-card.speaking { transform: scale(0.92); background: #FFD93D; }

.phonics-emoji { font-size: 3.2rem; display: block; line-height: 1.1; margin-bottom: 2px; }
.phonics-letter { font-size: 1.6rem; color: #4D96FF; display: block; }
.phonics-word { font-size: 0.95rem; font-weight: 700; color: #3C2A21; }