:root {
    --bg-dark: #06070b;
    --bg-card: #121418;
    --bg-light: #2a302e;
    --accent-red: #fffefe;
    --accent-green: #8bbe55;
    --accent-darker-green: #4a6736;
    --text: #e0e0e0;
    --text-secondary: #b8c2a8;
    --border: #4a6736;
    --glow-red: 0 0 15px rgba(236, 47, 40, 0.78);
    --glow-green: 0 0 15px rgba(139, 190, 85, 0.3);
}

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(139, 190, 85, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(236, 47, 40, 0.05) 0%, transparent 20%);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

/* Support Widget */
.support-widget {
    text-align: center;
    margin-bottom: 30px;
}

.support-content {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    /*background: var(--bg-card);*/
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), var(--glow-green);
    backdrop-filter: blur(10px);
}

.support-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.support-links {
    display: flex;
    gap: 10px;
}

.support-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-button:hover {
    background: rgba(139, 190, 85, 0.1);
    transform: scale(1.1);
}

.support-button img {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.support-button:hover img {
    filter: brightness(1);
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    width: 150px;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-red));
    transition: width 0.5s ease;
}

.header-logo {
    width: 256px;
    height: 280px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.header-logo:hover {
    transform: scale(1.2) rotate(5deg);
}

.header-logo[data-tooltip] {
    position: relative;
}

.header-logo[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    font-family: inherit;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    z-index: 1001;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.header-logo[data-tooltip]:not(:hover)::after {
    opacity: 0;
}

.links {
    margin-bottom: 20px;
}



.header h1 {
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.header .links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    font-size: 1rem;
}

.header a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.header a:hover {
    color: var(--accent-green);
    transform: scale(1.05);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    margin-top: 40px;
    gap: 10px;
}

@media (max-width: 768px) {
    .language-switcher {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.lang-button {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-light));
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-button:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(139, 190, 85, 0.6);
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(145deg, var(--bg-light), var(--bg-card));
}

.lang-button.active {
    /* No special styling for active state */
}

.super-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 5px 10px;
    /*background: linear-gradient(145deg, #0f0f0f, #1c1c1c);*/
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    /*box-shadow: 0 0 20px rgba(1, 101, 33, 0.7);*/
    backdrop-filter: blur(8px);
    z-index: 1;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.super-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--accent-green), var(--accent-red), var(--accent-green));
    animation: rotate 4s linear infinite;
    z-index: -2;
}

.super-button::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: inherit;
    z-index: -1;
}

.super-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(136, 255, 0, 0.62);
}

.super-button:hover .arrow {
    transform: translateX(6px);
}

.arrow {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease-in-out;
    color: #00ffff;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#discordLink {
    background-image: url('../media/discord.png');
}

#youtubeLink {
    background-image: url('../media/youtube.png');
}

#veinLink {
    background-image: url('../media/vein-logo-game.png');
}

#veinWiki {
    background-image: url('../media/wiki-logo.png');
}

/* Stats Grid */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    /*background: var(--bg-card);*/
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    /*padding: 24px;*/
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), var(--glow-green);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), var(--glow-green);
    border-color: var(--accent-green);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: bold;
    color: var(--accent-green);
    margin: 10px 0;
    text-shadow: 0 0 8px rgba(139, 190, 85, 0.5);

    /* Make sure it aligns properly with sibling text */
    display: inline-block;
    vertical-align: middle;
    line-height: 1; /* Prevents extra spacing, baseline control */
    transition: transform 0.3s ease, color 0.3s ease;
}

.stat-number.player-join {
    color: var(--accent-green);
    transform: scale(1.2);
}

.stat-number.player-join::after {
    content: " +";
    color: #2fff00;
    font-weight: bold;
    animation: fadeOut 2s ease forwards;
}

.stat-number.player-leave {
    color: #ff0000;
    transform: scale(1.2);
}

.stat-number.player-leave::after {
    content: " -";
    color: #ff0000;
    font-weight: bold;
    animation: fadeOut 2s ease forwards;
}

