/* ============================================================================
   Way of the Ronin — shared site styles (v2)
   Sumi-e identity: ink (sumi) / washi (paper) / vermillion (shu) / gold (kin).
   Hand-written, self-contained. No framework, no remote assets.
   ========================================================================== */

/* ----------------------------------------------------------------- Tokens */

:root {
  /* Ink (sumi) — the dark ground, layered for depth */
  --ink: #14110f;
  --ink-deep: #0e0c0b;
  --ink-soft: #1c1815;
  --ink-raised: #241f1a;
  --ink-panel: #201b17;

  /* Washi (paper) — the light on the ink */
  --washi: #ece4d4;
  --washi-bright: #f5efe2;
  --washi-dim: #a79c8c;
  --washi-faint: #6d6459;

  /* Vermillion (shu) — the seal, the accent */
  --vermillion: #c1362f;
  --vermillion-bright: #e0554a;
  --vermillion-deep: #8f2620;

  /* Kin — a restrained old-gold, used sparingly */
  --gold: #c9a15a;
  --gold-dim: #8a744a;

  --edge: #35302a;
  --edge-soft: #29241f;

  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Fluid type scale (minor-third-ish, clamped for mobile-first) */
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0:  clamp(0.98rem, 0.93rem + 0.25vw, 1.075rem);
  --step-1:  clamp(1.18rem, 1.08rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.42rem, 1.22rem + 1vw, 1.95rem);
  --step-3:  clamp(1.7rem, 1.35rem + 1.7vw, 2.6rem);
  --step-4:  clamp(2.1rem, 1.5rem + 3vw, 3.6rem);
  --step-5:  clamp(2.6rem, 1.6rem + 5vw, 5rem);

  /* Spacing rhythm */
  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.4rem;
  --space-lg: 2.4rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --measure: 62ch;
  --shadow-lift: 0 1px 0 rgba(255,255,255,0.03), 0 18px 40px -24px rgba(0,0,0,0.9);
  --radius: 8px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 45% at 50% -5%, rgba(193, 54, 47, 0.14), transparent 62%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(201, 161, 90, 0.05), transparent 60%),
    var(--ink);
  color: var(--washi);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

a { color: var(--vermillion-bright); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { filter: brightness(1.15); }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--vermillion);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; filter: none; color: #fff; }

/* --------------------------------------------------------- Layout shells */

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.wrap--narrow { max-width: 760px; }

main { flex: 1; }

.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-dim);
  font-weight: 600;
}

/* --------------------------------------------------------------- Header  */

.site-header {
  border-bottom: 1px solid var(--edge);
  background: rgba(16, 13, 11, 0.82);
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}

.nav-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--washi);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { filter: none; color: var(--washi-bright); }

.brand-seal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(160deg, var(--vermillion-bright), var(--vermillion-deep));
  color: #fff;
  font-size: 15px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.nav-spacer { flex: 1; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.94rem;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--washi-dim);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.16s ease, background 0.16s ease;
}
.site-nav a:hover { color: var(--washi-bright); background: var(--ink-soft); filter: none; }

.site-nav a[aria-current='page'] {
  color: var(--washi-bright);
}
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--vermillion-bright);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  margin-left: 6px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, var(--vermillion-bright), var(--vermillion));
  border: 1px solid rgba(224, 85, 74, 0.7);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 6px 18px -10px rgba(193, 54, 47, 0.9);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.nav-cta:hover { filter: brightness(1.1); color: #fff; }
.nav-cta:active { transform: translateY(1px); }

/* Header account indicator — sits left of the Play Now CTA. JS (nav-auth.js) swaps the text to
   the signed-in user's name and adds .is-signed (a small green presence dot). */
.nav-auth {
  display: inline-flex; align-items: center; gap: 7px; margin-right: 16px;
  max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--washi-dim); font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em; text-decoration: none; transition: color 0.15s;
}
.nav-auth:hover { color: var(--washi-bright); }
.nav-auth.is-signed { color: var(--washi); }
.nav-auth.is-signed::before {
  content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: #7cc08c; box-shadow: 0 0 8px rgba(124, 192, 140, 0.7);
}
@media (max-width: 720px) { .nav-auth { order: 1; margin-right: 12px; } }

