:root {
  color-scheme: dark;
  --ink: #f5f1d7;
  --muted: #c8d1b1;
  --coal: #171913;
  --stone: #303328;
  --stone-light: #4f5643;
  --grass: #5aa13f;
  --grass-dark: #2f6f35;
  --dirt: #7b4a2b;
  --wood: #9d6a35;
  --gold: #f5c84c;
  --redstone: #d94635;
  --sky: #88c7e8;
  --sky-deep: #4f9ccd;
  --water: #287f9d;
  --border: #0d0f0a;
  --shadow: rgba(0, 0, 0, 0.32);
  font-family:
    "Trebuchet MS",
    "Microsoft JhengHei",
    "PingFang TC",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(23, 25, 19, 0.1), rgba(23, 25, 19, 0.92)),
    repeating-linear-gradient(
      45deg,
      #1d2118 0,
      #1d2118 16px,
      #22271c 16px,
      #22271c 32px
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(18, 20, 14, 0.94);
  border-bottom: 4px solid var(--border);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span:last-child {
  text-shadow: 2px 2px 0 #000;
}

.brand-mark {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  background:
    linear-gradient(var(--grass) 0 45%, var(--dirt) 45% 100%);
  border: 3px solid var(--border);
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.18);
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  position: relative;
  padding: 9px 11px;
  color: var(--muted);
  border: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: #2b3024;
  border-color: #444b3a;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  outline: none;
}

.nav-links a[aria-current="page"],
.nav-links a[aria-current="location"] {
  color: #20160a;
  background: var(--gold);
  border-color: var(--border);
  box-shadow:
    inset 0 -4px 0 rgba(125, 84, 18, 0.22),
    3px 3px 0 rgba(0, 0, 0, 0.26);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(72px, 12vh, 120px) clamp(18px, 7vw, 108px) clamp(48px, 9vh, 86px);
  border-bottom: 6px solid var(--border);
}

.pixel-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    #13271d url("assets/hero-minecraft-desktop.webp") center 48% / cover no-repeat;
  image-rendering: pixelated;
}

.pixel-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 13, 10, 0.58) 0, rgba(7, 13, 10, 0.22) 54%, rgba(7, 13, 10, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 13, 10, 0.08) 0, transparent 45%, rgba(7, 13, 10, 0.34) 100%);
  box-shadow: inset 0 -38px 0 rgba(9, 14, 10, 0.22);
}

.pixel-sky > .cloud,
.pixel-sky > .sun,
.pixel-sky > .hill,
.pixel-sky > .tree,
.pixel-sky > .cave,
.pixel-sky > .grass {
  display: none;
}

.cloud,
.sun,
.hill,
.tree,
.grass,
.cave {
  position: absolute;
  display: block;
}

.sun {
  top: 88px;
  right: 13vw;
  width: 82px;
  height: 82px;
  background: var(--gold);
  border: 5px solid #d9932d;
  box-shadow:
    0 0 0 10px rgba(245, 200, 76, 0.18),
    10px 10px 0 rgba(60, 100, 120, 0.18);
}

.cloud {
  width: 150px;
  height: 42px;
  background: #edf8ff;
  box-shadow:
    36px -24px 0 #edf8ff,
    78px -10px 0 #edf8ff,
    112px 0 0 #edf8ff;
}

.cloud-one {
  top: 92px;
  left: 8vw;
}

.cloud-two {
  top: 170px;
  right: 26vw;
  transform: scale(0.75);
}

.hill {
  bottom: 88px;
  width: 46vw;
  height: 190px;
  background: #4d8e43;
  border: 5px solid #2f6f35;
  box-shadow: inset 0 16px 0 rgba(255, 255, 255, 0.08);
}

.hill-back {
  left: -8vw;
  transform: skewX(-18deg);
}

.hill-front {
  right: -9vw;
  height: 240px;
  background: #5aa13f;
  transform: skewX(16deg);
}

.cave {
  right: 31vw;
  bottom: 84px;
  width: 94px;
  height: 76px;
  background: #25291f;
  border: 5px solid #345f31;
  box-shadow:
    inset 14px 0 0 rgba(0, 0, 0, 0.18),
    0 -12px 0 #4e8a40;
}

