/* =========================================================================
 * assets/css/style.css — FURI MONSTER
 *
 * Design direction (brief §16): premium designer-toy, cinematic fantasy,
 * a dark cosmic world with energetic emotional accents. Generous whitespace,
 * large typography, polished transitions.
 *
 * Fonts are SYSTEM STACKS ONLY — no webfont request. That means zero network
 * dependency, no flash of unstyled text, and it still renders correctly when
 * the site is opened from the filesystem. If FURI MONSTER licenses a
 * commercial typeface later, override --font-display / --font-sans below.
 *
 * Colour tokens come from the brand palette; each guardian adds its own
 * --accent / --accent-deep / --accent-glow via an inline style attribute, so
 * one component set serves all six characters.
 * ========================================================================= */

/* ---------- 1. tokens ---------------------------------------------------- */
:root {
  /* cosmic ground */
  --ink-900: #05060B;
  --ink-800: #080A12;
  --ink-700: #0C0F1A;
  --ink-600: #121624;
  --ink-500: #1A1F31;
  --line:    #232838;
  --line-soft: #1A1F2E;

  /* type */
  --paper:  #FDFEFD;
  --muted:  #9BA2B8;
  --muted-2: #6E7688;

  /* brand DNA */
  --fur-teal:   #6AC9CD;
  --fur-pink:   #F389A0;
  --fur-green:  #AAD387;
  --fur-purple: #C099C6;
  --fur-gold:   #FEC82A;
  --neon-pink:  #FF6BD4;
  --neon-mint:  #73FFC7;
  --neon-violet:#C491FF;
  --neon-lime:  #A3FF61;
  --ink-outline:#020202;

  /* default accent, overridden per guardian */
  --accent: var(--fur-gold);
  --accent-deep: #B88A08;
  --accent-glow: #FFE880;

  /* type stacks */
  --font-display: Georgia, 'Songti SC', 'Times New Roman', 'Noto Serif SC', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC',
               'Hiragino Sans GB', 'Microsoft JhengHei', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* rhythm */
  --wrap: 1240px;
  --wrap-narrow: 760px;
  --gutter: clamp(18px, 4vw, 44px);
  --section-y: clamp(64px, 9vw, 132px);
  --gap: clamp(14px, 2vw, 22px);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .55s;

  --outline-rule: 3px; /* the house outline weight, for UI echoes of the art */
}

/* ---------- 2. reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must beat any display rule. Without this, a component
 * that sets display (the assistant panel is flex, the cart badge is inline-grid)
 * silently overrides the browser's [hidden] { display: none }, so toggling
 * .hidden = true changes the attribute and nothing on screen. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
/* Character artwork is emitted with explicit width/height attributes from the
 * art module. Without `height: auto` a `max-width: 100%` clamp shrinks the
 * width but leaves the height, distorting the figure — and inside a grid the
 * fixed intrinsic width also blows the column out. */
img, svg { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* a faint starfield + nebula, pure CSS, no image request */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 720px at 18% -8%, rgba(196,145,255,.11), transparent 62%),
    radial-gradient(920px 620px at 88% 6%, rgba(106,201,205,.10), transparent 60%),
    radial-gradient(1000px 800px at 50% 108%, rgba(254,200,42,.07), transparent 62%),
    var(--ink-900);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(253,254,253,.55), transparent),
    radial-gradient(1.2px 1.2px at 68% 12%, rgba(253,254,253,.42), transparent),
    radial-gradient(1.6px 1.6px at 34% 68%, rgba(253,254,253,.38), transparent),
    radial-gradient(1.1px 1.1px at 82% 54%, rgba(253,254,253,.45), transparent),
    radial-gradient(1.3px 1.3px at 52% 88%, rgba(253,254,253,.32), transparent),
    radial-gradient(1.1px 1.1px at 6% 78%, rgba(253,254,253,.30), transparent);
}

/* ---------- 3. locale switching ---------------------------------------- *
 * All five languages are present in the built HTML. Each translatable run is
 * a .t element carrying data-l, and only the active locale is displayed. That
 * gives crawlable text in every language, instant switching with no reload,
 * and no duplicated pages. i18n.js just sets <html data-locale>.
 *
 * Google Translate is available as a separate, opt-in control for any
 * language beyond these five — see assets/js/translate.js.
 * ---------------------------------------------------------------------- */
html[data-locale='en'] .t:not([data-l='en']),
html[data-locale='zh-Hant'] .t:not([data-l='zh-Hant']),
html[data-locale='zh-Hans'] .t:not([data-l='zh-Hans']),
html[data-locale='th'] .t:not([data-l='th']),
html[data-locale='ja'] .t:not([data-l='ja']) { display: none !important; }
.t-inline { display: inline; }
.t-block { display: block; }

/* Per-locale font stacks. One variable per script, so a Japanese page is not
 * rendered with Traditional Chinese glyph shapes (they differ for many
 * characters) and Thai gets a Thai face rather than a Latin fallback. */
html[data-locale='zh-Hant'] {
  --font-sans: system-ui, -apple-system, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
  --font-display: Georgia, 'Songti TC', 'Songti SC', 'Noto Serif TC', 'Times New Roman', serif;
}
html[data-locale='zh-Hans'] {
  --font-sans: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-display: Georgia, 'Songti SC', 'Noto Serif SC', 'Times New Roman', serif;
}
html[data-locale='ja'] {
  --font-sans: system-ui, -apple-system, 'Segoe UI', 'Yu Gothic UI', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', 'Noto Sans JP', sans-serif;
  --font-display: Georgia, 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', 'Times New Roman', serif;
}
html[data-locale='th'] {
  --font-sans: system-ui, -apple-system, 'Segoe UI', 'Leelawadee UI', 'Noto Sans Thai', 'Thonburi', Tahoma, sans-serif;
  --font-display: Georgia, 'Noto Serif Thai', 'Leelawadee UI', 'Thonburi', serif;
}
/* Thai stacks vowels and tone marks above and below the baseline, so it needs
 * more leading than Latin, and its display sizes must not clip. */
