/* =========================================================
   187 SPINS — Editorial Casino Theme
   ========================================================= */

:root {
    --bg: #000000;
    --text-primary: #F0ECE5;
    --text-secondary: #8A8A8A;
    --text-muted: #555;
    --border-subtle: rgba(240, 236, 229, 0.12);
    --radius: 4px;
    --radius-sm: 2px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --header-h: 72px;
    --adminbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.admin-bar { --adminbar-h: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar-h: 46px; } }

/* ---- SCROLL SNAP CONTAINER ---- */

.spins-scroll-container {
    position: fixed;
    top: calc(var(--header-h) + var(--adminbar-h));
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ---- SECTIONS ---- */

.spins-section {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-h) - var(--adminbar-h));
    height: calc(100dvh - var(--header-h) - var(--adminbar-h));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ---- HEADER ---- */

.site-header {
    position: fixed;
    top: var(--adminbar-h);
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 clamp(20px, 4vw, 60px);
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo { text-decoration: none; display: flex; align-items: center; }
.site-logo__text {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000;
}

.site-nav__list {
    list-style: none;
    display: flex;
    gap: 32px;
}

.site-nav__list a {
    color: #555;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.site-nav__list a:hover { color: #000; }

/* ---- HEADER RIGHT ---- */

.site-header__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header__socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header__social-link {
    color: #888;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    line-height: 0;
}

.site-header__social-link:hover {
    color: #000;
}

/* ---- HAMBURGER ---- */

.site-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10;
}

.site-header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.site-header__hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.site-header__hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.site-header__hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO SECTION ---- */

.spins-hero-section {
    background: var(--bg);
    flex-direction: column;
    padding: 0;
}

.spins-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.spins-hero__video--mobile { display: none; }

@media (max-width: 640px) {
    .spins-hero__video--desktop { display: none; }
    .spins-hero__video--mobile  { display: block; }
}

.spins-hero__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.0) 30%,
        rgba(0, 0, 0, 0.0) 50%,
        rgba(0, 0, 0, 0.45) 70%,
        rgba(0, 0, 0, 0.75) 90%,
        rgba(0, 0, 0, 0.9) 100%
    );
    pointer-events: none;
}

.spins-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 100px;
}

.spins-hero__actions { display: flex; gap: 16px; justify-content: center; }

.spins-hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- BUTTONS ---- */

.spins-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
}

.spins-btn--primary {
    background: var(--text-primary);
    color: #000;
    box-shadow: none;
}

.spins-btn--primary:hover {
    background: #FFFFFF;
    box-shadow: none;
}

.spins-btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(240, 236, 229, 0.25);
}

.spins-btn--outline:hover {
    border-color: rgba(240, 236, 229, 0.5);
    background: rgba(240, 236, 229, 0.05);
}

.spins-btn--twitch {
    background: #9146FF;
    color: #fff;
    border: 1px solid #9146FF;
    gap: 10px;
}

.spins-btn--twitch svg {
    flex-shrink: 0;
    color: #fff;
    transition: color var(--transition);
}

.spins-btn--twitch:hover {
    background: #7c2ff0;
    border-color: #7c2ff0;
    color: #fff;
}

.spins-btn--twitch:hover svg {
    color: #fff;
}

/* ---- CASINO SECTION ---- */

.spins-casino-section {
    background: var(--section-bg, var(--bg));
    padding: 0 clamp(20px, 4vw, 80px);
}

/* -- Fullscreen background image -- */

.spins-casino__fullbg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.spins-casino__gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.98) 25%,
        rgba(0, 0, 0, 0.88) 40%,
        rgba(0, 0, 0, 0.55) 60%,
        rgba(0, 0, 0, 0.20) 80%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

.spins-casino__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(60px, 8vw, 140px);
    align-items: center;
}

/* -- LEFT: Info -- */

.spins-casino__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spins-casino__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 50px;
}