.tree {
  bottom: 82px;
  width: 34px;
  height: 96px;
  background: #694120;
  border: 4px solid var(--border);
}

.tree::before {
  content: "";
  position: absolute;
  left: -34px;
  top: -58px;
  width: 98px;
  height: 74px;
  background: #2f7d3e;
  border: 4px solid var(--border);
  box-shadow: inset -10px -10px 0 rgba(0, 0, 0, 0.16);
}

.tree-one {
  right: 18vw;
}

.tree-two {
  right: 9vw;
  transform: scale(0.72);
  transform-origin: bottom;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 8px solid var(--gold);
  filter: drop-shadow(6px 7px 0 rgba(0, 0, 0, 0.3));
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -24px -40px -24px -24px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 20, 15, 0.92), rgba(17, 20, 15, 0.72) 68%, transparent);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow:
    4px 0 0 var(--border),
    -4px 0 0 var(--border),
    0 4px 0 var(--border),
    7px 7px 0 rgba(0, 0, 0, 0.28);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 680px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 6px 9px;
  color: #dce8c8;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(11, 13, 9, 0.72);
  border: 2px solid #5f6950;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.copy-button,
.secondary-link,
.discord-link,
.discord-panel-link,
.sponsor-link,
.server-address button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--ink);
  font-weight: 900;
  border: 4px solid var(--border);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition:
    transform 100ms ease,
    box-shadow 100ms ease,
    filter 100ms ease;
}

.copy-button {
  background: var(--grass);
}

.secondary-link {
  background: var(--stone);
}

.discord-link,
.discord-panel-link {
  background: #5865f2;
}

.sponsor-link {
  background: var(--gold);
  color: #20160a;
}

.server-address button {
  min-height: 36px;
  margin-top: 14px;
  padding: 7px 10px;
  color: var(--muted);
  background: #2d3328;
  border-width: 3px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.copy-button:hover,
.copy-button:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible,
.discord-link:hover,
.discord-link:focus-visible,
.discord-panel-link:hover,
.discord-panel-link:focus-visible,
.sponsor-link:hover,
.sponsor-link:focus-visible,
.server-address button:hover,
.server-address button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  outline: none;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 92px) 0;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--grass) 0 55%, var(--gold) 55% 78%, var(--stone-light) 78%);
  border: 2px solid var(--border);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  border-bottom: 2px solid rgba(200, 209, 177, 0.14);
}

.lead {
  margin-bottom: 0;
  font-size: 1.12rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 0;
}

.feature-card,
.join-panel {
  border: 5px solid var(--border);
  box-shadow: 7px 7px 0 var(--shadow);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 32%),
    #262b20;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--grass);
  border-bottom: 3px solid var(--border);
}

.feature-card:nth-child(2)::before {
  background: var(--gold);
}

.feature-card:nth-child(3)::before {
  background: var(--redstone);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 11px 0 var(--shadow);
}

.pixel-icon {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 4px solid var(--border);
  image-rendering: pixelated;
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, 0.2);
}

.block-grass {
  background: linear-gradient(var(--grass) 0 42%, var(--dirt) 42% 100%);
}

.block-gold {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0 18%, transparent 18%),
    var(--gold);
}

.block-redstone {
  background:
    linear-gradient(90deg, transparent 0 35%, rgba(255, 255, 255, 0.22) 35% 48%, transparent 48%),
    var(--redstone);
}

