/* =========================================================================
 * CARACTER.com — stylesheet
 *
 * Design intent: clean white-ground B2B IP platform, inspired by the airy
 * spacing and black/neutral typography of modern character-commerce sites
 * (e.g. POP MART layout language) while keeping CARACTER's cyan accent and
 * licensing-first product story. Not a brand clone.
 *
 * Order: tokens, base, five-language visibility, layout, header, buttons,
 * badges, cards, tables, forms, sections, footer, responsive, motion/print,
 * creative-technology layer, site tools, play.
 * ========================================================================= */

/* ---------- 1. tokens ---------------------------------------------------- */
:root {
  --ink-950: #0B0C10;
  --ink-900: #12141A;
  --ink-800: #1A1D26;
  --ink-700: #2A2F3A;
  --ink-600: #3A4150;

  --paper: #FFFFFF;
  --paper-2: #F7F8FA;
  --paper-3: #EEF0F4;
  --surface: #FFFFFF;
  --muted: #5B6475;
  --muted-2: #8A93A3;

  /* accent — restrained cyan→indigo, not a competitor red */
  --cyan: #1AA8B8;
  --cyan-soft: #3BC4D2;
  --blue: #3D6AE8;
  --violet: #6B5CE6;
  --glow: rgba(26, 168, 184, .18);
  --grad-accent: linear-gradient(100deg, #1AA8B8 0%, #3D6AE8 58%, #6B5CE6 100%);
  --grad-text: linear-gradient(180deg, #0B0C10 0%, #0B0C10 58%, #1AA8B8 100%);

  --amber: #C9851E;
  --amber-soft: #E0A84A;
  --teal: #2AABB0;
  --line: rgba(15, 18, 28, .10);
  --line-2: rgba(15, 18, 28, .06);

  --ok: #1F9A5B;
  --no: #D94A5C;

  --font-display: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  --font-serif: Georgia, "Times New Roman", serif;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --gap: clamp(16px, 2vw, 26px);
  --wrap: 1220px;
  --gutter: clamp(18px, 4vw, 44px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --accent: var(--cyan);
  --accent-soft: var(--cyan-soft);
  --accent-2: var(--blue);
  --shadow-card: 0 10px 28px rgba(15, 18, 28, .06);
  --shadow-glow: 0 10px 28px rgba(26, 168, 184, .18);
  --text: var(--ink-900);
}

/* ---------- 2. base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -12%, rgba(26, 168, 184, .05), transparent 68%),
    radial-gradient(760px 460px at 8% 4%, rgba(61, 106, 232, .04), transparent 66%);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--ink-950);
}
.display { font-size: clamp(28px, 7.2vw, 76px); overflow-wrap: anywhere; word-break: break-word; }
.h2 { font-size: clamp(24px, 4.4vw, 46px); overflow-wrap: anywhere; word-break: break-word; }
.h3 { font-size: clamp(19px, 2.8vw, 29px); letter-spacing: -.02em; overflow-wrap: anywhere; }
.balance { text-wrap: balance; }
.lede { font-size: clamp(15px, 1.35vw, 18.5px); color: var(--muted); line-height: 1.65; max-width: 68ch; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.small { font-size: 14.5px; }
.mono { font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); min-width: 0; box-sizing: border-box; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.spec-k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px;
}
.spec-v { font-size: 17px; font-weight: 600; color: var(--ink-900); }
code { font-family: var(--font-mono); font-size: .9em; color: var(--blue); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. five-language visibility ---------------------------------- */
.t { display: none; }
[data-locale="en"] .t[data-l="en"] { display: inline; }
[data-locale="zh-Hant"] .t[data-l="zh-Hant"] { display: inline; }
[data-locale="zh-Hans"] .t[data-l="zh-Hans"] { display: inline; }
[data-locale="th"] .t[data-l="th"] { display: inline; }
[data-locale="ja"] .t[data-l="ja"] { display: inline; }

[data-locale="th"] body, [data-locale="th"] .lede { line-height: 1.8; }
[data-locale="ja"] body { line-height: 1.75; }
[data-locale="th"] .display, [data-locale="th"] .h2,
[data-locale="ja"] .display, [data-locale="ja"] .h2 { letter-spacing: 0; line-height: 1.22; }

/* ---------- 4. layout ---------------------------------------------------- */
.section { padding-block: clamp(52px, 7vw, 100px); }
.section--tight { padding-block: clamp(34px, 4.5vw, 64px); }
.section--line { border-top: 1px solid var(--line-2); }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.gap-lg { gap: clamp(22px, 3vw, 40px); }

.page-head {
  padding-block: clamp(46px, 7vw, 96px) clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line-2);
  background:
    radial-gradient(700px 320px at 82% 0%, color-mix(in srgb, var(--a, var(--accent)) 10%, transparent), transparent 70%),
    var(--paper-2);
}
.page-head .lede { margin-top: 16px; }
.q-lede {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(17px, 2vw, 24px); color: var(--ink-700);
  margin: 18px 0 10px; max-width: 52ch;
}
.crumbs {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.crumbs a:hover { color: var(--accent); }
.crumb-sep { opacity: .5; }

/* ---------- 5. header (POP MART–like clean chrome) ---------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  /* Fully opaque — frosted 97% let hero art show through on scroll (mobile QA). */
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
  isolation: isolate;
}
.header-in {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px;
  min-width: 0;
  width: 100%;
}
/* Logo image only — never shrink under the nav (that caused CATRACTER∩EXPLORE overlap). */
.brand {
  display: inline-flex; align-items: center;
  flex: 0 0 auto;
  position: relative; z-index: 2;
  max-width: 168px;
  overflow: hidden; /* clip any asset padding; never paint over nav */
  margin-right: 4px;
}
.brand-logo {
  display: block; height: 26px; width: auto; max-width: 160px;
  object-fit: contain; object-position: left center;
  /* Prefer retina wordmark when available */
}
.mark { width: 30px; height: 30px; flex: 0 0 auto; }
.mark--img { display: block; width: 30px; height: 30px; object-fit: contain; }
.brand-t { display: none !important; } /* legacy text mark — do not show beside logo */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.fbrand .brand-logo { height: 34px; max-width: 200px; }
.nav {
  min-width: 0; flex: 1 1 auto;
  overflow: hidden; /* clip links rather than bleed under logo/tools */
}
.nav ul {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 0; flex-wrap: nowrap;
  padding: 0; border: 0; border-radius: 0; background: transparent;
}
.nav a {
  display: block; padding: 10px 10px; border-radius: 0;
  font-size: 11.5px; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-800); white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav a:hover { color: var(--accent); background: transparent; }
.nav a[aria-current="page"] {
  color: var(--ink-950);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.tools {
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 auto; margin-left: auto; min-width: 0;
}
.header-cta { max-width: 160px; }

.lang { display: inline-flex; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper); }
.lang button {
  background: none; border: 0; cursor: pointer;
  padding: 4px 7px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
  color: var(--muted); transition: background .2s var(--ease), color .2s var(--ease);
}
.lang button:hover { color: var(--ink-900); }
.lang button[aria-pressed="true"] { background: var(--ink-950); color: #fff; font-weight: 700; }
.lang--header { flex: 0 0 auto; }
.lang--footer { border-color: var(--line); background: transparent; }
/* Desktop keeps MENU for Cases / Play / util pages so the bar stays calm */
.menu-btn { display: inline-flex; }

/* drawer — full-screen panel above floats; scrollable; safe-area aware */
.drawer-host { position: relative; z-index: 200; }
.drawer {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(15, 18, 28, .48);
  padding: 0;
  -webkit-overflow-scrolling: touch;
}
.drawer.is-open { display: block; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--paper);
  box-shadow: -18px 0 48px rgba(15, 18, 28, .18);
  padding:
    max(14px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; flex: 0 0 auto;
}
.drawer-t { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.drawer-lang {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  justify-content: flex-start; margin-bottom: 16px; flex: 0 0 auto;
}
.drawer-lang .lang {
  flex-wrap: wrap;
  max-width: 100%;
  align-self: flex-start;
}
.drawer-nav { flex: 1 1 auto; min-height: 0; }
.drawer-nav ul { display: grid; gap: 6px; }
.drawer-nav a {
  display: block; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper-2);
  font-size: 15px; color: var(--ink-900);
}
.drawer-nav a:hover { border-color: var(--accent); color: var(--accent); background: var(--paper); }
.drawer-cta { display: block; text-align: center; margin-top: 16px; flex: 0 0 auto; }
html.is-locked { overflow: hidden; touch-action: none; }
/* Hide floating chrome while menu is open so links stay tappable */
html.is-locked .ca-float-dock,
html.is-locked .st-launch,
html.is-locked .st-chat { display: none !important; visibility: hidden; }

/* ---------- 6. buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-900);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--ink-900); color: var(--ink-950); }
.btn--primary {
  background: var(--ink-950); border-color: var(--ink-950); color: #fff; font-weight: 700;
  box-shadow: none;
}
.btn--primary:hover {
  background: var(--ink-800); border-color: var(--ink-800); color: #fff;
  box-shadow: 0 10px 24px rgba(15, 18, 28, .16);
}
.btn--sm { padding: 9px 15px; font-size: 10px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 7. badges ---------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap;
  background: var(--paper-2);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--open { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge--app { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.badge--first { color: var(--muted); }

/* ---------- 8. cards ----------------------------------------------------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: var(--shadow-card);
}
.card--ok { border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.card--ok .h3 { color: var(--ok); }
.card--no { border-color: color-mix(in srgb, var(--no) 30%, var(--line)); }
.card--no .h3 { color: var(--no); }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

.gcard {
  display: grid; gap: 8px; align-content: start;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden;
}
.gcard::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--a, var(--accent)); opacity: .9;
}
.gcard:hover { transform: translateY(-4px); border-color: var(--a, var(--accent)); box-shadow: 0 16px 36px rgba(15, 18, 28, .08); }
.gcard-n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--a, var(--accent)); }
.gcard-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -.02em; color: var(--ink-950); }
.gcard-q { font-family: var(--font-serif); font-style: italic; font-size: 14.5px; color: var(--ink-700); }
.gcard-b { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.gcard-go { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--a, var(--accent)); margin-top: 6px; }

.ccard {
  display: grid; gap: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.ccard:hover { transform: translateY(-4px); border-color: var(--a, var(--accent)); }
.ccard-art {
  display: block; aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 42%,
    color-mix(in srgb, var(--a, var(--accent)) 12%, #fff), var(--paper-2) 72%);
}
.ccard-art img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.ccard-body { display: grid; gap: 3px; padding: 14px 16px 18px; }
.ccard-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink-950); }
.ccard-role { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--a, var(--accent)); }
.ccard-line { color: var(--muted); font-size: 12.5px; line-height: 1.55; font-style: italic; }

.ipcard {
  display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
  gap: 18px; align-items: center; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.ipcard:hover { border-color: var(--a, var(--accent)); transform: translateY(-3px); }
.ipcard-art {
  display: block; aspect-ratio: 1 / 1; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 45%,
    color-mix(in srgb, var(--a, var(--accent)) 14%, #fff), var(--paper-2) 74%);
}
.ipcard-art img { width: 100%; height: 100%; object-fit: contain; }
.ipcard-body { display: grid; gap: 5px; }
.ipcard-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; color: var(--ink-950); }
.ipcard-cn { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--a, var(--accent)); }
.ipcard-prop { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.scard {
  display: grid; gap: 9px; align-content: start;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.scard:hover { transform: translateY(-4px); border-color: var(--a, var(--teal)); }
.scard-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 1.9vw, 22px); color: var(--ink-950); }
.scard-del { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--a, var(--teal)); }
.scard-body { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.scard-go { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--a, var(--teal)); margin-top: 6px; }

.tcard { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; }
.tcard-t { font-size: 17px; margin-bottom: 8px; color: var(--ink-950); }
.tcard p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.minicard {
  display: grid; justify-items: center; gap: 8px;
  padding: 14px 10px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-size: 13px;
  box-shadow: var(--shadow-card);
  transition: border-color .25s var(--ease);
}
.minicard:hover { border-color: var(--a, var(--accent)); }
.minicard img { width: 72px; height: 72px; object-fit: contain; }
.minicard--text { grid-auto-flow: row; padding: 18px 14px; }
.minicard-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--a, var(--accent)); }

/* ---------- 9. route panels --------------------------------------------- */
.routes { display: grid; gap: var(--gap); }
.route {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 2.6vw, 32px);
}
.route-claim { font-size: clamp(22px, 2.6vw, 34px); margin-bottom: 18px; color: var(--ink-950); }
.route-steps { display: grid; gap: 10px; margin-bottom: 18px; }
.route-steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.rs-n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--a, var(--accent)) 55%, transparent);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--a, var(--accent));
}
.rs-t { color: var(--ink-900); }
.route-body { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; }
.route-meta { display: grid; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.route-meta dt { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.route-meta dd { font-size: 14px; color: var(--ink-900); }

/* ---------- 10. char hero ----------------------------------------------- */
.char-hero { display: grid; gap: clamp(22px, 3vw, 44px); align-items: center; }
.char-hero-art {
  border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 45%,
    color-mix(in srgb, var(--a, var(--accent)) 14%, #fff), var(--paper-2) 76%);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1; display: grid; place-items: center; max-width: 420px;
}
.char-hero-art img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.char-line {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(17px, 2vw, 23px); color: var(--ink-700); margin: 14px 0 12px;
}
.char-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.char-specs { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.spec { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }

/* ---------- 11. tables --------------------------------------------------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl thead th {
  background: var(--paper-2);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.tbl tbody tr:hover { background: var(--paper-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td b { color: var(--ink-950); }

/* ---------- 12. lists --------------------------------------------------- */
.tick li, .never li, .disclose li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.tick li::before {
  content: ''; position: absolute; left: 4px; top: .52em;
  width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.never li::before {
  content: '×'; position: absolute; left: 2px; top: -.05em;
  color: var(--no); font-size: 17px; font-weight: 700;
}
.disclose li::before {
  content: ''; position: absolute; left: 5px; top: .58em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

/* ---------- 13. notice / bands ------------------------------------------ */
.notice {
  border: 1px solid var(--line); border-left: 2px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--amber) 6%, #fff);
  padding: 16px 20px; font-size: 13.5px; color: var(--muted); line-height: 1.65;
}
.notice--ai { border-left-color: var(--teal); background: color-mix(in srgb, var(--teal) 6%, #fff); }
.notice strong { color: var(--ink-950); }

.cta-band {
  display: grid; gap: 18px; align-items: center;
  margin-top: clamp(28px, 4vw, 48px); padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 8%, #fff), var(--paper-2) 62%);
}
.cta-band .eyebrow { margin-bottom: 8px; }

/* ---------- 14. forms --------------------------------------------------- */
.form { display: grid; gap: 16px; max-width: 720px; }
.form-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--paper); color: var(--ink-900);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field .is-bad, .field input.is-bad, .field textarea.is-bad, .field select.is-bad { border-color: var(--no); }
.field-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.field-consent input { width: auto; margin-top: 3px; }
.form-status { font-size: 13.5px; line-height: 1.6; }
.form-status.is-err { color: var(--no); }
.form-status.is-ok { color: var(--ok); }
.form-status a { color: var(--blue); text-decoration: underline; word-break: break-all; }
.form-note { font-size: 12.5px; color: var(--muted-2); line-height: 1.6; }

/* ---------- 15. footer -------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 80px);
  padding-block: clamp(36px, 5vw, 64px) 26px;
  background: var(--paper-2);
}
.footer-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.fbrand-t { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: .14em; margin-top: 12px; color: var(--ink-950); }
.fbrand-s { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.fbrand-c { margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; }
.fbrand-c a:hover { color: var(--accent); }
.fcol h3 {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 12px; font-weight: 500;
}
.fcol ul { display: grid; gap: 8px; }
.fcol a { font-size: 13.5px; color: var(--muted); }
.fcol a:hover { color: var(--ink-950); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted-2);
}
.fnote { margin-top: 10px; max-width: 76ch; line-height: 1.6; }

/* ---------- 16. reveal -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 17. responsive ---------------------------------------------- */
/* Wide desktop: full primary nav; Translate is icon-only to save width */
@media (min-width: 1281px) {
  .header-in { gap: 16px; }
  .nav { padding-right: 8px; }
  .st-translate--header .st-trans-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  .st-translate--header .st-trans-btn {
    width: 34px; padding: 0; justify-content: center;
  }
}

/* Mid-wide: drop Supply / How; langs move into MENU to free the tools row */
@media (max-width: 1280px) {
  .nav-item--mid { display: none; }
  .lang--header,
  .site-header .tools > .lang { display: none !important; }
  .nav a { padding: 10px 9px; font-size: 11px; letter-spacing: .05em; }
  .st-translate--header .st-trans-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  .st-translate--header .st-trans-btn {
    width: 34px; padding: 0; justify-content: center;
  }
}

/* Compact / tablet / phone: logo + search + MENU only */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .lang--header,
  .site-header .tools > .lang,
  .st-translate--header { display: none !important; }
  .site-header { overflow: hidden; }
  .site-header .wrap { overflow: hidden; }
  .header-in { gap: 10px; min-height: 56px; }
  .brand-logo { height: 22px; max-width: min(52vw, 150px); }
  .brand { max-width: min(58vw, 160px); }
  .tools { gap: 6px; }
  .drawer-panel { width: 100%; border-radius: 0; box-shadow: none; }
}

/* Phone: tighter logo + tap targets */
@media (max-width: 430px) {
  .header-in { gap: 8px; min-height: 52px; }
  .brand { max-width: min(62vw, 148px); }
  .brand-logo { height: 20px; max-width: min(58vw, 140px); }
  .tools { gap: 5px; }
  .menu-btn { padding: 9px 12px; }
  .st-icon { width: 36px; height: 36px; }
}
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .char-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 960px) {
  .grid-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-chars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-studio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-mini { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .char-hero { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  .grid-chars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 619px) {
  .grid-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipcard { grid-template-columns: minmax(0, 92px) minmax(0, 1fr); }
  :root { --gutter: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .page-head { padding-block: 36px 22px; }
  .page-head .display, .page-head h1 { max-width: 100%; }
  .form { max-width: 100%; width: 100%; }
  .field input, .field select, .field textarea { font-size: 16px; /* avoid iOS zoom */ }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .cta-band { padding: 18px; }
  .hero-pill { max-width: 100%; white-space: normal; text-align: left; line-height: 1.4; }
  .st-launch {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .ca-float-dock {
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 64px));
    gap: 8px;
    pointer-events: none;
  }
  .ca-float-dock > * { pointer-events: auto; }
  .st-launch {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  /* Keep floats off portal 04 / contact intro / collection CTAs */
  main { padding-bottom: max(148px, calc(env(safe-area-inset-bottom, 0px) + 132px)); }
  .portals, .portal-grid, .play-grid, .contact-intro, .form, .cta-band, .page-head .btn-row {
    position: relative;
    z-index: 2;
  }
  .page-head .ipcard--collection {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .page-head .ipcard--collection .ipcard-art {
    width: min(148px, 42vw);
  }
  .page-head .ipcard--collection .btn-row .btn,
  .page-head .ipcard--collection .btn-row .badge {
    flex: 0 1 auto;
  }
}

/* ---------- 18. 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, .gcard:hover, .ccard:hover, .ipcard:hover, .scard:hover, .portal:hover, .btn--accent:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .drawer, .btn, .lang { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .card, .gcard, .ccard, .scard, .route, .tbl-wrap { border-color: #999; background: none; box-shadow: none; }
}

/* =========================================================================
 * Creative layer + hero (light)
 * ========================================================================= */
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 168, 184, .35), transparent);
  pointer-events: none;
}

.btn--primary,
.btn--primary:hover {
  background: var(--ink-950);
  border-color: var(--ink-950);
  color: #fff;
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--ink-800);
  border-color: var(--ink-800);
  box-shadow: 0 10px 24px rgba(15, 18, 28, .16);
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.hero {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(56px, 8vw, 112px) clamp(44px, 6vw, 84px);
  border-bottom: 1px solid var(--line-2);
  background:
    radial-gradient(900px 520px at 50% -14%, rgba(26, 168, 184, .08), transparent 70%),
    radial-gradient(760px 460px at 50% 6%, rgba(61, 106, 232, .05), transparent 72%),
    var(--paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 18, 28, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 18, 28, .035) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 70%);
}
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; margin-bottom: 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 6%, #fff); color: var(--cyan);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
}
.hero-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan-soft); }
.hero h1 { color: var(--ink-950); max-width: 16ch; margin: 0 auto 22px; letter-spacing: -.035em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
.hero .lede { margin-inline: auto; max-width: 60ch; }
.hero .btn-row { justify-content: center; margin-top: 30px; }
.hero-visual { position: relative; margin-top: clamp(36px, 5vw, 62px); width: min(540px, 100%); }
.hero-visual .glow {
  position: absolute; left: 4%; right: 4%; bottom: -12%; height: 48%;
  background: radial-gradient(closest-side, rgba(26, 168, 184, .18), transparent 76%);
  filter: blur(22px); pointer-events: none;
}
.hero-visual img {
  position: relative; display: block; width: 100%; height: auto; max-height: 470px; object-fit: contain;
  border: 0; background: none;
  filter: saturate(1) brightness(1) drop-shadow(0 18px 40px rgba(15, 18, 28, .12));
  -webkit-mask-image: none;
  mask-image: none;
}

.page-head {
  position: relative; overflow: visible;
  background:
    radial-gradient(760px 340px at 84% -12%, color-mix(in srgb, var(--a, var(--accent)) 10%, transparent), transparent 70%),
    var(--paper-2);
}
.page-head .ipcard--collection {
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  align-items: start;
  gap: 18px 22px;
}
.page-head .ipcard--collection .btn-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.page-head .ipcard--collection .ipcard-prop[data-claim-type="example"] {
  max-width: 62ch;
  overflow: visible;
  white-space: normal;
}

.gcard::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad-accent); opacity: 0;
  transition: opacity .3s var(--ease);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  pointer-events: none;
}
.gcard:hover::after { opacity: .9; }
.gcard:hover, .ipcard:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 16px 36px rgba(15, 18, 28, .08), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary { box-shadow: none; }
  .gcard::after { transition: none; }
}

