/*
Theme Name: Bazyepc
Author: Aria
Description: Custom WordPress theme for Bazyepc game download website (v7.9.09 - Zero-Lag GPU Download Parts with Restored Icon Tilt/Shimmer, Zero-Recalc Cursor, Always-On 3D Card Tilt & View Transitions).
Version: 7.9.09
Text Domain: baziepc
*/

:root {
    --bg-dark: #0f0f13;
    --card-bg: #1a1a24;
    --nav-bg: #151520;
    --accent-purple: #7000df;
    --accent-purple-hover: #5d00b8;
    --accent-yellow: #ffd600;
    --accent-purple-rgb: 112, 0, 223;
    --accent-yellow-rgb: 255, 214, 0;
    --theme-gradient: linear-gradient(135deg, rgba(255, 214, 0, 0.8) 0%, rgba(180, 150, 0, 0.8) 100%);
    --theme-glow: rgba(112, 0, 223, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: #2a2a35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

img, svg, picture, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    border-bottom: 2px solid var(--accent-purple);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: break-word;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.nav-actions > * {
    min-width: 0;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.logo-text span {
    color: var(--accent-yellow);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-yellow);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-purple);
}

.btn-primary {
    background-color: var(--accent-purple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-purple-hover);
}

/* Hero Section */
.hero {
    min-height: 400px;
    height: auto;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 3px solid var(--accent-purple);
    transition: background-image 0.5s ease-in-out, background-position 0.5s ease-in-out, border-color 0.3s ease;
}

/* Hero Wallpaper Position Overrides */
.hero.wp-hero-bg-gow {
    background-position: center 40%;
}
.hero.wp-hero-bg-cyberpunk {
    background-position: center center;
}
.hero.wp-hero-bg-witcher {
    background-position: center 65%;
}
.hero.wp-hero-bg-rdr2 {
    background-position: center 80%; /* Fixes RDR2 cowboy layout on desktop! */
}
.hero.wp-hero-bg-gta {
    background-position: center 60%;
}
.hero.wp-hero-bg-v51 {
    background-position: center 25%;
}

.hero-content {
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-search {
    display: flex;
    background: rgba(30, 30, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
    padding: 5px;
}

.hero-search input {
    background: transparent;
    border: none;
    color: white;
    padding: 15px 25px;
    width: 100%;
    font-size: 1rem;
    outline: none;
}

.hero-search button {
    background: var(--accent-purple);
    color: white;
    border: none;
    width: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.hero-search button:hover {
    background: var(--accent-yellow);
    color: #000;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Info Banner */
.info-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--card-bg);
    padding: 10px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 1200px;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent-yellow);
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: break-word;
}

.info-banner span {
    color: var(--accent-yellow);
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.instagram {
    background: #d62976;
    color: white;
}

.telegram {
    background: #006da3;
    color: white;
}

/* Ad Banners */
.ad-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.ad-card {
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.purple-gradient {
    background: linear-gradient(45deg, #4a148c, #7b1fa2);
}

.dark-gradient {
    background: linear-gradient(45deg, #1a1a24, #2a2a35);
    border: 1px solid var(--accent-yellow);
}

.oranium-ad {
    background: linear-gradient(45deg, #311b92, #5e35b1);
    display: flex;
    text-align: right;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: break-word;
}

.countdown {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-yellow);
    margin: 10px 0;
}

.btn-yellow {
    background: var(--accent-yellow);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

.oranium-ad .ad-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: break-word;
}

.oranium-ad img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.oranium-ad span {
    color: var(--accent-yellow);
}

/* Wide Banner & Quiz */
.wide-banner {
    margin: 40px auto;
}

.quiz-banner {
    background-color: var(--accent-yellow);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cpath d='M10,15 L14,12 L14,18 Z M20,15 L16,12 L16,18 Z M40,15 L44,12 L44,18 Z M50,15 L46,12 L46,18 Z' fill='%23000000' fill-opacity='0.10'/%3E%3C/svg%3E");
    border-radius: 20px;
    padding: 0 40px;
    min-height: 95px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 214, 0, 0.3);
}

.quiz-text-content {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    margin-right: 120px; /* Make space for the character on the right */
}

.quiz-title-highlight {
    font-family: 'Lalezar', cursive;
    font-size: 2.8rem;
    color: #4a148c; /* Purple color */
    line-height: 1;
    margin-bottom: -4px; /* Align baseline */
}

.quiz-title-main {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f0f13;
}

.quiz-divider {
    font-size: 1.8rem;
    color: #0f0f13;
    opacity: 0.5;
    font-weight: 300;
}

.quiz-desc {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f0f13;
    margin: 0;
}

.btn-quiz-enter {
    background-color: #4a148c !important;
    color: var(--accent-yellow) !important;
    border: none;
    padding: 8px 30px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3);
    transition: all 0.3s ease;
}

.btn-quiz-enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 20, 140, 0.5);
    background-color: #5d1ab0 !important;
}

.quiz-character {
    position: absolute;
    bottom: -15px;
    right: 30px;
    height: 120%;
    width: auto;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.btn-purple {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Categories */
.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cat-btn {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.cat-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.cat-btn.yellow {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.cat-btn.yellow:hover {
    background: var(--accent-yellow);
    color: #000;
}

/* Filters */
.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-label {
    font-weight: bold;
}

.filter-options {
    display: flex;
    gap: 20px;
}

.filter-options a {
    color: var(--text-secondary);
}

.filter-options a.active {
    color: var(--accent-yellow);
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 5px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.game-card,
.game-thumb,
.game-image,
.games-grid > *,
.matcher-results-grid > *,
.info-banner > *,
.ad-banners > *,
.detail-card,
.sidebar-card,
.screenshot-item,
.cracks-widget-card,
.crack-widget-item,
.nav-container > *,
.nav-actions > * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.game-thumb {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(112, 0, 223, 0.3);
    border-color: var(--accent-purple);
}

.game-image {
    position: relative;
    height: 300px;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.time-badge {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    backdrop-filter: blur(5px);
}

.genre-badge {
    top: 10px;
    left: 10px;
    background: var(--accent-purple);
    color: white;
}

/* Crack Status Badges */
.crack-badge {
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    animation: badgePulse 2s ease-in-out infinite;
    max-width: calc(100% - 130px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crack-yes {
    background: rgba(46, 204, 113, 0.9);
    color: #fff;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.4);
}

.crack-no {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
}

.crack-soon {
    background: rgba(241, 196, 15, 0.9);
    color: #000;
    box-shadow: 0 2px 10px rgba(241, 196, 15, 0.4);
}

.crack-unknown {
    background: rgba(149, 165, 166, 0.9);
    color: #fff;
    box-shadow: 0 2px 10px rgba(149, 165, 166, 0.3);
}

/* Compatibility Badges */
.compat-badge {
    bottom: 10px;
    left: 10px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    gap: 4px;
    font-weight: bold;
}

.compat-yes {
    background: rgba(46, 204, 113, 0.9);
    color: #fff;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.4);
}

.compat-min {
    background: rgba(241, 196, 15, 0.9);
    color: #0f0f13;
    box-shadow: 0 2px 10px rgba(241, 196, 15, 0.4);
}

.compat-no {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Archive Page Hero */
.archive-hero {
    background: linear-gradient(160deg, rgba(15, 15, 19, 0.95) 0%, rgba(112, 0, 223, 0.3) 50%, rgba(15, 15, 19, 0.95) 100%);
    padding: 60px 0;
    border-bottom: 3px solid var(--accent-purple);
    text-align: center;
}

.archive-hero-content {
    position: relative;
    z-index: 2;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(to left, #ffffff, #c4a1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-title i {
    -webkit-text-fill-color: var(--accent-purple);
    margin-left: 10px;
}

.archive-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.archive-count {
    background: var(--accent-yellow);
    color: #000;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.9rem;
}

.game-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-title a {
    color: inherit;
    text-decoration: none;
}

.game-category {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-action {
    width: 100%;
    padding: 12px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-action.purple {
    background: var(--accent-purple);
    color: white;
}

.btn-action.purple:hover {
    background: var(--accent-purple-hover);
}

.btn-action.yellow {
    background: var(--accent-yellow);
    color: #000;
}

.btn-action.yellow:hover {
    background: #e6c200;
}

/* Load More */
.load-more {
    text-align: center;
    margin-bottom: 50px;
}

.btn-more {
    background: var(--accent-purple);
    color: white;
    padding: 12px 40px;
    border-radius: 30px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

/* Modern Gaming Footer */
.main-footer {
    margin-top: 60px;
    background-color: var(--nav-bg);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    user-select: none;
    -webkit-user-select: none;
}

.footer-top-layout {
    display: flex;
    direction: ltr;
    align-items: stretch;
    gap: 20px;
}

.footer-banner {
    position: relative;
    flex: 1.8;
    min-height: 180px;
    border-radius: 16px;
    z-index: 2;
    overflow: visible;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.banner-skewed-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0; /* Let clip-path handle the corners */
    z-index: 1;
}

.footer-banner img.character-img {
    position: absolute;
    bottom: -10px;
    left: 10px;
    height: 205px; /* Stretches outside the 180px container */
    width: auto;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.footer-banner img.character-img.cyberpunk {
    bottom: -5px;
    height: 195px;
}
.footer-banner img.character-img.halo {
    bottom: -5px;
    height: 195px;
}
.footer-banner img.character-img.spiderman {
    bottom: -5px;
    height: 195px;
}

.footer-banner img.character-img.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.footer-banner:hover img.character-img.active {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(var(--accent-yellow-rgb), 0.65)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

.version-tag {
    position: absolute;
    top: 50%;
    right: 16%;
    transform: translateY(-50%);
    background: var(--accent-yellow);
    color: #0f0f13;
    padding: 10px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    z-index: 3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background-color 0.4s ease;
    cursor: pointer;
}

.version-tag:hover {
    transform: translateY(-60%) scale(1.1) rotate(4deg);
    background-color: #ffffff;
    box-shadow: 0 15px 30px rgba(255, 214, 0, 0.6);
}

.version-tag span {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.8;
}

.version-tag strong {
    font-size: 1.2rem;
    font-weight: 900;
}

.version-tag small {
    font-size: 0.65rem;
    font-weight: bold;
}

.banner-transition-badge {
    position: absolute;
    top: 50%;
    right: -20px; /* Centered on the slanted boundary */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--accent-purple);
    color: #ffffff;
    border-radius: 50%;
    border: 3px solid var(--nav-bg); /* matches the main footer background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.banner-transition-badge:hover {
    background-color: var(--accent-yellow);
    color: #0f0f13;
    transform: translateY(-50%) scale(1.1) rotate(15deg);
}

.footer-stats-card {
    background: rgba(26, 26, 36, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex: 1.5;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.footer-stats-card:hover {
    border-color: rgba(255, 214, 0, 0.25);
    background: rgba(26, 26, 36, 0.8);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 214, 0, 0.05);
}

.stats-lists {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    transition: transform 0.3s ease, padding-right 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
}

.stat-row:hover {
    transform: scale(1.03);
    padding-right: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-right: auto; /* Align to the left in RTL flex */
    text-align: left;
}

.stat-txt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.stats-chart {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.stats-chart:hover {
    transform: scale(1.15) rotate(15deg);
}

/* SVG Donut Chart Styling & Glassmorphic Highlights */
.donut-chart-svg {
    overflow: visible;
}

.donut-segment {
    transition: stroke-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                filter 0.3s ease;
    stroke-linecap: round;
}

/* Hover on segments */
.donut-segment:hover {
    stroke-width: 8.5;
    opacity: 1 !important;
}

.donut-segment.segment-posts:hover {
    filter: drop-shadow(0 0 6px #2ecc71);
}
.donut-segment.segment-users:hover {
    filter: drop-shadow(0 0 6px #3498db);
}
.donut-segment.segment-comments:hover {
    filter: drop-shadow(0 0 6px #e74c3c);
}
.donut-segment.segment-views:hover {
    filter: drop-shadow(0 0 6px #f1c40f);
}

/* Parent hover states */
.footer-stats-card.hover-posts .segment-posts,
.footer-stats-card:has([data-stat="posts"]:hover) .segment-posts {
    stroke-width: 8.5;
    opacity: 1;
    filter: drop-shadow(0 0 6px #2ecc71);
}

.footer-stats-card.hover-users .segment-users,
.footer-stats-card:has([data-stat="users"]:hover) .segment-users {
    stroke-width: 8.5;
    opacity: 1;
    filter: drop-shadow(0 0 6px #3498db);
}

.footer-stats-card.hover-comments .segment-comments,
.footer-stats-card:has([data-stat="comments"]:hover) .segment-comments {
    stroke-width: 8.5;
    opacity: 1;
    filter: drop-shadow(0 0 6px #e74c3c);
}

.footer-stats-card.hover-views .segment-views,
.footer-stats-card:has([data-stat="views"]:hover) .segment-views {
    stroke-width: 8.5;
    opacity: 1;
    filter: drop-shadow(0 0 6px #f1c40f);
}



/* Match the exact highlight selectors from JS class mapping */
.footer-stats-card.hover-posts .donut-segment:not(.segment-posts),
.footer-stats-card:has([data-stat="posts"]:hover) .donut-segment:not(.segment-posts) {
    opacity: 0.3;
}
.footer-stats-card.hover-users .donut-segment:not(.segment-users),
.footer-stats-card:has([data-stat="users"]:hover) .donut-segment:not(.segment-users) {
    opacity: 0.3;
}
.footer-stats-card.hover-comments .donut-segment:not(.segment-comments),
.footer-stats-card:has([data-stat="comments"]:hover) .donut-segment:not(.segment-comments) {
    opacity: 0.3;
}
.footer-stats-card.hover-views .donut-segment:not(.segment-views),
.footer-stats-card:has([data-stat="views"]:hover) .donut-segment:not(.segment-views) {
    opacity: 0.3;
}

/* Row highlight when segment is hovered */
.stat-row.row-hover {
    transform: scale(1.03);
    padding-right: 12px;
    background: rgba(255, 255, 255, 0.05);
}

/* Particle Sparks for Character Banner */
.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.spark {
    position: absolute;
    background: var(--accent-yellow);
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    animation: floatUp 2.5s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(110%) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10%) translateX(var(--sway, 20px)) scale(0.2);
        opacity: 0;
    }
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 0 15px;
    min-width: 120px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.3s ease;
    text-align: right;
    display: block;
}

.footer-nav a:hover,
.footer-nav a.active {
    color: var(--accent-yellow);
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.footer-socials a:hover {
    color: var(--accent-yellow);
    transform: scale(1.15);
}

.footer-bottom-bar {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.copyright-label {
    color: var(--accent-yellow) !important;
    font-weight: 900;
}

.footer-year {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-primary);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* Convert white to orange/yellow (#ffd600) */
    filter: invert(79%) sepia(85%) saturate(1478%) hue-rotate(359deg) brightness(101%) contrast(106%);
}

.footer-logo-img:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Archive Hero */
.archive-hero {
    background: linear-gradient(135deg, rgba(112, 0, 223, 0.85), rgba(15, 15, 19, 0.95)),
                url('gta.webp') center/cover no-repeat;
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 3px solid var(--accent-purple);
    margin-bottom: 40px;
}

.archive-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.archive-title {
    font-size: 2.4rem;
    font-weight: 900;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 15px;
}

.archive-title i {
    color: var(--accent-yellow);
    font-size: 2rem;
}

.archive-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.8;
}

.archive-count {
    background: var(--accent-yellow);
    color: #0f0f13;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.95rem;
}

/* Crack Status Badges */
.crack-badge {
    bottom: 10px;
    right: 10px;
    top: auto;
    left: auto;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    max-width: calc(100% - 130px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crack-yes {
    background: rgba(46, 204, 113, 0.9);
    color: #fff;
}

.crack-no {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
}

.crack-soon {
    background: rgba(241, 196, 15, 0.9);
    color: #0f0f13;
}

.crack-unknown {
    background: rgba(149, 165, 166, 0.9);
    color: #fff;
}

/* Archive Pagination */
.archive-pagination {
    text-align: center;
    margin-bottom: 50px;
}

.archive-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-pagination li {
    display: inline-block;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    gap: 6px;
}

.archive-pagination a:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
}

.archive-pagination .current {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 4px 15px rgba(112, 0, 223, 0.4);
}

.archive-pagination .dots {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    min-width: auto;
    padding: 8px 4px;
}

.archive-pagination .prev,
.archive-pagination .next {
    background: transparent;
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.archive-pagination .prev:hover,
.archive-pagination .next:hover {
    background: var(--accent-yellow);
    color: #0f0f13;
}

/* Responsive basics */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ad-banners {
        grid-template-columns: minmax(0, 1fr);
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        border-bottom: 2px solid var(--accent-purple);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        text-align: right;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .logo-img {
        height: 42px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-container {
        padding: 10px 15px;
    }

    /* Footer Mobile Responsiveness */
    .footer-top-layout {
        flex-direction: column;
        direction: rtl; /* Switch back to RTL for mobile layout flow */
        gap: 20px;
    }

    .footer-banner {
        flex: none;
        width: 100%;
        min-height: 140px;
        height: 140px;
        /* visible (not hidden) so the character rises ABOVE the frame on tap
           instead of being clipped behind it — matches desktop behaviour.
           The rounded background card is clipped separately by .banner-bg. */
        overflow: visible !important;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        position: relative;
    }

    .banner-bg {
        clip-path: none;
    }

    .footer-banner img.character-img {
        height: 135px !important;
        max-height: 100% !important;
        bottom: 0px !important;
        left: 10px !important;
        /* grows upward only when it rises on tap — feet stay planted, head pops over the frame */
        transform-origin: bottom center;
    }
    .footer-banner img.character-img.cyberpunk,
    .footer-banner img.character-img.halo,
    .footer-banner img.character-img.spiderman {
        height: 135px !important;
        bottom: 0px !important;
    }

    .version-tag {
        right: 15px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        padding: 6px 14px !important;
        border-radius: 12px !important;
        max-width: 55% !important;
        box-sizing: border-box;
    }
    .version-tag strong {
        font-size: 0.95rem !important;
    }
    .version-tag span {
        font-size: 0.62rem !important;
    }
    .version-tag small {
        font-size: 0.58rem !important;
    }

    .footer-stats-card {
        flex: none;
        width: 100%;
        margin-top: 10px;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        box-sizing: border-box;
        justify-content: space-around;
    }

    .footer-nav {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .footer-socials {
        flex-direction: row;
        justify-content: center;
        border-left: none;
        padding-left: 0;
        gap: 25px;
    }

    .footer-bottom-bar {
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
    }

    /* Archive Responsive */
    .archive-title {
        font-size: 1.8rem;
    }

    .archive-hero {
        padding: 40px 0 35px;
    }

    /* Quiz Banner Mobile/Tablet Responsiveness */
    .quiz-banner {
        height: auto;
        min-height: unset;
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .quiz-text-content {
        flex-direction: column;
        margin-right: 0;
        gap: 6px;
    }
    .quiz-title-highlight {
        font-size: 2.2rem !important;
        margin-bottom: 0;
    }
    .quiz-title-main {
        font-size: 1.2rem !important;
    }
    .quiz-divider {
        display: none !important; /* Hide separator in vertical layout */
    }
    .quiz-desc {
        font-size: 0.95rem !important;
        max-width: 320px;
        margin: 0 auto;
        line-height: 1.4;
    }
    .btn-quiz-enter {
        padding: 8px 35px !important;
        font-size: 1rem !important;
        width: auto;
        display: inline-block;
    }
    .quiz-character {
        display: none; /* Hide Price on mobile/tablet */
    }
}

/* Medium Desktop Screens Quiz Banner layout */
@media (min-width: 993px) and (max-width: 1200px) {
    .quiz-banner {
        padding: 0 20px;
        height: 95px;
    }
    .quiz-text-content {
        margin-right: 70px;
        gap: 8px;
    }
    .quiz-title-highlight {
        font-size: 2.2rem;
    }
    .quiz-title-main {
        font-size: 1.2rem;
    }
    .quiz-divider {
        font-size: 1.3rem;
    }
    .quiz-desc {
        font-size: 1rem;
    }
    .btn-quiz-enter {
        padding: 8px 22px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.05rem;
    }
    
    .nav-actions {
        gap: 8px;
    }

    .games-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-stats-card {
        flex-direction: column;
        gap: 15px;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    /* Archive Responsive */
    .archive-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }

    .archive-hero {
        padding: 30px 0 25px;
        margin-bottom: 25px;
    }

    .archive-desc {
        font-size: 0.95rem;
    }

    .archive-pagination a,
    .archive-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* ==========================================================================
   MEMBER OF THE SYSTEM: 4 ADVANCED FEATURES STYLING (v3.0)
   ========================================================================== */

/* 1. Mega Menu Styling */
.menu-item-has-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(15px);
    width: 680px;
    max-width: 92vw;
    background: rgba(21, 21, 32, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    z-index: 999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(112, 0, 223, 0.15);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.menu-item-has-mega:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1.85fr 1.15fr;
    gap: 20px;
}

.mega-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
}

.mega-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.mega-cat-link i {
    font-size: 1.15rem;
    color: var(--accent-purple);
    transition: transform 0.3s ease;
}

.mega-cat-link div {
    display: flex;
    flex-direction: column;
}

.mega-cat-link strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.mega-cat-link span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mega-cat-link:hover {
    background: rgba(112, 0, 223, 0.08);
    border-color: rgba(112, 0, 223, 0.3);
    transform: translateX(-4px);
}

.mega-cat-link:hover i {
    transform: scale(1.15);
    color: var(--accent-yellow);
}

.mega-featured {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.mega-featured-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-featured-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
}

.mega-featured-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 8px 25px rgba(112, 0, 223, 0.25);
    transform: translateY(-2px);
}

.mega-featured-thumb {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.mega-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    display: block;
}

.mega-featured-card:hover .mega-featured-thumb img {
    transform: scale(1.06);
}

.mega-featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(112, 0, 223, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mega-featured-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}

.mega-featured-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
    direction: rtl;
    unicode-bidi: isolate;
}

.mega-featured-info span {
    font-size: 0.76rem;
    color: var(--text-secondary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mega-featured-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
    background: rgba(255, 214, 0, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 214, 0, 0.2);
    transition: all 0.25s ease;
    margin-top: 4px;
}

.mega-featured-card:hover .mega-featured-action {
    background: var(--accent-yellow);
    color: #000;
}

@media (max-width: 768px) {
    .mega-menu {
        position: static;
        width: 100%;
        transform: none !important;
        display: none;
        box-shadow: none;
        padding: 15px 0;
        background: transparent;
        border: none;
        visibility: visible;
        opacity: 1;
    }
    
    .mega-menu.show-mobile {
        display: block;
    }
    
    .mega-menu-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .mega-categories {
        grid-template-columns: minmax(0, 1fr);
        border-left: none;
        padding-left: 0;
    }
    
    .mega-featured {
        display: none;
    }
}

/* 2. Live Search Styling */
.live-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(21, 21, 32, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(112, 0, 223, 0.2);
    display: none;
    direction: rtl;
}

/* Custom Scrollbar for search results */
.live-search-results::-webkit-scrollbar {
    width: 6px;
}
.live-search-results::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.live-search-results::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.live-search-results::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
    color: var(--text-primary);
    text-decoration: none;
    min-width: 0;
    max-width: 100%;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item img {
    width: 45px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    text-align: right;
}

.result-info strong,
.result-info span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.result-info strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.result-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-result-item .badge {
    padding: 5px 10px;
    font-size: 0.7rem;
    border-radius: 5px;
}

.search-result-item:hover {
    background: rgba(112, 0, 223, 0.12);
    padding-right: 23px; /* subtle slide effect */
}

.search-loading, .search-no-results, .search-error {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-loading i {
    color: var(--accent-purple);
    margin-left: 8px;
}

/* 3. Featured Games Slider Styling */
.featured-slider-sec {
    margin-top: 50px;
    margin-bottom: 50px;
}

.sec-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.featured-slider-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.featured-slider {
    min-height: 380px;
    height: auto;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 40px 60px;
    gap: 40px;
    direction: rtl;
}

.slide-poster {
    flex-shrink: 0;
    width: 180px;
    height: 240px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 214, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.slide.active .slide-poster {
    transform: translateY(0);
    opacity: 1;
}

.slide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    max-width: 550px;
    min-width: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.8s ease 0.1s, opacity 0.8s ease 0.1s;
}

.slide-title,
.slide-eng-title,
.slide-excerpt {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.slide.active .slide-info {
    transform: translateY(0);
    opacity: 1;
}

.slide-badge {
    background: rgba(112, 0, 223, 0.8);
    backdrop-filter: blur(5px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.slide-title {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
}

.slide-eng-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: -5px;
}

.slide-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slide-meta i {
    color: var(--accent-purple);
}

.slide-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.slide-info .btn-action {
    margin-top: 10px;
    padding: 12px 30px;
    font-size: 0.95rem;
    text-decoration: none;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.next {
    left: 20px;
}

.slider-btn.prev {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.slider-dot {
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.slider-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.slider-dot.active::before {
    background: var(--accent-yellow);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .featured-slider {
        height: auto;
        min-height: 480px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }
    
    .slide {
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }

    .slide.active {
        position: relative;
        height: auto;
        min-height: 480px;
    }
    
    .slide-content {
        flex-direction: column;
        padding: 30px 20px 55px 20px;
        gap: 15px;
        justify-content: center;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }
    
    .slide-poster {
        width: 110px;
        height: 150px;
    }
    
    .slide-info {
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .slide-title {
        font-size: 1.4rem;
    }
    
    .slide-excerpt {
        display: none;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
}

/* 4. System Matcher Widget Styling */
.system-matcher-sec {
    margin-bottom: 50px;
}

.matcher-box {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26,26,36,0.7) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.matcher-header {
    text-align: right;
    margin-bottom: 25px;
}

.matcher-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.matcher-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.matcher-form {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    flex-wrap: wrap;
    direction: rtl;
}

.matcher-fields {
    display: flex;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.matcher-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    text-align: right;
}

@media (min-width: 769px) {
    .matcher-field {
        min-width: 200px;
        width: auto;
    }
}

.matcher-field label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.matcher-field label i {
    color: var(--text-secondary);
}

.matcher-field select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.matcher-field select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(112, 0, 223, 0.25);
}

.btn-match-submit {
    background: linear-gradient(135deg, var(--accent-purple), #9000ff);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(112, 0, 223, 0.3);
}

.btn-match-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(112, 0, 223, 0.5);
    filter: brightness(1.1);
}

/* Matcher Results */
.matcher-results {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    direction: rtl;
}

.matcher-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.matcher-results-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-yellow);
}

.btn-close-results {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-close-results:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

.matcher-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}

.matched-card {
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.matched-image {
    position: relative;
    flex-shrink: 0;
    width: 70px;
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
}

.matched-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matched-image .badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    left: 4px;
    padding: 3px 0;
    font-size: 0.65rem;
    border-radius: 4px;
    text-align: center;
}

.matched-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    text-align: right;
}

.matched-info h5,
.matched-info span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.matched-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.matched-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.matched-specs {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.matched-specs span {
    font-size: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.matched-specs i {
    color: var(--accent-purple);
    font-size: 0.75rem;
}

.matched-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: 0 5px 20px rgba(112, 0, 223, 0.25);
    background: rgba(112, 0, 223, 0.05);
}

.matcher-no-match {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    background: rgba(255, 214, 0, 0.05);
    border: 1px dashed rgba(255, 214, 0, 0.2);
    border-radius: 12px;
    color: var(--accent-yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.matcher-no-match i {
    font-size: 2rem;
}

.matcher-no-match p {
    font-size: 0.95rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .matcher-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-match-submit {
        width: 100%;
    }
    
    .btn-action {
        white-space: normal;
        text-align: center;
    }
}

/* Matcher Promo Section */
.matcher-promo-sec {
    margin-top: 40px;
    margin-bottom: 40px;
}

.matcher-promo-card {
    background: linear-gradient(135deg, rgba(112, 0, 223, 0.15) 0%, rgba(15, 15, 19, 0.9) 100%), 
                radial-gradient(circle at 10% 20%, rgba(255, 214, 0, 0.08) 0%, transparent 50%);
    border: 1px solid rgba(112, 0, 223, 0.25);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(112, 0, 223, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.matcher-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.matcher-promo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(112, 0, 223, 0.5);
    box-shadow: 0 15px 35px rgba(112, 0, 223, 0.25);
}

.matcher-promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    direction: rtl;
}

.matcher-promo-text {
    flex: 1;
    text-align: right;
}

.matcher-promo-text h2,
.matcher-promo-text h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.matcher-promo-text h2 i,
.matcher-promo-text h3 i {
    color: var(--accent-yellow);
}

.matcher-promo-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.matcher-promo-content .btn-action {
    width: auto;
    padding: 12px 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(255, 214, 0, 0.15);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .matcher-promo-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .matcher-promo-text {
        text-align: center;
    }
    
    .matcher-promo-text h2,
    .matcher-promo-text h3 {
        justify-content: center;
    }
    
    .matcher-promo-content .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* Custom Gaming Cursor */
@media (hover: hover) and (pointer: fine) {
    *, *::before, *::after {
        cursor: none !important;
    }
    input, textarea, select, option, iframe,
    input *, textarea *, select *, option *, iframe * {
        cursor: auto !important;
    }
    html.dialog-native-cursor dialog[open],
    html.dialog-native-cursor dialog[open] * {
        cursor: auto !important;
    }
    html.dialog-native-cursor dialog[open] a,
    html.dialog-native-cursor dialog[open] button,
    html.dialog-native-cursor dialog[open] [role="button"] {
        cursor: pointer !important;
    }
    .custom-cursor-layer {
        display: contents;
    }
    .custom-cursor-layer[popover] {
        position: fixed;
        inset: 0;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        overflow: visible;
        pointer-events: none;
    }
    .custom-cursor-layer:popover-open {
        display: block;
    }
    .custom-cursor-dot {
        width: 8px;
        height: 8px;
        top: 0;
        left: 0;
        margin: -4px 0 0 -4px;
        background-color: var(--accent-yellow);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 999999999;
        translate: -100px -100px 0px;
        transform-origin: center center;
        will-change: translate, scale;
        transition: scale 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, opacity 0.2s ease;
    }
    .custom-cursor-circle {
        width: 36px;
        height: 36px;
        top: 0;
        left: 0;
        margin: -18px 0 0 -18px;
        border: 2px solid var(--accent-purple);
        background-color: rgba(112, 0, 223, 0.05);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 999999998;
        translate: -100px -100px 0px;
        transform-origin: center center;
        will-change: translate, scale;
        transition: scale 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, background-color 0.25s ease, opacity 0.2s ease;
    }
    /* Hover state */
    .custom-cursor-circle.hovering {
        scale: 1.38;
        border-color: var(--accent-yellow);
        background-color: rgba(var(--accent-yellow-rgb), 0.1);
        box-shadow: 0 0 15px rgba(var(--accent-yellow-rgb), 0.4);
    }
    .custom-cursor-dot.hovering {
        background-color: var(--text-primary);
        scale: 0.75;
    }
    /* Clicking state */
    .custom-cursor-circle.clicking {
        scale: 0.78;
        border-color: var(--text-primary);
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Random Game Picker Widget */
.game-picker-sec {
    margin-top: 30px;
    margin-bottom: 30px;
}

.picker-card {
    background: linear-gradient(135deg, #1e1e2d 0%, #151520 100%);
    border: 2px dashed var(--accent-purple);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.picker-card:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 10px 40px rgba(112, 0, 223, 0.2);
}

.picker-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(112,0,223,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.picker-info {
    flex: 1;
    z-index: 2;
}

.picker-info h2,
.picker-info h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.picker-info h2 span,
.picker-info h3 span {
    color: var(--accent-yellow);
}

.picker-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.picker-action {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.picker-btn {
    background: linear-gradient(90deg, var(--accent-purple) 0%, #a03cff 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(112, 0, 223, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.picker-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 30px rgba(255, 214, 0, 0.3);
    background: linear-gradient(90deg, var(--accent-yellow) 0%, #ffeb60 100%);
    color: #000;
}

.picker-btn i {
    transition: transform 0.5s ease;
}

.picker-btn:hover i {
    transform: rotate(360deg);
}

/* Modal Styling */
.picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 15px;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.picker-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.picker-modal-content {
    background: linear-gradient(135deg, #1a1a28 0%, #101018 100%);
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 50px rgba(var(--accent-purple-rgb), 0.4);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    padding: 25px;
    position: relative;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.picker-modal.active .picker-modal-content {
    transform: scale(1);
    border-color: var(--accent-yellow);
    box-shadow: 0 0 50px rgba(var(--accent-yellow-rgb), 0.2);
}

.picker-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s, background 0.3s;
    z-index: 10;
}

.picker-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.25);
}

.picker-modal-header {
    margin-bottom: 25px;
}

.picker-modal-header h3,
.picker-modal-header h4 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.picker-result-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.picker-result-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--accent-purple);
}

.picker-result-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.picker-result-info span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Cycle Shuffling Effect on Home Grid */
.game-card.shuffling-highlight {
    animation: cardPulse 0.15s ease-in-out infinite alternate;
    border-color: var(--accent-yellow) !important;
    box-shadow: 0 0 25px rgba(var(--accent-yellow-rgb), 0.6) !important;
    transform: scale(1.03);
    z-index: 10;
}

@keyframes cardPulse {
    from {
        box-shadow: 0 0 10px rgba(var(--accent-purple-rgb), 0.4);
    }
    to {
        box-shadow: 0 0 25px rgba(var(--accent-yellow-rgb), 0.6);
    }
}

@media (max-width: 768px) {
    .picker-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .picker-info h2,
    .picker-info h3 {
        font-size: 1.3rem;
        justify-content: center;
    }
    .picker-info p {
        font-size: 0.9rem;
    }
    .picker-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Color Themes Switcher Override --- */
body.theme-cyberpunk {
    --accent-purple: #ff007f;
    --accent-purple-hover: #d6006b;
    --accent-yellow: #00f0ff;
    --accent-purple-rgb: 255, 0, 127;
    --accent-yellow-rgb: 0, 240, 255;
    --theme-gradient: linear-gradient(135deg, rgba(0, 240, 255, 0.8) 0%, rgba(255, 0, 127, 0.8) 100%);
    --theme-glow: rgba(255, 0, 127, 0.3);
}

body.theme-halo {
    --accent-purple: #00e676;
    --accent-purple-hover: #00c853;
    --accent-yellow: #ff9100;
    --accent-purple-rgb: 0, 230, 118;
    --accent-yellow-rgb: 255, 145, 0;
    --theme-gradient: linear-gradient(135deg, rgba(255, 145, 0, 0.8) 0%, rgba(0, 230, 118, 0.8) 100%);
    --theme-glow: rgba(0, 230, 118, 0.3);
}

body.theme-spiderman {
    --accent-purple: #ff1744;
    --accent-purple-hover: #d50000;
    --accent-yellow: #ffd600;
    --accent-purple-rgb: 255, 23, 68;
    --accent-yellow-rgb: 255, 214, 0;
    --theme-gradient: linear-gradient(135deg, rgba(255, 214, 0, 0.8) 0%, rgba(255, 23, 68, 0.8) 100%);
    --theme-glow: rgba(255, 23, 68, 0.3);
}

/* Theme Switcher Floating Widget */
.theme-switcher-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
    direction: ltr;
    pointer-events: none;
}

.switcher-toggle-btn {
    width: 48px;
    height: 48px;
    background-color: var(--card-bg);
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), 0 0 10px var(--theme-glow);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    pointer-events: auto;
}

.switcher-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent-yellow);
}

.theme-switcher-widget.active .switcher-toggle-btn {
    border-color: var(--accent-yellow);
    transform: rotate(45deg);
}

.switcher-options {
    background-color: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
    pointer-events: none;
}

.theme-switcher-widget.active .switcher-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    border-color: var(--accent-purple);
    pointer-events: auto;
}

.theme-opt-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(26, 26, 36, 0.95);
    background-clip: padding-box;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-opt-btn:hover {
    transform: scale(1.2);
}

.theme-opt-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ==========================================
   Logo Color Theme Adaptation
   ========================================== */
.logo-img {
    transition: filter 0.3s ease;
}

/* Default (Kratos) - Purple (#7000df) with purple glow */
body:not(.theme-cyberpunk):not(.theme-halo):not(.theme-spiderman) .logo-img {
    filter: sepia(1) saturate(700%) hue-rotate(235deg) brightness(1.15) contrast(1.2) drop-shadow(0 0 10px rgba(112, 0, 223, 0.65));
}

/* Cyberpunk (Johnny Silverhand) - Pink (#ff007f) with pink glow */
body.theme-cyberpunk .logo-img {
    filter: sepia(1) saturate(950%) hue-rotate(295deg) brightness(1.25) contrast(1.15) drop-shadow(0 0 10px rgba(255, 0, 127, 0.7));
}

/* Halo (Master Chief) - Green (#00e676) with green glow */
body.theme-halo .logo-img {
    filter: sepia(1) saturate(850%) hue-rotate(95deg) brightness(1.2) contrast(1.15) drop-shadow(0 0 10px rgba(0, 230, 118, 0.7));
}

/* Spider-Man - Red (#ff1744) with red glow */
body.theme-spiderman .logo-img {
    filter: sepia(1) saturate(1100%) hue-rotate(325deg) brightness(1.2) contrast(1.25) drop-shadow(0 0 10px rgba(255, 23, 68, 0.7));
}

/* ==========================================
   Site Preloader Styling
   ========================================== */
.site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.preloader-logo {
    width: 100px;
    height: auto;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.preloader-progress {
    width: 45%;
    height: 100%;
    background: var(--theme-gradient);
    box-shadow: 0 0 8px var(--accent-purple);
    border-radius: 2px;
    position: absolute;
    left: -100%;
    animation: preloaderProgressLoop 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.preloader-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--theme-glow));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 25px var(--accent-purple));
    }
}

@keyframes preloaderProgressLoop {
    0% {
        left: -45%;
    }
    100% {
        left: 100%;
    }
}

/* ==========================================
   Back to Top Button Styling
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--card-bg);
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), 0 0 10px var(--theme-glow);
    cursor: pointer;
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--accent-purple), 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   3D Tilt Transition Support
   ========================================== */
.game-card {
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.35s ease;
}

/* ==========================================
   Game Collections
   ========================================== */
.collection-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px rgba(var(--accent-purple-rgb), 0.3);
    border-color: rgba(var(--accent-purple-rgb), 0.5);
}

.collection-card:hover .collection-bg {
    transform: scale(1.05);
}

/* ==========================================
   Cross-Document View Transitions & Nav Bar
   ========================================== */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 240ms cubic-bezier(0.4, 0, 1, 1) both bzp-vt-fade-out;
}

::view-transition-new(root) {
    animation: 320ms cubic-bezier(0.22, 1, 0.36, 1) both bzp-vt-fade-in;
}

@keyframes bzp-vt-fade-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-10px) scale(0.99); }
}

@keyframes bzp-vt-fade-in {
    from { opacity: 0; transform: translateY(12px) scale(1.008); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.bzp-page-transition-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 999999;
    pointer-events: none;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-yellow), var(--accent-purple));
    box-shadow: 0 0 14px var(--accent-purple), 0 0 6px var(--accent-yellow);
    transform-origin: right center;
    transform: scaleX(0);
    opacity: 0;
    will-change: transform, opacity;
}

.bzp-page-transition-bar.is-active {
    opacity: 1;
    animation: bzp-nav-progress 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bzp-nav-progress {
    0% { transform: scaleX(0.08); }
    45% { transform: scaleX(0.68); }
    100% { transform: scaleX(0.92); }
}

html.bzp-page-leaving #mainContent {
    opacity: 0.78;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

html.bzp-no-vt #mainContent {
    animation: bzp-fallback-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bzp-fallback-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body, header, footer, .btn-action, .cat-btn, .theme-opt-btn, .picker-card {
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, filter 0.3s ease;
}

/* ==========================================
   Global Search Overlay
   ========================================== */
.btn-search-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0;
}

.btn-search-toggle:hover {
    background: rgba(112, 0, 223, 0.15);
    border-color: var(--accent-purple);
    color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(112, 0, 223, 0.4);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 14, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-box {
    background: rgba(26, 26, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: min(90%, calc(100vw - 24px));
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    direction: rtl;
}

.search-overlay.active .search-overlay-box {
    transform: translateY(0) scale(1);
}

.search-overlay-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-overlay-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0b0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-close-search:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #ff4d4d;
}

.search-overlay-body {
    padding: 24px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-input-wrapper input {
    width: 100%;
    min-width: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
    padding: 16px 45px 16px 20px;
    border-radius: 14px;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(112, 0, 223, 0.3);
    background: rgba(0, 0, 0, 0.45);
}

.search-icon-inside {
    position: absolute;
    right: 18px;
    color: #65657b;
    font-size: 1.1rem;
    transition: 0.3s;
}

.search-input-wrapper input:focus + .search-icon-inside {
    color: var(--accent-purple);
    text-shadow: 0 0 8px rgba(112, 0, 223, 0.5);
}

.global-search-results {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Session Timer Floating Widget
   ========================================== */
.session-timer-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999995;
    background: rgba(21, 21, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(112, 0, 223, 0.3); /* Purple accent glow */
    border-radius: 16px;
    padding: 15px 20px;
    width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(112, 0, 223, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-primary);
    direction: rtl;
}

.session-timer-widget:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(112, 0, 223, 0.4);
}

.session-timer-widget.minimized {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border-color: rgba(255, 230, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.3);
}

.session-timer-widget.minimized:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px rgba(255, 214, 0, 0.6);
    transform: scale(1.05);
}

.session-timer-widget.minimized .widget-content {
    display: none;
}

.session-timer-widget.minimized .widget-minimized-icon {
    display: flex;
    font-size: 1.25rem;
    color: var(--accent-yellow);
}

.session-timer-widget .widget-minimized-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.session-timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.session-timer-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-timer-minimize {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
}

.session-timer-minimize:hover {
    color: var(--accent-yellow);
    background: rgba(255, 255, 255, 0.08);
}

.session-timer-display {
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    margin: 8px 0;
    font-family: inherit;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.session-progress-bar-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.session-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-yellow) 0%, #ffeb3b 100%);
    width: 0%;
    border-radius: 3px;
    transition: width 1s linear;
    box-shadow: 0 0 8px var(--accent-yellow);
}

/* Hide on mobile devices to preserve screen space */
@media (max-width: 768px) {
    .session-timer-widget {
        display: none !important;
    }
}

/* 9. Ambient Gaming UI Customizer Controls */
.theme-opt-toggle-btn:hover {
    transform: scale(1.1);
    color: #fff !important;
}
.theme-opt-toggle-btn.active {
    color: var(--accent-yellow) !important;
    border-color: var(--accent-yellow) !important;
    background-color: rgba(var(--accent-yellow-rgb), 0.15) !important;
    box-shadow: 0 0 10px rgba(var(--accent-yellow-rgb), 0.3);
}

/* Ambient Neon Glow Mode Styles */
body.glow-enabled .game-card {
    border: 1px solid rgba(var(--accent-purple-rgb), 0.5) !important;
    box-shadow: 0 0 15px rgba(var(--accent-purple-rgb), 0.4), inset 0 0 15px rgba(var(--accent-purple-rgb), 0.15) !important;
    background: rgba(15, 15, 19, 0.9) !important;
}
body.glow-enabled .game-card:hover {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 25px rgba(var(--accent-purple-rgb), 0.85), inset 0 0 20px rgba(var(--accent-purple-rgb), 0.3) !important;
}
body.glow-enabled .game-card .game-title {
    text-shadow: 0 0 8px rgba(var(--accent-purple-rgb), 0.65);
}
body.glow-enabled .game-card:hover .game-title {
    text-shadow: 0 0 15px rgba(var(--accent-purple-rgb), 0.95);
    color: #fff !important;
}
body.glow-enabled .btn-action {
    box-shadow: 0 0 15px rgba(var(--accent-purple-rgb), 0.5);
    border: 1px solid rgba(var(--accent-purple-rgb), 0.6) !important;
}
body.glow-enabled .btn-action:hover {
    box-shadow: 0 0 25px rgba(var(--accent-purple-rgb), 0.9);
    border-color: var(--accent-purple) !important;
}
body.glow-enabled .badge {
    box-shadow: 0 0 12px rgba(var(--accent-purple-rgb), 0.5);
    border: 1px solid rgba(var(--accent-purple-rgb), 0.4);
}
body.glow-enabled .sidebar-card,
body.glow-enabled .detail-card,
body.glow-enabled .matcher-box,
body.glow-enabled .matcher-promo-card {
    border: 1px solid rgba(var(--accent-purple-rgb), 0.4) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(var(--accent-purple-rgb), 0.25), inset 0 0 15px rgba(var(--accent-purple-rgb), 0.1) !important;
}

/* Reader Friendly News Post Styles */
.news-rich-text p {
    margin-bottom: 22px;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.95;
    text-align: justify;
}
.news-rich-text h2, .news-rich-text h3, .news-rich-text h4 {
    color: #fff;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 800;
}
.news-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.news-rich-text blockquote {
    border-right: 4px solid var(--accent-purple);
    padding: 10px 20px;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-secondary);
}
.news-sidebar-item:hover .sidebar-news-title {
    color: var(--accent-yellow) !important;
}

/* News List Card hover transition helpers */
.news-list-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.news-list-card:hover .news-card-link {
    color: var(--accent-yellow) !important;
}
.news-list-card:hover .read-more-link {
    color: var(--accent-yellow) !important;
}
.news-list-card:hover .read-more-link i {
    transform: translateX(-4px);
}
.read-more-link i {
    transition: transform 0.2s ease;
}

/* === Homepage News Section === */
.news-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.news-home-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(22, 22, 33, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-home-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.25);
}
.news-home-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.news-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-home-card:hover .news-home-img img {
    transform: scale(1.08);
}
.news-home-date {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: #ccc;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-home-info {
    padding: 15px;
    direction: rtl;
    text-align: right;
}
.news-home-info h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-home-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 900px) {
    .news-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .news-section-home {
        margin: 25px auto !important;
        padding: 0 15px !important;
    }
    .news-home-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }
}
@media (max-width: 600px) {
    .news-home-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .news-home-img {
        height: 160px;
    }
}

/* ==========================================
   ۶. استایل کاراکتر پیکسلی تعاملی (Interactive Pixel Shimeji Mascot)
   ========================================== */
/* --- Interactive Pixel Mascot --- */
.pixel-pet-container {
    position: fixed;
    bottom: 0px;
    left: 20px;
    z-index: 9999;
    cursor: grab;
    transform-origin: bottom center;
    transition: transform 0.1s linear;
    user-select: none;
    transition: left 0.08s linear, bottom 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
    display: flex !important;
    flex-direction: column;
    align-items: center;
    touch-action: none;
}

.pixel-pet-container.hide-pet {
    display: none !important;
}

.pixel-pet-container.is-dragging {
    cursor: grabbing !important;
    transition: none !important;
    z-index: 9999999 !important;
    touch-action: none !important;
}

.pixel-pet-container.is-dragging .pixel-pet-sprite {
    transform: scale(1.15) rotate(8deg);
}

.pixel-pet-sprite {
    width: var(--pet-width, 96px);
    height: var(--pet-height, 96px);
    background-size: var(--bg-size, 384px 96px);
    background-repeat: no-repeat;
    background-position: 0px 0px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    transform-origin: center bottom;
    transition: transform 0.15s ease-out;
}

.pixel-pet-shadow {
    width: 52px;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 80%);
    border-radius: 50%;
    margin-top: -6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* حالت پرش (Jumping Effect) */
.pixel-pet-container.is-jumping {
    animation: pixelPetJumpAnim 0.65s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}
.pixel-pet-container.is-jumping .pixel-pet-shadow {
    transform: scale(0.4);
    opacity: 0.3;
}

@keyframes pixelPetJumpAnim {
    0%   { transform: translateY(0) scale(1, 1); }
    15%  { transform: translateY(-12px) scale(0.9, 1.1); }
    50%  { transform: translateY(-75px) scale(1, 1) rotate(10deg); }
    80%  { transform: translateY(-10px) scale(1, 1) rotate(-5deg); }
    100% { transform: translateY(0) scale(1.15, 0.85); }
}

/* حباب دیالوگ تعاملی (Speech Bubble) */
.pixel-pet-bubble {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(18, 18, 28, 0.95);
    border: 2px solid var(--accent-purple, #7000df);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    padding: 8px 14px;
    border-radius: 12px;
    max-width: min(240px, calc(100vw - 32px));
    min-width: 100px;
    width: max-content;
    text-align: center;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 12px rgba(112, 0, 223, 0.4);
    z-index: 100000;
}

.pixel-pet-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(18, 18, 28, 0.95) transparent transparent transparent;
}

.pixel-pet-bubble.show {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(-4px);
}

/* استایل لگد / افکت درخشش در تم‌های مختلف */
.pixel-pet-container[data-theme="cyberpunk"] .pixel-pet-bubble {
    border-color: #00f0ff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 12px rgba(0, 240, 255, 0.5);
}
.pixel-pet-container[data-theme="halo"] .pixel-pet-bubble {
    border-color: #00e676;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 12px rgba(0, 230, 118, 0.5);
}
.pixel-pet-container[data-theme="spiderman"] .pixel-pet-bubble {
    border-color: #ff1744;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 12px rgba(255, 23, 68, 0.5);
}

@media (max-width: 768px) {
    .theme-switcher-widget {
        bottom: 12px;
        left: 12px;
        right: auto;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 8px;
    }
    .switcher-toggle-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .switcher-options {
        max-width: calc(100vw - 24px);
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 6px 10px;
        gap: 6px;
        border-radius: 16px;
        transform: translateY(10px);
    }
    .theme-switcher-widget.active .switcher-options {
        transform: translateY(0);
    }

    .back-to-top {
        bottom: 58px;
        left: 12px;
        right: auto;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .session-timer-widget {
        display: none !important; /* Keep mobile screen uncluttered */
    }

    .pixel-pet-container {
        display: flex !important;
        z-index: 9990 !important;
        transform-origin: bottom center;
        max-width: 100vw;
        pointer-events: auto !important;
        touch-action: none !important;
    }

    .pixel-pet-sprite {
        width: var(--pet-width, 72px) !important;
        height: var(--pet-height, 78px) !important;
    }
}

.latest-cracks-sec {
    margin: 30px auto;
}

.cracks-widget-card {
    background: rgba(22, 22, 33, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}

.cracks-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.cracks-widget-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cracks-widget-header a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cracks-widget-header a:hover {
    color: var(--accent-purple);
}

.cracks-widget-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 15px;
}

.crack-widget-item {
    background: rgba(15, 15, 19, 0.5);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.crack-widget-item:hover {
    border-color: var(--accent-purple);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(112, 0, 223, 0.2);
}

.crack-widget-item h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crack-widget-item .english-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.crack-widget-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.crack-widget-meta .badge {
    position: static;
    font-size: 0.75rem;
    padding: 4px 8px;
    animation: none;
    border-radius: 6px;
    font-weight: 700;
}

.crack-widget-meta .time-ago {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Ultra-Narrow Screens (320px-430px) & Large Accessibility Fonts (20px+)
   Zero horizontal overflow guarantees. Desktop (>600px) is untouched.
   ========================================================================== */

/* Large accessibility fonts: let text-heavy grids breathe */
@media (min-width: 20em) {
    .info-banner span {
        overflow-wrap: anywhere;
    }
}

/* Very narrow phones (covers 320px devices) */
@media (max-width: 400px) {
    .hero-search input {
        padding: 12px 15px;
        min-width: 0;
    }

    .slide-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .stat-num {
        overflow-wrap: anywhere;
    }

    /* Footer stats stack without pushing chart out */
    .footer-stats-card {
        flex-wrap: wrap;
    }

    /* Version tag cannot overlap banner edges */
    .version-tag {
        max-width: 90%;
    }

    /* Quiz banner text never clips */
    .quiz-desc {
        max-width: 100%;
    }
}

/* Large-font safety net: when the user's base font is >= ~19px,
   rem-based fixed widths (sidebar 350px, poster 180px...) can exceed
   the viewport. These rules keep everything inside the screen. */
@media (min-width: 19em) and (max-width: 992px) {
    .game-hero-cover {
        flex-shrink: 1;
    }

    .badge-tag {
        white-space: normal;
    }

    .meta-item strong {
        overflow-wrap: anywhere;
    }
}

/* Global last-resort clamp for any element that still tries to escape
   horizontally on small screens (inline-styled widgets, injected HTML) */
@media (max-width: 600px) {
    .container {
        width: 100%;
        max-width: 100%;
    }

    img, svg, video, canvas, iframe, picture {
        max-width: 100% !important;
    }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    pre, code {
        overflow-wrap: anywhere;
        white-space: pre-wrap;
        word-break: break-word;
    }

    input[type="text"],
    input[type="search"],
    input[type="url"],
    input[type="email"],
    textarea {
        max-width: 100%;
        min-width: 0;
    }
}

/* ==========================================
   Elastic Jelly & Liquid Taffy Micro-Interactions
   ========================================== */

/* Keyframes for elastic tactile jelly recoil */
@keyframes jellyBounce {
    0% { transform: scale(1, 1); }
    25% { transform: scale(0.93, 1.07); }
    50% { transform: scale(1.05, 0.95); }
    75% { transform: scale(0.98, 1.02); }
    100% { transform: scale(1, 1); }
}

/* Base elastic transition for interactive elements */
.btn-action,
.btn-more,
.btn-download,
.btn-trailer,
.btn-screenshots,
.btn-share-hero,
.dl-part-btn,
.btn-expand-all-parts,
.switcher-toggle-btn,
.theme-opt-btn,
.theme-opt-toggle-btn,
.random-picker-btn,
.back-to-top,
.cat-btn,
.header-actions .btn-action {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
    transform-origin: center center;
    will-change: transform;
}

.btn-action:hover,
.btn-more:hover,
.btn-download:hover,
.btn-trailer:hover,
.btn-screenshots:hover,
.btn-share-hero:hover,
.dl-part-btn:hover,
.btn-expand-all-parts:hover,
.cat-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-action:active,
.btn-more:active,
.btn-download:active,
.btn-trailer:active,
.btn-screenshots:active,
.btn-share-hero:active,
.dl-part-btn:active,
.btn-expand-all-parts:active,
.switcher-toggle-btn:active,
.theme-opt-btn:active,
.back-to-top:active,
.cat-btn:active {
    transform: translateY(1px) scale(0.95, 0.93) !important;
    transition: transform 0.1s ease-out !important;
}

.jelly-animated {
    animation: jellyBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* Keep card action button flush inside rounded .game-card bounds on hover/active */
.game-card .btn-action {
    border-radius: 0 0 11px 11px;
    flex-shrink: 0;
    margin-top: auto;
    will-change: auto;
}

.game-card .btn-action:hover,
.game-card .btn-action:focus-visible {
    transform: none !important;
    filter: brightness(1.1);
}

.game-card .btn-action:active {
    transform: none !important;
    filter: brightness(0.95);
}

/* Liquid Glow Ripple Droplet */
.liquid-ripple-drop {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 35%, rgba(255, 255, 255, 0) 70%);
    animation: liquidRippleAnim 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    z-index: 10;
}

@keyframes liquidRippleAnim {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(0.2);
    }
    50% {
        opacity: 0.45;
    }
    100% {
        width: 340px;
        height: 340px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==========================================
   Collections Horizontal Carousel & Modal Dialog (v7.8.99)
   ========================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.game-collections-sec {
    margin: 40px auto;
}

.collections-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.collections-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collections-nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.collections-nav-btn {
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(26, 26, 36, 0.92);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.collections-nav-btn:hover:not(:disabled) {
    background: rgba(var(--accent-purple-rgb), 0.35);
    border-color: rgba(var(--accent-purple-rgb), 0.75);
}

.collections-nav-btn:focus-visible,
.collections-view-all-btn:focus-visible,
.collections-modal-close:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

.collections-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.collections-view-all-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(var(--accent-purple-rgb), 0.55);
    background: linear-gradient(135deg, rgba(var(--accent-purple-rgb), 0.28), rgba(26, 26, 36, 0.95));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.collections-view-all-btn:hover {
    background: linear-gradient(135deg, rgba(var(--accent-purple-rgb), 0.45), rgba(36, 26, 56, 0.98));
    border-color: rgba(var(--accent-yellow-rgb), 0.55);
}

.collections-count-pill {
    color: var(--accent-yellow);
    font-weight: 800;
}

.collections-carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    touch-action: manipulation;
    scrollbar-width: none;
    padding: 4px 2px 10px;
}

.collections-carousel-track::-webkit-scrollbar {
    display: none;
}

.collections-carousel-track:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 4px;
    border-radius: 14px;
}

@media (prefers-reduced-motion: no-preference) {
    .collections-carousel-track {
        scroll-behavior: smooth;
    }
}

.collection-slide {
    flex: 0 0 calc((100% - 54px) / 4);
    scroll-snap-align: start;
    min-width: 0;
}

@media (max-width: 1199px) {
    .collection-slide {
        flex: 0 0 calc((100% - 36px) / 3);
    }
}

@media (max-width: 820px) {
    .collection-slide {
        flex: 0 0 calc((100% - 18px) / 2);
    }
}

@media (max-width: 560px) {
    .collection-slide {
        flex: 0 0 82%;
    }
}

.collection-card {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 165px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.collection-card:hover {
    border-color: rgba(var(--accent-yellow-rgb), 0.55);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.collection-card:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

.collection-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform 0.35s ease;
}

.collection-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 19, 0.92), rgba(15, 15, 19, 0.2));
    pointer-events: none;
}

.collection-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.collection-card:hover .collection-bg,
.collection-card:hover .collection-bg-img {
    transform: scale(1.06);
}

.games-grid .game-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 340px;
}

.collection-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 18px;
}

.collection-info h3 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 1.12rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.collection-info span {
    color: var(--accent-yellow);
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.collections-carousel-markers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.collections-marker-btn {
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.collections-marker-btn::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: width 0.22s ease, background 0.22s ease;
}

.collections-marker-btn[aria-current="true"]::before {
    width: 24px;
    background: var(--accent-yellow);
}

.collections-marker-btn:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Native Modal <dialog> for View All Collections */
dialog.collections-modal {
    margin: auto;
    padding: 0;
    width: min(94vw, 960px);
    max-height: min(86dvh, 760px);
    border: 1px solid rgba(var(--accent-purple-rgb), 0.45);
    border-radius: 18px;
    background: linear-gradient(160deg, #171723 0%, #101018 100%);
    color: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
    overflow: hidden;
}

dialog.collections-modal[open] {
    display: flex;
    flex-direction: column;
}

dialog.collections-modal:modal {
    overscroll-behavior: contain;
}

dialog.collections-modal::backdrop {
    background: rgba(6, 6, 12, 0.78);
    backdrop-filter: blur(6px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.collections-modal-inner {
    display: flex;
    flex-direction: column;
    max-height: inherit;
    overflow: hidden;
}

.collections-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 22, 0.65);
}

.collections-modal-header h2,
.collections-modal-header h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.collections-modal-count {
    color: var(--accent-yellow);
    font-size: 0.95rem;
}

.collections-modal-close {
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.collections-modal-close:hover {
    background: rgba(255, 70, 90, 0.25);
    border-color: rgba(255, 90, 110, 0.65);
}

.collections-modal-search-wrap {
    position: relative;
    padding: 14px 20px 6px;
}

.collections-modal-search-wrap i {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-25%);
    color: var(--text-secondary);
    pointer-events: none;
}

.collections-modal-search {
    width: 100%;
    min-height: 44px;
    padding: 10px 40px 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 10, 16, 0.85);
    color: #fff;
    font-size: 0.95rem;
}

.collections-modal-search:focus {
    outline: 2px solid var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.collections-modal-body {
    overflow-y: auto;
    padding: 16px 20px 22px;
    overscroll-behavior: contain;
}

.collections-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.collections-modal-empty {
    text-align: center;
    padding: 36px 16px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

/* ==========================================
   Homepage Games Pagination (Page 1, 2, 3...)
   ========================================== */
.load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.games-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.page-numbers-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-num-link,
.page-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--accent-purple-rgb, 112, 0, 223), 0.3);
    color: var(--text-primary);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.page-num-link:hover,
.page-nav-btn:hover,
.page-num-link:focus-visible,
.page-nav-btn:focus-visible {
    background: rgba(var(--accent-purple-rgb, 112, 0, 223), 0.18);
    border-color: var(--accent-purple);
    color: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--accent-purple-rgb, 112, 0, 223), 0.25);
}

.page-num-link.is-active,
.page-nav-btn.is-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-hover));
    border-color: rgba(var(--accent-yellow-rgb), 0.5);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(var(--accent-purple-rgb, 112, 0, 223), 0.36);
}

body.theme-halo .page-num-link.is-active,
body.theme-halo .page-nav-btn.is-primary {
    color: #06180f;
}




