:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #101820;
  --panel-2: #17232c;
  --text: #f5f2ea;
  --muted: #aeb7bd;
  --line: rgba(255, 255, 255, 0.13);
  --red: #ff4d43;
  --amber: #f4b45f;
  --teal: #51d2c5;
  --green: #92d46d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.68);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(8, 11, 16, 0.88);
}

.brand {
  display: flex;
  min-width: 170px;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(244, 180, 95, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 77, 67, 0.34), rgba(81, 210, 197, 0.18));
  color: var(--amber);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.section-copy,
.hero-copy,
.ranking-card span,
.board-row span,
.footer {
  color: var(--muted);
}

.brand small {
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 148px clamp(20px, 6vw, 88px) 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-base.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.96) 0%, rgba(8, 11, 16, 0.82) 38%, rgba(8, 11, 16, 0.34) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 11, 16, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-copy {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 46px;
}

.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 77, 67, 0.28);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.server-stats {
  display: grid;
  width: min(680px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.server-stats div,
.empty-message,
.ranking-card,
.interview-card,
.championship-layout article,
.board-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.82);
  box-shadow: var(--shadow);
}

.server-stats div {
  padding: 18px;
}

.server-stats dt {
  color: var(--muted);
  font-size: 12px;
}

.server-stats dd {
  margin: 6px 0 0;
  color: var(--amber);
  font-size: 28px;
  font-weight: 900;
}

.intro-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px clamp(20px, 6vw, 88px);
  border-block: 1px solid var(--line);
  background: #0d1218;
}

.intro-strip strong,
.intro-strip span {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.intro-strip strong {
  color: var(--amber);
}

.message-section,
.alliances,
.rankings,
.interviews,
.championship,
.board {
  padding: 92px clamp(20px, 6vw, 88px);
}

.message-section.alt,
.rankings,
.championship {
  background: #0b1016;
}

.section-heading {
  margin-bottom: 28px;
}

.section-copy {
  max-width: 720px;
  margin: 14px 0 0;
}

.empty-message {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(255, 77, 67, 0.12), rgba(81, 210, 197, 0.08)),
    var(--panel);
}

.alliance-name-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.alliance-name-grid span {
  min-height: 72px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
}

.ranking-layout,
.championship-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ranking-card,
.interview-card,
.championship-layout article,
.board-panel {
  padding: 24px;
}

.ranking-card ol {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style-position: inside;
}

.ranking-card li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.ranking-card li::marker {
  color: var(--amber);
}

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

.card-kicker {
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.write-zone,
.support-zone {
  display: grid;
  min-height: 120px;
  place-items: center;
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.support-zone {
  min-height: 86px;
  background: rgba(255, 255, 255, 0.04);
}

.championship-layout article {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(244, 180, 95, 0.18), rgba(255, 77, 67, 0.12)),
    var(--panel);
}

.championship-layout span {
  color: var(--teal);
  font-weight: 900;
}

.championship-layout h3 {
  margin-top: 24px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.board-panel {
  display: grid;
  gap: 12px;
}

.board-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.board-row.muted {
  opacity: 0.78;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .alliance-name-grid,
  .interview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .ranking-layout,
  .championship-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding: 118px 18px 48px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 11, 16, 0.98), rgba(8, 11, 16, 0.72)),
      linear-gradient(0deg, var(--bg), rgba(8, 11, 16, 0.05) 48%);
  }

  .server-stats,
  .alliance-name-grid,
  .interview-grid {
    grid-template-columns: 1fr;
  }

  .message-section,
  .alliances,
  .rankings,
  .interviews,
  .championship,
  .board {
    padding: 64px 18px;
  }

  .board-row {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}
