* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #f0f0f0;
    font-family: Arial, sans-serif;
}

/* =========================
           KATEGORIE
           ========================= */

.category {
    max-width: 1200px;
    margin: 0 auto 35px auto;
}

.category-title {
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    font-size: 1.6rem;
    color: #333;
    border-bottom: 3px solid #ccc;
}

/* =========================
           DLAŽDICE
           ========================= */

.tiles {

    display: grid;
    grid-template-columns: repeat(auto-fill, 160px);
    gap: 16px;
    justify-content: flex-start;
}

.sound-button {
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.1s ease,
        box-shadow 0.1s ease,
        background 0.1s ease;
}

.sound-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow:
        0 7px 16px rgba(0, 0, 0, 0.2);
}

.sound-button:active:not(:disabled) {
    transform: scale(0.94);
    background: #e8e8e8;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.15);
}

.sound-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================
           MOBIL
           ========================= */

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sound-button {
        border-radius: 15px;
    }

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

.sound-emoji {
    font-size: clamp(6rem, 8vw, 6rem);
    line-height: 1;
}

.sound-name {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: bold;
    color: #333;
}