/*
Theme Name: Retro Arcade Enhanced
Theme URI: https://summergamer.com
Author: SummerGamer
Author URI: https://summergamer.com
Description: Retro 80s arcade-style gaming theme with integrated mod menu authentication, Patreon integration, rating system, and premium content management
Version: 3.21.0
License: GNU General Public License v2 or later
Text Domain: retroarcade
*/

/* Pixel Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* Color Palette */
:root {
    --neon-green: #39FF14;
    --neon-pink: #FF10F0;
    --neon-blue: #00D9FF;
    --dark-bg: #0a0014;
    --screen-green: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--screen-green);
    font-family: 'VT323', monospace;
    font-size: 20px;
    line-height: 1.3;
}

/* Scanlines Effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

a {
    color: var(--neon-blue);
    text-decoration: none;
}

a:hover {
    color: var(--neon-pink);
}

/* PAGE HEADER */
.page-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 15px;
}

.page-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #FFD700;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .page-header {
        padding: 15px 10px 10px;
    }
    
    .page-title {
        font-size: 10px;
        line-height: 1.3;
    }
}

/* HEADER */
.site-header {
    background: #1a0033;
    border-bottom: 3px solid #f0f0f0;
    padding: 15px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #FFD700;
    text-decoration: none;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 10px;
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #FFD700;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0f0f0;
    font-size: 18px;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
}

.nav-sep {
    color: rgba(240, 240, 240, 0.3);
}

/* MAIN CONTENT */
.content-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 8px;
}

/* GAMES GRID - See responsive section at bottom of file for full styling */

.game-card {
    background: rgba(26, 0, 51, 0.5);
    border: 2px solid #f0f0f0;
    padding: 8px;
    transition: all 0.3s;
    position: relative;
}

.game-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.game-card:hover {
    border-color: #FFD700;
    transform: translateY(-2px);
}

.card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(240, 240, 240, 0.3);
    margin-bottom: 8px;
}

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

.card-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 13px;
    line-height: 1.4;
    color: #FFD700;
    margin-bottom: 6px;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 240, 240, 0.3);
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f0f0f0;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

/* SINGLE GAME PAGE */
.game-single {
    max-width: 1200px;
    margin: 0 auto;
}

.game-header {
    background: rgba(26, 0, 51, 0.8);
    border: 3px solid #f0f0f0;
    padding: 15px;
    margin-bottom: 15px;
    /* glow removed */
}

.game-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #FFD700;
    line-height: 1.6;
    margin-bottom: 12px;
    text-shadow: 0 0 10px var(--neon-green);
}

.game-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.game-badge {
    background: rgba(240, 240, 240, 0.05);
    border: 2px solid #f0f0f0;
    padding: 6px 12px;
    font-size: 14px;
}

.download-btn {
    display: block;
    width: 100%;
    background: #FFD700;
    color: #000;
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    padding: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #c9a900;
}

.download-btn:hover {
    background: #ffed4e;
    box-shadow: 0 6px 0 #c9a900;
    transform: translateY(-2px);
    color: #000;
}

.game-content {
    background: rgba(26, 0, 51, 0.5);
    border: 2px solid rgba(240, 240, 240, 0.3);
    padding: 15px;
    line-height: 1.6;
}

/* FOOTER */
.site-footer {
    background: #0a0014;
    border-top: 3px solid #f0f0f0;
    padding: 20px 10px;
    text-align: center;
    margin-top: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--neon-blue);
}

.footer-links a:hover {
    color: var(--neon-pink);
}

.footer-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: #FFD700;
    line-height: 1.8;
}

/* PAGINATION */
/* Pagination Wrapper */
/* PAGINATION - See responsive section at bottom of file for full styling */

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .site-logo {
        font-size: 9px;
    }
    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .game-card {
        padding: 6px;
    }
    .card-title {
        font-size: 8px;
        min-height: 22px;
    }
    .badge {
        font-size: 10px;
        padding: 2px 4px;
    }
    .game-title {
        font-size: 11px;
    }
    .game-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    .download-btn {
        font-size: 9px;
        padding: 12px;
    }
    .footer-text {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 18px;
    }
    .content-wrap {
        padding: 10px;
    }
    .games-grid {
        gap: 12px;
        padding: 12px;
    }
    .game-card {
        padding: 5px;
    }
    .card-title {
        font-size: 7px;
        line-height: 1.3;
        min-height: 20px;
    }
    .badge {
        font-size: 9px;
        padding: 1px 3px;
    }
}

/* ============================================================================
   AUTHENTICATION FORMS (Login, Register, Forgot Password)
   ============================================================================ */

.ra-auth-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 15px;
}

.ra-auth-box {
    background: rgba(26, 0, 51, 0.8);
    border: 3px solid #f0f0f0;
    padding: 30px;
}

.ra-auth-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(240, 240, 240, 0.3);
    padding-bottom: 20px;
}

.ra-auth-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #FFD700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ra-auth-header h2 i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.ra-auth-header p {
    color: #f0f0f0;
    font-size: 16px;
    margin: 0;
}

.ra-auth-form {
    width: 100%;
}

.ra-form-group {
    margin-bottom: 20px;
}

.ra-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #FFD700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ra-form-group label i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.ra-form-group input[type="text"],
.ra-form-group input[type="email"],
.ra-form-group input[type="password"],
.ra-form-group input[type="url"],
.ra-form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(240, 240, 240, 0.3);
    color: #f0f0f0;
    font-family: 'VT323', monospace;
    font-size: 18px;
    box-sizing: border-box;
}

