/*
 * Fishdle landing page (ROADMAP #48) — served at `/`, the game lives at `/play`.
 *
 * Deliberately plain CSS, not Tailwind: this page is static HTML generated by
 * `landing/build.mjs` and must stay indexable without running any JavaScript,
 * so it carries its own stylesheet instead of entering the app's build graph.
 * The tokens below mirror `src/index.css` / `src/palette.ts`, dropped one stop
 * deeper so the in-game captures read as lit windows onto the water.
 */

:root {
  --abyss: #0a1216;
  --sea: #101c22;
  --parchment: #e7d9b6;
  --ink: #b9c9d1; /* neutral, biased toward the sea, never grey */
  --ink-dim: #7d939d;
  --gold: #caa46a;
  --coin: #e0c46a;
  --rule: rgba(202, 164, 106, 0.24);
  --rule-soft: rgba(231, 217, 182, 0.1);

  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --data: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--abyss);
}

.page {
  background: var(--abyss);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

.page h1,
.page h2,
.page h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  text-wrap: balance;
  margin: 0;
}

.page a {
  color: inherit;
}

.page img {
  display: block;
  max-width: 100%;
}

.page :focus-visible {
  outline: 2px solid var(--coin);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* ---------- top bar ------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 13px var(--gutter);
  background: rgba(10, 18, 22, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.mark {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
}

.mark img {
  width: 30px;
  height: 30px;
}

.mark span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--parchment);
}

.topnav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--ink);
}

.topnav a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.topnav a:hover {
  color: var(--parchment);
  border-color: var(--rule);
}

.langs {
  display: flex;
  gap: 2px;
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.langs a {
  border: 1px solid transparent;
  color: var(--ink-dim);
  padding: 3px 7px;
  border-radius: 3px;
  text-decoration: none;
}

.langs a[aria-current='true'] {
  color: var(--parchment);
  border-color: var(--rule);
}

/* Scoped with `.page` so these out-specify `.page a { color: inherit }` —
   without it the primary CTA takes the parchment ink and washes out. */
.page .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 140ms ease;
  white-space: nowrap;
}

.page .btn-primary {
  background: var(--coin);
  color: #22190a;
}

.page .btn-primary:hover {
  background: #efd583;
  transform: translateY(-1px);
}

.page .btn-ghost {
  border-color: var(--rule);
  color: var(--parchment);
  background: rgba(231, 217, 182, 0.03);
}

.page .btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(202, 164, 106, 0.1);
}

.page .btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ---------- hero ---------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
}

.hero-stage {
  position: relative;
  height: clamp(540px, 84vh, 880px);
  background: var(--sea);
}

.hero-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0;
  transition: opacity 1400ms ease-in-out;
}

.hero-stage img.on {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 18, 22, 0.68) 0%,
      rgba(10, 18, 22, 0.16) 34%,
      rgba(10, 18, 22, 0.84) 82%,
      var(--abyss) 100%
    ),
    linear-gradient(to right, rgba(10, 18, 22, 0.82) 0%, rgba(10, 18, 22, 0.1) 62%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: clamp(48px, 8vh, 92px);
}

/* Wide enough that the second headline line never orphans its last word. */
.hero-copy .inner {
  max-width: 860px;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 16px 0 18px;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.6);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--coin);
}

.hero p.lede {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink);
  max-width: 54ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  font-size: 13px;
  color: var(--ink-dim);
  margin: 18px 0 0;
}

.hero-note b {
  color: var(--parchment);
  font-weight: 600;
}

/* the game's own header readout, following the backdrop */
.readout {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: var(--gutter);
  display: flex;
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(10, 18, 22, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.readout span {
  padding: 8px 13px;
  color: var(--ink);
  border-left: 1px solid var(--rule-soft);
}

.readout span:first-child {
  border-left: 0;
  color: var(--coin);
}

/* ---------- alternating story sections ------------------------------------ */
.band {
  border-top: 1px solid var(--rule-soft);
}

.band.dark {
  background: var(--sea);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 9vh, 116px) 0;
}

.split.flip .copy {
  order: 2;
}

.copy h2 {
  font-size: clamp(28px, 3.7vw, 42px);
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 14px 0 16px;
}

.copy > p {
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 52ch;
}

.copy .points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.copy .points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
}

.copy .points b {
  color: var(--parchment);
  font-weight: 700;
}

.copy .points .tick {
  color: var(--gold);
  font-family: var(--data);
}

.shot {
  border: 1px solid var(--rule-soft);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.5);
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-family: var(--data);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- the technique list ----------------------------------------------- */
/* Rows, not a triptych: inside a half-width column three tiles squeeze to ~90px
   and the icons stop reading. */
.techs {
  display: grid;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}

.tech {
  background: var(--sea);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  align-items: center;
}

.tech img {
  width: 62px;
  height: 62px;
}

.tech h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
}

.tech p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---------- faq ---------------------------------------------------------------- */
.section {
  padding: clamp(60px, 9vh, 110px) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}

.faq {
  display: grid;
  border-top: 1px solid var(--rule-soft);
}

