/* ============================================================
   BANNER BLITZ — landing page styles
   Brand: Blitz Red #E32929 | Banner Gold #F6B733 | Command Blue #25A7FF
          War Black #171313 | Deep Nether #0D0B0A | Parchment White #F4E9D0
          Stone Gray #6B6F76
   Display: Bungee | Body: Inter
   Aesthetic: blocky, voxel, chunky 2-4px borders, hard shadows,
              square / max 4px corners. No SaaS gradients.
   ============================================================ */

:root {
  --red:        #E32929;
  --gold:       #F6B733;
  --blue:       #25A7FF;
  --black:      #171313;
  --nether:     #0D0B0A;
  --parchment:  #F4E9D0;
  --stone:      #6B6F76;

  --border:     #000000;
  --radius:     4px;

  /* Hard, offset shadows — no blur, voxel feel */
  --shadow-hard:    6px 6px 0 #000000;
  --shadow-hard-sm: 4px 4px 0 #000000;
  --shadow-card:    8px 8px 0 rgba(0,0,0,0.55);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--nether);
  color: var(--parchment);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

code {
  font-family: "Inter", monospace;
  background: var(--black);
  color: var(--gold);
  padding: 2px 6px;
  border: 2px solid #000;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Bungee", "Arial Black", Impact, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  border: 4px solid #000;
  border-radius: var(--radius);
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
  box-shadow: var(--shadow-hard-sm);
  user-select: none;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }

.btn--cta {
  background: var(--red);
  color: #fff;
  margin-top: 26px;
  font-size: 1.05rem;
  padding: 16px 30px;
}
.btn--cta:hover { background: #ff3636; }

.btn--copy {
  background: var(--gold);
  color: var(--black);
  padding: 14px 20px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.btn--copy:hover { background: #ffc94f; }
.btn--copy.is-copied { background: var(--blue); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 6px solid #000;
}

.hero__art {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero.png");
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

/* Dark scrim toward the bottom so the text/CTA stays readable.
   Solid-ish dark wash, not a soft SaaS gradient — heavy at the base. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(13,11,10,0.15) 0%,
      rgba(13,11,10,0.05) 35%,
      rgba(13,11,10,0.75) 78%,
      rgba(13,11,10,0.96) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 52px;
  text-align: center;
}

/* Wordmark — BLITZ dominant */
.wordmark {
  margin: 0;
  font-family: "Bungee", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wordmark__banner {
  color: var(--parchment);
  font-size: clamp(2.1rem, 11vw, 5rem);
  text-shadow: 4px 4px 0 #000;
}
.wordmark__blitz {
  color: var(--red);
  font-size: clamp(4.4rem, 26vw, 12rem);
  /* chunky black shadow + gold edge cut */
  text-shadow:
    5px 5px 0 #000,
    -2px -2px 0 var(--gold);
  margin-top: -0.06em;
}

.hero__tagline {
  font-family: "Bungee", "Arial Black", Impact, sans-serif;
  color: var(--gold);
  font-size: clamp(0.95rem, 3.4vw, 1.5rem);
  margin: 14px 0 0;
  text-shadow: 3px 3px 0 #000;
}

/* Server address box */
.server-box {
  margin: 28px auto 0;
  max-width: 460px;
  background: var(--black);
  border: 4px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 14px;
  text-align: left;
}
.server-box__rows {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-right: 12px;
}
.server-box__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.server-box__label {
  font-family: "Bungee", sans-serif;
  font-size: 0.7rem;
  color: var(--blue);
  text-transform: uppercase;
  flex: 0 0 54px;
}
.server-box__value {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--parchment);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 64px 0; border-bottom: 6px solid #000; }
.section--dark   { background: var(--black); }
.section--nether { background: var(--nether); }

.section__title {
  font-family: "Bungee", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  line-height: 1;
  margin: 0 0 10px;
  color: var(--parchment);
  text-shadow: 4px 4px 0 #000;
}
.hl-red  { color: var(--red); }
.hl-gold { color: var(--gold); }
.hl-blue { color: var(--blue); }

.section__lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--stone);
  margin: 0 0 36px;
  max-width: 640px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--nether);
  border: 3px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 18px;
}
.step__num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: "Bungee", sans-serif;
  font-size: 1.3rem;
  color: #fff;
  background: var(--red);
  border: 3px solid #000;
  border-radius: var(--radius);
}
.step__body { padding-top: 4px; }
.step__body strong { color: var(--parchment); }
.step__body em { color: var(--gold); font-style: normal; font-weight: 700; }
.step__details {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.step__details li { color: var(--parchment); }

.join__note {
  margin: 28px 0 0;
  padding: 16px 18px;
  background: var(--nether);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  color: var(--parchment);
  font-weight: 500;
}
.join__note strong { color: var(--gold); }

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card {
  position: relative;
  background: var(--black);
  border: 4px solid #000;
  border-top: 6px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px 22px;
}
.cards .card:nth-child(2) { border-top-color: var(--gold); }
.cards .card:nth-child(3) { border-top-color: var(--blue); }
.cards .card:nth-child(4) { border-top-color: var(--gold); }

.card__tag {
  font-family: "Bungee", sans-serif;
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 8px;
}
.card__title {
  font-family: "Bungee", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--parchment);
}
.card__copy { margin: 0; color: var(--parchment); font-size: 0.98rem; }

/* ---------- Leaderboard ---------- */
.board {
  background: var(--nether);
  border: 4px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.board__scroll { overflow-x: auto; }
.board__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}
.board__table thead th {
  font-family: "Bungee", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--black);
  background: var(--gold);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 4px solid #000;
}
.board__table th.col-num,
.board__table td.col-num { text-align: right; }