html[data-locale='th'] body { line-height: 1.9; }
html[data-locale='th'] .display,
html[data-locale='th'] .h2,
html[data-locale='th'] .hero-tagline,
html[data-locale='th'] .scene-title,
html[data-locale='th'] .step-title { line-height: 1.45; }
html[data-locale='th'] .btn,
html[data-locale='th'] .eyebrow,
html[data-locale='th'] .mono { letter-spacing: 0; }
/* Japanese and Chinese do not want Latin-style letter-spacing on labels. */
html[data-locale='ja'] .eyebrow,
html[data-locale='ja'] .mono { letter-spacing: .12em; }

/* ---------- 4. layout --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 20px; }

/* ---------- 4. typography ---------------------------------------------- */.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--accent); display: block;
}
.eyebrow--plain::before { display: none; }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6.6vw, 86px);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.h3 { font-size: clamp(19px, 2vw, 25px); line-height: 1.2; }
.lede { font-size: clamp(17px, 1.35vw, 21px); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.small { font-size: 14.5px; }
.tiny { font-size: 12.5px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.balance { text-wrap: balance; }

/* ---------- 5. buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--ink-600); color: var(--paper);
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn--primary {
  background: var(--accent); color: var(--ink-900); border-color: var(--accent);
  font-weight: 700;
}
.btn--primary:hover { background: var(--accent-glow); border-color: var(--accent-glow); color: var(--ink-900); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn--lg { padding: 17px 36px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); gap: 14px; }

/* ---------- 6. badges / status ---------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--muted); background: var(--ink-700);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--concept { color: var(--fur-purple); border-color: rgba(192,153,198,.4); }
.badge--soon { color: var(--neon-mint); border-color: rgba(115,255,199,.35); }
.badge--live { color: var(--fur-green); border-color: rgba(170,211,135,.4); }
.badge--placeholder { color: var(--fur-gold); border-color: rgba(254,200,42,.4); }
.badge--now { color: var(--neon-mint); border-color: rgba(115,255,199,.4); }

.notice {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--muted); font-size: 13.5px;
  background: rgba(18,22,36,.6);
}
.notice strong { color: var(--accent); font-weight: 600; }

/* ---------- 7. header / nav ------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5,6,11,.92), rgba(5,6,11,.62));
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(5,6,11,.95); }
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px; padding-block: 10px;
  /* the row must contain its children: without min-width:0 the inline nav
   * refuses to shrink and pushes the tools out of the container */
  min-width: 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-size: 19px; letter-spacing: .16em; text-transform: uppercase;
}
.brand-sub {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .3em;
  color: var(--muted); margin-top: 4px; text-transform: uppercase;
}
.nav-inline { display: none; margin-left: auto; min-width: 0; }
.nav-inline ul { display: flex; align-items: center; gap: 13px; flex-wrap: nowrap; min-width: 0; }
.nav-inline a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  padding-block: 6px; border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.nav-inline a:hover, .nav-inline a[aria-current='page'] { color: var(--paper); border-bottom-color: var(--accent); }
/* the tools are pinned: they hold the language switcher and the Translate
 * button, which must never be squeezed to nothing or pushed off-screen */
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.header-tools > * { flex: 0 0 auto; }
.nav-inline + .header-tools { margin-left: 0; }

/* ---- the "More" menu: the five business pages ------------------------- */
.nav-more { position: relative; }
.nav-more-panel {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 232px;
  display: none; flex-direction: column; padding: 8px; z-index: 75;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(8,10,18,.98); backdrop-filter: blur(12px);
  box-shadow: 0 20px 56px rgba(0,0,0,.62);
}
.nav-more-panel.is-open { display: flex; }
.nav-more-panel a {
  display: block; padding: 10px 12px; border-radius: 9px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-more-panel a:hover, .nav-more-panel a[aria-current='page'] { color: var(--paper); background: var(--ink-600); }
.more-btn[data-active='true'] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; }
.lang-switch button {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  padding: 6px 10px; border-radius: var(--radius-pill); color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang-switch button[aria-pressed='true'] { background: var(--accent); color: var(--ink-900); font-weight: 700; }
.lang-switch button:hover { color: var(--paper); }
.lang-switch--drawer { flex-wrap: wrap; border-radius: var(--radius); padding: 6px; gap: 4px; }
.lang-switch--drawer button { padding: 9px 13px; font-size: 11px; }
/* the footer spells every language out, so it cannot be missed */
.lang-switch--footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border-radius: var(--radius); padding: 6px; }
.lang-switch--footer button { padding: 9px 6px; font-size: 10.5px; text-align: center; }
.footer-lang .gt-btn { margin-top: 12px; width: 100%; justify-content: center; }
.gt-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.gt-globe { flex: 0 0 auto; }

/* Five language buttons plus the brand mark exceed a phone's width. Below
 * 900px the header switcher is removed and the footer carries the full,
 * spelled-out list instead — otherwise the header forces the whole page wider
 * than the viewport and every section overflows. */
@media (max-width: 900px) {
  .header-tools .lang-switch { display: none; }
  .brand-name { font-size: 16px; letter-spacing: .1em; }
  .brand-sub { display: none; }
  .gt-btn .gt-label { display: none; }
}

.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-link {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.social-link:hover { color: var(--ink-900); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-link svg { width: 17px; height: 17px; }
.social-link--sm { width: 32px; height: 32px; }
.social-link--sm svg { width: 14px; height: 14px; }

.menu-btn { display: inline-flex; align-items: center; gap: 9px; }
.menu-btn .bars { display: grid; gap: 4px; }
.menu-btn .bars i { display: block; width: 17px; height: 1.5px; background: currentColor; }

/* full-screen drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80; background: rgba(5,6,11,.98);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-inner { padding: 92px var(--gutter) 56px; max-width: var(--wrap); margin-inline: auto; }
.drawer-close {
  position: absolute; top: 20px; right: var(--gutter);
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: 17px;
}
.drawer-nav { display: grid; gap: 2px; margin-bottom: 34px; }
.drawer-nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 2px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-size: clamp(22px, 5vw, 34px);
}
.drawer-nav a span.num {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--accent);
}
.drawer-nav a:hover { color: var(--accent); }
.drawer-foot { display: grid; gap: 22px; }

/* ---------- 8. hero --------------------------------------------------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-block: 118px 56px; position: relative; overflow: hidden;
}
.hero-inner { width: 100%; }
.hero-planet {
  position: absolute; left: 50%; top: 52%; translate: -50% -50%;
  width: min(122vw, 1080px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(254,200,42,.20), rgba(196,145,255,.13) 42%, transparent 68%);
  filter: blur(6px); pointer-events: none;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(31px, 6.2vw, 78px);
  line-height: 1.05; max-width: 20ch; margin-bottom: 16px;
}
.hero-tagline em { font-style: italic; color: var(--fur-gold); }
.hero-brand {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .42em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 20px;
}
.hero-position { max-width: 46ch; color: var(--muted); margin-bottom: 30px; }
.hero-strip {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 14px); margin-top: clamp(34px, 5vw, 60px);
  align-items: end;
}
.hero-strip a { display: block; min-width: 0; transition: transform .4s var(--ease), opacity .4s var(--ease); opacity: .82; }
.hero-strip a svg { width: 100%; height: auto; }
.hero-strip a:hover { transform: translateY(-8px); opacity: 1; }
.hero-scroll {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.hero-scroll i { display: block; width: 1px; height: 30px; background: linear-gradient(var(--accent), transparent); }

/* ---------- 9. story scroll ------------------------------------------- */
.scene {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px;
  align-items: center; padding-block: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--line-soft);
}
.scene-step {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em;
  color: var(--accent); margin-bottom: 10px;
}
.scene-title { font-family: var(--font-display); font-size: clamp(24px, 3.1vw, 40px); margin-bottom: 12px; }
.scene-art { display: grid; place-items: center; }

/* ---------- 9b. story scroll, text-only -------------------------------- *
 * The five FURI PLANET lore beats carry no illustration: nothing in the
 * supplied library depicts the planet before the collapse, the extraction, the
 * collapse or the mission, and standing a character portrait in for one of
 * those beats would misrepresent the story rather than illustrate it. So the
 * dashed frame is gone and the beat is set as an editorial split — numeral and
 * title on the left, the beat itself on the right — which is what fills the
 * width a picture used to fill. */
.scene--text {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 2vw, 26px);
  align-items: start;
}
.scene--text .scene-step {
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1; letter-spacing: 0; color: var(--accent); margin-bottom: 12px;
}
.scene--text .scene-title { margin-bottom: 0; }
.scene--text .scene-body { max-width: 64ch; }
.scene--text .scene-body p { margin: 0; }
@media (min-width: 860px) {
  /* the base .scene rule turns this into two columns at this width; with the
   * picture gone the second column takes the text instead of the art */
  .scene--text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.scene-line {
  text-align: center; font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 42px); padding-block: clamp(28px, 5vw, 56px);
}

/* ---------- 10. character cards / grid -------------------------------- */
.char-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.char-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18,22,36,.9), rgba(8,10,18,.9));
  padding: clamp(16px, 2.4vw, 26px); overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease);
  display: flex; flex-direction: column;
}
.char-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px 220px at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.char-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.char-card:hover::after { opacity: 1; }
.char-card-art {
  display: grid; place-items: center; margin-bottom: 12px;
  /* The six sprites are square canvases holding characters of very different
   * proportions, and the display size is normalised per character so they read
   * at equal visual weight. That means the rendered height differs from card to
   * card — so the art sits in a fixed-height box and is centred inside it, and
   * every card's name lands on the same line. */
  min-height: clamp(150px, 17vw, 220px);
}
.char-card-art img { max-width: 100%; max-height: clamp(150px, 17vw, 220px); width: auto; height: auto; object-fit: contain; }
.char-card-num {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--muted);
}
.char-card-name { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 29px); }
.char-card-name small { display: block; font-family: var(--font-sans); font-size: 13px; color: var(--muted); margin-top: 5px; letter-spacing: .04em; }
.char-card-symbol {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin: 12px 0 10px;
}
.char-card-line { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.char-card-foot { margin-top: auto; }

/* ---------- 11. philosophy -------------------------------------------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px;
  padding: 22px 4px; border-top: 1px solid var(--line-soft);
  transition: background .4s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step-n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--accent); padding-top: 6px;
}
.step-title { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 33px); }
.step-text { color: var(--muted); margin: 6px 0 0; }
.philosophy-out {
  margin-top: 28px; font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 37px); line-height: 1.2;
}
.philosophy-out em { color: var(--accent); font-style: italic; }

/* ---------- 12. emotion lab ------------------------------------------- */
.emotion-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.emotion-btn {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 10px; text-align: center; background: var(--ink-700);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.emotion-btn:hover { transform: translateY(-4px); border-color: var(--accent); }
.emotion-btn[aria-pressed='true'] { border-color: var(--accent); background: var(--ink-600); }
.emotion-btn .emo { font-size: 30px; line-height: 1; display: block; margin-bottom: 9px; }
.emotion-btn .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.emotion-btn[aria-pressed='true'] .lbl { color: var(--paper); }
.emotion-result {
  margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 30px); background: linear-gradient(180deg, rgba(18,22,36,.9), rgba(8,10,18,.85));
  display: grid; gap: 20px; grid-template-columns: minmax(0,1fr);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.emotion-result.is-shown { opacity: 1; transform: none; }
.emotion-result-art { display: grid; place-items: center; }
.emotion-result-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.emotion-result-name { font-family: var(--font-display); font-size: clamp(27px, 3.6vw, 44px); margin: 6px 0 10px; }
.emotion-result-line { font-family: var(--font-display); font-style: italic; font-size: clamp(17px, 2vw, 23px); color: var(--accent); }

/* ---------- 13. story / lab / collection cards ----------------------- */
.cards { display: grid; gap: var(--gap); grid-template-columns: minmax(0,1fr); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18,22,36,.86), rgba(8,10,18,.86));
  padding: clamp(18px, 2.4vw, 26px); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.card-media {
  aspect-ratio: 16 / 10; border-radius: var(--radius); margin-bottom: 16px;
  border: 1px dashed var(--line); display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, rgba(26,31,49,.5) 0 12px, rgba(18,22,36,.5) 12px 24px);
  color: var(--muted); text-align: center; padding: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

/* The six written episodes have no artwork: the scripts exist, the animation
 * and the comics do not. So the media slot is a script-cover plate carrying the
 * episode number and the real status, instead of a dashed box claiming art is
 * being produced for a picture nobody has started. */
.card-media--ep {
  display: grid; align-content: center; justify-items: start;
  gap: 8px; padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--accent) 18%, transparent),
      rgba(8, 10, 18, .92) 62%);
}
.ep-n {
  font-family: var(--font-display); line-height: 1;
  font-size: clamp(34px, 4.4vw, 52px); color: var(--accent);
}
.ep-status {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.card-title { font-family: var(--font-display); font-size: clamp(19px, 2.1vw, 26px); margin-bottom: 8px; }
.card-text { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-char { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-char i { width: 9px; height: 9px; border-radius: 50%; display: block; }

/* ---------- 14. collections / collab / licensing --------------------- */
.tile {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: rgba(12,15,26,.7);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.tile-title { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.tile-text { color: var(--muted); font-size: 14.5px; margin: 0; }

.lic-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0,1fr); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; padding: 7px 13px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--muted);
}

/* ---------- 15. character detail page -------------------------------- */
.char-hero {
  padding-block: 128px 40px;
  background: radial-gradient(680px 420px at 78% 22%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%);
}
.char-hero-grid { display: grid; gap: clamp(22px, 4vw, 46px); grid-template-columns: minmax(0,1fr); align-items: center; }
.char-hero-art { display: grid; place-items: center; }
.char-hero-name { font-family: var(--font-display); font-size: clamp(40px, 7.5vw, 92px); line-height: .98; }
.char-hero-alt { font-size: clamp(15px, 1.6vw, 19px); color: var(--muted); margin-top: 8px; letter-spacing: .2em; }
.char-hero-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.char-hero-tag { font-family: var(--font-display); font-style: italic; font-size: clamp(18px, 2.2vw, 26px); margin: 18px 0 24px; }

.identity { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.identity-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 14px; padding: 15px 18px; background: var(--ink-800); }
.identity-row dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.identity-row dd { margin: 0; font-size: 15.5px; }

.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: grid; gap: 7px; justify-items: center; }
.swatch i { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); display: block; }
.swatch b { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); font-weight: 400; }

