/* Neather Launcher
   One page, four dimensions:
   Home = Overworld (brand lime) · What's new = Cave (diamond cyan)
   Versions = Nether (lava orange) · About = The End (ender violet)

   UI language: chunky Minecraft bevels — hard offset shadows, 2px edges,
   small radii, pixel display font. Body copy stays in a clean sans.       */

:root {
  --bg: #0F280E;
  --bg2: #0b1e0c;
  --glow: #1D4A19;
  --lime: #62C848;
  --lime-hover: #7be065;
  --lime-deep: #3A962E;
  --text: #ffffff;
  --muted: #cfdcd6;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.3);
  --display: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --r: 6px;
  --r-card: 8px;

  /* per-dimension theme (overridden on each section) */
  --acc: var(--lime);
  --acc-ink: #0F280E;
  --panel: rgba(9, 24, 9, 0.72);
  --edge: rgba(255, 255, 255, 0.14);
  --nav-acc: var(--lime);
}
body[data-dim="cave"]   { --nav-acc: #5BB242; }
body[data-dim="nether"] { --nav-acc: #62C848; }
body[data-dim="end"]    { --nav-acc: #3A962E; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--acc, var(--lime)); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: 0 0 auto; width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
/* Inline SVG icons use fill="currentColor": each icon always matches its own text color,
   and recolors automatically whenever the text color changes (hover, active, themes). */
.dl-link .ico { width: 14px; height: 14px; }
.os-switch button { display: inline-flex; align-items: center; gap: 7px; }
.os-switch .ico { width: 15px; height: 15px; }
.dl-btns .btn { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Buttons: chunky bevel ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 13px/1 var(--font); border-radius: var(--r); padding: 12px 18px;
  border: 2px solid rgba(0, 0, 0, 0.55); white-space: nowrap;
  transition: filter .15s, transform .1s, background-color .15s, border-color .15s; }
.btn-lg { padding: 15px 24px; font-size: 14px; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); }
.btn-lime, .btn-acc, .btn-dark {
  box-shadow: inset 0 3px 0 rgba(255,255,255,.34), inset 0 -4px 0 rgba(0,0,0,.24), 0 3px 0 rgba(0,0,0,.4); }
.btn-lime { background: var(--lime); color: #0F280E; }
.btn-acc  { background: var(--acc); color: var(--acc-ink); }
.btn-dark { background: #0F280E; color: #fff; border-color: #000; }
.btn-outline, .btn-ghost { background: rgba(0,0,0,.3); color: #fff; border-color: var(--line-soft); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.btn-ghost { border-color: var(--acc); }
.btn-outline:hover { border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
/* Hidden elements (e.g. download options with no published asset) never show,
   even when a component class sets display explicitly. */
[hidden] { display: none !important; }

/* ---------- Navigation (sticks with home — no bar, logo left / links middle / download right) ---------- */
.nav { position: absolute; z-index: 30; top: 0; left: 0; right: 0; max-width: none; margin: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 56px 18px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { width: auto; height: 68px; object-fit: contain; }
.nav-links { display: flex; gap: 10px; list-style: none; }
.nav-links a { display: block; white-space: nowrap; padding: 12px 24px; font-size: 17px; font-weight: 700; color: var(--muted); border-radius: var(--r);
  box-shadow: none; transition: color .2s; user-select: none; }
.nav-links a:hover { color: #fff; background: transparent; }
/* select / active highlight removed — active link looks like the rest */
.nav-links a[aria-current="true"] { color: var(--muted); box-shadow: none; background: transparent; }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; justify-self: end; }
.nav-actions .btn { padding: 15px 30px; font-size: 16px; }
.nav-actions .btn .ico { width: 20px; height: 20px; }
/* Sponsor button — same chunky lime block as the old nav clock button */
.sponsor-wrap { position: relative; }
.sponsor-btn { display: inline-flex; align-items: center; gap: 9px;
  font: 700 16px/1 var(--font); color: #0F280E; background: var(--lime);
  border: 2px solid rgba(0, 0, 0, 0.55); border-radius: var(--r);
  padding: 15px 30px; white-space: nowrap; user-select: none; cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.34), inset 0 -4px 0 rgba(0,0,0,.24), 0 3px 0 rgba(0,0,0,.4);
  transition: filter .15s, transform .1s; }
.sponsor-btn:hover { filter: brightness(1.08); }
.sponsor-btn:active { transform: translateY(2px); }
.sponsor-btn .ico-sponsor { width: 20px; height: 20px; flex: 0 0 auto; }
.sponsor-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; min-width: min(410px, calc(100vw - 32px)); width: max-content; max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  background: rgba(8,20,8,.96); border: 2px solid rgba(98,200,72,.4); border-radius: 10px;
  padding: 14px 16px; box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.sponsor-menu[hidden] { display: none; }
.cta-strip .sponsor-menu { top: auto; bottom: calc(100% + 10px); right: 0; }
.sponsor-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sponsor-link { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #fff; white-space: normal; overflow-wrap: anywhere; word-break: break-word;
  padding: 10px 12px; border: 2px solid var(--line-soft); border-radius: var(--r); transition: border-color .15s, background-color .15s; }
.sponsor-link:hover { border-color: var(--lime); background: rgba(98,200,72,.1); }
.sponsor-ico { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }
.hamburger { display: none; background: rgba(0,0,0,.3); border: 2px solid var(--line-soft); color: #fff; border-radius: var(--r); width: 42px; height: 38px; font-size: 17px; line-height: 1; }

.mobile-menu { display: none; position: absolute; z-index: 29; top: 74px; left: 14px; right: 14px; background: rgba(8,20,8,.96);
  border: 2px solid rgba(255,255,255,.12); border-radius: 10px; padding: 6px 18px; box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 4px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a[aria-current="true"] { color: inherit; }

/* ---------- Hero · Overworld ---------- */
.hero {
  position: relative; min-height: max(100vh, 680px);
  background: radial-gradient(ellipse 60% 55% at 50% 0%, var(--glow) 0%, rgba(29,74,25,0) 100%), var(--bg);
  display: flex; flex-direction: column; overflow: hidden;
}
.grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.grid-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,40,14,.22), rgba(15,40,14,0) 30%, rgba(15,40,14,.42));
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }

.content { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 130px 24px 140px; }
/* Soft ambient blur that melts into the background — no box, no outline.
   The glow lives on a feathered ::before layer so its edges dissolve. */
.hero-panel { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 36px 48px 32px; max-width: 100%; }
.hero-panel::before { content: ""; position: absolute; inset: -46px -70px; z-index: 0; pointer-events: none;
  background: rgba(8, 20, 8, 0.14);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 55%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 55%, transparent 78%); }
.hero-panel > * { position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: #e6efe9;
  background: rgba(0,0,0,.35); border: 2px solid var(--edge); border-radius: var(--r); padding: 6px 14px; margin-bottom: 20px; }
.badge .cube { width: 15px; height: 15px; flex: 0 0 auto; color: var(--acc); }
.hero .badge { border-color: rgba(98,200,72,.4); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.15; letter-spacing: 0; max-width: 1100px;
  text-shadow: 0 4px 0 #061806, 0 12px 32px rgba(0,0,0,.4); text-wrap: balance; }
h1 span { display: block; white-space: nowrap; }
h1 .hl { color: var(--lime); }
.sub { margin-top: 22px; max-width: 780px; font-size: 15px; color: var(--muted); text-shadow: 0 2px 0 rgba(0,0,0,.5); text-wrap: balance; }
.sub strong { color: #fff; }
.cta { position: relative; margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.os-hint { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-shadow: 0 2px 0 rgba(0,0,0,.5); }

.trail { position: absolute; top: 50%; width: 120px; height: 2px; pointer-events: none; }
.trail::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  background: var(--lime); box-shadow: 0 0 0 3px rgba(98,200,72,.22), 0 0 16px 4px rgba(98,200,72,.55); }
.trail-left { right: calc(100% + 30px); background: linear-gradient(90deg, transparent, var(--lime)); transform: translateY(-4px) rotate(-28deg); }
.trail-left::after { right: -4px; }
.trail-right { left: calc(100% + 30px); background: linear-gradient(270deg, transparent, var(--lime)); transform: translateY(-8px) rotate(28deg); }
.trail-right::after { left: -4px; }

.users-card { position: absolute; z-index: 4; left: 40px; bottom: 32px; background: rgba(8,20,8,.72); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 2px solid rgba(98,200,72,.35); border-radius: var(--r-card); padding: 12px 18px 14px; box-shadow: 0 4px 0 rgba(0,0,0,.35); min-width: 170px; }
.users-card .label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--muted); }
.users-card .label .cube { width: 12px; height: 12px; flex: 0 0 auto; color: #4ade80; filter: drop-shadow(0 0 6px rgba(74,222,128,.8)); }
.users-card .row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.users-card .count { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.avatars { display: flex; }
.avatars img { width: 24px; height: 24px; border: 2px solid #0F280E; margin-left: -7px; object-fit: cover; background: #0F280E; image-rendering: pixelated; }
.avatars img:first-child { margin-left: 0; }
.os-switch { position: absolute; z-index: 4; right: 40px; bottom: 40px; display: inline-flex; gap: 3px; background: rgba(8,20,8,.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 2px solid rgba(98,200,72,.35); border-radius: var(--r-card); padding: 4px; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.os-switch button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 4px; transition: background-color .15s, color .15s; }
.os-switch button:hover { color: #fff; }
.os-switch button[aria-pressed="true"] { background: var(--lime); color: #0F280E; box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.2); }

/* ---------- Dimension sections ---------- */
.page { display: block; background: #0F280E; }
.section { --pt: clamp(150px, 14vw, 190px); --pb: clamp(140px, 13vw, 180px);
  position: relative; overflow: hidden; isolation: isolate; padding: var(--pt) clamp(20px, 6vw, 80px) var(--pb); background: transparent; }
.wrap { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; }
.sec-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sec-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
/* neighbouring dimensions dissolve into each other — no hard join lines.
   Upper scene fades out across its bottom 220px, lower scene fades in
   across its top 170px; both melt through the same deep base tone. */
#new .sec-bg, #versions .sec-bg {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 85%, transparent 100%); }
#about .sec-bg {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%); }
#new::after, #versions::after {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 85%, transparent 100%); }
#about::after {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%); }
.section::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Cave — stone, deepslate, lit green-lime accent */
#new { --acc: #5BB242; --acc-ink: #0F280E; --panel: rgba(9, 20, 9, 0.76); --edge: rgba(91, 178, 66, 0.32); background: transparent; }
#new::after { background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(4,10,4,.30), rgba(4,10,4,0) 100%); }
/* Nether — netherrack, lava glow, framed in green */
#versions { --acc: #62C848; --acc-ink: #0F280E; --panel: rgba(10, 22, 9, 0.78); --edge: rgba(98, 200, 72, 0.34); --pt: clamp(170px, 16vw, 210px); --pb: clamp(190px, 17vw, 250px); background: transparent; }
#versions::after { background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(4,10,3,.5), rgba(4,10,3,0) 100%); }
#versions .wrap { position: relative; transform: translateY(-30px); }
/* The End — void, end stone, deep green accent */
#about { --acc: #3A962E; --acc-ink: #ffffff; --panel: rgba(8, 18, 8, 0.78); --edge: rgba(58, 150, 46, 0.34); --pb: clamp(190px, 17vw, 240px); background: transparent; }
#about::after { background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(3,8,3,.32), rgba(3,8,3,0) 100%); }

.section-head, .about-grid > div:first-child { text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 0 22px rgba(0,0,0,.6); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section h2 { font-family: var(--display); font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.section-head p, .muted { margin-top: 14px; color: #dbe5e0; font-size: 14px; max-width: 470px; }
.section .badge { border-color: var(--edge); }

/* shared panel look */
.feat, .dl-bar, .releases-wrap, .how {
  background: var(--panel); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 2px solid var(--edge); border-radius: var(--r-card); box-shadow: 0 4px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06); }

/* Features — greenish showcase: auto-height side cards, wide middle screenshot */
.wrap-features { max-width: 1400px; width: 100%; }
.section-head-center { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-head-center p { max-width: 620px; margin-left: auto; margin-right: auto; }
.features-showcase { display: grid; grid-template-columns: 265px 1fr 265px; column-gap: 52px; row-gap: 18px; align-items: stretch; justify-content: space-between; }
/* title-only cards stretched to match the full height of the screenshot frame */
.feat-col { display: grid; gap: 12px; align-content: stretch; grid-auto-rows: 1fr; height: 100%; }
.feat-col:first-child { justify-self: stretch; margin-left: -22px; }
.feat-col:last-child { justify-self: stretch; margin-right: -22px; }
button.feat { font-family: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer;
  display: flex; gap: 16px; align-items: center; padding: 24px 20px; transition: border-color .18s, transform .18s, box-shadow .18s, background-color .18s; }
button.feat:hover { border-color: rgba(98,200,72,.65); transform: translateY(-2px); }
button.feat.is-active { border-color: var(--lime); background: rgba(14,34,12,.88);
  box-shadow: 0 4px 0 rgba(0,0,0,.38), 0 0 0 1px rgba(98,200,72,.5), 0 0 28px rgba(98,200,72,.22), inset 0 1px 0 rgba(255,255,255,.06); }
.feat .icon { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(98,200,72,.22), rgba(0,0,0,.45));
  border: 2px solid rgba(98,200,72,.45); border-radius: var(--r);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22), inset 0 -3px 0 rgba(0,0,0,.3); }
.feat .icon img { width: 44px; height: 44px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.feat .icon svg { width: 22px; height: 22px; image-rendering: pixelated; }
.feat-text { display: block; min-width: 0; }
.feat-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #0F280E; background: var(--lime); border: 2px solid rgba(0,0,0,.45); border-radius: 4px; padding: 2px 10px; margin-bottom: 6px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35); }
.feat h3 { font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.3; }
.feat p { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
/* middle stage — tall green frame, arrows instead of thumbnails */
.feature-stage { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; min-width: 0; }
.stage-main { position: relative; flex: 1 1 auto; display: block; height: 560px; min-height: 560px; margin: 0; overflow: hidden; background: #081a0b; }
/* contain = whole screenshot always visible, never cropped, any size/resolution */
.stage-main img#featureShot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center center; display: block; transform: none; background: #081a0b; }
/* green theme frame — overrides the brown .shot painting frame */
.shot.stage-green { background: #081a0b; border: 3px solid rgba(98,200,72,.65); border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(0,0,0,.55), 0 0 36px rgba(98,200,72,.25), 0 6px 0 rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08); }
.shot.stage-green:hover img#featureShot { transform: none; }
.shot.stage-green figcaption { color: #0F280E; background: var(--lime); border: 2px solid rgba(0,0,0,.55); border-radius: 6px;
  font-size: 12.5px; box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 2px 0 rgba(0,0,0,.4); }
.stage-bar { display: flex; align-items: center; justify-content: center; gap: 16px; }
/* bottom arrow buttons — chunky lime, dark pixel arrows (assets/left.svg, right.svg) */
.stage-arrow { position: static; transform: none; width: 46px; height: 36px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: var(--r); cursor: pointer;
  background: var(--lime); border: 2px solid rgba(0,0,0,.55);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.34), inset 0 -4px 0 rgba(0,0,0,.24), 0 3px 0 rgba(0,0,0,.4);
  transition: filter .15s, transform .1s; padding: 0; }
.stage-arrow:hover { filter: brightness(1.08); }
.stage-arrow:active { transform: translateY(2px); }
.stage-arrow img { width: 20px; height: 20px; max-width: 20px; max-height: 20px; object-fit: contain; display: block; }
.stage-dots { display: flex; gap: 8px; }
.stage-dots button { width: 26px; height: 8px; border-radius: 99px; border: 2px solid rgba(98,200,72,.5); background: rgba(0,0,0,.4); padding: 0; transition: background .2s, width .2s; }
.stage-dots button.is-active { width: 38px; background: var(--lime); border-color: rgba(0,0,0,.5); box-shadow: 0 0 12px rgba(98,200,72,.6); }
.stage-count { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

.shots { display: grid; gap: 14px; }
.shots-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* screenshots hang on the cave wall like paintings */
.shot { position: relative; margin: 0; overflow: hidden; cursor: zoom-in; background: #2b1c0e;
  border: 6px solid #6b4a26; border-radius: 2px;
  box-shadow: inset 0 0 0 2px #3f2a14, 0 0 0 2px #2a1b0c, 0 6px 0 2px rgba(0,0,0,.4); }
.shot img { width: 100%; height: 170px; object-fit: cover; transition: transform .35s; }
.shot.big img { height: 250px; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 10px; bottom: 10px; font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1.3;
  color: #3a2614; background: #cfa96c; border: 2px solid #6b4a26; border-radius: 3px; padding: 2px 10px; box-shadow: 0 2px 0 rgba(0,0,0,.4); }

/* Versions */
.dl-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; margin-bottom: 16px;
  border-color: rgba(98,200,72,.6); box-shadow: 0 4px 0 rgba(0,0,0,.38), 0 0 44px rgba(58,150,46,.22); }
.dl-info strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.2; }
.dl-info span { font-size: 13px; color: var(--muted); }
.dl-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.releases-wrap { overflow: hidden; min-height: 340px; }
.releases-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 2px solid var(--edge); }
.releases-count { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.releases-toolbar input { flex: 1 1 220px; width: 100%; max-width: 360px; border: 2px solid var(--edge); background: rgba(0,0,0,.35); color: #fff;
  border-radius: var(--r); padding: 10px 14px; font-family: inherit; font-size: 13px; }
.releases-toolbar input:focus { border-color: var(--acc); outline: none; }
.releases-toolbar input::placeholder { color: #a9c2ac; }

/* THEMED TABLE SCROLLBAR */
.table-scroll { 
  overflow-y: auto; 
  height: clamp(300px, 42vh, 440px); 
  scrollbar-width: thin;
  scrollbar-color: var(--lime) var(--bg2);
}
.table-scroll::-webkit-scrollbar {
  width: 16px;
}
.table-scroll::-webkit-scrollbar-track {
  background: var(--bg2);
  border-left: 2px solid rgba(0, 0, 0, 0.55);
  box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.5);
}
.table-scroll::-webkit-scrollbar-thumb {
  background: var(--lime);
  border: 2px solid rgba(0, 0, 0, 0.55);
  border-radius: var(--r);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.34), 
              inset 0 -4px 0 rgba(0, 0, 0, 0.24);
}
.table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--lime-hover);
}
.table-scroll::-webkit-scrollbar-thumb:active {
  background: var(--lime-deep);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.3);
}
.table-scroll::-webkit-scrollbar-button {
  display: block;
  height: 16px;
  background-color: var(--lime-deep);
  border: 2px solid rgba(0, 0, 0, 0.55);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.table-scroll::-webkit-scrollbar-button:single-button:vertical:decrement {
  border-radius: var(--r) var(--r) 0 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path d="M5 2L9 8H1L5 2Z" fill="%230F280E"/></svg>');
}
.table-scroll::-webkit-scrollbar-button:single-button:vertical:increment {
  border-radius: 0 0 var(--r) var(--r);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path d="M5 8L1 2H9L5 8Z" fill="%230F280E"/></svg>');
}

table.releases { width: 100%; border-collapse: collapse; font-size: 13px; }
table.releases th { text-align: left; font-size: 12px; color: var(--muted); padding: 12px 16px; border-bottom: 2px solid var(--edge); font-weight: 600; }
table.releases td { padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,.09); vertical-align: top; }
table.releases tr:last-child td { border-bottom: 0; }
table.releases tbody tr { transition: background-color .15s; }
table.releases tbody tr:hover td { background: rgba(98,200,72,.07); }
.nowrap { white-space: nowrap; }
.ver-pill { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2; padding: 3px 10px; border-radius: 4px; border: 2px solid var(--edge); }
.ver-pill.stable { background: var(--acc); border-color: rgba(0,0,0,.45); color: var(--acc-ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.3); }
.ver-pill.beta { background: transparent; border-style: dashed; border-color: var(--acc); color: var(--acc); }
.ver-pill.old { background: rgba(255,255,255,.06); color: var(--muted); }
.tag-latest { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: #9be887; border: 1px solid rgba(98,200,72,.6); border-radius: 4px; padding: 1px 7px; vertical-align: 2px; }
.changelog, .dim { color: var(--muted); font-size: 12.5px; }
.dl-cell { text-align: right; }
.dl-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; color: var(--acc); white-space: nowrap;
  padding: 7px 12px; border: 2px solid var(--edge); border-radius: var(--r); transition: background-color .15s, color .15s, border-color .15s; }
.dl-link:hover { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.empty { text-align: center; color: var(--muted); padding: 26px 16px; }
.noscript-note { padding: 14px 16px; font-size: 13px; color: var(--muted); border-top: 2px solid var(--edge); }
.noscript-note a { color: var(--acc); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mini-note { margin-top: 16px; font-size: 13px; color: #dcefd8; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.mini-note a { color: var(--acc); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* About + how to play */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: start; }
.about-grid .muted + .muted { margin-top: 10px; }
.about-credit { margin-top: 14px; font-size: 13.5px; color: #e6efe9; border-left: 3px solid var(--acc); padding-left: 12px; line-height: 1.55; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.about-credit strong { color: #fff; }
.stats { display: flex; gap: 30px; margin-top: 26px; }
.stats b { display: block; font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--acc); }
.stats small { font-size: 12px; font-weight: 600; color: var(--muted); }
.how { padding: 24px; }
.how h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin-bottom: 16px; }
.how h3 span { color: var(--muted); font-family: var(--font); font-weight: 500; font-size: 13px; }
.how ol { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.how li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.how li b { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; font-family: var(--display); font-size: 15px;
  background: var(--acc); color: var(--acc-ink); border-radius: 4px; box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.22); }
.faq { display: grid; }
.faq details { border-top: 1px solid rgba(255,255,255,.12); padding: 13px 2px; }
.faq summary { font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc); font-weight: 700; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 7px; font-size: 13px; color: var(--muted); }

/* Back home: a strip of grass */
.cta-strip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--lime); color: #0F280E; padding: 48px clamp(20px, 6vw, 80px) 36px; }
.cta-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(90deg, #3A962E 0 48px, #2f7d26 48px 80px, #45ab35 80px 144px, #2f7d26 144px 176px, #3A962E 176px 240px); }
.cta-strip h2 { font-family: var(--display); font-size: clamp(22px, 3.2vw, 34px); line-height: 1.15; font-weight: 700; }
.cta-strip p { margin-top: 4px; font-size: 13.5px; font-weight: 600; opacity: .8; }
footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px clamp(20px, 6vw, 80px); background: #081a0b; color: var(--muted); font-size: 12.5px; border-top: 2px solid rgba(98,200,72,.2); }
footer .flinks { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8,20,10,.93); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(900px, 92vw); max-height: 80vh; border: 6px solid #6b4a26; border-radius: 2px; box-shadow: 0 0 0 2px #2a1b0c; }
.lightbox button { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: var(--r); border: 2px solid rgba(0,0,0,.5); background: #fff; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features-showcase { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .feat-col:first-child { margin-left: 0; }
  .feat-col:last-child { margin-right: 0; }
  .feature-stage { grid-column: 1 / -1; order: -1; position: static; height: auto; }
  .stage-main { height: 380px; min-height: 380px; }
}
@media (max-width: 960px) {
  .new-grid, .about-grid { grid-template-columns: 1fr; }
  .dl-bar { align-items: stretch; flex-direction: column; }
}
@media (max-width: 720px) {
  .features-showcase { grid-template-columns: 1fr; }
  .feat-col { grid-auto-rows: auto; }
  .feat-col:first-child { margin-left: 0; }
  .feat-col:last-child { margin-right: 0; }
  .stage-main { height: 300px; min-height: 300px; }
  .stage-arrow { width: 42px; height: 34px; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding: 16px 20px; }
  .brand img { height: 56px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .users-card { left: 20px; }
  .os-switch { right: 20px; }
}
@media (max-width: 640px) {
  .grid-bg, .hero::after {
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 88%, transparent 100%); }
  #new .sec-bg, #versions .sec-bg, #new::after, #versions::after {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%); }
  #about .sec-bg, #about::after {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%);
    mask-image: linear-gradient(180deg, transparent 0, #000 10%); }
  .trail { display: none; }
  .content { padding: 112px 18px 200px; }
  h1 span { white-space: normal; }
  .hero-panel { padding: 26px 20px 24px; }
  .hero-panel::before { inset: -28px -18px; }
  .cta { flex-direction: column; width: 100%; max-width: 280px; margin-left: auto; margin-right: auto; }
  .users-card { bottom: 82px; left: 16px; right: 16px; }
  .os-switch { bottom: 22px; left: 16px; right: auto; }
  .shots-row { grid-template-columns: 1fr; }
  .shot img, .shot.big img { height: 200px; }
  table.releases th:nth-child(3), table.releases td:nth-child(3) { display: none; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  footer { justify-content: center; text-align: center; }
  .nav-actions .btn { display: none; }
  .stats { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