/* =========================================================================
 * Site tools — search, assistant, translate (light)
 * ========================================================================= */
.st-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.st-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink-800); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.st-icon:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.st-modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(40px, 12vh, 120px) 16px 16px;
  background: rgba(15, 18, 28, .42);
  backdrop-filter: blur(6px);
}
.st-modal-card {
  width: min(680px, 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(15, 18, 28, .18);
  overflow: hidden;
}
.st-modal-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.st-input {
  flex: 1 1 auto; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); color: var(--ink-900);
  font-family: var(--font-body); font-size: 14px;
}
.st-input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.st-results { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.st-results li a {
  display: block; padding: 10px 12px; border-radius: var(--radius);
  text-decoration: none; color: var(--ink-900);
}
.st-results li a:hover, .st-results li a:focus { background: color-mix(in srgb, var(--accent) 8%, #fff); }
.st-r-t { display: block; font-weight: 700; font-size: 14px; }
.st-r-h { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.st-empty { padding: 14px; color: var(--muted); font-size: 13.5px; }

.st-launch {
  position: fixed; right: clamp(14px, 2.4vw, 26px); bottom: clamp(14px, 2.4vw, 26px); z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 17px; border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-900); cursor: pointer;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 14px 36px rgba(15, 18, 28, .12);
}
.st-launch:hover { border-color: var(--accent); color: var(--accent); }
.st-launch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan-soft); }
.st-chat {
  position: fixed; right: clamp(14px, 2.4vw, 26px); bottom: calc(clamp(14px, 2.4vw, 26px) + 56px);
  z-index: 85; width: min(380px, calc(100vw - 28px));
  max-height: min(560px, 72vh); display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(15, 18, 28, .16); overflow: hidden;
}
.st-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.st-chat-head strong { font-size: 13.5px; letter-spacing: .02em; color: var(--ink-950); }
.st-chat-log { padding: 12px 14px; overflow: auto; display: grid; gap: 9px; }
.st-chat-note { margin: 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.5; }
.st-bubble { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.st-bubble--bot { background: var(--paper-2); color: var(--ink-900); justify-self: start; max-width: 92%; }
.st-bubble--me { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--ink-900); justify-self: end; max-width: 92%; }
.st-chat-links { margin: 8px 0 0; padding-left: 16px; }
.st-chat-links a { color: var(--blue); }
.st-chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-2); }

