/* ============================================
   MYTHOLOGICAL GAMES — Olympus / Mortals / Hades
   ============================================ */

/* CSS Variables */
:root {
    /* Dark Theme Colors */
    --bg-dark: #0c0a1f;
    --bg-primary: #110d28;
    --bg-secondary: #161033;
    --bg-tertiary: #1c1740;
    --bg-card: rgba(28, 23, 64, 0.75);

    /* Accent Colors — mythological gold + Hades violet */
    --accent-primary: #f6c75b;      /* golden */
    --accent-primary-rgb: 246, 199, 91;
    --accent-secondary: #ffd87a;     /* lighter gold */
    --accent-tertiary: #b88a30;      /* deep gold */
    --accent-purple: #6b3bd6;        /* Hades indigo */
    --accent-cyan: #7eb8d8;          /* Olympus sky */
    --accent-pink: #d65b8a;          /* aphrodite rose */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ffd87a 0%, #f6c75b 50%, #b88a30 100%);
    --gradient-purple: linear-gradient(135deg, #6b3bd6 0%, #d65b8a 100%);
    --gradient-dark: linear-gradient(180deg, rgba(11,9,33,0.85) 0%, rgba(12,10,31,0.92) 100%);
    --gradient-radial: radial-gradient(ellipse at center, rgba(246,199,91,0.15) 0%, transparent 70%);

    /* Text Colors */
    --text-primary: #f8f1d8;
    --text-secondary: rgba(248, 241, 216, 0.78);
    --text-muted: rgba(248, 241, 216, 0.5);

    /* Effects */
    --border-glow: rgba(246, 199, 91, 0.35);
    --shadow-glow: 0 0 60px rgba(246, 199, 91, 0.3);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.55);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;

    /* Spacing Sizes */
    --section-padding: 40px;
    --container-max: 1400px;
    --partners-card-width: min(28vw, 240px);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Poseidon's trident scrollbar (WebKit) ===
   The thumb is a vertical golden "shaft" capped by a trident SVG at
   the top and a single golden ball at the bottom. The shaft slides
   inside a deep-indigo track. Firefox falls back to scrollbar-color. */

* { scrollbar-color: #f6c75b rgba(12, 10, 31, 0.6); scrollbar-width: thin; }

::-webkit-scrollbar { width: 18px; height: 18px; }

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(28, 23, 64, 0.85) 0%, rgba(12, 10, 31, 0.9) 100%);
    border-left: 1px solid rgba(246, 199, 91, 0.18);
}

/* Thumb = gold rod + trident head + ball foot, all as background image */
::-webkit-scrollbar-thumb {
    background:
        /* trident head — top cap (~30px tall) */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 36'><g fill='%23f6c75b' stroke='%23b88a30' stroke-width='0.6'><path d='M2 6 L2 18 L4 18 L4 8 L6 12 L6 18 L8 18 L8 4 L9 1 L10 4 L10 18 L12 18 L12 12 L14 8 L14 18 L16 18 L16 6 L14 4 L12 6 L10 4 L9 1 L8 4 L6 6 L4 4 Z'/><rect x='8' y='18' width='2' height='14'/></g></svg>") top center / 18px 36px no-repeat,
        /* golden ball — bottom (~14px tall) */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'><circle cx='9' cy='7' r='5' fill='%23f6c75b' stroke='%23b88a30' stroke-width='0.6'/><circle cx='9' cy='7' r='2.5' fill='%23ffd87a'/></svg>") bottom center / 18px 14px no-repeat,
        /* shaft fill — gold gradient between cap and ball */
        linear-gradient(180deg, transparent 0 30px, #f6c75b 30px, #b88a30 calc(100% - 14px), transparent calc(100% - 14px));
    border-radius: 9px;
    min-height: 70px;
}

::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.15) drop-shadow(0 0 8px rgba(246, 199, 91, 0.5));
}

::-webkit-scrollbar-corner { background: rgba(12, 10, 31, 0.9); }