.ra-form-group input:focus,
.ra-form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
}

.ra-form-group small {
    display: block;
    font-size: 16px;
    color: var(--neon-blue);
    margin-top: 5px;
}

.ra-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.ra-checkbox input[type="checkbox"] {
    width: auto;
    accent-color: #FFD700;
}

.ra-form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.ra-form-links a {
    color: var(--neon-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ra-form-links a i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.ra-form-links a:hover {
    color: var(--neon-pink);
}

/* Alerts */
.ra-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-alert i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
}

.ra-alert-success {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    color: #00ff41;
}

.ra-alert-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

.ra-alert-warning {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

/* Buttons */
.ra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-align: center;
    text-decoration: none;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.ra-btn i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.ra-btn-primary {
    background: #FFD700;
    border-color: #FFD700;
    color: #000;
    box-shadow: 0 4px 0 #c9a900;
}

.ra-btn-primary:hover {
    background: #ffed4e;
    border-color: #ffed4e;
    color: #000;
    box-shadow: 0 6px 0 #c9a900;
    transform: translateY(-2px);
}

.ra-btn-patreon {
    background: linear-gradient(135deg, #f96854, #f44336);
    border-color: #f96854;
    color: #fff !important;
    box-shadow: 0 4px 0 #c62828;
}

.ra-btn-patreon:hover {
    box-shadow: 0 6px 0 #c62828;
    transform: translateY(-2px);
    color: #fff !important;
}

.ra-btn-logout {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff4444;
    box-shadow: 0 4px 0 rgba(255, 68, 68, 0.3);
}

.ra-btn-logout:hover {
    background: #ff4444;
    color: #000;
    box-shadow: 0 6px 0 rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* ============================================================================
   ACCOUNT DASHBOARD
   ============================================================================ */

.ra-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.ra-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.ra-dashboard-header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: #FFD700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-dashboard-header h1 i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.ra-dashboard-header p {
    color: #f0f0f0;
    font-size: 14px;
    margin: 0;
}

.ra-dashboard-card {
    background: rgba(26, 0, 51, 0.8);
    border: 3px solid rgba(240, 240, 240, 0.3);
    padding: 25px;
    margin-bottom: 20px;
}

.ra-card-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #FFD700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(240, 240, 240, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-card-title i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.ra-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ra-info-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(240, 240, 240, 0.3);
    padding: 12px;
}

.ra-info-label {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--neon-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ra-info-value {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: #f0f0f0;
    word-break: break-word;
}

/* Premium Status */
.ra-premium-box {
    text-align: center;
    padding: 30px;
    border: 3px solid;
    margin-bottom: 20px;
}

.ra-premium-active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: #FFD700;
}

.ra-premium-inactive {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15), rgba(255, 68, 68, 0.05));
    border-color: #ff4444;
}

.ra-premium-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ra-premium-box h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.ra-premium-active h3 {
    color: #FFD700;
}

.ra-premium-inactive h3 {
    color: #ff4444;
}

.ra-days-left {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    color: #FFD700;
    margin: 15px 0;
}

.ra-patreon-badge {
    display: inline-block;
    background: #FFD700;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    margin-top: 15px;
}

.ra-patreon-email {
    font-size: 15px;
    color: var(--neon-green);
    margin-top: 12px;
    font-weight: 600;
    background: rgba(0, 255, 0, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.ra-help-box {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 20px;
    margin-top: 20px;
}

.ra-help-box h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #FFD700;
    margin: 0 0 15px 0;
}

.ra-help-box ol {
    margin: 0 0 20px 20px;
    padding: 0;
    line-height: 1.8;
    color: #f0f0f0;
}

/* Device Info */
.ra-device-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ra-device-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.3);
}

.ra-device-item:last-child {
    border-bottom: none;
}

.ra-device-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 13px !important;
    color: var(--neon-blue);
}

.ra-device-value {
    font-size: 21px !important;
    color: #f0f0f0 !important;
    text-align: right;
}

/* Dashboard Form */
.ra-dashboard-form {
    width: 100%;
}

.ra-dashboard-actions {
    text-align: center;
    margin-top: 30px;
}

/* ============================================================================
   SINGLE GAME PAGE ENHANCEMENTS
   ============================================================================ */