.join-panel {
  width: min(1120px, calc(100% - 36px));
  margin: clamp(12px, 3vw, 30px) auto clamp(46px, 8vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(90deg, rgba(90, 161, 63, 0.12), transparent 46%),
    repeating-linear-gradient(135deg, #242920 0, #242920 18px, #272d22 18px, #272d22 36px);
  box-shadow:
    7px 7px 0 var(--shadow),
    inset 0 6px 0 rgba(255, 255, 255, 0.04);
}

.discord-panel-link {
  width: 100%;
  white-space: nowrap;
}

.server-address {
  padding: 18px;
  background: #11140f;
  border: 4px solid var(--stone-light);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.025);
}

.server-address span,
.server-address strong {
  display: block;
}

.server-address span {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.server-address strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  line-height: 1.1;
}

.page-hero {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: end;
  padding: clamp(80px, 14vh, 130px) clamp(18px, 5vw, 72px) clamp(42px, 8vh, 72px);
  overflow: hidden;
  border-bottom: 6px solid var(--border);
  background:
    linear-gradient(180deg, rgba(20, 23, 16, 0.18), rgba(20, 23, 16, 0.94)),
    repeating-linear-gradient(
      90deg,
      #6b4529 0,
      #6b4529 24px,
      #8b5b33 24px,
      #8b5b33 48px
    );
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 60%, rgba(90, 161, 63, 0.82) 60% 73%, rgba(55, 34, 20, 0.9) 73%),
    repeating-linear-gradient(
      45deg,
      rgba(245, 200, 76, 0.2) 0,
      rgba(245, 200, 76, 0.2) 12px,
      transparent 12px,
      transparent 36px
    );
}

.page-hero-content {
  position: relative;
  max-width: 760px;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 8px solid var(--gold);
  filter: drop-shadow(6px 7px 0 rgba(0, 0, 0, 0.3));
}

.page-hero-content::before {
  content: "";
  position: absolute;
  inset: -24px -40px -24px -24px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 20, 15, 0.92), rgba(17, 20, 15, 0.7) 70%, transparent);
}

.sponsor-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.sponsor-layout > .section-heading {
  position: sticky;
  top: 104px;
}

.sponsor-order {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.sponsor-notice {
  padding: clamp(20px, 4vw, 30px);
  background:
    linear-gradient(135deg, rgba(217, 70, 53, 0.12), transparent 52%),
    #25231a;
  border: 5px solid var(--border);
  box-shadow:
    6px 6px 0 var(--shadow),
    inset 0 6px 0 rgba(245, 200, 76, 0.12);
}

.notice-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.contact-chip {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #12150f;
  border: 3px solid var(--gold);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.contact-chip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.contact-chip strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.notice-intro {
  margin: 8px 0 14px;
}

.sponsor-notice ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 26px;
  color: #e2e7d5;
  line-height: 1.7;
}

.sponsor-notice li::marker {
  color: var(--gold);
  font-weight: 900;
}

.payment-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 3px solid rgba(245, 200, 76, 0.24);
}

.payment-notice span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.payment-notice strong {
  padding: 7px 9px;
  color: #20160a;
  background: var(--gold);
  border: 3px solid var(--border);
  box-shadow: inset 0 -3px 0 rgba(125, 84, 18, 0.2);
}

.order-total {
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(245, 200, 76, 0.14), transparent 58%),
    #161910;
  border: 4px solid var(--stone-light);
  box-shadow: 5px 5px 0 var(--shadow);
}

.order-total > span,
.order-total small {
  color: var(--muted);
}

.order-total > span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-total strong {
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 3px 3px 0 #000;
}

.mobile-order-total {
  display: none;
}

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

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  padding: 16px;
  background: #262b20;
  border: 4px solid var(--border);
  box-shadow: 5px 5px 0 var(--shadow);
  transition:
    transform 120ms ease,
    border-color 120ms ease;
}

.price-row:hover {
  transform: translateX(4px);
  border-color: #48513e;
}

.price-row h3 {
  margin-bottom: 4px;
}

.item-copy {
  min-width: 0;
}

.item-copy h3 {
  overflow-wrap: anywhere;
}

.price-row p,
.price-row em {
  margin: 0;
  color: var(--muted);
}

.price-row em {
  grid-column: 1 / -1;
  font-style: normal;
  font-size: 0.95rem;
}

.price-row strong {
  min-width: 74px;
  padding: 8px 10px;
  color: #20160a;
  text-align: center;
  background: var(--gold);
  border: 3px solid var(--border);
  box-shadow: inset 0 -4px 0 rgba(125, 84, 18, 0.22);
}

.item-purchase {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 40px 54px 40px;
  height: 40px;
}

