* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f1117; color: #e1e4e8; line-height: 1.5; }
nav { background: #161b22; border-bottom: 1px solid #30363d; padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
nav .brand { color: #58a6ff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav-links a { color: #8b949e; text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: #e1e4e8; }
main { max-width: 1400px; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: 1.5rem; margin-bottom: 1rem; color: #f0f6fc; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; color: #c9d1d9; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.card { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 1rem; }
.card .label { font-size: 0.8rem; color: #8b949e; text-transform: uppercase; letter-spacing: 0.05em; }
.card .value { font-size: 1.6rem; font-weight: 700; color: #58a6ff; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.85rem; }
th { text-align: left; padding: 0.5rem 0.75rem; background: #161b22; border-bottom: 2px solid #30363d; color: #8b949e; font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; position: sticky; top: 0; }
td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #21262d; }
tr:hover td { background: #161b22; }
td a { color: #58a6ff; text-decoration: none; }
td a:hover { text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filters a { padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.8rem; text-decoration: none; color: #8b949e; border: 1px solid #30363d; }
.filters a.active { background: #1f6feb; color: #fff; border-color: #1f6feb; }

.search-box { margin-bottom: 1.5rem; display: flex; gap: 0.5rem; }
.search-box input { background: #0d1117; border: 1px solid #30363d; border-radius: 6px; padding: 0.5rem 0.75rem; color: #e1e4e8; font-size: 0.9rem; flex: 1; max-width: 400px; }
.search-box button { background: #238636; color: #fff; border: none; border-radius: 6px; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.9rem; }
.search-box button:hover { background: #2ea043; }

.player-detail { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 1.5rem; }
.player-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; }
.player-detail dt { color: #8b949e; font-size: 0.85rem; }
.player-detail dd { font-weight: 600; }

.vip { display: inline-block; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.vip-high { background: #f0883e22; color: #f0883e; }
.vip-whale { background: #da3633aa; color: #fff; }

.empty { color: #484f58; font-style: italic; padding: 2rem; text-align: center; }

.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.table-wrap table { min-width: 1200px; margin-bottom: 0; }
.sig { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig:hover { white-space: normal; overflow: visible; max-width: none; }

.chart-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.chart-container { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 1rem 1.25rem; }
.chart-container h2 { margin-top: 0; }
.chart-container canvas { max-height: 400px; }

@media (max-width: 600px) {
  nav { padding: 0.5rem 1rem; gap: 0.75rem; }
  main { padding: 1rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  table { font-size: 0.75rem; }
  th, td { padding: 0.35rem 0.5rem; }
}