.rel-list { display: grid; gap: 12px; }
.rel-item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  display: grid; gap: 10px; grid-template-columns: auto minmax(0,1fr); align-items: start;
  background: rgba(12,15,26,.6);
}
.rel-item .rel-art { width: 54px; }
.rel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rel-name { font-family: var(--font-display); font-size: 18px; }
.rel-type { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 3px 9px; border-radius: var(--radius-pill); }
.rel-text { color: var(--muted); font-size: 14.5px; margin: 0; }

/* relationship map */
.map-wrap { display: grid; gap: 22px; grid-template-columns: minmax(0,1fr); }
.map-svg { width: 100%; height: auto; }
.map-node { cursor: pointer; }
.map-node circle { transition: r .3s var(--ease), opacity .3s var(--ease); }
.map-node:hover circle, .map-node.is-active circle { r: 40; }
.map-edge { transition: opacity .3s var(--ease), stroke-width .3s var(--ease); }
.map-edge.is-dim { opacity: .12; }
.map-card-list { display: grid; gap: 10px; }

.gallery-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0,1fr)); }
.slot {
  aspect-ratio: 4 / 3; border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 14px;
  color: var(--muted); font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, rgba(26,31,49,.42) 0 12px, rgba(18,22,36,.42) 12px 24px);
}
.slot--wide { aspect-ratio: 16 / 9; }

