* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(180deg, #BAE6FD 0%, #BBF7D0 60%, #4ADE80 100%);
    font-family: 'Quicksand', sans-serif;
    color: #3C2A21;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    user-select: none;
}

h1, .home-btn, .score-badge, .listen-text, 
.animal-name, .fact-title {
    font-family: 'Fredoka One', cursive !important;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Jungle Sky Elements */
.jungle-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.jungle-tree {
    position: absolute;
    bottom: -10px;
    font-size: 8rem;
    opacity: 0.85;
}
.tree-left { left: -20px; }
.tree-right { right: -20px; }

.jungle-leaves {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.6;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.home-btn {
    background: #FFF;
    color: #3C2A21;
    border: 3px solid #3C2A21;
    border-radius: 14px;
    padding: 8px 16px;
    text-decoration: none;
    box-shadow: 0 4px 0 #3C2A21;
}
.home-btn:hover { background: #3C2A21; color: #FFF; }

.header-info { text-align: center; flex-grow: 1; }
.header-info h1 { font-size: 2.3rem; color: #EA580C; text-shadow: 2px 2px 0 #FFF, 4px 4px 0 #3C2A21; }
.header-info p { font-weight: 700; color: #1E3A8A; font-size: 1.05rem; }

.score-badge {
    background: #FFE569;
    color: #3C2A21;
    border: 3px solid #3C2A21;
    border-radius: 14px;
    padding: 8px 16px;
    font-size: 1.15rem;
    box-shadow: 0 4px 0 #3C2A21;
}

/* Safari Arena */
.safari-arena {
    background: #FFFDF0;
    border: 5px solid #3C2A21;
    border-radius: 32px;
    padding: 25px 20px;
    box-shadow: 0 10px 0 #3C2A21;
}

/* Speaker Station */
.speaker-station {
    text-align: center;
    margin-bottom: 25px;
}

.listen-btn {
    background: linear-gradient(180deg, #FDE047 0%, #F59E0B 100%);
    border: 4px solid #3C2A21;
    border-radius: 28px;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 0 7px 0 #3C2A21;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.listen-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 11px 0 #3C2A21;
}

.listen-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #3C2A21;
}

.speaker-emoji {
    font-size: 2.8rem;
    animation: speakerPulse 1.2s infinite alternate ease-in-out;
}

.listen-text {
    font-size: 1.35rem;
    color: #3C2A21;
    text-shadow: 1px 1px 0 #FFF;
}

.hint-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0284C7;
    margin-top: 10px;
}

/* 4 Animal Grid */
.animal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.animal-card {
    background: #FFFFFF;
    border: 3.5px solid #3C2A21;
    border-radius: 20px;
    padding: 16px 8px;
    cursor: pointer;
    box-shadow: 0 6px 0 #3C2A21;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.animal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 0 #3C2A21;
    background: #FEF08A;
}

.animal-card:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #3C2A21;
}

.animal-emoji {
    font-size: 4rem;
    margin-bottom: 6px;
    line-height: 1;
}

.animal-name {
    font-size: 1.25rem;
    color: #3C2A21;
}

/* Fact Banner */
.fact-banner {
    background: #E0F2FE;
    border: 3px dashed #0284C7;
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    color: #0369A1;
    text-align: center;
}

.fact-title {
    color: #EA580C;
    margin-right: 6px;
}

@keyframes speakerPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15) rotate(6deg); }
}

@media (max-width: 768px) {
    .animal-grid { grid-template-columns: repeat(2, 1fr); }
}