@media (max-width: 768px) {
    ::-webkit-scrollbar { width: 12px; }
    ::-webkit-scrollbar-thumb {
        background-size: 12px 24px, 12px 10px, 100% 100%;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary), sans-serif;
    background:
        linear-gradient(180deg, rgba(12, 10, 31, 0.55) 0%, rgba(12, 10, 31, 0.78) 55%, rgba(12, 10, 31, 0.92) 100%),
        url('../images/myth_bg.png') no-repeat top center / cover scroll,
        var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
strong {
    color: var(--accent-primary);
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 72, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(var(--accent-primary-rgb), 0.5);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 23s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 15s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(50vh) scale(1);
        opacity: 0.3;
    }
    90% {
        opacity: 0.5;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: rgba(3, 3, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.scrolled {
    background: rgba(3, 3, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.nav_block {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-block {
    flex-shrink: 0;
}

.nav-logo-block img {
    height: 72px;
    width: 72px;
    border-radius: 10px;
    object-fit: contain;
    background: transparent;
    transition: var(--transition-fast);
    filter: none;
}

.nav-logo-block a:hover img {
    filter: brightness(1.2);
    transform: scale(1.02);
}

#nav_logo_small {
    display: none;
}

.test-gap {
    display: none;
}

.links-block {
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    /* Closed state — animated open via .active */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scaleY(0.96);
    transform-origin: top center;
    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.2, 0.85, 0.25, 1),
        visibility 0s linear 0.32s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.2, 0.85, 0.25, 1),
        visibility 0s linear 0s;
}

.mobile-menu a,
.mobile-menu .mobile-lang-switcher {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active a,
.mobile-menu.active .mobile-lang-switcher {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active a:nth-child(1)  { transition-delay: 0.06s; }
.mobile-menu.active a:nth-child(2)  { transition-delay: 0.10s; }
.mobile-menu.active a:nth-child(3)  { transition-delay: 0.14s; }
.mobile-menu.active a:nth-child(4)  { transition-delay: 0.18s; }
.mobile-menu.active a:nth-child(5)  { transition-delay: 0.22s; }
.mobile-menu.active a:nth-child(6)  { transition-delay: 0.26s; }
.mobile-menu.active a:nth-child(7)  { transition-delay: 0.30s; }
.mobile-menu.active a:nth-child(8)  { transition-delay: 0.34s; }
.mobile-menu.active a:nth-child(9)  { transition-delay: 0.38s; }
.mobile-menu.active .mobile-lang-switcher { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu a,
    .mobile-menu .mobile-lang-switcher {
        transition: opacity 0.15s ease;
        transform: none !important;
    }
}

.mobile-menu a {
    display: block;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--accent-primary);
    background: rgba(255, 72, 0, 0.1);
}

.mobile-menu .mobile-lang-switcher {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.mobile-menu .mobile-lang-switcher .lang-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.mobile-menu .mobile-lang-switcher .lang-btn.active {
    background: var(--accent-primary);
    color: white;
}

.navigation-item__content {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
}

.navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.navigation-item__content:hover {
    color: var(--text-primary);
}

.navigation-item__content:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
    text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--accent-primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: 110px 40px 0;
    overflow: hidden;
}

/* Tighten gap between hero and the first content section */
.hero + .main-block { padding-top: 0; padding-bottom: 40px; }
.hero + .main-block .main-block__header { margin-top: 0; }

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background:
        radial-gradient(ellipse 40% 30% at 30% 40%, rgba(255, 72, 0, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 30% 25% at 70% 60%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "logo logo"
        "content showcase";
    gap: 24px 80px;
    align-items: center;
    max-width: var(--container-max);
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-container > .hero-logo { grid-area: logo; justify-self: center; }
.hero-container > .hero-content { grid-area: content; }
.hero-container > .hero-showcase { grid-area: showcase; }

.hero-content {
    text-align: left;
    position: relative;
    z-index: 2;
}

/* Hero Showcase */
.hero-showcase {
    position: relative;
    perspective: 1000px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.showcase-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 26, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    display: block;
}

.showcase-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.showcase-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.showcase-card:hover img {
    transform: scale(1.05);
}

/* Staggered animation */
.showcase-card-1 { animation: float-card 6s ease-in-out infinite; }
.showcase-card-2 { animation: float-card 6s ease-in-out infinite 1s; }
.showcase-card-3 { animation: float-card 6s ease-in-out infinite 2s; }
.showcase-card-4 { animation: float-card 6s ease-in-out infinite 3s; }
.showcase-card-5 { animation: float-card 6s ease-in-out infinite 4s; }
.showcase-card-6 { animation: float-card 6s ease-in-out infinite 5s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.hero-logo img {
    width: 320px;
    height: 200px;
    object-fit: cover;
    /* Oval (ellipse) shape: 100% on x, 65% on y */
    border-radius: 50% / 65%;
    position: relative;
    z-index: 1;
    animation: logo-pulse 3.2s ease-in-out infinite;
    filter: drop-shadow(0 0 50px rgba(246, 199, 91, 0.6));
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #1c1208;
    box-shadow: 0 10px 40px rgba(246, 199, 91, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(246, 199, 91, 0.5);
}

.btn-secondary {
    background: rgba(246, 199, 91, 0.10);
    color: var(--accent-primary);
    border: 1px solid rgba(246, 199, 91, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(246, 199, 91, 0.20);
    border-color: rgba(246, 199, 91, 0.7);
    color: var(--accent-secondary);
    transform: translateY(-3px);
}

/* Main Sections */
.main-block {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.main-block__header {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
#about-us {
    text-align: center;
    padding-top: 160px;
}

#about-logo {
    height: 100px;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 30px rgba(255, 72, 0, 0.2));
}

.description-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    /* Keep words intact: no justify (which causes giant gaps and
       perceived "broken" lines on long English sentences) and no
       auto-hyphenation that introduces mid-word hyphens. */
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
}
.description-text p {
    margin: 0 0 16px;
}
.description-text p:last-child { margin-bottom: 0; }

/* Products Grid */
.products-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.product-item {
    position: relative;
    height: 100%;
}

.product-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    min-height: 280px;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 26, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    text-decoration: none;
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.product-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-radial);
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-link:hover {
    transform: translateY(-10px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.product-link:hover::before {
    opacity: 1;
}

.product-link img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.product-link:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 72, 0, 0.5));
}

.product-link div {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Games Section */
.games-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.game-item {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.6) 0%, rgba(15, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition-smooth);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-item:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 50px rgba(255, 72, 0, 0.2);
}

.game-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.game-item:hover img {
    transform: scale(1.15);
}

.game-type-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Games Filter */
.games-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-tag {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tag:hover {
    background: rgba(255, 72, 0, 0.1);
    border-color: rgba(255, 72, 0, 0.3);
    color: var(--text-primary);
}

.filter-tag.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.6) 0%, rgba(15, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.game-card-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-title {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Partner Card Styles */
.partner-card {
    width: var(--partners-card-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.6) 0%, rgba(15, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(var(--accent-primary-rgb), 0.4);
    transition: var(--transition-smooth);
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    background: rgba(var(--accent-primary-rgb), 0.6);
    box-shadow: var(--shadow-glow);
}

.partner-card-image {
    width: calc(var(--partners-card-width) * 0.9);
    height: calc(var(--partners-card-width) * 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    padding: 20px;
}

.partner-card:hover .partner-card-image img {
    transform: scale(1.05);
}

.partner-card-title {
    text-align: center;
}

/* Partners Grid - Center on page */
#partners-grid {
    padding-top: 2%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 90vw;
    margin: 0 auto;
}


/* RGS Section */
#product-rgs,
#product-exclusive,
#product-live {
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 72, 0, 0.02) 50%, transparent 100%);
}

/* CTA Link */
.simple-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: 30px;
}

.simple-link:hover {
    color: var(--accent-secondary);
    gap: 16px;
}

.simple-link::after {
    content: '→';
    transition: var(--transition-fast);
}

/* Contact Section */
#contacts-us {
    background: transparent;
}

.contacts-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contacts-block form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts-block input,
.contacts-block textarea {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-primary), sans-serif;
    transition: var(--transition-fast);
}

.contacts-block input::placeholder,
.contacts-block textarea::placeholder {
    color: var(--text-muted);
}

.contacts-block input:focus,
.contacts-block textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 72, 0, 0.05);
    box-shadow: 0 0 30px rgba(255, 72, 0, 0.1);
}