/* FAQ — questions written out as questions, for readers and for answer engines
   that look for a direct, quotable statement */
.faq { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(12,15,26,.6); padding: 16px 18px;
}
.faq-item[open] { background: rgba(12,15,26,.85); }
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--paper);
  font-size: clamp(15px, 1.5vw, 17px); list-style-position: outside;
}
.faq-item summary::marker { color: var(--accent); }
.faq-item p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
.faq-link { margin-top: 10px; }
.faq-link a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- consent panel ------------------------------------------------ *
   Shown only when a feature that needs consent is configured, so most visits
   never see it. */
#fm-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; padding: 0 14px 14px;
}
#fm-consent.is-open { display: block; }
.fm-consent-inner {
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(8,10,18,.97); backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
}
.fm-consent-title { margin: 0 0 6px; font-weight: 600; color: var(--paper); }
.fm-consent-body { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.fm-consent-list { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.fm-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fm-consent-link { color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- on-site assistant -------------------------------------------- */
.fm-asst-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 110;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--accent, #F5C542); color: #10120c;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.fm-asst-panel {
  position: fixed; right: 16px; bottom: 74px; z-index: 110;
  width: min(360px, calc(100vw - 32px)); max-height: min(520px, 70vh);
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(8,10,18,.98); backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px rgba(0,0,0,.6); overflow: hidden;
}
.fm-asst-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fm-asst-close, .fm-cart-close { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.fm-asst-log { padding: 12px 14px; overflow-y: auto; display: grid; gap: 10px; flex: 1; }
.fm-asst-msg { font-size: 14px; line-height: 1.55; padding: 9px 12px; border-radius: var(--radius); max-width: 92%; }
.fm-asst-msg--bot { background: rgba(26,31,49,.6); color: var(--paper); }
.fm-asst-msg--me { background: var(--accent, #F5C542); color: #10120c; justify-self: end; }
.fm-asst-msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fm-asst-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.fm-asst-chip {
  border: 1px solid var(--line); background: none; color: var(--muted);
  border-radius: 999px; padding: 6px 11px; font-size: 12px; cursor: pointer; text-align: left;
}
.fm-asst-chip:hover { border-color: var(--accent); color: var(--paper); }
.fm-asst-form { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.fm-asst-form input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(5,6,11,.8); color: var(--paper); }

/* ---------- cart drawer -------------------------------------------------- *
   The cart works; checkout is not connected, so the button is disabled and
   says so. */
.fm-cart-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 95;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(8,10,18,.96); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.fm-cart-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--accent, #F5C542); color: #10120c; font-size: 10px;
}
#fm-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 115; width: min(360px, 92vw);
  display: flex; flex-direction: column; transform: translateX(102%);
  transition: transform .28s var(--ease);
  border-left: 1px solid var(--line); background: rgba(8,10,18,.99); backdrop-filter: blur(12px);
}
#fm-cart-drawer.is-open { transform: none; }
.fm-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fm-cart-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.fm-cart-empty { color: var(--muted); font-size: 14px; }
.fm-cart-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; font-size: 13px; }
.fm-cart-qty { width: 54px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: rgba(5,6,11,.8); color: var(--paper); }
.fm-cart-rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; }
.fm-cart-foot { border-top: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 10px; }
.fm-cart-sub { display: flex; justify-content: space-between; }
.fm-cart-note { color: var(--muted); font-size: 12px; margin: 0; }
/* when the cart button and the assistant button are both present, stack them */
.fm-cart-btn { bottom: 74px; }

/* the 45 finished comics: portrait 3:4 artwork, Chinese dialogue baked in */
.finished-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.finished-item {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: rgba(12,15,26,.72);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.finished-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.finished-item img { display: block; width: 100%; height: auto; }

/* supplied IP artwork, shown on the same card surface the slots use so a
   character page looks finished whichever of the two it renders */
.gallery-grid--art { align-items: start; }
.art-img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(255,255,255,.05), transparent 62%),
    rgba(12,15,26,.72);
  padding: clamp(10px, 2vw, 18px);
}
/* full-bleed scene art (FURI PLANET, on-stage): landscape frame, no padding,
   cover so the artwork fills the card */