.quantity-control button,
.quantity-control input {
  min-width: 0;
  height: 40px;
  margin: 0;
  color: var(--ink);
  background: #171a12;
  border: 3px solid var(--border);
  border-radius: 0;
}

.quantity-control button {
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
}

.quantity-control button:hover,
.quantity-control button:focus-visible {
  color: #20160a;
  background: var(--gold);
  outline: none;
}

.quantity-control button:disabled {
  color: #747a69;
  background: #22251d;
  cursor: not-allowed;
}

.quantity-control input {
  width: 54px;
  padding: 0 4px;
  text-align: center;
  border-right: 0;
  border-left: 0;
  appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.buyer-panel,
.order-result {
  padding: clamp(20px, 4vw, 30px);
  background: #20251c;
  border: 5px solid var(--border);
  box-shadow: 6px 6px 0 var(--shadow);
}

.buyer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.buyer-fields label {
  display: grid;
  gap: 8px;
}

.buyer-fields label > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.buyer-fields input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #11140f;
  border: 4px solid var(--stone-light);
  border-radius: 0;
  outline: none;
}

.buyer-fields input:focus {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(245, 200, 76, 0.16);
}

.buyer-fields input:user-invalid {
  border-color: var(--redstone);
}

.consent-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding: 14px;
  color: #e2e7d5;
  line-height: 1.6;
  background: #15180f;
  border: 3px solid var(--stone-light);
  cursor: pointer;
}

.consent-check:has(input:focus-visible) {
  border-color: var(--gold);
}

.consent-check input {
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--grass);
}

.form-message {
  min-height: 28px;
  margin: 14px 0 8px;
  color: #f4d66e;
  font-weight: 900;
}

.submit-order,
.result-actions button {
  min-height: 48px;
  padding: 11px 18px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  background: var(--grass);
  border: 4px solid var(--border);
  border-radius: 0;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.submit-order {
  width: 100%;
}

.submit-order:hover,
.submit-order:focus-visible,
.result-actions button:hover,
.result-actions button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  outline: none;
}

.order-result {
  background:
    linear-gradient(135deg, rgba(90, 161, 63, 0.14), transparent 52%),
    #20251c;
  border-color: #2f6f35;
}

.order-result > p:not(.eyebrow) {
  margin-bottom: 18px;
}

.order-result pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #e9efd9;
  font: inherit;
  line-height: 1.65;
  background: #11140f;
  border: 4px solid var(--stone-light);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

[hidden] {
  display: none !important;
}

.featured-price {
  background:
    linear-gradient(90deg, rgba(245, 200, 76, 0.16), transparent 72%),
    #2d3024;
}

.rank-section {
  padding-top: 0;
}

.rank-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(245, 200, 76, 0.16), transparent 46%),
    #242920;
  border: 5px solid var(--border);
  box-shadow: 7px 7px 0 var(--shadow);
}

.rank-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background:
    linear-gradient(90deg, transparent 32%, rgba(245, 200, 76, 0.28) 32% 66%, transparent 66%),
    linear-gradient(transparent 32%, rgba(245, 200, 76, 0.28) 32% 66%, transparent 66%);
  border-left: 4px solid rgba(13, 15, 10, 0.62);
  border-bottom: 4px solid rgba(13, 15, 10, 0.62);
}

.rank-title {
  max-width: 720px;
  margin-bottom: 24px;
}

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

.benefit-grid article {
  padding: 20px;
  background: #15180f;
  border: 4px solid var(--stone-light);
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.025);
}

