/* Studio Menu website.
   Layout idea: Minecraft's own GUI, refined. Night-sky ground from the logo, square panels with notched pixel corners
   and a light/dark bevel, a pixel typeface only for headings and labels, and one bold moment: the live aurora hero
   that ends in a pixel horizon. */

@font-face { font-family: "Jersey 10"; src: url("/assets/fonts/jersey-10.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  /* ground and surfaces: navy with a violet bias, taken from the logo */
  --ground: #0b0d22;
  --band: #0f1230;
  --panel: #161a42;
  --panel-hi: #1d2254;
  --edge: #2b3274;
  /* text */
  --ink: #eceeff;
  --ink-2: #b4b9e2;
  --ink-3: #7f86b8;
  --cream: #fff4dc;
  /* accents: the logo's aurora green for actions; violet and gold only as second voices */
  --aurora: #3ee6a8;
  --violet: #a374ff;
  --gold: #ffcf5a;
  /* platforms */
  --modrinth: #1bd96a;
  --curseforge: #f16436;

  --display: "Jersey 10", "Lucida Console", "Courier New", monospace;
  --text: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --wrap: 1180px;
  --notch: 6px;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-3: clamp(2.3rem, 3.8vw, 3.2rem);
  --step-4: clamp(3rem, 6.6vw, 5.4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--step-0)/1.65 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--aurora); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #8ff3cb; }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--cream); margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; font-synthesis: none; letter-spacing: .02em; line-height: 1; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font: 700 var(--step-1)/1.3 var(--text); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong, b { color: var(--ink); font-weight: 700; }
code, kbd, pre { font-family: var(--mono); font-size: .86em; }
code { background: #1a1f4c; border: 1px solid #2a3170; padding: .08em .38em; color: #dfe3ff; overflow-wrap: anywhere; }
kbd {
  display: inline-block; min-width: 1.7em; text-align: center; padding: .1em .45em; font-weight: 600; color: var(--cream);
  background: #262c62; box-shadow: inset 1px 1px 0 #3d4594, inset -1px -2px 0 #11143a;
}
pre { background: #080a1c; border: 1px solid var(--edge); padding: 1.1rem 1.25rem; overflow-x: auto; line-height: 1.6; margin: 0 0 1.4em; position: relative; }
pre code { background: none; border: 0; padding: 0; font-size: .84rem; color: #dce1ff; }
pre .copy { position: absolute; top: 8px; right: 8px; font: 600 .72rem var(--text); color: var(--ink-2); background: #1a1f4c; border: 1px solid #2a3170;
  padding: .3em .7em; cursor: pointer; opacity: 0; transition: opacity .15s; }
pre:hover .copy, pre .copy:focus { opacity: 1; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--cream); color: var(--ground); padding: .6em 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mark { width: 1.2em; height: 1.2em; flex: none; display: block; }

/* pixel icons */
.pxi { width: 40px; height: 40px; display: block; }
.pxi .p0 { fill: var(--px0, #2b3274); } .pxi .p1 { fill: var(--px1, var(--aurora)); } .pxi .p2 { fill: var(--px2, #1d2254); }
.ic { --px0: #0b3b2e; --px1: var(--aurora); --px2: #1f8a66; width: 56px; height: 56px; display: grid; place-items: center; background: #0f2230;
  box-shadow: inset 2px 2px 0 #1f4452, inset -2px -2px 0 #071019; margin-bottom: 18px; }
.ic.v { --px0: #2a1752; --px1: var(--violet); --px2: #6845c0; background: #1a1438; box-shadow: inset 2px 2px 0 #34296a, inset -2px -2px 0 #0a0718; }
.ic.g { --px0: #4a3508; --px1: var(--gold); --px2: #b88a22; background: #241c0d; box-shadow: inset 2px 2px 0 #4a3a16, inset -2px -2px 0 #100b03; }
.ic .pxi { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(11, 13, 34, .88); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 2px solid #050614; box-shadow: 0 1px 0 #20265c; }
.top-in { max-width: var(--wrap); margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 24px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font: 400 1.75rem/1 var(--display); }
.brand img { width: 38px; height: 38px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: .5em .85em; font-weight: 600; font-size: .98rem; position: relative; }
.nav a:not(.btn):hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--cream); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .85em; right: .85em; bottom: .15em; height: 3px; background: var(--aurora); }
.nav .btn { margin-left: 12px; }
.menu-toggle { display: none; margin-left: auto; background: #161a42; border: 0; width: 46px; height: 42px; cursor: pointer;
  box-shadow: inset 2px 2px 0 #2b3274, inset -2px -2px 0 #070918; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 3px; background: var(--cream); margin: 0 auto; position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 10px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); background: #0b0d22; border-bottom: 2px solid #050614; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85em .2em; border-bottom: 1px solid #1a1f4c; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--aurora); }
  .nav .btn { margin: 14px 0 0; }
}

/* ---------------------------------------------------------------- buttons: square, notched, bevelled like the game's */
.btn {
  --b: #262c62; --hi: #3d4594; --lo: #10133a; --t: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; text-decoration: none; cursor: pointer; border: 0;
  font: 700 1rem/1.1 var(--text); letter-spacing: .01em; color: var(--t); background: var(--b); padding: .95em 1.5em;
  box-shadow: inset 0 3px 0 var(--hi), inset 0 -4px 0 var(--lo);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { color: var(--t); filter: brightness(1.12); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 4px 0 var(--lo); }
.btn .mark { width: 1.15em; height: 1.15em; }
.btn-primary { --b: #2ad595; --hi: #8af7cc; --lo: #10855c; --t: #04211a; }
.btn-ghost { --b: #1a1f4c; --hi: #2f3784; --lo: #0a0c26; }
.btn-discord { --b: #5865f2; --hi: #8f99ff; --lo: #2f38a8; --t: #fff; }
.btn-sm { padding: .62em 1em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- store buttons (Modrinth / CurseForge) */
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 620px; }
.store-btn {
  --c: var(--modrinth); --c-deep: #0c7a3c; --c-soft: rgba(27, 217, 106, .22);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; text-decoration: none;
  color: var(--ink); background: linear-gradient(180deg, #1b2050, #13173d); position: relative; isolation: isolate;
  box-shadow: inset 0 2px 0 #2f3784, inset 0 -3px 0 #080a20;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  transition: transform .15s ease;
}
.store-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130% 150% at 0% 50%, var(--c-soft), transparent 62%);
  opacity: .6; transition: opacity .2s; }
.store-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.store-btn:hover { transform: translateY(-2px); color: var(--ink); }
.store-btn:hover::before { opacity: 1; }
.store-btn:hover::after { transform: scaleX(1); }
.store-ico { width: 50px; height: 50px; display: grid; place-items: center; background: var(--c); color: #062a14;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -4px 0 var(--c-deep);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.store-ico .mark { width: 28px; height: 28px; }
.store-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; min-width: 0; }
.store-txt small { font-size: .74rem; color: var(--ink-2); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.store-txt b { font: 400 2rem/.9 var(--display); color: #fff; letter-spacing: .02em; }
.store-go { width: 30px; height: 30px; display: grid; place-items: center; color: var(--c); transition: transform .15s; }
.store-go svg { width: 18px; height: 18px; }
.store-btn:hover .store-go { transform: translateX(4px); }
.store-btn.cf { --c: var(--curseforge); --c-deep: #a63813; --c-soft: rgba(241, 100, 54, .24); }
.store-btn.cf .store-ico { color: #fff; }
.big .store-btn { padding: 16px 22px 16px 16px; }
.big .store-ico { width: 62px; height: 62px; }
.big .store-ico .mark { width: 34px; height: 34px; }
.big .store-txt b { font-size: 2.4rem; }
@media (max-width: 560px) { .stores { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(#070a1d, #1a1140 75%, #22164c); }
.hero canvas.bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* pixel horizon: the hero ends in a stepped skyline instead of a straight line */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: var(--ground); pointer-events: none; z-index: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' shape-rendering='crispEdges'%3E%3Cpath d='M0 32h16v-8h24v8h16v-16h24v8h16v8h32v-8h16v-8h24v16h24v-8h24v8h24v16H0z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 48px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' shape-rendering='crispEdges'%3E%3Cpath d='M0 32h16v-8h24v8h16v-16h24v8h16v8h32v-8h16v-8h24v16h24v-8h24v8h24v16H0z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 48px;
}
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-block: 92px 124px; }
.kicker { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.kicker li { font: 600 .8rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); padding: .55em .75em;
  background: rgba(10, 12, 32, .6); box-shadow: inset 0 0 0 1px rgba(255, 244, 220, .2); }
.kicker li:first-child { color: #04211a; background: var(--aurora); box-shadow: none; }
.hero h1 { text-shadow: 0 4px 0 rgba(4, 5, 16, .55); }
.hero h1 .grad { color: var(--aurora); }
.hero .lead { font-size: 1.2rem; color: #d3d7f6; max-width: 34em; margin: 1.1rem 0 1.8rem; }
.hero-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.hero-links a { color: var(--ink-2); text-decoration: none; }
.hero-links a:hover { color: var(--cream); }
.hero-links a::after { content: " →"; color: var(--aurora); }
.hero-logo { justify-self: center; width: min(400px, 82%); position: relative; }
.hero-logo img { width: 100%; display: block; position: relative; filter: drop-shadow(0 28px 50px rgba(0, 0, 0, .55)); animation: float 7s ease-in-out infinite; }
.hero-logo::before { content: ""; position: absolute; inset: 12% 10% -8%; background: radial-gradient(closest-side, rgba(62, 230, 168, .28), transparent); filter: blur(20px); }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 920px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 48px 100px; gap: 24px; }
  .hero-logo { width: 150px; order: -1; justify-self: start; }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: 104px; position: relative; }
.section.alt { background: var(--band); box-shadow: inset 0 2px 0 #070918, inset 0 4px 0 #1a1f4c; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 1.12rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 600 .8rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--aurora); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: currentColor; box-shadow: 3px 3px 0 #0b4a35; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* panels: flat fill, light top/left edge, dark bottom/right edge, notched corners */
.card {
  background: var(--panel); padding: 28px; position: relative; min-width: 0;
  box-shadow: inset 2px 2px 0 #262c66, inset -2px -2px 0 #0b0d26;
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
  transition: background .2s;
}
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { background: var(--panel-hi); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-2); margin: 0; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }

/* split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.rev > :first-child { order: 2; }
.split > * { min-width: 0; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } .split.rev > :first-child { order: 0; } }
.split > div > p { color: var(--ink-2); }
.split > div > a:not(.btn) { font-weight: 700; text-decoration: none; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: .65em; }
ul.ticks li { padding-left: 1.6em; position: relative; color: #ccd1f1; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6em; height: .6em; background: var(--aurora); box-shadow: .18em .18em 0 #0d5b42; }

/* framed live backgrounds */
.frame { position: relative; overflow: hidden; background: #05071a; aspect-ratio: 16 / 9; max-width: 100%;
  box-shadow: 0 0 0 2px #050614, 0 0 0 4px #262c66, 0 24px 50px rgba(0, 0, 0, .45); }
.frame canvas, .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame .label { position: absolute; left: 10px; bottom: 10px; font: 600 .72rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--cream);
  background: rgba(5, 6, 20, .75); padding: .5em .65em; }
.frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 4px; }

/* key numbers: one scoreboard panel, not a pile of cards */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #0a0c22; box-shadow: 0 0 0 2px #050614, 0 0 0 4px #262c66; }
.stats div { padding: 24px 22px; border-right: 2px solid #171b45; border-bottom: 2px solid #171b45; }
.stats div:nth-child(3n) { border-right: 0; }
.stats div:nth-last-child(-n+3) { border-bottom: 0; }
.stats b { display: block; font: 400 3.2rem/.9 var(--display); color: var(--aurora); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-2); font-size: .93rem; line-height: 1.35; display: block; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3n) { border-right: 2px solid #171b45; } .stats div:nth-child(2n) { border-right: 0; }
  .stats div:nth-last-child(-n+3) { border-bottom: 2px solid #171b45; } .stats div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* audience rows */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.audience .card { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 22px; align-content: start; }
.audience .card .ic { margin: 0; grid-row: span 3; }
.audience .card ul.ticks { margin: 6px 0 0; }
@media (max-width: 820px) { .audience { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .audience .card { grid-template-columns: minmax(0, 1fr); } .audience .card .ic { grid-row: auto; margin-bottom: 14px; } }

/* information table */
.table-wrap { overflow-x: auto; background: #0a0c22; box-shadow: 0 0 0 2px #050614, 0 0 0 4px #262c66; }
table.info { width: 100%; border-collapse: collapse; font-size: .98rem; }
table.info th, table.info td { text-align: left; padding: 16px 20px; border-bottom: 2px solid #151940; vertical-align: top; }
table.info th { color: var(--ink-3); font: 600 .76rem/1 var(--text); text-transform: uppercase; letter-spacing: .12em; padding-block: 14px; }
table.info tr:last-child td { border-bottom: 0; }
table.info td:first-child { font-weight: 700; color: var(--cream); width: 26%; }
table.info td:nth-child(2) { width: 130px; }
table.info td { color: #ccd1f1; }
.badge { display: inline-block; padding: .4em .6em; font: 700 .72rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.badge.ok { background: var(--aurora); color: #04211a; }
.badge.part { background: #1d3a44; color: #b8f5df; }
.badge.off { background: #1a1d3a; color: var(--ink-3); }
@media (max-width: 700px) {
  table.info thead { display: none; }
  table.info, table.info tbody, table.info tr, table.info td { display: block; width: 100% !important; }
  table.info tr { padding: 16px 18px; border-bottom: 2px solid #151940; }
  table.info tr:last-child { border-bottom: 0; }
  table.info td { padding: 0; border: 0; }
  table.info td:first-child, table.info td:nth-child(2) { display: inline; margin-right: 8px; }
  table.info td:last-child { margin-top: 8px; }
}

/* real button textures */
.packs-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin: 8px 0 6px; }
.packs-mini figure { margin: 0; }
.packs-mini .px { display: block; width: 100%; image-rendering: pixelated; margin-bottom: 6px; }
.packs-mini figcaption { color: var(--ink-3); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* banners */
.banner-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.banner-row img { width: 100%; display: block; box-shadow: 0 0 0 2px #050614, 0 14px 30px rgba(0, 0, 0, .35); }
.caption { color: var(--ink-3); font-size: .9rem; margin-top: 14px; }
@media (max-width: 640px) { .banner-row { grid-template-columns: minmax(0, 1fr); } }

/* numbered steps (a real sequence) */
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.8em; display: grid; gap: 20px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 54px; color: #ccd1f1; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center;
  font: 400 1.5rem/1 var(--display); color: #04211a; background: var(--aurora); box-shadow: inset 0 -4px 0 #10855c; }

/* closing call to action */
.cta { padding: 60px clamp(24px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: linear-gradient(135deg, #171c48, #120f33); box-shadow: inset 2px 2px 0 #2b3274, inset -2px -2px 0 #070918;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.cta h2 { margin-bottom: .35em; }
.cta p { color: #ccd1f1; font-size: 1.1rem; margin: 0; }
.cta-side { display: grid; gap: 14px; }
.cta-side .stores { max-width: none; }
.cta-side .btn { justify-self: start; }
@media (max-width: 920px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); box-shadow: inset 2px 2px 0 #262c66, inset -2px -2px 0 #0b0d26; }
.faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--cream); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--display); color: var(--aurora); }
.faq details[open] summary::after { content: "-"; }
.faq details > div { padding: 0 22px 20px; color: #ccd1f1; }
.faq details > div p:last-child { margin: 0; }

/* ---------------------------------------------------------------- docs */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-block: 44px 96px; }
.docs-nav { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.docs-nav h2 { font: 600 .74rem/1 var(--text); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin: 22px 0 8px; }
.docs-nav a { display: block; padding: .42em .8em; color: #ccd1f1; text-decoration: none; font-size: .95rem; border-left: 3px solid transparent; }
.docs-nav a:hover { color: var(--cream); background: rgba(255, 255, 255, .03); }
.docs-nav a[aria-current="page"] { color: var(--cream); border-left-color: var(--aurora); background: rgba(62, 230, 168, .07); font-weight: 700; }
.doc { max-width: 800px; min-width: 0; }
.doc h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
.doc .intro { font-size: 1.2rem; color: #d3d7f6; }
.doc h2 { font-size: 2.3rem; margin-top: 2.1em; scroll-margin-top: 96px; }
.doc h3 { margin-top: 1.6em; scroll-margin-top: 96px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--aurora); }
.doc pre, .doc table { max-width: 100%; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; background: #0d1030; }
.doc th, .doc td { text-align: left; padding: .75em .95em; border-bottom: 2px solid #171b45; vertical-align: top; }
.doc th { color: var(--ink-3); font: 600 .74rem/1.2 var(--text); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.doc td:first-child { color: var(--cream); font-weight: 600; }
.crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); text-decoration: none; } .crumbs a:hover { color: var(--cream); }
.crumbs span { margin: 0 .45em; }
.note { padding: 16px 20px; margin: 0 0 1.5em; background: #0f2630; color: #d7fbee; box-shadow: inset 4px 0 0 var(--aurora); }
.note.warn { background: #2a2410; color: #fff1cf; box-shadow: inset 4px 0 0 var(--gold); }
.note strong { color: var(--cream); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; }
.pager a { flex: 1; padding: 16px 20px; text-decoration: none; color: var(--cream); font-weight: 700; background: var(--panel);
  box-shadow: inset 2px 2px 0 #262c66, inset -2px -2px 0 #0b0d26; }
.pager a small { display: block; color: var(--ink-3); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.pager a.next { text-align: right; }
.pager a:hover { background: var(--panel-hi); }
.toc-cards { margin: 28px 0 10px; }
.docs-toggle { display: none; }
@media (max-width: 920px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 28px; }
  .docs-nav { position: static; max-height: none; padding: 4px 14px; background: var(--panel); box-shadow: inset 2px 2px 0 #262c66, inset -2px -2px 0 #0b0d26; }
  .docs-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; color: var(--cream);
    font: 700 1rem var(--text); padding: 12px 2px; cursor: pointer; }
  .docs-toggle::after { content: "▾"; color: var(--aurora); transition: transform .2s; }
  .docs-nav.open .docs-toggle::after { transform: rotate(180deg); }
  .docs-nav:not(.open) > :not(.docs-toggle) { display: none; }
  .docs-nav.open { padding-bottom: 14px; }
}

/* page header for non-docs pages */
.page-head { padding-block: 80px 36px; background: linear-gradient(#0a0c22, var(--ground)); }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.page-head p { color: var(--ink-2); font-size: 1.15rem; max-width: 42em; margin: 0; }

/* download page */
.dl-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .dl-main { grid-template-columns: minmax(0, 1fr); } }
.dl-main .stores { grid-template-columns: minmax(0, 1fr); max-width: none; margin: 20px 0 8px; }

/* themes page */
.theme .frame { aspect-ratio: 16 / 10; margin: 4px 4px 20px; }
.theme h3 { margin-bottom: .25em; }
.theme p { margin-bottom: 14px; }
.theme .btn { width: 100%; }
.meta-line { font-size: .78rem; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pack { text-align: center; }
.pack .px { image-rendering: pixelated; width: 100%; max-width: 256px; aspect-ratio: 64 / 20; display: block; margin: 0 auto 10px; }

/* footer */
.foot { background: #070918; padding-block: 64px 32px; box-shadow: inset 0 2px 0 #1a1f4c; }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand strong { color: var(--cream); font: 400 1.7rem/1.1 var(--display); }
.foot-brand p { color: var(--ink-3); font-size: .95rem; margin: 6px 0 0; }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-links h2 { font: 600 .74rem/1 var(--text); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 12px; }
.foot-links a { display: block; color: #ccd1f1; text-decoration: none; padding: .22em 0; font-size: .95rem; }
.foot-links a:hover { color: var(--aurora); }
.legal { max-width: var(--wrap); margin: 44px auto 0; padding-top: 22px; color: #6d74a6; font-size: .84rem; border-top: 2px solid #11143a;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (max-width: 760px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* entrance on scroll: content is visible by default; the script only adds the movement */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .section { padding-block: 72px; }
  .card { padding: 22px; }
  .stats b { font-size: 2.6rem; }
  .store-txt b { font-size: 1.8rem; }
}

/* full FAQ: grouped by topic */
.faq-group { margin-top: 44px; }
.faq-group h2 { font-size: 2.1rem; margin: 0 0 16px; scroll-margin-top: 96px; }
.faq details { scroll-margin-top: 96px; }
.faq details > div a { font-weight: 600; }

/* how-to steps */
ol.howto { list-style: none; counter-reset: st; padding: 0; margin: 2em 0; display: grid; gap: 14px; }
ol.howto > li { counter-increment: st; position: relative; padding: 22px 24px 20px 78px; margin: 0; background: var(--panel);
  box-shadow: inset 2px 2px 0 #262c66, inset -2px -2px 0 #0b0d26; scroll-margin-top: 96px; }
ol.howto > li::before { content: counter(st); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; display: grid; place-items: center;
  font: 400 1.6rem/1 var(--display); color: #04211a; background: var(--aurora); box-shadow: inset 0 -4px 0 #10855c; }
ol.howto > li h3 { margin: 4px 0 .4em; }
ol.howto > li p { margin: 0; color: #ccd1f1; }
@media (max-width: 480px) { ol.howto > li { padding: 70px 18px 18px; } ol.howto > li::before { left: 18px; top: 18px; } }

/* modpack kinds */
.genres { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.genres li { font: 600 .95rem/1 var(--text); color: var(--cream); padding: .75em 1em; background: var(--panel);
  box-shadow: inset 2px 2px 0 #262c66, inset -2px -2px 0 #0b0d26; }
.genres li:nth-child(3n+1) { box-shadow: inset 3px 0 0 var(--aurora), inset 2px 2px 0 #262c66, inset -2px -2px 0 #0b0d26; }
.genres li:nth-child(3n+2) { box-shadow: inset 3px 0 0 var(--violet), inset 2px 2px 0 #262c66, inset -2px -2px 0 #0b0d26; }
.genres li:nth-child(3n) { box-shadow: inset 3px 0 0 var(--gold), inset 2px 2px 0 #262c66, inset -2px -2px 0 #0b0d26; }
.packtypes .card h3 { color: var(--cream); }

/* in-game screenshots */
.shot { margin: 0; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #05071a;
  box-shadow: 0 0 0 2px #050614, 0 0 0 4px #262c66, 0 24px 50px rgba(0, 0, 0, .45); }
.shot figcaption { margin-top: 14px; color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.shot.wide { margin-top: 48px; }
.shot-stack { display: grid; gap: 28px; }
.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 28px 24px; }
.gallery .main { grid-row: span 2; }
@media (max-width: 920px) { .gallery { grid-template-columns: minmax(0, 1fr); } .gallery .main { grid-row: auto; } }
