/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme Colors */
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary-color: #6366f1;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-footer: #1e293b;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-header: rgba(15, 23, 42, 0.95);
    --bg-footer: #020617;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    
    --border-color: #334155;
    --border-light: #475569;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

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

/* Header with Banner Background */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/RCNEWLOLGO.png') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

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

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover span {
    background: rgba(255, 255, 255, 0.8);
}

.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: var(--spacing-md) 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.search-bar.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    gap: var(--spacing-sm);
}

#searchInput {
    flex: 1;
    background: var(--black-lighter);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    color: var(--white);
    font-size: 1rem;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-btn,
.search-close {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.search-btn:hover,
.search-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

/* Background with Logo and Vignette */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.logo-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: url('images/RCNEWLOLGO.png') no-repeat center center;
    background-size: contain;
    opacity: 0.03;
    animation: float 6s ease-in-out infinite;
}

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

.vignette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.3) 100%);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
}

/* Related Content Sidebar */
.related-content-sidebar {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    z-index: 100;
    pointer-events: none;
}

.related-content-box,
.roblox-question-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.related-content-box::before,
.roblox-question-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    z-index: -1;
}

.related-content-box h3,
.roblox-question-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-link:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.related-link-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.related-link span {
    font-weight: 500;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.option-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.option-btn.selected {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

/* Admin Modal Styles */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.admin-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.admin-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.admin-modal-body {
    padding: 1.5rem;
}

.admin-modal-body .admin-section {
    margin-bottom: 2rem;
}

.admin-modal-body .admin-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.admin-modal-body .admin-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/RCNEWLOLGO.png');
    background-size: 40% auto;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px) brightness(0.8) contrast(1.2);
    opacity: 0.2;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Dark theme adjustments for hero background */
[data-theme="dark"] .hero::before {
    filter: blur(3px) brightness(1.2) contrast(0.8);
    opacity: 0.15;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.news-card.featured {
    grid-column: span 2;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

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

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-controls {
    text-align: center;
    margin-top: 2rem;
}

.read-more-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.read-more-btn:active {
    transform: translateY(0);
}

/* Individual Read More buttons for news cards */
.read-more-btn-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    margin-top: 1rem;
}

.read-more-btn-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.read-more-btn-card:active {
    transform: translateY(0);
}

.news-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.news-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.news-details ul {
    list-style: none;
    padding-left: 0;
}

.news-details li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.news-details li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Games Section */
.games-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    object-position: center;
}

.game-info {
    flex: 1;
}

.game-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.game-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
}

.game-status.active {
    background: var(--success-color);
    color: white;
}