.contacts-block textarea {
    resize: vertical;
    min-height: 140px;
}

#send_button {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 14px;
    transition: var(--transition-smooth);
}

#send_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 72, 0, 0.4);
}

#after-contact {
    text-align: left;
}

#after-contact span:first-child {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.description {
    display: block;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 20px;
}

/* Footer */
footer {
    position: relative;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin: 0 auto;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-block {
    color: var(--text-muted);
    font-size: 14px;
}

#footer-studio-name {
    font-weight: 700;
    font-size: 18px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Age Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 8, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.age-gate.visible {
    display: flex;
    opacity: 1;
}

.age-gate-content {
    text-align: center;
    padding: 60px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 26, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    max-width: 500px;
}

#age-gate-question {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.age-gate .buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.age-gate button {
    padding: 18px 60px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#yes-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

#yes-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 72, 0, 0.4);
}

#no-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

#no-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
}

/* ============================================
   GAMES PAGE STYLES
   ============================================ */

/* Carousel/Banners */
#banners_wrapper {
    padding: 140px 40px 60px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.carousel-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}

#carousel-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16/10;
    max-width: 520px;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
    touch-action: pan-y pinch-zoom;
}

.carousel-image.appeared {
    opacity: 1;
    z-index: 1;
}

.carousel-image.disappeared {
    opacity: 0;
    z-index: 0;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-info {
    padding: 20px 0;
}

.carousel-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.carousel-meta {
    margin-bottom: 16px;
}

.carousel-type {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 72, 0, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.carousel-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-height: none;
    overflow: hidden;
}

.carousel-play-btn {
    display: inline-flex;
}

#dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active,
.carousel-dot:hover {
    background: rgba(var(--accent-primary-rgb), 1);
    transform: scale(1.2);
}

/* Game Detail Page */
.game-detail-page {
    min-height: calc(100vh - 200px);
    padding: 120px 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-detail-video-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.game-detail-video-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
    background: #000;
}

.game-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.game-detail-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}


