:root {
  --bg-dark: #050f05;
  --bg-panel: rgba(8, 24, 8, 0.92);
  --bg-panel-light: rgba(14, 36, 14, 0.85);
  --green-neon: #5dff2e;
  --green-glow: #39ff14;
  --green-dark: #1a4d1a;
  --green-border: #2d6b2d;
  --silver: #c8d0c8;
  --text: #e8f0e8;
  --text-muted: #9bb09b;
  --gold: #d4af37;
  --purple: #b57bff;
  --shadow: 0 0 24px rgba(57, 255, 20, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-dark);
  line-height: 1.6;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(57, 255, 20, 0.08), transparent 45%),
    linear-gradient(180deg, #071407 0%, #030803 100%);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.site-header {
  text-align: center;
  width: 100%;
  background: #030803;
}

.custom-header {
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(57, 255, 20, 0.07), transparent 55%),
    linear-gradient(180deg, #071407 0%, #030803 100%);
  padding: 1.1rem 0 0;
}

.custom-header-shell {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 0 0.75rem;
  border-left: 2px solid var(--green-border);
  border-right: 2px solid var(--green-border);
  background: linear-gradient(
    90deg,
    rgba(3, 10, 3, 0.95) 0%,
    rgba(8, 28, 8, 0.55) 50%,
    rgba(3, 10, 3, 0.95) 100%
  );
}

.custom-header-frame {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.1rem 1.75rem 1rem;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 80% at 50% 40%, rgba(25, 60, 25, 0.45), rgba(4, 12, 4, 0.92));
  border: 2px solid var(--green-glow);
  box-shadow:
    0 0 28px rgba(57, 255, 20, 0.12),
    inset 0 0 40px rgba(57, 255, 20, 0.04);
  clip-path: polygon(
    0% 6%, 4% 0%, 96% 0%, 100% 6%,
    100% 94%, 96% 100%, 4% 100%, 0% 94%
  );
}

.custom-header-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.4));
}

.custom-header-brand {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  letter-spacing: 0.14em;
  line-height: 1.1;
  margin: 0 0 0.35rem;
}

.brand-green {
  color: var(--green-glow);
  text-shadow:
    0 0 20px rgba(57, 255, 20, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.8);
}

.brand-silver {
  color: #e8ece8;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.15),
    0 2px 0 rgba(0, 0, 0, 0.8);
}

.custom-header-tag {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
  letter-spacing: 0.22em;
  color: #dfe5df;
  margin: 0 0 0.2rem;
}

.custom-header-url {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.6rem, 1.6vw, 0.72rem);
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin: 0;
}

.custom-header-rule {
  height: 2px;
  margin-top: 0.85rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--green-glow) 15%,
    var(--green-glow) 85%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.35);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(10, 30, 10, 0.98), rgba(5, 15, 5, 0.98));
  border-bottom: 1px solid var(--green-border);
}

.nav-btn {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--green-border);
  background: linear-gradient(180deg, rgba(20, 50, 20, 0.9), rgba(8, 20, 8, 0.95));
  transition: 0.2s ease;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  color: var(--green-neon);
  border-color: var(--green-glow);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.25);
}

.nav-btn-primary {
  color: #041004;
  background: linear-gradient(180deg, var(--green-neon), #2ea015);
  border-color: var(--green-glow);
}

.nav-btn-active {
  color: var(--green-neon);
  border-color: var(--green-glow);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.status-item strong {
  color: var(--green-neon);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--green-glow);
  box-shadow: 0 0 10px var(--green-glow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-card {
  padding: 1.25rem;
  height: 100%;
}

.hero-card,
.panel,
.panel-section,
.info-card,
.feature-card,
.play-step {
  background: var(--bg-panel);
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow);
}

.hero-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.35));
}

.hero-card h1,
.hero-card h2,
.panel h2,
.panel-section h2,
.feature-card h3,
.play-step h3,
.info-card h2 {
  font-family: 'Cinzel', serif;
  color: var(--green-neon);
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.25);
}