.faq details {
  border-bottom: 1px solid var(--rule-soft);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 18px;
  font-family: var(--data);
  font-size: 20px;
  color: var(--gold);
  transition: transform 160ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 72ch;
  font-size: 15.5px;
}

/* ---------- closing -------------------------------------------------------------- */
.closing {
  text-align: center;
  padding: clamp(80px, 12vh, 140px) 0;
}

.closing h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}

.closing p {
  color: var(--ink);
  max-width: 50ch;
  margin: 0 auto 30px;
}

.closing .hero-actions {
  justify-content: center;
}

/* ---------- footer ---------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--rule-soft);
  padding: 40px var(--gutter) 56px;
  background: var(--sea);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  max-width: var(--shell);
  margin-inline: auto;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--ink);
  margin-right: auto;
}

.foot nav a {
  text-decoration: none;
}

.foot nav a:hover {
  color: var(--parchment);
}

.foot .fine {
  font-size: 12.5px;
  color: var(--ink-dim);
  flex-basis: 100%;
  max-width: 74ch;
}

/* ROADMAP #52 — pages not written yet, flagged rather than silently dead. */
.todo {
  color: var(--coin);
  border-bottom: 1px dashed var(--gold);
}

/* ---------- legal / credits pages ----------------------------------------------------- */
/* Long-form reading, so the measure is the constraint: one narrow column, the
   type scale of the landing kept, nothing else on the page to look at. */
.doc {
  padding: clamp(48px, 8vh, 96px) 0 clamp(64px, 10vh, 120px);
}

.doc .shell {
  max-width: 72ch;
}

.doc h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
}

.doc-updated {
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule-soft);
}

.doc-lede {
  font-size: 18.5px;
  color: var(--parchment);
  margin: 0 0 34px;
}

.doc-body h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 46px 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
}

.doc-body h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--gold);
  margin: 28px 0 8px;
}

.doc-body p,
.doc-body li {
  color: var(--ink);
  font-size: 16px;
}

.doc-body p {
  margin: 0 0 16px;
}

.doc-body strong {
  color: var(--parchment);
  font-weight: 700;
}

.doc-body em {
  color: var(--ink-dim);
  font-style: italic;
}

.doc-body ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.doc-body li {
  margin-bottom: 10px;
}

.doc-body li::marker {
  color: var(--gold);
}

.doc-body a,
.doc-lede a {
  color: var(--coin);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}

.doc-body a:hover {
  text-decoration-color: var(--coin);
}

/* The Guide du pêcheur's "next chapter" line at the foot of a chapter page. */
.doc-body .doc-next {
  margin-top: 26px;
  font-weight: 700;
}

