.slot-page {
    min-height: 100vh;
}

.slot-topbar {
    padding: 0.85rem 0;
    background: rgba(5, 28, 42, 0.92);
    border-bottom: 1px solid rgba(47, 224, 184, 0.18);
}

.slot-topbar__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.slot-topbar__back {
    color: rgba(225, 248, 242, 0.75);
    text-decoration: none;
    font-weight: 700;
}

.slot-topbar__back:hover {
    color: #35e1bf;
}

.slot-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-size: 1.2rem;
}

.slot-topbar__badge {
    justify-self: end;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: #081d18;
    background: linear-gradient(135deg, #2fe0ba, #61d9ff);
    font-weight: 900;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.slot-hero {
    background:
            radial-gradient(circle at top left, rgba(43, 229, 181, 0.14), transparent 34%),
            radial-gradient(circle at bottom right, rgba(72, 203, 255, 0.12), transparent 38%);
}

.slot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

.slot-machine,
.slot-card,
.slot-disclaimer {
    border: 1px solid rgba(52, 221, 179, 0.24);
    background:
            linear-gradient(145deg, rgba(8, 58, 52, 0.9), rgba(8, 34, 49, 0.92));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.slot-machine {
    padding: clamp(1.25rem, 3vw, 2.2rem);
    border-radius: 32px;
}

.slot-machine__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.slot-machine__eyebrow {
    margin: 0 0 0.35rem;
    color: rgba(164, 229, 215, 0.78);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.slot-machine h2,
.slot-card h2 {
    margin: 0;
    color: #fff;
}

.slot-balance {
    min-width: 170px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(3, 22, 32, 0.7);
    border: 1px solid rgba(61, 225, 188, 0.18);
    text-align: right;
}

.slot-balance span {
    display: block;
    color: rgba(181, 223, 215, 0.75);
    font-size: 0.85rem;
}

.slot-balance strong {
    display: block;
    color: #ffbf16;
    font-size: 1.6rem;
    line-height: 1.1;
}

.slot-reels {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1rem);
    padding: clamp(1rem, 2.5vw, 1.4rem);
    border-radius: 24px;
    background: rgba(2, 18, 28, 0.82);
    overflow: hidden;
}

.slot-reels::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: 50%;
    height: 2px;
    background: rgba(255, 191, 22, 0.42);
    transform: translateY(-50%);
}

.slot-reel {
    position: relative;
    z-index: 1;
    min-height: clamp(96px, 14vw, 138px);
    display: grid;
    place-items: center;
    border-radius: 18px;
    background:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 38%),
            rgba(4, 31, 45, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.slot-reel.is-spinning {
    transform: translateY(-4px) scale(1.03);
    filter: blur(1px) brightness(1.2);
}

.slot-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.4rem;
}

.slot-control-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(3, 22, 32, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.slot-control-card__label {
    color: rgba(181, 223, 215, 0.75);
    font-weight: 700;
}

.slot-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.slot-stepper button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(93, 235, 202, 0.25);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 900;
}

.slot-stepper button:hover {
    background: rgba(47, 224, 184, 0.18);
}

#slot-bet,
#slot-last-result {
    color: #ffbf16;
    font-size: 1.3rem;
}

.slot-spin {
    width: 100%;
    justify-content: center;
    margin-top: 1.4rem;
    min-height: 64px;
    font-size: 1.2rem;
}

.slot-spin:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.slot-message {
    min-height: 3rem;
    margin: 1.2rem 0 0;
    color: rgba(225, 248, 242, 0.88);
    line-height: 1.65;
}

.slot-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.4rem;
}

.slot-stats span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: rgba(215, 244, 238, 0.86);
    background: rgba(3, 22, 32, 0.72);
}

.slot-side {
    display: grid;
    gap: 1rem;
}

.slot-card {
    padding: clamp(1.1rem, 2vw, 1.4rem);
    border-radius: 24px;
}

.slot-card p,
.slot-card li {
    color: rgba(220, 245, 239, 0.78);
    line-height: 1.65;
}

.paytable,
.slot-rules {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.paytable li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.paytable li:last-child {
    border-bottom: 0;
}

.paytable strong {
    color: #ffbf16;
}

.slot-rules {
    list-style: disc;
    padding-left: 1.2rem;
}

.slot-reset {
    width: 100%;
    justify-content: center;
    margin-top: 1.2rem;
}

.slot-disclaimer {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    color: rgba(220, 245, 239, 0.84);
    text-align: center;
    line-height: 1.6;
}

.slot-disclaimer strong {
    color: #fff;
}

@media (max-width: 980px) {
    .slot-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .slot-topbar__inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .slot-topbar__badge {
        justify-self: start;
    }
}

@media (max-width: 680px) {
    .slot-machine__header,
    .slot-controls {
        grid-template-columns: minmax(0, 1fr);
        display: grid;
    }

    .slot-balance {
        width: 100%;
        text-align: left;
    }

    .slot-reels {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .slot-reel {
        border-radius: 14px;
    }

    .slot-control-card {
        flex-direction: column;
        align-items: stretch;
    }

    .slot-stepper {
        justify-content: space-between;
    }
}