@font-face {
  font-family: "Tannenberg";
  src: url("/fonts/tannenberg.bold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "grobe-deutschmeister";
  src: url("/fonts/grobe-deutschmeister.regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "inder";
  src: url("/fonts/inder.regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: rgb(31, 31, 34);
  --bg-header: rgb(24, 24, 27);
  --panel: rgb(38, 38, 42);

  --text: rgb(200, 196, 183);
  --muted: rgba(200, 196, 183, 0.62);

  --red-wine: rgb(191, 55, 55);
  --red-dark: rgb(92, 24, 28);

  --border: rgba(200, 196, 183, 0.16);
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  width: 100%;
  flex-shrink: 0;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 20;
}

.top-line {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-area img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--red-wine);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

main {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 72px;
}

.kicker {
  margin-bottom: 18px;
  color: var(--red-wine);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(58px, 8vw, 108px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero-text {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.motto {
  margin-bottom: 34px;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-family: "grobe-deutschmeister", "Oswald", Arial, sans-serif;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  min-width: 150px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red-wine);
  color: var(--text);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--red-wine);
  color: var(--bg);
}

.btn.secondary {
  border-color: var(--border);
  color: var(--muted);
}

.btn.secondary:hover {
  border-color: var(--red-wine);
  color: var(--bg);
}

.btn.discord-btn {
  display: none;
}

.btn.discord-btn.visible {
  display: inline-flex;
}

.status-card {
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.status-title {
  margin-bottom: 8px;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-subtitle {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.status-item {
  border-top: 1px solid var(--red-wine);
  padding-top: 16px;
}

.status-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-item strong {
  display: block;
  color: var(--text);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.online-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgb(65, 180, 90);
  box-shadow: 0 0 10px rgba(65, 180, 90, 0.85);
  vertical-align: middle;
}

.inner-page {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 24px;
  display: flex;
}

.blank-panel {
  flex: 1;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 520px;
}

.blank-panel::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 28px;
  width: 70px;
  height: 2px;
  background: var(--red-wine);
  opacity: 0.85;
}

.page-content {
  width: 100%;
  max-width: 860px;
  padding: 72px 24px;
}

.page-title {
  margin-bottom: 22px;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

footer {
  flex-shrink: 0;
  padding: 14px 24px;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: "inder", "Inter", Arial, sans-serif;
}

.twitter {
  color: rgb(217, 192, 104);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: flex-start;
  }

  .status-card {
    max-width: 520px;
  }

  nav {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  header {
    position: relative;
  }

  .top-line {
    padding: 10px 0 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .logo-area {
    width: 100%;
    justify-content: center;
    padding: 0 16px;
  }

  .logo-area img {
    width: 56px;
    height: 56px;
  }

  nav {
    width: 100%;
    padding: 0 14px 7px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  nav::-webkit-scrollbar {
    height: 4px;
  }

  nav::-webkit-scrollbar-thumb {
    background: rgba(200, 196, 183, 0.35);
    border-radius: 20px;
  }

  .nav-link {
    flex: 0 0 auto;
    padding: 8px 0;
    font-size: 11px;
  }

  .hero {
    padding: 36px 20px;
    gap: 40px;
  }

  .kicker {
    font-size: 11px;
    line-height: 1.6;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-text {
    font-size: 15px;
  }

  .motto {
    font-size: 18px;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .status-title {
    font-size: 34px;
  }

  .status-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .status-item strong {
    font-size: 54px;
  }

  .inner-page {
    padding: 30px 20px;
    min-height: 430px;
  }

  .blank-panel {
    min-height: 360px;
  }

  .blank-panel::before {
    left: 20px;
    top: 20px;
    width: 50px;
  }

  .page-content {
    padding: 54px 18px;
  }

  footer {
    padding: 12px 18px;
    font-size: 10px;
    line-height: 1.5;
  }
}


/* ================================
   PLAYERS PAGE
================================ */

.players-page {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 64px;
}

.players-header {
  width: 100%;
  max-width: 900px;
  margin-bottom: 36px;
}

.players-header .page-title {
  margin-bottom: 18px;
}

.players-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.players-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.players-table thead {
  background: rgb(24, 24, 27);
}

.players-table th {
  padding: 18px 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: center;
  border-right: 1px solid rgba(200, 196, 183, 0.10);
  border-bottom: 1px solid var(--accent);
}

.players-table th:first-child {
  text-align: left;
}

.players-table th:last-child {
  border-right: none;
}

.players-table td {
  padding: 18px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(200, 196, 183, 0.08);
  border-bottom: 1px solid rgba(200, 196, 183, 0.10);
}

.players-table td:first-child {
  text-align: left;
  font-weight: 900;
  color: rgb(230, 225, 210);
}

.players-table td:last-child {
  border-right: none;
}

.players-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.030);
}

.players-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.010);
}

.players-table tbody tr:hover {
  background: rgba(255, 196, 33, 0.06);
}

.players-table tbody tr:last-child td {
  border-bottom: none;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid rgba(255, 196, 33, 0.45);
  background: rgba(255, 196, 33, 0.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.status-badge.active {
  color: rgb(65, 180, 90);
  border-color: rgba(65, 180, 90, 0.45);
  background: rgba(65, 180, 90, 0.08);
}

.status-badge.reserve {
  color: var(--accent);
  border-color: rgba(255, 196, 33, 0.45);
  background: rgba(255, 196, 33, 0.08);
}

.status-badge.inactive {
  color: rgba(200, 196, 183, 0.45);
  border-color: rgba(200, 196, 183, 0.20);
  background: rgba(200, 196, 183, 0.05);
}

/* MOBILE - tabela vira cards */

@media (max-width: 760px) {
  .players-page {
    padding: 34px 20px 52px;
  }

  .players-header {
    margin-bottom: 28px;
  }

  .players-table-wrap {
    border: none;
    background: transparent;
    overflow: visible;
  }

  .players-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 18px;
    table-layout: auto;
  }

  .players-table thead {
    display: none;
  }

  .players-table,
  .players-table tbody,
  .players-table tr,
  .players-table td {
    display: block;
    width: 100%;
  }

  .players-table tr {
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
  }

  .players-table tbody tr:nth-child(odd),
  .players-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
  }

  .players-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(200, 196, 183, 0.10);
    text-align: right;
    font-size: 14px;
  }

  .players-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
  }

  .players-table td[data-label="Player"] {
    display: block;
    padding: 16px;
    background: var(--accent);
    color: var(--bg);
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: none;
  }

  .players-table td[data-label="Player"]::before {
    display: none;
  }

  .players-table td:last-child {
    border-bottom: none;
  }

  .status-badge {
    min-width: 82px;
  }
}




.table-head-link {
  display: block;
  width: 100%;
  color: var(--accent);
  text-decoration: none;
}

.table-head-link:hover,
.table-head-link.active-sort {
  color: var(--text);
}