@font-face {
  font-family: 'Press Start 2P';
  src: url('/fonts/PressStart2P.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
  font-size-adjust: 0.52;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}


/* ============================= */
/* BASE */
/* ============================= */


body {
    margin: 0;
    padding: 0;
    background: #070b07;
    font-family: "Press Start 2P", system-ui;
    color: #9adf8a;
    opacity: 0.85;
    display: flex;
    padding: 10px; 
    justify-content: center;
    align-items: flex-start;
}


.frame {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px;
    box-sizing: border-box;
    border: 3px solid #1b2b1b;;
    border-radius: 25px;
    background: #0d130f;
    box-shadow: 0 0 40px #000 inset;
    position: relative;
    min-height: 260px;


    background-image:
        linear-gradient(180deg, rgba(30,45,30,0.25), rgba(0,0,0,0.4)),
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NgYGAAAAAEAAGjCh4sAAAAAElFTkSuQmCC");
    background-size: cover;
}


/* ============================= */
/* HEADER */
/* ============================= */


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}


/* Logo image */
.logo-img img {
    height: 64px;
    width: auto;
    display: block;
}


/* Title */
.header {
    font-size: 25px;
    letter-spacing: 2px;
    white-space: nowrap;
}


/* ============================= */
/* MENU */
/* ============================= */


.menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}


.menu a {
    color: #9adf8a;
    text-decoration: none;
}


.menu a:hover {
    color: #84ff42;
}


/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #1b2b1b;
    color: #9adf8a;
    font-family: "Press Start 2P", system-ui;
    padding: 6px 10px;
    cursor: pointer;
}


/* Links */
.menu-links {
    display: flex;
    gap: 15px;
}


/* ============================= */
/* CONTENT LAYOUT */
/* ============================= */


.flexer {
    display: flex;
    column-gap: 15px;
    min-height: 620px;
}


.leftcontainer {
    min-height: 4em;
    width: 75%;
}


.rightcontainer {
    width: 25%;
    min-height: 140px;
}

.index-box-right {
    min-height: 340px;
}

.index-box,
.index-box-right,
.index-box-server {
    background: #0a0f0a;
    padding: 15px;
    border: 2px solid #1c2d1c;
    border-radius: 15px;
    box-shadow: 0 0 20px #000 inset;
}


/* ============================= */
/* ELEMENTS */
/* ============================= */


img {
    max-width: 100%;
    height: auto;
}


hr {
    border: 0;
    height: 2px;
    background: #1b2b1b;
    width: 96%;
}


p {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
}


marquee {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 700;
}


/* ============================= */
/* SERVER LIST */
/* ============================= */
#serversList {
    min-height: 180px;
}

#serversList h5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
    cursor: pointer;
}


#serversList h5:hover {
    background: #0a0f0a;
}


.server-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}


.server-status-dot.online {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: pulse 2s infinite;
}


.server-status-dot.offline {
    background: #ff4444;
}


@keyframes pulse {
    50% { opacity: 0.6; transform: scale(1.2); }
}


/* ============================= */
/* TABLET */
/* ============================= */


@media (max-width: 900px) {
    .flexer {
        flex-direction: column;
        min-height: 620px;
        row-gap: 15px;
         padding: 20px 0;   /* top + bottom breathing room */
    }


    .leftcontainer,
    .rightcontainer {
        width: 100%;
        min-height: 140px;
    }


    .header {
        font-size: 22px;
    }
}


/* ============================= */
/* MOBILE */
/* ============================= */


@media (max-width: 600px) {


    .frame {
        padding: 10px;
        border-radius: 15px;
    }


    /* Mobile menu */
    .menu-toggle {
        display: block;
    }


    .menu-links {
        position: absolute;
        top: 40px;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 12px;
        background: #0a0f0a;
        border: 2px solid #1c2d1c;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 0 20px #000 inset;
        z-index: 999;
    }


    .menu-links.open {
        display: flex;
    }


    /* Move stats above content */
    .rightcontainer {
        order: -1;
    }


    p {
        font-size: 14px;
    }


    marquee {
        font-size: 13px;
    }
}
#serversList h5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#serversList h5:hover {
    background: #0a0f0a;
}

.server-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.server-status-dot.online {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88, 0 0 16px #00ff88;
    animation: pulse 2s ease-in-out infinite;
}

.server-status-dot.offline {
    background: #ff4444;
    box-shadow: 0 0 4px #ff4444;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.server-name {
    flex: 1;
    font-weight: 500;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.server-map {
    color: #888;
    font-size: 0.85em;
    margin-right: 10px;
}

.server-players {
    font-weight: bold;
}

.server-players.has-players {
    color: #00ff88;
}

.server-players.empty {
    color: #666;
}

.server-loading {
    color: #888;
    font-style: italic;
    padding: 10px;
}

.server-error {
    color: #ff6666;
    padding: 10px;
}

/* Player tooltip on hover */
.server-tooltip {
    display: none;
    position: absolute;
    background: #0d130f;
    background-image:
            linear-gradient(180deg, rgba(30,45,30,0.25), rgba(0,0,0,0.4)),
            url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NgYGAAAAAEAAGjCh4sAAAAAElFTkSuQmCC");
        background-size: cover;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    z-index: 1000;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.server-tooltip.visible {
    display: block;
}

.server-tooltip h6 {
    margin: 0 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
    color: #fff;
}

.server-tooltip .player {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 0.9em;
}

.server-tooltip .player-name {
    color: #ddd;
}

.server-tooltip .player-score {
    color: #00ff88;
}


#otdm-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 500px;
     min-height: 300px;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
}

#otdm-widget .widget-title {
    font-family: "Press Start 2P", system-ui;
    color: #9adf8a;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

#otdm-widget .widget-title.live {
    color: #ef4444;
}

#otdm-widget .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

#otdm-widget .match-row {
    display: flex;
    min-height: 42px;
    align-items: center;
     min-height: 42px;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

#otdm-widget .match-row:last-child {
    border-bottom: none;
}

#otdm-widget .match-row.live {
    background: rgba(208, 6, 6, 0.284);
    margin: 0 -16px;
    padding: 10px 16px;
    border-radius: 8px;
}

#otdm-widget .team {
    flex: 1;
    min-width: 0;
}

#otdm-widget .team-left { text-align: left; }
#otdm-widget .team-right { text-align: right; }

#otdm-widget .player {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

#otdm-widget .player.winner { color: #3b82f6; }
#otdm-widget .player.loser { color: #ef4444; }

#otdm-widget .score {
    font-size: 18px;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
    color: #fff;
}

#otdm-widget .score .vs {
    font-size: 12px;
    color: #666;
}

#otdm-widget .no-matches {
    color: #666;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

#otdm-widget .view-all {
    font-family: "Press Start 2P", system-ui;
    color: #9adf8a;
    display: block;
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

#otdm-widget .view-all:hover { text-decoration: underline; }
#otdm-widget .section { margin-bottom: 16px; }
#otdm-widget .section:last-of-type { margin-bottom: 0; }
 a {
        color: #9adf8a;
        text-decoration: none;
    }

    a:hover {
        color: #84ff42;