/* RustLauncherMC's website. Plain CSS, no build step.
   Brand colours come from the logo and the launcher: charcoal greys (the logo's tile and the
   launcher's window), rust orange (the cog), grass green, Java purple and Bedrock red (the
   block's sides), and the launcher's green Play button. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Charcoal, like the logo's tile (#17181B to #2E3035) and the launcher (#1b1b1b, #262626). */
  --bg: #131416;
  --bg-2: #1a1b1e;
  --bg-3: #222327;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f5f2ee;
  --muted: #aca69e;
  --faint: #77726b;

  /* The cog. */
  --rust: #f0795a;
  --rust-2: #e2603c;
  --rust-3: #b7410e;
  --rust-glow: rgba(240, 121, 90, 0.35);

  /* The block. */
  --grass: #6db33f;
  --grass-2: #5d9c3f;
  --java: #3b2f7e;
  --java-hi: #6a5ad8;
  --bedrock: #b22222;
  --bedrock-hi: #e04444;

  /* The launcher's Play button. */
  --play: #3c8527;
  --play-hi: #4a9e31;

  --radius: 14px;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; color: #ffb39f; }
.defs { position: absolute; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px; }

.rust-text {
  background: linear-gradient(100deg, #ffb39f, var(--rust) 40%, var(--rust-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-java { color: #a99cff; font-weight: 600; }
.t-bedrock { color: #ff7a7a; font-weight: 600; }

/* ---------- Navigation: a floating pill ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 16px 0;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; gap: 22px;
  width: min(1120px, 100%); margin: 0 auto;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(26, 27, 30, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: width 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled .nav-pill {
  width: min(920px, 100%);
  background: rgba(26, 27, 30, 0.88);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(240, 121, 90, 0.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand em { font-style: normal; color: var(--rust); }
.brand img { transition: transform 0.6s ease; }
.brand:hover img { transform: rotate(-12deg); }
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-links a {
  position: relative; padding: 7px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--fg); background: rgba(240, 121, 90, 0.12); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px;
  margin-left: -2px; background: var(--rust); border-radius: 1px;
}
.pill[hidden] { display: none; }
.pill {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px;
  background: var(--rust); color: #1b0e09; font-size: 11px; font-weight: 700; vertical-align: 1px;
}
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--muted); transition: color 0.15s, background 0.15s;
}
.nav-icon:hover { color: var(--fg); background: rgba(255, 255, 255, 0.07); }
.nav-icon svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  font: 600 15px var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.15s, box-shadow 0.2s, border-color 0.15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-rust {
  background: linear-gradient(180deg, #f6876a, var(--rust-2));
  color: #1b0e09;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 30px -10px var(--rust-glow);
}
.btn-rust:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 40px -8px rgba(240, 121, 90, 0.6); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-big { padding: 14px 26px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; isolation: isolate; }
.hero::before {
  /* Warm light from the cog, behind everything. */
  content: ""; position: absolute; z-index: -2; left: 50%; top: 340px;
  width: 1300px; height: 900px; margin-left: -650px;
  background: radial-gradient(closest-side, rgba(240, 121, 90, 0.22), rgba(183, 65, 14, 0.08) 55%, transparent);
}
.hero-grid-bg {
  /* A faint block grid, fading out at the edges. */
  position: absolute; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero-text { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  color: var(--muted); font-size: 13.5px; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: rgba(240, 121, 90, 0.5); color: var(--fg); }
.chip-tag { padding: 2px 9px; border-radius: 999px; background: var(--grass); color: #0f1a08; font-weight: 700; font-size: 12px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 0.98; font-weight: 800; }
h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.lead { max-width: 640px; margin: 24px auto 32px; font-size: 18px; color: #d6d0c8; }
.lead a { text-decoration: none; }
.lead a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.os { display: inline-flex; align-items: center; gap: 6px; }
.os::before { content: ""; width: 11px; height: 11px; background: currentColor; opacity: 0.85; }
.os-win::before {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 6px 0 / 5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 6px 6px / 5px 5px no-repeat;
}
.os-linux::before { border-radius: 50% 50% 40% 40%; }
.meta .sep { opacity: 0.5; }
.rust-icon { width: 15px; height: 15px; flex: none; color: var(--fg); }
.written-in, .made-in { display: inline-flex; align-items: center; gap: 6px; }
.written-in a, .made-in a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(240, 121, 90, 0.5); text-underline-offset: 3px; }
.written-in a:hover, .made-in a:hover { text-decoration-color: var(--rust); }
/* No gap here: the full stop after "Rust" must touch it. */
.made-in { gap: 0; }
.made-in .rust-icon { width: 14px; height: 14px; margin: 0 4px 0 5px; color: var(--muted); }

/* Floating blocks, like the logo's. */
.float {
  position: absolute; z-index: -1; opacity: 0.9;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
  animation: bob 7s ease-in-out infinite;
}
.float.java { --r: #2c235f; }
.float.bedrock { --l: #8a1a1a; }
.f1 { left: 7%; top: 120px; width: 64px; height: 74px; rotate: -8deg; }
.f2 { right: 8%; top: 90px; width: 52px; height: 60px; animation-delay: -2s; rotate: 10deg; }
.f3 { left: 13%; top: 470px; width: 44px; height: 51px; animation-delay: -4s; opacity: 0.7; }
.f4 { right: 12%; top: 420px; width: 80px; height: 93px; animation-delay: -1s; opacity: 0.85; }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

/* The product shot. */
.stage { position: relative; width: min(980px, 100% - 32px); margin: 120px auto 0; }
.cog {
  /* A pixel cog rising behind the window like the sun. */
  position: absolute; z-index: -1; left: 50%; top: -96px;
  width: 760px; height: 760px; margin-left: -380px; opacity: 0.9;
  image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 70%);
  mask-image: linear-gradient(#000 40%, transparent 70%);
}
.preview { margin: 0; }
.preview figcaption { margin-top: 14px; font-size: 13px; color: var(--faint); text-align: center; }

.win {
  border-radius: 16px; overflow: hidden;
  background: #262626; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 80px -30px var(--rust-glow);
  font-size: 13px; user-select: none; text-align: left;
}
.win-bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: #161616; color: #888; font-size: 12px; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.win-bar i:first-child { background: #e0604a; }
.win-bar i:nth-child(2) { background: #e3b341; }
.win-bar i:nth-child(3) { background: #5bb04a; }
.win-bar span { margin-left: 10px; }
.win-body { display: grid; grid-template-columns: 200px 1fr; height: 440px; }
.win-side { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; background: #1b1b1b; }
.win-brand { display: flex; align-items: center; gap: 9px; padding: 6px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid #333; font-weight: 700; font-size: 13px; }
.win-brand small { display: block; font-weight: 400; color: #7a7a7a; font-size: 10px; }
.win-ed {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 5px;
  background: none; border: 0; color: var(--fg); font: inherit; text-align: left; cursor: pointer;
  transition: background 0.15s;
}
.win-ed:hover { background: #2a2a2a; }
.win-ed.active { background: #333; }
.win-ed b { display: block; font-size: 13px; }
.win-ed small { color: #aaa; font-size: 11px; }
.win-gear { margin-top: auto; padding: 8px; color: #aaa; font-size: 12px; }
.win-main { display: flex; flex-direction: column; background: #262626; min-width: 0; }
.win-head { padding: 16px 22px 0; background: #1f1f1f; border-bottom: 1px solid #3d3d3d; }
.win-head b { font: 700 21px var(--display); letter-spacing: 0; }
.win-head small { margin-left: 10px; color: #aaa; font-size: 13px; }
.win-head nav { display: flex; gap: 20px; margin-top: 10px; font-size: 11px; font-weight: 700; color: #aaa; }
.win-head nav span { padding-bottom: 8px; border-bottom: 3px solid transparent; }
.win-head nav .on { color: #fff; border-color: #fff; }
.win-art {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, var(--bedrock), #262626);
  transition: background 0.4s;
}
.win-art.java { background: linear-gradient(180deg, var(--java), #262626); }
.win-art img { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)); }
.win-art b { font: 700 26px var(--display); }
.win-art small { color: #d9d4d0; font-size: 13px; }
.win-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; height: 92px; padding: 0 22px; background: #1f1f1f; border-top: 1px solid #3d3d3d; }
.win-left { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.win-left small { color: #aaa; font-size: 11px; }
.win-inst { padding: 3px 9px; border-radius: 4px; background: #313131; font-weight: 600; font-size: 12px; }
.win-play {
  width: 220px; height: 54px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--play); color: #fff; font: 700 19px var(--body); letter-spacing: 0.02em;
  transition: background 0.15s;
}
.win-play:hover { background: var(--play-hi); }
.win-play.busy { background: #2f4a28; color: #aaa; cursor: default; }
.win-status { justify-self: end; color: #aaa; font-size: 11px; text-align: right; }

.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 14px;
}
.trust b { color: var(--fg); font-weight: 600; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  color: var(--rust); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--rust); box-shadow: 3px 3px 0 var(--rust-3); }
.section-lead { max-width: 580px; margin: 18px 0 0; color: var(--muted); font-size: 17px; }

.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.edition {
  padding: 30px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.edition::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  filter: blur(60px); opacity: 0.35; pointer-events: none;
}
.edition-java::after { background: var(--java-hi); }
.edition-bedrock::after { background: var(--bedrock-hi); }
.edition-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.edition-head h3 { font-size: 26px; }
.edition-head p { margin: 0; color: var(--muted); font-size: 14px; }
.edition-head a { color: var(--fg); }
.edition-block { width: 54px; height: 63px; flex: none; }
.edition-block.java { --r: #2c235f; }
.edition-block.bedrock { --l: #8a1a1a; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: #d6d0c8; font-size: 15px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px;
  background: var(--grass); box-shadow: 2px 2px 0 var(--grass-2);
}

.cube { width: 26px; height: 26px; border-radius: 3px; flex: none; box-shadow: inset 0 8px 0 var(--grass); }
.cube-java { background: var(--java); }
.cube-bedrock { background: var(--bedrock); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.feature {
  padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: rgba(240, 121, 90, 0.35); transform: translateY(-2px); }
.feature h3 { margin: 16px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ficon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(240, 121, 90, 0.12); color: var(--rust);
  border: 1px solid rgba(240, 121, 90, 0.25);
}
.ficon svg { width: 20px; height: 20px; }

.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.step h3 { margin: 18px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.num {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: linear-gradient(180deg, #f6876a, var(--rust-2)); color: #1b0e09;
  font: 800 18px var(--display); box-shadow: 4px 4px 0 var(--rust-3);
}

.download { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(240, 121, 90, 0.08), transparent); }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.dl {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.dl:hover { border-color: rgba(240, 121, 90, 0.5); background: var(--bg-3); transform: translateY(-2px); }
.dl b { font-weight: 600; }
.dl small { color: var(--muted); font-size: 13px; }
.dl.recommended { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust), 0 14px 40px -18px var(--rust-glow); }
.dl.recommended b::after { content: "For you"; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--rust); color: #1b0e09; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.fine { margin: 22px 0 0; color: var(--faint); font-size: 13px; }

.community { overflow: hidden; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; image-rendering: pixelated; }
.community .wrap { position: relative; z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.card {
  display: flex; flex-direction: column; gap: 6px; min-height: 124px; padding: 20px; border-radius: 12px;
  text-decoration: none; background: rgba(34, 35, 39, 0.75); border: 1px solid var(--line);
  backdrop-filter: blur(6px); transition: transform 0.15s;
}
.card:hover { transform: translateY(-3px); }
.card b { font-size: 17px; }
.card small { color: var(--muted); font-size: 13.5px; }
.card-rust { background: linear-gradient(160deg, #f6876a, var(--rust-3)); color: #1b0e09; border-color: transparent; }
.card-rust small { color: rgba(27, 14, 9, 0.78); }
.card-java { background: linear-gradient(160deg, var(--java-hi), var(--java)); border-color: transparent; }
.card-bedrock { background: linear-gradient(160deg, var(--bedrock-hi), #7d1515); border-color: transparent; }
.card-java small, .card-bedrock small { color: rgba(255, 255, 255, 0.82); }

.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(240, 121, 90, 0.35); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px; font-weight: 500;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rust); font-size: 20px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

.final { padding: 20px 0 110px; }
.final-box {
  display: flex; align-items: center; gap: 28px; padding: 36px 40px; border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(240, 121, 90, 0.25), transparent),
    var(--bg-2);
  border: 1px solid rgba(240, 121, 90, 0.25);
}
.final-box > div { flex: 1; }
.final-box h2 { font-size: clamp(28px, 3.4vw, 40px); }
.final-box p { margin: 6px 0 0; color: var(--muted); }
.final-block { width: 76px; height: 88px; flex: none; animation: bob 7s ease-in-out infinite; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 13.5px; background: #0f1012; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
/* As on playhorizon.dev: the notice, with Mojang's and Microsoft's marks dimmed beside it. */
.foot-notice { display: flex; flex-direction: row-reverse; align-items: center; gap: 16px; max-width: 560px; }
.foot-notice p { margin: 0; text-align: right; font-size: 15px; font-weight: 500; line-height: 1.55; color: rgba(245, 242, 238, 0.82); }
.foot-marks { display: flex; flex: none; align-items: center; gap: 12px; color: rgba(245, 242, 238, 0.45); }
.mark-mojang { width: 24px; height: 24px; }
.mark-microsoft { width: 20px; height: 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 40px 0; }
.foot-cols h4 { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; }
.foot-cols p { margin: 0; color: var(--muted); }
.foot-cols p + p { margin-top: 10px; }
.claude-icon { width: 14px; height: 14px; flex: none; color: #d97757; }
.claude-credit { white-space: nowrap; }
.claude-credit .claude-icon { display: inline-block; margin-right: 4px; vertical-align: -2px; }
.foot-cols .claude-note {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  background: rgba(217, 119, 87, 0.08); border: 1px solid rgba(217, 119, 87, 0.22);
  font-style: italic; color: #d8cfc7;
}
.claude-note .claude-icon { margin-top: 3px; }
.foot-cols a { color: var(--fg); text-decoration-color: rgba(240, 121, 90, 0.5); text-underline-offset: 3px; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); }
.foot-bottom a { color: var(--faint); text-decoration: none; }
.foot-bottom a:hover { color: var(--fg); }
.foot-bottom .repo-link { display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom .github-icon { width: 16px; height: 16px; flex: none; }

/* ---------- Reveal on scroll ---------- */
/* Hidden only when JavaScript runs, so the page still reads without it. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float, .final-block { animation: none; }
  .btn, .dl, .card, .feature, .win-art, .nav-pill, .brand img { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 1000px) {
  .win-body { grid-template-columns: 160px 1fr; height: 400px; }
  .editions, .faq-wrap { grid-template-columns: 1fr; }
  .features, .steps, .downloads { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
  .f2, .f4 { right: 2%; }
  .f1, .f3 { left: 2%; }
}
@media (max-width: 820px) {
  .nav { padding: 10px 10px 0; }
  .nav-pill { gap: 10px; padding-left: 12px; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 10px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  .nav-links a.active::after { display: none; }
  .nav-end { margin-left: auto; }
  .nav-toggle {
    display: grid; align-content: center; gap: 5px; width: 38px; height: 38px; padding: 0 10px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .section { padding: 80px 0; }
  .features, .steps, .downloads, .cards { grid-template-columns: 1fr; }
  .float { display: none; }
  .cog { width: 520px; height: 520px; margin-left: -260px; top: -70px; }
  .stage { margin-top: 96px; }
  .win { font-size: 11px; }
  .win-body { grid-template-columns: 1fr; height: auto; }
  .win-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .win-brand, .win-gear { display: none; }
  .win-art { min-height: 220px; }
  .win-head nav { gap: 12px; font-size: 10px; }
  .win-foot { grid-template-columns: 1fr auto; height: auto; padding: 14px; }
  .win-status { display: none; }
  .win-play { width: 140px; height: 46px; font-size: 16px; }
  .trust { gap: 8px 20px; font-size: 13px; }
  .final-box { flex-direction: column; text-align: center; padding: 30px 22px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-notice { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .foot-notice p { text-align: left; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 440px) {
  /* "Written in Rust" wraps onto its own line here, so it needs no separator before it. */
  .meta .sep-written { display: none; }
  .nav-end .btn-small { display: none; }
  .brand span { font-size: 16px; }
  .btn-big { width: 100%; }
  .cta { width: 100%; }
}
