/* ============================================
   KOMPLETTES STYLE.CSS - DEFENETIV NETWORK
   Optimiert für Semantik, Performance & Accessibility
   ============================================ */

/* 1. VARIABLEN & THEMES (OPTIMIERT FÜR PREMIUM-LOOK) */
:root {
    --transition-speed: 0.3s;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-color: rgba(255, 255, 255, 0.08); /* Etwas subtiler für edleren Look */
    --font-heading: 'Segoe UI', system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="nexus"] { 
    --bg-primary: #050508; --bg-secondary: #12121a; --bg-tertiary: #1e1e2e; 
    --accent: #8a2be2; --accent-secondary: #ccff00; --accent-hover: #9d4edd; 
    --accent-glow: rgba(138, 43, 226, 0.4); 
    --text-primary: #ffffff; --text-secondary: #b8b8d0; 
}
[data-theme="industrial"] { 
    --bg-primary: #0a0a0a; --bg-secondary: #141414; --bg-tertiary: #1f1f1f; 
    --accent: #ff5500; --accent-secondary: #ffb700; /* Amber statt Weiß für besseren Kontrast */
    --accent-hover: #ff7700; 
    --accent-glow: rgba(255, 85, 0, 0.4); 
    --text-primary: #f0f0f0; --text-secondary: #a0a0a0; 
}
[data-theme="emerald"] { 
    --bg-primary: #04100b; --bg-secondary: #0d1f17; --bg-tertiary: #142e22; 
    --accent: #10b981; --accent-secondary: #6ee7b7; /* Helles Mint statt Rost für modernen Look */
    --accent-hover: #059669; 
    --accent-glow: rgba(16, 185, 129, 0.4); 
    --text-primary: #f4f1de; --text-secondary: #a7c4b5; 
}

/* 2. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { 
    background-color: var(--bg-primary); 
    color: var(--text-primary); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    transition: background-color var(--transition-smooth), color var(--transition-smooth); 
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.5px; line-height: 1.2; }

/* WICHTIG: :not(.btn) verhindert, dass Button-Links von Text-Link-Regeln zerstört werden */
a:not(.btn) { text-decoration: none; color: inherit; transition: color var(--transition-speed); }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* Accessibility: Sichtbarer Fokus für Tastaturnutzer */
:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* 3. HEADER & NAV */
.site-header { background-color: var(--bg-secondary); border-bottom: 2px solid var(--accent); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); position: sticky; top: 0; z-index: 100; }
.header-container { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.logo-icon { font-size: 1.8rem; filter: drop-shadow(0 0 8px var(--accent-glow)); }

.logo:hover { 
    color: var(--accent-secondary) !important; 
    text-shadow: 0 0 15px var(--accent-glow), 0 0 30px var(--accent-glow);
    transform: scale(1.02);
}

.main-nav { flex: 1; }
.nav-list { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.nav-link { padding: 0.6rem 1.2rem; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative; border-radius: 2px; transition: all var(--transition-speed); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--accent-secondary); transition: width var(--transition-speed); box-shadow: 0 0 8px var(--accent-glow); }

.nav-link:hover, .nav-link.active { 
    color: var(--accent-secondary) !important; 
    text-shadow: 0 0 8px var(--accent-glow);
}
.nav-link:hover::after, .nav-link.active::after { 
    width: 100% !important; 
    box-shadow: 0 0 10px var(--accent-secondary), 0 0 20px var(--accent-glow);
}

/* 4. HEADER ACTIONS & DROPDOWN */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.theme-dropdown { position: relative; }

.theme-dropdown-btn { 
    display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; 
    background: var(--bg-tertiary); border: 2px solid var(--accent); 
    color: var(--text-primary); font-weight: 700; font-size: 0.9rem; 
    text-transform: uppercase; border-radius: 2px; transition: all var(--transition-speed);
}

.theme-dropdown-btn:hover { 
    background: var(--accent-secondary) !important; 
    color: var(--bg-primary) !important; 
    border-color: var(--accent-secondary) !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

.theme-dropdown-btn:active { transform: scale(0.98); }
.dropdown-arrow { font-size: 0.7rem; }

.theme-dropdown-menu { 
    position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 220px; 
    background: var(--bg-secondary); border: 2px solid var(--accent); border-radius: 4px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; 
    transform: translateY(-10px); transition: all var(--transition-speed); z-index: 200; 
}
.theme-dropdown-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.theme-option { 
    display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.9rem 1.2rem; 
    background: transparent; color: var(--text-primary); font-weight: 600; 
    text-align: left; border-bottom: 1px solid var(--border-color); transition: all var(--transition-speed);
}
.theme-option:last-child { border-bottom: none; }

.theme-option:hover { 
    background: var(--accent) !important; color: white !important;
    padding-left: 1.5rem !important; box-shadow: inset 4px 0 0 var(--accent-secondary); 
}
.theme-option:active { transform: scale(0.98); }

.theme-option.active { 
    background: var(--accent-secondary) !important; color: var(--bg-primary) !important;
    box-shadow: inset 4px 0 0 var(--accent);
}

.theme-color-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-primary); flex-shrink: 0; }

