/* ==========================================================================
   BOAR.GG ANARCHY CORE STYLES - DEFINITIVE EDITION
   Thema: Dark / Glitch / Digital Decay
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS & ASSETS IMPORT
   -------------------------------------------------------------------------- */

/* Haupt-Pixel-Font (Minecraft Ten v2) */
@font-face {
    font-family: 'MinecraftTenv2';
    src: url('/fonts/Minecraft-Tenv2.woff2') format('woff2'),
         url('/fonts/Minecraft-Tenv2.woff') format('woff'),
         url('/fonts/Minecraft-Tenv2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Fallback-Pixel-Font */
@font-face {
    font-family: 'MinecraftTen';
    src: url('/fonts/MinecraftTen.woff') format('woff'),
         url('/fonts/MinecraftTen.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. VARIABLES (THEME CONFIG)
   -------------------------------------------------------------------------- */
:root {
    /* Main Colors */
    --anarchy-red: #ff3333;
    --anarchy-red-dark: #8b0000;
    --anarchy-dark: #0a0a0a;
    --anarchy-black: #050505;
    --anarchy-gray: #1f1f1f;
    --anarchy-surface: #111111;
    --anarchy-border: #333333;
    
    /* Accents & Status */
    --anarchy-yellow: #f7a300;     /* Gold/Admin */
    --anarchy-green: #00ff41;      /* Online/Success */
    --anarchy-blue: #00bfff;       /* Diamond/Travel */
    
    /* Glitch Effects */
    --glitch-cyan: #00fff9;
    --glitch-magenta: #ff00c1;
    
    /* Typography */
    --text-color: #e0e0e0;
    --text-muted: #888888;
    --font-main: 'Inter', system-ui, sans-serif;
    --font-pixel: 'MinecraftTenv2', 'MinecraftTen', 'VT323', monospace;
}

/* --------------------------------------------------------------------------
   3. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--anarchy-red) var(--anarchy-black);
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--anarchy-dark);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Zwingend für Sticky Footer */
    overflow-x: hidden;
    position: relative;
}

/* Das Scanline-Gimmick: Ein wandernder Lichtstreifen */
.scanline-effect {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.03) 50%, transparent);
    background-size: 100% 20px;
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 9998;
}

@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* Auswahl-Farbe (Selection) */
::selection {
    background: var(--anarchy-red);
    color: #000;
    text-shadow: none;
}

/* Links Global */
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--anarchy-red);
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
}

/* --------------------------------------------------------------------------
   4. BACKGROUND LAYERS (NETHERRACK & NOISE)
   -------------------------------------------------------------------------- */

/* Layer 1: Netherrack + Dark Gradient Vignette */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* UPDATE: Dein neuer Netherrack Link */
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.98)),
                      url('/imgs/netherrack_bg.png');
    background-size: 128px; /* Kacheln für schärfere Textur */
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

/* Layer 2: TV Static / Noise Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
                url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 100% 2px, auto;
    opacity: 0.07;
    pointer-events: none;
    z-index: 9999;
}

/* --------------------------------------------------------------------------
   5. CUSTOM SCROLLBAR (WEBKIT)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--anarchy-black); }
::-webkit-scrollbar-thumb {
    background-color: var(--anarchy-red);
    border: 2px solid var(--anarchy-black);
    border-radius: 0; /* Eckig passt besser zu Minecraft */
}
::-webkit-scrollbar-thumb:hover { background-color: #fff; }

/* --------------------------------------------------------------------------
   6. TYPOGRAPHY UTILS
   -------------------------------------------------------------------------- */
h1, h2, h3, .pixel-font {
    font-family: var(--font-pixel);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: normal; /* Pixel Fonts brauchen kein Bold */
}

main {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* --------------------------------------------------------------------------
   7. NAVIGATION
   -------------------------------------------------------------------------- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 2px solid var(--anarchy-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Logo */
.logo a { display: flex; align-items: center; gap: 15px; }
.nav-logo-img { 
    height: 45px; width: auto; 
    image-rendering: pixelated; 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 2px var(--anarchy-red)); 
}
.logo a:hover .nav-logo-img { 
    transform: scale(1.1) rotate(-5deg); 
    filter: drop-shadow(0 0 15px var(--anarchy-red)); 
}
.logo span { 
    font-size: 2rem; 
    color: var(--anarchy-red); 
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8); 
}

/* Links */
.nav-links { display: flex; align-items: center; }
.nav-links > a { 
    margin-left: 30px; 
    font-weight: bold; 
    font-size: 1.1rem; 
    position: relative; 
    padding-bottom: 4px;
    color: var(--text-muted);
}
.nav-links > a:hover, .nav-links > a.active { 
    color: #fff; 
    text-shadow: 0 0 10px var(--anarchy-red); 
}
.nav-links > a.active::after {
    content: ''; 
    position: absolute; 
    bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--anarchy-red); 
    box-shadow: 0 0 8px var(--anarchy-red);
}