.game-detail-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.game-detail-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 24px;
}

.game-detail-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.game-detail-info {
    padding: 20px 0;
}

.game-detail-info h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.game-detail-meta {
    margin-bottom: 24px;
}

.game-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 72, 0, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.game-detail-specs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-width: 80px;
}

.spec-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.game-detail-features {
    margin-bottom: 24px;
}

.game-detail-features h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.game-detail-description {
    margin-bottom: 32px;
}

.game-detail-description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.game-play-btn {
    display: inline-flex;
    padding: 16px 40px;
    font-size: 16px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .game-play-btn { margin-top: 10px; }
}

.game-play-btn.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.error-message {
    text-align: center;
    padding: 100px 20px;
}

.error-message h1 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Game Detail Page - Responsive */
@media (max-width: 900px) {
    .game-detail-page {
        padding: 100px 20px 40px;
    }

    .game-detail-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .game-detail-info h1 {
        font-size: 28px;
    }

    .game-detail-specs {
        gap: 12px;
    }

    .spec-item {
        padding: 10px 16px;
    }
}

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
}

.slider-list {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.slider-list::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    gap: 24px;
    padding: 20px 0;
}

.sliders-gap {
    display: none;
}

/* Game Cards (Games page) */
.slide,
.demo-game-link {
    text-decoration: none;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.text-and-image {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 26, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.text-and-image:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.text-and-image h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    font-size: 18px;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.one-game-image {
    width: 280px;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.text-and-image:hover .one-game-image {
    transform: scale(1.05);
}

.text-and-image-carousel {
    position: relative;
    overflow: hidden;
}

/* Game Detail Page */
#game-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-info {
    flex: 1;
}

.game-table {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.6) 0%, rgba(15, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.game-table table {
    width: 100%;
    border-collapse: collapse;
}

.game-table th,
.game-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-table td:last-child,
.game-table th:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.game-table tr:last-child th,
.game-table tr:last-child td {
    border-bottom: none;
}

#game-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.demo-game-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.demo-game-box:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 72, 0, 0.4);
}

.demo-game-link-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section containers for games page */
#product-slots .slider-track,
#product-instant,
#product-roulettes,
#product-plinko,
#product-crash,
#product-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

#product-instant,
#product-roulettes,
#product-plinko,
#product-crash,
#product-mini {
    padding: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 72, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 72, 0, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --section-padding: 50px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-showcase {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .products-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .contacts-block {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    #after-contact {
        text-align: center;
    }

    .carousel-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .carousel-info {
        text-align: center;
    }

    .carousel-info h2 {
        font-size: 28px;
    }
}

@media screen and (orientation: portrait) {
    :root {
        --section-padding: 40px;
    }

    .main-block {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav_block {
        padding: 0 20px;
    }

    .links-block {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .lang-switcher {
        display: none;
    }

    #nav_logo_big {
        display: none;
    }

    #nav_logo_small {
        display: block;
    }

    #nav_logo_small img {
        height: 35px;
    }

    .hero {
        padding: 90px 16px 24px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "showcase";
        gap: 28px;
    }

    .hero-content {
        margin-top: 8px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: clamp(30px, 8vw, 40px);
        margin-bottom: 16px;
    }

    .hero-showcase {
        max-width: 100%;
        margin: 12px 0 0;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hero-cta {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-cta .btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        width: auto;
        padding: 14px 12px;
        font-size: 12px;
        letter-spacing: 0.4px;
        justify-content: center;
        text-align: center;
    }

    footer {
        padding: 0;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 40px 20px 60px;
    }

    .products-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-link {
        padding: 30px 20px;
        min-height: 200px;
    }

    .product-link img {
        width: 60px;
        height: 60px;
    }

    .games-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .game-item {
        padding: 30px 16px;
    }

    .one-game-image {
        width: 160px;
        height: 200px;
    }

    .games-filter {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-tag {
        padding: 10px 16px;
        font-size: 13px;
    }

    #all-games {
        margin-top: 40px;
        padding-top: 40px;
    }

    #partners-grid {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        gap: 16px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /*.partner-card-image img{*/
    /*    width: 100%;*/
    /*    height: auto;*/
    /*    align-content: center;*/
    /*}*/
    .game-card-title {
        padding: 12px;
        font-size: 12px;
    }

    #banners_wrapper {
        padding: 100px 20px 40px;
    }

    .carousel-info h2 {
        font-size: 22px;
    }

    .carousel-description {
        font-size: 14px;
        max-height: none;
    }

    .age-gate-content {
        margin: 20px;
        padding: 40px 30px;
    }

    .age-gate .buttons {
        flex-direction: column;
    }

    .age-gate button {
        padding: 16px 40px;
    }
}

@media (max-width: 480px) {
    .products-list {
        grid-template-columns: 1fr;
    }

    .games-list {
        grid-template-columns: 1fr;
    }

    #about-logo {
        height: 60px;
    }

    .hero-logo { margin-bottom: 28px; }
    .hero-logo img { height: 200px; }
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo img { animation: none; }
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 72, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 72, 0, 0.5);
}

