/* RETRO TOP — SEGA / Mega Drive vibe */
/* Place font files in /fonts/kaijuz/ — e.g. kaijuz.woff2 + kaijuz.woff (fallback: Orbitron) */

@font-face {
    font-family: 'Kaijuz';
    src:
        url('../fonts/kaijuz/kaijuz.woff2') format('woff2'),
        url('../fonts/kaijuz/kaijuz.woff') format('woff'),
        url('../fonts/kaijuz/Kaijuz.woff2') format('woff2'),
        url('../fonts/kaijuz/Kaijuz.woff') format('woff');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #090814;
    color: #eae8f4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Kaijuz', 'Orbitron', system-ui, sans-serif;
}

.font-kaijuz {
    font-family: 'Kaijuz', 'Orbitron', system-ui, sans-serif;
}

.material-symbols-outlined.filled {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
}

.material-symbols-outlined.filled.gold {
    color: #fcd34d;
}

.btn {
    text-decoration: none !important;
}

/* Header — “players online” hype strip */
.retro-online-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #22d3ee;
    box-shadow:
        0 0 10px #22d3ee,
        0 0 20px rgba(34, 211, 238, 0.75);
    animation: retro-online-dot-burst 0.85s ease-in-out infinite;
}

@keyframes retro-online-dot-burst {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow:
            0 0 8px #22d3ee,
            0 0 16px rgba(34, 211, 238, 0.65);
    }

    45% {
        transform: scale(1.45);
        opacity: 1;
        box-shadow:
            0 0 4px #fff,
            0 0 22px #22d3ee,
            0 0 40px rgba(34, 211, 238, 1);
    }

    70% {
        transform: scale(1.1);
        opacity: 0.92;
    }
}

@media (prefers-reduced-motion: reduce) {
    .retro-online-live-dot {
        animation: none !important;
        box-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
    }
}

/* Game carousel slides are <button> for reliable click handling */
button.game-slide {
    display: block;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: inherit;
    appearance: none;
    -webkit-appearance: none;
}

#retro-player:not(.hidden) {
    scroll-margin-top: 6rem;
    animation: retro-player-reveal 0.42s ease-out;
}

@keyframes retro-player-reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#retro-game-embed {
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: min(72vh, 820px);
    min-height: 280px;
}

/* Buttons — hover accent #22d3ee */
.rt-solid-accent-hover {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.rt-solid-accent-hover:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.08);
    box-shadow:
        0 0 0 2px rgba(34, 211, 238, 0.55),
        0 0 28px rgba(34, 211, 238, 0.45);
}

.rt-outline-accent-hover {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease;
}

.rt-outline-accent-hover:hover {
    transform: translateY(-2px);
    border-color: #22d3ee !important;
    color: #22d3ee !important;
    background-color: rgba(34, 211, 238, 0.08) !important;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
}

/* Cookie modal — accent buttons */
.cookie-action-btn {
    background-color: #22d3ee;
    color: #090814;
    border: 2px solid #22d3ee;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.cookie-action-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
    transform: translateY(-1px);
}

.cookie-action-btn:active {
    transform: translateY(0);
}

/* Rating bars — same gradient as scrollbar */
.rating-row-track {
    background: rgba(18, 16, 31, 0.95);
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
    min-height: 1.35rem;
}

.rating-bar {
    background: linear-gradient(90deg, #22d3ee, #67e8f9 40%, #e879f9) !important;
    box-shadow:
        0 0 16px rgba(34, 211, 238, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-height: 100%;
}

/* Hero banner — dark veil at 50% so artwork stays readable */
.hero-banner-overlay {
    opacity: 0.5;
}

/* Extra motion */
@keyframes rt-soft-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.55));
    }
}

@keyframes rt-logo-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-rt-logo {
    animation: rt-logo-in 0.65s ease-out forwards;
}

.animate-rt-glow-pulse {
    animation: rt-soft-glow 3.5s ease-in-out infinite;
}

.rt-benefit-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.rt-benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.55) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(34, 211, 238, 0.12);
}

.nav-link-rt {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link-rt::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
    transition: width 0.25s ease;
}

.nav-link-rt:hover {
    color: #22d3ee !important;
}

.nav-link-rt:hover::after {
    width: 100%;
}

/* Слайдер — активная точка */
#game-slider-dots .slider-dot {
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#game-slider-dots .slider-dot.is-active {
    background-color: #22d3ee !important;
    box-shadow: 0 0 0 2px #090814, 0 0 0 4px rgba(34, 211, 238, 0.7);
    transform: scale(1.15);
}

#game-slider-dots .slider-dot:not(.is-active) {
    background-color: #2d2844 !important;
}

#game-slider-dots .slider-dot:not(.is-active):hover {
    background-color: #8b879f !important;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #12101f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #22d3ee, #e879f9);
    border-radius: 10px;
    border: 2px solid #12101f;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: slideUpFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-slide-up-fade-in-1 {
    animation: slideUpFadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-up-fade-in-2 {
    animation: slideUpFadeIn 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-slide-up-fade-in-3 {
    animation: slideUpFadeIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.animate-slide-in-left {
    animation: slideInLeft 0.7s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-right {
    animation: slideInRight 0.7s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}
.delay-200 {
    animation-delay: 0.2s;
}
.delay-300 {
    animation-delay: 0.3s;
}
.delay-400 {
    animation-delay: 0.4s;
}
.delay-500 {
    animation-delay: 0.5s;
}

/* Страница play.html — iframe на всю высоту блока */
#play-frame-wrap .relative {
    min-height: min(70vh, 900px);
}

@media (max-width: 767px) {
    .tab-button {
        font-size: 12px !important;
        padding: 8px 12px !important;
        width: 100%;
    }

    .text-5xl {
        font-size: 1.5rem !important;
    }

    .s-txt {
        font-size: 14px !important;
    }

    #game-slider img {
        height: 360px !important;
    }
}

.grid.md\:grid-cols-2 > div,
.grid.lg\:grid-cols-3 > div {
    display: flex;
    flex-direction: column;
}

.grid.md\:grid-cols-2 > div > div,
.grid.lg\:grid-cols-3 > div > div {
    flex-grow: 1;
}

.star-icon.filled {
    color: #22d3ee;
}

.toaster {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 22px;
    max-width: min(420px, calc(100vw - 32px));
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    z-index: 999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    border: 1px solid rgba(45, 40, 68, 0.9);
}

.toaster.show {
    opacity: 1;
    transform: translateY(0);
}

.toaster.success {
    color: #090814;
    background: linear-gradient(135deg, #22d3ee, #67e8f9);
}

.toaster.error {
    background-color: #dc2626;
    color: #fff;
}

.toaster.info {
    background-color: #12101f;
    color: #eae8f4;
    border-color: #22d3ee;
}