.benefit-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 5vw, 64px);
  color: var(--muted);
  background: #10120d;
  border-top: 5px solid var(--border);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.footer-link {
  color: var(--gold);
  font-weight: 900;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.orders-page {
  background:
    linear-gradient(180deg, rgba(18, 21, 15, 0.72), rgba(18, 21, 15, 0.96)),
    repeating-linear-gradient(45deg, #1d2118 0, #1d2118 16px, #22271c 16px, #22271c 32px);
}

.orders-heading {
  padding: clamp(48px, 8vw, 84px) max(18px, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(90deg, rgba(90, 161, 63, 0.18), transparent 58%),
    #1d2219;
  border-bottom: 5px solid var(--border);
}

.orders-heading > div {
  max-width: 760px;
}

.orders-heading h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.orders-shell {
  width: min(1120px, calc(100% - 36px));
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 72px) 0;
}

.admin-login {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  background: #20251c;
  border: 5px solid var(--border);
  box-shadow: 7px 7px 0 var(--shadow);
}

.admin-login label,
.order-search {
  display: grid;
  gap: 8px;
}

.admin-login label span,
.order-search span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-login input,
.order-search input {
  min-height: 48px;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #11140f;
  border: 4px solid var(--stone-light);
  border-radius: 0;
  outline: none;
}

.admin-login input:focus,
.order-search input:focus {
  border-color: var(--gold);
}

.admin-message,
.orders-status {
  min-height: 26px;
  margin: 0;
  color: #f4d66e;
  font-weight: 900;
}

.orders-dashboard {
  display: grid;
  gap: 22px;
}

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.toolbar-actions,
.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-actions button,
.admin-order-actions button {
  min-height: 42px;
  padding: 8px 13px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  background: var(--stone);
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
}

.toolbar-actions button:hover,
.toolbar-actions button:focus-visible,
.admin-order-actions button:hover,
.admin-order-actions button:focus-visible {
  background: var(--grass);
  outline: none;
}

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

.order-stats article {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  background: #22271d;
  border: 4px solid var(--border);
  box-shadow: 5px 5px 0 var(--shadow);
}

.order-stats article > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.order-stats strong {
  color: var(--gold);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  overflow-wrap: anywhere;
}

.order-status-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 4px solid var(--border);
}

.order-status-filter button {
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  background: #20251c;
  border: 0;
  border-right: 3px solid var(--border);
  cursor: pointer;
}

.order-status-filter button:last-child {
  border-right: 0;
}

.order-status-filter button:hover,
.order-status-filter button:focus-visible {
  color: var(--ink);
  background: #30372a;
  outline: none;
}

.order-status-filter button[aria-pressed="true"] {
  color: #161a12;
  background: var(--gold);
}

.order-status-filter span {
  display: inline-block;
  min-width: 24px;
  margin-left: 5px;
  color: inherit;
}

.order-search {
  padding: 18px;
  background: #1b1f17;
  border: 4px solid var(--border);
}

.order-selection-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #20251c;
  border: 4px solid var(--border);
}

.order-selection-bar label,
.order-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.order-selection-bar > [data-selected-count] {
  margin-left: auto;
  color: var(--gold);
  font-weight: 900;
}

.order-selection-bar input,
.order-selector input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--gold);
}

.order-selection-bar button,
.delete-dialog button {
  min-height: 42px;
  padding: 8px 13px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  background: var(--stone);
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
}

.danger-button,
.order-selection-bar .danger-button,
.admin-order-actions .danger-button,
.delete-dialog .danger-button {
  color: #fff4ec;
  background: #8e332c;
}

.danger-button:hover,
.danger-button:focus-visible,
.order-selection-bar .danger-button:hover,
.order-selection-bar .danger-button:focus-visible,
.admin-order-actions .danger-button:hover,
.admin-order-actions .danger-button:focus-visible,
.delete-dialog .danger-button:hover,
.delete-dialog .danger-button:focus-visible {
  background: #b54a3d;
  outline: none;
}

.order-selection-bar button:disabled,
.delete-dialog button:disabled {
  color: #98998f;
  background: #36382f;
  cursor: not-allowed;
  opacity: 0.75;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.admin-order-card {
  padding: clamp(18px, 3vw, 26px);
  background: #242a20;
  border: 4px solid var(--border);
  box-shadow: 5px 5px 0 var(--shadow);
}

.admin-order-card.is-selected {
  border-color: var(--gold);
}

.admin-order-card.is-completed {
  background: #20271f;
  border-color: #526653;
}

.admin-order-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--stone-light);
}