.st-translate { display: inline-flex; align-items: center; flex: 0 0 auto; }
.st-trans-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--muted); cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.st-trans-btn:hover,
.st-trans-btn[aria-expanded="true"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.st-trans-ico { display: inline-flex; }
.st-trans-label { white-space: nowrap; }
.st-translate--drawer { margin-top: 10px; width: 100%; }
.st-translate--drawer .st-trans-btn { width: 100%; justify-content: center; }
.st-translate--footer { margin-left: auto; }

.st-gt-panel {
  position: fixed; inset: 0; z-index: 130;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(15, 18, 28, .42);
  backdrop-filter: blur(6px);
}
.st-gt-panel[hidden] { display: none !important; }
.st-gt-card {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(15, 18, 28, .16);
  padding: 14px 14px 16px;
}
.st-gt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.st-gt-head strong { font-size: 14px; color: var(--ink-950); letter-spacing: .01em; }
.st-gt-note { margin: 0 0 12px; line-height: 1.5; }
#google_translate_element { min-height: 40px; }
#google_translate_element .goog-te-gadget {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  color: var(--ink-800) !important;
}
#google_translate_element .goog-te-combo {
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink-900);
  font-size: 14px;
}
/* Hide Google's default top banner so layout stays intact */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-te-spinner-pos { display: none !important; }
body { top: 0 !important; }
html.translated-ltr body,
html.translated-rtl body { top: 0 !important; }
.skiptranslate iframe { visibility: hidden !important; height: 0 !important; }