.stat-number.kill-happen {
    color: var(--accent-red);
    transform: scale(2.8);
    animation: killShake1 0.8s ease-in-out;
}

@keyframes killShake1 {
    0%, 100% {
        transform: scale(2.8) translateY(-2px);
        color: var(--accent-red);
    }
    25% {
        transform: scale(2.8) translateX(-6px) translateY(-2px);
        color: var(--accent-green);
    }
    50% {
        transform: scale(2.8) translateX(6px) translateY(-2px);
        color: var(--accent-red);
    }
    75% {
        transform: scale(2.8) translateX(-6px) translateY(-2px);
        color: var(--accent-green);
    }
}

@keyframes killShake2 {
    0%, 100% {
        transform: scale(3.2) translateY(1px);
        color: var(--accent-red);
    }
    25% {
        transform: scale(3.2) translateX(-4px) translateY(1px);
        color: var(--accent-green);
    }
    50% {
        transform: scale(3.2) translateX(4px) translateY(1px);
        color: var(--accent-red);
    }
    75% {
        transform: scale(3.2) translateX(-4px) translateY(1px);
        color: var(--accent-green);
    }
}

@keyframes killShake3 {
    0%, 100% {
        transform: scale(2.6) translateY(3px);
        color: var(--accent-red);
    }
    25% {
        transform: scale(2.6) translateX(-7px) translateY(3px);
        color: var(--accent-green);
    }
    50% {
        transform: scale(2.6) translateX(7px) translateY(3px);
        color: var(--accent-red);
    }
    75% {
        transform: scale(2.6) translateX(-7px) translateY(3px);
        color: var(--accent-green);
    }
}

@keyframes killParticles {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes pvpKillPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(236, 47, 40, 0.3);
        background: rgba(236, 47, 40, 0.35);
    }
    50% {
        box-shadow: 0 0 20px rgba(236, 47, 40, 0.6);
        background: rgba(236, 47, 40, 0.5);
    }
}

.stat-number-time {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--accent-green);
    margin: 10px 0;
    text-shadow: 0 0 8px rgba(139, 190, 85, 0.5);

    /* Make sure it aligns properly with sibling text */
    display: inline-block;
    vertical-align: middle;
}

.stat-number-time-red {
    font-size: 1.6rem;
    font-weight: bold;
    color: #EC2F28C6;
    margin: 10px 0;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.14);

    /* Make sure it aligns properly with sibling text */
    display: inline-block;
    vertical-align: middle;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2; /* Ensures clean text rendering */
    margin-left: 8px; /* Optional: space between number and label */
}

.server-full {
    color: #ff0000 !important;
    font-weight: bold;
    animation: serverFullPulse 1s infinite;
}

@keyframes serverFullPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-status {
    font-size: 1.5rem;
    margin-top: 4px;
    text-align: center;
}

