:root {
  color-scheme: dark;
  --site-bg: #000000;
  --site-panel: #0a0a0a;
  --site-panel-2: #121212;
  --site-line: #181818;
  --site-text: #ffffff;
  --site-muted: #ababab;
  --site-accent: #5ec45e;
  --mc-green: #3c8527;
  --mc-green-hover: #489c30;
  --mc-green-hi: #6bc349;
  --mc-green-lo: #265918;
  --mc-gold: #b8b8b8;
  --mc-diamond: #b8b8b8;
  --mc-purple: #b8b8b8;
  --site-width: 1240px;
  --site-gutter: clamp(18px, 4vw, 52px);
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --ink: #ffffff;
  --ink-dim: #ababab;
  --ink-faint: #8c8c8c;
  --line: #181818;
  --font-head: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-pixel: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --font-btn: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body.site-home, body.site-inner, body.site-download {
  margin: 0;
  display: block;
  background: var(--site-bg);
  color: var(--site-text);
  font: 15px/1.6 var(--font-body);
  min-height: 100vh;
}
.site-home h1, .site-home h2, .site-home h3, .site-home p, .site-home figure { margin: 0; }
h1, h2, h3, .site-brand, .cl-ver, .download-intro h1, .release-intro h1 {
  font-family: var(--font-head);
  letter-spacing: -.02em;
  text-shadow: 2px 2px 0 #090b0e;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mc-gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.site-wrap { width: min(var(--site-width), 100%); padding-inline: var(--site-gutter); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000000;
  border-bottom: 2px solid var(--site-line);
}
.site-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; min-height: 76px; }
.site-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .01em;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #000000;
}
.site-brand img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.site-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px); list-style: none; padding: 0; margin: 0; }
.platform-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); list-style: none; padding: 0; margin: 0; }
.site-links a {
  color: #b4b4b4;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 4px;
  font: 600 15.5px/1.2 var(--font-head);
  transition: color .16s ease;
}
.platform-links a { color: var(--site-muted); text-decoration: none; white-space: nowrap; font-weight: 600; }
.site-links a:hover,
.site-links a[aria-current],
.platform-links a:hover { color: #ffffff; }
.site-nav > .site-button { justify-self: end; min-height: 38px; }

/* Classic Vanilla Minecraft Stone & Emerald Beveled Pixel Buttons */
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 42px;
  padding: 9px 17px;
  border: 2px solid #0d0d0d;
  border-radius: 2px;
  background: #484848;
  color: #ffffff;
  font: 700 13px/1.3 var(--font-btn);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 2px 2px 0 #1f1f1f;
  box-shadow: inset 2px 2px 0 #767676, inset -2px -2px 0 #262626;
  transition: background-color .12s, transform .08s, box-shadow .08s;
}
.site-button:hover {
  background: #575757;
  border-color: #0d0d0d;
  box-shadow: inset 2px 2px 0 #8a8a8a, inset -2px -2px 0 #2e2e2e;
}
.site-button:active {
  transform: translateY(2px);
  background: #363636;
  box-shadow: inset 2px 2px 0 #1e1e1e, inset -2px -2px 0 #5a5a5a;
}
.site-button-primary {
  background: var(--mc-green);
  color: #ffffff;
  border-color: #0d0d0d;
  text-shadow: 2px 2px 0 #183d0d;
  box-shadow: inset 2px 2px 0 var(--mc-green-hi), inset -2px -2px 0 var(--mc-green-lo);
}
.site-button-primary:hover {
  background: var(--mc-green-hover);
  border-color: #0d0d0d;
  color: #ffffff;
  box-shadow: inset 2px 2px 0 #7dd858, inset -2px -2px 0 var(--mc-green-lo);
}
.site-button-primary:active {
  box-shadow: inset 2px 2px 0 var(--mc-green-lo), inset -2px -2px 0 var(--mc-green-hi);
}

.site-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mc-gold);
  font: 700 11px/1.4 var(--font-pixel);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 0; background: var(--site-accent); }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding-block: clamp(46px, 7vw, 94px) clamp(38px, 6vw, 66px);
  position: relative;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 var(--site-gutter);
  z-index: -1;
  background: radial-gradient(ellipse at 77% 47%, #1c222b 0%, transparent 61%);
  pointer-events: none;
}
.home-hero h1 { font-size: clamp(3.2rem, 7vw, 6.2rem); line-height: .98; letter-spacing: -.02em; margin: 14px 0 18px; }
.home-hero h1 span { color: var(--site-accent); }
.home-hero .hero-lead { color: #c9d1de; font-size: clamp(1rem, 1.9vw, 1.25rem); line-height: 1.5; max-width: 34ch; }
.site-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.platform-links { gap: 7px 16px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; }
.platform-links a { text-decoration: underline; text-decoration-color: #4c5668; text-underline-offset: 4px; }
.platform-links a:hover { text-decoration-color: var(--mc-gold); }

.site-section { padding-block: clamp(38px, 6vw, 80px); }
.site-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 22px; }
.site-section-heading h2, .pet-copy h2, .download-strip h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-top: 9px;
}
.site-section-heading > p, .pet-copy > p:not(.site-kicker) { color: var(--site-muted); max-width: 38ch; }