.game-status.inactive {
    background: var(--text-muted);
    color: white;
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-links {
    display: flex;
    gap: 0.75rem;
}

.game-links .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Community Section */
.community-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.comment-form-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.comment-form-container h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.comments-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.comments-container h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Admin Section */
.admin-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.admin-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.admin-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.admin-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.submission {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.submission:last-child {
    border-bottom: none;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.submission-name {
    font-weight: 600;
    color: var(--text-primary);
}

.submission-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.submission-content {
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
    margin-top: 0.5rem;
}

.submission-email,
.submission-subject {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-actions .btn {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--bg-footer);
    color: var(--text-inverse);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.footer-logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-email {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.contact-email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-email a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-inverse);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    transform: translateX(400px);
    transition: var(--transition);
    opacity: 1;
    visibility: visible;
}

.notification.show {
    transform: translateX(0);
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
    visibility: hidden;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--black-lighter);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-purple-lg);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-header h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.modal-close:hover {
    color: var(--white);
    background: rgba(139, 92, 246, 0.1);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* Game Details Modal */
.game-details {
    color: var(--white);
}

.game-details h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-details p {
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.stat-value {
    font-size: 1.1rem;
    color: var(--primary-purple);
    font-weight: 600;
}

.game-features {
    margin-bottom: var(--spacing-lg);
}

.game-features ul {
    list-style: none;
    padding: 0;
}

.game-features li {
    color: var(--gray-light);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.game-features li::before {
    content: '✓';
    color: var(--primary-purple);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.game-details .game-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.game-details .game-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Code Links Modal */
.code-links {
    color: var(--white);
}

.code-links h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.links-intro p {
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.code-sites {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.code-site-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--white);
    transition: all var(--transition-normal);
}

.code-site-link:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    transform: translateX(5px);
    box-shadow: var(--shadow-purple);
}

.site-icon {
    font-size: 1.5rem;
    color: var(--primary-purple);
    transition: color var(--transition-normal);
}

.code-site-link:hover .site-icon {
    color: var(--white);
}

.site-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.site-name {
    font-weight: 600;
    color: var(--white);
}

.site-desc {
    font-size: 0.9rem;
    color: var(--gray);
    transition: color var(--transition-normal);
}

.code-site-link:hover .site-desc {
    color: var(--gray-light);
}

.site-arrow {
    font-size: 1.2rem;
    color: var(--gray);
    transition: all var(--transition-normal);
}

.code-site-link:hover .site-arrow {
    color: var(--white);
    transform: translateX(3px);
}

.code-tips {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.code-tips h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.code-tips ul {
    list-style: none;
    padding: 0;
}

.code-tips li {
    color: var(--gray-light);
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
    position: relative;
    font-size: 0.9rem;
}

.code-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero::before {
        background-size: 70% auto;
        opacity: 0.35;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    .community-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .admin-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .game-links {
        flex-direction: column;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .related-content-sidebar {
        position: static;
        transform: none;
        width: 100%;
        margin: 2rem 0;
        order: -1;
    }
    
    .related-content-box,
    .roblox-question-box {
        margin-bottom: 1rem;
    }
    
    .related-link {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .related-link-img {
        width: 28px;
        height: 28px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.hidden { display: none; }
.visible { display: block; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Legal Pages Styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 3rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-content li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.legal-actions .btn {
    min-width: 120px;
}

/* Contact Page Styles */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.contact-form-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.contact-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-faq h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Selection styles */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Game Page Styles */
.game-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2000;
    overflow-y: auto;
    display: none;
}

.game-page.show {
    display: block;
}

.game-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.game-page-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.game-page-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.game-page-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.game-page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.back-to-hub-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    font-size: 0.875rem;
}

.back-to-hub-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.game-page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.game-page-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.game-page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-page-title p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.game-page-content {
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Game Detail Sections */
.game-detail-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.game-detail-section:nth-child(even) {
    background: var(--bg-secondary);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-medium);
}

.game-overview {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.game-overview h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.game-overview h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

.game-overview p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.game-overview ul {
    list-style: none;
    padding: 0;
}

.game-overview li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.game-overview li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(102, 126, 234, 0.3);
}

/* Codes Section */
.codes-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.codes-section h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.codes-note {
    color: #444;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.codes-controls {
    margin-bottom: 1rem;
}

.copy-all-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.copy-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(102, 126, 234, 0.05);
}

.code-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(102, 126, 234, 0.1);
}

.code-item.expired {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.code-item.expired .code {
    text-decoration: line-through;
    color: #999;
}

.code-item.expired .reward {
    color: #999;
}

.code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(102, 126, 234, 0.2);
}

.reward {
    flex: 1;
    margin: 0 1rem;
    color: #2a2a2a;
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.copy-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.copy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Expired Section */
.expired-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(102, 126, 234, 0.05);
}

.expired-section h2 {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.expired-section p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* News Cards */
.news-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(102, 126, 234, 0.15);
}

/* Game Cards */
.game-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(102, 126, 234, 0.15);
}

/* Game Page Header */
.game-page-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.1);
}

/* Back to Hub Button */
.back-to-hub-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.back-to-hub-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 25px rgba(102, 126, 234, 0.15);
}

/* Section Headers */
.section-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Question Modal */
.question-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.option-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(102, 126, 234, 0.05);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(102, 126, 234, 0.1);
}

/* Game Pages Background with Blur and Vignette */
#astdx-page,
#goalbound-page,
#rivals-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    position: relative;
    min-height: 100vh;
}

#astdx-page::before,
#goalbound-page::before,
#rivals-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.3) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Redeem Section - Fixed Box Styling */
.redeem-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.redeem-section h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.redeem-section ol {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.redeem-section li {
    counter-increment: step-counter;
    color: #2a2a2a;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
    line-height: 1.6;
    font-weight: 500;
}

.redeem-section li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Tips Section - Fixed Box Styling */
.tips-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tips-section h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tips-section ul {
    list-style: none;
    padding: 0;
}

.tips-section li {
    color: #2a2a2a;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-weight: 500;
}

.tips-section li::before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Make ASTDX, Goalbound, and Rivals backgrounds cover the entire viewport */
#astdx-page.game-page,
#goalbound-page.game-page,
#rivals-page.game-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  z-index: 2000;
  overflow-y: auto;
  background: var(--bg-primary);
  display: none;
}
#astdx-page .game-page-background,
#goalbound-page .game-page-background,
#rivals-page .game-page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
#astdx-page .game-page-content,
#goalbound-page .game-page-content,
#rivals-page .game-page-content {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow-y: auto;
}
#astdx-page .game-page-bg-image,
#goalbound-page .game-page-bg-image,
#rivals-page .game-page-bg-image {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