.server-status {
    font-size: 1.5rem;
    margin-top: 4px;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header img {
        width: 150px;
        height: auto;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header .links {
        flex-direction: column;
        gap: 15px;
        font-size: 0.9rem;
    }

    .stats-container {
        gap: 15px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-number-time {
        font-size: 1.2rem;
    }

    .stat-number-time-red {
        font-size: 1.2rem;
    }

    .card {
        padding: 16px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 12px;
    }

    .time-range-buttons {
        gap: 6px;
    }

    .time-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .lang-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .ticker-container {
        height: 35px;
    }

    .ticker-item {
        padding: 4px 6px;
    }

    .ticker-name {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .header img {
        width: 120px;
        height: auto;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header .links {
        flex-direction: column;
        gap: 10px;
        font-size: 0.8rem;
    }

    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .card {
        padding: 12px;
    }

    .players-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .player-card {
        padding: 14px;
    }

    .time-range-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .time-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .lang-button {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .ticker-container {
        height: 30px;
    }

    .ticker-item {
        padding: 3px 5px;
        font-size: 0.85rem;
    }

    .ticker-name {
        max-width: 100px;
    }

    .log-entry {
        padding: 10px;
        font-size: 0.9rem;
    }
}

.card {
    /*background: var(--bg-card);*/
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
}

.card-title {
    font-size: 1.3rem;
    color: var(--accent-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(139, 190, 85, 0.4);
}

.card-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.players-grid::-webkit-scrollbar {
    width: 6px;
}

.players-grid::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.players-grid::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 3px;
}

.player-card {
    background: rgba(18, 20, 24, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    min-width: 0;
}

.player-card:has(.status-offline) {
    background: rgba(234, 12, 12, 0.1);
}

.player-card:has(.status-online) {
    background: rgba(136, 255, 0, 0.16);
}

.player-card:has(.status-creating) {
    background: rgba(255, 193, 7, 0.16);
    animation: characterCreationPulse 2s infinite;
}

.player-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), var(--glow-green);
    border-color: var(--accent-green);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
    white-space: normal;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.status-offline {
    background: rgba(234, 12, 12, 0.9);
}

.status-creating {
    background: #ffc107;
    /*box-shadow: 0 0 10px #ffc107;*/
    animation: statusPulse 2s infinite;
}

@keyframes characterCreationPulse {
    0%, 100% {
        background: rgba(255, 193, 7, 0.16);
        /*box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);*/
    }
    50% {
        background: rgba(255, 193, 7, 0.25);
        /*box-shadow: 0 0 25px rgba(255, 193, 7, 0.5);*/
    }
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 10px #ffc107;
    }
    50% {
        box-shadow: 0 0 20px #ffc107;
    }
}

.kills-badge {
    background: rgba(141, 7, 7, 0.13);
    color: #dddddd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 254, 254, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.detail-value {
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Time Range Buttons */
.time-range-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.time-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, var(--bg-light), var(--bg-card));
    border: 1px solid var(--border);
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.time-btn:hover {
    color: var(--accent-green);
    border-color: rgba(139, 190, 85, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.time-btn.active {
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 12px rgba(139, 190, 85, 0.4);
    background: linear-gradient(145deg, rgba(139, 190, 85, 0.1), rgba(139, 190, 85, 0.05));
}

/* Charts */
.chart-container {
    height: 300px;
    position: relative;
}

.activity-log::-webkit-scrollbar {
    width: 12px;
}

.activity-log::-webkit-scrollbar-track {
    background: rgba(139, 190, 85, 0.1);
    border-radius: 0 16px 16px 0;
}

.activity-log::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 6px;
}

/* Pulsieren aktivieren, sobald scrollbar vorhanden */
.activity-log:has(:scope > *:last-child)::-webkit-scrollbar-thumb {
    animation: pulse 1s infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0px #28a745;
    }
    50% {
        box-shadow: 0 0 10px #28a745;
    }
    100% {
        box-shadow: 0 0 0px #28a745;
    }
}

/* Log Section */
.activity-log {
    grid-column: 1 / -1;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 16px;
    padding: 24px;
    /*background: var(--bg-card);*/
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* footer Section */
.footer {
    grid-column: 1 / -1;
    max-height: 400px;
    overflow-y: hidden;
    border-radius: 16px;
    padding: 15px;
}

.log-entry {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(18, 20, 24, 0.77);
    border-left: 4px solid var(--accent-green);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.log-entry.kill {
    border-left-color: var(--accent-red);
    background: rgba(236, 47, 40, 0.15);
}

.log-entry.pvp-kill {
    border-left-color: var(--accent-red);
    background: rgba(236, 47, 40, 0.35);
    animation: pvpKillPulse 2s infinite;
    border-left-width: 4px;
    box-shadow: 0 0 10px rgba(236, 47, 40, 0.3);
}

.log-entry.zombie-kill {
    border-left-color: #007bff;
    background: rgba(0, 123, 255, 0.15);
}

.log-entry.connect {
    border-left-color: var(--accent-green);
    background: rgba(139, 190, 85, 0.37);
}

.log-entry.disconnect {
    border-left-color: #d4a017;
    background: rgba(212, 160, 23, 0.33);
}

.log-message {

}

.log-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 15px;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-style: italic;
}

/* Connection Status */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.connected {
    background: rgba(139, 190, 85, 0.15);
    color: var(--accent-green);
    box-shadow: var(--glow-green);
}

.disconnected {
    background: rgba(236, 47, 40, 0.15);
    color: var(--accent-red);
    box-shadow: var(--glow-red);
}

.header .links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
}

/* News Overlay */
.news-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.news-overlay.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5px;
}

.news-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    max-width: 1100px;
    width: 100%;
    max-height: 98vh;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--glow-green);
    position: relative;
}

#newsContent {
    max-height: calc(98vh - 120px);
    overflow: scroll;
}