.art-img--scene { aspect-ratio: 4 / 3; object-fit: cover; padding: 0; }

/* ---------- 16. forms ------------------------------------------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--ink-700); color: var(--paper);
  font-family: var(--font-sans); font-size: 15.5px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--ink-600); outline: none; }
.field .err { color: var(--fur-pink); font-size: 13px; min-height: 0; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--accent); }
.form-status { border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px; display: none; }
.form-status.is-ok { display: block; background: rgba(115,255,199,.10); border: 1px solid rgba(115,255,199,.4); color: var(--neon-mint); }
.form-status.is-err { display: block; background: rgba(243,137,160,.10); border: 1px solid rgba(243,137,160,.4); color: var(--fur-pink); }

/* ---------- 17. news / creator / footer ------------------------------ */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-row button {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; padding: 9px 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.filter-row button[aria-pressed='true'] { color: var(--ink-900); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.news-item {
  display: grid; gap: 14px; grid-template-columns: minmax(0,1fr);
  padding: 22px 0; border-top: 1px solid var(--line-soft);
}
.news-date { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--accent); }
.news-title { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 27px); margin: 7px 0; }
.news-text { color: var(--muted); margin: 0; }

.creator-quote {
  font-family: var(--font-display); font-size: clamp(23px, 3.4vw, 44px);
  line-height: 1.16; max-width: 24ch;
}
.creator-portrait {
  aspect-ratio: 3 / 4; border: 1px dashed var(--line); border-radius: var(--radius-lg);
  display: grid; place-items: center; text-align: center; padding: 18px;
  color: var(--muted); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, rgba(26,31,49,.42) 0 12px, rgba(18,22,36,.42) 12px 24px);
}
/* the creator's portrait, or the brand lock-up when no photograph is supplied */
.creator-portrait--photo { padding: 0; border-style: solid; object-fit: cover; width: 100%; }
.creator-portrait--brand {
  border-style: solid;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.06), transparent 60%),
    rgba(12,15,26,.72);
}
.creator-portrait--brand img { width: 100%; height: auto; }

/* the six guardians as a row, for pages that carry no character art otherwise */
.char-strip {
  display: grid; gap: clamp(10px, 1.6vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.char-strip-item {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: 12px 8px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
    rgba(12,15,26,.72);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.char-strip-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.char-strip-item img { width: 100%; max-width: 132px; height: auto; }
.char-strip-name {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--paper);
}

.site-footer { border-top: 1px solid var(--line); margin-top: var(--section-y); padding-block: clamp(44px, 6vw, 76px) 34px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0,1fr); }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 15px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--paper); }
.footer-brandline { font-family: var(--font-display); font-size: 21px; margin-bottom: 10px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 13px;
}
.newsletter-form { display: flex; gap: 9px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 190px; min-width: 0; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--ink-700); color: var(--paper); font-size: 15px;
}

