@font-face {
  font-family: 'Monocraft';
  src: url('fonts/Monocraft.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #0e1012;
  --panel: #16191c;
  --panel-2: #1c2024;
  --border: #2b3238;
  --text: #e8ebee;
  --muted: #a3acb5;
  --dim: #6f7a84;
  --accent: #5fbf4a;
  --accent-2: #7ed957;
  --gold: #ffd84a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
img {
  max-width: 100%;
}
a {
  color: var(--accent-2);
}
code {
  font: 0.9em Monocraft, ui-monospace, monospace;
  background: #000;
  color: #fff;
  padding: 1px 6px;
}

.mc {
  font-family: 'Monocraft', ui-monospace, monospace;
  -webkit-font-smoothing: none;
  font-weight: 400;
  letter-spacing: 0;
}
.mc-shadow {
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}
.dim {
  color: var(--dim);
}

/* stone button, like the game's */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 18px 'Monocraft', monospace;
  -webkit-font-smoothing: none;
  color: #fff;
  text-decoration: none;
  text-shadow: 2px 2px 0 #2a4a1c;
  background: linear-gradient(#6fcf55, #4c9a36);
  border: 3px solid #000;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.35),
    inset -3px -4px 0 rgba(0, 0, 0, 0.3);
  padding: 12px 24px;
  cursor: pointer;
  transition: filter 0.12s;
}
.mc-btn:hover {
  filter: brightness(1.12);
  color: #ffffa0;
}
.mc-btn.big {
  font-size: 20px;
  padding: 16px 30px;
}
.mc-btn.small {
  font-size: 14px;
  padding: 7px 14px;
  border-width: 2px;
}
.ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
}
.ghost-btn:hover {
  border-color: #fff;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  image-rendering: pixelated;
}
.nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav nav a:hover {
  color: #fff;
}

/* hero */
.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 56px));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.03);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 16, 18, 0.94) 0%, rgba(14, 16, 18, 0.75) 42%, rgba(14, 16, 18, 0.15) 75%),
    linear-gradient(transparent 70%, var(--bg));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 28px 80px;
}
.hero-copy {
  max-width: 600px;
}
.hero-icon {
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  margin: 18px 0 18px;
}
.lead {
  font-size: 19px;
  color: #d3d9de;
  margin: 0 0 30px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding: 20px 28px;
  border-block: 1px solid var(--border);
  background: var(--panel);
  font: 15px 'Monocraft', monospace;
  -webkit-font-smoothing: none;
  color: var(--muted);
}

/* sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 28px 20px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
  text-align: center;
}
.sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 42px;
  max-width: 640px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features article {
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.features article:hover {
  transform: translateY(-3px);
  border-color: #3d4750;
}
.features article img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}
/* original abstract tiles (no game artwork) */
.feat-art {
  height: 150px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 30% 20%, rgba(95, 191, 74, 0.28), transparent 60%),
    var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.feat-art.fa-2 { background-color: #1a1f1c; }
.feat-art.fa-3 { color: var(--gold); }
.feat-art.fa-4 { background-color: #1b1d22; }
.feat-art.fa-5 { color: #9fd6ff; }
.feat-art.fa-6 { background-color: #1d1c19; }
.hero-shot {
  background-position: right center;
  opacity: 0.55;
}
.band-art {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(ellipse at 50% 0%, rgba(95, 191, 74, 0.35), transparent 65%),
    #121518;
}
.features article div {
  padding: 18px 20px 22px;
}
.features h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.mini-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.mini-features div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-features span {
  color: var(--muted);
  font-size: 14px;
}

/* tour */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.tabs button {
  font: 14px 'Monocraft', monospace;
  -webkit-font-smoothing: none;
  color: #e0e0e0;
  text-shadow: 2px 2px 0 #3f3f3f;
  background: linear-gradient(#8b8b8b, #6f6f6f);
  border: 2px solid #000;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.35),
    inset -2px -3px 0 rgba(0, 0, 0, 0.35);
  padding: 8px 14px;
  cursor: pointer;
}
.tabs button:hover {
  background: linear-gradient(#a1b3e6, #7f90c2);
  color: #ffffa0;
}
.tabs button[aria-selected='true'] {
  background: linear-gradient(#5b8a3c, #3f6a2a);
  color: #ffff55;
}
.window {
  margin: 0;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: #1a1d20;
  color: var(--muted);
  font-size: 12px;
}
.titlebar span {
  flex: 1;
}
.titlebar i {
  width: 10px;
  height: 10px;
  border: 1px solid #555;
}
#shot {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.18s;
}
.caption {
  text-align: center;
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 760px;
  min-height: 3.2em;
}

/* art band */
.band {
  position: relative;
  margin-top: 90px;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(14, 16, 18, 0.55), rgba(14, 16, 18, 0.7));
}
.band-inner {
  position: relative;
  padding: 110px 28px;
}
.band h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin: 0 0 10px;
}
.band p {
  margin: 0 0 28px;
  font-size: 18px;
  color: #e3e7ea;
}

/* steps */
.steps {
  list-style: none;
  margin: 30px auto 0;
  padding: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps li {
  display: flex;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 20px 22px;
}
.steps .n {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #ffff55;
  text-shadow: 2px 2px 0 #3f3f00;
  background: linear-gradient(#5b8a3c, #3f6a2a);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.3);
}
.steps h3 {
  margin: 2px 0 4px;
  font-size: 18px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.note {
  max-width: 820px;
  margin: 22px auto 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  background: rgba(95, 191, 74, 0.08);
  border: 1px solid rgba(95, 191, 74, 0.4);
  color: #d4dbd2;
}
.note img {
  image-rendering: pixelated;
  flex: none;
}

/* faq */
.faq details {
  max-width: 820px;
  margin: 0 auto 10px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
}
.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

footer {
  margin-top: 90px;
  padding: 36px 28px 44px;
  border-top: 1px solid var(--border);
  background: var(--panel);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.foot-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
}
.foot-brand img {
  image-rendering: pixelated;
}
footer p {
  max-width: 760px;
  margin: 6px auto;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .mini-features {
    grid-template-columns: 1fr 1fr;
  }
  .nav nav {
    display: none;
  }
  .nav .mc-btn {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .features,
  .mini-features {
    grid-template-columns: 1fr;
  }
  .nav {
    padding: 10px 16px;
  }
  .brand span {
    font-size: 13px;
  }
  .hero-inner,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero::after {
    background: linear-gradient(rgba(14, 16, 18, 0.7), rgba(14, 16, 18, 0.92));
  }
  .mc-btn.big {
    width: 100%;
  }
  .ghost-btn {
    width: 100%;
    justify-content: center;
  }
  .steps li {
    padding: 16px;
    gap: 14px;
  }
}

/* downloads */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 22px;
}
.dl-card.mine {
  border-color: var(--accent);
}
.dl-card h3 {
  margin: 0;
  font-size: 20px;
}
.dl-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.dl-card .mc-btn {
  font-size: 15px;
  padding: 10px 14px;
  text-align: center;
  line-height: 1.3;
}
.ghost-btn.small {
  padding: 9px 14px;
  justify-content: center;
  font-size: 14px;
}
.dl-more {
  font-size: 13px;
  color: var(--dim);
}
.dl-size {
  font-size: 12px;
  color: var(--dim);
}
.unavailable {
  opacity: 0.4;
  pointer-events: none;
}

/* Phones and tablets (touch only; desktop is untouched).
   .jd-desktop-only is the shared "computer app" note used on Jordan's download pages. */
.jd-desktop-only {
  display: none;
}
@media (hover: none) and (pointer: coarse) and (max-width: 940px) {
  .jd-desktop-only {
    display: block;
    box-sizing: border-box;
    max-width: 560px;
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #221f1c;
    color: #d9d5ce;
    border: 1px solid #3b3835;
    border-radius: 6px;
    font: 500 15px/1.5 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    text-shadow: none;
  }
}
@media (hover: none) and (pointer: coarse) {
  .brand,
  .nav .mc-btn.small,
  .tabs button {
    min-height: 44px;
  }
  .dl-more a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