#newsContent::-webkit-scrollbar {
    width: 12px;
}

#newsContent::-webkit-scrollbar-track {
    background: rgba(139, 190, 85, 0.1);
    border-radius: 0 16px 16px 0;
}

#newsContent::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 6px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.news-title {
    font-size: 1.5rem;
    color: var(--accent-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-close {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.news-close:hover {
    background: rgba(74, 103, 54, 0.3);
    color: var(--accent-green);
}

.news-item {
    margin-bottom: 30px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(18, 20, 24, 0.6);
}

.news-item-title {
    font-size: 1.1rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 8px;
    text-decoration: none;
}

.news-item-title:hover {
    text-decoration: underline;
}

.news-item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.news-item-description {
    color: var(--text);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-item-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
}

.news-item-description iframe,
.news-item-description video,
.news-item-description embed {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
}

.news-item-description .video-container,
.news-item-description .embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 15px 0;
}

.news-item-description .video-container iframe,
.news-item-description .embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.news-item-description p {
    margin: 8px 0;
}

.news-item-description a {
    color: var(--accent-green);
    text-decoration: none;
}

.news-item-description a:hover {
    text-decoration: underline;
}

.news-video-link {
    margin-top: 15px;
    text-align: center;
}

.video-link-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff4444, #cc3333);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
    border: 2px solid #ff4444;
}

.video-link-button:hover {
    background: linear-gradient(135deg, #cc3333, #aa2222);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 68, 68, 0.4);
    color: white;
    text-decoration: none;
}

.news-video-container {
    margin-top: 15px;
    text-align: center;
}

.video-loading {
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.news-video-container video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.news-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

.news-error {
    text-align: center;
    color: #ec2f28;
    padding: 40px;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: var(--accent-green);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    background: var(--accent-darker-green);
    transform: scale(1.1);
}

#newsScrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: var(--accent-green);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    transition: all 0.3s ease;
}

#newsScrollToTopBtn:hover {
    background: var(--accent-darker-green);
    transform: scale(1.1);
}

.menu-button {
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    background: linear-gradient(145deg, var(--bg-card), var(--bg-light));
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-button:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(139, 190, 85, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(145deg, var(--bg-light), var(--bg-card));
}

/* Event Modal */
#eventModalBackdrop {
    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: 2000;
}

#eventModal {
    min-width: 320px;
    max-width: 90vw;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--glow-green);
}

#eventModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

#eventModal .overlay-close {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
}

#eventModal .overlay-close:hover {
    background: rgba(74, 103, 54, 0.3);
    color: var(--accent-green);
}

#eventModal .modal-row {
    margin: 6px 0;
}

#eventModal .modal-row strong {
    text-align: center;
    display: block;
}

#eventModal #modalBody {
    color: var(--text);
    line-height: 1.5;
}

#eventModal .modal-row {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

#eventModal .modal-row:last-child {
    border-bottom: none;
}

#eventModal .modal-row a {
    color: var(--accent-green);
    text-decoration: none;
}

#eventModal .modal-row a:hover {
    text-decoration: underline;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #4d6d3d;
    color: white;
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: rgba(141, 7, 7, 0.75);
    transform: scale(1.5);
}

