/* ==========================================================================
   Smiling Dog Games : site.css (draft)
   Fonts: Bricolage Grotesque (OFL, bundled in /assets/fonts, see OFL.txt)
          + system UI stack for body text. No font CDNs.
   Colours: tokens in :root sampled from the Shiba logo + Neural Dive cover.
   Warm cream studio; ND page uses sky blue / grass green. Dog-orange is accent-only.
   ========================================================================== */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  /* Friendly indie palette from logo (orange fur, cream, soft peach) — not black+hot-orange */
  --bg: #faf6f0;
  --bg-2: #fffdf8;
  --ink: #2c241c;
  --muted: #7a6e62;
  --line: #e5d6c4;
  --brand: #e08a4a;           /* dog-orange accent (use sparingly) */
  --brand-ink: #2c241c;
  --accent: #3a5f7a;          /* soft navy default */
  --accent-2: #c47845;
  --glow: rgba(224, 138, 74, .14);
  --ph: #d8cfc3;
  --font-display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 18px;
  --pad: clamp(1.1rem, 4vw, 3rem);
  --max: 1320px;
}

/* ---- per-game accents (used in the shared frame: nav, headings, buttons) ---- */
.g-nd  { --accent: #2a6cb0; --accent-2: #5aad48; --glow: rgba(42, 108, 176, .16); } /* ND sky blue + grass */
.g-nc  { --accent: #6b8f4e; --accent-2: #c4a574; --glow: rgba(107, 143, 78, .14); } /* Nano-control legacy */
.g-ut  { --accent: #6e6558; --accent-2: #b8a990; --glow: rgba(110, 101, 88, .10); }
.doujins { --accent: #d97898; --accent-2: var(--brand); --glow: rgba(217, 120, 152, .14); }
body.g-nd  { --bg: #eef6fb; --bg-2: #ffffff; --line: #c4d8ea; }
body.g-nc  { --bg: #f4f1e8; --bg-2: #fffdf8; --line: #d9d0bc; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
  position: relative;
}
/* soft CSS film grain */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* one soft accent glow in the top corner */
body::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; top: -30vmax; right: -25vmax;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--ink); color: var(--bg); padding: .5rem 1rem; }
main { display: block; padding: 0 var(--pad); max-width: var(--max); margin: 0 auto; }

/* ---- type ---- */
.mega, .section-h, .gcard-title, .tier-price, .foot-mega, .gate-h, .wordmark-txt, .mi-name, .nf-code {
  font-family: var(--font-display); font-weight: 800; font-stretch: 78%;
  letter-spacing: -.015em; line-height: 1.15; margin: 0;
}
/* Bricolage condensed 800 ink ≈1.2em — need ~1.35 lh for clear air between lines */
.mega { font-size: clamp(2.8rem, 10vw, 7.5rem); text-wrap: balance; line-height: 1.35; margin-bottom: .12em; letter-spacing: -.01em; }
.section-h { font-size: clamp(2.3rem, 7.5vw, 5.2rem); margin-bottom: .45em; line-height: 1.22; }
.section-h.sm { font-size: clamp(1.85rem, 5vw, 3.1rem); }
.foot-mega { line-height: .88; margin-bottom: 1.5rem; } /* decorative watermark, single line */
.gate-h { line-height: 1.25; letter-spacing: -.005em; }
.tier-price { line-height: 1; margin-bottom: .08em; }
.mega .accent { padding-right: .02em; }
.tag, .kicker, .chip, .gate-kicker {
  display: inline-block; font: 700 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin: 0 0 1rem;
}
.chip { border: 1px solid currentColor; border-radius: 99px; padding: .35em .7em; vertical-align: middle; }
.hero-sub, .pitch { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 34ch; color: #5c5248; }

/* ---- [CONFIRM] + draft notes: deliberately loud ---- */
mark.confirm {
  background: repeating-linear-gradient(-45deg, rgba(230, 170, 20, .22) 0 8px, rgba(230, 170, 20, .08) 8px 16px);
  color: #8a5a00; outline: 1.5px dashed #c9a000; outline-offset: 2px;
  font: 600 .78em/1.45 var(--mono); padding: .2em .45em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  display: inline-block; max-width: 100%; vertical-align: middle; margin: .2em 0;
}
.tier li { margin-bottom: .75rem; }
.tier li:has(mark.confirm) { margin-bottom: 1rem; }
p:has(> mark.confirm) { line-height: 1.75; }
p + p { margin-top: .2em; }
.draft-note {
  font: 500 .82rem/1.5 var(--mono); color: #8a5a00; border-left: 3px solid #c9a000;
  padding: .3rem .8rem; max-width: 60ch; background: rgba(230, 170, 20, .10);
}

/* ---- placeholders (grey boxes, labelled). Swap for <img> later ---- */
.ph {
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: var(--ph) repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 14px, transparent 14px 28px);
  border: 2px dashed #b8a990; border-radius: var(--r);
  color: #5c5248; font: 600 .85rem/1.3 var(--mono); text-align: center; padding: 1rem;
}
.ph > span { background: rgba(255,253,248,.85); padding: .4em .7em; border-radius: 6px; }
/* Real art: keep .ph for layout hooks, drop the dashed placeholder look */
img.ph {
  display: block; padding: 0; border: 0; background: transparent; color: transparent;
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
img.ph > span { display: none; }
/* Hero/game art: let aspect-ratio size the box (img.ph height:100% would stretch to the grid row) */
img.hero-art, img.ghero-art {
  height: auto;
  align-self: center;
}

/* ---- buttons ---- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 1.05rem/1 var(--font-display); font-stretch: 85%; letter-spacing: .01em;
  padding: .95em 1.4em; border-radius: 999px; border: 2px solid var(--b);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--b); color: #fffdf8; box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { color: #fffdf8; transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { font-size: .9rem; padding: .7em 1.1em; box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost.btn-sm { box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0; }
.js .nojs-only, .no-js .js-only { display: none; }

/* ---- header / nav ---- */
.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem;
  padding: 1rem var(--pad); max-width: var(--max); margin: 0 auto;
  border-bottom: 1px solid var(--line); position: relative;
}
.site-head::after { content: ""; position: absolute; left: var(--pad); bottom: -1px; width: 4rem; height: 3px; background: var(--accent); }
.wordmark { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.wordmark-ph {
  font: 700 .65rem/1 var(--mono); color: #5c5248; background: var(--ph);
  border: 1.5px dashed #b8a990; border-radius: 10px; padding: .75em .55em;
}
.wordmark-logo {
  width: 2.75rem; height: 2.75rem; border-radius: 12px; object-fit: contain;
  background: transparent; flex-shrink: 0;
}
.wordmark-txt { font-size: 1.45rem; line-height: 1; }
.wordmark-txt em { font-style: normal; color: var(--brand); }
.site-head nav { width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.site-head nav::-webkit-scrollbar { display: none; }
.site-head ul { display: flex; gap: .45rem; list-style: none; margin: 0; padding: 0; white-space: nowrap; align-items: center; }
.site-head nav a.nav-hub { margin-left: .35rem; }
.site-head nav a {
  display: block; padding: .5em .75em; border-radius: 99px; color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-head nav a:hover { background: var(--bg-2); }
.site-head nav a[aria-current="page"] { color: var(--accent); }
.nav-tbd { opacity: .6; }
.nav-tbd sup { font: 700 .6rem var(--mono); color: #c9a000; }
.site-head nav a.nav-hub { border: 1.5px solid var(--accent); color: var(--accent); }
.site-head nav a.nav-hub:hover { background: var(--accent); color: #fffdf8; }
@media (min-width: 900px) {
  .site-head nav { width: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---- home hero: art breaks out to the right; text stays readable over bleed ---- */
.hero { position: relative; display: grid; padding: 1.5rem 0 3rem; }
.hero-art { aspect-ratio: 5 / 3; width: 100%; justify-self: stretch; margin-right: calc(var(--pad) * -1); border-radius: var(--r) 0 0 var(--r); transform: rotate(1.5deg); position: relative; z-index: 1; object-position: center 40%; }
.hero-text { margin-top: -2.5rem; position: relative; z-index: 2; max-width: 22ch; padding-right: .5rem; }
.hero .mega { text-shadow: 0 4px 18px rgba(250, 246, 240, .95), 0 2px 10px rgba(250,246,240,.9), 0 2px 8px rgba(44,36,28,.12); }
.hero .hero-sub { text-shadow: 0 2px 10px rgba(250, 246, 240, .95); margin-top: .35rem; }
.sticker {
  position: absolute; top: 1.2rem; left: 0; z-index: 3; margin: 0;
  width: 6.2rem; height: 6.2rem; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--brand); color: var(--brand-ink); transform: rotate(-12deg);
  font: 800 1.7rem/1 var(--font-display); font-stretch: 75%;
}
.sticker small { font: 700 .55rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 900px) {
  .hero { grid-template-columns: repeat(12, 1fr); align-items: center; min-height: 82vh; padding: 3rem 0 5rem; }
  .hero-art { grid-column: 6 / 13; grid-row: 1; width: auto; justify-self: stretch; aspect-ratio: 5 / 3; margin-right: calc((100vw - min(100vw, var(--max))) / -2 - var(--pad)); object-position: center 40%; }
  .hero-text { grid-column: 1 / 6; grid-row: 1; margin-top: 0; max-width: none; padding-right: 1.5rem; }
  .sticker { left: auto; right: 36%; top: 8%; width: 8rem; height: 8rem; font-size: 2.2rem; }
}

/* ---- game cards: big, alternating, art bleeds out of the card ---- */
.games-block { padding: 3rem 0; }
.games-block > .section-h { margin-bottom: 3.5rem; }
.gcard {
  position: relative; display: grid; gap: 1.2rem; margin: 0 0 5rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.4);
  padding: 0 1.2rem 1.5rem;
}
.gcard::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; border-radius: 0 0 99px 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.gcard-art { position: relative; display: block; aspect-ratio: 16 / 10; margin: -2.2rem -.4rem 0; transform: rotate(-1.2deg); transition: transform .3s ease; }
.gcard:nth-of-type(even) .gcard-art { transform: rotate(1.2deg); }
.gcard-art .ph { position: absolute; inset: 0; box-shadow: 0 16px 40px rgba(44,36,28,.18), 0 0 0 1px var(--accent); transition: opacity .35s ease; border-radius: var(--r); }
.gcard-art .ph-b { opacity: 0; }
.gcard:hover .ph-b, .gcard:focus-within .ph-b { opacity: 1; }
.gcard:hover .gcard-art { transform: rotate(0) scale(1.015); }
.gcard-title { font-size: clamp(2.6rem, 9vw, 5.2rem); color: var(--accent); margin-bottom: .3em; line-height: 1.15; }
.ver { font: 600 .85rem/1.4 var(--mono); color: var(--muted); }
.ver .sep, .status .sep { color: var(--accent-2); padding: 0 .3em; }
@media (min-width: 900px) {
  .gcard { grid-template-columns: 1.35fr 1fr; align-items: center; padding: 2.5rem 2.5rem 2.5rem 0; gap: 3rem; width: 94%; }
  .gcard-art { margin: -1rem 0 -1rem -4rem; }
  .gcard:nth-of-type(even) { grid-template-columns: 1fr 1.35fr; padding: 2.5rem 0 2.5rem 2.5rem; margin-left: auto; }
  .gcard:nth-of-type(even) .gcard-art { order: 2; margin: -1rem -4rem -1rem 0; }
}

/* ---- supporter strip ---- */
.strip {
  margin: 2rem calc(var(--pad) * -1); padding: 2.5rem var(--pad);
  background: var(--brand); color: var(--brand-ink);
  transform: rotate(-1.2deg); display: grid; gap: .5rem;
}
.strip .strip-text { font: 800 clamp(1.5rem, 4vw, 2.6rem)/1.15 var(--font-display); font-stretch: 80%; max-width: 28ch; margin: 0; }
.strip .btn-primary { --b: var(--brand-ink); color: var(--brand); box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
.strip .btn-primary:hover { color: var(--brand); }
.strip .btn-ghost { color: var(--brand-ink); border-color: var(--brand-ink); }
.strip .btn-ghost:hover { background: var(--brand-ink); color: var(--brand); }
.doujins .strip { background: var(--accent); }
@media (min-width: 900px) { .strip { grid-template-columns: 1fr auto; align-items: center; } }

/* ---- home bottom: posts + points ---- */
.home-split { display: grid; gap: 3rem; padding: 4rem 0 2rem; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.post-list time { font: .8rem var(--mono); color: var(--muted); margin-left: .4rem; }
.points { border: 2px dashed #c9a000; border-radius: var(--r); padding: 1.5rem; align-self: start; }
@media (min-width: 900px) { .home-split { grid-template-columns: 1.6fr 1fr; } }

/* ---- game pages ---- */
.ghero { display: grid; padding: 1.5rem 0 3rem; position: relative; gap: 1.25rem; }
.ghero-art { aspect-ratio: 16 / 10; margin: 0 calc(var(--pad) * -1); border-radius: 0; border-left: 0; border-right: 0; position: relative; z-index: 1; object-position: center 35%; }
.ghero-text { margin-top: 0; position: relative; z-index: 2; }
.ghero .mega { color: var(--ink); text-shadow: 0 2px 14px rgba(255,253,248,.95), 0 1px 6px rgba(250,246,240,.9); margin-bottom: .2em; }
.ghero .mega .accent { color: var(--accent); }
.ghero .pitch { max-width: 32ch; margin-top: .15rem; }
.ghero .status { margin-top: .35rem; }
.status { font: 600 .95rem/1.5 var(--mono); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; display: inline-block; }
.glong { display: grid; gap: 2.5rem; padding: 2rem 0 3rem; }
.glong-text { font-size: 1.15rem; max-width: 52ch; }
.tier-note { font-weight: 700; color: var(--accent); }
.gshots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ph-shot { aspect-ratio: 16 / 9; }
.gshots .ph-shot:first-child { grid-column: 1 / -1; }
.gdl { padding: 2rem 0 4rem; }
.patron-line { color: var(--muted); }
@media (min-width: 900px) {
  .ghero { grid-template-columns: repeat(12, 1fr); align-items: center; min-height: 70vh; gap: 0; }
  .ghero-art { grid-column: 6 / 13; grid-row: 1; margin: 0 calc((100vw - min(100vw, var(--max))) / -2 - var(--pad)) 0 0; border-radius: var(--r) 0 0 var(--r); border: 0; aspect-ratio: 16 / 9; align-self: center; box-shadow: 0 20px 50px rgba(44,36,28,.14); }
  .ghero-text { grid-column: 1 / 6; grid-row: 1; margin: 0; padding-right: 1.25rem; }
  .glong { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .gshots { transform: translateY(-1rem); }
  .gshots .ph-shot:nth-child(3) { transform: translateY(2.5rem); }
}
/* Neural Dive: soft sky wash, no neon */
body.g-nd .ghero .mega .accent { color: var(--accent); }
body.g-nd .ghero-art { aspect-ratio: 5 / 3; object-position: center 40%; }
@media (min-width: 900px) {
  body.g-nd .ghero-art { aspect-ratio: 5 / 3; }
}
/* Nano-control legacy: quiet stamp feel + full-bleed wide banner (4:1) */
body.g-nc .ghero .mega { font-weight: 750; }
body.g-nc .ghero {
  gap: 1.25rem;
  grid-template-columns: 1fr;
  min-height: 0;
  align-items: start;
}
body.g-nc .ghero-art {
  aspect-ratio: 4 / 1;
  grid-column: 1 / -1;
  grid-row: auto;
  width: 100%;
  height: auto;
  margin: 0 calc(var(--pad) * -1);
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  box-shadow: none;
  align-self: start;
}
body.g-nc .ghero-text {
  grid-column: 1 / -1;
  grid-row: auto;
  margin-top: 0;
  padding-right: 0;
  max-width: 40rem;
}
@media (min-width: 900px) {
  body.g-nc .ghero {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: start;
  }
  body.g-nc .ghero-art {
    aspect-ratio: 4 / 1;
    height: auto;
    margin: 0 calc((100vw - min(100vw, var(--max))) / -2 - var(--pad));
    border-radius: var(--r);
    box-shadow: 0 16px 40px rgba(44,36,28,.12);
  }
}
.legacy-chip { border-color: var(--muted); color: var(--muted); }

/* ---- download rows (shared) ---- */
.dl-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.dl-list li {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; box-shadow: 0 2px 8px rgba(44,36,28,.04);
}
.dl-plat { font-weight: 700; }
.dl-ver, .dl-size { font: .82rem var(--mono); color: var(--muted); }
.dl-list .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (min-width: 700px) {
  .dl-list li { grid-template-columns: 1.4fr .6fr .6fr auto; }
  .dl-list .btn { grid-column: auto; grid-row: auto; }
}

/* ---- download page: game main menu ---- */
.menu-screen { position: relative; max-width: none; padding: 0; min-height: 100vh; }
.menu-bg { position: absolute; inset: 0; border-radius: 0; border: 0; opacity: .45; align-items: start; justify-items: end; }
.menu-bg-art { opacity: .35; background-color: var(--bg); }
.menu-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(250,246,240,.94) 48%, rgba(250,246,240,.55) 100%); }
.menu-bg > span { position: relative; z-index: 1; margin: 1.5rem; }
.menu-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 3rem var(--pad) 4rem; }
.menu-head { max-width: 46rem; margin-bottom: 2rem; }
.menu-sub { color: #5c5248; font-size: 1.15rem; }
.menu-list { list-style: none; margin: 0; padding: 0; max-width: 54rem; counter-reset: mi; }
.menu-item { padding: 1.2rem 0 1.4rem 0; border-top: 1px solid var(--line); position: relative; transition: padding .2s ease; }
.mi-name { font-size: clamp(2.2rem, 7vw, 4.2rem); display: flex; align-items: center; gap: .3em; margin-bottom: .8rem; color: var(--ink); line-height: 1.15; }
.mi-name a { color: var(--ink); text-decoration: none; }
.mi-name small { font-size: .7rem; }
.mi-cursor { color: var(--accent); font-size: .45em; opacity: 0; transform: translateX(-.4em); transition: opacity .2s, transform .2s; }
.menu-item:hover .mi-cursor, .menu-item:focus-within .mi-cursor { opacity: 1; transform: none; }
.menu-item:hover .mi-name a, .menu-item:focus-within .mi-name a { color: var(--accent); }
.menu-item:hover { padding-left: .6rem; }
.mi-patron { font-size: .92rem; color: var(--muted); margin: 0; }
.live-status { font: .78rem var(--mono); color: #8a5a00; margin-left: .3rem; }
.live-status.is-live { color: #2a8a4a; }
.menu-foot { border-top: 1px solid var(--line); padding-top: 1.5rem; max-width: 54rem; }
.safety { font-weight: 700; color: var(--brand); }
.menu-stamp { position: absolute; right: var(--pad); bottom: 1rem; font: .72rem var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin: 0; }

/* ---- support tiers: staggered, $5 bigger ---- */
.sup-head { padding: 3rem 0 2rem; max-width: 60rem; }
.sup-head .mega { margin-bottom: .25em; }
.tiers { display: grid; gap: 1.5rem; padding: 1rem 0 3.5rem; }
.tier {
  position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.2);
  padding: 1.8rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; overflow: visible;
}
.tier ul { padding-left: 1.1rem; margin: 0 0 1.2rem; flex: 1; }
.tier li { line-height: 1.5; }
.tier li::marker { content: "✦  "; color: var(--accent); }
.tier-price { font-size: clamp(3.4rem, 10vw, 5.2rem); color: var(--accent); margin: 0; }
.tier-name { font: 800 1.45rem/1.15 var(--font-display); font-stretch: 85%; margin: 0 0 .85rem; }
.tier-btns { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-top: auto; padding-top: .5rem; }
.tier-btns .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.15; padding: .85em 1em; box-shadow: 3px 3px 0 var(--ink); }
.tier-btns .btn-ghost { box-shadow: none; }
.tier > mark.confirm, .tier > p { margin: 0 0 .75rem; }
.tier-hot { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); --accent: var(--brand-ink); transform: rotate(-1deg); box-shadow: 0 24px 48px rgba(44,36,28,.18), 0 0 60px var(--glow); }
.tier-hot .btn-primary { --b: var(--brand-ink); color: #fffdf8; box-shadow: 3px 3px 0 rgba(44,36,28,.25); }
.tier-hot .btn-ghost { color: var(--brand-ink); border-color: var(--brand-ink); }
.ribbon {
  position: absolute; top: -.9rem; right: 1.2rem; margin: 0; background: var(--ink); color: var(--bg-2);
  font: 800 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: .6em .9em; border-radius: 99px; transform: rotate(3deg); z-index: 2;
}
.t10 { border-style: dashed; }
.t10 .chip { position: absolute; top: 1.2rem; right: 1.2rem; margin: 0; color: #8a5a00; }
.sup-more { text-align: center; color: var(--muted); padding: 1.5rem 0 2rem; clear: both; position: relative; z-index: 1; }
.hub-cta { display: grid; gap: 1.5rem; align-items: center; padding: 2rem 0 4rem; }
.hub-art { aspect-ratio: 1; max-width: 16rem; border-radius: 50%; transform: rotate(-6deg); object-fit: contain; background: transparent; }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 1.35rem; padding-bottom: 4rem; }
  .t3 { margin-top: 1.5rem; }
  .t5 { margin-top: 0; padding-block: 2rem; }
  .t10 { margin-top: 1.5rem; }
  .hub-cta { grid-template-columns: auto 1fr; gap: 3rem; }
}

/* ---- doujins ---- */
/* Keep hero subhead on one line (global .hero-sub is max-width: 34ch). */
.doujins .hero-sub {
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 500px) {
  .doujins .hero-sub { white-space: normal; }
}
/* Rows: [land | port] ×2, then [land alone]. Land 16:9 drives row height; port stretches + cover. */
.covers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0 3rem;
}
.cover-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
.covers img.ph-cover {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--r);
}
/* Bust base .ph-cover 3/4 and img.ph height:100% for landscapes */
.covers img.ph-cover.ph-cover-land {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.covers img.ph-cover:not(.ph-cover-land) {
  aspect-ratio: 3 / 4;
}
.covers img.ph-cover.cover-solo {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}
@media (min-width: 700px) {
  .cover-row {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 1.35rem 1.5rem;
    align-items: stretch;
  }
  .cover-row img.ph-cover.ph-cover-land {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  /* No 3/4 on paired portraits — fill land-driven row height */
  .cover-row img.ph-cover:not(.ph-cover-land) {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    align-self: stretch;
  }
}
/* ---- 404 ---- */
.nf { padding-top: 3rem; padding-bottom: 5rem; position: relative; }
.nf-code { font-size: clamp(9rem, 40vw, 24rem); color: var(--accent); opacity: .16; margin: 0 0 -.25em; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem var(--pad) 2.5rem; max-width: var(--max); margin-inline: auto; overflow: hidden; }
.foot-mega { font-size: clamp(4rem, 19vw, 15rem); color: #efe6da; text-shadow: 0 1px 0 var(--line); margin: 0 0 1.5rem; white-space: nowrap; }
.foot-cols { display: grid; gap: 1rem; }
.foot-line { font-weight: 600; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.foot-links a { color: var(--ink); font-weight: 600; }
.foot-sis { font: .72rem var(--mono); color: var(--muted); }
.foot-legal { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; }
.foot-legal a { color: var(--muted); }
.legal { max-width: 46rem; padding: 3rem 0 3rem; }
.legal h2 { font: 800 1.6rem/1.1 var(--font-display); font-stretch: 85%; margin: 2rem 0 .6rem; color: var(--accent); }
.legal .mega { font-size: clamp(3rem, 10vw, 6.5rem); margin-bottom: .3em; }
.foot-small { font-size: .82rem; color: var(--muted); margin-top: 1.5rem; }
.draft-flag { font: .72rem var(--mono); color: #8a5a00; text-transform: uppercase; letter-spacing: .1em; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 1fr 1.4fr; align-items: center; } .foot-links { justify-content: flex-end; } }

/* ---- 18+ gate ---- */
.gate-toggle { position: absolute; opacity: 0; pointer-events: none; }
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--pad);
  background: rgba(250, 246, 240, .88); backdrop-filter: blur(14px) saturate(.85); -webkit-backdrop-filter: blur(14px) saturate(.85);
}
.age-ok .gate, .gate-toggle:checked ~ .gate { display: none; }
html:not(.age-ok) body:not(:has(.gate-toggle:checked)) { overflow: hidden; }
.gate-panel {
  width: min(40rem, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.5);
  padding: clamp(1.6rem, 5vw, 3rem); position: relative; box-shadow: 0 30px 80px rgba(44,36,28,.18), 0 0 80px var(--glow);
}
.gate-panel::before { content: "18+"; position: absolute; top: -1.6rem; right: 1.5rem; font: 800 2.6rem/1 var(--font-display); font-stretch: 75%; background: var(--brand); color: var(--brand-ink); padding: .35em .45em; border-radius: 14px; transform: rotate(8deg); }
.gate-h { font-size: clamp(2.8rem, 10vw, 5rem); margin-bottom: .45em; }
.gate-body { font-size: 1.1rem; color: #5c5248; line-height: 1.55; }
.gate-panel .actions { margin-top: 1.4rem; gap: .75rem; }
.gate-panel .btn { line-height: 1.15; }
.gate-small { font: .78rem var(--mono); color: var(--muted); margin: 0; }

/* ---- reveal-on-scroll (only when JS on + motion allowed) ---- */
.reveal-on [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1); }
.reveal-on [data-reveal].in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ---- character cards (Neural Dive) ---- */
.gchars { padding: 1rem 0 3rem; }
.gchars .section-h { margin-bottom: 1.2rem; }
.gchar-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.gchar {
  margin: 0; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  box-shadow: 0 8px 24px rgba(44,36,28,.06);
}
.gchar img { width: 100%; height: auto; display: block; aspect-ratio: 5 / 3; object-fit: cover; }
@media (min-width: 700px) { .gchar-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .gchar-grid { grid-template-columns: repeat(3, 1fr); } }

/* Four SFW screenshots: first spans full width */
.gshots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gshots .ph-shot:first-child { grid-column: 1 / -1; }
.gshots img.ph-shot { aspect-ratio: 16 / 9; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(44,36,28,.08); }

/* Legacy / Nano-control card tone */
.gcard.g-nc .gcard-title { color: var(--accent); }
.gcard.legacy { opacity: .98; }
.gcard.legacy .tag { color: var(--muted); }

/* Footer brand mark */
.foot-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.foot-brand img { width: 3rem; height: 3rem; border-radius: 12px; }
.gate-logo { width: 4.5rem; height: 4.5rem; margin: 0 0 0.6rem; border-radius: 16px; }

/* Soft primary when accent is dog-orange brand strip buttons already handle ink */
.btn-primary { color: #fffdf8; }
.strip .btn-primary { color: var(--brand); }
.tier-hot .btn-primary { color: #fffdf8; }

/* ---- claim / Get your key CTA ---- */
.site-head nav a.nav-claim {
  background: var(--accent);
  color: #fffdf8 !important;
  border-color: var(--accent);
  font-weight: 700;
}
.site-head nav a.nav-claim:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf8 !important;
}
.btn-claim { letter-spacing: .01em; }
.claim-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}
.claim-logo {
  width: 6rem; height: 6rem; margin: 0 auto 1.25rem;
  object-fit: contain; background: transparent;
}
.claim-hero .hero-sub { margin-inline: auto; max-width: 36ch; }
.claim-actions { justify-content: center; margin: 1.5rem 0 1rem; flex-wrap: wrap; gap: .75rem; display: flex; }
.claim-steps { max-width: 36rem; margin: 0 auto; padding: 1rem 0 4rem; }
.claim-ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.claim-ol li { margin-bottom: .65rem; }
body.claim .mega { font-size: clamp(2.4rem, 8vw, 5.5rem); }
