/* ==========================================================================
   /slot/<slug> — the game's card at the top of the page: the artwork in a
   square frame, with the provider, RTP and volatility and the intro beside
   it.

   The artwork used to fill the column's width at its own height, so a
   square picture stood 864px tall before the first word of the review.
   It now sits in a fixed square: 240px beside the text on desktop, 112px
   beside the key facts on a phone.

   The picture is contained, never cropped. Current artwork is square and
   fills the frame exactly; older artwork in other shapes is shown whole
   over a blurred, darkened copy of itself (same file, fetched once).

   Every class here ends in -31, so nothing collides with tailwind.css or
   style2.css. Logical properties throughout, so right-to-left locales
   mirror without any rule in app/rtl.py.
   ========================================================================== */

.sd-hero-31 {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    margin: 0 0 1.75rem;
    padding: 1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(169, 72, 248, 0.12), transparent 60%),
        radial-gradient(60% 100% at 100% 100%, rgba(34, 226, 182, 0.06), transparent 60%),
        linear-gradient(180deg, rgba(31, 41, 55, 0.55), rgba(17, 24, 39, 0.55));
    box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.9);
}

[dir="rtl"] .sd-hero-31 {
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(169, 72, 248, 0.12), transparent 60%),
        radial-gradient(60% 100% at 0% 100%, rgba(34, 226, 182, 0.06), transparent 60%),
        linear-gradient(180deg, rgba(31, 41, 55, 0.55), rgba(17, 24, 39, 0.55));
}

.sd-hero-31 *,
.sd-hero-31 *::before,
.sd-hero-31 *::after {
    box-sizing: border-box;
}

/* --- The artwork ---------------------------------------------------------- */

.sd-art-31 {
    min-width: 0;
    margin: 0;
}

.sd-frame-31 {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1rem;
    background: #0f141b;
    box-shadow: 0 18px 40px -22px rgba(169, 72, 248, 0.55);
}

/* A thin purple-to-teal ring, drawn over the picture's edge. */
.sd-frame-31::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(169, 72, 248, 0.95), rgba(34, 226, 182, 0.8));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.sd-img-31,
.sd-ambient-31 {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
}

.sd-img-31 {
    z-index: 2;
    object-fit: contain;
}

.sd-ambient-31 {
    z-index: 1;
    object-fit: cover;
    filter: blur(18px) saturate(1.3) brightness(0.55);
    transform: scale(1.25);
    pointer-events: none;
}

.sd-caption-31 {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
}

/* --- Beside it ------------------------------------------------------------ */

.sd-hero-body-31 {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    min-width: 0;
}

.sd-chips-31 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sd-chip-31 {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 1.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

/* "Volatility" in a quieter weight before its value. */
.sd-chip-label-31 {
    margin-inline-end: 0.375rem;
    color: #9ca3af;
    font-weight: 500;
}

.sd-chip-provider-31 {
    border-color: transparent;
    background: linear-gradient(90deg, #a948f8, #22e2b6);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    transition: filter .2s ease;
}

a.sd-chip-provider-31:hover {
    filter: brightness(1.12);
    color: #fff;
}

a.sd-chip-provider-31:focus-visible {
    outline: 2px solid #22e2b6;
    outline-offset: 2px;
}

.sd-chip-rtp-31 {
    border-color: rgba(34, 226, 182, 0.4);
    background: rgba(34, 226, 182, 0.08);
    color: #22e2b6;
    font-variant-numeric: tabular-nums;
}

.sd-intro-31 {
    margin: 0;
}

/* --- Narrower screens ------------------------------------------------------ */

@media (max-width: 767.98px) {
    .sd-hero-31 {
        grid-template-columns: 12rem minmax(0, 1fr);
        gap: 1.25rem;
    }
}

/* Phone: a 112px square beside the key facts, the intro full width below. */
@media (max-width: 559.98px) {
    .sd-hero-31 {
        grid-template-columns: 7rem minmax(0, 1fr);
        gap: 0.875rem 1rem;
        padding: 0.875rem;
        border-radius: 1rem;
    }

    /* The chips and the intro join the hero's own grid, so the intro can
       run the full width under the picture. */
    .sd-hero-body-31 {
        display: contents;
    }

    .sd-frame-31 {
        border-radius: 0.875rem;
    }

    .sd-chips-31 {
        align-self: center;
    }

    .sd-intro-31 {
        grid-column: 1 / -1;
        font-size: 0.9375rem;
    }

    .sd-caption-31 {
        font-size: 0.6875rem;
    }
}