.tagline {
  font-family: 'Cinzel', serif;
  color: var(--silver);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.intro {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.intro strong {
  color: var(--green-neon);
}

.vote-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--green-border);
}

.vote-panel-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.35));
}

.vote-panel-tagline {
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.vote-panel-intro {
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.vote-panel-actions {
  margin-top: 0.25rem;
}

.vote-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.vote-steps {
  list-style: none;
  margin: 0.65rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.vote-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.vote-steps li span {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #041004;
  background: var(--green-neon);
  border-radius: 2px;
}

.reward-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.reward-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--purple);
  color: var(--purple);
  text-transform: uppercase;
}

code {
  font-family: Consolas, monospace;
  font-size: 0.88em;
  color: var(--green-neon);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.vote-page-hero {
  margin-bottom: 1.5rem;
}

.section-lead {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.note a {
  color: var(--green-neon);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  transition: 0.2s ease;
}

.btn-green {
  color: #041004;
  background: linear-gradient(180deg, var(--green-neon), #2ea015);
  border: 1px solid var(--green-glow);
}

.btn-green:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.35);
}

.btn-outline {
  color: var(--green-neon);
  border: 1px solid var(--green-border);
  background: rgba(10, 30, 10, 0.6);
}

.btn-outline:hover {
  border-color: var(--green-glow);
  background: rgba(20, 50, 20, 0.8);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.panel-hiscores-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-hiscores-preview .hiscores-table-wrap {
  flex: 1;
}

.hiscores-table-compact th,
.hiscores-table-compact td {
  padding: 0.45rem 0.4rem;
  font-size: 0.82rem;
}

.hiscores-table-compact th {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.hiscores-note {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.panel {
  padding: 1.1rem;
}

.panel h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--green-border);
  padding-bottom: 0.5rem;
}

.leader-block + .leader-block {
  margin-top: 1rem;
}

.leader-block h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--silver);
  margin-bottom: 0.65rem;
}

.leader-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  background: var(--bg-panel-light);
  border: 1px solid var(--green-border);
}

.leader-rank {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
}

.leader-name {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.leader-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.leader-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
}

.donator .leader-badge {
  color: var(--gold);
  border-color: var(--gold);
}

.voter .leader-badge {
  color: var(--purple);
  border-color: var(--purple);
}

.leader-list {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.leader-list li {
  padding: 0.25rem 0;
}

.leader-list span {
  color: var(--green-neon);
  margin-right: 0.35rem;
}

.leader-period {
  margin: -0.35rem 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.quick-links {
  list-style: none;
}

.quick-links a {
  display: block;
  padding: 0.45rem 0;
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 107, 45, 0.35);
}

.quick-links a:hover {
  color: var(--green-neon);
}

.features {
  margin-top: 1.25rem;
}

.features h2,
.panel-section h2 {
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1rem;
}

.feature-card p,
.info-card p,
.panel-section p,
.note {
  color: var(--text-muted);
}

.panel-section {
  margin-top: 1.25rem;
  padding: 1.1rem;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.play-step {
  padding: 1rem;
  position: relative;
}

.step-num {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: rgba(57, 255, 20, 0.25);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.1rem;
}

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

.hiscores-table {
  width: 100%;
  border-collapse: collapse;
}

.hiscores-table th,
.hiscores-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(45, 107, 45, 0.45);
}

.hiscores-table th {
  font-family: 'Cinzel', serif;
  color: var(--green-neon);
}

.note {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--green-border);
  background: rgba(4, 10, 4, 0.95);
  color: var(--text-muted);
}

.footer-logo {
  width: 48px;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--silver);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green-neon);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .custom-header-frame {
    padding: 0.9rem 1.25rem 0.85rem;
  }

  .custom-header-logo {
    width: 48px;
    height: 48px;
  }
}
