@font-face {
  font-family: "Ethnocentric";
  src: url("../Fonts/ETHNOCEN.TTF") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0b0a08;
  --surface: #15120e;
  --line: rgba(224, 177, 87, .2);
  --gold: #d7a444;
  --gold-light: #f2d397;
  --text: #f6f1e8;
  --muted: #a9a195;
  --green: #7edc85;
}

* { box-sizing: border-box; }

.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;
}

body {
  min-height: 720px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 20%, rgba(155, 96, 32, .2), transparent 25rem),
    linear-gradient(rgba(11, 10, 8, .88), rgba(11, 10, 8, .96)),
    url("../assets/tantra-artwork/tantra-sacred-gateway.png") center 38% / cover no-repeat,
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .025;
  background-image:
    linear-gradient(90deg, #fff 1px, transparent 1px),
    linear-gradient(#fff 1px, transparent 1px);
  background-size: 48px 48px;
}

.online-page {
  min-height: 720px;
  padding: 72px clamp(24px, 7vw, 90px);
}

.online-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  width: min(100%, 1000px);
  margin: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--gold);
}

h1 {
  margin: 0;
  font: 700 clamp(52px, 8vw, 88px) / .94 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
  text-shadow: 0 4px 40px #000;
}

h1 em {
  color: var(--gold-light);
  font-weight: 400;
}

.online-copy > p:last-child {
  max-width: 530px;
  margin: 28px 0 0;
  color: #cac3b8;
  font-size: 15px;
  line-height: 1.7;
}

.online-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(21, 18, 14, .92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
}

.online-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.status-line,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-line {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.status-line i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(126, 220, 133, .1), 0 0 12px var(--green);
}

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

.online-count {
  display: block;
  margin-top: 28px;
  color: var(--gold-light);
  font: 700 clamp(76px, 12vw, 118px) / .9 Georgia, "Times New Roman", serif;
  letter-spacing: -.06em;
}

.online-label {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.card-footer a {
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.card-footer a:hover { color: #fff; }

.online-card.is-unavailable .status-line i {
  background: #d46c5f;
  box-shadow: 0 0 0 5px rgba(212, 108, 95, .1), 0 0 12px #d46c5f;
}

.players-panel,
.equipment-panel {
  width: min(100%, 1000px);
  margin: 64px auto 0;
  border: 1px solid var(--line);
  background: rgba(21, 18, 14, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.panel-heading small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 0;
  font: 700 clamp(23px, 3vw, 32px) / 1.1 Georgia, "Times New Roman", serif;
}

.section-number {
  color: rgba(215, 164, 68, .62);
  font: 400 25px Georgia, "Times New Roman", serif;
}

.live-indicator {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-indicator i,
.player-name i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(126, 220, 133, .8);
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

thead { background: rgba(215, 164, 68, .055); }

th,
td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(224, 177, 87, .11);
}

thead th {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

tbody tr:last-child > * { border-bottom: 0; }
tbody tr { transition: background .2s ease; }
tbody tr:hover,
tbody tr.is-selected { background: rgba(215, 164, 68, .06); }

.row-number {
  width: 70px;
  color: rgba(215, 164, 68, .68);
  font: 400 18px Georgia, "Times New Roman", serif;
}

.player-name {
  font-size: 14px;
  letter-spacing: .02em;
}

.action-cell {
  width: 190px;
  text-align: right;
}

.detail-button,
.close-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  color: var(--gold-light);
  border: 1px solid rgba(215, 164, 68, .38);
  background: rgba(215, 164, 68, .07);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.detail-button:hover,
.close-detail:hover {
  color: #171006;
  border-color: var(--gold);
  background: var(--gold-light);
}

.equipment-panel { scroll-margin-top: 24px; }
.equipment-table { font-size: 12px; }
.equipment-table th[scope="row"] { color: var(--text); }

.slot-name {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.refine-level {
  color: var(--green);
  font-weight: 800;
}

.empty-row {
  padding: 42px 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .online-page { padding-block: 52px; }
  .online-hero { grid-template-columns: 1fr; gap: 38px; }
  .online-card { width: 100%; }
  .players-panel,
  .equipment-panel { margin-top: 42px; }
  .panel-heading { align-items: flex-start; padding: 22px; }
  th,
  td { padding: 16px; }
}

@media (max-width: 430px) {
  .online-page { padding-inline: 18px; }
  .online-card { padding: 22px; }
  .card-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .panel-heading { flex-direction: column; }
  .action-cell { width: auto; }
  .detail-button { padding-inline: 11px; }
}
