:root {
  --bg: #101214;
  --panel: #191c1f;
  --panel-2: #1f2327;
  --panel-3: #24292e;
  --border: #30353a;
  --border-soft: #272c31;
  --text: #e7e9eb;
  --muted: #989fa6;
  --muted-2: #737b83;
  --green: #6aa84f;
  --green-soft: #1d2a1b;
  --sand: #dfcc86;
  --sand-soft: #29261c;
  --purple: #b09ad1;
  --purple-soft: #211c2a;
  --purple-border: #463b58;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

img { image-rendering: pixelated; }

.wrap {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  background: #0b0d0f;
  border-bottom: 1px solid #23272b;
}

.nav-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
h1,
h2,
.eyebrow,
.hero-kicker,
.step-number,
.prize-name,
.prize-label,
.goal-number,
.minecraft-word,
.sand-label,
.data-table th {
  font-family: "Pixelify Sans", ui-monospace, monospace;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .3px;
}

.nav-note {
  color: #868d94;
  font-size: 13px;
}

main.wrap { padding: 18px 0 48px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: none;
}

/* Primary visual focal point */
.giveaway-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  padding: 30px;
  margin-bottom: 14px;
  border-color: #3a3542;
  overflow: hidden;
}

.giveaway-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--purple);
}

.giveaway-copy {
  align-self: center;
  min-width: 0;
}

.hero-kicker,
.eyebrow,
.prize-label,
.progress-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 8px;
  color: #b8a6d1;
}

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

h1 {
  margin: 0 0 13px;
  color: #f5f3f8;
  font-size: clamp(48px, 7.4vw, 76px);
  line-height: .86;
  letter-spacing: -1.3px;
  text-wrap: balance;
}

.giveaway-lede {
  max-width: 670px;
  margin: 0 0 16px;
  color: #b9bec4;
  font-size: 17px;
  line-height: 1.56;
}

.giveaway-lede strong {
  color: #eef0f2;
  font-weight: 700;
}

.entry-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 13px;
  margin-bottom: 21px;
  padding: 11px 13px;
  background: var(--sand-soft);
  border: 1px solid #4a422a;
  border-radius: 5px;
}

.entry-rule-main {
  color: #efe0aa;
  font-size: 19px;
  font-weight: 750;
}

.entry-rule-note {
  color: #aaa38a;
  font-size: 13px;
}

.hero-progress {
  padding-top: 2px;
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.progress-label { color: #8e959c; }

.progress-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 700;
}

.progress-divider { color: #626a71; }

.progress-total > span,
.progress-percent,
.stat-value,
.amount-with-icon,
.data-table td:nth-child(1),
.data-table td:nth-child(3),
.data-table td:nth-child(4),
.data-table td:nth-child(5),
.prize-value {
  font-family: "VT323", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .35px;
}

.progress-percent {
  color: #98c87c;
  font-size: 31px;
  line-height: 1;
  white-space: nowrap;
}

.meter-shell {
  width: 100%;
  height: 17px;
  margin-top: 10px;
  background: #0f1113;
  border: 1px solid #3b4146;
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width .35s ease;
}

.progress-subtext {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.prize-focus {
  position: relative;
  display: flex;
  min-height: 355px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-border);
  border-radius: 6px;
  text-align: center;
}

.prize-label {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  color: #a695bb;
}

.dragon-head {
  display: block;
  width: min(230px, 92%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 12px auto 2px;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.32));
}

.prize-name {
  color: #d5c2ec;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.prize-value {
  margin-top: 5px;
  color: #e9e3ef;
  font-size: 25px;
  line-height: 1;
}

.prize-note {
  max-width: 230px;
  margin-top: 10px;
  color: #9f96aa;
  font-size: 12px;
  line-height: 1.4;
}

.contribute-card {
  padding: 19px 20px;
  margin-bottom: 14px;
}

.contribute-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.1;
}

.contribute-note {
  color: #90bf74;
  font-size: 13px;
  font-weight: 600;
}

.contribute-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.contribute-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--panel-2);
  border-right: 1px solid var(--border);
}

.contribute-step:last-child { border-right: 0; }

.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #0f1113;
  color: #fff;
  border: 1px solid #363c41;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
}

.contribute-step b {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  color: #f0f1f2;
}

.contribute-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.contribute-step code,
.rules-card code {
  display: inline-block;
  padding: 4px 7px;
  background: #111315;
  border: 1px solid #394046;
  border-radius: 4px;
  color: #f1f2f3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
}

.muted { color: var(--muted); }

.sand-label {
  white-space: nowrap;
  color: #e1cf8f;
  font-weight: 600;
}

.sand-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: -4px;
  margin-right: 2px;
}

.sand-icon.small {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card { padding: 16px; }

.stat-label {
  min-height: 23px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .45px;
  font-weight: 600;
}

.stat-value {
  margin-top: 2px;
  color: #f2f3f4;
  font-size: clamp(28px, 4vw, 37px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.section-card {
  padding: 20px;
  margin-bottom: 14px;
}

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

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.goal-list { border-top: 1px solid var(--border); }

.goal-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border-soft);
}

.goal-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.goal-number {
  color: var(--sand);
  font-size: 20px;
  font-weight: 700;
}

.goal-row b {
  font-size: 16px;
  color: #eef0f1;
}

.goal-row p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.table-card { padding-bottom: 14px; }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--panel);
}

.data-table th,
.data-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: var(--panel-2);
  color: #aab0b6;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.data-table td { color: #d8dbde; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #1d2124; }
.data-table tbody tr:first-child td { font-weight: 600; }
.rank-one { color: #dec26b !important; }
.amount-with-icon { white-space: nowrap; }

.rules-card ol {
  margin: 0;
  padding-left: 24px;
}

.rules-card li {
  margin: 8px 0;
  line-height: 1.5;
  color: #c9cdd1;
}

.note-box {
  margin-top: 15px;
  padding: 11px 13px;
  background: #15181a;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  padding: 15px 4px 0;
  text-align: center;
  line-height: 1.55;
  color: #c8ccd0;
}

footer .muted { font-size: 12px; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 18px, 1080px); }
  .nav-inner { min-height: 50px; }
  .nav-note { display: none; }

  .giveaway-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px 20px;
  }

  h1 { font-size: clamp(47px, 13vw, 68px); }

  .prize-focus {
    min-height: auto;
    padding-top: 35px;
  }

  .dragon-head { width: 180px; }

  .contribute-heading {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .contribute-steps { grid-template-columns: 1fr; }

  .contribute-step {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .contribute-step:last-child { border-bottom: 0; }

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

  .progress-heading,
  .split-heading { align-items: start; }

  .progress-percent { font-size: 26px; }
}

@media (max-width: 460px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card { padding: 12px; }

  .section-card,
  .contribute-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .giveaway-hero { padding: 20px 14px 16px 17px; }
  .progress-heading { display: block; }
  .progress-percent { margin-top: 5px; }
  .entry-rule { align-items: flex-start; flex-direction: column; gap: 2px; }
}