/* Game Gallery Styles */
.game-search {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem auto;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border: 1.5px solid var(--color-border, #ccc);
  border-radius: 8px;
  background: var(--color-bg, #fff);
  color: var(--color-text, #222);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: border-color 0.2s;
}
.game-search:focus {
  border-color: var(--color-primary, #007bff);
  outline: none;
}

.games-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.game-card-gallery {
  background: var(--color-card-bg, #fff);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 1.5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
}
.game-card-gallery:hover, .game-card-gallery:focus {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}

.game-card-gallery .game-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #f5f5f5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: filter 0.2s;
}

.game-card-gallery .game-title {
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary, #007bff);
  text-align: center;
}

.game-card-gallery .game-desc {
  font-size: 1rem;
  color: var(--color-text, #222);
  text-align: center;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.bookmark-star {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.6rem;
  color: var(--color-star-inactive, #bbb);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.bookmark-star.active {
  color: var(--color-star-active, #ffd700);
  text-shadow: 0 0 6px #ffd70055;
}

/* See More Games Button */
.see-more-games-btn {
  display: block;
  width: 100%;
  margin: 1.5rem 0 0 0;
  padding: 0.75rem 0;
  background: var(--color-primary, #007bff);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.18s, box-shadow 0.18s;
}
.see-more-games-btn:hover, .see-more-games-btn:focus {
  background: var(--color-primary-dark, #0056b3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

/* High Contrast for Light/Dark Modes */
body.light-theme {
  --color-bg: #fff;
  --color-text: #181818;
  --color-card-bg: #f9f9f9;
  --color-border: #d1d5db;
  --color-primary: #007bff;
  --color-primary-dark: #0056b3;
  --color-star-inactive: #bbb;
  --color-star-active: #ffd700;
}
body.dark-theme {
  --color-bg: #181a1b;
  --color-text: #f1f1f1;
  --color-card-bg: #23272a;
  --color-border: #333;
  --color-primary: #4ea1ff;
  --color-primary-dark: #1a4a7a;
  --color-star-inactive: #444;
  --color-star-active: #ffd700;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .games-gallery {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .game-search {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Game Section Box Styles */
.game-section-box {
  background: var(--color-card-bg, #fff);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}
.codes-group-box {
  background: #f3f4f7;
  border-radius: 18px;
  padding: 1.5rem 1.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  flex-direction: column;
}
body.dark-theme .codes-group-box {
  background: #232136;
}
.codes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.code-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
}
.code-item .code {
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  background: #e7e4f7;
  color: #4a2e8e;
  border-radius: 6px;
  padding: 0.18em 0.7em;
  letter-spacing: 0.03em;
  margin-right: 0.2em;
}
body.dark-theme .code-item .code {
  background: #2a1746;
  color: #e7e4f7;
}
.copy-btn {
  background: var(--color-primary, #7b4fff);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.2em 0.9em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.2em;
  transition: background 0.18s;
  outline: none;
}
.copy-btn:hover:not(:disabled), .copy-btn:focus:not(:disabled) {
  background: var(--color-primary-dark, #4a2e8e);
}
.copy-btn.expired {
  background: #bbb;
  color: #fff;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.7;
}
.reward {
  color: #888;
  font-size: 0.98em;
  font-weight: 400;
}
.codes-note {
  color: #b7a6e7;
  font-size: 0.98em;
  margin-top: 0.5em;
}
@media (max-width: 700px) {
  .game-section-box, .codes-group-box {
    padding: 1.1rem 0.7rem;
  }
}

/* --- Enhanced How to Redeem & Pro Tips --- */
.redeem-section-enhanced, .tips-section-enhanced {
  position: relative;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #f8f6ff 60%, #e9e3fa 100%);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.10);
  padding: 2.5rem 2rem 2rem 2rem;
  border: 2px solid #8b5cf6;
  overflow: hidden;
}
[data-theme="dark"] .redeem-section-enhanced, [data-theme="dark"] .tips-section-enhanced {
  background: linear-gradient(135deg, #1e1933 60%, #2a2040 100%);
  border-color: #a78bfa;
}
.section-accent {
  display: flex;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 1rem 1rem 0 0;
  margin: -2.5rem -2rem 1.5rem -2rem;
  background: linear-gradient(90deg, #8b5cf6 60%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.10);
}
.redeem-accent {
  background: linear-gradient(90deg, #8b5cf6 60%, #6366f1 100%);
}
.tips-accent {
  background: linear-gradient(90deg, #f59e0b 60%, #8b5cf6 100%);
}
.accent-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.15));
}
/* Redeem Steps Grid */
.redeem-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  margin-top: 1rem;
}
@media (max-width: 700px) {
  .redeem-steps-grid {
    grid-template-columns: 1fr;
  }
}
.redeem-step {
  display: flex;
  align-items: flex-start;
  font-size: 1.08rem;
  background: rgba(139, 92, 246, 0.07);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(139, 92, 246, 0.04);
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #8b5cf6;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-right: 1rem;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.10);
}
.highlight {
  color: #f59e0b;
  font-weight: 700;
  text-shadow: 0 0 4px #f59e0b33;
}
/* Pro Tips List */
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.tip-item {
  display: flex;
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.07);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 1.08rem;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.04);
  position: relative;
}
.tip-badge {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  margin-right: 1rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.10);
  letter-spacing: 1px;
}
[data-theme="dark"] .tip-badge {
  background: #fbbf24;
  color: #1e1933;
}
.tips-list .highlight {
  color: #8b5cf6;
  font-weight: 700;
  text-shadow: 0 0 4px #8b5cf633;
}

.game-gallery-section-glow {
  background: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
}
[data-theme="dark"] .game-gallery-section-glow {
  background: none;
  border-color: none;
  box-shadow: none;
}

/* Animated RGB Glow for Game Cards */
.game-card {
  position: relative;
  border-radius: 1.1rem;
  box-shadow: 0 0 16px 0 rgba(139,92,246,0.18);
  border: 2px solid #fff;
  background: #fff;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
  z-index: 1;
  animation: gallery-glow 3s linear infinite;
}
[data-theme="dark"] .game-card {
  background: #18122b;
  border-color: #222;
}
@keyframes gallery-glow {
  0% {
    box-shadow: 0 0 8px 0 #8b5cf622, 0 0 16px 0 #6366f122, 0 0 0 0 #f59e0b11;
  }
  50% {
    box-shadow: 0 0 12px 0 #6366f122, 0 0 20px 0 #8b5cf622, 0 0 0 0 #f59e0b22;
  }
  100% {
    box-shadow: 0 0 8px 0 #8b5cf622, 0 0 16px 0 #6366f122, 0 0 0 0 #f59e0b11;
  }
}

#games {
  scroll-margin-top: 100px;
}

/* === Custom Game Gallery Header Button === */
.nav-game-gallery-btn {
    background: linear-gradient(90deg, #8b5cf6 60%, #6366f1 100%);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem; /* Reduced from 1.05rem */
    padding: 0.35rem 0.9rem; /* Reduced padding */
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(139,92,246,0.18), 0 0 8px #8b5cf6;
    cursor: pointer;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    outline: none;
    position: relative;
    z-index: 1;
    height: 2.2rem; /* Match nav height */
    min-width: 0;
}

.nav-game-gallery-btn:hover, .nav-game-gallery-btn:focus {
    background: linear-gradient(90deg, #a78bfa 40%, #6366f1 100%);
    box-shadow: 0 4px 18px 2px #8b5cf6, 0 0 16px #fff, 0 0 8px #6366f1;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

body.light-theme .nav-game-gallery-btn {
    background: linear-gradient(90deg, #8b5cf6 60%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(139,92,246,0.18), 0 0 8px #8b5cf6;
}

body.light-theme .nav-game-gallery-btn:hover, body.light-theme .nav-game-gallery-btn:focus {
    background: linear-gradient(90deg, #a78bfa 40%, #6366f1 100%);
    box-shadow: 0 4px 18px 2px #8b5cf6, 0 0 16px #fff, 0 0 8px #6366f1;
}

body.dark-theme .nav-game-gallery-btn {
    background: linear-gradient(90deg, #7c3aed 60%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(139,92,246,0.28), 0 0 8px #8b5cf6;
}

body.dark-theme .nav-game-gallery-btn:hover, body.dark-theme .nav-game-gallery-btn:focus {
    background: linear-gradient(90deg, #a78bfa 40%, #6366f1 100%);
    box-shadow: 0 4px 18px 2px #8b5cf6, 0 0 16px #fff, 0 0 8px #6366f1;
}
