:root {
  --bg: #0b0f0d;
  --panel: #121814;
  --panel-2: #171f1a;
  --line: #28342c;
  --text: #f3f1e8;
  --muted: #a3ada6;
  --gold: #d8ad4d;
  --gold-2: #f0cf7a;
  --green: #63c181;
  --red: #df7468;
  --amber: #dca858;
  --shadow: 0 22px 70px rgba(0,0,0,.34);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -15%, rgba(216,173,77,.12), transparent 33rem),
    radial-gradient(circle at 90% 18%, rgba(70,123,86,.10), transparent 28rem),
    linear-gradient(180deg, #0d120f 0%, #090d0b 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.ore-glow {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: .08;
}
.ore-glow-a { left: -10rem; top: 35%; background: var(--gold); }
.ore-glow-b { right: -12rem; top: 62%; background: #4aa46b; }

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(240,207,122,.45);
  background: linear-gradient(145deg, #2c2414, #16150f);
  box-shadow: inset 0 0 0 3px rgba(216,173,77,.05);
  color: var(--gold-2);
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 23px;
  transform: rotate(45deg);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1;
}
.brand-sub {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.directory-health {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.health-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #748078;
  box-shadow: 0 0 0 4px rgba(116,128,120,.10);
}
.directory-health.online .health-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(99,193,129,.12), 0 0 20px rgba(99,193,129,.25);
}
.directory-health.offline .health-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(223,116,104,.12);
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 68px 8px 38px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.035em;
}
.hero-copy {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.stats {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(18,24,20,.75);
  box-shadow: var(--shadow);
}
.stat {
  min-width: 104px;
  padding: 17px 18px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  display: block;
  font-family: Georgia, serif;
  color: var(--gold-2);
  font-size: 25px;
}
.stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.browser-card {
  border: 1px solid var(--line);
  background: rgba(18,24,20,.93);
  box-shadow: var(--shadow);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px auto auto;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #101612;
}

input, select, button { font: inherit; }

.search-wrap input,
.select-wrap select {
  width: 100%;
  height: 42px;
  border: 1px solid #334138;
  border-radius: 2px;
  outline: none;
  background: #0d120f;
  color: var(--text);
}
.search-wrap input { padding: 0 14px; }
.select-wrap select { padding: 0 38px 0 12px; }
.search-wrap input:focus,
.select-wrap select:focus {
  border-color: rgba(216,173,77,.75);
  box-shadow: 0 0 0 3px rgba(216,173,77,.08);
}

.check-wrap {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #334138;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.check-wrap input { accent-color: var(--gold); }

.refresh-button {
  height: 42px;
  min-width: 112px;
  border: 1px solid rgba(216,173,77,.5);
  border-radius: 2px;
  background: linear-gradient(180deg, #352b18, #251f13);
  color: var(--gold-2);
  font-weight: 800;
  cursor: pointer;
}
.refresh-button:hover { border-color: var(--gold-2); }
.refresh-button:disabled { opacity: .55; cursor: wait; }

.table-wrap {
  position: relative;
  min-height: 330px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: #7f8d84;
  background: #111713;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .13em;
}
td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(40,52,44,.72);
  color: #d7ddd8;
  font-size: 14px;
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: rgba(255,255,255,.025); }

.server-name {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 780;
}
.server-gem {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 12px rgba(216,173,77,.3);
}

.player-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 115px;
}
.meter {
  width: 54px;
  height: 5px;
  background: #28312b;
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  background: var(--green);
}

.region-pill,
.protocol {
  color: #b8c1bb;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status.available { color: #8ed5a4; }
.status.available::before { background: var(--green); }
.status.full { color: #e2b970; }
.status.full::before { background: var(--amber); }

.loading-state,
.empty-state {
  position: absolute;
  inset: 44px 0 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.loading-state[hidden],
.empty-state[hidden] { display: none; }
.loader {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border: 2px solid #344139;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-icon {
  color: var(--gold);
  font-size: 30px;
}
.empty-state h2 {
  margin: 10px 0 5px;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 22px;
}
.empty-state p { margin: 0; }

.browser-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: #748078;
  font-size: 11px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.info-grid article {
  padding: 21px 22px;
  border: 1px solid rgba(40,52,44,.8);
  background: rgba(18,24,20,.58);
}
.info-grid h2 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 18px;
}
.info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 4px 0;
  color: #667168;
  font-size: 11px;
  letter-spacing: .08em;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .stats { width: max-content; max-width: 100%; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1220px); padding-top: 18px; }
  .topbar { align-items: flex-start; }
  .brand-sub { display: none; }
  .directory-health { font-size: 11px; }
  .hero { padding: 38px 2px 25px; }
  .hero h1 { font-size: 42px; }
  .stats { width: 100%; }
  .stat { min-width: 0; flex: 1; padding: 13px 10px; }
  .toolbar { grid-template-columns: 1fr; }
  .browser-footer { flex-direction: column; gap: 4px; }
  .site-footer { flex-direction: column; gap: 8px; }
}