/* Search Bar */
.search-wrapper { margin-left: 30px; position: relative; }
.search-bar form { display: flex; gap: 0; }
.search-bar input {
    background: #000; 
    border: 1px solid #444; 
    border-right: none; 
    color: #fff;
    padding: 8px 12px; 
    font-family: var(--font-pixel); 
    font-size: 1rem;
    width: 200px; 
    outline: none; 
    transition: all 0.3s;
}
.search-bar input:focus { 
    border-color: var(--anarchy-red); 
    box-shadow: inset 0 0 10px rgba(255, 51, 51, 0.2); 
}
.search-btn {
    background: #111; 
    border: 1px solid #444; 
    color: var(--anarchy-red);
    cursor: pointer; 
    padding: 0 15px; 
    transition: 0.2s; 
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { 
    background: var(--anarchy-red); 
    color: #000; 
    border-color: var(--anarchy-red); 
}

/* Auto-Complete Suggestions */
.suggestions-box {
    position: absolute; 
    top: 100%; left: 0; width: 100%;
    background: #050505; 
    border: 1px solid var(--anarchy-red); 
    border-top: none;
    z-index: 1001; 
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.9);
}
.suggestion-item { 
    padding: 10px; 
    cursor: pointer; 
    border-bottom: 1px solid #222; 
    font-family: var(--font-pixel); 
    display: flex; align-items: center; gap: 10px; 
    color: #aaa;
}
.suggestion-item:hover { 
    background: #151515; 
    color: var(--anarchy-green); 
    padding-left: 15px; 
}

/* Mobile Toggle */
.mobile-menu-btn { 
    display: none; 
    font-size: 2rem; 
    color: var(--anarchy-red); 
    cursor: pointer; 
    user-select: none; 
}

/* --------------------------------------------------------------------------
   8. HERO SECTION & GLITCH EFFECTS
   -------------------------------------------------------------------------- */
.hero {
    min-height: 80vh; 
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; 
    text-align: center; 
    padding: 40px 20px; 
    position: relative; 
    overflow: hidden;
}

/* Background Animated Logo */
.hero-bg-logo {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1; 
    opacity: 0.15; 
    pointer-events: none;
}
.hero-bg-logo img { 
    width: 600px; max-width: 90vw; 
    image-rendering: pixelated; 
    animation: breath 6s infinite ease-in-out; 
}
@keyframes breath { 
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); } 
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(255,51,51,0.2)); } 
}

/* --- GLITCH TEXT CORE --- */
.glitch-wrapper { margin-bottom: 30px; position: relative; z-index: 10; }
.glitch {
    font-size: clamp(3rem, 10vw, 6rem);
    color: white; 
    font-weight: normal;
    text-shadow: 4px 4px 0px var(--anarchy-black);
    position: relative; 
    display: inline-block;
}

/* DESKTOP ANIMATION (CLIP) - Nur wenn Platz da ist */
@media (min-width: 901px) {
    .glitch::before, .glitch::after {
        content: attr(data-text);
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: var(--anarchy-dark);
    }
    .glitch::before {
        left: 2px; text-shadow: -2px 0 var(--glitch-magenta);
        clip: rect(44px, 450px, 56px, 0);
        animation: glitch-anim 5s infinite linear alternate-reverse;
    }
    .glitch::after {
        left: -2px; text-shadow: -2px 0 var(--glitch-cyan);
        clip: rect(44px, 450px, 56px, 0);
        animation: glitch-anim2 5s infinite linear alternate-reverse;
    }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(80px, 9999px, 100px, 0); }
    40% { clip: rect(10px, 9999px, 40px, 0); }
    60% { clip: rect(50px, 9999px, 60px, 0); }
    80% { clip: rect(20px, 9999px, 80px, 0); }
    100% { clip: rect(90px, 9999px, 110px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(60px, 9999px, 80px, 0); }
    20% { clip: rect(10px, 9999px, 30px, 0); }
    40% { clip: rect(90px, 9999px, 110px, 0); }
    60% { clip: rect(30px, 9999px, 50px, 0); }
    80% { clip: rect(70px, 9999px, 90px, 0); }
    100% { clip: rect(20px, 9999px, 40px, 0); }
}

