:root {
  color-scheme: dark;
  --bg: #0b0b11;
  --panel: #14141f;
  --panel-soft: #191927;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8f8ff;
  --muted: #a7a9bd;
  --green: #43e64c;
  --purple: #8d5cff;
  --cyan: #33d9ff;
  --gold: #f8b81f;
  --danger: #ff4d6d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 10%, rgba(67, 230, 76, 0.16), transparent 28rem),
    radial-gradient(circle at 10% 38%, rgba(141, 92, 255, 0.2), transparent 30rem),
    linear-gradient(180deg, #11111a 0%, #08080d 58%, #0e0e15 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 16, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.logo-image {
  display: block;
  width: clamp(128px, 14vw, 188px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.menu a,
.button,
.server-pill {
  border: 1px solid var(--line);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.menu a {
  min-height: 38px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--text);
  border-color: rgba(141, 92, 255, 0.54);
  background: rgba(141, 92, 255, 0.12);
  outline: none;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(67, 230, 76, 0.2), rgba(67, 230, 76, 0.08));
}

.server-pill strong,
.server-pill small {
  display: block;
}

.server-pill strong {
  font-size: 12px;
}

.server-pill small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08), 0 0 20px rgba(255, 255, 255, 0.2);
}

.status-dot.is-online {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(67, 230, 76, 0.14), 0 0 20px rgba(67, 230, 76, 0.9);
}

.status-dot.is-offline {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 77, 109, 0.14), 0 0 20px rgba(255, 77, 109, 0.78);
}

.status-dot.is-loading {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

.hero-slider {
  position: relative;
  min-height: 430px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 5, 9, 0.96), rgba(8, 8, 13, 0.72)),
    linear-gradient(135deg, rgba(141, 92, 255, 0.22), rgba(67, 230, 76, 0.14));
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 32px;
  padding: 54px 64px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.slide-copy {
  max-width: 520px;
}

.eyebrow,
.panel-label {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.slide h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.9;
  text-transform: uppercase;
}

.slide p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.button.primary {
  border-color: rgba(67, 230, 76, 0.55);
  background: var(--green);
  color: #081008;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.button.full {
  width: 100%;
  margin-top: 10px;
  background: rgba(51, 217, 255, 0.12);
}

.voxel-scene {
  position: relative;
  min-height: 280px;
  filter: drop-shadow(0 24px 45px rgba(0, 0, 0, 0.52));
}

.cube,
.character {
  position: absolute;
  image-rendering: pixelated;
}

