@font-face {
    font-family: 'Quicksand-SemiBold';
    src: url('./Quicksand-SemiBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --accent: #ffb000;
    --accent-dark: #d68b00;
    --card-bg: rgba(255, 255, 255, 0.58);
    --shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Quicksand-SemiBold', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(#b3e9ff, #e2ffc8);
}

#bgVideo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    opacity: 0.8;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(1px);
    z-index: -1;
}

.container {
    text-align: center;
    width: min(980px, 100%);
    margin: auto;
    padding-block: 12px;
}

.title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    color: #24323c;
    text-shadow: 4px 4px 0 rgba(255,255,255,0.85);
}

.subtitle {
    margin: 12px 0 28px;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #173844;
}

.characters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.character {
    width: min(280px, calc(50% - 10px));
    padding: 14px;
    border-radius: 24px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    outline: none;
}

#animal-Char,
#bird-Char {
    border: 4px solid #4caf50;
}

.character:hover,
.character:focus-visible {
    transform: translateY(-4px) scale(1.02);
    border-color: #1b5e20;
}

.char-img {
    width: 100%;
    max-width: 185px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 16px;
}

.section-title {
    margin: 8px 0 0;
    font-size: 1.35rem;
    color: #f19101;
    text-shadow: 3px 3px 0 rgba(255,255,255,0.85);
}

.play-btn {
    min-width: 220px;
    min-height: 60px;
    padding: 14px 28px;
    border: none;
    border-radius: 40px;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: inherit;
    color: #111;
    background: #c9f1a5;
    box-shadow: 0 6px 0 #388e3c;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-btn:hover {
    transform: translateY(-2px);
}

.play-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #388e3c;
}

@media (max-width: 640px) {
    body {
        align-items: flex-start;
    }

    .container {
        padding-block: 8px 20px;
    }

    .title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .subtitle {
        margin: 10px 0 22px;
        font-size: 1rem;
    }

    .characters {
        gap: 14px;
        margin-bottom: 22px;
    }

    .character {
        width: min(100%, 240px);
        padding: 12px;
    }

    .char-img {
        max-width: 150px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .play-btn {
        width: 100%;
        max-width: 260px;
        min-height: 56px;
        font-size: 1.2rem;
    }
}

@media (max-width: 420px) {
    body {
        padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    }

    .title {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .characters {
        gap: 12px;
    }

    .character {
        border-radius: 20px;
        padding: 10px;
    }

    .char-img {
        max-width: 130px;
    }

    .play-btn {
        max-width: 100%;
    }
}
.play-btn {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.play-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(201, 241, 165, 0.8);
    opacity: 0.6;
    z-index: -1;
}
.character {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.7),
        rgba(255,255,255,0.5)
    );
    backdrop-filter: blur(6px);
}

.character:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}
.character.selected {
    border: 4px solid #ff9800;
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(255, 152, 0, 0.6);
}
body {
    background: linear-gradient(#b3e9ff, #e2ffc8);
    background-size: 200% 200%;
    animation: bgMove 10s ease infinite;
}

@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.char-img {
    transition: transform 0.3s ease;
}

.character:hover .char-img {
    transform: scale(1.08) rotate(2deg);
}
