/*
 * Slot "stat sheet" — the at-a-glance spec panel on the slot detail page.
 * Reuses the theme token system (card surfaces + bubble chips) so it sits
 * natively inside every site's palette. Signature flourishes: the graduated
 * volatility meter and the ⓘ stat tooltips.
 *
 * NOTE: site root font-size is 10px, so 1rem = 10px — every size here is
 * deliberately large to compensate.
 */

.slot-specs {
    margin: 0 0 1.5rem;
    /* Sit above the casino block above (its .slot-description has z-index: 1)
       so the upward stat tooltips aren't clipped by that block's edge. */
    position: relative;
    z-index: 2;
}

/* Three properties per row. No overflow clipping so the ⓘ tooltips can escape
   their cells; the hairline grid is built from the 1px gap colour instead. */
.slot-specs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--theme-gamble-border-color, #dde2e5);
}

.slot-specs__item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.6rem 1.8rem;
    background: var(--theme-gamble-background-color, #fff);
}

.slot-specs__label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.slot-specs__label-text {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--theme-gamble-number-color, #2e2e2e);
    opacity: 0.6;
}

.slot-specs__value {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--theme-gamble-color, #2e2e2e);
}

/* ── ⓘ stat tip ─────────────────────────────────────────────────────────── */
.slot-specs__info {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    background: transparent;
    color: var(--theme-gamble-number-color, #2e2e2e);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.45;
    cursor: help;
    transition: opacity 0.15s ease;
}

.slot-specs__info:hover,
.slot-specs__info:focus {
    opacity: 0.9;
    outline: none;
}

/* Tooltip bubble + arrow, revealed on hover (desktop) or focus (tap/keyboard). */
.slot-specs__info::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 1.1rem);
    left: 50%;
    transform: translate(-50%, 0.4rem);
    width: max-content;
    max-width: 26rem;
    padding: 1rem 1.2rem;
    background: var(--theme-dark-color, #2b2b2b);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 30;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.slot-specs__info::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    border: 0.6rem solid transparent;
    border-top-color: var(--theme-dark-color, #2b2b2b);
    opacity: 0;
    visibility: hidden;
    z-index: 30;
    transition: opacity 0.18s ease;
}

.slot-specs__info:hover::after,
.slot-specs__info:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.slot-specs__info:hover::before,
.slot-specs__info:focus::before {
    opacity: 1;
    visibility: visible;
}

/* ── Volatility meter ───────────────────────────────────────────────────── */
.slot-specs__meter {
    display: inline-flex;
    align-items: flex-end;
    gap: 5px;
    height: 30px;
}

.slot-specs__meter-dot {
    width: 7px;
    border-radius: 3px;
    background: var(--theme-gamble-border-color, #dde2e5);
    transition: background-color 0.2s ease;
}

.slot-specs__meter-dot:nth-child(1) { height: 40%; }
.slot-specs__meter-dot:nth-child(2) { height: 52%; }
.slot-specs__meter-dot:nth-child(3) { height: 64%; }
.slot-specs__meter-dot:nth-child(4) { height: 76%; }
.slot-specs__meter-dot:nth-child(5) { height: 88%; }
.slot-specs__meter-dot:nth-child(6) { height: 100%; }

.slot-specs__meter-dot.is-on {
    background: var(--theme-play-button-color, var(--main-focus-color, #ee6400));
}

/* ── Features & themes ──────────────────────────────────────────────────── */
.slot-specs__tags-wrap {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--theme-gamble-border-color, #dde2e5);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.slot-specs__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
}

.slot-specs__tags-label {
    flex: 0 0 auto;
    min-width: 8.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--theme-gamble-number-color, #2e2e2e);
    opacity: 0.55;
}

.slot-specs__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.slot-specs__chip,
.slot-specs__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 9px 18px;
    border-radius: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Themes: quiet, outlined, hashtag-style. */
.slot-specs__chip {
    color: var(--theme-bubbles-text-color, #2e2e2e);
    background: var(--theme-bubbles-background-color, #fff);
    border: 1.5px solid var(--theme-gamble-border-color, #dde2e5);
}

.slot-specs__chip::before {
    content: "#";
    font-weight: 700;
    opacity: 0.45;
}

/* Features: accented, solid, ticked — the "this game can do X" highlights. */
.slot-specs__badge {
    color: var(--theme-bubbles-selected-color, #fff);
    background: var(--theme-play-button-color, var(--main-focus-color, #ee6400));
    border: 1.5px solid transparent;
    box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.14);
}

.slot-specs__badge::before {
    content: "✓";
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1;
}

/* Pills are filter links into /slots — make that feel interactive. */
a.slot-specs__chip,
a.slot-specs__badge {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, filter 0.15s ease, transform 0.12s ease;
}

a.slot-specs__badge:hover,
a.slot-specs__badge:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    outline: none;
}

a.slot-specs__chip:hover,
a.slot-specs__chip:focus-visible {
    border-color: var(--main-focus-color, #ee6400);
    color: var(--main-focus-color, #ee6400);
    outline: none;
}

/* Tablet: two per row so values stay large and readable. */
@media (max-width: 767px) {
    .slot-specs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slot-specs__value {
        font-size: 2.2rem;
    }
}

/* Phone: single column. */
@media (max-width: 479px) {
    .slot-specs__grid {
        grid-template-columns: 1fr;
    }

    .slot-specs__tags-label {
        min-width: 0;
        width: 100%;
    }
}