/* Online Status Box */
.online-status-box {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--anarchy-border);
    border-top: 3px solid var(--anarchy-green);
    padding: 20px 30px; margin: 20px 0 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 10; position: relative;
    min-width: 300px;
}
.status-header { display: flex; align-items: center; justify-content: center; margin-bottom: 15px; gap: 10px; }
.live-indicator { 
    width: 12px; height: 12px; 
    background: var(--anarchy-green); 
    border-radius: 50%; 
    box-shadow: 0 0 10px var(--anarchy-green); 
    animation: blink 2s infinite; 
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.player-heads { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.head-icon { 
    width: 32px; height: 32px; 
    border: 2px solid #333; 
    transition: 0.2s; 
    image-rendering: pixelated; 
}
.head-icon:hover { 
    transform: scale(1.4) translateY(-5px); 
    border-color: var(--anarchy-green); 
    z-index: 20; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.8); 
}

/* Call to Action & Copy IP */
.cta-container { z-index: 10; position: relative; display: flex; flex-direction: column; align-items: center; }
.mc-btn {
    background: rgba(0,0,0,0.6); 
    color: var(--anarchy-red);
    padding: 15px 40px; 
    font-family: var(--font-pixel); 
    font-size: 1.8rem;
    border: 2px solid var(--anarchy-red); 
    cursor: pointer;
    transition: 0.2s; 
    text-transform: uppercase; 
    line-height: 1;
    position: relative; 
    overflow: hidden;
}
.mc-btn:hover { 
    background: var(--anarchy-red); 
    color: #000; 
    box-shadow: 0 0 25px var(--anarchy-red); 
}
.mc-btn:active { 
    transform: scale(0.98); 
    background: #fff; /* CRT Flash Effect */
    color: #000;
}
.ip-subtext { 
    margin-top: 15px; 
    color: #888; 
    font-family: var(--font-pixel); 
    letter-spacing: 2px; 
}

/* --------------------------------------------------------------------------
   9. CONTENT GRIDS & CARDS
   -------------------------------------------------------------------------- */
.container { padding: 20px; max-width: 1400px; margin: 0 auto; }
.stats, .features { 
    padding: 60px 5%; 
    background: rgba(5, 5, 5, 0.85); /* Etwas dunkler wegen Netherrack */
    border-top: 1px solid #222; 
    position: relative; 
    z-index: 5; 
}

.section-title {
    text-align: center; 
    font-size: 3rem; 
    margin-bottom: 50px; 
    color: white; 
    border-bottom: 2px solid var(--anarchy-red); 
    display: inline-block; 
    position: relative; 
    left: 50%; 
    transform: translateX(-50%);
    text-shadow: 4px 4px 0 #000;
}

/* Layouts */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* Stat Cards */
.stat-card { 
    background: var(--anarchy-surface); 
    padding: 25px; 
    border: 1px solid var(--anarchy-border); 
    transition: 0.3s; 
}
.stat-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--anarchy-red); 
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.1); 
    background: #1a1a1a;
}
.stat-card h3 { 
    font-size: 3.5rem; 
    color: #fff; 
    line-height: 1; 
    font-family: var(--font-pixel); 
}
.stat-card p { 
    color: var(--anarchy-red); 
    font-weight: bold; 
    margin-top: 5px; 
    letter-spacing: 1px; 
}