/* Mobile responsive table -> card */
@media (max-width: 800px) {
    .container {
        padding: 15px;
    }

    .card {
        overflow: visible;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 5px rgba(139, 190, 85, 0.3);
        margin-left: -15px;
        margin-right: -15px;
        padding: 16px 15px;
    }

    tbody tr {
        box-shadow: 0 0 5px rgba(139, 190, 85, 0.3);
    }

    table thead { display: none; }
    table {
        border-collapse: separate;
        border-spacing: 0 16px;
        width: 100%;
    }

    tbody, tr, td {
        display: block;

    }

    tbody tr {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--glow-green);
        overflow: hidden;
        margin-bottom: 16px;
        position: relative;
    }

    tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(74, 103, 54, 0.3);
    }

    tbody td {
        border-bottom: 1px solid rgba(74, 103, 54, 0.15);
        padding: 0;
    }

    tbody td:last-child {
        border-bottom: none;
    }

    /* Avatar badge */
    td.col-avatar {
        position: absolute;
        top: 12px;
        left: 12px;
        background: transparent;
        color: white;
        padding: 0;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 700;
        border: none;
        min-height: auto;
    }

    td.col-avatar img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    /* Player name gets special treatment */
    tbody tr td:nth-child(2) {
        padding: 16px 16px 8px 60px; /* left padding to make room for avatar */
        font-size: 1.1rem;
        font-weight: 600;
        border-bottom: 2px solid var(--border);
    }

    tbody tr td:nth-child(2)::before {
        display: none;
    }

    /* Stats grid */
    tbody tr td:nth-child(n+3) {
        padding: 10px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    tbody tr td:nth-child(n+3)::before {
        content: attr(data-label);
        color: var(--text-secondary);
        font-size: 0.85rem;
        font-weight: 500;
    }

    /* Ensure steam id fits on mobile */
    tbody tr td.col-steamid {
        font-size: 0.85rem;
        word-break: break-all;
    }
}

.ash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.ash {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgb(110, 189, 74);
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(1px);
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* hinter allem anderen */
    opacity: 0.6; /* Transparenz anpassen (0 = unsichtbar, 1 = voll sichtbar) */
}

/* Live Leaderboard Ticker */
.leaderboard-ticker, .weather-ticker {
    margin-bottom: 30px;
    /*background: var(--bg-card);*/
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-green);
    text-shadow: 0 0 5px rgba(139, 190, 85, 0.4);
}

.ticker-icon {
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Android Emoji', 'EmojiSymbols', 'EmojiOne Mozilla', 'Twemoji Mozilla', 'Segoe UI', sans-serif;
    vertical-align: middle;
    margin-right: 2px;
    color: var(--accent-green);
}

.ticker-container {
    position: relative;
    overflow: hidden;
    height: 40px;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    font-size: 0.95rem;
    color: var(--text);
}

