@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg: linear-gradient(135deg, #0f172a 0%, #0a1022 50%, #0b122b 100%);
    --card: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #e9ecf4;
    --muted: #9aa5c4;
    --accent: #38bdf8;
    --accent-2: #a855f7;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    --online: #22c55e;
    --offline: #ef4444;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Noto Sans SC', 'Space Grotesk', 'Microsoft YaHei UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 15% 30%, rgba(56, 189, 248, 0.14), transparent 32%), radial-gradient(circle at 75% 10%, rgba(168, 85, 247, 0.18), transparent 36%);
    filter: blur(70px);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 18px 60px;
}

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

.title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 0.5px;
}

.title small {
    color: var(--muted);
}

.pill {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

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

.table-wrapper {
    border-radius: 12px;
    overflow: auto;
    border: 1px solid var(--card-border);
    max-height: 520px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
}

thead {
    background: rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    font-size: 14px;
}

th {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.2px;
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.12s ease;
}

tbody tr:hover {
    background: rgba(56, 189, 248, 0.05);
}

.player-name {
    font-weight: 700;
}

.level-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    font-weight: 700;
}

.map-tag {
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.12);
    color: #e9d5ff;
}

.currency {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.currency .unit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.currency .t { color: #ef4444; }
.currency .m { color: #22c55e; }
.currency .bit { color: #cbd5e1; }

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

.online { color: #a7f3d0; }
.offline { color: #fecdd3; }

.search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    min-width: 200px;
}

button {
    border: none;
    cursor: pointer;
    border-radius: 10px;
    color: #0b1224;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.btn.secondary {
    background: linear-gradient(135deg, #94a3b8, #475569);
    color: #e2e8f0;
    box-shadow: 0 10px 18px rgba(71, 85, 105, 0.25);
}

.btn:hover {
    transform: translateY(-1px);
}

.empty {
    color: var(--muted);
    text-align: center;
    padding: 18px 0;
}

@media (max-width: 720px) {
    header { flex-direction: column; align-items: flex-start; }
    .title h1 { font-size: 22px; }
    th, td { padding: 10px; }
}