/* Mobile menu toggle — hidden on desktop, shown at narrow widths */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  color: var(--washi);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-spacer { display: none; }
  .brand { margin-right: auto; }

  .site-nav {
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 12px;
    border-top: 1px solid var(--edge-soft);
    margin-top: 6px;
  }
  .site-nav a { padding: 12px 10px; font-size: 1rem; }
  .site-nav a[aria-current='page']::after { left: 10px; right: auto; width: 20px; bottom: 8px; }

  /* JS-driven collapse: when the header knows JS is on, hide until opened */
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }

  .nav-wrap { flex-wrap: wrap; min-height: 56px; padding-block: 8px; }
  .nav-cta { order: 2; }
}

/* -------------------------------------------------------------- Hero (home) */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--edge-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.hero-copy .kanji {
  font-family: var(--font-display);
  font-size: var(--step-5);
  color: var(--vermillion);
  line-height: 0.9;
  margin-bottom: 0.5rem;
  text-shadow: 0 8px 30px rgba(193, 54, 47, 0.3);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--washi-bright);
  margin-bottom: var(--space-md);
}

.hero-copy .lede {
  color: var(--washi-dim);
  font-size: var(--step-1);
  max-width: 34ch;
  margin-bottom: var(--space-lg);
}
.hero-copy .lede strong { color: var(--washi); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 34px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, var(--vermillion-bright), var(--vermillion));
  border: 1px solid rgba(224, 85, 74, 0.7);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px -12px rgba(193, 54, 47, 0.85);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.cta:hover { filter: brightness(1.1); color: #fff; }
.cta:active { transform: translateY(1px); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--washi);
  text-decoration: none;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, color 0.16s ease;
}
.cta-ghost:hover { border-color: var(--vermillion); color: var(--vermillion-bright); filter: none; }

.hero-note {
  margin-top: var(--space-md);
  font-size: var(--step--1);
  color: var(--washi-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-note::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,161,90,0.18);
  flex: none;
}

/* ------------------------------------------------------- Page hero (inner) */

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--edge-soft);
  text-align: center;
}

.page-hero .kanji {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--vermillion);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--washi-bright);
  margin-bottom: var(--space-sm);
}

.page-hero .lede {
  color: var(--washi-dim);
  font-size: var(--step-1);
  max-width: 46ch;
  margin: 0 auto;
}

/* --------------------------------------------------------------- Sections */

.section { padding: clamp(2.8rem, 6.5vw, 4.4rem) 0; }
.section + .section { border-top: 1px solid var(--edge-soft); }

.section h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--washi-bright);
  margin-bottom: var(--space-sm);
}

.section h2 .kanji-small {
  color: var(--vermillion);
  font-size: 0.8em;
  margin-right: 0.4em;
  font-family: var(--font-display);
}

.section h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--washi-bright);
  margin: var(--space-md) 0 var(--space-xs);
}

.section p { color: var(--washi-dim); margin-bottom: var(--space-sm); max-width: var(--measure); }
.section p:last-child { margin-bottom: 0; }
.section p strong { color: var(--washi); font-weight: 600; }

.section ul { color: var(--washi-dim); margin: 0 0 var(--space-sm) 1.3em; max-width: var(--measure); }
.section li { margin-bottom: 0.4rem; }

.lead { font-size: var(--step-1); color: var(--washi); }

/* A two-column "text + illustration" split */
.split {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.8rem);
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-art { grid-template-columns: 1fr 1.15fr; }
  .split--art-first > .scene-figure { order: -1; }
}

/* ------------------------------------------------------------- Feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin-top: var(--space-md);
}

.card {
  background: linear-gradient(180deg, var(--ink-raised), var(--ink-soft));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.4rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--edge); transform: translateY(-2px); }

.card .card-mark {
  font-family: var(--font-display);
  color: var(--vermillion);
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.6rem;
  display: block;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--washi-bright);
  margin: 0 0 0.4rem;
}

.card p { font-size: var(--step--1); color: var(--washi-dim); margin: 0; max-width: none; }

/* ------------------------------------------------------------- Stat chips  */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-md);
}
.stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  background: var(--ink-soft);
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--washi);
}
.stat-chip .kanji-small { color: var(--vermillion); font-family: var(--font-display); font-size: 1rem; }
.stat-chip span.dim { color: var(--washi-faint); }

/* --------------------------------------------------------------- Callout   */