/* Selection */
::selection {
    background: rgba(255, 72, 0, 0.3);
    color: white;
}

/* Social Media Section */
#social {
    text-align: center;
}

.social-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 500;
}

.social-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
    padding: 20px;
    border-radius: 12px;
}

.social-link-item::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 72, 0, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all var(--transition-smooth);
}

.social-link-item:hover::before {
    width: 140px;
    height: 140px;
    background: rgba(255, 72, 0, 0.2);
    box-shadow: 0 0 40px rgba(255, 72, 0, 0.3);
}

.social-link-item svg {
    width: 48px;
    height: 48px;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(255, 72, 0, 0));
}

.social-link-item:hover svg {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 15px rgba(255, 72, 0, 0.6));
    transform: scale(1.1) translateY(-3px);
}

.social-link-item span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-smooth);
}

.social-link-item:hover span {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(255, 72, 0, 0.4);
}

@media (max-width: 768px) {
    .game-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .game-detail-video-section {
        margin-bottom: 40px;
    }

    .game-detail-video-container {
        aspect-ratio: 16/9;
    }

    .social-links-container {
        gap: 30px;
        padding: 30px 0;
    }

    .social-link-item {
        padding: 15px;
    }

    .social-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .game-detail-page {
        padding: 80px 20px 40px;
    }

    .game-detail-video-section {
        margin-bottom: 30px;
    }

    .game-detail-video-container {
        aspect-ratio: 16/9;
    }

    .game-detail-info h1 {
        font-size: 28px;
    }

    .social-links-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        flex-direction: initial;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        padding: 24px 0;
    }

    .social-link-item {
        padding: 14px 10px;
    }

    .social-link-item svg {
        width: 36px;
        height: 36px;
    }

    .social-link-item span {
        font-size: 16px;
    }

    .social-description {
        font-size: 14px;
        margin-bottom: 30px;
    }
}

