/* Mayor — marketing site. Palette and type follow the app
   (lib/core/constants/colors.dart, typography.dart): Mayor red, ink and
   cream sampled from the printed cards; Alfa Slab One, Jost (text, as on the
   box) and Barlow Condensed (SIL OFL 1.1, licences in assets/fonts/). */

@font-face {
  font-family: "Alfa Slab One";
  src: url("assets/fonts/AlfaSlabOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #F32836;
  --red-deep: #B5121E;
  --ink: #110F0D;
  --cream: #FBFAF7;
  --paper: #F3EEE4;
  --line: #E2DCD2;
  --muted: #5B554C;
  --table: #17434D;
  --table-deep: #10333B;
  --suit-red: #F02030;
  --suit-yellow: #F0B010;
  --suit-blue: #0033A1;
  --suit-green: #00A650;
  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, "PingFang SC", "Noto Serif SC", serif;
  --body: "Jost", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  --cond: "Barlow Condensed", "Jost", system-ui, "PingFang SC", "Noto Sans SC", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 1.0625rem/1.6 var(--body);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
[id] { scroll-margin-top: 84px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-table :focus-visible, .hero :focus-visible { outline-color: var(--cream); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand {
  font: 400 1.75rem/1 var(--display);
  text-decoration: none;
  margin-right: auto;
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: 2px; }
.nav a, .lang summary {
  font: 700 0.95rem/1 var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 10px;
  border-radius: 8px;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.lang-inline {
  display: flex; gap: 2px; list-style: none;
  margin: 0 0 0 8px; padding: 0 0 0 10px;
  border-left: 2px solid var(--line);
}
.lang-inline a {
  display: block; text-decoration: none;
  font: 700 0.92rem/1 var(--cond); letter-spacing: 0.06em;
  padding: 10px 8px; border-radius: 6px;
}
.lang-inline a:hover { background: var(--paper); }
.lang-inline a[aria-current="true"] { background: var(--red); }
.lang { position: relative; display: none; }
.lang summary {
  list-style: none; cursor: pointer;
  border: 2px solid var(--ink);
  padding: 8px 10px;
  display: flex; align-items: center; gap: 6px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 10px;
  min-width: 150px; box-shadow: 0 10px 24px rgba(17, 15, 13, 0.18);
}
.lang li a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.lang li a:hover { background: var(--paper); }
.lang li a[aria-current="true"] { background: var(--red); }

/* ── Shared pieces ────────────────────────────────────── */
.kicker {
  font: 700 0.82rem/1.2 var(--body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 0.4em;
}
.suit-stripe { display: flex; height: 10px; }
.suit-stripe span { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  font: 700 1.02rem/1 var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-paper { background: var(--cream); color: var(--ink); }
.btn-red { background: var(--red); color: var(--ink); }
.btn-disabled {
  background: transparent; color: var(--muted);
  border-color: var(--line); cursor: default;
}
.btn-disabled:hover { transform: none; box-shadow: none; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.text-link svg { width: 18px; height: 18px; }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section h2, .page-hero h1 {
  font: 400 clamp(2rem, 4.4vw, 3.1rem)/1.06 var(--display);
  margin-bottom: 0.45em;
  text-wrap: balance;
}
.answer {
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  max-width: 44em;
  font-weight: 600;
}
.note { color: var(--muted); font-size: 0.98rem; max-width: 52em; }
.on-dark .note, .on-table .note { color: rgba(251, 250, 247, 0.72); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(17, 15, 13, 0.055) 26px 29px),
    var(--red);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px);
}
.wordmark {
  font: 400 clamp(4.4rem, 12.5vw, 9.6rem)/0.92 var(--display);
  letter-spacing: -0.015em;
  margin: 0.02em 0 0.16em -0.04em;
}
.hero-bar { width: 132px; height: 10px; background: var(--cream); }
.tagline {
  font: 700 clamp(1.3rem, 2.5vw, 1.8rem)/1.12 var(--body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0.8em 0 0.75em;
  max-width: 22em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); font-weight: 600; max-width: 34em; }
.box-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 1.3em 0 0; }
.box-facts li {
  display: flex; align-items: center; gap: 6px;
  font: 700 0.95rem/1 var(--body); letter-spacing: 0.02em;
}
.box-facts svg { width: 22px; height: 22px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.status {
  display: flex; align-items: center; gap: 10px;
  margin-top: 1.4em;
  font: 700 0.9rem/1.3 var(--cond); letter-spacing: 0.08em; text-transform: uppercase;
}
.status .dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--cream); box-shadow: 0 0 0 3px rgba(251, 250, 247, 0.35);
}

.hero-art { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 520px; justify-self: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 4% 2% 2%;
  border-radius: 50%; background: rgba(255, 255, 255, 0.14);
}
.hero-cards { position: absolute; inset: 0; }
.hero-card {
  position: absolute; width: 27%;
  border-radius: 9px;
  box-shadow: 0 14px 30px rgba(17, 15, 13, 0.3);
  animation: float 7s ease-in-out infinite;
}
.hero-card.c1 { left: 13%; top: 17%; rotate: -15deg; }
.hero-card.c2 { left: 36.5%; top: 10%; rotate: -2deg; animation-delay: -2.3s; }
.hero-card.c3 { left: 60%; top: 17%; rotate: 13deg; animation-delay: -4.6s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.ballot-box { position: absolute; inset: 0; width: 100%; height: 100%; }
.ballot-box .still { display: none; }
.ballot {
  transform-box: fill-box;
  transform-origin: center;
  animation: ballot-drop 6.2s cubic-bezier(0.5, 0, 0.75, 0.55) infinite both;
}
@keyframes ballot-drop {
  0% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
  2% { opacity: 1; }
  9% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  11.5% { transform: translate(0, 10px) rotate(0deg) scale(0.12); opacity: 0; }
  100% { transform: translate(0, 10px) scale(0.12); opacity: 0; }
}

/* ── What is Mayor ────────────────────────────────────── */
.facts-title {
  font: 700 0.9rem/1 var(--cond); letter-spacing: 0.16em; text-transform: uppercase;
  margin: 1.8em 0 0.6em;
}
.facts { margin: 0; border-top: 3px solid var(--ink); }
.facts div {
  display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.facts dt { font: 700 0.92rem/1.5 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.what-photo { margin: 0; }
.what-photo img { border-radius: var(--radius); border: 3px solid var(--ink); background: #fff; }

/* ── How to play ──────────────────────────────────────── */
.how { background: var(--paper); }
.steps {
  list-style: none; padding: 0; margin: 2.4em 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.step {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; align-items: center;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 16px;
  padding: 22px;
}
.step-cards { position: relative; height: 196px; }
.step-card {
  position: absolute; width: 96px; left: 18px; top: 8px;
  border-radius: 7px; box-shadow: 0 6px 14px rgba(17, 15, 13, 0.18);
}
.step-cards-3 .step-card:nth-child(1) { left: 0; rotate: -12deg; }
.step-cards-3 .step-card:nth-child(2) { left: 18px; top: 2px; }
.step-cards-3 .step-card:nth-child(3) { left: 36px; rotate: 11deg; }
.step-cards-1 .step-card { rotate: -4deg; }
.step-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: var(--ink);
  font: 400 1.15rem/1 var(--display);
  margin-bottom: 10px;
}
.step h3 { font: 700 1.3rem/1.2 var(--body); margin-bottom: 0.4em; }
.step p { margin: 0; }

/* ── Modes ────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 1.8em 0 1.2em; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { font: 700 1rem/1.2 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 3px solid var(--ink); }
tbody th { font-weight: 700; width: 24%; }
.compare .col-enfant, .compare .col-normal { font: 400 1.35rem/1 var(--display); text-transform: none; letter-spacing: 0; }
.compare .col-enfant { border-bottom-color: var(--red); color: var(--red-deep); }
.compare .col-normal { border-bottom-color: var(--ink); color: var(--ink); }
.compare td { width: 38%; }

/* ── Progression ──────────────────────────────────────── */
.on-dark { background: var(--ink); color: var(--cream); }
.tiers {
  list-style: none; padding: 0; margin: 2.4em 0;
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px;
  counter-reset: tier;
}
.tier { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tier .arms { width: 100%; max-width: 86px; height: auto; margin-bottom: 8px; }
.tier-name {
  font: 700 0.76rem/1.15 var(--cond); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--suit-yellow);
}
.tier-city { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.tier-xp { font: 700 0.78rem/1 var(--cond); color: rgba(251, 250, 247, 0.6); letter-spacing: 0.06em; }
.progression-detail { margin-top: 1em; }

.shot { margin: 0; }
.shot img {
  border-radius: 14px;
  border: 3px solid rgba(251, 250, 247, 0.9);
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.shot figcaption { margin-top: 12px; font-size: 0.95rem; color: rgba(251, 250, 247, 0.82); }

/* ── Gallery ──────────────────────────────────────────── */
.on-table {
  background: var(--ink);
  box-shadow: inset 0 0 0 clamp(8px, 1.4vw, 16px) var(--red);
  color: var(--cream);
}
.shots-scroll { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 2em; }
.shots .shot { scroll-snap-align: start; }

/* ── Privacy ──────────────────────────────────────────── */
.privacy-inner { align-items: start; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li {
  display: flex; align-items: center; gap: 16px;
  font: 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.15 var(--display);
  border: 3px solid var(--ink); border-radius: 14px; padding: 18px 20px; background: #fff;
}
.points svg { width: 34px; height: 34px; flex: none; color: var(--suit-green); }

/* ── Printed game ─────────────────────────────────────── */
.printed { background: var(--paper); }
.printed figure { margin: 0; }
.printed figure img { width: 100%; border-radius: 14px; border: 3px solid var(--ink); background: #fff; }
.printed figcaption, .what-photo figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }
.printed-top {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.printed-hero { position: sticky; top: 90px; }
.box-facts.on-paper { margin: 0.4em 0 0.4em; }
.box-facts.on-paper li { background: var(--red); padding: 9px 12px; border-radius: 8px; }
.in-box { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.in-box li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); }
.in-box li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 12px; height: 12px; background: var(--red); border: 2px solid var(--ink);
}
.in-box li:nth-child(4n+2)::before { background: var(--suit-yellow); }
.in-box li:nth-child(4n+3)::before { background: var(--suit-blue); }
.in-box li:nth-child(4n+4)::before { background: var(--suit-green); }
.credits { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 4px 24px; justify-content: start; }
.credits div { display: flex; flex-direction: column; }
.credits dt { font: 700 0.8rem/1.4 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.credits dd { margin: 0; font-weight: 600; }
.printed-more { margin-top: 1.4em; }
.printed-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-top: clamp(36px, 5vw, 64px);
}
.printed-strip img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-item { border-bottom: 2px solid var(--ink); }
.faq-item:first-of-type { border-top: 3px solid var(--ink); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: 700 1.18rem/1.35 var(--body); }
.faq-item summary::after {
  content: "+"; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  font: 400 1.3rem/1 var(--display);
  transition: rotate 0.2s ease;
}
.faq-item[open] summary::after { rotate: 45deg; background: var(--red); color: var(--ink); }
.faq-item p { margin: 0 0 22px; max-width: 46em; }

/* ── Inner pages ──────────────────────────────────────── */
.page-hero {
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(17, 15, 13, 0.055) 26px 29px),
    var(--red);
}
.page-hero .wrap { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-hero .updated { margin: 0; font: 700 0.9rem/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; }
.prose { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.prose section { margin-top: 2.6em; }
.prose h2 { font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.15 var(--display); margin-bottom: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--red-deep); font-weight: 700; }
.prose table { min-width: 0; }
.prose tbody th { width: auto; }
.toc { background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 20px 24px; }
.toc h2 { font: 700 0.9rem/1 var(--cond); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
.toc a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.notfound > div { margin-bottom: 2em; }
.notfound h2 { font-size: 1.4rem; }

/* ── Content pages ────────────────────────────────────── */
.see-also { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 1.2em; }
.narrow-p { max-width: 820px; }
.versus { min-width: 560px; }
.versus thead th:nth-child(3) { color: var(--red-deep); }
.versus td { width: 38%; }
.about-photo { margin: 0 0 1em; }
.about-photo img { width: 100%; border-radius: 14px; border: 3px solid var(--ink); }
.prose .credits { margin-top: 0.4em; grid-template-columns: repeat(2, minmax(0, auto)); }
.deck-page { max-width: var(--wrap); }
.deck {
  list-style: none; padding: 0; margin: 0.8em 0 2em;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 14px;
}
.deck li { margin: 0; }
.deck figure { margin: 0; text-align: center; }
.deck img {
  width: 100%; border-radius: 8px; background: #fff;
  box-shadow: 0 4px 12px rgba(17, 15, 13, 0.16);
}
.deck figcaption { margin-top: 8px; font: 700 0.86rem/1.25 var(--body); }
.deck figcaption small { display: block; font: 700 0.78rem/1.3 var(--cond); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.deck-specials { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.deck-specials figure { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left; }
.deck-specials figcaption { margin: 0; font-weight: 500; }
.deck-specials figcaption strong { display: block; font: 400 1.2rem/1.2 var(--display); margin-bottom: 4px; }
.suit-title { font: 400 1.4rem/1.2 var(--display); margin-top: 1.2em; display: flex; align-items: center; gap: 10px; }
.suit-title::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--ink); }
.suit-red::before { background: var(--suit-red); }
.suit-yellow::before { background: var(--suit-yellow); }
.suit-blue::before { background: var(--suit-blue); }
.suit-green::before { background: var(--suit-green); }

/* ── Press kit ────────────────────────────────────────── */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.2em; }
.store-badge img { display: block; height: 48px; width: auto; }
.quote-ready { margin: 0; padding: 18px 22px; border-left: 6px solid var(--red); background: var(--paper); font-weight: 600; }
.quote-ready p { margin: 0; }
.press-shots .shot img { border-color: var(--ink); box-shadow: 0 8px 20px rgba(17, 15, 13, 0.18); }
.press-shots .shot figcaption { color: var(--ink); }
.download { display: inline-block; margin-top: 6px; font: 700 0.86rem/1.3 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-deep); }
.press-art { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.press-art .icon img { border-radius: 22%; background: none; }

/* ── Shop ─────────────────────────────────────────────── */
.shop-section h2 { margin-bottom: 0.3em; }
.shop-merch { background: var(--paper); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 1.6em; }
.products-feature { grid-template-columns: minmax(0, 1fr); }
.product {
  display: flex; flex-direction: column;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; overflow: hidden;
}
.products-feature .product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.products-feature .product-body { justify-content: center; padding: clamp(24px, 4vw, 48px); }
.product h3 { font: 400 1.5rem/1.15 var(--display); margin: 0.2em 0 0.4em; }
.products-feature .product h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.product-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font: 700 1.05rem/1 var(--cond); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.badge {
  align-self: flex-start; margin: 0;
  font: 700 0.78rem/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 6px; border: 2px solid var(--ink);
}
.badge-in_preparation { background: var(--suit-yellow); }
.badge-idea { background: transparent; }
.badge-preorder { background: var(--table); color: var(--cream); border-color: var(--table); }
.badge-available { background: var(--suit-green); }
.badge-sold_out { background: var(--line); }

.visual {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--paper); border-bottom: 3px solid var(--ink);
  display: grid; place-items: center;
}
.products-feature .visual { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 3px solid var(--ink); background: var(--ink); }
.visual-photo > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.visual-photo .product-thumb {
  position: absolute; right: 16px; bottom: 16px; width: 30%;
  border: 3px solid var(--cream); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.visual svg { width: 62%; height: auto; }
.visual-tshirt { background: #EDE6D8; }
.visual-tote { background: #DDE6E3; }
.poster {
  width: 46%; aspect-ratio: 3 / 4; background: var(--cream);
  border: 3px solid var(--ink); padding: 8%; display: flex; flex-direction: column; gap: 6%;
  box-shadow: 0 12px 26px rgba(17, 15, 13, 0.22); rotate: -3deg;
}
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.poster-grid img { border-radius: 3px; }
.poster span { font: 400 clamp(1rem, 2.2vw, 1.4rem)/1 var(--display); text-align: center; margin-top: auto; }
.visual-pins { display: flex; gap: 6%; justify-content: center; background: var(--red); }
.pin {
  width: 24%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--ink); background: #fff; box-shadow: 0 8px 18px rgba(17, 15, 13, 0.3);
}
.pin:nth-child(2) { translate: 0 -14%; }
.pin img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.shop-how p { max-width: 46em; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(251, 250, 247, 0.82); }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 40px;
  padding-block: 48px 40px;
}
.footer-brand { font: 400 2.2rem/1 var(--display); color: var(--cream); margin-bottom: 0.3em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: start; justify-content: flex-end; }
.site-footer a { color: var(--cream); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-footer nav a { font: 700 0.95rem/1 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.footer-langs, .footer-meta { margin: 0; font-size: 0.92rem; }
.footer-meta { text-align: right; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
  .lang-inline { display: none; }
  .lang { display: block; }
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 420px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .printed-top { grid-template-columns: minmax(0, 1fr); }
  .printed-hero { position: static; }
  .printed-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
  }
  .tier { scroll-snap-align: start; }
  .shots { grid-template-columns: repeat(4, minmax(280px, 82vw)); }
  .products-feature .product { grid-template-columns: minmax(0, 1fr); }
  .products-feature .visual { aspect-ratio: 1; border-right: 0; border-bottom: 3px solid var(--ink); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav { justify-content: flex-start; }
  .footer-meta { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { gap: 4px; min-height: 58px; }
  .brand { font-size: 1.45rem; }
  .nav a, .lang summary { font-size: 0.82rem; padding: 9px 6px; letter-spacing: 0.05em; }
  .lang summary { padding: 7px 8px; }
  .step { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .step-cards { height: 150px; }
  .step-card { width: 72px; left: 10px; }
  .step-cards-3 .step-card:nth-child(2) { left: 14px; }
  .step-cards-3 .step-card:nth-child(3) { left: 26px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .toc ol { columns: 1; }
  .credits { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .nav a { padding: 9px 4px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card, .ballot { animation: none; }
  .ballot { opacity: 0; }
  .ballot-box .still { display: inline; }
  .btn, .faq-item summary::after { transition: none; }
}