.callout {
  border-left: 3px solid var(--vermillion);
  background: linear-gradient(180deg, var(--ink-raised), var(--ink-soft));
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-md) 0;
  color: var(--washi-dim);
  font-size: var(--step-0);
  max-width: var(--measure);
}
.callout strong { color: var(--washi-bright); }

/* --------------------------------------------------- Scene "screenshots"   */

figure.scene-figure { margin: 0; }

.scene-frame {
  position: relative;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--ink-deep);
  padding: 8px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.scene-frame::before {
  /* thin inner keyline */
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}
.scene-frame svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  image-rendering: pixelated;
}
.scene-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}
.scene-cap {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  color: var(--washi-faint);
  text-align: center;
}
.scene-cap strong { color: var(--washi-dim); font-weight: 600; }

/* Pixel SVG helpers */
.px { shape-rendering: crispEdges; }

/* -------------------------------------------------------- Onward links     */

.next {
  margin-top: var(--space-md);
}
.next-label {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--washi-faint);
  margin-bottom: 0.7rem;
}
.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.next-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  color: var(--washi);
  text-decoration: none;
  font-size: 0.94rem;
  background: var(--ink-soft);
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.1s ease;
}
.next-links a::after { content: '\2192'; color: var(--vermillion); transition: transform 0.16s ease; }
.next-links a:hover { border-color: var(--vermillion); color: var(--vermillion-bright); filter: none; }
.next-links a:hover::after { transform: translateX(3px); }

/* Divider brush motif */
.brush-rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--edge) 12%, var(--vermillion-deep) 50%, var(--edge) 88%, transparent);
  opacity: 0.7;
}

/* -------------------------------------------------------- CTA band (home)  */

.cta-band {
  border-top: 1px solid var(--edge-soft);
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(193,54,47,0.12), transparent 70%),
    var(--ink-deep);
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.cta-band .kanji {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--vermillion);
  margin-bottom: 0.6rem;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--washi-bright);
  margin-bottom: var(--space-sm);
}
.cta-band p { color: var(--washi-dim); max-width: 44ch; margin: 0 auto var(--space-lg); }

/* --------------------------------------------------------------- Footer    */

.site-footer {
  border-top: 1px solid var(--edge);
  background: var(--ink-deep);
  margin-top: auto;
}
.footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.2rem clamp(1.1rem, 4vw, 2rem) 2.6rem;
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 640px) {
  .footer-wrap { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--washi);
}
.footer-brand .brand-seal { width: 26px; height: 26px; font-size: 13px; }
.footer-tag { color: var(--washi-faint); font-size: var(--step--1); margin-top: 0.6rem; max-width: 32ch; }
.footer-col h4 {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--washi-faint);
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--washi-dim);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.22rem 0;
}
.footer-col a:hover { color: var(--vermillion-bright); filter: none; }
.footer-legal {
  border-top: 1px solid var(--edge-soft);
  color: var(--washi-faint);
  font-size: var(--step--1);
  padding: 1.1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

/* --------------------------------------------------------- Visually hidden */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- How-to-Play page additions ---------- */
.section--lead { padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section--lead h1 { margin: 0.4rem 0 0.8rem; }

.card-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--washi-dim);
  font-size: var(--step--1);
  line-height: 1.45;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-dim);
}
.card-list li strong { color: var(--washi); }

.steps {
  margin: 0.6rem 0 1.2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.steps li {
  position: relative;
  padding: 0.1rem 0 0 2.4rem;
  color: var(--washi-dim);
  line-height: 1.5;
}
.steps li strong { color: var(--washi); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step--1);
  background: rgba(201, 161, 90, 0.08);
}

.hint-note {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--gold-dim);
  background: rgba(201, 161, 90, 0.06);
  color: var(--washi-dim);
  font-size: var(--step--1);
  border-radius: 0 6px 6px 0;
}
.hint-note strong { color: var(--washi); }

