* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100vh; }
html { background: transparent; }
body {
  font-family: "Noto Sans HK","PingFang HK","Microsoft JhengHei",sans-serif;
  background: transparent !important;
  display: grid;
  place-items: center;
  color: #232323;
  overflow: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.container {
  position: relative;
  width: min(92vw, 560px);
  padding: 28px 24px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.45);
  text-align: center;
}
.site-name {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7f3636;
  margin-bottom: 10px;
}
h1 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  color: #232323;
}
.lb-inline-close {
  display: none; /* only shown when explicitly opened in panel view via .is-visible */
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(127,54,54,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: #7f3636;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.lb-inline-close.is-visible {
  display: flex;
}
.lb-inline-close:hover {
  background: #7f3636;
  color: #fff;
}
#content {
  min-height: 0;
}
.loading, .empty, .error {
  padding: 34px 0;
  font-size: 14px;
  color: #6b6763;
}
.loading::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 14px auto 0;
  border: 2px solid rgba(127,54,54,.18);
  border-top-color: #7f3636;
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.table-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(231,226,218,.9);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}
thead th {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(10px);
  color: #6b6763;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(231,226,218,.9);
  padding: 12px 12px;
}
tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(231,226,218,.8);
  font-size: 14px;
  color: #232323;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td {
  background: rgba(127,54,54,.045);
}
tbody tr:first-child td {
  font-weight: 700;
  color: #7f3636;
  background: rgba(127,54,54,.05);
}
.rank-col {
  width: 60px;
  text-align: center;
}
.score-col {
  width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.name-col {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.refresh-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7f3636, #a34545);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(127,54,54,.24);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.refresh-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(127,54,54,.28); }
.refresh-btn:active { transform: translateY(0); opacity: .92; }
@media (max-width: 480px) {
  .container { width: min(94vw, 560px); padding: 22px 16px 18px; border-radius: 20px; }
  h1 { font-size: .95rem; margin-bottom: 12px; }
  tbody td, thead th { padding: 11px 10px; }
  .rank-col { width: 50px; }
  .score-col { width: 64px; }
}