/* ============================================
   5. BUTTONS - KOMPLETT ÜBERARBEITET & ABGESICHERT
   ============================================ */

.btn { 
    display: inline-block; padding: 0.7rem 1.5rem; font-weight: 800; font-size: 0.9rem; 
    text-transform: uppercase; letter-spacing: 0.5px; border-radius: 2px; 
    transition: all var(--transition-speed); text-align: center; cursor: pointer; 
    border: 2px solid transparent; text-decoration: none !important; line-height: 1.5;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* PRIMARY BUTTON */
.btn-primary { 
    background: var(--accent); color: var(--btn-text); border-color: var(--accent); 
}

.btn-primary:hover { 
    background: var(--accent-hover); border-color: var(--accent-secondary);
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
    color: var(--btn-text) !important; 
}

.btn-primary:active { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

/* OUTLINE BUTTON */
.btn-outline { 
    background: transparent; color: var(--accent); border-color: var(--accent); 
}

.btn-outline:hover { 
    background: var(--accent-secondary); color: var(--bg-primary) !important;
    border-color: var(--accent-secondary); box-shadow: 0 0 20px var(--accent-glow);
}

.btn-outline:active { background: var(--accent); color: var(--btn-text) !important; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.full-width { width: 100%; }

.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Mobile Menu Button */
.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--accent); padding: 0.5rem; transition: all var(--transition-speed); }
.mobile-menu-btn:hover { color: var(--accent-secondary); text-shadow: 0 0 10px var(--accent-glow); }
.mobile-menu-btn:active { transform: scale(0.95); }

/* Close Modal Button */
.close-modal { 
    position: absolute; top: 12px; right: 12px; font-size: 1.8rem; color: var(--text-secondary); 
    font-weight: 900; line-height: 1; transition: all var(--transition-speed); z-index: 10;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.close-modal:hover { color: var(--accent-secondary); transform: rotate(90deg); background: var(--bg-tertiary); }
.close-modal:active { transform: rotate(90deg) scale(0.9); }

/* Tab Buttons */
.tab-btn { flex: 1; min-width: 140px; }
.tab-btn.active { background: var(--accent); color: var(--btn-text); border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

/* Footer Link Button */
.btn-link {
    background: none; border: none; color: var(--text-secondary); font: inherit; padding: 0;
    cursor: pointer; text-align: left; transition: all var(--transition-speed); display: inline-block;
    text-transform: none; font-weight: 400; letter-spacing: 0; text-decoration: none !important;
}
.btn-link:hover { color: var(--accent-secondary) !important; text-shadow: 0 0 8px var(--accent-glow); transform: translateX(4px); }
.btn-link:active { transform: translateX(2px); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* 6. MAIN CONTENT & SECTIONS */
.content-area { flex: 1; max-width: 1400px; width: 100%; margin: 0 auto; padding: 3rem 2rem; }
.page-section { padding: 2rem 0; }

.page-section > h2 { color: var(--accent); font-size: 2.5rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 3px solid var(--accent); padding-bottom: 0.75rem; }
.page-section h3 { color: var(--accent-secondary); font-size: 1.6rem; margin: 2rem 0 1rem; text-transform: uppercase; }
.page-section h4 { color: var(--text-primary); font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }

.page-section p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; }
.page-section ul { margin: 1rem 0 1.5rem 1.5rem; list-style: disc; }
.page-section li { color: var(--text-secondary); margin-bottom: 0.5rem; line-height: 1.6; }
.page-section strong { color: var(--text-primary); }

/* KORRIGIERT: :not(.btn) schützt Buttons davor, wie normale Text-Links behandelt zu werden */
.page-section a:not(.btn) { color: var(--accent); text-decoration: underline; }
.page-section a:not(.btn):hover { color: var(--accent-secondary); }


.hero-section { 
    position: relative;
    text-align: center; 
    padding: 5rem 2rem; 
    background-color: var(--bg-secondary); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    margin-bottom: 3rem; 
    overflow: hidden;
    /* Subtiles Grid-Pattern */
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Dynamischer Glow, der sich an das Theme anpasst */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; text-shadow: 0 0 30px var(--accent-glow); border: none; }
.hero-content p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }


.features-grid, .games-grid, .members-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.content-card, .game-card, .member-card { background: var(--bg-secondary); border: 2px solid var(--border-color); border-radius: 4px; padding: 2rem; text-align: center; transition: all var(--transition-speed); display: flex; flex-direction: column; align-items: center; }

.content-card:hover, .game-card:hover, .member-card:hover {
    border-color: var(--accent-secondary) !important; transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow), 0 0 15px var(--accent-secondary);
}

.game-icon { font-size: 3.5rem; margin-bottom: 1rem; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.game-info h3, .member-name { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1.3rem; }
.game-info p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1rem; flex-grow: 1; }
.member-role { color: var(--accent-secondary); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }

.member-avatar { 
    width: 80px; height: 80px; background: var(--accent); color: white; font-size: 2rem; font-weight: 900; 
    display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 1rem; 
    border: 3px solid var(--accent-secondary); overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.status-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-top: auto; }
.status-badge.online { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid #2ecc71; }
.status-badge.offline { background: rgba(150, 150, 150, 0.2); color: #999; border: 1px solid #999; }

.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat-box { background: var(--bg-secondary); border: 2px solid var(--accent); border-radius: 4px; padding: 2rem 1rem; text-align: center; position: relative; overflow: hidden; }
.stat-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent-secondary); }

.stat-box:hover {
    border-color: var(--accent-secondary) !important; box-shadow: 0 0 20px var(--accent-glow), 0 0 10px var(--accent-secondary);
    transform: translateY(-3px); transition: all 0.3s ease;
}

.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--accent); font-family: var(--font-heading); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { color: var(--text-secondary); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }

.legal-section { max-width: 900px; margin: 0 auto; }
.legal-box h2 { color: var(--accent); font-size: 2.5rem; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 3px solid var(--accent); padding-bottom: 0.75rem; }
.legal-box h3 { color: var(--accent-secondary); font-size: 1.4rem; margin: 2rem 0 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.legal-box h4 { color: var(--text-primary); font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }
.legal-box p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; word-break: break-word; }
.legal-box strong { color: var(--text-primary); }

/* 7. FOOTER */
.site-footer { background: #000000; border-top: 3px solid var(--accent); padding: 3rem 2rem 1.5rem; margin-top: auto; }
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--accent); font-size: 1.1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; transition: all var(--transition-speed); display: inline-block; text-align: left; word-break: break-word; }

.footer-col a:hover, .footer-col .btn-link:hover { 
    color: var(--accent-secondary) !important; text-shadow: 0 0 8px var(--accent-glow); transform: translateX(4px);
}

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

/* 8. MODALS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 1rem; }
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--bg-secondary); padding: 2.5rem; border-radius: 4px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; border: 3px solid var(--accent); box-shadow: 0 0 40px var(--accent-glow), 10px 10px 0px rgba(0, 0, 0, 0.5); position: relative; animation: slideUp 0.3s ease; }
.modal-large { max-width: 650px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.modal-title { text-align: center; margin-bottom: 0.5rem; color: var(--accent); text-transform: uppercase; font-size: 1.8rem; letter-spacing: 1px; }
.modal-intro { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.95rem; }
.modal-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 700; font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input { width: 100%; padding: 0.9rem; border: 2px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; border-radius: 2px; }
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.modal-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border-color); text-align: center; font-size: 0.9rem; color: var(--text-secondary); }

.donation-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center; }
.donation-tab { display: none; }
.donation-tab.active { display: block; animation: fadeIn 0.3s ease; }
.qr-section { text-align: center; padding: 1.5rem; background: var(--bg-tertiary); border: 2px solid var(--accent); border-radius: 4px; }
.qr-section h4 { color: var(--accent-secondary); margin-bottom: 1.5rem; text-transform: uppercase; font-size: 1.1rem; }
.qr-image { width: 250px; height: 250px; object-fit: contain; background: white; padding: 12px; border: 2px solid var(--bg-primary); display: block; margin: 0 auto 1.5rem; border-radius: 4px; }
.qr-info { padding: 1.2rem; background: var(--bg-primary); border-left: 4px solid var(--accent); text-align: left; border-radius: 2px; }
.qr-info-title { color: var(--text-primary); font-weight: 700; margin-bottom: 0.5rem; font-size: 0.95rem; }
.qr-info p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.highlight { color: var(--accent-secondary); }
.donation-box { padding: 1.5rem; background: var(--bg-tertiary); border: 2px solid var(--accent); border-radius: 4px; text-align: center; }
.donation-box h3 { color: var(--accent-secondary); margin-bottom: 0.5rem; }
.donation-box > p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.other-method { margin-bottom: 1rem; }
.other-method h4 { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1rem; }
.other-method .btn { margin-top: 0.5rem; }


/* Server IP Copy Box Styling */
.ip-copy-box {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: var(--bg-primary);
    border: 1px dashed var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.ip-copy-box:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-style: solid;
    box-shadow: 0 0 15px var(--accent-glow);
}
.ip-copy-box .ip-icon {
    font-size: 1.1rem;
    margin-left: 0.5rem;
}