/* ---------- WhatsApp / WeChat float ------------------------------------ */
.ca-float-dock {
  position: fixed;
  left: clamp(14px, 2.4vw, 26px);
  bottom: clamp(14px, 2.4vw, 26px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.ca-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 14px 36px rgba(15, 18, 28, .16);
  transition: filter .15s var(--ease), transform .15s var(--ease);
}
.ca-float-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ca-float-btn:focus-visible { outline: 2px solid var(--ink-950); outline-offset: 2px; }
.ca-float-btn svg { flex: 0 0 auto; }
.ca-float-btn--wa { background: #25D366; color: #073b1d; }
.ca-float-btn--wechat { background: #07C160; }
.ca-float-label { white-space: nowrap; }
.ca-float-num { font-variant-numeric: tabular-nums; opacity: .92; }
@media (max-width: 560px) {
  .ca-float-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .ca-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.ca-wechat-modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(15, 18, 28, .42);
  backdrop-filter: blur(6px);
}
.ca-wechat-modal[hidden] { display: none !important; }
.ca-wechat-card {
  width: min(380px, 100%);
  border: 1px solid color-mix(in srgb, #07C160 35%, transparent);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(15, 18, 28, .16);
  padding: 16px 16px 20px;
}
.ca-wechat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.ca-wechat-head strong { font-size: 15px; letter-spacing: .01em; color: var(--ink-950); }
.ca-wechat-hint { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ca-wechat-name { margin: 0 0 12px; color: var(--ink-900); font-size: 13.5px; font-weight: 650; }
.ca-wechat-fig { margin: 0; display: grid; gap: 12px; justify-items: center; text-align: center; }
.ca-wechat-qr {
  display: inline-block; padding: 10px; border-radius: 14px; background: #fff;
  box-shadow: 0 8px 24px rgba(15, 18, 28, .08);
  border: 1px solid var(--line-2);
}
.ca-wechat-qr img { display: block; width: min(220px, 68vw); height: auto; background: #fff; }
.ca-wechat-idk { margin: 0; color: var(--muted-2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ca-wechat-id { margin: 4px 0 10px; font-size: 16px; color: var(--ink-950); }
.ca-wechat-copy { background: #07C160; border-color: transparent; color: #fff; }
.ca-wechat-copy:hover { filter: brightness(1.05); color: #fff; }
html.ca-wechat-open { overflow: hidden; }

@media print {
  .st-modal, .st-chat, .st-launch, .st-translate, .st-gt-panel,
  .ca-float-dock, .ca-wechat-modal { display: none !important; }
}

/* ---------- Play lobby --------------------------------------------------- */
.play-frame-wrap {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
}
.play-frame {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  border: 0;
  background: #F7F8FA;
}
.play-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.play-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 22px; }


/* =========================================================================
 * Doodles-inspired character hero + portal strip (white ground)
 * ========================================================================= */
.btn--accent {
  background: #FFE56A;
  border-color: #FFE56A;
  color: #0B0C10;
  font-weight: 700;
}
.btn--accent:hover {
  background: #FFD93D;
  border-color: #FFD93D;
  color: #0B0C10;
  transform: translateY(-2px);
}

.hero--world {
  text-align: left;
  padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 56px);
  background:
    radial-gradient(720px 420px at 88% 18%, rgba(255, 229, 106, .22), transparent 70%),
    radial-gradient(640px 380px at 12% 0%, rgba(26, 168, 184, .08), transparent 68%),
    var(--paper);
}
.hero--world::before { opacity: .55; }
.hero-grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero--world .hero-pill { margin-bottom: 18px; }
.hero--world h1 {
  max-width: none;
  margin: 0 0 18px;
  text-align: left;
}
.hero--world .lede { margin: 0; max-width: 48ch; }
.hero--world .btn-row { justify-content: flex-start; margin-top: 26px; }
.hero-note { margin-top: 16px; }

.hero-stage {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 42vw, 520px);
  margin-top: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 229, 106, .18), transparent 62%),
    linear-gradient(180deg, #FAFBFD 0%, #F3F5F9 100%);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.hero-stage .glow {
  left: 10%; right: 10%; bottom: -8%; height: 42%;
  background: radial-gradient(closest-side, rgba(255, 229, 106, .35), transparent 78%);
}
.sticker {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 48%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(15, 18, 28, .12));
  user-select: none;
  pointer-events: none;
}
.sticker--prince { width: min(46%, 280px); left: 28%; bottom: 8%; z-index: 5; }
.sticker--pinki { width: min(34%, 220px); left: 6%; bottom: 18%; z-index: 4; transform: rotate(-6deg); }
.sticker--boxo { width: min(30%, 200px); right: 8%; bottom: 16%; z-index: 4; transform: rotate(5deg); }
.sticker--winggo { width: min(26%, 180px); right: 18%; top: 10%; z-index: 3; transform: rotate(-4deg); }
.sticker--fluffu { width: min(22%, 160px); left: 18%; top: 12%; z-index: 2; transform: rotate(8deg); }
.sticker--bubi { width: min(20%, 150px); right: 36%; top: 6%; z-index: 2; transform: rotate(3deg); }

.sticker-rail,
.sticker-rail-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 14px 24px rgba(15, 18, 28, .10));
}
@media (prefers-reduced-motion: reduce) {
  .sticker-rail { display: none; }
  .sticker-rail-fallback { display: block; }
}


.portals { padding-block: clamp(18px, 3vw, 36px) clamp(36px, 5vw, 64px); }
.portal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
.portal {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.portal:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 18px 40px rgba(15, 18, 28, .10);
}
.portal:hover .portal-go { color: var(--accent); transform: translateX(3px); }
.portal:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
}
.portal-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.portal-t {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.02em;
  color: var(--ink-950);
}
.portal-d { color: var(--muted); font-size: 14px; line-height: 1.55; }
.portal-go {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-900);
  transition: color .25s var(--ease), transform .25s var(--ease);
  display: inline-block;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .portal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 620px) and (max-width: 899px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 619px) {
  .hero--world { padding-block: 28px 20px; text-align: left; }
  .hero-copy { max-width: 100%; min-width: 0; }
  .hero--world h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .hero-stage { min-height: 260px; border-radius: 20px; }
  .sticker--prince { width: 42%; left: 29%; }
  .sticker--pinki { width: 32%; }
  .sticker--boxo { width: 28%; }
  .sticker--winggo, .sticker--fluffu, .sticker--bubi { width: 22%; }
  .sticker-rail, .sticker-rail-fallback { object-position: center center; }
  .portal { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal:hover { transform: none; }
  .portal:hover .portal-go { transform: none; }
}

/* ---------- Motion polish (lightweight, B2B) --------------------------- */
/* Entrance uses fill-mode: backwards so hover transforms work after play. */
@keyframes ca-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ca-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ca-glow-breathe {
  0%, 100% { opacity: .55; }
  50%      { opacity: .85; }
}

.hero--world .hero-copy {
  animation: ca-fade-up .65s var(--ease) both;
}
.hero--world .hero-stage {
  animation: ca-fade-in .8s var(--ease) .1s both;
}
.hero-stage .glow {
  animation: ca-glow-breathe 5.5s ease-in-out infinite;
}

.portal {
  animation: ca-fade-up .55s var(--ease) backwards;
}
.portal:nth-child(1) { animation-delay: .06s; }
.portal:nth-child(2) { animation-delay: .14s; }
.portal:nth-child(3) { animation-delay: .22s; }
.portal:nth-child(4) { animation-delay: .3s; }

/* Soft float only on static stickers (not the hero video). Keeps rotate. */
@keyframes ca-float-a {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes ca-float-b {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-4px); }
}
@keyframes ca-float-c {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(-5px); }
}
@keyframes ca-float-d {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-4px); }
}
@keyframes ca-float-e {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(-4px); }
}
@keyframes ca-float-f {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-3px); }
}
.sticker--prince { animation: ca-float-a 6s ease-in-out infinite; }
.sticker--pinki  { animation: ca-float-b 6.8s ease-in-out .4s infinite; }
.sticker--boxo   { animation: ca-float-c 7.2s ease-in-out .8s infinite; }
.sticker--winggo { animation: ca-float-d 7.6s ease-in-out .2s infinite; }
.sticker--fluffu { animation: ca-float-e 6.4s ease-in-out .6s infinite; }
.sticker--bubi   { animation: ca-float-f 7s ease-in-out 1s infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero--world .hero-copy,
  .hero--world .hero-stage,
  .hero-stage .glow,
  .portal,
  .sticker--prince,
  .sticker--pinki,
  .sticker--boxo,
  .sticker--winggo,
  .sticker--fluffu,
  .sticker--bubi {
    animation: none !important;
  }
  .portal { opacity: 1; transform: none; }
  .hero--world .hero-copy,
  .hero--world .hero-stage { opacity: 1; transform: none; }
  .portal:hover .portal-go { transform: none; color: var(--ink-900); }
}

