/* ============================================
   PLAYTHROTTLEPEEK - MAIN STYLESHEET
   Modern Browser Games Platform
   ============================================ */

/* === CSS RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0B0B0F;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(15, 15, 25, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --gradient-sidebar: linear-gradient(180deg, #1a1035 0%, #0d1b3e 50%, #0B0B0F 100%);
    --gradient-hot: linear-gradient(135deg, #ff6b35, #ff3860);
    --gradient-top: linear-gradient(135deg, #f7c948, #ff6b35);
    --gradient-new: linear-gradient(135deg, #10b981, #3b82f6);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.3);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 50px;
    --sidebar-width: 80px;
    --sidebar-expanded: 200px;
    --header-height: 70px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10000;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--gradient-sidebar);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 90px 0 20px;
    gap: 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    justify-content: center;
    position: relative;
    transition: var(--transition-normal);
    border-radius: var(--radius-sm);
    margin: 0 8px;
    min-height: 50px;
    text-decoration: none;
}

.sidebar-icon {
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.sidebar-label {
    position: absolute;
    left: 60px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
    pointer-events: none;
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.sidebar-item:hover .sidebar-label {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-item:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: scale(1.05);
}

.sidebar-item:hover .sidebar-icon {
    transform: scale(1.15);
}

.sidebar-item.active {
    background: rgba(139, 92, 246, 0.2);
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.15), var(--glow-purple);
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* === MAIN WRAPPER === */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

/* === HEADER === */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--header-height);
    max-width: 1600px;
    margin: 0 auto;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.3px;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.logo:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-purple);
}

.logo-icon {
    font-size: 20px;
}

.bonus-section {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    white-space: nowrap;
}

.bonus-icon {
    font-size: 18px;
}

.bonus-text {
    font-weight: 600;
    color: var(--accent-orange);
}

.bonus-claim-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    animation: pulse-glow 2s infinite;
}

.bonus-claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.6); }
}

.header-center {
    flex: 1;
    max-width: 450px;
    margin: 0 auto;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 0 16px;
    transition: var(--transition-normal);
}

.search-bar:focus-within {
    border-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
    background: rgba(255, 255, 255, 0.12);
}

.search-icon {
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

.search-bar input {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 10px 0;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.search-result-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

.search-result-item span {
    font-size: 20px;
}

.search-result-item p {
    font-size: 14px;
    font-weight: 500;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.no-ads-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.login-btn {
    background: var(--gradient-primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    transition: var(--transition-normal);
    white-space: nowrap;
}

.login-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-purple);
}

.header-links {
    display: flex;
    gap: 16px;
}

.header-links a {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.header-links a:hover {
    color: var(--text-primary);
}

/* === INFO STRIP === */
.info-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 24px;
    background: rgba(139, 92, 246, 0.06);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.info-icon {
    font-size: 18px;
}

.info-divider {
    width: 1px;
    height: 20px;
    background: var(--border-subtle);
}

/* === SECTION HEADERS === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* === FEATURED SECTION === */
.featured-section {
    padding: 32px 24px 16px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.slider-controls {
    display: flex;
    gap: 8px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.slider-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
}

.featured-slider {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.featured-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-type: x mandatory;
}

.featured-card {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    scroll-snap-align: start;
    text-decoration: none;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--glow-purple);
}

.featured-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.08);
}

.game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-hot {
    background: var(--gradient-hot);
}

.badge-top {
    background: var(--gradient-top);
}

.badge-new {
    background: var(--gradient-new);
}

.featured-info {
    padding: 16px;
}

.featured-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.featured-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* === GAME GRID === */
.games-section {
    padding: 24px 24px 16px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.grid-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-purple);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: block;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--border-glow);
    box-shadow: var(--glow-purple), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card-skeleton {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.08) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-lg);
    z-index: 5;
}

.game-card.loading .game-card-skeleton {
    display: block;
}

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

.game-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fav-btn:hover {
    background: rgba(236, 72, 153, 0.5);
    transform: scale(1.1);
}

.fav-btn.active {
    background: rgba(236, 72, 153, 0.7);
    color: #ff4d8d;
}

.game-card-info {
    padding: 14px 16px;
}

.game-card-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.game-rating {
    color: var(--accent-orange);
    font-weight: 600;
}

.hidden-card {
    display: none;
}

.hidden-card.visible {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

/* === LOAD MORE === */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.load-more-btn {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: var(--radius-pill);
    transition: var(--transition-normal);
    overflow: hidden;
}

.load-more-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-purple);
}

.load-more-btn.loading .load-more-text {
    opacity: 0;
}

.load-more-btn.loading .load-more-spinner {
    display: block;
}

