@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Press Start 2P', 'Segoe UI', monospace, cursive;
            background: #1a1a1a url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiMyMjIyMjIiLz48cGF0aCBkPSJNMjAgMjBoMTB2MTBIMjB6TTEwIDIwaDEwdjEwSDEweiIgZmlsbD0iIzJhMmEyYSIvPjxwYXRoIGQ9Ik0zMCAxMGgxMHYxMEgzMHpNMjAgMTBoMTB2MTBIMjB6IiBmaWxsPSIjMjUyNTI1Ii8+PC9zdmc+');
            background-repeat: repeat;
            color: #e0e0e0;
            padding: 20px;
            margin: 0;
            font-size: 12px;
            line-height: 1.5;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #2c2c2c;
        }
        ::-webkit-scrollbar-thumb {
            background: #5a5a5a;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #7c7c7c;
        }

        .layout-wrapper {
            position: relative;
            width: 1220px;
            margin: 0 auto;
        }

        .container {
            width: 100%;
            background: #2b2b2b;
            background-image: repeating-linear-gradient(45deg, #3a3a3a 0px, #3a3a3a 2px, #2f2f2f 2px, #2f2f2f 8px);
            padding: 30px;
            box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 8px #4a4a4a, 0 10px 30px rgba(0,0,0,0.6);
            border: 1px solid #6b6b6b;
        }

        .footer {
            width: 100%;
            margin: 30px 0 0 0;
            background: #2b2b2b;
            padding: 10px;
            box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 8px #4a4a4a, 0 5px 15px rgba(0,0,0,0.4);
            border: 1px solid #6b6b6b;
            text-align: center;
        }

        .side-panel {
            position: absolute;
            right: calc(100% + 30px);
            top: 0;
            width: 298px;
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .right-panel {
            position: absolute;
            left: calc(100% + 30px);
            top: 0;
            width: 298px;
        }

        .side-card {
            background: #2b2b2b;
            padding: 10px;
            box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 8px #4a4a4a, 0 5px 15px rgba(0,0,0,0.4);
            border: 1px solid #6b6b6b;
            text-align: center;
        }

        .right-card {
            background: #2b2b2b;
            padding: 10px;
            box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 8px #4a4a4a, 0 5px 15px rgba(0,0,0,0.4);
            border: 1px solid #6b6b6b;
            text-align: left;
        }

        .right-card section + section {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 3px solid #6b6b6b;
            box-shadow: inset 0 3px 0 #2c2c2c;
        }

        .side-card h3,
        .right-card h3 {
            color: #ffaa33;
            font-size: 0.8rem;
            margin-bottom: 15px;
            margin-top: 0;
            text-shadow: 2px 2px 0 #3a2a0a;
        }

        .noticeboard-section h3 {
            text-align: center;
        }

        .right-card p {
            color: #cccccc;
            font-size: 0.65rem;
            line-height: 1.7;
            margin: 0 0 12px 0;
        }

        .right-card p:last-child {
            margin-bottom: 0;
        }

        .right-card strong {
            color: #55ff55;
            font-weight: normal;
        }

        .privacy-policy-btn {
            display: block;
            width: 100%;
            margin-bottom: 0;
            background: #2b2b2b;
            color: #dddddd;
            border: 2px solid #6b6b6b;
            padding: 8px 12px;
            cursor: pointer;
            transition: 0.1s linear;
            font-size: 0.7rem;
            font-family: 'Press Start 2P', monospace;
            text-align: center;
            text-decoration: none;
        }

        .privacy-policy-btn:hover {
            border-color: #ffffff;
            color: #ffffff;
        }

        .privacy-policy-btn-active,
        .privacy-policy-btn-active:hover {
            background: #1f1f1f;
            border-color: #ffffff;
            color: #dddddd;
            cursor: default;
            font-weight: bold;
        }

        .side-card .side-btn,
        .side-card .side-btn-active {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            width: 100%;
            margin-bottom: 10px;
            text-decoration: none;
            font-size: 0.7rem;
            text-align: left;
        }

        .side-card .side-btn img,
        .side-card .side-btn-active img {
            width: 28px;
            height: 28px;
            flex: 0 0 28px;
            object-fit: contain;
            image-rendering: pixelated;
        }

        .side-card .side-btn span,
        .side-card .side-btn-active span {
            flex: 1;
            line-height: 1.35;
        }

        .side-card .side-btn:last-child, .side-card .side-btn-active:last-child {
            margin-bottom: 0;
        }
		
		.side-card .side-btn-active {
			background: #1f1f1f;
			font-weight: bold;
			border: 2px solid #FFFFFF;
            color: #dddddd;
            padding: 8px 12px;
            cursor: default;
            font-family: 'Press Start 2P', monospace;
		}

		.footer p {
			margin: 8px 0;
			font-size: 1rem;
			color: #aaaaaa;
			line-height: 1.6;
		}

		.footer .highlight {
			color: #55ff55;
		}

		.footer .mc {
			font-size: 0.65rem;
		}

        h1 {
            color: #55ff55;
            text-align: center;
			margin-top: 0;
            margin-bottom: 0;
            text-shadow: 3px 3px 0 #1e5a1e;
            font-size: 3rem;
            letter-spacing: 2px;
            font-family: 'Press Start 2P', monospace;
            word-break: break-word;
        }

        h2.section-title {
            color: #ffaa33;
            padding: 10px 16px;
            margin-top: 40px;
            font-family: 'Press Start 2P', monospace;
            font-size: 1.1rem;
            background: #1a1a1a;
            border: 3px solid #55ff55;
            box-shadow: 4px 4px 0 #1e5a1e, inset 0 0 0 2px #2a2a2a;
            display: inline-block;
            text-shadow: 2px 2px 0 #3a2a0a;
            letter-spacing: 1px;
            image-rendering: pixelated;
			text-align: center
        }

        p.subtitle {
            text-align: center;
            color: #aaaaaa;
            margin-bottom: 0;
            font-size: 1.4rem;
        }

        .upload-section {
            border: 3px dashed #6b6b6b;
            background: #1e1e1e;
            margin-top: 30px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: 0.2s;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 2px 5px rgba(0,0,0,0.2);
        }

        .upload-section:hover {
            border-color: #55ff55;
            background: #2a2a2a;
            transform: scale(0.99);
            box-shadow: 0 0 12px rgba(85,255,85,0.2);
        }

        .upload-section.drag-over {
            border-color: #ffaa33;
            background: #2f2a1e;
            box-shadow: 0 0 14px rgba(255,170,51,0.3);
        }

        #fileInput { display: none; }

        .folders-panel {
            background: #1f1f1f;
            padding: 15px;
            margin-top: 30px;
            display: none;
            border: 3px solid #55ff55;
            box-shadow: 4px 4px 0 #1e5a1e, inset 0 0 0 2px #2a2a2a;
        }

        .folders-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .folders-header h4, .filter-header h4 {
            margin: 0;
            color: #ffaa33;
            font-family: 'Press Start 2P', monospace;
            font-size: 0.8rem;
            border-bottom: 2px solid #55ff55;
            box-shadow: 0 2px 0 #1e5a1e;
            padding: 6px 12px;
            display: inline-block;
            text-shadow: 2px 2px 0 #3a2a0a;
        }

        .btn-add-folder {
            background: #2c2c2c;
            border: 2px solid #6b6b6b;
            padding: 6px 14px;
            cursor: pointer;
            font-size: 0.7rem;
            font-family: 'Press Start 2P', monospace;
        }

        .btn-add-folder:hover {
            border-color: #55ff55;
        }

        .folder-list {
            max-height: 350px;
            overflow-y: auto;
        }

        .folder-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            border: 2px solid #3a3a3a;
            background: #252525;
            margin-bottom: 6px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .folder-info {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            flex: 2;
        }

        .folder-info input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: #55ff55;
        }

        .color-preview {
            width: 24px;
            height: 24px;
            border: 2px solid #aaa;
            cursor: pointer;
        }

        .folder-path {
            font-family: monospace;
            color: #ddd;
            word-break: break-all;
        }

        .folder-stats {
            color: #aaa;
        }

        .folder-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .edit-folder-btn {
            background: #2c2c2c;
            border: 1px solid #6b6b6b;
            padding: 4px 10px;
            cursor: pointer;
            font-size: 1rem;
            font-family: monospace;
        }

        .edit-folder-btn:hover {
            border-color: #ffaa33;
        }

        .delete-folder {
            background: #441111;
            border: 1px solid #FF6666;
            color: #FF8888;
            font-size: 1rem;
            cursor: pointer;
            padding: 4px 10px;
            font-weight: bold;
        }

        .delete-folder:hover {
            background: #FF6666;
            color: #000000;
            border-color: #FFFFFF;
        }

        /* Szerkesztő modal */
        .edit-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: 1000;
        }
        .edit-modal-content {
            background: #2b2b2b;
            border: 3px solid #55ff55;
            padding: 20px;
            width: 300px;
            text-align: center;
		}

		.edit-modal-content h3 {
			margin-top: 0;
		}

        .edit-modal-content input {
            background: #1e1e1e;
            border: 2px solid #6b6b6b;
            color: #55ff55;
            padding: 8px;
            margin: 0 0 10px 0;
            width: 100%;
            font-family: monospace;
        }
        .edit-modal-content button {
            margin: 5px;
            padding: 8px 16px;
			width: 100%
        }

        .filter-section {
            margin-top: 30px;
            padding: 20px;
            background: #1e1e1e;
            display: none;
            flex-direction: column;
            gap: 20px;
            border: 3px solid #55ff55;
            box-shadow: 4px 4px 0 #1e5a1e, inset 0 0 0 2px #2a2a2a;
        }

		.filter-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
        }

        .date-inputs {
            display: flex;
            justify-content: center;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
        }

        .date-inputs input {
            background: #2c2c2c;
            border: 2px solid #6b6b6b;
            color: #55ff55;
            padding: 6px 12px;
            font-family: 'Press Start 2P';
        }

        #date-slider {
            margin: 10px 20px 20px 20px;
        }

        .noUi-target, .noUi-connect, .noUi-handle {
            border-radius: 0 !important;
        }

        .noUi-connect {
            background: #55ff55;
        }
        .noUi-handle {
            background: #ffaa33;
            border: 2px solid #1e1e1e;
            box-shadow: none;
        }
        .noUi-handle:before, .noUi-handle:after {
            display: none;
        }

        .controls {
            margin-top: 10px;
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .view-buttons {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            width: 100%;
        }

        button, .side-btn {
            background: #2b2b2b;
            color: #dddddd;
            border: 2px solid #6b6b6b;
            padding: 8px 12px;
            cursor: pointer;
            transition: 0.1s linear;
            font-size: 1rem;
            font-family: 'Press Start 2P', monospace;
        }

        button.active {
            background: #1f1f1f;
            color: #dddddd;
            border-color: #ffffff;
            text-shadow: none;
			cursor: default;
			border: 2px solid #FFFFFF;
            font-family: 'Press Start 2P', monospace;
        }

        button:hover, .side-btn:hover {
            border-color: #FFFFFF;
            color: white;
        }

        .export-btn {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .export-btn img {
            width: 20px;
            height: 20px;
            object-fit: contain;
            image-rendering: pixelated;
        }

        .chart-container {
            margin-top: 10px;
            position: relative;
            height: 380px;
            width: 100%;
            display: none;
            background: #1e1e1e;
            padding: 15px;
            border: 3px solid #5a5a5a;
            box-shadow: 4px 4px 0 #222, inset 0 0 0 2px #1a1a1a;
        }

        .analysis-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 20px;
            margin-top: 30px;
            display: none;
        }

        .chart-box h3 {
            font-family: 'Press Start 2P', monospace;
            font-size: 1.1rem;
            color: #ffaa33;
			margin-top: 0;
            margin-bottom: 12px;
            text-shadow: 2px 2px 0 #3a2a0a;
            background: #1a1a1a;
            border-bottom: 2px solid #55ff55;
            box-shadow: 0 2px 0 #1e5a1e;
            display: inline-block;
            padding: 6px 12px;
        }

        .chart-box {
            background: #1a1a1a;
            padding: 20px;
            min-height: 320px;
            text-align: center;
            border: 3px solid #55ff55;
            box-shadow: 4px 4px 0 #1e5a1e, inset 0 0 0 2px #2a2a2a;
            image-rendering: pixelated;
        }

        .coming-soon {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 200px;
            color: #aa8866;
            font-style: italic;
            font-size: 0.8rem;
            background: transparent;
        }

        .metrics-coming-soon {
            display: none;
            margin-top: 20px;
            color: #aa8866;
            font-style: italic;
            font-size: 0.75rem;
            text-align: center;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 15px;
            display: none;
        }

        .total-summary-card {
            display: none;
            margin-top: 30px;
            background: #1e1e1e;
            padding: 20px;
            border: 3px solid #55ff55;
            box-shadow: 4px 4px 0 #1e5a1e, inset 0 0 0 2px #2a2a2a;
            text-align: center;
        }

        .total-summary-card p {
            margin: 0;
            color: #ffffff;
            font-size: 0.75rem;
            line-height: 1.8;
            text-shadow: 3px 3px 0 #0f0f0f;
        }

        .total-summary-card strong {
            display: block;
            color: #55ff55;
            font-size: 1.5rem;
            margin: 6px 0;
            white-space: nowrap;
        }

        .stat-card {
            background: #1e1e1e;
            padding: 15px;
            border: 3px solid #55ff55;
            box-shadow: 4px 4px 0 #1e5a1e, inset 0 0 0 2px #2a2a2a;
            text-align: center;
            transition: 0.1s;
        }

        .stat-card span {
            display: block;
            font-size: 0.9rem;
            color: #ffaa55;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-card strong {
            font-size: 1.4rem;
            color: #ffffff;
            display: block;
            margin-top: 5px;
            text-shadow: 3px 3px 0 #0f0f0f;
        }

        .stat-card small {
            font-size: 0.6rem;
            color: #aaaaaa;
            display: block;
            margin-top: 4px;
        }

        #serverList {
            list-style: none;
            padding: 0;
            margin-top: 15px;
            overflow-y: auto;
        }

        #serverList li {
            padding: 12px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            background: #212121;
            margin-bottom: 8px;
        }

        .server-rank {
            color: #ffaa33;
            font-family: 'Press Start 2P', monospace;
            font-size: 0.75rem;
            min-width: 28px;
            text-align: right;
            margin-right: 6px;
        }

        .server-name {
            font-family: 'Press Start 2P';
            word-break: break-all;
            flex: 2;
            text-align: left;
            color: #ffcc88;
        }

        .server-stats {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .server-count {
            color: #55ff55;
        }

        .server-time {
            color: #ffaa55;
			min-width: 12em;
			text-align: right;
        }

        hr {
            border: 0;
            border-top: 3px solid #6b6b6b;
			border-bottom: 3px solid #2c2c2c;
            margin: 40px 0;
        }

        #status {
            text-align: center;
            margin-top: 10px;
            color: #ffaa55;
            font-weight: bold;
            background: #1f1f1f;
            padding: 8px;
            border: 2px solid #6b6b6b;
            font-size: 0.7rem;
        }

        canvas {
            /* no glow */
        }

        .article-list {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-top: 30px;
        }

        .article-card {
            width: 100%;
            margin-top: 30px;
            background: #2b2b2b;
            padding: 20px;
            box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 8px #4a4a4a, 0 5px 15px rgba(0,0,0,0.4);
            border: 1px solid #6b6b6b;
        }

        .article-card h2 {
            color: #ffaa33;
            font-size: 1rem;
            margin: 0 0 12px 0;
            text-shadow: 2px 2px 0 #3a2a0a;
        }

        .article-date {
            color: #55ff55;
            display: block;
            font-size: 0.65rem;
            margin-bottom: 14px;
        }

        .article-card p {
            color: #cccccc;
            font-size: 0.8rem;
            line-height: 1.7;
            margin: 0;
        }

        .info-card {
            width: 100%;
            margin-top: 30px;
            background: #2b2b2b;
            padding: 20px;
            box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 8px #4a4a4a, 0 5px 15px rgba(0,0,0,0.4);
            border: 1px solid #6b6b6b;
        }

        .policy-updated-card {
            width: 100%;
            margin-top: 30px;
            background: #2b2b2b;
            padding: 16px 20px;
            box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 8px #4a4a4a, 0 5px 15px rgba(0,0,0,0.4);
            border: 1px solid #6b6b6b;
            text-align: center;
        }

        .policy-updated-card p {
            color: #aaaaaa;
            font-size: 0.75rem;
            line-height: 1.6;
            margin: 0;
        }

        .info-card h2 {
            color: #ffaa33;
            font-size: 1rem;
            margin: 0 0 12px 0;
            text-shadow: 2px 2px 0 #3a2a0a;
        }

        .info-card p {
            color: #cccccc;
            font-size: 0.8rem;
            line-height: 1.7;
            margin: 0;
        }

        .noticeboard-section a {
            color: inherit;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .mobile-warning {
            display: none;
        }

        @media (max-width: 900px) {
            body {
                min-height: 100vh;
                padding: 0;
                justify-content: center;
            }

            .layout-wrapper {
                display: none;
            }

            .mobile-warning {
                width: 100%;
                min-height: 100vh;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 20px;
            }

            .mobile-warning div {
                width: min(520px, 100%);
                background: #2b2b2b;
                background-image: repeating-linear-gradient(45deg, #3a3a3a 0px, #3a3a3a 2px, #2f2f2f 2px, #2f2f2f 8px);
                padding: 24px;
                box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 8px #4a4a4a, 0 10px 30px rgba(0,0,0,0.6);
                border: 1px solid #6b6b6b;
                text-align: center;
            }

            .mobile-warning h1 {
                font-size: 1.4rem;
                margin-bottom: 18px;
            }

            .mobile-warning p {
                color: #cccccc;
                font-size: 0.75rem;
                line-height: 1.7;
                margin: 0;
            }
        }
