﻿.site-header.is-scrolled {
    background: rgba(16, 20, 28, 0.88);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--color-border-subtle);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 899;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #8FD3FF 0%, #66C0F4 45%, #4aa8e0 100%);
    color: #171A21;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(102, 192, 244, 0.09), 0 6px 20px rgba(102, 192, 244, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.94);
    backdrop-filter: blur(12px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition), box-shadow var(--transition-fast);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    box-shadow: 0 0 0 1px rgba(102, 192, 244, 0.14), 0 8px 24px rgba(102, 192, 244, 0.2);
    transform: translateY(-2px) scale(1.04);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.reveal {
    opacity: 0;
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: none !important;
    will-change: auto;
}

.reveal--fade-up { transform: translateY(28px); }

.reveal--fade-in { transform: none; }

.reveal--scale { transform: scale(0.96); }

.featured-games__card.is-card-active .game-card__image { transform: scale(1.06); }

.featured-games__card.is-card-active .game-card__link { background: var(--color-card-hover); }

.featured-games__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.featured-games__track.is-dragging .game-card__link { pointer-events: none; }

.ripple-host {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: nexus-ripple 0.65s ease-out forwards;
    pointer-events: none;
}

@keyframes nexus-ripple {
    to { transform: scale(4); opacity: 0; }
}

@media (max-width: 992px) {
.hero__slide-image, .game-card__image, .hero__thumbnail img { height: 100%; }

.widget__avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.widget__bonus-image {
    height: auto;
    width: 100%;
}
}

@media (max-width: 992px) {
.hero__slider-main {
    aspect-ratio: 1920 / 840;
    width: 100%;
    min-height: unset;
    height: auto;
    max-height: none;
}

.hero__slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
}

@media (max-width: 767px) {
.featured-games, .featured-games__inner { overflow: visible; }

.featured-games__controls { display: none; }

.featured-games__track {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: unset;
    gap: 12px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4vw;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    padding: 6px 0 14px;
    box-sizing: border-box;
}

.featured-games__track.is-dragging { scroll-snap-type: none; }

.featured-games__card {
    flex: 0 0 92vw;
    width: 92vw;
    min-width: 92vw;
    max-width: 92vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    opacity: 0.75;
    transform: scale(0.96);
    transform-origin: center center;
    transition: opacity 600ms ease-in-out, transform 600ms ease-in-out;
}

.featured-games__card.is-review-active {
    opacity: 1;
    transform: scale(1);
}
}