.ticker-content:hover {
    animation-play-state: paused;

}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 24px;
    padding: 5px 5px;
    /*background: rgba(74, 103, 54, 0.1);*/
    border: 2px solid rgba(139, 190, 85, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.ticker-item:hover {
    background: rgba(139, 190, 85, 0.2);
    border: 1px solid var(--accent-green);
    box-shadow: 0 4px 12px rgba(139, 190, 85, 0.3);
    min-width: fit-content;
}

.ticker-rank {
    font-weight: bold;
    color: var(--accent-green);
    min-width: 20px;
}

.ticker-name {
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker-kills {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Weather ticker specific styling - news feed style */
.weather-ticker .ticker-item {
    display: inline;
    margin-right: 80px; /* More space between repeated messages */
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: none;
    box-sizing: border-box;
    white-space: nowrap;
    font-weight: 500;
    color: var(--accent-green);
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(139, 190, 85, 0.3);
}

.weather-ticker .ticker-item:hover {
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on mobile for better UX */
@media (max-width: 768px) {
    .ticker-content {
        animation-duration: 45s;
    }
}

.menu-button {
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    background: linear-gradient(145deg, var(--bg-card), var(--bg-light));
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.menu-button:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(139, 190, 85, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(145deg, var(--bg-light), var(--bg-card));
}

.super-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 5px 10px;
    background: linear-gradient(145deg, #0f0f0f, #1c1c1c);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 0 20px rgba(1, 101, 33, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.super-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--accent-green), var(--accent-red), var(--accent-green));
    animation: rotate 4s linear infinite;
    z-index: -2;
}

.super-button::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: inherit;
    z-index: -1;
}

.super-button:hover {
    transform: scale(2.05);
    box-shadow: 0 0 20px rgba(136, 255, 0, 0.62);
}

.super-button:hover .arrow {
    transform: translateX(6px);
}

.arrow {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease-in-out;
    color: #00ffff;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes serverTitleFade {
    0%, 100% { text-shadow: 0 0 8px rgba(139, 190, 85, 0.5); }
    50% { text-shadow: 0 0 8px rgba(236, 47, 40, 0.5); }
}

#serverTitle {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(139, 190, 85, 0.5);
    animation: serverTitleFade 3s infinite;
}

/* Announcement Banner */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Background color and opacity will be set dynamically by admin controls */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease-out;
}

.announcement-banner a {
    text-decoration: none;
}

.announcement-content {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 50px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#announcement-text {
    position: absolute;
    left: 20px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(139, 190, 85, 0.5);
    animation: serverTitleFade 3s infinite;
    /* Background and text colors will be set dynamically by admin controls */
}

.countdown-timer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 20px;
}

.countdown-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-card {
    width: 40px;
    height: 50px;
    perspective: 1000px;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-inner.flipping {
    transform: rotateX(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-green);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
}

.flip-card-back {
    transform: rotateX(180deg);
    background: rgba(139, 190, 85, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.time-label {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.countdown-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    text-align: center;
}

.countdown-live {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-green);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.announcement-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    margin-right: 10px;
    transition: color 0.3s ease;
    line-height: 1;
}

.announcement-close:hover {
    color: var(--accent-red);
}

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

/* Adjust body padding when announcement is visible */
body.has-announcement .container {
    padding-top: 20px;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}



.top-logo {
    width: 50px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.top-logo:hover {
    transform: scale(1.1);
}



.lang-buttons {
    display: flex;
    gap: 10px;
}

.kills-badge {
    background: rgba(141, 7, 7, 0.13);
    color: #dddddd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 254, 254, 0.12);
}

/* Footer */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    z-index: 10;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-logo {
    width: 30px;
    height: auto;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: none !important;
}

.footer-link:hover {
    color: var(--accent-green);
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.lang-button,
.social-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.lang-button:hover,
.social-button:hover {
    background-color: rgba(139, 190, 85, 0.2);
}

.lang-button.active {
    background-color: rgba(139, 190, 85, 0.3);
}

.lang-button img,
.social-button img {
    width: 30px;
    height: 30px;
}

.kills-badge {
    background: rgba(141, 7, 7, 0.13);
    color: #dddddd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 254, 254, 0.12);
}

.kill-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-green);
    text-shadow: 0 0 8px rgba(139, 190, 85, 0.5);
    transition: transform 0.3s ease, color 0.3s ease;
}



/* Server Title Container */
.server-title-container {
    text-align: center;
    margin-top: 80px; /* Space below the top bar */
    margin-bottom: 20px; /* Space before the links */
}

/* Map Preloader */
.map-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.map-preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.preloader-title {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.preloader-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}



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

/* Announcement Banner */
.announcement-banner {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-light));
    border: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), var(--glow-green);
    z-index: 1001;
    text-align: center;
    transition: all 0.3s ease;
}

#announcement-text {
    position: absolute;
    left: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-green);
    text-shadow: 0 0 5px rgba(139, 190, 85, 0.4);
    flex: 1;
    text-align: center;
}

#announcement-text a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}

#announcement-text a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.announcement-close {
    position: absolute;
    right: 20px;
    background: transparent;
    color: #000000;
    border: 2px solid var(--border);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.announcement-close:hover {
    background: rgba(74, 103, 54, 0.3);
    color: var(--accent-green);
    transform: scale(1.1);
}