.spins-casino__name {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.spins-casino__rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spins-casino__stars { display: flex; gap: 3px; }
.star--filled { color: var(--text-primary); }
.star--empty { color: #222; }

.spins-casino__rating-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.spins-casino__offer {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.spins-casino__desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.spins-casino__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.spins-casino__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.spins-casino__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.spins-casino__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.spins-casino__buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* -- RIGHT: Visual (logo only, bg is fullscreen now) -- */

.spins-casino__visual {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spins-casino__logo-wrap {
    position: relative;
    z-index: 1;
    width: clamp(160px, 55%, 320px);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.5));
}

.spins-casino__logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* -- Counter -- */

.spins-casino__counter {
    position: absolute;
    bottom: 30px;
    right: clamp(20px, 4vw, 80px);
    z-index: 3;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.spins-casino__counter-current {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

/* ---- FOOTER ---- */

.site-footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 60px clamp(20px, 4vw, 60px);
}

.spins-footer-snap {
    scroll-snap-align: end;
    height: auto;
    min-height: 0;
}

.site-footer__inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.site-footer__brand .site-logo__text {
    color: #000;
}

.site-footer__disclaimer {
    font-size: 0.8125rem;
    color: #888;
    max-width: 480px;
    line-height: 1.6;
    margin-top: 12px;
}

.site-footer__list {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer__list a {
    color: #555;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.site-footer__list a:hover { color: #000; }

.site-footer__socials {
    display: flex;
    gap: 16px;
    margin-left: auto;
    align-items: center;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color var(--transition);
}

.site-footer__social-link:hover {
    color: #000;
}

/* ---- RESPONSIVE ---- */

/* -- Tablet (≤1024px) -- */

@media (max-width: 1024px) {
    .spins-casino__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .spins-casino__info {
        align-items: center;
        text-align: center;
    }

    .spins-casino__badge { align-self: center; }
    .spins-casino__rating { justify-content: center; }
    .spins-casino__meta { justify-content: center; }
    .spins-casino__buttons { justify-content: center; }

    .spins-casino__features {
        display: inline-flex;
        align-items: flex-start;
    }

    .spins-casino__visual {
        max-width: 280px;
        margin: 0 auto;
        order: -1;
        min-height: 120px;
    }

    .spins-casino__gradient-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.9) 60%,
            rgba(0, 0, 0, 0.95) 100%
        );
    }

    .spins-section {
        align-items: flex-start;
        padding-top: 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .spins-casino__counter {
        bottom: 16px;
        right: 20px;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer__brand { text-align: center; }
    .site-footer__disclaimer { text-align: center; }
    .site-footer__socials { justify-content: center; margin-left: 0; }
    .site-footer__list { justify-content: center; }
}

/* -- Mobile (≤640px) -- */

@media (max-width: 640px) {
    :root { --header-h: 60px; }

    .site-header { padding: 0 16px; }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 24px 16px;
    }

    .site-nav--open { display: block; }

    .site-nav__list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .site-nav__list a { font-size: 1rem; }

    .site-header__socials { gap: 14px; }
    .site-header__social-link svg { width: 16px; height: 16px; }

    .spins-hero-section {
        align-items: center;
        padding-top: 0;
        overflow: hidden;
    }

    .spins-hero__content {
        padding-bottom: 80px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .spins-hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .spins-hero__scroll-hint { bottom: 16px; }

    .spins-casino-section { padding: 0 16px; }
    .spins-casino__inner { gap: 16px; }

    .spins-casino__info { gap: 12px; }
    .spins-casino__name { font-size: 2rem; }
    .spins-casino__offer { font-size: 1.05rem; }
    .spins-casino__desc { font-size: 0.875rem; }
    .spins-casino__features li { font-size: 0.8125rem; gap: 8px; }
    .spins-casino__features { gap: 6px; }
    .spins-casino__meta { gap: 12px; }
    .spins-casino__meta-item { font-size: 0.75rem; }

    .spins-casino__visual {
        max-width: 180px;
        min-height: 80px;
    }

    .spins-casino__logo-wrap { width: clamp(100px, 70%, 180px); }

    .spins-casino__buttons {
        flex-direction: column;
        width: 100%;
    }

    .spins-btn {
        padding: 12px 24px;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }

    .spins-casino__counter { display: none; }
    .spins-section { padding-top: 16px; }

    .site-footer { padding: 40px 16px; }
    .site-footer__inner { gap: 20px; }
    .site-footer__list { gap: 16px; }
    .site-footer__list a { font-size: 0.8125rem; }
}

/* -- Small phones (≤380px) -- */

@media (max-width: 380px) {
    .spins-casino__name { font-size: 1.75rem; }
    .spins-casino__visual { max-width: 140px; }
    .spins-casino__badge { font-size: 0.625rem; padding: 5px 12px; }
}
