/* Slay the GBA — styled after the game's Pokemon-like panels: dark navy boxes, light double border. */
:root {
  --bg: #0d0b16;
  --bg2: #16132a;
  --panel: #0e1020;
  --panel2: #1a1d36;
  --line: #f0a060;
  --line-hi: #ffd8b0;
  --ink: #eceaf4;
  --muted: #9a98b0;
  --gold: #f8d048;
  --red: #f85848;
  --green: #68e868;
  --blue: #78b8f8;
  --purple: #d898f8;
  --accent: #e85830;
  --pix: "Pixelify Sans", "Silkscreen", monospace;
}
.hero-ironclad { --line: #d84838; --line-hi: #ffb0a0; --accent: #f05030; }
.hero-silent { --line: #50b058; --line-hi: #c8f0b0; --accent: #78d060; }
.hero-defect { --line: #4880e0; --line-hi: #b8d8ff; --accent: #58b0f0; }
.hero-regent { --line: #e8a030; --line-hi: #ffe0a0; --accent: #f0c060; }
.hero-regent .btn:not(.ghost) { color: #1a1000; text-shadow: none; }
.hero-necrobinder { --line: #c868c0; --line-hi: #f0c8f8; --accent: #e8b0ff; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(13, 11, 22, .92), rgba(13, 11, 22, .97)),
    url(bg/map.png);
  background-size: auto, 480px;
  image-rendering: auto;
  overflow-x: hidden;
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, monospace; background: #0006; padding: 1px 5px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--pix); font-weight: 400; line-height: 1.2; margin: .4em 0 .5em; letter-spacing: .5px; }
h1 { font-size: clamp(28px, 5vw, 44px); color: var(--gold); text-shadow: 3px 3px 0 #000; }
h2 { font-size: 26px; color: var(--gold); text-shadow: 2px 2px 0 #000; }
h3 { font-size: 19px; }
h2 small, h1 small { color: var(--muted); font-size: 60%; }
img.pix, .pix { image-rendering: pixelated; }
.meta { color: var(--muted); font-size: 13px; margin: 0; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 16px;
  background: rgba(8, 8, 14, .88);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--line);
}
.brand { font-family: var(--pix); font-weight: 400; font-size: 20px; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; image-rendering: pixelated; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.top nav a { font-family: "Silkscreen", monospace; font-size: 13px; color: var(--ink); padding: 4px 8px; border: 2px solid transparent; border-radius: 4px; }
.top nav a:hover, .top nav a.on { border-color: var(--line); color: var(--gold); text-decoration: none; }
.burger { display: none; margin-left: auto; background: none; border: 2px solid var(--line); color: var(--ink); font-size: 20px; border-radius: 4px; cursor: pointer; }

main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }

/* The signature panel: dark box, light line, coloured line, dark core (like the in-game text box). */
.panel {
  position: relative;
  margin: 22px 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--panel2), var(--panel) 40%);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 0 0 2px #08080e, 0 0 0 3px var(--line-hi) inset, 0 6px 0 #0008;
}

/* Hero banners */
.hero-banner {
  position: relative;
  margin: 0 -16px;
  min-height: 460px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  image-rendering: pixelated;
  border-bottom: 4px solid var(--line);
}
.hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 30%, #0d0b16f0 92%); }
.hero-banner.small { min-height: 340px; }
.hero-inner { position: relative; z-index: 1; padding: 28px 32px; max-width: 760px; }
.hero-inner h1 { font-size: clamp(40px, 8vw, 76px); margin: 0; }
.hero-inner.split { display: flex; gap: 24px; align-items: flex-end; max-width: none; }
.kicker { font-family: "Silkscreen", monospace; color: var(--line-hi); margin: 0; }
.lead { font-size: 19px; color: var(--ink); text-shadow: 1px 1px 0 #000; }
.giant { width: 192px; height: 192px; flex: none; filter: drop-shadow(4px 4px 0 #000a); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: var(--pix); font-size: 18px;
  padding: 10px 18px; background: var(--accent); color: #fff; border: 3px solid #0008;
  border-radius: 6px; box-shadow: 0 4px 0 #0009; text-shadow: 1px 1px 0 #0008;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 0 #0009; }
.btn.ghost { background: #0008; border-color: var(--line); }
.btn.small { font-size: 15px; padding: 6px 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0; }
.stats div { background: var(--panel); border: 2px solid var(--line); border-radius: 6px; padding: 10px; text-align: center; }
.stats b { display: block; font-family: var(--pix); font-size: 30px; color: var(--gold); }
.stats span { color: var(--muted); font-family: "Silkscreen", monospace; font-size: 12px; }

/* Cartridges */
.carts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.cart {
  display: block; color: var(--ink);
  background: #2a2a34; border-radius: 10px 10px 4px 4px; padding: 10px 10px 12px;
  border: 3px solid #111; box-shadow: 0 6px 0 #000a, inset 0 0 0 2px #444;
  transition: transform .15s;
}
.cart:hover { transform: translateY(-6px) rotate(-1deg); text-decoration: none; }
.cart-label {
  height: 150px; border-radius: 4px; border: 3px solid var(--hc);
  background-size: cover; background-position: center; image-rendering: pixelated;
  display: flex; justify-content: center; align-items: flex-end;
}
.cart-label img { width: 128px; height: 128px; }
.cart-info { display: flex; flex-direction: column; padding-top: 8px; }
.cart-info b { font-family: var(--pix); font-size: 19px; color: var(--ha); }
.cart-info span { font-family: "Silkscreen", monospace; font-size: 12px; }
.cart-info small { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.features h3 { color: var(--gold); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shot { margin: 0; background: #000; border: 3px solid #333; border-radius: 6px; overflow: hidden; }
.shot img { width: 100%; display: block; aspect-ratio: 3 / 2; }
.shot figcaption { padding: 6px 10px; font-size: 13px; color: var(--muted); background: var(--panel); }
.mini-mons { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.mini-mon { text-align: center; font-family: "Silkscreen", monospace; font-size: 12px; }
.mini-mon img { width: 128px; height: 128px; display: block; }
.mini-mon.boss img { width: 192px; height: 192px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid #ffffff22; padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: #ffffff10; font-family: var(--pix); color: var(--gold); }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.download { display: flex; gap: 12px; align-items: center; background: #ffffff08; border: 2px solid var(--hc); border-radius: 8px; padding: 8px 12px; }
.download img { width: 72px; height: 72px; flex: none; }
.download b { display: block; font-family: var(--pix); font-weight: 400; font-size: 18px; }
.download .btn { margin-top: 6px; }
.btn small { font-size: 12px; opacity: .8; }
.steps ul { margin: 6px 0; }
.steps li { margin: 6px 0; }

/* Heroes */
.hero-row { display: flex; gap: 18px; align-items: center; color: var(--ink); padding: 12px; border-radius: 6px; border: 2px solid transparent; }
.hero-row:hover { border-color: var(--hc); background: #ffffff08; text-decoration: none; }
.hero-row h3 { color: var(--ha); margin: 0; }
.hero-row img.big { width: 128px; height: 128px; flex: none; }
.sheet { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 18px; align-items: center; }
.energy { width: 96px; height: 96px; }

/* Cards */
.filters { display: grid; gap: 8px; margin: 10px 0 16px; }
.filters input, .solo-search {
  width: 100%; padding: 10px 12px; font-size: 16px; color: var(--ink);
  background: #0008; border: 2px solid var(--line); border-radius: 6px; margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  font-family: "Silkscreen", monospace; font-size: 12px; cursor: pointer;
  background: #0008; color: var(--ink); border: 2px solid #ffffff30; border-radius: 4px; padding: 5px 10px;
}
.chips button.on { border-color: var(--gold); color: var(--gold); }
.count { color: var(--muted); margin: 0; font-size: 13px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; font-family: "Silkscreen", monospace; font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card {
  --frame: #8a4a30;
  background: linear-gradient(180deg, #43392f, #2a221d);
  border: 4px solid var(--frame); border-radius: 10px; padding: 8px;
  box-shadow: 0 0 0 2px #0a0708, 0 5px 0 #000a;
  transition: transform .15s;
}
.card:hover { transform: translateY(-4px) scale(1.02); }
.card.p-ironclad { --frame: #b03828; }
.card.p-silent { --frame: #3c9048; }
.card.p-defect { --frame: #3868c8; }
.card.p-regent { --frame: #d08828; }
.card.p-necrobinder { --frame: #b058a8; }
.card.p-colorless { --frame: #8a8a9a; }
.card.p-curse, .card.t-curse { --frame: #502858; }
.card.p-event { --frame: #4a8a8a; }
.card .art { position: relative; border: 2px solid #0008; border-radius: 4px; overflow: hidden; aspect-ratio: 700 / 532; background: #111; }
.card.t-attack .art { clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%); }
.card.t-power .art { border-radius: 40% 40% 6px 6px / 22% 22% 6px 6px; }
.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gem {
  position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--pix); font-size: 18px; color: #fff;
  background: radial-gradient(circle at 35% 35%, var(--line-hi), var(--frame) 70%);
  border: 2px solid #000a; text-shadow: 1px 1px 0 #000;
}
.card h4 { margin: 8px 0 2px; text-align: center; font-size: 17px; color: var(--gold); }
.card .meta { text-align: center; font-size: 12px; }
.card .desc { font-size: 14px; margin: 6px 0 0; text-align: center; }
.card .desc.up { color: var(--green); }
.card details summary { cursor: pointer; font-size: 12px; color: var(--green); text-align: center; margin-top: 6px; }
.kw { color: var(--gold); font-weight: 600; }
.nrg { color: var(--red); }
.star { color: var(--gold); }
.hidden { display: none !important; }
.pool-title { margin-top: 32px; }

/* Relics, potions */
.relics { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.relic { display: flex; gap: 10px; align-items: flex-start; background: #ffffff08; border: 2px solid #ffffff14; border-radius: 6px; padding: 8px; }
.relic img { width: 48px; height: 48px; flex: none; object-fit: contain; }
.relic p { margin: 2px 0 0; font-size: 14px; }
.relic.big img { width: 72px; height: 72px; }
.tier { font-family: "Silkscreen", monospace; font-size: 11px; background: var(--accent); color: #000; padding: 1px 5px; border-radius: 3px; }

/* Monsters */
.monsters { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.monster { display: flex; gap: 12px; background: #ffffff08; border: 2px solid #ffffff14; border-radius: 8px; padding: 10px; }
.monster.e-boss { border-color: var(--red); }
.monster.e-elite { border-color: var(--gold); }
.mon-art { width: 110px; height: 110px; flex: none; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 85%, #ffffff18 30%, #0000 31%); }
.mon-art img { max-width: 110px; max-height: 110px; }
.monster h3 { margin: 0; }
.moves { padding-left: 18px; margin: 6px 0 0; font-size: 14px; }

/* Events & ancients */
.events { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 320px 1fr; gap: 14px; background: #ffffff08; border-radius: 8px; overflow: hidden; border: 2px solid #ffffff14; }
.event img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.8) contrast(1.05); }
.noimg { display: grid; place-items: center; font: 700 60px var(--pix); color: var(--muted); background: #0006; min-height: 160px; }
.event > div { padding: 10px 14px 12px 0; }
.event summary, .ancient summary { cursor: pointer; color: var(--gold); font-family: var(--pix); }
.ancient { margin: 18px 0; border: 3px solid var(--ac); border-radius: 8px; overflow: hidden; background: #0006; }
.ancient-art { min-height: 220px; background-size: cover; background-position: center; display: flex; align-items: flex-end; gap: 14px; padding: 14px; }
.ancient-art img { width: 72px; height: 72px; }
.ancient-art div { background: #000a; padding: 6px 12px; border-radius: 6px; }
.ancient-art h2 { margin: 0; }
.ancient-art p { margin: 0; }
.ancient details, .ancient > p { padding: 0 14px 12px; }

/* Rendered bible markdown */
.md { overflow-x: auto; }
.md img { max-width: 100%; vertical-align: middle; }
.md td img { max-height: 48px; }
.md h2 img, .md h3 img { height: 48px; width: auto; }
.md blockquote { border-left: 4px solid var(--line); margin: 10px 0; padding: 4px 14px; background: #ffffff08; color: var(--ink); }
.md pre { background: #000a; padding: 12px; border-radius: 6px; overflow-x: auto; border: 1px solid #ffffff20; }
.md pre code { background: none; }
.md h1 { font-size: 32px; }
.md h2 { font-size: 24px; border-bottom: 2px solid var(--line); padding-bottom: 4px; margin-top: 1.4em; }
.md hr { border: none; border-top: 2px dashed #ffffff22; margin: 20px 0; }
.toc li { margin: 4px 0; }
.crumb { font-family: "Silkscreen", monospace; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; border-top: 3px solid var(--line); background: #0008; }

.ae-footer { max-width: 1080px; margin: 16px auto 0; padding-top: 14px; border-top: 1px dashed #ffffff22;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; }
.ae-logo { font-family: var(--pix); font-size: 16px; color: var(--ink); }
.ae-logo em { color: var(--gold); }
.ae-tag { color: var(--muted); }
.ae-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ae-links a { color: var(--line-hi); }


/* Editions: marketing blocks */
.intro { font-size: 17px; max-width: 820px; }
.lineup { display: flex; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap; }
.lineup img { width: 72px; height: 72px; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 #000a); transition: transform .15s; }
.lineup a:hover img { transform: translateY(-6px); }
.cart-label { position: relative; }
.cart-ref { position: absolute; top: 4px; left: 4px; font: 11px "Silkscreen", monospace; background: var(--hc); color: #fff; padding: 1px 6px; border-radius: 3px; text-shadow: 1px 1px 0 #0008; }
.cart-info em { font-size: 14px; color: var(--ink); margin: 4px 0; }
.diff { color: var(--gold); letter-spacing: 1px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 2px solid #0008; vertical-align: -2px; }
.swatch.big { width: 40px; height: 40px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 2px #fff3; }
.table-scroll { overflow-x: auto; }
table.compare { min-width: 760px; }
.compare th[style] { text-align: center; border-bottom: 4px solid var(--hc); }
.compare th img { width: 56px; height: 56px; image-rendering: pixelated; }
.compare tr > th:first-child { white-space: nowrap; }
.shots.arenas { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.arenas figure { border-color: var(--hc); }
.loop { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.step { background: #ffffff08; border: 2px solid #ffffff14; border-radius: 8px; overflow: hidden; }
.step img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; image-rendering: pixelated; }
.step h3, .step p { margin-left: 12px; margin-right: 12px; }
.step p { margin-top: 0; font-size: 14px; }
.faq { border-bottom: 1px dashed #ffffff22; padding: 8px 0; }
.faq summary { cursor: pointer; font-family: var(--pix); font-size: 18px; color: var(--gold); }
.faq p { margin: 8px 0 4px; }
.tagline { font-family: var(--pix); font-size: 18px; color: var(--line-hi); margin: 4px 0; }
.hero-row h3 small { color: var(--muted); font-size: 60%; }
.story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
.story .shot { border-color: var(--line); }
.palettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.palette { display: flex; gap: 10px; align-items: center; background: #ffffff08; border-radius: 6px; padding: 8px; }
.palette p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.starter { padding-left: 18px; margin: 6px 0; }
.starter li { margin: 4px 0; }
.tips li { margin: 6px 0; }
.pager { display: flex; justify-content: space-between; font-family: var(--pix); font-size: 18px; }

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .lineup img { width: 52px; height: 52px; }
  .carts { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cart-label { height: 110px; }
  .cart-label img { width: 96px; height: 96px; }
  .hero-inner { padding: 20px 16px; }
  .kicker { font-size: 11px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .burger { display: block; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #08080ef0; padding: 10px; border-bottom: 3px solid var(--line); }
  body.menu .top nav { display: flex; }
  .hero-inner.split { flex-direction: column; align-items: flex-start; }
  .giant { width: 128px; height: 128px; }
  .sheet { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; }
  .noimg { display: grid; place-items: center; font: 700 60px var(--pix); color: var(--muted); background: #0006; min-height: 160px; }
.event > div { padding: 0 12px 12px; }
  .monsters, .relics { grid-template-columns: 1fr; }
  .hero-banner { min-height: 360px; }
}

/* Progress tracker: the track is a dim step of the fill's own hue, so the ratio reads across the whole bar. */
.meter { --fill: var(--gold); height: 12px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--fill) 24%, #08080e); }
.meter span { display: block; height: 100%; background: var(--fill); border-radius: 0 4px 4px 0; }
.prog-total { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin: 14px 0; }
.prog-total > b { font-family: var(--pix); font-weight: 400; font-size: 64px; line-height: 1; color: var(--gold); text-shadow: 3px 3px 0 #000; white-space: nowrap; }
.prog-total .meter { height: 22px; margin-bottom: 6px; }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 12px 0; }
.prog-tile { display: flex; gap: 10px; align-items: center; color: var(--ink); background: #ffffff08; border: 2px solid #ffffff14; border-radius: 8px; padding: 10px 12px; }
.prog-tile:hover { border-color: var(--line); text-decoration: none; }
.prog-tile img { width: 64px; height: 64px; flex: none; }
.prog-tile > div { flex: 1; min-width: 0; }
.prog-tile h3 { margin: 0; font-size: 17px; }
.prog-tile b { display: block; font-family: var(--pix); font-weight: 400; font-size: 28px; line-height: 1.2; }
.prog-tile .meter { margin: 4px 0 6px; }
.prog-cat { border-top: 1px dashed #ffffff22; padding: 8px 0; }
.prog-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) 2fr 76px; gap: 14px; align-items: center; }
summary.prog-row { cursor: pointer; list-style: none; }
summary.prog-row::-webkit-details-marker { display: none; }
summary.prog-row > span:first-child b::before { content: "▸ "; color: var(--gold); }
details[open] > summary.prog-row > span:first-child b::before { content: "▾ "; }
.prog-row b { font-family: var(--pix); font-weight: 400; font-size: 18px; }
.prog-row .meta { display: block; }
.prog-num { font-family: var(--pix); font-size: 18px; text-align: right; white-space: nowrap; }
.prog-list { list-style: none; padding: 0; margin: 10px 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 2px 18px; }
.prog-list li { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: baseline; font-size: 14px; padding: 4px 0; border-bottom: 1px solid #ffffff0c; }
.prog-list b { font-weight: 600; }
.prog-list small { display: block; color: var(--muted); }
.st { font-family: "Silkscreen", monospace; font-size: 11px; white-space: nowrap; }
.st i { font-style: normal; font-size: 14px; color: var(--muted); }
.st-oui i { color: var(--green); }
.st-partiel i { color: var(--gold); }
.st-non, .st-exclu { color: var(--muted); }
.prog-section h2 small { font-family: var(--pix); }

@media (max-width: 760px) {
  .prog-total { grid-template-columns: 1fr; gap: 8px; }
  .prog-total > b { font-size: 48px; }
  .prog-row { grid-template-columns: 1fr auto; }
  .prog-row .meter { grid-column: 1 / -1; grid-row: 2; }
  .prog-list { grid-template-columns: 1fr; }
}

/* Landing page */
[hidden] { display: none !important; }
@keyframes blink { 50% { opacity: 0; } }
.hero-banner.landing { min-height: min(88vh, 760px); margin: 0 -16px; border-bottom-color: var(--accent); }
.hero-banner.landing::after { background: linear-gradient(180deg, rgba(13, 11, 22, .15) 0%, rgba(13, 11, 22, .55) 45%, #0d0b16 96%); }
.hero-banner.landing::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 4px);
}
.landing .hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 16px 48px; }
.landing .hero-inner h1 { font-weight: 700; font-size: clamp(52px, 11vw, 132px); line-height: .92; letter-spacing: 1px; text-shadow: 5px 5px 0 #000, 0 0 40px rgba(248, 208, 72, .25); margin: 10px 0 18px; }
.landing .kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; text-shadow: 1px 1px 0 #000; }
.ver { font-family: "Silkscreen", monospace; font-size: 13px; background: #f8d048; color: #0d0b16; padding: 3px 10px; border-radius: 3px; text-shadow: none; }
.landing .lead { max-width: 640px; }
.btn.big { font-size: 20px; padding: 12px 22px; box-shadow: 0 5px 0 #0009; }
.landing .cta { align-items: center; gap: 12px; margin: 18px 0; }
.press-start { font-family: "Silkscreen", monospace; font-size: 14px; color: #fff; text-shadow: 1px 1px 0 #000; animation: blink 1s steps(1) infinite; }
.pick-label { font: 12px "Silkscreen", monospace; color: var(--muted); margin: 14px 0 6px; }
.picks { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.pick { cursor: pointer; padding: 4px; background: #0008; border: 3px solid #ffffff30; border-radius: 8px; transition: transform .15s; }
.pick:hover { transform: translateY(-4px); }
.pick[aria-pressed="true"] { border-color: var(--hc); background: color-mix(in srgb, var(--hc) 30%, #0008); }
.pick img { display: block; width: clamp(48px, 13vw, 72px); height: clamp(48px, 13vw, 72px); filter: drop-shadow(3px 3px 0 #000a); }

#editions { scroll-margin-top: 70px; }
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(5px, 1.2vw, 10px); margin: 16px 0 18px; align-items: end; }
.cart.tab {
  position: relative; cursor: pointer; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: clamp(5px, 1vw, 10px) 4px 10px; font: inherit;
}
.cart.tab:hover { transform: translateY(-3px); }
.cart.tab[aria-pressed="true"] { transform: translateY(-6px); border-color: var(--ha); box-shadow: 0 6px 0 #000a, inset 0 0 0 2px var(--ha); }
.cart.tab .cart-ref { position: static; font-size: clamp(7px, 1.1vw, 10px); max-width: 100%; overflow: hidden; }
.cart.tab img { width: min(96px, 100%); aspect-ratio: 1; }
.cart.tab b { font: 400 clamp(11px, 1.6vw, 15px)/1.1 var(--pix); color: var(--ha); text-align: center; overflow-wrap: anywhere; }

.edition-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 26px); padding: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(180deg, var(--panel2), var(--panel) 40%); border: 3px solid var(--hc); border-radius: 8px;
  box-shadow: 0 0 0 2px #08080e, inset 0 0 0 3px var(--ha), 0 6px 0 #0008; margin-bottom: 14px;
}
.ed-shot, .ed-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shot-frame { position: relative; border: 3px solid var(--hc); border-radius: 6px; overflow: hidden; background: #000; }
.shot-frame img { display: block; width: 100%; aspect-ratio: 3 / 2; }
.rom-tag { position: absolute; top: 8px; left: 8px; font: 11px "Silkscreen", monospace; background: var(--hc); color: #fff; padding: 2px 8px; border-radius: 3px; }
.ed-head { display: flex; gap: 14px; align-items: center; }
.ed-head img { width: 88px; height: 88px; flex: none; filter: drop-shadow(3px 3px 0 #000a); }
.ed-kicker { font: 12px "Silkscreen", monospace; color: var(--ha); }
.ed-head h3 { margin: 0; font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1; color: #fff; text-shadow: 3px 3px 0 #000; }
.ed-quote { margin: 0; font: 22px/1.3 var(--pix); color: var(--ha); }
.ed-sig { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ed-sig li::before { content: "► "; color: var(--ha); font-family: var(--pix); }
.ed-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ed-facts div { background: #ffffff08; border: 2px solid #ffffff14; border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ed-facts span { font: 11px "Silkscreen", monospace; color: var(--muted); }
.ed-facts b { font-size: 15px; overflow-wrap: anywhere; }
.ed-prog { display: grid; gap: 6px; }
.ed-prog > b { font: 400 24px var(--pix); color: var(--ha); }
.ed-prog .meter { height: 14px; }
.edition-panel .cta .btn:not(.ghost) { background: var(--hc); }
.edition-panel .cta .btn.ghost { border-color: var(--hc); }
#editions details.faq { margin-top: 10px; }

.counters { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; font: 14px "Silkscreen", monospace; }
.cnt-done { color: #68e868; }
.cnt-partial { color: #f8d048; }
.cnt-todo { color: #9a98b0; }
.sect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; margin: 14px 0; }
.sect { display: grid; gap: 5px; color: var(--ink); padding: 6px 4px; }
.sect:hover { text-decoration: none; background: #ffffff08; }
.sect > span { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sect b { font: 400 16px var(--pix); }
.sect .meter { height: 8px; }

.journal { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.jcard { border: 3px solid var(--jc); border-radius: 8px; overflow: hidden; background: #0006; }
.jcard h3 { margin: 0; padding: 8px 14px; background: var(--jc); color: #0d0b16; }
.jcard ul { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 6px; font-size: 14px; }
.jcard li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.jcard .ico { color: var(--jc); font-weight: 700; }

.gallery { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; align-items: start; }
.gallery-main { margin: 0; border: 4px solid #f0a060; border-radius: 6px; overflow: hidden; background: #000; }
.gallery-main img { display: block; width: 100%; aspect-ratio: 3 / 2; }
.gallery-main figcaption { padding: 8px 12px; font: 18px var(--pix); background: var(--panel); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.thumb { border: 2px solid #333; border-radius: 4px; overflow: hidden; line-height: 0; }
.thumb:hover, .thumb.on { border-color: #f0a060; }
.thumb img { width: 100%; aspect-ratio: 3 / 2; }

.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 16px 0; }
.chapters a { display: flex; gap: 10px; align-items: baseline; color: var(--ink); background: #ffffff08; border: 2px solid #ffffff14; border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.chapters a:hover { border-color: var(--line); text-decoration: none; }
.chapters span { font: 12px "Silkscreen", monospace; color: #f0a060; }

@media (max-width: 760px) {
  .edition-panel { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero-banner.landing { min-height: 560px; }
  .landing .hero-inner { padding: 28px 16px 32px; }
  .btn.big { font-size: 17px; padding: 10px 16px; }
}
@media (max-width: 380px) {
  .ed-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .press-start { animation: none; }
}