/* News Card Styles - Google Style */
#news-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.news-card-container {
    min-width: min(240px, 95vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(40vw, 300px);
    gap: 12px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.6) 0%, rgba(15, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.news-card-link:hover .news-card-container {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.news-card-image {
    width: 100%;
    margin: -20px -20px 0 -20px;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card-link:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-favicon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card-favicon img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: contain;
}

.news-card-domain {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-news {
    padding: 10px 20px;
    font-size: 12px;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* FAQ section */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 22px;
    transition: background 0.2s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary, #fff);
    list-style: none;
    position: relative;
    padding-right: 32px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    margin-top: 14px;
    color: var(--text-secondary, #c0c0c8);
    line-height: 1.65;
    font-size: 15px;
}

/* Page intro header (used on games/news/partners) */
.page-intro {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px 40px 8px;
}

.page-intro h1 {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.35;
    padding: 0.2em 0 0.05em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-intro p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-secondary, #bdbdc6);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .page-intro { padding: 80px 24px 16px; }
}

@media (max-width: 600px) {
    .page-intro { padding: 130px 18px 8px; }
    .page-intro p { font-size: 14px; }
}

/* Collapse top padding of the section directly after page-intro */
.page-intro + .main-block,
.page-intro + #banners_wrapper,
.page-intro + #all-news,
.page-intro + #all-partners {
    padding-top: 0;
}

/* Partners marquee (homepage, below nav) */
.partners-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.partners-marquee__track {
    display: flex;
    width: max-content;
    animation: partners-marquee 40s linear infinite;
}

.partners-marquee__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 56px;
    padding-right: 56px;
    align-items: center;
}

.partners-marquee__list li {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.partners-marquee:hover .partners-marquee__track {
    animation-play-state: paused;
}

.partners-marquee__list li:hover {
    color: rgba(255, 255, 255, 0.7);
}

@keyframes partners-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    .partners-marquee { margin-top: 100px; padding: 10px 0; }
    .partners-marquee__list { gap: 36px; padding-right: 36px; }
    .partners-marquee__list li { font-size: 12px; letter-spacing: 1.1px; }
    .partners-marquee__track { animation-duration: 28s; }
}

@media (prefers-reduced-motion: reduce) {
    .partners-marquee__track { animation: none; }
}

/* === Hero stats counter === */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 580px;
}

.hero-stat {
    text-align: left;
}

.hero-stat__num {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ff8800 0%, #ffaa44 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}

.hero-stat__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        margin: 28px auto 0;
        max-width: 360px;
        gap: 18px;
    }
    .hero-stat { text-align: center; }
}

/* === Typewriter cursor === */
[data-typewriter] {
    position: relative;
    display: inline-block;
    min-height: 1em;
    white-space: nowrap;
    text-align: left;
    vertical-align: baseline;
}

[data-typewriter]::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.95em;
    background: currentColor;
    margin-left: 4px;
    vertical-align: -0.08em;
    animation: caret-blink 1s steps(2) infinite;
}

@keyframes caret-blink {
    50% { opacity: 0; }
}

/* === Tilt: smooth transition back === */
.game-card,
.showcase-card,
.product-item {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
}

/* === Floating CTA === */
.floating-cta {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd87a 0%, #f6c75b 50%, #b88a30 100%);
    color: #1c1208;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(246, 199, 91, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: float-pulse 3s ease-in-out infinite;
}