/* Sortable headers */
.board__table thead th.is-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.12s ease;
}
.board__table thead th.is-sortable:hover { background: #ffc21f; }
.board__table thead th.is-active { background: #ffc21f; }
.board__table thead th .sort-ind { font-size: 0.85em; }

.board__hint {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--stone);
  border-top: 2px solid #000;
  text-align: center;
}

.board__table tbody td {
  padding: 12px 14px;
  border-bottom: 2px solid #000;
  font-weight: 600;
  color: var(--parchment);
}
.board__table tbody tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.board__table tbody tr:last-child td { border-bottom: none; }

/* Rank medals for top 3 */
.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  font-family: "Bungee", sans-serif;
  font-size: 0.85rem;
  color: #fff;
  background: var(--stone);
  border: 3px solid #000;
  border-radius: var(--radius);
}
.rank-1 { background: var(--gold); color: var(--black); }
.rank-2 { background: var(--parchment); color: var(--black); }
.rank-3 { background: var(--red); color: #fff; }

.board__player { color: var(--parchment); font-weight: 800; }
.kd--pos { color: var(--blue); }
.kd--neg { color: var(--red); }

.board__status {
  text-align: center !important;
  padding: 40px 16px !important;
  color: var(--stone) !important;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__mark {
  font-family: "Bungee", "Arial Black", Impact, sans-serif;
  font-size: 1.3rem;
  color: var(--red);
  text-shadow: 3px 3px 0 #000;
}
.footer__copy { color: var(--stone); font-size: 0.9rem; font-weight: 600; }

.footer__play {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--nether);
  border: 3px solid #000;
  border-radius: var(--radius);
  padding: 12px 22px;
}
.footer__play-label {
  font-family: "Bungee", sans-serif;
  font-size: 0.65rem;
  color: var(--blue);
  text-transform: uppercase;
}
.footer__play-addr { font-weight: 800; color: var(--gold); font-size: 1.05rem; }

/* ============================================================
   RESPONSIVE — mobile-first; enhance up
   ============================================================ */
@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer__brand { align-items: flex-start; }
  .section { padding: 84px 0; }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
