:root {
  --bg: #0b1220;
  --bg-soft: #101a2c;
  --panel: #121d31;
  --panel-2: #16233b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f1e8;
  --muted: #b8b3a7;
  --gold: #c8a96b;
  --gold-soft: rgba(200, 169, 107, 0.14);
  --white-soft: rgba(255, 255, 255, 0.06);
  --good: #79c08a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  --radius: 22px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(200, 169, 107, 0.08), transparent 20%),
    radial-gradient(circle at left top, rgba(255, 255, 255, 0.03), transparent 20%),
    linear-gradient(180deg, #08111d 0%, #0b1220 50%, #0a111d 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 14, 24, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff7ea;
}

.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  color: #ddd6c7;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
}

.hero {
  padding: 70px 0 34px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-summary {
  min-height: 100%;
}

.hero-copy {
  background: linear-gradient(180deg, rgba(18, 29, 49, 0.92), rgba(12, 19, 33, 0.95));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #f1d5a6;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: 3.4rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #fff9ef;
}

.hero-copy p {
  margin: 0;
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #d3cdc1;
}

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

.btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: #18130b;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #f4efe5;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.summary-card {
  background: linear-gradient(180deg, rgba(19, 31, 52, 0.95), rgba(14, 22, 38, 0.95));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.summary-card span {
  display: block;
  margin-bottom: 12px;
  color: #bcb6aa;
  font-size: 0.9rem;
}

.summary-card strong {
  font-size: 1.65rem;
  line-height: 1.35;
  color: #fff8ec;
}

.section {
  padding: 20px 0 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.panel {
  background: linear-gradient(180deg, rgba(18, 29, 49, 0.95), rgba(13, 20, 35, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-large {
  padding: 28px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #d4b175;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.section-head h2 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  color: #fff8ee;
}

.section-desc {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  text-align: right;
}

.body-copy p {
  margin: 0 0 14px;
  color: #d3cdc1;
  line-height: 1.9;
}

.mini-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.mini-stat span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.mini-stat strong {
  font-size: 1rem;
  color: #fff8ee;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #ede7da;
  line-height: 1.65;
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.guild-card {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 35, 59, 0.96), rgba(14, 22, 37, 0.96));
  border: 1px solid var(--line);
  transition: 0.2s ease;
  box-shadow: var(--shadow);
}

.guild-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 169, 107, 0.28);
}

.guild-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #fff6e6;
}

.guild-card p {
  margin: 0;
  color: #d3cdc1;
  font-size: 0.93rem;
  line-height: 1.8;
}

.dashboard-top-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.top-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.top-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.top-card strong {
  font-size: 1.1rem;
  color: #fff7eb;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

thead {
  background: rgba(255, 255, 255, 0.04);
}

th,
td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}

th {
  color: #ddd4c2;
  font-size: 0.92rem;
  font-weight: 700;
}

td {
  color: #f2ebdc;
  font-size: 0.94rem;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.guild-name {
  font-weight: 700;
}

.guild-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.growth-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(121, 192, 138, 0.15);
  color: #b5e2c0;
  font-size: 0.81rem;
  font-weight: 700;
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.highlight-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.highlight-item strong {
  color: #fff6e7;
  font-size: 1.08rem;
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.panel-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: #fff8ee;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #f4d6a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.rank-name {
  font-weight: 700;
  color: #fff7ea;
}

.rank-guild {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.rank-value {
  color: #f0d7ab;
  font-weight: 700;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sort-btn {
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #f1ebde;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.sort-btn:hover,
.sort-btn.active {
  background: var(--gold-soft);
  color: #f8deaf;
  border-color: rgba(200, 169, 107, 0.22);
}

.rank-badge {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: #f4d39e;
  font-size: 0.83rem;
  font-weight: 800;
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 14, 24, 0.88);
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .hero-layout,
  .grid-2,
  .weekly-grid {
    grid-template-columns: 1fr;
  }

  .guild-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-top-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-desc {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 12px;
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }

  .hero-summary,
  .mini-stats,
  .guild-grid,
  .dashboard-top-cards {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .panel,
  .panel-large {
    padding: 18px;
  }
}