.floating-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 40px rgba(246, 199, 91, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.floating-cta svg {
    flex-shrink: 0;
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(255, 122, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
    50%      { box-shadow: 0 8px 36px rgba(255, 122, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12) inset; }
}

@media (max-width: 600px) {
    .floating-cta {
        right: 14px;
        bottom: 14px;
        padding: 11px 16px;
        font-size: 13px;
    }
    .floating-cta svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-cta { animation: none; }
    [data-typewriter]::after { animation: none; }
}

/* === Certifications & Compliance === */
.cert-intro {
    text-align: center;
    max-width: 720px;
    margin: -16px auto 36px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 920px;
    margin: 0 auto;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 122, 0, 0.35);
}

.cert-badge__logo {
    flex-shrink: 0;
    width: 78px;
    height: 78px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.cert-badge__logo--gli {
    background: linear-gradient(135deg, #0a3a6e 0%, #082754 100%);
    border-color: rgba(120, 180, 255, 0.25);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06), 0 4px 14px rgba(8, 39, 84, 0.45);
}

.cert-badge__logo--gli span {
    background: linear-gradient(135deg, #ffffff 0%, #a8c5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 26px;
}

.cert-badge__logo--rg {
    background: linear-gradient(135deg, #5a2a8c 0%, #3a1862 100%);
    border-color: rgba(180, 120, 255, 0.25);
    font-size: 24px;
}

.cert-badge__body {
    flex: 1;
    min-width: 0;
}

.cert-badge__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.cert-badge__desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .cert-badge {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
    .cert-badge__logo { width: 64px; height: 64px; }
    .cert-badge__logo--gli span { font-size: 22px; }
}

/* === Game video section === */
.game-video-section {
    max-width: 1024px;
    margin: 60px auto 24px;
    padding: 0 24px;
}

.game-video-title {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    text-align: center;
    margin: 0 0 24px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.yt-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yt-facade:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(255, 122, 0, 0.25);
}

.yt-facade__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-facade::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.yt-facade__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff7a00 0%, #ff4800 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255, 72, 0, 0.5);
    transition: transform 0.2s ease;
    z-index: 2;
}

.yt-facade:hover .yt-facade__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.yt-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== Game Media (screenshots + native videos) ===== */
.game-media {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.game-media__title {
    text-align: center;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin: 0 0 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Videos */
.game-media__videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.game-media__video {
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.game-media__video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.game-media__video-caption {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary, #bdbdc6);
    letter-spacing: 0.02em;
}

/* Screenshot gallery */
.game-media__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.game-media__thumb {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-media__thumb:hover,
.game-media__thumb:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 0, 0.55);
    box-shadow: 0 12px 30px rgba(255, 72, 0, 0.18);
    outline: none;
}

.game-media__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Lightbox */
.game-media__lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overscroll-behavior: contain;
}

.game-media__lightbox[hidden] { display: none; }

.game-media__lightbox-img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.game-media__lightbox-close,
.game-media__lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.game-media__lightbox-close:hover,
.game-media__lightbox-nav:hover {
    background: rgba(255, 122, 0, 0.6);
    transform: scale(1.05);
}

.game-media__lightbox-close { top: 20px; right: 20px; }
.game-media__lightbox-nav--prev { left: 20px; }
.game-media__lightbox-nav--next { right: 20px; }

@media (max-width: 768px) {
    .game-media { margin: 40px auto; padding: 0 16px; }
    .game-media__videos { grid-template-columns: 1fr; gap: 14px; }
    .game-media__gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .game-media__lightbox { padding: 16px; }
    .game-media__lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 20px; }
    .game-media__lightbox-nav { width: 38px; height: 38px; font-size: 18px; }
    .game-media__lightbox-nav--prev { left: 8px; }
    .game-media__lightbox-nav--next { right: 8px; }
}

/* Channel CTA */
.yt-channel-cta {
    text-align: center;
    margin: 24px auto 60px;
}

.yt-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.25);
    color: #ff5050;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.yt-channel-link:hover {
    background: rgba(255, 0, 0, 0.16);
    color: #ff7070;
}

@media (max-width: 600px) {
    .game-video-section { margin-top: 36px; padding: 0 16px; }
    .yt-facade__play { width: 64px; height: 64px; }
    .yt-facade__play svg { width: 32px; height: 32px; }
}

/* === Ghost button (for Download Presentation) === */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 122, 0, 0.45);
}

/* === RGS feature cards === */
.rgs-features-header {
    text-align: center;
    margin: 36px 0 24px;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rgs-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.rgs-feature {
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    row-gap: 8px;
    align-items: center;
}

.rgs-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 122, 0, 0.35);
}

.rgs-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.18) 0%, rgba(255, 72, 0, 0.08) 100%);
    color: #ffaa44;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1;
    grid-column: 1;
}

.rgs-feature__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    grid-row: 1;
    grid-column: 2;
    align-self: center;
}

.rgs-feature__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    grid-column: 1 / -1;
    margin-top: 4px;
}

/* === Integration Request modal === */
.int-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.int-modal[hidden] { display: none; }

.int-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 8, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: int-fade-in 0.2s ease;
}

.int-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, #14141f 0%, #0a0a12 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 32px 28px 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 122, 0, 0.08);
    animation: int-pop-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.int-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease;
}

.int-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.int-modal__title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
}