/* ---------- 18. page header band ------------------------------------- */
.page-head { padding-block: 124px 26px; }
.page-head .display { max-width: 22ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- 19. reveal animation ------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------- 20. breakpoints ------------------------------------------ */
@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-item { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (min-width: 860px) {
  .scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 46px; }
  .scene--flip .scene-text { order: 2; }
  .scene--flip .scene-art { order: 1; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .char-hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .emotion-result { grid-template-columns: 240px minmax(0, 1fr); align-items: center; }
  .lic-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
  .nav-inline { display: block; }
  .menu-btn .label { display: inline; }
  .char-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .btn { padding: 13px 20px; font-size: 11px; }
  .hero-strip { gap: 2px; }
  .emotion-buttons { gap: 8px; }
  .emotion-btn { padding: 14px 6px; }
  .emotion-btn .emo { font-size: 25px; }
}

/* ---------- 20. Google Translate (opt-in, machine translation) --------- *
 * The five authored languages never use this. When a visitor does use it, the
 * page must say so — otherwise machine output reads as published copy.
 * ---------------------------------------------------------------------- */
.gt-btn { padding: 10px 12px; gap: 7px; }
.gt-btn svg { width: 15px; height: 15px; }

#fm-gt-bar {
  position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 70;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(254,200,42,.45);
  background: rgba(5,6,11,.95); backdrop-filter: blur(10px);
  color: var(--muted); font-size: 13px; max-width: min(92vw, 720px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
#fm-gt-bar button { flex: 0 0 auto; }

/* Google injects a top banner and a hover tooltip; both fight the fixed
 * header, so suppress them and keep the page from being pushed down. */
.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip,
.goog-tooltip:hover, #goog-gt-tt .goog-tooltip { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.skiptranslate > iframe { height: 0 !important; }

/* the widget's own select, restyled to sit inside the panel */
#fm-google-translate .goog-te-gadget { font-family: var(--font-sans) !important; color: var(--muted) !important; font-size: 14px !important; }
#fm-google-translate .goog-te-gadget-simple {
  background: var(--ink-700) !important; border: 1px solid var(--line) !important;
  border-radius: 11px !important; padding: 10px 14px !important;
}
#fm-google-translate .goog-te-gadget-simple .goog-te-menu-value span { color: var(--paper) !important; }
#fm-google-translate .goog-te-gadget-icon { display: none !important; }

/* a responsive row of character figures, used wherever a few are shown
 * side by side (the licensing lockup, the 404 page) */
.art-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(2px, 1.4vw, 16px); width: 100%; }
.art-row-item { flex: 1 1 0; min-width: 0; }
.art-row-item svg { width: 100%; height: auto; }

/* ---------- 21. social QR cards + game embed ------------------------- */
.qr-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qr-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(14px, 2vw, 20px); text-align: center;
  background: linear-gradient(180deg, rgba(18,22,36,.86), rgba(8,10,18,.86));
  display: flex; flex-direction: column; align-items: center;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.qr-card:hover { transform: translateY(-4px); border-color: var(--accent); }
/* QR codes need real contrast and a quiet zone to scan off a screen, so each
 * sits on its own white card rather than directly on the dark theme. */
.qr-img {
  width: 100%; max-width: 178px; height: auto; margin: 0 auto 14px;
  border-radius: 10px; background: #fff; padding: 7px; display: block;
}
.qr-name { font-family: var(--font-display); font-size: 19px; margin-bottom: 5px; }
.qr-handle { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--accent); margin: 0 0 12px; word-break: break-word; }

/* The cabinet is a fixed 16:9 canvas, so the frame holds that ratio and the
 * game letterboxes itself inside it. */
.game-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: #04050a;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.game-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.game-boot {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  text-align: center; padding: 24px; background: radial-gradient(circle at 50% 40%, #1d4c52, #08191c);
}
.game-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.fm-sfx { display: block; margin: 0 0 12px auto; min-height: 44px; }
/* The cabinet used to be hidden in portrait because the in-canvas joystick
 * was too small. The game now draws finger-sized controls, so the frame stays
 * and is given enough height for the cabinet plus that bar. */