/* ---------- ambient contour field --------------------------------------------------- */
#contours {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.page > *:not(#contours) {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .topnav,
  .readout {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
    padding: clamp(48px, 8vh, 80px) 0;
  }

  .split.flip .copy {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page *,
  .tackle img {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- the tournament rod spec sheet ----------------------------------- */
/* A faithful rebuild of the game's own gear card (`hud/GearCard.tsx`): round
   medallion + rarity aura, affixes each in the colour their bonus line uses,
   stars/durability, then label-to-value stat rows. Same tokens as the HUD, so
   the two never drift into "similar but off". */
.sheet {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.sheet-frame {
  width: min(100%, 400px);
  padding: 22px 22px 20px;
  border: 1px solid rgba(202, 164, 106, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(202, 164, 106, 0.14), transparent 62%),
    linear-gradient(160deg, #16232a 0%, #0d171c 100%);
  box-shadow:
    0 0 34px -14px var(--gold),
    0 26px 56px rgba(0, 0, 0, 0.5);
}

.sheet-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
}

.sheet-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
}

.sheet-base {
  color: var(--parchment);
}

/* One colour per affix, shared with its bonus line below — the word and the
   effect it grants must never read as two unrelated things. */
.pfx-powerful {
  color: #e08a5a;
}

.pfx-sturdy {
  color: #7fa8c9;
}

.pfx-lucky {
  color: #6fd88f;
}

.sheet-kind {
  margin: 4px 0 0;
  font-family: var(--data);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.sheet-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.sheet-meta .stars {
  color: #e0a84e;
  font-size: 14px;
  letter-spacing: 2px;
}

.sheet-meta .dur {
  font-family: var(--data);
  font-size: 11px;
  color: #5fae7a;
}

.sheet-stats,
.sheet-bonus {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.sheet-stats div,
.sheet-bonus div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sheet-stats dt,
.sheet-bonus dt {
  color: var(--ink-dim);
}

.sheet-stats dd,
.sheet-bonus dd {
  margin: 0;
  font-family: var(--data);
  font-variant-numeric: tabular-nums;
  color: var(--parchment);
}

.sheet-bonus dd {
  color: var(--ink-dim);
  font-family: var(--body);
}

.sheet-bonus dd b {
  font-family: var(--data);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-right: 4px;
}

.sheet-cap {
  margin: 0;
  font-family: var(--data);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- the collection cards --------------------------------------------- */
/* The four rarities on the top row, the two morphs beneath — the shape of one
   collection slot. Straight grid, no fan: six rotated cards is a pile, not a
   ladder you can read. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  align-items: start;
}

.card-btn {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.card-btn img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  transition: transform 200ms ease;
}

.card-btn:hover img {
  transform: translateY(-6px) scale(1.03);
}

/* Enlarged, the way tapping a card in the keepnet enlarges it. Clicking again
   puts it back — the same toggle however many times you press it. */
.card-zoom {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  background: rgba(7, 12, 15, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: zoom-fade 180ms ease-out;
}

.card-zoom img {
  width: auto;
  height: min(74vh, 620px);
  max-width: 92vw;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

@keyframes zoom-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- the roadmap cycle --------------------------------------------------- */
/* A horizontal run of four steps: three candidates, the vote, the winner, the
   next round. The chevrons between them are what say "this repeats". */
.roadmap-head {
  padding: clamp(60px, 9vh, 104px) 0 0;
  max-width: 62ch;
}

.roadmap-head h2 {
  font-size: clamp(28px, 3.7vw, 42px);
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 14px 0 16px;
}

.roadmap-lede {
  color: var(--ink);
  margin: 0;
}

.cycle {
  list-style: none;
  margin: clamp(34px, 5vh, 54px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cycle-step {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--rule-soft);
  border-right: 0;
  background: linear-gradient(180deg, rgba(22, 35, 42, 0.6), rgba(13, 23, 28, 0.6));
}

.cycle-step:last-child {
  border-right: 1px solid var(--rule-soft);
}

/* The chevron that carries the eye from one step to the next. */
.cycle-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 2;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transform: rotate(45deg);
  background: var(--abyss);
}

.cycle-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 29px;
  margin-bottom: 14px;
  font-family: var(--data);
  font-size: 12px;
  color: var(--abyss);
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.cycle-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 7px;
}

.cycle-step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
}

.cycle-art {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  min-height: 34px;
}

/* A candidate. Neutral by default; the state it reaches is what colours it. */
.opt {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  font-family: var(--data);
  font-size: 12px;
  color: var(--ink-dim);
  background: rgba(231, 217, 182, 0.06);
  border: 1px solid var(--rule-soft);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.opt.voted {
  color: var(--parchment);
  background: rgba(202, 164, 106, 0.18);
}

.opt.won {
  color: var(--abyss);
  background: var(--coin);
  font-weight: 700;
}

.opt.new {
  color: var(--gold);
  border-style: dashed;
  border-color: var(--rule);
}

.opt-note {
  font-family: var(--data);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coin);
}

.roadmap-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: clamp(30px, 4vh, 42px) 0 clamp(60px, 9vh, 104px);
}

.roadmap-foot p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-dim);
}

@media (max-width: 900px) {
  .cycle {
    grid-template-columns: 1fr;
  }

  .cycle-step {
    border-right: 1px solid var(--rule-soft);
    border-bottom: 0;
  }

  .cycle-step:last-child {
    border-bottom: 1px solid var(--rule-soft);
  }

  /* The chevron turns to point down once the run stacks. */
  .cycle-step:not(:last-child)::after {
    top: auto;
    bottom: -9px;
    right: 50%;
    margin: 0 -8px 0 0;
    transform: rotate(135deg);
  }
}

/* ---------- overrides: bigger rod, six-card ladder ---------------------------- */
/* The rod now uses GearThumb's WIDE 2:1 frame above the sheet — inside the round
   medallion a 2.4 m rod was a grey smudge. Same inset ground and rarity aura as
   the HUD's framed variant. */
.sheet-art {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 2 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #0f1a1f;
  border: 1px solid rgba(202, 164, 106, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(202, 164, 106, 0.2),
    inset 0 0 40px -14px var(--gold),
    0 0 20px -6px var(--gold);
}

.sheet-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(85% 68% at 50% 20%, rgba(202, 164, 106, 0.27), transparent 66%),
    radial-gradient(130% 95% at 50% 122%, rgba(202, 164, 106, 0.14), transparent 60%);
}

.sheet-art img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.92); /* SPRITE_SCALE, as in GearThumb's framed variant */
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- the multiplayer emblem ------------------------------------------ */
/* Same lit stage as the gear sheet, so the two image columns read as one family.
   Restored after a css cleanup swept it away with the block above it. */
.emblem {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-content: center;
  gap: 26px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--rule-soft);
  background:
    radial-gradient(
      110% 85% at 50% 45%,
      rgba(202, 164, 106, 0.22) 0%,
      rgba(202, 164, 106, 0.06) 46%,
      transparent 72%
    ),
    linear-gradient(160deg, #16232a 0%, #0d171c 100%);
  overflow: hidden;
}

/* The hex behind the figures — the lake's tile, at emblem scale. */
.emblem::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74%, 340px);
  aspect-ratio: 1 / 1.08;
  transform: translate(-50%, -58%);
  background: rgba(202, 164, 106, 0.07);
  border: 1px solid rgba(202, 164, 106, 0.16);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.emblem svg {
  position: relative;
  width: min(52%, 240px);
  height: auto;
  fill: var(--coin);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
}

.emblem-cap {
  position: relative;
  margin: 0;
  font-family: var(--data);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