.int-modal__lead {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 22px;
    line-height: 1.5;
}

.int-form__group { margin-bottom: 16px; }

.int-form__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.int-form input[type="text"],
.int-form input[type="email"],
.int-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.int-form input[type="text"]:focus,
.int-form input[type="email"]:focus,
.int-form input[type="password"]:focus {
    outline: none;
    border-color: rgba(255, 122, 0, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

.int-form__toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.int-form__toggle-opt {
    position: relative;
    cursor: pointer;
}

.int-form__toggle-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.int-form__toggle-opt span {
    display: block;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease;
}

.int-form__toggle-opt input:checked + span {
    background: linear-gradient(135deg, #ff7a00 0%, #ff4800 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(255, 72, 0, 0.35);
}

.int-form__submit {
    width: 100%;
    margin-top: 8px;
}

.int-form__success {
    margin: 12px 0 0;
    text-align: center;
    color: #4ade80;
    font-weight: 600;
    font-size: 14px;
}

@keyframes int-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes int-pop-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .int-modal__dialog { padding: 28px 20px 22px; border-radius: 16px; }
    .int-modal__title { font-size: 19px; }
}

/* === Nav: Partner Login button === */
.nav-partner-login {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(246, 199, 91, 0.12);
    border: 1px solid rgba(246, 199, 91, 0.4);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: inherit;
    margin-left: 8px;
}

.nav-partner-login:hover {
    background: rgba(246, 199, 91, 0.24);
    color: var(--accent-secondary);
}

@media (max-width: 1024px) {
    .nav-partner-login { display: none; }
}

/* === Login modal extras === */
.login-error {
    margin: 12px 0 0;
    color: #ff7070;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.25);
    border-radius: 8px;
}

.login-request {
    margin: 18px 0 0;
    text-align: center;
}

.login-request-btn {
    background: none;
    border: none;
    color: #ffaa44;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 0;
    font-family: inherit;
}

.login-request-btn:hover {
    color: #ffd089;
    text-decoration: underline;
}

/* === Aggregation Partners === */
.agg-intro {
    text-align: center;
    max-width: 780px;
    margin: -16px auto 36px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.agg-studio {
    margin-bottom: 40px;
}

.agg-studio:last-child { margin-bottom: 0; }

.agg-studio__header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.agg-studio__name {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    background: linear-gradient(135deg, #ff7a00 0%, #ffaa44 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    letter-spacing: 0.3px;
}

.agg-studio__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.agg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
}

.agg-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.agg-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 0, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.agg-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #0a0a12;
}

.agg-card__title {
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

.agg-card__placeholder {
    display: none;
    width: 100%;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, #2c1810 0%, #5a2818 50%, #8b3a1f 100%);
    text-transform: uppercase;
}

.agg-card__placeholder.show,
.agg-card--placeholder .agg-card__placeholder {
    display: flex;
}

@media (max-width: 600px) {
    .agg-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    .agg-card__title { font-size: 11.5px; padding: 8px 8px; }
    .agg-studio { margin-bottom: 28px; }
}

/* === Why partner with us === */
.why-intro {
    text-align: center;
    max-width: 760px;
    margin: -8px auto 22px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-item {
    position: relative;
    padding: 16px 16px 16px 52px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.why-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 122, 0, 0.35);
}

.why-num {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd87a 0%, #b88a30 100%);
    color: #1c1208;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(246, 199, 91, 0.35);
}

.why-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.why-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .why-item { padding: 20px 18px 18px 58px; }
    .why-num { width: 28px; height: 28px; font-size: 13px; }
}

/* RNG cert badge variant */
.cert-badge__logo--rng {
    background: linear-gradient(135deg, #0a6e3a 0%, #082754 100%);
    border-color: rgba(120, 255, 180, 0.25);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06), 0 4px 14px rgba(8, 110, 60, 0.45);
}

.cert-badge__logo--rng span {
    background: linear-gradient(135deg, #ffffff 0%, #a8ffc5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* Video block under game banner (left column on game-details) */
.game-detail-image .game-video-section {
    max-width: none;
    margin: 20px 0 0;
    padding: 0;
}

.game-detail-image .game-video-title {
    font-size: clamp(18px, 1.8vw, 22px);
    margin-bottom: 14px;
}

.game-detail-image .yt-facade {
    border-radius: 14px;
}