/* Phones: keep entrance; drop continuous float to avoid jank */
@media (max-width: 619px) {
  .sticker--prince,
  .sticker--pinki,
  .sticker--boxo,
  .sticker--winggo,
  .sticker--fluffu,
  .sticker--bubi,
  .hero-stage .glow {
    animation: none;
  }
}


/* ---------- Contact channels / form (mobile-first) --------------------- */
.contact-channels {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 0 0 28px;
}
.contact-card {
  display: grid;
  gap: 4px;
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
a.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(15,18,28,.06);
}
.contact-card-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card-v {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-950);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.contact-card-h {
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.45;
}
.contact-form-block {
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}
.contact-form-block .form { max-width: 640px; }
.contact-desk-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.contact-desk-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px;
}
.contact-desk-list code {
  font-family: var(--font-mono); font-size: 11.5px;
  padding: 3px 8px; border-radius: 999px; background: var(--wash, #f4f5f8);
  color: var(--ink-800);
}
.fbrand-chats {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin-top: 10px; font-size: 12px; color: var(--muted);
  align-items: center;
}
.fbrand-chat { color: var(--ink-800); text-decoration: none; }
a.fbrand-chat:hover { color: var(--accent); }
.fbrand-sep { opacity: .45; }
@media (min-width: 720px) {
  .contact-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .contact-form-block .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 14px; }
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl { min-width: 0 !important; width: 100%; }
}


/* ---------- Mobile QA: floats vs CTAs / collection hero -------------------- */
@media (max-width: 430px) {
  .ca-float-dock {
    bottom: max(78px, calc(env(safe-area-inset-bottom, 0px) + 70px));
  }
  /* Icon-only already; shrink further so portal 04 stays tappable */
  .ca-float-btn { width: 40px; height: 40px; box-shadow: 0 8px 20px rgba(15, 18, 28, .14); }
}
