:root {
    --bg-color: #0f0f11;
    --card-bg: #1a1a1d;
    --border-color: #2a2a2f;
    --text-main: #ffffff;
    --text-muted: #8b8b93;
    --accent-color: #e5a93c;
    --status-online: #4ade80;
    --status-studio: #f59e0b;
    --status-offline: #52525b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 40px 20px;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: #444;
}

.game-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.game-icon {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background-color: #333;
    object-fit: cover;
}

.game-info h3 {
    font-size: 16px;
    font-weight: 600;
}

.update-time {
    font-size: 12px;
    color: var(--text-muted);
}

.game-stats h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 2px;
}

.game-stats p {
    font-size: 12px;
    color: var(--text-muted);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.section-header .count {
    background-color: var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #333;
    object-fit: cover;
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 14px;
    font-weight: 600;
}

.member-role {
    font-size: 12px;
    color: var(--text-muted);
}

.status-container {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-container .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: capitalize;
}

.status-online { background-color: var(--status-online); }
.status-studio { background-color: var(--status-studio); }
.status-offline { background-color: var(--status-offline); }

.member-card.lead {
    border-color: #3f3f46;
}

/* --- NEW LOADING ANIMATION --- */
.loading-number {
    color: transparent !important;
    background-color: var(--border-color);
    border-radius: 4px;
    display: inline-block;
    min-width: 60px;
    animation: subtlePulse 2s infinite ease-in-out;
}

.loading-text {
    color: transparent !important;
    background-color: var(--border-color);
    border-radius: 4px;
    display: inline-block;
    min-width: 100px;
    animation: subtlePulse 2s infinite ease-in-out;
}

@keyframes subtlePulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Add to bottom of style.css */

/* Game Description Styling */
.game-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
    line-height: 1.5;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Member Card Hover Effect for Clickability */
.member-card {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
    background-color: #222226;
    border-color: #444;
}

/* Adjusts the margin for the new Places header */
.games-grid + .team-section {
    margin-top: 10px; 
}

/* Gives the Places header a bit of space below it */
.section-header + .games-grid {
    margin-top: -5px;
    margin-bottom: 40px;
}