.banner-visible {
    padding-top: 80px;
}
.banner-visible .language-switcher {
    top: 100px;
}

.kills-badge {
    background: rgba(141, 7, 7, 0.13);
    color: #dddddd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 254, 254, 0.12);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: bold;
    color: var(--accent-green);
    margin: 10px 0;
    text-shadow: 0 0 8px rgba(139, 190, 85, 0.5);
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.kills-badge .stat-number {
    font-size: 1.3rem;
    margin-left: 10px;
}

/* Activity Log */
.activity-log {
    grid-column: 1 / -1;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 16px;
    padding: 24px 12px 24px 24px;
    /*background: var(--bg-card);*/
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.log-message {
    flex: 1;
    text-align: left;
}

.log-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 10px 15px;
        z-index: 1002;
    }
    #announcement-text {
    position: absolute;
    left: 20px;
        font-size: 1rem;
        text-align: center;
    }
    .announcement-content {
    position: relative;
        flex-direction: column;
        gap: 8px;
    }

    .announcement-close {
    position: absolute;
    right: 20px;
        align-self: flex-end;
    }
    .footer-logo {
        width: 20px;
    }
    .top-logo {
        width: 30px;
    }
    img[src*="veinlogo.png"] {
        max-width: 30px;
        height: auto;
    }
    .banner-visible .language-switcher {
        top: 120px;
    }

    /* Make news images bigger on mobile */
    .news-item-description img {
        width: 100%;
        height: auto;
    }

    .activity-log {
        padding: 12px 12px 12px 12px;
    }
}

/* Table */
table {
    width: auto;
    border-collapse: collapse;
    margin-top: 10px;
    min-width: 100%;
}

th, td {
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.95rem;
    padding: 12px 8px;
}

th {
    background: rgba(74, 103, 54, 0.2);
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s ease;
    white-space: nowrap;
    padding: 12px 8px;
}

th:hover {
    background: rgba(74, 103, 54, 0.4);
    cursor: pointer;
}

tr:hover {
    background: rgba(74, 103, 54, 0.1);
    transform: scale(1.01);
    box-shadow: 0 0 8px rgba(74, 103, 54, 0.2);
}

tr:hover td {
    border-bottom-color: var(--accent-green);
}

.player-name-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.player-name-link:hover {
    color: var(--accent-green);
}

/* Scroll to Top Button */
#scrollToTopBtnIndex {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: var(--accent-green);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: all 0.3s ease;
}

#scrollToTopBtnIndex:hover {
    background: var(--accent-darker-green);
    transform: scale(1.1);
}

/* Announcement Banner */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 7, 11, 0.95);
    backdrop-filter: blur(10px);
}



#announcement-text {
    position: absolute;
    left: 20px;
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 8px rgba(139, 190, 85, 0.5);
    animation: serverTitleFade 3s infinite;
    font-weight: 500;
}

#announcement-text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--accent-green);
    transition: text-decoration-color 0.3s ease;
}

#announcement-text a:hover {
    text-decoration-color: var(--accent-red);
}

.announcement-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.announcement-close:hover {
    background: rgba(236, 47, 40, 0.2);
    color: var(--accent-red);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(236, 47, 40, 0.4);
}

.announcement-close::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-red));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}



@keyframes bannerGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(139, 190, 85, 0.3),
            0 0 40px rgba(236, 47, 40, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 25px rgba(139, 190, 85, 0.4),
            0 0 50px rgba(236, 47, 40, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

@keyframes serverTitleFade {
    0%, 100% {
        text-shadow: 0 0 8px rgba(139, 190, 85, 0.5);
    }
    50% {
        text-shadow: 0 0 12px rgba(139, 190, 85, 0.7), 0 0 20px rgba(236, 47, 40, 0.3);
    }
}

@keyframes bannerGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(139, 190, 85, 0.3),
            0 0 40px rgba(236, 47, 40, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 25px rgba(139, 190, 85, 0.4),
            0 0 50px rgba(236, 47, 40, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}