.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-secondary); /* Nimmt automatisch die Theme-Farbe! */
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}



.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-track { background: var(--bg-primary); }
.modal::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.modal::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* Sicherheitsnetz für Buttons innerhalb von Content-Cards */
.content-card .btn {
    margin-top: 1rem;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   NUKLEARER FIX: Discord Button Hover
   Höchste Spezifität + Hardcoded Farben
   ========================================== */
.page-section .content-card a.btn.btn-primary:hover,
.hero-section a.btn.btn-primary:hover {
    color: #ffffff !important;
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-secondary) !important;
    text-decoration: none !important;
}

/* 9. RESPONSIVE (MOBILE) */
@media (max-width: 900px) {
    .header-container { padding: 1rem; }
    .main-nav { order: 3; width: 100%; display: none; }
    .main-nav.mobile-open { display: block; }
    .nav-list { flex-direction: column; gap: 0.25rem; }
    .nav-link { display: block; text-align: center; }
    .mobile-menu-btn { display: block; }
    .header-actions { gap: 0.5rem; }
    .btn-login { display: none; }
    .theme-label { display: none; }
}

@media (max-width: 600px) {
    .content-area { padding: 2rem 1rem; }
    .modal { padding: 1.5rem; }
    .modal-title { font-size: 1.4rem; }
    .qr-image { width: 200px; height: 200px; }
    .tab-btn { min-width: 100px; font-size: 0.8rem; padding: 0.5rem 0.8rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .page-section > h2, .legal-box h2 { font-size: 1.8rem; }
    .page-section h3, .legal-box h3 { font-size: 1.3rem; }
    .hero-content h1 { font-size: 2rem; }
    .stat-number { font-size: 2rem; }
    .content-card, .game-card, .member-card { padding: 1.5rem; }
    .footer-col a, .footer-col .btn-link { font-size: 0.85rem; word-break: break-word; }
    .footer-col h4 { font-size: 0.95rem; }
    .nav-link { font-size: 0.85rem; padding: 0.5rem 0.8rem; }

    .header-actions { flex-wrap: wrap; }
    .theme-dropdown { width: auto !important; order: 0; margin-bottom: 0; }
    .theme-dropdown-btn { width: auto !important; padding: 0.6rem 1rem !important; justify-content: center !important; }
    .theme-dropdown-menu {
        position: fixed !important; top: 130px !important; left: 10px !important; right: auto !important;
        width: auto !important; min-width: 180px !important; max-width: calc(100vw - 20px) !important;
        z-index: 9999 !important; opacity: 1 !important; visibility: visible !important; transform: none !important;
        background: var(--bg-secondary) !important; border: 2px solid var(--accent) !important;
        border-radius: 4px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important; display: none !important;
    }
    .theme-dropdown-menu.is-open { display: block !important; }
    .theme-option { width: 100% !important; padding: 0.8rem 1.2rem !important; font-size: 1rem !important; font-weight: 600 !important; text-align: left !important; white-space: nowrap !important; border-bottom: 1px solid var(--border-color) !important; }
    .theme-option:last-child { border-bottom: none !important; }
    .theme-label { display: none !important; }
}