/* Standard Cards */
.card { 
    background: var(--anarchy-surface); 
    padding: 25px; 
    border: 1px solid var(--anarchy-border); 
    height: 100%; 
    transition: transform 0.2s;
}
.card:hover { border-color: #555; }
.card h3 { 
    font-size: 1.8rem; 
    font-family: var(--font-pixel); 
    margin-bottom: 20px; 
    border-bottom: 1px solid #222; 
    padding-bottom: 10px; 
}

.card h2 { 
    font-size: 1.8rem; 
    font-family: var(--font-pixel); 
    margin-bottom: 20px; 
    border-bottom: 1px solid #222; 
    padding-bottom: 10px; 
}

/* Leaderboard Rows */
.stat-badge { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 10px; border-bottom: 1px solid #222; 
    font-family: var(--font-pixel); font-size: 1.2rem; 
    transition: all 0.2s;
}
.stat-badge:hover { 
    background: rgba(255, 51, 51, 0.1); 
    padding-left: 15px; 
    border-left: 3px solid var(--anarchy-red);
}
.stat-badge img { vertical-align: middle; border-radius: 2px; margin: 0 5px; }

/* Live Chat */
.chat-box { 
    background: #000; 
    border: 1px solid #333; 
    height: 350px; 
    overflow-y: auto; 
    padding: 15px; 
    font-family: 'VT323', monospace; 
    font-size: 1.15rem; 
    box-shadow: inset 0 0 20px #000;
}
.chat-msg { border-bottom: 1px solid #111; padding: 6px 0; line-height: 1.4; }
.chat-time { color: #555; margin-right: 5px; }
.chat-user { color: var(--anarchy-yellow); font-weight: bold; }
.chat-text { color: #ccc; }

/* Easter Egg: Cursed Image Hover */
img:not(.nav-logo-img):not(.skin-part):hover {
    animation: cursed-flash 3s infinite;
}
@keyframes cursed-flash {
    0%, 95% { filter: none; }
    96% { filter: invert(1) hue-rotate(180deg); }
    100% { filter: none; }
}

/* --------------------------------------------------------------------------
   10. PROFILE PAGE & 3D SKINS
   -------------------------------------------------------------------------- */
.profile-header { 
    padding: 40px; 
    background: rgba(0,0,0,0.8); 
    border: 1px solid #333; 
    border-left: 5px solid var(--anarchy-red);
    margin-bottom: 40px; 
    display: flex; gap: 30px; align-items: center;
}

/* 3D Skin Viewer Logic */
.skin-viewer {
    width: 250px; height: 350px; 
    perspective: 1000px; /* 3D Raum */
    cursor: help; 
    margin: 0 auto;
}
.skin-card {
    width: 100%; height: 100%; position: relative;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
/* Rotation bei Hover oder Touch-Active Class */
.skin-viewer:hover .skin-card, .skin-viewer.active .skin-card { 
    transform: rotateY(180deg); 
}

.skin-front, .skin-back {
    position: absolute; width: 100%; height: 100%; 
    backface-visibility: hidden;
    display: flex; align-items: center; justify-content: center;
}
.skin-front img, .skin-back img { 
    max-height: 300px; 
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5)); 
    image-rendering: pixelated; 
    pointer-events: none; /* Verhindert Bild-Drag */
}
.skin-back { transform: rotateY(180deg); }

.cape-badge {
    position: absolute; bottom: 10px; 
    background: var(--anarchy-red); color: white;
    font-family: var(--font-pixel); font-size: 0.7rem; 
    padding: 2px 8px; border: 1px solid white; 
    box-shadow: 0 0 10px var(--anarchy-red);
}

/* --------------------------------------------------------------------------
   11. MAPS & FOOTER
   -------------------------------------------------------------------------- */
.map-container {
    width: 100%; height: 75vh; 
    background: #000; border: 1px solid #333; 
    position: relative; margin-top: 20px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }
.map-overlay {
    position: absolute; top: 20px; left: 20px; 
    background: rgba(0,0,0,0.9);
    padding: 15px; 
    border-left: 3px solid var(--anarchy-red); 
    pointer-events: none;
}

footer {
    flex-shrink: 0; 
    background: #050505; 
    padding: 40px 20px; 
    text-align: center;
    border-top: 2px solid var(--anarchy-gray); 
    margin-top: auto; 
    position: relative; 
    z-index: 10;
}
footer::before {
    content: ""; display: block; 
    width: 60px; height: 60px; 
    margin: 0 auto 20px;
    background: url('/boar-logo.png') no-repeat center; 
    background-size: contain;
    image-rendering: pixelated; 
    opacity: 0.15; filter: grayscale(1); 
    transition: 0.5s;
}
footer:hover::before { filter: grayscale(0); opacity: 0.5; transform: rotate(10deg); }

/* --------------------------------------------------------------------------
   12. MOBILE & RESPONSIVE OVERRIDES
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Navigation Stack */
    .nav-links {
        position: fixed; top: 76px; right: -100%;
        width: 100%; height: calc(100vh - 76px);
        background: rgba(5,5,5,0.98);
        flex-direction: column; justify-content: start;
        padding-top: 40px; 
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 2px solid var(--anarchy-red); 
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links > a { margin: 15px 0; font-size: 1.5rem; }
    
    .search-wrapper { margin: 20px 0; width: 80%; margin-left: 0; }
    .search-bar input { width: 100%; }
    .mobile-menu-btn { display: block; }

    /* Layout Collapse */
    .grid-2, .grid-3, .grid-4, .stats-grid { grid-template-columns: 1fr; }
    
    /* Hero Adjustments */
    .hero { min-height: auto; padding-top: 60px; }
    .hero-bg-logo img { width: 300px; }
    
    /* --- MOBILE GLITCH FIX (THE DRILL) --- */
    /* Clip funktioniert nicht bei Umbruch, daher: Text Shiver */
    .glitch-wrapper { margin-bottom: 20px; }
    .glitch {
        font-size: 3rem; 
        word-wrap: break-word; 
        white-space: normal;
        animation: text-shiver 0.3s infinite;
    }
    .glitch::before, .glitch::after { display: none; }
    
    /* Profile Adjustments */
    .profile-header { flex-direction: column; text-align: center; padding: 20px; }
    .profile-header img { margin-bottom: 20px; }
    
    /* Table Scroll */
    table { display: block; overflow-x: auto; white-space: nowrap; }
    
    .map-container { height: 60vh; }
    .skin-viewer { height: 300px; }
}

/* Animation für Mobile Glitch */
@keyframes text-shiver {
    0% { text-shadow: 2px 2px 0 var(--glitch-magenta), -2px -2px 0 var(--glitch-cyan); }
    25% { text-shadow: -2px 2px 0 var(--glitch-magenta), 2px -2px 0 var(--glitch-cyan); transform: translate(1px, 1px); }
    50% { text-shadow: 2px -2px 0 var(--glitch-magenta), -2px 2px 0 var(--glitch-cyan); }
    75% { text-shadow: -2px -2px 0 var(--glitch-magenta), 2px 2px 0 var(--glitch-cyan); transform: translate(-1px, -1px); }
    100% { text-shadow: 2px 2px 0 var(--glitch-magenta), -2px -2px 0 var(--glitch-cyan); }
}


/* --- EXPLORER / MONITOR STYLES --- */

.explorer-header {
    display: flex; justify-content: space-between; align-items: end;
    margin-bottom: 10px; border-bottom: 2px solid var(--anarchy-border);
    padding-bottom: 10px;
}
.system-status { font-family: 'VT323', monospace; font-size: 1.2rem; color: #888; text-align: right; }

.monitor-wrapper {
    width: 100%;
    height: 75vh;
    background: #000;
    border: 1px solid #333;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    overflow: hidden;
}

/* Offline Status: Roter Rahmen */
.monitor-wrapper.signal-lost { border-color: var(--anarchy-red); }
/* Online Status: Grüner Rahmen */
.monitor-wrapper.signal-live { border-color: #1a1a1a; }

/* Screen Area */
.monitor-screen { width: 100%; height: 100%; position: relative; z-index: 1; }
.monitor-screen iframe { width: 100%; height: 100%; border: none; filter: contrast(1.1) saturate(0.9); }

/* Overlay UI (Liegt OBEN DRAUF, aber lässt Klicks durch) */
.monitor-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none; /* WICHTIG: Damit man die Map klicken kann! */
    box-shadow: inset 0 0 100px rgba(0,0,0,0.7);
}

/* Scanlines Effect */
.scanlines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 5;
}

/* UI Elements in corners */
.corner-ui {
    position: absolute; padding: 10px 15px;
    font-family: 'VT323', monospace; color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem; letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}
.top-left { top: 0; left: 0; border-right: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.5); }
.top-right { top: 0; right: 0; color: var(--anarchy-red); }
.bottom-left { bottom: 0; left: 0; }
.bottom-right { bottom: 0; right: 35px; opacity: 0.5; }

/* Blinking REC Dot */
.rec-dot {
    display: inline-block; width: 10px; height: 10px;
    background: var(--anarchy-red); border-radius: 50%;
    margin-right: 5px; animation: blink 1s infinite;
}

/* Offline Static Noise */
.static-noise {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: #111;
}
.noise-bg {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
    animation: static-anim 0.2s infinite;
}
.error-msg {
    text-align: center; z-index: 2;
    background: #000; padding: 20px; border: 2px solid var(--anarchy-red);
}
.error-msg h1 { color: var(--anarchy-red); margin-bottom: 5px; font-size: 3rem; }
.error-msg p { color: #fff; font-family: 'VT323'; font-size: 1.5rem; }

@keyframes static-anim {
    0% { transform: translate(0,0); }
    10% { transform: translate(-5%,-5%); }
    20% { transform: translate(-10%,5%); }
    30% { transform: translate(5%,-10%); }
    40% { transform: translate(-5%,15%); }
    50% { transform: translate(-10%,5%); }
    60% { transform: translate(15%,0); }
    70% { transform: translate(0,10%); }
    80% { transform: translate(-15%,0); }
    90% { transform: translate(10%,5%); }
    100% { transform: translate(5%,0); }
}

/* Accessbility Mode */
/* Sichtbarer Fokusrahmen für Tastaturnutzer */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--anarchy-blue); /* Kontrastfarbe zum Rot */
    outline-offset: 4px;
}

.a11y-mode .glitch::before, 
.a11y-mode .glitch::after { display: none !important; } /* Glitch aus */
.a11y-mode { 
    --anarchy-red: #ff4d4d; /* Helleres, kontrastreicheres Rot */
    filter: none !important; /* Scanlines etc. aus */
}

/* --- EAA COMPLIANCE & LAYOUT FIXES --- */

/* Accessibility Button im Menü */
.a11y-btn {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    margin-left: 20px;
    transition: 0.2s;
    border-radius: 4px;
}
.a11y-btn:hover {
    border-color: var(--anarchy-green);
    background: rgba(0, 255, 65, 0.1);
}

/* Screenreader-Only Klasse */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Feed Listen Styling (für Index) */
.clean-list { list-style: none; padding: 0; margin: 0; }
.feed-item {
    border-bottom: 1px solid #222;
    padding: 10px 0;
    display: flex; align-items: center;
    font-size: 0.9rem; gap: 10px;
}
.feed-item:last-child { border-bottom: none; }
.feed-head { border-radius: 2px; width: 24px; height: 24px; margin-right: 0; }
.feed-content { flex-grow: 1; line-height: 1.3; }
.feed-user { font-weight: bold; color: #e0e0e0; }
.feed-meta { text-align: right; color: #444; font-size: 0.8rem; margin-left: auto; }
.item-icon { vertical-align: middle; margin: 0 4px; }

/* Ranking Listen (für Top) */
.rank-list { list-style: none; padding: 0; margin: 0; }
.red-border { border-top: 4px solid var(--anarchy-red); }
.yellow-border { border-top: 4px solid var(--anarchy-yellow); }
.blue-border { border-top: 4px solid var(--anarchy-blue); }
.green-border { border-top: 4px solid var(--anarchy-green); }

.player-info { display: flex; align-items: center; gap: 8px; }
.rank-idx { font-family: var(--font-pixel); color: #666; width: 30px; }
.val-red { color: var(--anarchy-red); font-weight: bold; }
.val-yellow { color: var(--anarchy-yellow); font-weight: bold; }
.val-blue { color: var(--anarchy-blue); font-weight: bold; }
.val-green { color: var(--anarchy-green); font-weight: bold; }

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--anarchy-blue);
    outline-offset: 2px;
}

/* Barrierefrei-Modus (Wird via JS getoggled) */
.a11y-mode {
    --anarchy-red: #d32f2f; /* Weniger grell */
    --anarchy-dark: #121212; /* Helleres Schwarz */
}
.a11y-mode .glitch { 
    text-shadow: none !important; 
    animation: none !important; 
}
.a11y-mode .scanline-effect,
.a11y-mode .glitch::before,
.a11y-mode .glitch::after { 
    display: none !important; 
}
.a11y-mode body::after { opacity: 0; } /* Noise aus */