.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.site-shot {
  overflow: hidden;
  border: 2px solid #141414;
  background: #050505;
  border-radius: 4px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.5);
  transition: border-color .18s ease, transform .18s ease;
}
.site-shot:hover { border-color: #2b2b2b; }
.hero-shot { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55); border-color: #363e4d; }
.site-shot a { display: block; overflow: hidden; background: #0d1015; }
.site-shot a:focus-visible { outline-offset: -4px; }
.site-shot img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: contain; }
.site-shot figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-top: 2px solid var(--site-line);
  background: #080808;
}
.site-shot figcaption span {
  color: var(--mc-gold);
  font: 700 10px var(--font-pixel);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.site-shot figcaption strong { font-size: 13px; color: var(--site-text); }

.pet-panel, .download-strip {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 24px;
  border: 2px solid var(--site-line);
  border-radius: 4px;
  padding: clamp(16px, 4vw, 44px);
  background: var(--site-panel);
}
.pet-copy > p:not(.site-kicker) { margin: 12px 0 17px; }
.pet-heart { position: absolute; opacity: 0; color: #ffffff; text-shadow: 1px 1px 0 #000000; font-size: 20px; line-height: 1; pointer-events: none; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-grid article {
  border: 2px solid #161616;
  border-top: 2px solid #282828;
  border-radius: 4px;
  background: #060606;
  padding: 20px;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.feature-grid article:hover {
  transform: translateY(-2px);
  border-color: #2a2a2a;
  background: #0a0a0a;
}
.feature-grid article.mc-card-green { border-top-color: #282828; }
.feature-grid article.mc-card-green h3 { color: #ffffff; }
.feature-grid article.mc-card-blue { border-top-color: #282828; }
.feature-grid article.mc-card-blue h3 { color: #ffffff; }
.feature-grid article.mc-card-gold { border-top-color: #282828; }
.feature-grid article.mc-card-gold h3 { color: #ffffff; }
.feature-grid span { font: 700 11px var(--font-pixel); letter-spacing: .08em; color: #9a9a9a; }
.feature-grid h3 { font-size: 1.15rem; line-height: 1.3; margin: 6px 0 8px; }
.feature-grid p, .site-faq p { color: var(--site-muted); }

.site-faq details { border-top: 2px solid var(--site-line); padding: 15px 0; }
.site-faq details:last-child { border-bottom: 2px solid var(--site-line); }
.site-faq summary {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  color: var(--site-text);
}
.site-faq summary:hover { color: #d8d8d8; }
.site-faq summary:active { transform: translateY(1px); }
.site-faq p { margin: 9px 0 0; max-width: 70ch; }
.download-strip { display: flex; justify-content: space-between; flex-wrap: wrap; }

.site-footer { border-top: 2px solid var(--site-line); background: #040404; }
.site-footer-inner { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 25px; padding-block: 36px 25px; }
.site-footer-inner p { margin: 8px 0 0; color: var(--site-muted); max-width: 35ch; }
.site-footer nav { display: flex; flex-direction: column; align-items: start; gap: 6px; }
.site-footer nav strong { margin-bottom: 4px; color: var(--mc-gold); font-family: var(--font-pixel); font-size: 11px; text-transform: uppercase; }
.site-footer nav a, .site-footer nav button { color: var(--site-muted); font: inherit; text-decoration: none; }
.site-footer nav button { background: none; border: 0; padding: 0; cursor: pointer; }
.site-footer nav a:hover, .site-footer nav button:hover { text-decoration: underline; color: var(--site-text); }
.site-footer-bottom { border-top: 1px solid var(--site-line); padding-block: 14px 20px; color: var(--site-muted); font-size: 12px; }

.site-skip { position: fixed; left: 12px; top: 12px; z-index: 1001; transform: translateY(-160%); padding: 9px 13px; background: var(--mc-green); color: #ffffff; font-family: var(--font-pixel); }
.site-skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

#shot-dialog { width: min(95vw, 1160px); max-height: 95dvh; padding: 0; border: 2px solid #1c1c1c; border-radius: 4px; background: #000000; color: var(--site-text); }
#shot-dialog::backdrop { background: rgba(0, 0, 0, 0.96); }
.shot-dialog-bar, .shot-dialog-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #050505; }
.shot-dialog-bar { border-bottom: 2px solid #181818; }
.shot-dialog-controls { border-top: 2px solid #181818; }
#shot-full { width: 100%; max-height: calc(95dvh - 119px); object-fit: contain; display: block; background: #000000; }
#shot-dialog .site-button { min-height: 36px; }

#bat-adblock-notice { display: none; position: fixed; z-index: 24; bottom: 16px; right: 16px; max-width: min(480px, calc(100% - 32px)); padding: 12px 14px; background: var(--site-panel); border: 2px solid var(--site-line); border-radius: 4px; color: var(--site-muted); gap: 12px; align-items: center; }
#bat-adblock-notice.active { display: flex; }
#bat-adblock-notice button { color: var(--mc-gold); background: none; border: 0; text-decoration: underline; cursor: pointer; }

body.site-inner > main.content, body.site-inner > div.content { width: min(100%, 950px); max-width: none; margin-inline: auto; padding: clamp(38px, 7vw, 88px) var(--site-gutter) clamp(60px, 8vw, 120px); }
.site-inner .page-head { border-bottom: 2px solid var(--site-line); padding-bottom: 24px; margin-bottom: 26px; }
.site-inner .page-head::before { content: attr(data-section); display: block; color: var(--mc-gold); font: 700 11px/1.5 var(--font-pixel); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.site-inner .page-head h1, .site-inner .hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -.02em; line-height: 1.1; }
.site-inner .section, .site-inner .intro-card, .site-inner .contact-card, .site-inner .toc { border-color: var(--site-line); }
.site-inner .intro-card, .site-inner .contact-card, .site-inner .toc { background: var(--site-panel); border-radius: 4px; }
.site-inner .hero { min-height: auto; padding-top: clamp(38px, 7vw, 88px); padding-inline: var(--site-gutter); max-width: var(--site-width); }
.site-inner .changelog { padding-inline: var(--site-gutter); max-width: var(--site-width); }
.site-inner .cl-tag { background: var(--mc-green); color: #fff; }
.site-inner .error-code { color: var(--mc-gold); }
.site-inner .about-copy p { max-width: 65ch; margin: 0 0 1em; color: var(--site-muted); }
.site-inner .about-copy h2 { margin: 1.2em 0 .4em; }
.site-download .download-layout { display: grid; place-items: center; padding: 48px var(--site-gutter) 70px; min-height: 58vh; }
.site-download .dl-card { width: min(100%, 560px); background: var(--site-panel); border: 2px solid var(--site-line); border-radius: 4px; }
.site-download .dl-dot.now, .site-download .dl-progress-fill { background: var(--site-accent); }
.site-download .dl-back { display: inline-block; margin-top: 14px; color: var(--site-muted); font-size: 13px; }

.preview-note {
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 2px solid var(--site-line);
  border-left: 4px solid var(--site-accent);
  border-radius: 3px;
  background: var(--site-panel);
  color: var(--site-muted);
}
.preview-note strong { color: var(--site-accent); font-family: var(--font-pixel); font-size: 12px; text-transform: uppercase; }
.preview-note p { margin-top: 4px; }

.site-bat-layer { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.site-bat-layer canvas { position: absolute; left: 0; top: 0; width: 88px; height: 60px; image-rendering: pixelated; }
.pet-roost { min-height: 170px; display: grid; place-content: center; justify-items: center; border: 2px solid var(--site-line); border-radius: 4px; background: radial-gradient(ellipse, #222733, #12151b 73%); text-align: center; }
.pet-roost img { object-fit: contain; image-rendering: pixelated; }
.pet-roost span { font: 700 10px var(--font-pixel); letter-spacing: .1em; color: var(--mc-gold); }
.gallery-launcher-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; }
.gallery-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 4vw, 47px); border: 2px solid var(--site-line); background: var(--site-panel); border-radius: 4px; }
.gallery-intro h3 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.015em; line-height: 1.08; margin: 12px 0; }
.gallery-intro p:last-child { max-width: 38ch; color: var(--site-muted); }
.site-home .gallery-subheading { margin: 32px 0 13px; font-size: clamp(1.25rem, 2.8vw, 1.8rem); letter-spacing: -.015em; }
.site-links a { text-underline-offset: 7px; }
.site-links a:hover { text-decoration: underline; }

@media (max-width: 830px) {
  .site-nav { grid-template-columns: 1fr auto; gap: 0 12px; padding-block: 8px; min-height: auto; }
  .site-nav > .site-links { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; overflow: auto; padding-block: 5px; font-size: 13px; }
  .home-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 52px; }
  .hero-shot { max-width: 670px; }
  .site-section-heading { align-items: start; flex-direction: column; gap: 8px; }
}
@media (max-width: 580px) {
  .shot-grid, .feature-grid, .pet-panel, .gallery-launcher-row { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-inner > div { grid-column: 1 / -1; }
  .site-shot figcaption { padding-inline: 10px; }
  .shot-dialog-bar, .shot-dialog-controls { padding-inline: 8px; }
  .site-nav .site-links { justify-content: start; gap: 16px; }
  .pet-roost { min-height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-button, .site-shot img { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .site-inner .page-head, .site-inner .hero, .dl-card { animation: site-enter .45s cubic-bezier(.2, .75, .25, 1) both; }
  #shot-dialog[open] { animation: site-enter .2s ease-out both; }
}
@keyframes site-enter { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

