.home-hero {
    position: relative;
    display: grid;
    min-height: clamp(20.625rem, 48vw, 29.375rem);
    place-items: center;
    overflow: hidden;
    margin-bottom: 1.875rem;
    padding: 2.375rem;
    border: 1px solid rgba(255, 70, 40, .45);
    border-radius: 1.375rem;
    background: radial-gradient(circle at 50% 35%, rgba(255, 80, 20, .38), transparent 34%), linear-gradient(135deg, #150000, #3a0505 56%, #120000);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 20px 55px rgba(120, 0, 0, .25);
}

.home-hero::before {
    content: "MAGMA";
    position: absolute;
    color: rgba(255, 255, 255, .07);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: .1em;
}

.home-hero img {
    position: relative;
    z-index: 1;
    width: min(22.5rem, 65vw);
    filter: drop-shadow(0 0 45px rgba(255, 90, 20, .8));
    transition: transform .25s ease;
}

.home-hero:hover img {
    transform: translateY(-0.5rem) rotate(4deg) scale(1.05);
}

.home-hero div {
    position: absolute;
    z-index: 2;
    bottom: 1.75rem;
    display: grid;
    gap: 0.3125rem;
}

.home-hero strong {
    font-size: 1.15rem;
}

.home-hero small {
    color: #ffbd88;
    font-weight: 700;
    letter-spacing: .12em;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.875rem;
}

.category-card {
    position: relative;
    display: grid;
    min-height: 15.625rem;
    place-items: center;
    overflow: hidden;
    padding: 1.5625rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1.125rem;
    background: var(--card-bg, linear-gradient(135deg, #253067, #593b82));
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    transform: translateY(-0.375rem);
    box-shadow: var(--shadow);
}

.category-card img {
    width: 10rem;
    height: 9.6875rem;
    object-fit: contain;
    filter: drop-shadow(0 14px 25px rgba(0,0,0,.4));
}

.category-card h2 {
    margin: 0;
    font-size: 1.65rem;
    text-transform: uppercase;
}

.category-card[data-theme="rubis"] {
    --card-bg: linear-gradient(135deg, #55172d, #b32955);
}

.category-card[data-theme="keys"] {
    --card-bg: linear-gradient(135deg, #083d50, #167996);
}

.category-card[aria-disabled="true"] {
    opacity: .7;
    cursor: not-allowed;
}

.promo-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(15rem, 24.375rem);
    align-items: center;
    overflow: hidden;
    min-height: 17.5rem;
    padding: clamp(1.875rem, 6vw, 3.75rem);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #d11745, #8f153f);
    text-decoration: none;
}

.promo-card h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.05;
}

.promo-card p {
    color: rgba(255,255,255,.78);
}

.promo-card img {
    justify-self: center;
    max-height: 17.5rem;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.4));
}

@media (max-width: 980px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-card:last-child {
        grid-column: 1 / -1;
        width: calc((100% - 1.25rem) / 2);
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .home-hero {
        min-height: 20.625rem;
        padding: 1.25rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .category-card {
        min-height: 13.125rem;
    }

    .promo-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .promo-card img {
        max-height: 13.125rem;
    }
}