.game-portrait-note { display: none; }
@media (orientation: portrait) and (max-width: 900px) {
  .game-frame {
    aspect-ratio: auto;
    height: min(78dvh, 720px);
    min-height: 480px;
  }
}
@media (min-width: 860px) { .qr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 22. the four-panel comic library -------------------------- */
.comic-filter { margin-bottom: 18px; }
.comic-filter .filter-row { margin-bottom: 8px; }
.filter-btn[aria-pressed='true'] {
  color: var(--ink-900); background: var(--accent); border-color: var(--accent); font-weight: 700;
}
.filter-btn:hover { color: var(--paper); }
.comic-count {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.comic-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comic-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(13px, 1.8vw, 18px); background: linear-gradient(180deg, rgba(18,22,36,.86), rgba(8,10,18,.86));
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.comic-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.comic-card.is-hidden { display: none; }
.comic-card-top { display: flex; align-items: center; gap: 10px; }
.comic-card-art { flex: 0 0 auto; width: 52px; }
.comic-card-art img { width: 100%; height: auto; }
.comic-card-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.comic-card-char {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.comic-card-num { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.comic-card-title { font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.2; }
.comic-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  padding: 3px 8px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.comic-card-teaser {
  color: var(--muted); font-size: 13.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* the story page: four panels, two up on desktop */
.comic-strip { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.comic-panel {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(14px, 2vw, 20px); background: rgba(12,15,26,.72);
}
.comic-panel-n {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
/* the frame the illustration will occupy: aspect-locked so the page does not
   reflow when the artwork arrives */
.comic-slot {
  aspect-ratio: 4 / 3; border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 12px;
  color: var(--muted); font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, rgba(26,31,49,.42) 0 12px, rgba(18,22,36,.42) 12px 24px);
}
/* once real panel art exists the slot is replaced by the image, locked to the
   same 4:3 frame the slot reserved so the page never reflows */
.comic-art {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,15,26,.72);
}
.comic-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the guardian's official art standing in for the panel illustration: square
   artwork in the 4:3 frame, so contain rather than crop */
.comic-art--official { display: grid; place-items: center; background: rgba(12,15,26,.72); }
.comic-art--official img { object-fit: contain; padding: clamp(6px, 1.4vw, 14px); }
.comic-scene { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; font-style: italic; }
.comic-lines { display: grid; gap: 8px; }
.comic-line {
  margin: 0; font-size: 15px; line-height: 1.55;
  padding-left: 11px; border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.comic-who {
  display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); font-weight: 400; margin-bottom: 2px;
}
.comic-text { color: var(--paper); }
.comic-stage { color: var(--muted); font-size: 12.5px; font-style: italic; margin-left: 5px; }
.comic-nav { width: 100%; }
.comic-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.comic-about-art { display: grid; place-items: center; }
.comic-about-art img { max-width: 190px; height: auto; }

@media (min-width: 620px) { .comic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) {
  .comic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .comic-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) { .comic-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- 23. reduced motion + print ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .char-card:hover, .card:hover, .tile:hover,
  .social-link:hover, .emotion-btn:hover, .hero-strip a:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .drawer, .btn, .hero-strip, .share-row { display: none !important; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .slot, .card-media, .creator-portrait { border-color: #999; background: none; }
}

/* ---------- shop framework ---------------------------------------------- *
   Real product cards; the add button is disabled until a checkout provider is
   configured, so nobody can start an order that cannot be fulfilled. */
.shop-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.shop-card {
  display: grid; gap: 8px; align-content: start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; background: rgba(12,15,26,.72);
}
.shop-img { width: 100%; height: auto; border-radius: var(--radius); }
.shop-cat { margin: 0; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.shop-name { margin: 0; font-size: 17px; }
.shop-price { margin: 0; font-weight: 600; }
.shop-note { margin: 0; color: var(--muted); font-size: 12.5px; }

/* ---------- 24. the games lobby ---------------------------------------- *
   Cards come from D.games through {{GAME_CARDS}}. A playable game is a link;
   one still in development is not a link at all, so nothing invites a click
   that would go nowhere. */
.game-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.game-card {
  display: grid; gap: 16px; align-content: start;
  padding: clamp(15px, 1.8vw, 20px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18,22,36,.9), rgba(8,10,18,.9));
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
a.game-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.game-card--planned { opacity: .74; }
.game-card-art {
  display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.07), rgba(0,0,0,.55));
}
.game-card-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.game-card-body { display: grid; gap: 7px; }
.game-card-status {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.game-card--planned .game-card-status { color: var(--muted); }
.game-card-name { font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); line-height: 1.15; }
.game-card-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.game-card-score {
  margin-top: 3px; padding-top: 9px; border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- 25. Guess the Guardian ------------------------------------- *
   The reveal is a blur filter the script drives frame by frame. The filter is
   the game, not decoration, so reduced-motion keeps it and only the timings in
   section 23 are shortened. */
.gg { max-width: 720px; margin: 0 auto; }
.gg-panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(18px, 2.6vw, 32px);
  background: linear-gradient(180deg, rgba(18,22,36,.92), rgba(8,10,18,.92));
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.gg-panel--start, .gg-panel--end { text-align: center; }
.gg-rules {
  display: grid; gap: 12px; text-align: left;
  margin: 0 0 26px; padding-left: 22px;
  color: var(--muted); font-size: 14px; line-height: 1.6;
}
.gg-rules li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 12px; }
.gg-cta { display: grid; gap: 12px; justify-items: center; }

.gg-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.gg-hud-cell {
  display: grid; gap: 4px; padding: 10px 8px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(8,10,18,.6);
}
.gg-hud-k {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.gg-hud-v { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 24px); line-height: 1.05; }
.gg-hud-of { margin-left: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.gg-frame {
  position: relative; aspect-ratio: 1 / 1; max-width: 400px; margin: 0 auto;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 42%, #1b2233, #05060c);
}
.gg-img { width: 100%; height: 100%; object-fit: contain; display: block; will-change: filter; }
.gg-answer {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 2px; justify-items: center;
  padding: 30px 12px 12px;
  background: linear-gradient(180deg, rgba(4,5,10,0), rgba(4,5,10,.9) 45%);
}
.gg-answer-k {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.gg-answer-n { font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 26px); }

.gg-track {
  height: 5px; max-width: 400px; margin: 16px auto 10px; overflow: hidden;
  border-radius: 999px; background: rgba(255,255,255,.09);
}
.gg-bar {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--fur-teal), var(--neon-mint));
  transition: width .12s linear;
}
.gg-readout {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 9px; margin: 0;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.gg-points { font-family: var(--font-display); font-size: 22px; letter-spacing: 0; color: var(--paper); }
.gg-tier { color: var(--accent); }

.gg-q {
  margin: 24px 0 14px; text-align: center;
  font-family: var(--font-display); font-size: clamp(17px, 2vw, 21px);
}
.gg-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gg-opt {
  position: relative; display: grid; gap: 3px; align-content: center;
  min-height: 64px; padding: 13px 42px 13px 15px; text-align: left;
  touch-action: manipulation;
  font: inherit; color: var(--paper); cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(12,15,26,.8);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.gg-opt:hover:not([disabled]) { border-color: var(--accent); transform: translateY(-2px); }
.gg-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gg-opt-key {
  position: absolute; top: 9px; right: 12px;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}
.gg-opt-name { font-family: var(--font-display); font-size: 17px; line-height: 1.2; }
.gg-opt-en {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.gg-opt[disabled] { cursor: default; }
.gg-opt.is-right { border-color: var(--neon-mint); background: rgba(115,255,199,.10); }
.gg-opt.is-right .gg-opt-name { color: var(--neon-mint); }
.gg-opt.is-wrong { border-color: rgba(255,120,120,.7); background: rgba(255,90,90,.08); }

.gg-msg {
  min-height: 20px; margin: 16px 0 0; text-align: center;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.gg-msg.is-ok { color: var(--neon-mint); }
.gg-msg.is-no { color: #ff9b9b; }
.gg-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: center; margin-top: 14px;
}

.gg-final {
  margin: 8px 0 24px; color: var(--accent);
  font-family: var(--font-display); font-size: clamp(52px, 10vw, 86px); line-height: 1;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .gg-final {
    background: linear-gradient(180deg, var(--paper), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
.gg-final-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 400px; margin: 0 auto; }
.gg-final-cell {
  display: grid; gap: 4px; padding: 12px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
}

@media (max-width: 540px) {
  .gg-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gg-options { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 26. sticker packs ------------------------------------------ *
   The board is a faint dot grid on purpose: it is the one thing that tells a
   visitor the PNGs have no background before they download one. */
.pack { margin-bottom: clamp(44px, 7vw, 84px); }
.pack:last-child { margin-bottom: 0; }
.pack-head { display: grid; gap: 20px; margin-bottom: 26px; }
.pack-head-text { min-width: 0; }
.pack-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pack-count {
  margin: 0; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.pack-note {
  margin: 22px 0 0; padding: 14px 18px;
  border-left: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(12,15,26,.6); color: var(--muted); font-size: 13.5px; line-height: 1.65;
}

.sticker-board {
  display: grid; gap: clamp(14px, 2vw, 22px);
  /* two or three columns only — six tiles divide evenly into both, so a pack
   * never ends on a row with one lonely sticker in it */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(16px, 2.4vw, 30px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background-color: #0a0c14;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 14px 14px;
}
.sticker-tile {
  display: grid; gap: 12px; align-content: start;
  padding: 16px 14px 14px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18,22,36,.72), rgba(8,10,18,.72));
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
/* the peel — the sticker lifts, tilts and drops a shadow, the way a real one
   behaves once you get a fingernail under the edge */
.sticker-tile:hover, .sticker-tile:focus-visible {
  transform: translateY(-6px) rotate(-1.6deg);
  border-color: var(--accent);
  box-shadow: 0 18px 34px rgba(0,0,0,.5);
}
.sticker-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sticker-peel {
  display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45));
  transition: filter .35s var(--ease);
}
.sticker-tile:hover .sticker-peel { filter: drop-shadow(0 12px 20px rgba(0,0,0,.62)); }
.sticker-peel img { display: block; width: 100%; height: auto; }
.sticker-meta { display: grid; gap: 2px; }
.sticker-name { font-family: var(--font-display); font-size: 16px; line-height: 1.2; }
.sticker-kind {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.sticker-dl {
  padding-top: 10px; border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}

/* the licence lists: the site removes list markers globally, so these get
   their own */
.list-plain { display: grid; gap: 9px; }
.list-plain li { position: relative; padding-left: 18px; line-height: 1.55; }
.list-plain li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* per-app instructions */
.chat-steps { display: grid; gap: 10px; }
.chat-step {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(12,15,26,.7); overflow: hidden;
}
.chat-step > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.chat-step > summary::-webkit-details-marker { display: none; }
.chat-step > summary::after { content: '+'; font-size: 16px; line-height: 1; color: var(--muted); }
.chat-step[open] > summary::after { content: '\2013'; }
.chat-step > p {
  margin: 0; padding: 0 18px 17px;
  color: var(--muted); font-size: 14px; line-height: 1.65;
}

@media (min-width: 780px) {
  .pack-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
@media (min-width: 640px) {
  .sticker-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The line-art pack is black on transparent, which is invisible on the dark
   board. It gets a paper surface instead — the artwork decides this, not taste. */
.pack--light .sticker-board {
  background-color: #f5f2e9;
  background-image: radial-gradient(rgba(0,0,0,.075) 1px, transparent 1px);
  border-color: rgba(0,0,0,.16);
}
.pack--light .sticker-tile {
  background: linear-gradient(180deg, #fdfcf8, #ece7da);
  border-color: rgba(0,0,0,.14);
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
}
.pack--light .sticker-tile:hover,
.pack--light .sticker-tile:focus-visible { border-color: var(--accent); }
.pack--light .sticker-peel { filter: drop-shadow(0 3px 7px rgba(0,0,0,.22)); }
.pack--light .sticker-tile:hover .sticker-peel { filter: drop-shadow(0 10px 18px rgba(0,0,0,.3)); }
.pack--light .sticker-name { color: #14161f; }
.pack--light .sticker-kind { color: #5b5e6a; }
.pack--light .sticker-dl { color: #1d3f6e; border-top-color: rgba(0,0,0,.18); }

/* ---------- 27. FURI MATCH --------------------------------------------- *
 * The board is a plain CSS grid of square cells; the tile is an absolutely
 * positioned layer inside its cell so a cascade can fade and shrink tiles
 * without the grid reflowing.
 *
 * touch-action is none on the board itself: a match needs swipes in every
 * direction, and a vertical drag was previously thrown away so the page could
 * scroll. Scroll by touching outside the board. */
.mm-board {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  width: min(100%, 430px); margin: 0 auto; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 38%, #1a2030, #06070d);
  touch-action: none;
}
.mm-board:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mm-cell { position: relative; aspect-ratio: 1 / 1; }
.mm-tile {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--tc, #2a3040) 45%, transparent);
  background: color-mix(in srgb, var(--tc, #222) 17%, rgba(8,10,18,.92));
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), opacity .16s linear;
}
.mm-tile img { display: block; width: 86%; height: 86%; object-fit: contain; }
/* the sentinel used while a cleared tile is falling: nothing to draw */
.mm-tile[data-t='empty'] { opacity: 0; }
.mm-tile.is-cursor { box-shadow: 0 0 0 2px var(--accent) inset; }
.mm-tile.is-sel {
  z-index: 2; transform: scale(1.09);
  box-shadow: 0 0 0 2px var(--paper) inset, 0 6px 18px rgba(0,0,0,.55);
}
.mm-tile.is-clear { opacity: .3; transform: scale(.8); }
@media (prefers-reduced-motion: reduce) {
  .mm-tile.is-sel { transform: none; }
  .mm-tile.is-clear { opacity: .15; transform: none; }
}

/* ---------- 28. Emotion Match ------------------------------------------ *
 * A real card flip: two faces back to back inside a preserve-3d wrapper. The
 * back is the header's crown, drawn inline, so a face-down card costs no
 * image request and 36 cards stay cheap. */
.me-board {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
  width: min(100%, 430px); margin: 0 auto; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 38%, #1a2030, #06070d);
}
.me-card {
  position: relative; aspect-ratio: 1 / 1; padding: 0;
  border: 0; background: none; cursor: pointer; perspective: 620px;
  touch-action: manipulation;
}
.me-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.me-card.is-matched { cursor: default; }
.me-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .42s var(--ease);
}
.me-card.is-up .me-inner,
.me-card.is-matched .me-inner { transform: rotateY(180deg); }
.me-back, .me-front {
  position: absolute; inset: 0; display: grid; place-items: center;
  overflow: hidden; border-radius: 9px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.me-back {
  /* One uniform back for all 36 cards. It must NOT be tinted with the tile
   * colour: --tc comes from the hidden face, so a coloured back would tell the
   * player which guardian is underneath and the game would solve itself. */
  color: var(--fur-gold);
  background: rgba(10,13,22,.95); border: 1px solid var(--line);
}
.me-back svg { width: 46%; height: 46%; display: block; }
.me-front {
  transform: rotateY(180deg);
  background: color-mix(in srgb, var(--tc, #222) 20%, rgba(8,10,18,.95));
  border: 1px solid color-mix(in srgb, var(--tc, #2a3040) 55%, transparent);
}
.me-front img { display: block; width: 88%; height: 88%; object-fit: contain; }
.me-card.is-matched .me-front {
  border-color: var(--neon-mint);
  box-shadow: 0 0 0 1px var(--neon-mint) inset;
}
@media (prefers-reduced-motion: reduce) { .me-inner { transition: none; } }