.ra-game-single {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Horizontal Layout */
.ra-game-header-horizontal {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

/* Desktop: thumbnail positioned to the left */
@media (min-width: 769px) {
    .ra-game-info {
        padding-left: 220px; /* Space for thumbnail */
    }
    
    .ra-game-thumbnail {
        position: absolute;
        left: 15px;
        top: 15px;
        flex-shrink: 0;
        width: 200px;
        height: 200px;
        border: 2px solid #f0f0f0;
        overflow: hidden;
    }
    
    /* Social buttons positioned below thumbnail on desktop */
    .ra-social-share {
        position: absolute;
        left: 15px;
        top: 218px; /* 15px + 200px + 1px gap + 2px border */
        width: 200px;
        /* Base styles already have: gap: 6px, margin-top: 1px */
    }
    
    /* Desktop buttons keep base size: 45x38 */
    .ra-share-btn {
        font-size: 20px;
    }
    
    .ra-share-btn i {
        font-size: 20px;
    }
}

/* Mobile: thumbnail in normal flow, full width */
@media (max-width: 768px) {
    .ra-game-thumbnail {
        position: relative;  /* IMPORTANT: Makes ARM tags position relative to thumbnail */
        flex-shrink: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        border: 2px solid #f0f0f0;
        overflow: hidden;
        order: 3;
        margin: 8px 0;
    }
}

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

.ra-game-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700, var(--neon-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #000;
}

.ra-game-info {
    flex: 1;
    min-width: 0;
}

.ra-game-header {
    background: rgba(26, 0, 51, 0.9);
    border: 2px solid #f0f0f0;
    padding: 15px;
    margin-bottom: 20px;
}

.ra-game-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #FFD700;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.ra-game-breadcrumb {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #FFD700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ra-game-developer {
    font-size: 14px;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.ra-game-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0;
}

.ra-spec-badge {
    background: rgba(240, 240, 240, 0.05);
    border: 2px solid rgba(240, 240, 240, 0.3);
    padding: 6px 12px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f0f0f0;
}

.ra-game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0 8px 0;
}

.ra-stars {
    color: #FFD700;
    font-size: 20px;
}

.ra-rating-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #FFD700;
}

/* Buttons Container - Vertical stack layout */
.ra-buttons-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Full-width buttons (Rate, Download) */
.ra-btn-full-width {
    width: 100%;
    padding: 12px;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    text-align: center;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ra-btn-full-width i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Bottom row - 3 buttons side by side */
.ra-bottom-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.ra-bottom-buttons button,
.ra-bottom-buttons a {
    flex: 1;
    padding: 12px;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    text-align: center;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ra-bottom-buttons button i,
.ra-bottom-buttons a i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Dropdown */
.ra-download-dropdown {
    width: 100%;
    background: rgba(26, 0, 51, 0.95);
    border: 2px solid #FFD700;
    border-top: none;
    padding: 10px;
    display: none;
    flex-direction: column;
}

.ra-download-btn {
    background: #FFD700;
    border-color: #FFD700;
    color: #000;
    position: relative;
}

/* Ensure button type looks identical to link */
button.ra-download-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 12px 20px;
    border: 2px solid #FFD700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    position: relative; /* For icon positioning */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.ra-download-btn:hover,
button.ra-download-btn:hover {
    transform: translateY(-2px);
    color: #000;
}

/* Multi-Download Toggle Icon */
.ra-toggle-icon {
    position: absolute;
    left: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s;
}

/* Download Dropdown - Expands Below Button Row */
.ra-download-dropdown {
    position: relative;
    width: 100%;
    background: rgba(26, 0, 51, 0.95);
    border: 2px solid #FFD700;
    border-top: none;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    display: none;
}

.ra-download-dropdown[style*="display: block"] {
    display: block;
}

.ra-download-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.ra-download-option {
    display: block;
    padding: 12px 20px;
    color: #FFD700;
    text-decoration: none;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 8px;
    transition: all 0.3s;
    font-family: 'VT323', monospace;
    font-size: 18px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.ra-download-option:last-child {
    margin-bottom: 0;
}

.ra-download-option:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    transform: translateX(5px);
}

.ra-download-option i {
    margin-right: 10px;
    color: #FFD700;
}

.ra-rate-btn {
    background: rgba(240, 240, 240, 0.05);
    border-color: #FFD700;
    color: #FFD700;
}

.ra-rate-btn:hover {
    background: #FFD700;
    color: #000;
}

.ra-rated-btn {
    background: #FFD700;
    border-color: #FFD700;
    color: #000;
    cursor: not-allowed;
    opacity: 0.7;
}

.ra-more-info-btn {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.ra-more-info-btn:hover {
    background: var(--neon-blue);
    color: #000;
}

.ra-faq-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #00D9FF, #0077FF);
    border: 2px solid #00D9FF;
    color: #000;
    cursor: pointer;
    transition: all 0.3s;
}

.ra-faq-btn:hover {
    transform: translateY(-2px);
}

.ra-report-btn {
    background: rgba(255, 16, 240, 0.1);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.ra-report-btn:hover {
    background: var(--neon-pink);
    color: #000;
}

/* MOD Features */
.ra-mod-features {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(240, 240, 240, 0.3);
    padding: 20px;
    margin: 20px 0;
}

.ra-mod-features h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #FFD700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-mod-features h3 i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.ra-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ra-feature-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #f0f0f0;
    font-family: 'VT323', monospace;
    font-size: 20px;
    line-height: 1.6;
}

.ra-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
}

/* MORE INFO Section (expandable under mod features) */
.ra-more-info-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(240, 240, 240, 0.2);
}

.ra-more-info-toggle {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-more-info-toggle:hover {
    background: rgba(255, 215, 0, 0.2);
}

.ra-more-info-toggle i {
    margin-right: 10px;
}

.ra-more-info-content {
    margin-top: 15px;
    animation: fadeIn 0.3s;
}

.ra-more-info-text {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(240, 240, 240, 0.2);
    padding: 15px;
    color: #f0f0f0;
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.6;
}

/* FAQ Modal Styles */
.ra-faq-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(240, 240, 240, 0.2);
    padding: 15px;
    margin-bottom: 15px;
}

.ra-faq-question {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #FFD700;
    margin-bottom: 10px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ra-faq-question i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    color: #00D9FF;
}

.ra-faq-answer {
    color: #f0f0f0;
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.6;
}

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