.cube {
  width: 92px;
  height: 92px;
  background:
    linear-gradient(135deg, #68ec38 0 48%, #2c8b20 48% 70%, #70421e 70% 100%);
  box-shadow: inset -14px -14px 0 rgba(0, 0, 0, 0.22), 0 14px 0 #28150b;
}

.cube-a {
  right: 210px;
  top: 34px;
}

.cube-b {
  right: 110px;
  top: 104px;
  transform: scale(1.3);
}

.cube-c {
  right: 280px;
  top: 156px;
  transform: scale(0.86);
}

.character {
  right: 50px;
  bottom: 26px;
  width: 116px;
  height: 168px;
  background:
    linear-gradient(#bf7f4d 0 18%, #37b8d9 18% 50%, #213f9d 50% 100%);
  box-shadow: inset -16px 0 rgba(0, 0, 0, 0.28), 0 14px 0 rgba(0, 0, 0, 0.25);
}

.scene-alt .cube {
  background:
    linear-gradient(135deg, #f8b81f 0 42%, #8d5cff 42% 68%, #2b173a 68% 100%);
}

.slider-controls {
  position: absolute;
  left: 64px;
  bottom: 30px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 34px;
  height: 5px;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.dot.is-active {
  background: var(--green);
}

.content-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 18px;
  margin-top: 18px;
}

.sidebar,
.news-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel,
.news-panel,
.profiles-section {
  border: 1px solid var(--line);
  background: rgba(20, 20, 31, 0.86);
}

.panel {
  padding: 20px;
}

.news-panel {
  padding: 24px;
}

.panel h2,
.section-title h2 {
  margin-bottom: 16px;
  font-size: 24px;
  text-transform: uppercase;
}

.server-stats {
  display: grid;
  gap: 12px;
  margin: 0;
}

.server-stats div,
.metric {
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.players-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.players-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.news-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.news-card time {
  display: grid;
  place-items: center;
  height: 62px;
  background: rgba(141, 92, 255, 0.16);
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.news-card p,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.metric + .metric {
  margin-top: 12px;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.metric span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.profiles-section {
  margin-top: 18px;
  padding: 24px;
}

.profiles-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 16, 0.58);
}

.profile-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-rank {
  color: var(--green);
  font-weight: 900;
}

.profile-head h3 {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.profile-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.profile-kpis {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-kpis div {
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.mini-ranking + .mini-ranking {
  margin-top: 18px;
}

.mini-ranking h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
  text-transform: uppercase;
}

.mini-ranking a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.mini-ranking span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-ranking strong {
  color: var(--green);
}

.stats-hero {
  margin-top: 22px;
  padding: 54px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 5, 9, 0.96), rgba(8, 8, 13, 0.72)),
    linear-gradient(135deg, rgba(67, 230, 76, 0.16), rgba(141, 92, 255, 0.24));
}

.stats-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.stats-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.leaderboard-tabs button,
.profile-card-button,
.dialog-close {
  font: inherit;
}

.leaderboard-tabs button {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.leaderboard-tabs button.is-active,
.leaderboard-tabs button:hover {
  border-color: rgba(67, 230, 76, 0.48);
  background: rgba(67, 230, 76, 0.14);
  color: var(--text);
}

.profile-card-button {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-card-button:hover,
.profile-card-button:focus-visible {
  border-color: rgba(141, 92, 255, 0.6);
  outline: none;
}

.profile-kpis.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-dialog {
  width: min(760px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  background: #10101a;
  color: var(--text);
}

.profile-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.profile-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(141, 92, 255, 0.18), rgba(67, 230, 76, 0.1));
}

.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 24px;
}

.profile-detail-head h2 {
  margin-bottom: 4px;
  font-size: 34px;
  text-transform: uppercase;
}

.profile-detail-head p:last-child {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 28px;
}

.profile-detail-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.profile-detail-grid dd {
  color: var(--text);
  font-size: 22px;
}

.rankings-list-layout {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.ranking-list-block {
  border: 1px solid var(--line);
  background: rgba(10, 10, 16, 0.58);
}

.ranking-list-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.ranking-list-block h3 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
}

.ranking-list-block header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-table-list {
  display: grid;
}

.ranking-table-list button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(110px, auto);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.ranking-table-list button:last-child {
  border-bottom: 0;
}

.ranking-table-list button:hover,
.ranking-table-list button:focus-visible {
  background: rgba(67, 230, 76, 0.08);
  color: var(--text);
  outline: none;
}

.ranking-table-list span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-table-list strong,
.rank-number {
  color: var(--green);
  font-weight: 900;
}

.ranking-table-list strong {
  text-align: right;
}

.ranking-category {
  margin-top: 24px;
}

.ranking-category > h2 {
  margin-bottom: 14px;
  font-size: 22px;
  text-transform: uppercase;
}

.rules-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.rules-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .site-header,
  .slide,
  .content-grid,
  .stats-layout,
  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    justify-items: center;
  }

  .server-pill {
    justify-content: center;
    width: 100%;
    max-width: 320px;
  }

  .hero-slider {
    min-height: 640px;
  }

  .slide {
    gap: 18px;
    padding: 38px 28px 74px;
  }

  .voxel-scene {
    min-height: 220px;
  }

  .slider-controls {
    left: 28px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 520px);
    padding-top: 10px;
  }

  .logo-image {
    width: min(220px, 72vw);
  }

  .menu a {
    flex: 1 1 120px;
    text-align: center;
  }

  h1,
  .slide h2 {
    font-size: 42px;
  }

  .hero-slider {
    min-height: 690px;
  }

  .cube-a {
    right: 140px;
  }

  .cube-b {
    right: 50px;
  }

  .cube-c {
    right: 200px;
  }

  .character {
    right: 8px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .profiles-toolbar {
    flex-direction: column;
  }

  .stats-hero {
    padding: 34px 22px;
  }

  .profile-kpis.compact,
  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .ranking-table-list button {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ranking-table-list strong {
    grid-column: 2;
    text-align: left;
  }
}
.player-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.player-status::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.player-status.is-online { color: #61e786; background: rgba(97, 231, 134, .12); }
.player-status.is-offline { color: #9ca3af; background: rgba(156, 163, 175, .12); }

.profile-detail-section { margin-top: 2rem; }
.profile-detail-section .section-title { margin-bottom: .8rem; }
.profile-detail-section h3 { margin: .15rem 0 0; }

.profile-history-list {
  display: grid;
  gap: .55rem;
  max-height: 20rem;
  overflow: auto;
}

.profile-history-list article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .035);
}

.profile-history-list article div { display: grid; gap: .2rem; }
.profile-history-list small { color: var(--muted); }
.amount-positive { color: #61e786; }
.amount-negative { color: #ff7b7b; }
.button-link { display:inline-block; margin-top:1rem; padding:.7rem 1rem; border:1px solid var(--line); border-radius:999px; text-decoration:none; }
.transactions-page { width:min(1180px,calc(100% - 2rem)); margin:2rem auto 5rem; }
.transaction-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:1rem; padding:1rem; margin:1rem 0; border:1px solid var(--line); border-radius:1rem; }
.transaction-filters label { display:grid; gap:.35rem; }
.transaction-filters input,.transaction-filters select,.transaction-filters button { width:100%; padding:.7rem; border-radius:.6rem; border:1px solid var(--line); background:var(--panel); color:inherit; }
.filter-search { grid-column:span 2; }
.transaction-pagination { display:flex; justify-content:center; align-items:center; gap:1rem; margin-top:1.5rem; }
.transaction-pagination button { padding:.65rem 1rem; }