.admin-order-primary {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.order-selector {
  flex: 0 0 auto;
  padding-top: 3px;
}

.admin-order-header h3,
.admin-order-header p {
  margin-bottom: 4px;
}

.order-number {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.order-status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.order-status {
  padding: 3px 7px;
  color: #161a12;
  font-size: 0.72rem;
  font-weight: 900;
  border: 2px solid var(--border);
}

.order-status.is-pending {
  background: #e1b94e;
}

.order-status.is-completed {
  color: #eff7e9;
  background: #497247;
}

.admin-order-meta {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.admin-order-meta strong {
  color: var(--gold);
  font-size: 1.65rem;
}

.admin-order-meta time {
  color: var(--muted);
}

.completed-time {
  color: #a9c7a6;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-order-actions .complete-button {
  color: #f3f8ed;
  background: #3f723d;
}

.admin-order-actions .complete-button:hover,
.admin-order-actions .complete-button:focus-visible {
  background: #569650;
}

.admin-order-actions button:disabled {
  color: #98998f;
  background: #36382f;
  cursor: not-allowed;
  opacity: 0.75;
}

.admin-order-items {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding-left: 22px;
  color: #e2e7d5;
  line-height: 1.6;
}

.orders-empty {
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
  background: #1b1f17;
  border: 4px dashed var(--stone-light);
}

.delete-dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 24px;
  color: var(--ink);
  background: #22271d;
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.7);
}

.delete-dialog::backdrop {
  background: rgba(7, 10, 6, 0.78);
}

.delete-dialog h2 {
  margin-bottom: 12px;
}

.delete-dialog > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(340px, calc(100vw - 36px));
  padding: 12px 14px;
  color: var(--ink);
  background: var(--grass-dark);
  border: 4px solid var(--border);
  box-shadow: 5px 5px 0 var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
    align-items: center;
  }

  .hero-content {
    padding-left: 16px;
  }

  .hero-content::before,
  .page-hero-content::before {
    inset: -20px -18px -20px -18px;
    background: rgba(17, 20, 15, 0.82);
  }

  .tree-one {
    right: 24vw;
  }

  .tree-two {
    display: none;
  }

  .intro-section,
  .sponsor-layout,
  .join-panel {
    grid-template-columns: 1fr;
  }

  .sponsor-layout > .section-heading {
    position: static;
  }

  .desktop-order-total {
    display: none;
  }

  .mobile-order-total {
    display: grid;
    margin-top: 0;
  }

  .feature-grid,
  .benefit-grid,
  .order-stats {
    grid-template-columns: 1fr;
  }

  .orders-toolbar,
  .admin-order-header {
    align-items: stretch;
    flex-direction: column;
  }

  .order-selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .order-selection-bar > [data-selected-count] {
    margin-left: 0;
  }

  .order-selection-bar button {
    width: 100%;
  }

  .admin-order-primary {
    flex-direction: column;
  }

  .admin-order-meta {
    justify-items: start;
  }

  .buyer-fields {
    grid-template-columns: 1fr;
  }

  .notice-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-chip {
    width: fit-content;
  }

  .feature-card {
    min-height: auto;
  }

  .hero-actions > *,
  .discord-panel-link {
    flex: 1 1 190px;
  }

  .page-hero {
    min-height: 430px;
  }

  .rank-card::before {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-links a {
    padding: 8px 4px;
    text-align: center;
  }

  .hero {
    min-height: 760px;
    padding-inline: 18px;
  }

  .pixel-sky {
    background-image: url("assets/hero-minecraft-mobile.webp");
    background-position: center 42%;
  }

  .pixel-sky::after {
    background:
      linear-gradient(180deg, rgba(7, 13, 10, 0.12) 0, rgba(7, 13, 10, 0.22) 28%, rgba(7, 13, 10, 0.48) 100%);
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions > * {
    flex-basis: 100%;
  }

  .server-address strong {
    font-size: 1.5rem;
  }

  .price-row {
    grid-template-columns: 1fr;
  }

  .price-row strong {
    width: fit-content;
  }

  .item-purchase {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    justify-items: start;
  }

  .result-actions > * {
    flex: 1 1 150px;
  }
}