/* Additional Notes (Expandable) */
.ra-additional-notes {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 217, 255, 0.3);
    margin: 20px 0;
}

.ra-notes-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ra-notes-header h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--neon-blue);
    margin: 0;
}

.ra-notes-toggle {
    font-size: 20px;
    color: var(--neon-blue);
}

.ra-notes-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding: 0 15px;
}

.ra-notes-content.expanded {
    max-height: 500px;
    padding: 0 15px 15px 15px;
}

.ra-notes-content p {
    color: var(--screen-green);
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Game Description */
.ra-game-content {
    background: rgba(26, 0, 51, 0.5);
    border: 2px solid rgba(240, 240, 240, 0.3);
    padding: 20px;
    margin: 20px 0;
}

.ra-game-content h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #FFD700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-game-content h2 i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.ra-game-content-text {
    color: #f0f0f0;
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.8;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s;
}

.ra-game-content-text.expanded {
    max-height: none;
}

.ra-read-more-btn {
    background: none;
    border: 2px solid #FFD700;
    color: #FFD700;
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.ra-read-more-btn:hover {
    background: #FFD700;
    color: #000;
}

/* Modal */
/* MODALS - See responsive section at bottom of file for full styling */

.ra-modal-header {
    padding: 20px;
    border-bottom: 2px solid rgba(240, 240, 240, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ra-modal-header h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #FFD700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-modal-header h3 i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.ra-modal-close {
    background: none;
    border: none;
    color: var(--neon-pink);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.ra-modal-body {
    padding: 20px;
}

/* Rating Stars (Popup) */
.ra-popup-stars {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.ra-popup-star {
    font-size: 48px;
    color: rgba(240, 240, 240, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.ra-popup-star:hover,
.ra-popup-star.active {
    color: #FFD700;
    text-shadow: 0 0 20px var(--neon-green);
    transform: scale(1.2);
}

/* Report Form */
.ra-report-form select,
.ra-report-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(240, 240, 240, 0.3);
    color: var(--screen-green);
    font-family: 'VT323', monospace;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.ra-report-form textarea {
    min-height: 120px;
    resize: vertical;
}

.ra-report-form select:focus,
.ra-report-form textarea:focus {
    outline: none;
    border-color: #FFD700;
    /* glow removed */
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .site-logo {
        font-size: 14px;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .ra-game-title {
        font-size: 12px !important;
    }
    
    /* Reduce padding so image has more space */
    .ra-game-header {
        padding: 10px;
    }
    
    .ra-auth-box {
        padding: 20px;
    }
    
    .ra-auth-header h2 {
        font-size: 12px;
    }
    
    .ra-dashboard-card {
        padding: 15px;
    }
    
    .ra-card-title {
        font-size: 10px;
    }
    
    .ra-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ra-days-left {
        font-size: 24px;
    }
    
    .ra-button-row {
        flex-direction: column;
    }
    
    .ra-button-row button,
    .ra-button-row a {
        width: 100%;
        min-width: auto;
    }
    
    /* Full-width buttons stay same */
    .ra-btn-full-width {
        width: 100%;
    }
    
    /* Bottom buttons - stack on very small screens */
    .ra-bottom-buttons {
        flex-direction: column;
    }
    
    .ra-bottom-buttons button,
    .ra-bottom-buttons a {
        width: 100%;
    }
    
    /* Dropdown stays same */
    .ra-download-dropdown {
        width: 100%;
    }
    
    .ra-form-links {
        flex-direction: column;
        text-align: center;
    }
    
    .ra-device-item {
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }
    
    .ra-device-value {
        text-align: left;
    }
    
    /* Horizontal layout becomes vertical on mobile */
    .ra-game-header-horizontal {
        display: flex;
        flex-direction: column;
    }
    
    /* Make game-info flex for ordering its children */
    .ra-game-info {
        display: flex;
        flex-direction: column;
        padding-left: 0; /* Remove desktop padding */
    }
    
    /* Order elements inside game-info */
    .ra-game-breadcrumb {
        order: 1;
    }
    
    .ra-game-title {
        order: 2;
    }
    
    .ra-game-thumbnail {
        order: 3;
    }
    
    .ra-game-developer {
        order: 4;
    }
    
    .ra-game-rating {
        order: 5;
    }
    
    .ra-game-specs {
        order: 6;
    }
    
    /* Buttons container */
    .ra-buttons-container {
        order: 7;
        margin-bottom: 15px; /* Space between action buttons and social share */
    }
    
    /* Social share buttons - at the very end on mobile (after all buttons) */
    .ra-social-share {
        order: 10; /* After everything - at the end */
        margin-top: 0; /* Remove since buttons-container has margin-bottom */
        margin-bottom: 0;
        gap: 0; /* No gap for edge-to-edge */
        justify-content: space-between;
        width: 100%;
    }
    
    .ra-share-btn {
        flex: 1; /* Equal width for all buttons */
        height: 46px;
        font-size: 18px;
        border-radius: 0; /* Square edges for seamless look */
    }
    
    .ra-share-btn:first-child {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }
    
    .ra-share-btn:last-child {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    
    .ra-share-btn i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 12px;
    }
    
    .ra-game-title {
        font-size: 10px !important;
    }
    
    .ra-dashboard-header h1 {
        font-size: 14px;
    }
    
    .ra-premium-icon {
        font-size: 32px;
    }
    
    .ra-premium-box h3 {
        font-size: 11px;
    }
    
    .ra-btn {
        font-size: 9px;
        padding: 12px 18px;
    }
    
    .ra-popup-stars {
        gap: 10px;
    }
    
    .ra-popup-star {
        font-size: 36px;
    }
}

/* Search Popup */
/* SEARCH POPUP - See responsive section at bottom of file for full styling */

/* Mobile Categories Icon */
.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-flex;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .ra-game-single {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .ra-game-single {
        padding: 10px 5px;
    }
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #f0f0f0;
    padding: 15px;
    color: #f0f0f0;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s;
}

.category-item:hover {
    background: #FFD700;
    border-color: #FFD700;
    color: #000;
    transform: translateY(-2px);
}

/* ARM Architecture Tags */
.card-img {
    position: relative;
    overflow: hidden;
}

.arm-tags {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 10;
}

.arm-tag {
    background: #ff8c00;
    color: #000;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 1px;
}

/* MOD Tag - Bottom Left, Dark Green */
.mod-tag {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: #006400; /* Dark green */
    color: #fff;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 1px;
    z-index: 10;
}

/* Windows Tag - Bottom Right */
.windows-tag {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 10;
}

.win-tag {
    background: #0078d4; /* Windows blue */
    color: #fff;
    padding: 4px 10px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'VT323', monospace;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 1px;
}

/* Social Share Buttons - Square Icons Only */
.ra-social-share {
    display: flex;
    gap: 6px;
    margin-top: 1px;
    width: 100%;
}

.ra-share-btn {
    width: 45px;
    height: 38px;
    padding: 0;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 2px solid;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ra-share-btn i {
    font-size: 18px;
}

.ra-share-facebook {
    background: #1877F2;
    border-color: #1460d4;
}

.ra-share-facebook:hover {
    background: #145dbf;
    border-color: #0d4288;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.4);
}

.ra-share-twitter {
    background: #1DA1F2;
    border-color: #1a8cd8;
}

.ra-share-twitter:hover {
    background: #1a8cd8;
    border-color: #1277b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(29, 161, 242, 0.4);
}

.ra-share-whatsapp {
    background: #25D366;
    border-color: #20ba5a;
}

.ra-share-whatsapp:hover {
    background: #20ba5a;
    border-color: #1aa34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
}

.ra-share-telegram {
    background: #0088cc;
    border-color: #0077b5;
}

.ra-share-telegram:hover {
    background: #0077b5;
    border-color: #00649e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 136, 204, 0.4);
}

/* Smaller on mobile for cards */
@media (max-width: 768px) {
    .card-img .arm-tags {
        bottom: 3px;
        right: 3px;
        gap: 2px;
    }
    
    .card-img .arm-tag {
        padding: 2px 5px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .card-img .mod-tag {
        bottom: 3px;
        left: 3px;
        padding: 2px 5px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .card-img .windows-tag {
        bottom: 3px;
        right: 3px;
        gap: 2px;
    }
    
    .card-img .win-tag {
        padding: 2px 6px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}



/* ============================================================================
   MOBILE POPOVER STYLES - Completely separate from desktop
   These styles ONLY apply to mobile and won't interfere with desktop
   ============================================================================ */

/* Hide mobile popovers by default on ALL devices */
.mobile-popup-only {
    display: none !important;
}

/* Desktop popup visibility - keep original behavior */
.desktop-popup-only {
    display: none; /* Hidden by default, shown via JS */
}

/* Mobile Popover Overlay - Dark backdrop */
.mobile-popover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px;
    animation: mobileOverlayFadeIn 0.2s ease-out;
}

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

/* Mobile Popover Box - The actual popover container */
.mobile-popover-box {
    position: relative;
    margin-top: 60px; /* Below header */
    margin-right: 0;
    width: 100%;
    max-width: 340px;
    background: linear-gradient(180deg, #1a0033 0%, #0a0014 100%);
    border: 3px solid #FFD700;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
    animation: mobileSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes mobileSlideIn {
    from { 
        transform: translateX(100%);
        opacity: 0;
    }
    to { 
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Popover Header */
.mobile-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: rgba(255, 215, 0, 0.15);
    border-bottom: 2px solid #FFD700;
}

.mobile-popover-header h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    color: #FFD700;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Popover Close Button */
.mobile-popover-close {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 32px;
    height: 32px;
    line-height: 28px;
    text-align: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mobile-popover-close:active {
    transform: scale(0.85);
}

/* Mobile Categories Scroll Area */
.mobile-categories-scroll {
    max-height: calc(70vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Category Links */
.mobile-category-link {
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(240, 240, 240, 0.4);
    border-radius: 6px;
    color: #f0f0f0;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.mobile-category-link:active {
    background: #FFD700;
    border-color: #FFD700;
    color: #000;
    transform: scale(0.97);
}

.mobile-category-link:last-child {
    margin-bottom: 0;
}

/* Mobile Search Form Container */
.mobile-search-form {
    padding: 18px;
}

.mobile-search-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-search-form input[type="search"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(240, 240, 240, 0.5);
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 15px;
    font-family: 'VT323', monospace;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.mobile-search-form input[type="search"]:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.mobile-search-form button[type="submit"] {
    width: 100%;
    background: #FFD700;
    border: none;
    border-radius: 6px;
    color: #000;
    padding: 14px 16px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-search-form button[type="submit"]:active {
    transform: scale(0.96);
    background: #ffed4e;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.mobile-search-form button[type="submit"] i {
    margin-right: 8px;
}

/* ============================================================================
   MOBILE MEDIA QUERY - Show mobile popovers ONLY on mobile
   ============================================================================ */

@media (max-width: 768px) {
    /* Show mobile popovers */
    .mobile-popup-only {
        display: flex !important;
    }
    
    /* Hide desktop popovers completely on mobile */
    .desktop-popup-only {
        display: none !important;
    }
}

/* ============================================================================
   DESKTOP MEDIA QUERY - Show desktop popovers ONLY on desktop
   ============================================================================ */

@media (min-width: 769px) {
    /* Hide mobile popovers on desktop */
    .mobile-popup-only {
        display: none !important;
    }
    
    /* Desktop popups use original .search-popup class behavior */
    .desktop-popup-only {
        display: none; /* Hidden by default, shown via JS display:flex */
    }
}

/* Desktop popups inherit the original search-popup styles */
.desktop-popup-only.search-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

/* CRITICAL: Force hide mobile popups by default on ALL screen sizes */
.mobile-popup-only {
    display: none !important;
}

/* On mobile screens, allow mobile popups to be shown when JS adds display:flex */
@media (max-width: 768px) {
    .mobile-popup-only {
        display: none !important; /* Still hidden by default */
    }
    
    /* When shown via JS, display as flex */
    .mobile-popup-only[style*="display: flex"],
    .mobile-popup-only[style*="display:flex"] {
        display: flex !important;
    }
}

/* On desktop, NEVER show mobile popups */
@media (min-width: 769px) {
    .mobile-popup-only {
        display: none !important;
    }
    
    .mobile-popup-only[style*="display"],
    .mobile-popup-only[style] {
        display: none !important;
    }
}

/* Patreon Terms Modal */
.patreon-terms-content {
    background: var(--dark-bg);
    border: 3px solid var(--neon-green);
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px var(--neon-green);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--neon-green); }
    50% { box-shadow: 0 0 40px var(--neon-green), 0 0 60px var(--neon-green); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .patreon-terms-content {
        padding: 20px;
        max-width: 95%;
        max-height: 85vh;
    }
    
    .patreon-terms-content h2 {
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .patreon-terms-content ul li {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .patreon-terms-content .ra-btn {
        font-size: 12px;
        padding: 10px 15px;
        margin-bottom: 10px;
    }
}

/* Scrollbar styling for modal */
.patreon-terms-content::-webkit-scrollbar {
    width: 8px;
}

.patreon-terms-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.patreon-terms-content::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 10px;
}

.patreon-terms-content::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* ============================================================================
   SEO ENHANCEMENT - Section Heading Styles (v3.16.0)
   Proper H2 styling for modal/section headings that were previously H3
   ============================================================================ */

.section-heading {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #FFD700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading i {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Make section headings in modal headers look consistent */
.ra-modal-header .section-heading {
    margin: 0;
}

/* Post last updated notice styling */
.post-last-updated {
    background: rgba(255,215,0,0.1);
    border-left: 3px solid var(--gold-accent, #FFD700);
    padding: 12px 15px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--text-border, #f0f0f0);
}

.post-last-updated i {
    margin-right: 8px;
    color: var(--gold-accent, #FFD700);
}

/* Archive description styling (for category pages) */
.archive-description {
    background: rgba(255,215,0,0.05);
    border: 2px solid rgba(255,215,0,0.2);
    padding: 25px 30px;
    margin: 0 20px 30px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-border, #f0f0f0);
}

.archive-header {
    background: rgba(255,215,0,0.05);
    border: 2px solid rgba(255,215,0,0.2);
    padding: 25px 30px;
    margin: 0 20px 30px 20px;
    border-radius: 8px;
}

.archive-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--gold-accent, #FFD700);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.archive-count {
    margin-top: 15px;
    font-size: 12px;
    color: rgba(240,240,240,0.6);
    font-family: 'VT323', monospace;
}

@media (max-width: 768px) {
    .archive-description,
    .archive-header {
        margin: 0 10px 20px 10px;
        padding: 15px 20px;
    }
    
    .archive-title {
        font-size: 12px;
    }
}

/* ============================================================================
   RELATED POSTS SECTION (v3.18.0)
   Category-based related posts for improved internal linking and SEO
   ============================================================================ */

.ra-related-posts {
    margin: 40px 20px;
    padding: 30px;
    background: rgba(255, 215, 0, 0.03);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
}

.ra-section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #FFD700;
    text-align: center;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ra-section-title i {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

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

.ra-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ra-related-card {
    background: rgba(26, 0, 51, 0.6);
    border: 2px solid rgba(240, 240, 240, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.ra-related-card:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.ra-related-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.ra-related-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ra-related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ra-related-card:hover .ra-related-thumbnail img {
    transform: scale(1.1);
}

.ra-related-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.ra-related-placeholder i {
    font-size: 48px;
    color: rgba(255, 215, 0, 0.3);
}

.ra-related-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.ra-tag-mod,
.ra-tag-windows,
.ra-tag-arm {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ra-tag-mod {
    background: linear-gradient(135deg, #ff00ff, #ff0080);
    color: #fff;
}

.ra-tag-windows {
    background: linear-gradient(135deg, #0078d4, #00bcf2);
    color: #fff;
}

.ra-tag-arm {
    background: linear-gradient(135deg, #00ff88, #00cc70);
    color: #000;
}

.ra-related-content {
    padding: 15px;
}

.ra-related-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    color: #f0f0f0;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ra-related-card:hover .ra-related-title {
    color: #FFD700;
}

.ra-related-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ra-related-stars {
    font-size: 14px;
    color: #FFD700;
    letter-spacing: 2px;
}

.ra-related-rating-value {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #00ff88;
    font-weight: bold;
}

.ra-related-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: rgba(240, 240, 240, 0.7);
    margin-top: 8px;
}

.ra-related-category i {
    color: #FFD700;
    font-size: 12px;
}

/* Responsive adjustments for related posts */
@media (max-width: 768px) {
    .ra-related-posts {
        margin: 30px 10px;
        padding: 20px 15px;
    }
    
    .ra-section-title {
        font-size: 7px;
        margin-bottom: 15px;
        gap: 6px;
        letter-spacing: 0;
        line-height: 1.2;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    .ra-section-title i {
        font-size: 10px;
        flex-shrink: 0;
    }
    
    .ra-section-title span {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .ra-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ra-related-thumbnail {
        height: 140px;
    }
    
    .ra-related-content {
        padding: 10px;
    }
    
    .ra-related-title {
        font-size: 8px;
        min-height: 35px;
    }
    
    .ra-related-stars {
        font-size: 11px;
    }
    
    .ra-related-rating-value {
        font-size: 13px;
    }
    
    .ra-related-category {
        font-size: 11px;
    }
    
    .ra-tag-mod,
    .ra-tag-windows,
    .ra-tag-arm {
        font-size: 6px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .ra-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ra-section-title {
        font-size: 6px;
        gap: 4px;
    }
    
    .ra-section-title i {
        font-size: 8px;
    }
}

/* ============================================================================
   RESPONSIVE FIXES - Add to end of style.css
   Modern breakpoint approach for all devices
   ============================================================================ */

/* Improved Breakpoint System:
   - 320px: Small phones (iPhone SE)
   - 375px: Standard phones (iPhone 12/13)
   - 412px: Large phones (Pixel, Samsung)
   - 480px: Extra large phones
   - 768px: Tablets portrait
   - 1024px: Tablets landscape
   - 1200px: Desktop
*/

/* ============================================================================
   PAGINATION FIXES - Works on ALL devices
   ============================================================================ */

.pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0 40px 0;
    clear: both;
    padding: 0 10px; /* Prevent edge overflow */
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* CRITICAL: Allow wrapping on small screens */
    max-width: 100%;
}

.page-numbers {
    background: rgba(240, 240, 240, 0.05);
    border: 2px solid #f0f0f0;
    padding: 10px 16px;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: #FFD700;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 45px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent squishing */
}

.page-numbers:hover,
.page-numbers.current {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
    transform: translateY(-2px);
}

/* Small phones (320px-374px) */
@media (max-width: 374px) {
    .pagination {
        gap: 5px;
    }
    
    .page-numbers {
        padding: 8px 10px;
        font-size: 7px;
        min-width: 35px;
    }
    
    /* Hide some page numbers, keep prev/next and current */
    .pagination .page-numbers:not(.prev):not(.next):not(.current) {
        display: none;
    }
    
    .pagination .page-numbers.current,
    .pagination .page-numbers.current + .page-numbers,
    .pagination .page-numbers.current - .page-numbers {
        display: inline-flex;
    }
}

/* Standard phones (375px-411px) */
@media (min-width: 375px) and (max-width: 411px) {
    .pagination {
        gap: 6px;
    }
    
    .page-numbers {
        padding: 8px 12px;
        font-size: 8px;
        min-width: 38px;
    }
}

/* Large phones (412px-479px) - Pixel 8 XL range */
@media (min-width: 412px) and (max-width: 479px) {
    .pagination {
        gap: 8px;
    }
    
    .page-numbers {
        padding: 9px 14px;
        font-size: 8px;
        min-width: 42px;
    }
}

/* Extra large phones and small tablets (480px-767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .pagination {
        gap: 10px;
    }
    
    .page-numbers {
        padding: 10px 15px;
        font-size: 9px;
        min-width: 44px;
    }
}

/* ============================================================================
   POPUP/MODAL FIXES - Centered on ALL devices
   ============================================================================ */

/* Search Popup - Universal centering */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.search-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center !important; /* Vertical center */
    justify-content: center !important; /* Horizontal center */
    animation: fadeIn 0.3s;
    padding: 20px;
    box-sizing: border-box;
}

.search-popup-content {
    background: linear-gradient(180deg, #1a1a1f, #000);
    border: 3px solid #f0f0f0;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s;
    margin: auto !important; /* Ensure centering */
    box-sizing: border-box;
}

.search-popup-content h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #FFD700;
    margin: 0 0 20px 0;
    text-align: center;
}

.search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
}

.search-close:hover {
    color: #FFD700;
}

.search-popup-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-popup-content input[type="search"] {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #f0f0f0;
    color: #f0f0f0;
    font-size: 16px;
    font-family: 'VT323', monospace;
    box-sizing: border-box;
}

.search-popup-content input[type="search"]:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.search-popup-content button[type="submit"] {
    background: #FFD700;
    border: none;
    color: #000;
    padding: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-popup-content button[type="submit"]:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

/* Category Modal (ra-modal) - Universal centering */
.ra-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center !important; /* Vertical center */
    justify-content: center !important; /* Horizontal center */
    padding: 20px;
    box-sizing: border-box;
}

.ra-modal.active {
    display: flex !important; /* Enable flexbox centering */
}

.ra-modal-box {
    background: rgba(26, 0, 51, 0.95);
    border: 3px solid #f0f0f0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto !important; /* Ensure centering */
    box-sizing: border-box;
    position: relative; /* Remove any absolute positioning */
}

/* Small phones (320px-374px) */
@media (max-width: 374px) {
    .search-popup {
        padding: 10px;
    }
    
    .search-popup-content {
        padding: 15px;
        max-width: 100%;
    }
    
    .search-popup-content h2 {
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    .search-popup-content input[type="search"] {
        padding: 12px;
        font-size: 14px;
    }
    
    .search-popup-content button[type="submit"] {
        padding: 12px;
        font-size: 9px;
    }
    
    .ra-modal {
        padding: 10px;
    }
    
    .ra-modal-box {
        max-width: 100%;
    }
    
    .ra-modal-header h3 {
        font-size: 9px;
    }
}

/* Standard phones (375px-411px) */
@media (min-width: 375px) and (max-width: 411px) {
    .search-popup-content {
        padding: 20px;
    }
    
    .search-popup-content h2 {
        font-size: 12px;
    }
    
    .ra-modal-header h3 {
        font-size: 10px;
    }
}

/* Large phones (412px-479px) - Pixel 8 XL range */
@media (min-width: 412px) and (max-width: 479px) {
    .search-popup-content {
        padding: 25px;
        max-width: 90%;
    }
    
    .search-popup-content h2 {
        font-size: 13px;
    }
    
    .ra-modal-box {
        max-width: 90%;
    }
    
    .ra-modal-header h3 {
        font-size: 11px;
    }
}

/* Extra large phones (480px-767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .search-popup-content {
        padding: 25px;
        max-width: 85%;
    }
    
    .search-popup-content h2 {
        font-size: 14px;
    }
    
    .ra-modal-box {
        max-width: 85%;
    }
    
    .ra-modal-header h3 {
        font-size: 11px;
    }
}

/* Tablets portrait (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .search-popup-content {
        max-width: 600px;
    }
    
    .ra-modal-box {
        max-width: 500px;
    }
}

/* ============================================================================
   GAMES GRID RESPONSIVE - Proper layout for all devices
   ============================================================================ */

.games-grid {
    display: grid;
    gap: 10px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Small phones (320px-374px) - 1 column */
@media (max-width: 374px) {
    .games-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
    }
}

/* Standard phones (375px-479px) - 2 columns */
@media (min-width: 375px) and (max-width: 479px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
    }
}

/* Large phones (480px-767px) - 2 columns */
@media (min-width: 480px) and (max-width: 767px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 15px !important;
    }
}

/* Tablets portrait (768px-1023px) - 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
}

/* Tablets landscape (1024px-1199px) - 3 columns */
@media (min-width: 1024px) and (max-width: 1199px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Desktop (1200px+) - 4 columns */
@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ============================================================================
   CATEGORY LIST IN POPUP - Responsive
   ============================================================================ */

.categories-list {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 374px) {
    .categories-list {
        max-height: 50vh;
    }
}

@media (min-width: 375px) and (max-width: 767px) {
    .categories-list {
        max-height: 55vh;
    }
}

/* ============================================================================
   FIX FOR LANDSCAPE ORIENTATION
   ============================================================================ */

@media (max-height: 600px) and (orientation: landscape) {
    .search-popup-content,
    .ra-modal-box {
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .categories-list {
        max-height: 40vh;
    }
}
/* =================================================================
   PROFESSIONAL RESPONSIVE FIXES - Based on Industry Standards
   ================================================================= */

/* PAGINATION - Industry Standard Flexbox Approach */
.pagination-wrapper {
    width: 100%;
    padding: 0 15px;
    margin: 30px 0 40px 0;
    clear: both;
}

.pagination {
    display: flex;
    flex-wrap: wrap; /* CRITICAL - allows wrapping on small screens */
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(240, 240, 240, 0.05);
    border: 2px solid #f0f0f0;
    padding: 10px 16px;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: #FFD700;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 44px; /* Touch target minimum */
    min-height: 44px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-numbers:hover,
.page-numbers.current {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
    transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .pagination {
        gap: 6px;
    }
    
    .page-numbers {
        padding: 8px 12px;
        font-size: 8px;
        min-width: 40px;
        min-height: 40px;
    }
}

/* MODALS/POPUPS - Industry Standard Flexbox Centering */
.search-popup,
.ra-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* When active, use flexbox for perfect centering */
.search-popup,
.ra-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    box-sizing: border-box;
}

.search-popup-content,
.ra-modal-box {
    background: rgba(26, 0, 51, 0.95);
    border: 3px solid #f0f0f0;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    position: relative;
    /* NO margin: auto or position tricks needed with flexbox parent */
}

.search-popup-content {
    background: linear-gradient(180deg, #1a1a1f, #000);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .search-popup,
    .ra-modal.active {
        padding: 15px;
    }
    
    .search-popup-content,
    .ra-modal-box {
        padding: 20px;
        max-width: 100%;
        width: 95%;
    }
}

/* GAMES GRID - Proper Responsive Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Specific breakpoints for control */
@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
}

@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
