/* 1. Basis-Setup */
:root {
    --terminal-green: #00FF00;
    --terminal-yellow: #FFFF00;
    --bg-dark: #0a0a0a;
}
.hidden {
    display: none !important;
}

body {
    margin: 0;
    padding: 10px;
    background: #000 url('starry.jpg') fixed center;
    background-size: cover;
    color: var(--terminal-green);
    font-family: "Courier New", monospace;
    line-height: 1.4;
}

/* 2. Container & Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    border: 2px solid #33FF33;
    background: rgba(0, 0, 0, 0.85);
}

h1, h3 {
    text-transform: uppercase;
    color: var(--terminal-yellow);
    text-align: center;
}

/* 3. Button-Grid (Die "Global Actions") */
.global-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

/* Globales Button-Tag für die Action-Buttons oben */
button {
    width: 100%;
    padding: 12px;
    background: #000;
    color: var(--terminal-green);
    border: 2px solid #00ffff;
    font-weight: bold;
    cursor: pointer;
}

button:hover { background: var(--terminal-yellow); color: #000; }

/* 4. Responsive Tabelle */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

th {
    background: #003300;
    padding: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #003300;
}

.bier-counter {
    color: var(--terminal-yellow);
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.highlight-box {
    border: 2px solid var(--terminal-green);
    padding: 15px;
    margin: 20px 0;
    background: rgba(0, 50, 0, 0.2);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--terminal-yellow);
}

.ads-box {
  margin: -5px 0px 20px 0px;
  height: 100px;
}


@media (min-width: 600px) {
    .global-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    body { padding: 40px; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin: 2px;
    background-color: #000;
    color: #FF00FF;
    border: 2px solid #FF00FF;
    text-decoration: none;    
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
    height: 35px;
    width: 150px;
    vertical-align: middle;
}

/* Der "Speichern"-Button bleibt breit (100%) */
.save-btn { 
    width: 100%; 
    padding: 15px; 
    background: #FF00FF; 
    color: #000; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    margin-top: 20px; 
    font-family: "Courier New", monospace;
}

/* Der "Zurück"-Button wird kompakt und bekommt eine andere Schrift */
.btn-babyblue { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 10px 20px; 
    background: #89CFF0; 
    color: #000; 
    text-decoration: none; 
    font-weight: bold; 
    font-family: Arial, sans-serif; /* Andere Font hier */
    text-align: center;
}
.btn-babyblue:hover {
    background-color: #cc0000;
    border-color: #5dade2;
}

/* Hover-Effekt für Standard Buttons */
.btn:hover,
.btn_index:hover {
    background-color: #ff00ff;
    color: #000;
}

/* Dein Index Button Stil */
.btn_index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #FF00FF;
    border: 3px solid #FF00FF;
    text-decoration: none;    
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
    height: 50px;
    vertical-align: middle;
    padding: 0 15px;
}

/* Badge für Statistiken */
.stat-badge1 {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    margin: 1px;
    font-size: 13px;
}
.stat-badge2 {
    /* Cyan mit 20% Deckkraft (0.2) */
    background: rgba(0, 255, 255, 0.2); 
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    margin: 1px;
    font-size: 13px;
}

.stat-badge3 {
    /* Pink mit 20% Deckkraft (0.2) */
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    margin: 1px;
    font-size: 13px;
}

/* Erzwingt feste Spaltenbreiten für die Tabelle */
.user-list {
    width: 100%;
    table-layout: fixed; /* WICHTIG: Tabelle ignoriert nun den Inhalt bei der Breitenberechnung */
    border-collapse: collapse;
    background: #000;
    border: 2px solid #00FF00;
}

/* Begrenzung der Namensspalte */
.col-rank {
    width: 15px;            /* Feste Breite für den Namen */
    overflow: hidden;       /* Versteckt überstehenden Text */
    white-space: nowrap;    /* Verhindert Zeilenumbruch */
    vertical-align: middle;
}

.col-name {
    width: 55px;            /* Feste Breite für den Namen */
    overflow: hidden;       /* Versteckt überstehenden Text */
    white-space: nowrap;
    vertical-align: middle;
}

.mini-games-col {
    width: auto;
    word-wrap: break-word;
}

.col-points { 
    width: 30px; 
    text-align: left; 
    white-space: nowrap; 
}

/* Das Overlay, das den Hintergrund abdunkelt */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); /* 80% Schwarz */
    z-index: 99;
}