/* ---------- Download page ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: var(--space-lg);
}
@media (min-width: 780px) {
  .dl-grid { grid-template-columns: 1fr 1fr; }
}

.dl-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ink-raised), var(--ink-soft));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.dl-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 10px;
  color: var(--washi-bright);
  background: linear-gradient(160deg, var(--ink-panel), var(--ink-deep));
  border: 1px solid var(--edge);
}
.dl-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--washi-bright);
  line-height: 1.1;
  margin: 0;
}
.dl-meta {
  font-size: var(--step--1);
  color: var(--washi-faint);
  margin: 0.2rem 0 0;
}
.dl-desc {
  color: var(--washi-dim);
  font-size: var(--step-0);
  margin: 0 0 1.2rem;
}

.dl-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.4rem;
}
.dl-btn svg { flex: none; }

.dl-steps { margin: 1rem 0 0.4rem; }
.dl-steps li { font-size: var(--step--1); }

.dl-shot { max-width: 420px; margin: var(--space-lg) auto 0; }

/* ═══════════════════════════════════════════════════════════════════════════════
   POLISH PASS (2026-07-26) — grouped nav dropdown · desktop section balance ·
   spacing rhythm · mobile refinements. Loaded via style.css?v=7.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Grouped "Explore" nav dropdown ─────────────────────────────────────────── */
.nav-group { position: relative; display: flex; }
.nav-group-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border: 0;
  border-radius: var(--radius-sm); background: none; color: var(--washi-dim);
  font: inherit; font-size: 0.94rem; cursor: pointer; white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-group-btn:hover, .nav-group:focus-within .nav-group-btn { color: var(--washi-bright); background: var(--ink-soft); }
.nav-group-btn.is-active { color: var(--washi-bright); }
.nav-group-btn .chev { width: 13px; height: 13px; transition: transform 0.2s ease; }
.nav-group:hover .chev, .nav-group:focus-within .chev, .nav-group-btn[aria-expanded='true'] .chev { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: 100%; left: 0; min-width: 224px; margin-top: 8px;
  display: flex; flex-direction: column; gap: 2px; padding: 6px; z-index: 50;
  border-radius: 12px; border: 1px solid var(--edge);
  background: linear-gradient(180deg, var(--ink-panel), var(--ink-soft));
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-menu::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; } /* hover bridge */
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group-btn[aria-expanded='true'] + .nav-menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-menu a { padding: 9px 12px; border-radius: 7px; color: var(--washi-dim); text-decoration: none; white-space: nowrap; font-size: 0.92rem; }
.nav-menu a:hover { color: var(--washi-bright); background: var(--ink-raised); }
.nav-menu a[aria-current='page'] { color: var(--washi-bright); }
.nav-menu a[aria-current='page']::after { display: none; }

/* ── Desktop section balance — center headings & the intro block so margins are symmetric
   (kills the right-side dead space). Prose stays left-aligned for readability; cards, splits
   and continue-links below are untouched. ─────────────────────────────────────────────────── */
.section > .wrap > .eyebrow,
.section > .wrap > h2 { text-align: center; }
.section > .wrap > .eyebrow,
.section > .wrap > h2,
.section > .wrap > p { max-width: 68ch; margin-left: auto; margin-right: auto; }
.section > .wrap > h2 { margin-bottom: 0.9rem; }
.section > .wrap > .eyebrow + h2 { margin-top: 0.25rem; }
/* the "Continue" block and card grids stay centered within the wrap */
.section > .wrap > .grid { margin-left: auto; margin-right: auto; }
.next { margin-top: var(--space-lg); text-align: center; }
.next-links { justify-content: center; }

/* ── Spacing rhythm ─────────────────────────────────────────────────────────── */
.page-hero { padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(1.8rem, 4vw, 2.6rem); }
.grid { gap: 1.1rem; margin-top: var(--space-lg); }
.card { padding: 1.5rem 1.4rem; }
.cta-band { padding: clamp(3rem, 7vw, 4.6rem) 0; }

/* ── Mobile refinements ─────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-group { flex-direction: column; align-items: stretch; }
  .nav-group-btn { justify-content: flex-start; padding: 12px 10px; font-size: 1rem; }
  .nav-group-btn .chev { display: none; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: none; padding: 2px 0 2px 14px;
    margin: 0; min-width: 0; border-left: 2px solid var(--edge);
  }
  .nav-menu a { padding: 10px 10px; font-size: 0.98rem; }

  .section { padding: clamp(2.2rem, 8vw, 3rem) 0; }
  .section > .wrap > h2 { font-size: var(--step-1); }
  .grid { gap: 0.8rem; }
  .cta { min-height: 50px; padding: 0 26px; }
  figure.scene-figure img, .scene-img { width: 100%; height: auto; }
}