.load-more-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === PAGE TITLE SECTION === */
.page-title-section {
    padding: 40px 24px 16px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.filter-bar-section {
    padding: 0 24px 16px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.full-filter {
    flex-wrap: wrap;
}

/* === GAME PLAYER === */
.game-player-section {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.game-player-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.game-player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.game-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 15, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.game-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.game-loading-overlay p {
    font-size: 14px;
    color: var(--text-secondary);
}

.game-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.player-control-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.player-control-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--border-glow);
}

.player-control-btn span {
    font-size: 16px;
}

.fav-game-btn.active {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
    color: var(--accent-pink);
}

/* === GAME INFO === */
.game-info-section {
    padding: 0 24px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.game-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.game-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.game-info-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.game-info-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 20px;
    color: var(--text-muted);
}

.star.active {
    color: var(--accent-orange);
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.game-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.game-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.game-tag {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.game-tag:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

/* === SIMILAR GAMES === */
.similar-games-section {
    padding: 0 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.similar-games-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.similar-games-slider::-webkit-scrollbar {
    display: none;
}

.similar-card {
    min-width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* === LEGAL PAGES === */
.legal-section {
    padding: 32px 24px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.legal-card h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--accent-purple);
}

.legal-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.legal-card ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 6px;
}

.legal-card ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--accent-purple);
    font-weight: bold;
}

.legal-card strong {
    color: var(--text-primary);
}

/* === FOOTER === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo-icon {
    font-size: 28px;
}

.footer-brand .logo-text {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.7;
}

.footer-links-group {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-purple);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 24px 24px;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cookie-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-accept {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition-normal);
}

.cookie-accept:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-purple);
}

.cookie-reject {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* === MOBILE BOTTOM NAV === */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.mobile-bottom-nav {
    display: none;
    grid-template-columns: repeat(4, 1fr);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 20px;
    transition: var(--transition-fast);
}

.mobile-nav-item small {
    font-size: 10px;
    font-weight: 600;
}

.mobile-nav-item.active {
    color: var(--accent-purple);
}

.mobile-nav-item:hover {
    color: var(--text-primary);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === RESPONSIVE: TABLET (768px - 1024px) === */
@media (max-width: 1280px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .header-links {
        display: none;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 60px;
    }

    .sidebar-nav {
        padding-top: 80px;
    }

    .sidebar-item {
        margin: 0 6px;
        padding: 12px 0;
    }

    .sidebar-icon {
        font-size: 20px;
    }

    .main-wrapper {
        margin-left: 60px;
    }

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

    .featured-card {
        min-width: calc(50% - 10px);
    }

    .bonus-section {
        display: none;
    }

    .header-links {
        display: none;
    }

    .no-ads-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        z-index: 1001;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .sidebar-nav {
        padding-top: 80px;
    }

    .sidebar-item {
        justify-content: flex-start;
        padding: 14px 20px;
        gap: 14px;
    }

    .sidebar-label {
        position: static;
        opacity: 1;
        transform: none;
        background: none;
        padding: 0;
        border: none;
        box-shadow: none;
        pointer-events: auto;
        font-size: 15px;
    }

    .sidebar-item.active::before {
        left: 0;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .logo-text {
        display: none;
    }

    .logo {
        padding: 8px 12px;
    }

    .bonus-section {
        display: none;
    }

    .header-center {
        max-width: 100%;
        flex: 1;
    }

    .header-links {
        display: none;
    }

    .no-ads-badge {
        display: none;
    }

    .login-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

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

    .featured-card {
        min-width: calc(80% - 10px);
    }

    .featured-section,
    .games-section {
        padding: 20px 16px 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .info-strip {
        padding: 12px 16px;
        gap: 12px;
    }

    .info-divider {
        display: none;
    }

    .info-item {
        font-size: 12px;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    .footer {
        padding-bottom: 70px;
    }

    .cookie-banner {
        padding: 0 12px 80px;
    }

    .cookie-content {
        padding: 16px;
    }

    .legal-card {
        padding: 24px 20px;
    }

    .legal-card h1 {
        font-size: 24px;
    }

    .page-title {
        font-size: 24px;
    }

    .game-player-section {
        padding: 16px;
    }

    .game-info-section {
        padding: 0 16px 16px;
    }

    .similar-games-section {
        padding: 0 16px 24px;
    }

    .game-info-card {
        padding: 20px;
    }

    .game-info-header h1 {
        font-size: 22px;
    }

    .game-player-controls {
        padding: 12px 16px;
    }

    .player-control-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links-group {
        gap: 24px;
    }

    .footer-inner {
        padding: 32px 16px 20px;
    }

    .load-more-wrapper {
        padding: 16px;
    }

    .filter-bar-section {
        padding: 0 16px 12px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-card-info {
        padding: 10px 12px;
    }

    .game-card-info h3 {
        font-size: 13px;
    }

    .game-card-meta {
        font-size: 11px;
    }

    .featured-card {
        min-width: calc(85% - 10px);
    }

    .featured-info {
        padding: 12px;
    }

    .featured-info h3 {
        font-size: 14px;
    }

    .similar-card {
        min-width: 160px;
    }

    .header-inner {
        gap: 8px;
    }

    .search-bar {
        padding: 0 12px;
    }

    .search-bar input {
        font-size: 13px;
    }
}

/* === UTILITY === */
@media (hover: hover) {
    .game-card:hover .game-card-image img {
        transform: scale(1.1);
    }

    .featured-card:hover .featured-image {
        transform: scale(1.08);
    }
}

/* Ensure no horizontal overflow */
html, body {
    overflow-x: hidden;
}

.main-wrapper {
    overflow-x: hidden;
}

/* Smooth scrolling for reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}