/* =========================================================
   SẮC VIỆT – CHẠM DI SẢN · Design tokens & components
   Tham chiếu phong cách: paladistudio.com (editorial, serif lớn,
   nền kem giấy dó / đen mực / đỏ son) + bảng màu thương hiệu Sắc Việt.
   ========================================================= */
:root {
  /* màu thương hiệu (từ logo & tài liệu thiết kế) */
  --son: oklch(0.42 0.14 25);        /* đỏ son (theo mockup app) */
  --son-deep: oklch(0.35 0.12 25);
  --son-soft: oklch(0.94 0.03 40);
  --xanh: oklch(0.42 0.07 165);      /* xanh lá đậm: CTA đố vui, tiến độ */
  --xanh-deep: oklch(0.35 0.06 165);
  --card: oklch(0.985 0.008 85);     /* nền thẻ trắng ngà */
  --dong: oklch(0.72 0.13 85);       /* vàng đồng */
  --dong-deep: oklch(0.56 0.11 80);
  --cham: oklch(0.36 0.08 268);      /* chàm */
  --ngoc: oklch(0.55 0.08 175);      /* xanh ngọc */

  /* nền & mực (ấm, ngả theo hue đỏ son) */
  --paper: oklch(0.95 0.017 80);     /* kem giấy dó */
  --paper-2: oklch(0.92 0.025 80);
  --sand: oklch(0.88 0.035 80);
  --ink: oklch(0.24 0.015 50);       /* nâu đen mực */
  --ink-2: oklch(0.29 0.016 50);
  --ink-3: oklch(0.36 0.02 50);
  --muted: oklch(0.45 0.02 50);
  --line: oklch(0.82 0.025 70);
  --on-dark: oklch(0.95 0.015 80);
  --on-dark-muted: oklch(0.78 0.02 80);
  --line-dark: oklch(0.38 0.02 50);

  /* chữ */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --fs-xl: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  --fs-2xl: clamp(2.375rem, 1.4rem + 3.8vw, 4.5rem);

  /* khoảng cách 4pt */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 10px;
  --radius-card: 14px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --shadow: 0 1px 2px oklch(0.3 0.03 50 / 0.08), 0 8px 24px oklch(0.3 0.03 50 / 0.1);

  --z-header: 50; --z-drawer: 60; --z-modal: 80; --z-toast: 90;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
p { margin: 0; text-wrap: pretty; }
em.serif, .serif-it { font-family: var(--font-display); font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 12px 16px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--dong-deep); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.dark {
  background: var(--son-deep); color: var(--on-dark);
  --on-dark-muted: oklch(0.88 0.035 60);
  --line-dark: oklch(0.5 0.09 25);
  --ink-2: oklch(0.31 0.1 25);
}
.dark.ink { background: var(--ink); --on-dark-muted: oklch(0.8 0.02 80); --line-dark: oklch(0.4 0.02 50); --ink-2: oklch(0.29 0.016 50); }
.dark :focus-visible { outline-color: var(--dong); }
.sand { background: var(--sand); }
.paper-2 { background: var(--paper-2); }

.label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--ink-3); max-width: 60ch; }
.dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.dark .muted { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--son); --fg: var(--on-dark); --bd: var(--son);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.12s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.btn:hover { --bg: var(--son-deep); --bd: var(--son-deep); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--on-dark); --bd: var(--ink); }
.dark .btn--ghost, .on-image .btn--ghost { --fg: var(--on-dark); --bd: var(--on-dark); }
.dark .btn--ghost:hover, .on-image .btn--ghost:hover { --bg: var(--on-dark); --fg: var(--ink); }
.btn--gold { --bg: var(--dong); --fg: var(--ink); --bd: var(--dong); }
.btn--gold:hover { --bg: oklch(0.78 0.12 85); --bd: oklch(0.78 0.12 85); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-xs); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--son); text-decoration: none; padding-block: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.dark .link-arrow { color: var(--dong); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; line-height: 1.4;
}
.tag--son { color: var(--son); }
.tag--gold { color: var(--dong-deep); }
.tag--ink { color: var(--ink); }
.tag--solid { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h);
  color: var(--on-dark);
  background: oklch(0.2 0.015 50 / 0);
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.is-solid, body:not(.has-hero) .site-header {
  background: oklch(0.2 0.015 50 / 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); }
.brand span { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.nav { margin-inline: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 12px; text-decoration: none;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--on-dark-muted); transition: color 0.2s var(--ease-out);
  position: relative;
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--dong); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { flex-shrink: 0; }
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .menu-open .nav {
    display: block; position: fixed; inset: var(--header-h) 0 0; z-index: var(--z-drawer);
    background: var(--ink); padding: 24px var(--gutter) 48px; overflow-y: auto;
  }
  .menu-open .nav ul { flex-direction: column; gap: 0; }
  .menu-open .nav a { font-family: var(--font-display); font-size: 2rem; text-transform: none; letter-spacing: 0; padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
  .menu-open .nav a::after { display: none; }
  .menu-open .nav .nav-order { display: inline-flex; margin-top: 32px; }
  .menu-open .site-header { background: var(--ink); }
}
.nav .nav-order { display: none; }
body:not(.has-hero) main { padding-top: var(--header-h); }

/* ---------- Page banner ---------- */
.banner { position: relative; padding-block: clamp(72px, 10vw, 140px) clamp(48px, 6vw, 88px); overflow: hidden; }
.banner h1 { font-size: var(--fs-2xl); max-width: 16ch; }
.banner p { margin-top: 24px; }
.banner .drum { position: absolute; right: -12vw; top: 50%; width: min(70vw, 720px); transform: translateY(-50%); color: var(--dong); opacity: 0.16; pointer-events: none; }
.banner .container { position: relative; }

/* Trống đồng (motif) */
.drum svg { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .drum.spin svg { animation: spin 160s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero slideshow ---------- */
.hero { position: relative; min-height: 100dvh; color: var(--on-dark); background: var(--ink); overflow: hidden; display: grid; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.04); transition: transform 7s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, oklch(0.16 0.02 40 / 0.92) 0%, oklch(0.16 0.02 40 / 0.72) 38%, oklch(0.16 0.02 40 / 0.1) 70%),
    linear-gradient(0deg, oklch(0.16 0.02 40 / 0.7) 0%, transparent 30%);
}
.hero-inner { position: relative; z-index: 2; align-self: end; padding-block: calc(var(--header-h) + 48px) clamp(48px, 8vh, 96px); }
.hero h1 { font-size: clamp(2.75rem, 1.4rem + 5.2vw, 6rem); line-height: 1; max-width: 12ch; }
.hero h1 .accent { display: block; font-style: italic; color: var(--dong); }
.hero .sub { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); color: var(--dong); margin-top: 20px; }
.hero .desc { margin-top: 16px; max-width: 46ch; color: var(--on-dark-muted); }
.hero .btn-row { margin-top: 32px; }
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(48px, 8vh, 96px); display: flex; align-items: center; gap: 16px; font-size: var(--fs-xs); letter-spacing: 0.12em; }
.hero-dots button { width: 48px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--on-dark-muted); opacity: 0.5; }
.hero-dots button[aria-current="true"]::before { background: var(--dong); opacity: 1; }
.hero-pause { color: var(--on-dark-muted); background: none; border: 1px solid var(--line-dark); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.hero-pause:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.hero-pause svg { width: 14px; height: 14px; }

/* ---------- Home: values ---------- */
.values-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.values-head h2 { font-size: var(--fs-xl); letter-spacing: 0.02em; }
.values-head h2 .dia { color: var(--son); font-size: 0.5em; vertical-align: middle; margin-inline: 0.3em; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.value { padding: 32px 32px 32px 0; border-right: 1px solid var(--line); }
.value + .value { padding-left: 32px; }
.value:last-child { border-right: 0; }
.value h3 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); color: var(--son); letter-spacing: 0.04em; }
.value p { margin-top: 16px; color: var(--ink-3); max-width: 34ch; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Home: series ---------- */
.series-intro { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.series-intro h2 { font-size: var(--fs-2xl); }
.series-intro p { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); color: var(--dong); }
.series-pair { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.series-card { display: flex; flex-direction: column; gap: 24px; }
.series-card .media { position: relative; overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 3; }
.series-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.series-card:hover .media img { transform: scale(1.03); }
.series-card .media.figures { display: flex; align-items: flex-end; justify-content: center; gap: 0; padding: 24px 16px 0; background: radial-gradient(ellipse at 50% 90%, oklch(0.36 0.06 40), var(--ink-2) 70%); }
.series-card .media.figures img { width: 34%; height: auto; object-fit: contain; margin-inline: -4%; filter: drop-shadow(0 12px 16px oklch(0.1 0.02 40 / 0.5)); }
.series-card .media.figures img:nth-child(2) { width: 40%; z-index: 1; }
.series-card:nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
.series-card .no { color: var(--dong); }
.series-card h3 { font-size: var(--fs-xl); margin-top: 8px; }
.series-card p { color: var(--on-dark-muted); max-width: 52ch; }
.coming { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-style: italic; font-family: var(--font-display); font-size: var(--fs-md); }
@media (max-width: 860px) {
  .series-intro, .series-pair { grid-template-columns: 1fr; }
  .series-card:nth-child(2) { margin-top: 24px; }
}

/* ---------- Home: games band ---------- */
.games-band { background: var(--son); color: var(--on-dark); position: relative; overflow: hidden; }
.games-band .container { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; position: relative; }
.games-band h2 { font-size: var(--fs-2xl); max-width: 14ch; }
.games-band p { margin-top: 24px; max-width: 52ch; color: oklch(0.92 0.03 60); font-size: var(--fs-md); }
.games-band .drum { position: absolute; left: -10vw; bottom: -40%; width: 560px; color: var(--dong); opacity: 0.2; }
@media (max-width: 760px) { .games-band .container { grid-template-columns: 1fr; } }

/* ---------- Home: team ---------- */
.team-home { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.team-home h2 { font-size: var(--fs-xl); }
.team-home p { margin-top: 24px; color: var(--ink-3); max-width: 48ch; }
.team-home .btn { margin-top: 32px; }
.portraits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.portrait { margin: 0; }
.portrait:nth-child(1) { grid-column: 1 / 3; }
.portrait:nth-child(2) { grid-column: 3 / 5; margin-top: 48px; }
.portrait:nth-child(3) { grid-column: 5 / 7; }
.portrait:nth-child(4) { grid-column: 2 / 4; margin-top: -24px; }
.portrait:nth-child(5) { grid-column: 4 / 6; margin-top: 24px; }
.portrait .ph { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph span { font-family: var(--font-display); font-size: 2.5rem; color: var(--son); }
.portrait figcaption { text-align: center; margin-top: 12px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.portrait figcaption small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
@media (max-width: 860px) {
  .team-home { grid-template-columns: 1fr; }
  .portraits { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .portrait:nth-child(n) { grid-column: auto; margin-top: 0; }
  .portrait:nth-child(5) { grid-column: 1 / -1; width: 50%; justify-self: center; }
}

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); }
.story h2 { font-size: var(--fs-xl); position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.story .prose p + p { margin-top: 20px; }
.prose { font-size: var(--fs-md); line-height: 1.7; color: var(--ink-2); max-width: 62ch; }
.pull {
  margin: 48px 0 0; padding: 32px 0 0; border-top: 1px solid var(--ink);
  font-family: var(--font-display); font-style: italic; font-size: var(--fs-xl); line-height: 1.15; color: var(--son);
}
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.mvv > div { padding: 40px 32px; border-left: 1px solid var(--line-dark); }
.mvv > div:first-child { border-left: 0; padding-left: 0; }
.mvv h3 { font-size: var(--fs-lg); color: var(--dong); margin-bottom: 16px; }
.mvv p { color: var(--on-dark-muted); }
.mvv .vals { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.4; color: var(--on-dark); }
@media (max-width: 860px) {
  .story, .mvv { grid-template-columns: 1fr; }
  .story h2 { position: static; }
  .mvv > div, .mvv > div:first-child { border-left: 0; padding: 24px 0; border-top: 1px solid var(--line-dark); }
}
.team-list { margin-top: 48px; border-top: 1px solid var(--ink); }
.member { display: grid; grid-template-columns: 96px 1.2fr 0.5fr 1.4fr 2fr; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.member .ph { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member .ph span { font-family: var(--font-display); font-size: 2rem; color: var(--son); }
.member h3 { font-size: var(--fs-lg); }
.member .cls { font-weight: 600; color: var(--son); }
.member .role { font-weight: 600; }
.member .task { color: var(--ink-3); font-size: var(--fs-sm); }
.member-head { display: grid; grid-template-columns: 96px 1.2fr 0.5fr 1.4fr 2fr; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
@media (max-width: 960px) {
  .member-head { display: none; }
  .member { grid-template-columns: 72px 1fr; gap: 4px 16px; align-items: start; }
  .member .ph { width: 72px; height: 72px; grid-row: span 4; }
}
.mentors { margin-top: 32px; color: var(--ink-3); }
.journey { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); }
.journey h2 { font-size: var(--fs-xl); }
.journey ol { list-style: none; margin: 0; padding: 0; counter-reset: j; }
.journey li { counter-increment: j; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); font-size: var(--fs-md); color: var(--ink-2); }
.journey li::before { content: counter(j, decimal-leading-zero); font-family: var(--font-display); font-size: var(--fs-lg); color: var(--son); line-height: 1.2; }
.journey .next { margin-top: 32px; padding: 24px; background: var(--paper-2); }
.journey .next p + p { margin-top: 12px; }
@media (max-width: 860px) { .journey { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.product { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.product.rev { grid-template-columns: 5fr 6fr; }
.product.rev .product-media { order: 2; }
.product h2 { font-size: var(--fs-2xl); }
.price { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--son); margin-top: 8px; font-variant-numeric: tabular-nums; }
.dark .price { color: var(--dong); }
.product .desc { margin-top: 24px; font-size: var(--fs-md); color: var(--ink-3); }
.dark .product .desc { color: var(--on-dark-muted); }
.spec { margin: 32px 0; border-top: 1px solid var(--line); }
.dark .spec { border-color: var(--line-dark); }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dark .spec div { border-color: var(--line-dark); }
.spec dt { font-weight: 600; font-size: var(--fs-sm); }
.spec dd { margin: 0; }
.product-media { display: grid; gap: 12px; }
.product-media .main { background: var(--paper-2); }
.product-media .row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.product-media .row > * { background: var(--paper-2); display: grid; place-items: center; }
.product-media .trio { display: flex; align-items: flex-end; justify-content: center; padding: 16px 8px 0; background: radial-gradient(ellipse at 50% 100%, var(--sand), var(--paper-2) 70%); }
.product-media .trio img { width: 33%; margin-inline: -2%; }
.product-media .grid8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; background: var(--ink-2); }
.product-media .grid8 img { aspect-ratio: 3 / 4; object-fit: contain; width: 100%; }
.product-media figcaption { font-size: var(--fs-xs); color: var(--muted); }
.dark .product-media figcaption { color: var(--on-dark-muted); }
@media (max-width: 900px) {
  .product, .product.rev { grid-template-columns: 1fr; }
  .product.rev .product-media { order: 0; }
}
.orgs { display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1px solid var(--ink); margin-top: 48px; }
.org { padding: 32px 32px 32px 0; }
.org + .org { padding-left: 32px; border-left: 1px solid var(--line); }
.org h3 { font-size: var(--fs-lg); }
.org:first-child h3 { font-size: var(--fs-xl); color: var(--son); }
.org p { margin-top: 12px; color: var(--ink-3); }
@media (max-width: 860px) {
  .orgs { grid-template-columns: 1fr; }
  .org, .org + .org { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.safety { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.safety li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: var(--fs-md); }
.safety li svg { width: 24px; height: 24px; color: var(--dong); margin-top: 4px; }

/* ---------- Library ---------- */
.lib-tools { position: sticky; top: var(--header-h); z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.lib-tools .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 12px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; background: none; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted); border-radius: 999px;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s;
}
.tab:hover { color: var(--ink); border-color: var(--line); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--on-dark); }
.tab .count { font-weight: 400; opacity: 0.7; margin-left: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select, .search input {
  min-height: 44px; padding: 8px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.search { position: relative; }
.search input { padding-left: 40px; width: min(260px, 100%); }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
@media (max-width: 760px) { .search, .search input { width: 100%; } .filters { width: 100%; } .filters select { flex: 1; } }

.series-block { padding-block: 64px 32px; }
.series-block + .series-block { border-top: 1px solid var(--line); }
.series-block-head { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.series-block-head h2 { font-size: var(--fs-xl); margin-top: 8px; }
.series-block-head p { color: var(--ink-3); }
@media (max-width: 860px) { .series-block-head { grid-template-columns: 1fr; gap: 16px; } }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.ccard { position: relative; display: flex; flex-direction: column; background: oklch(0.975 0.012 80); border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ccard .fig { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: end center; padding: 24px 24px 0; background: radial-gradient(ellipse at 50% 85%, var(--sand), oklch(0.975 0.012 80) 65%); overflow: hidden; }
.ccard .fig img { max-height: 100%; width: auto; object-fit: contain; transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.ccard:hover .fig img { transform: scale(1.04); }
.ccard .fig .shadow-fig { filter: brightness(0) saturate(0); opacity: 0.88; }
.ccard .fig .ph-fig { width: 62%; height: 88%; color: var(--ink); opacity: 0.85; }
.ccard .badge { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.ccard .owned-mark { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--son); color: var(--on-dark); display: grid; place-items: center; }
.ccard .owned-mark svg { width: 18px; height: 18px; }
.ccard .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard .meta { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.ccard h3 { font-size: 1.75rem; }
.ccard h3 a { text-decoration: none; }
.ccard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.ccard .line { color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.55; }
.ccard .actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 12px; }
.ccard .actions .full { grid-column: 1 / -1; }
.ccard .actions .btn { min-height: 44px; padding: 8px 10px; font-size: 0.6875rem; letter-spacing: 0.04em; }
.ccard .quiz-link { position: relative; z-index: 1; font-size: var(--fs-sm); color: var(--son); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; padding-block: 6px; }
.ccard .quiz-link:hover { text-decoration: underline; }
.btn-own { --bg: transparent; --fg: var(--son); --bd: var(--son); }
.btn-own:hover { --bg: var(--son); --fg: var(--on-dark); }
.btn-own[aria-pressed="true"] { --bg: var(--son); --fg: var(--on-dark); }
.empty { padding: 48px 0; color: var(--muted); font-size: var(--fs-md); }

.progress-wrap { display: grid; gap: 24px; margin-bottom: 48px; }
.progress-item p { font-size: var(--fs-md); margin-bottom: 8px; }
.progress-item strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--son); }
.bar { height: 8px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--son); transform-origin: left; transition: transform 0.6s var(--ease); }
.note { padding: 16px 20px; background: var(--paper-2); font-size: var(--fs-sm); color: var(--ink-3); display: flex; gap: 12px; align-items: flex-start; }
.note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--son); margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.badge-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); background: oklch(0.975 0.012 80); }
.badge-item .medal { width: 44px; height: 44px; border-radius: 50%; background: var(--dong); color: var(--ink); display: grid; place-items: center; }
.badge-item .medal svg { width: 22px; height: 22px; }
.badge-item b { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.badge-item small { color: var(--muted); }

/* ---------- Character page ---------- */
.char-hero { display: grid; grid-template-columns: 7fr 5fr; min-height: calc(62dvh); background: var(--ink); color: var(--on-dark); }
.stage { position: relative; min-height: 420px; height: min(68dvh, 720px); background: radial-gradient(ellipse at 50% 70%, oklch(0.34 0.05 45), oklch(0.2 0.015 50) 70%); overflow: hidden; touch-action: none; }
.stage canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage .drum { position: absolute; left: 50%; top: 50%; width: 120%; max-width: 900px; transform: translate(-50%, -50%); color: var(--dong); opacity: 0.08; pointer-events: none; }
.stage .img2d { position: absolute; inset: 24px; display: grid; place-items: center; }
.stage .img2d img { max-height: 100%; width: auto; filter: drop-shadow(0 24px 32px oklch(0.1 0.02 40 / 0.6)); transform-origin: center; transition: transform 0.3s var(--ease-out); cursor: zoom-in; }
.stage .img2d img.zoomed { transform: scale(1.7); cursor: zoom-out; }
.stage .placeholder3d { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.stage .placeholder3d img { max-height: 70%; width: auto; opacity: 0.9; }
.stage .placeholder3d p { margin-top: 16px; color: var(--on-dark-muted); }
.stage .loader { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark-muted); font-size: var(--fs-sm); pointer-events: none; transition: opacity 0.4s; }
.stage .loader .ring { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--line-dark); border-top-color: var(--dong); animation: spin 1s linear infinite; }
.stage .hint { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); color: var(--on-dark-muted); background: oklch(0.2 0.015 50 / 0.7); padding: 8px 12px; border-radius: 999px; pointer-events: none; }
.stage .hint svg { width: 16px; height: 16px; }
.stage .stage-ctrl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: oklch(0.2 0.015 50 / 0.7); color: var(--on-dark); display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.icon-btn:hover { background: var(--ink-3); border-color: var(--on-dark-muted); }
.icon-btn svg { width: 18px; height: 18px; }
.char-aside { padding: clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 20px; border-left: 1px solid var(--line-dark); }
.char-aside h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); }
.char-aside .summary { color: var(--on-dark-muted); line-height: 1.7; max-height: 15.5em; overflow: auto; padding-right: 8px; }
.crumbs { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); text-decoration: underline; }
@media (max-width: 960px) {
  .char-hero { grid-template-columns: 1fr; }
  .stage { height: 56dvh; min-height: 360px; }
  .char-aside { border-left: 0; border-top: 1px solid var(--line-dark); }
  .char-aside .summary { max-height: none; }
}
.toolbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.toolbar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 16px; }
.lang { margin-left: auto; display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 3px; }
.lang button { min-width: 52px; min-height: 40px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.soon-chip { font-size: 0.625rem; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 999px; background: var(--paper-2); color: var(--ink); margin-left: 4px; }
.char-body { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); }
.quick { margin: 0; border-top: 1px solid var(--ink); }
.quick div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.quick dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.quick dd { margin: 0; }
.char-body h2 { font-size: var(--fs-xl); margin-bottom: 24px; }
.char-body h3 { font-size: var(--fs-lg); margin: 48px 0 16px; }
.char-body .story-text { font-size: var(--fs-md); line-height: 1.75; color: var(--ink-2); max-width: 64ch; }
.char-body .details li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.char-body .details { list-style: none; padding: 0; margin: 0; }
.char-body .source { font-size: var(--fs-sm); color: var(--ink-3); max-width: 64ch; }
.char-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .char-body { grid-template-columns: 1fr; } }
.locked { text-align: left; }
.locked p { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); color: var(--dong); }

/* ---------- Games ---------- */
.quiz-series { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; }
.qs { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; min-height: 320px; }
.qs.main { background: var(--ink); color: var(--on-dark); }
.qs.alt { background: var(--paper-2); }
.qs h3 { font-size: var(--fs-xl); }
.qs p { color: var(--ink-3); }
.qs.main p { color: var(--on-dark-muted); }
.qs .btn-row { margin-top: auto; }
@media (max-width: 860px) { .quiz-series { grid-template-columns: 1fr; } }
.rules { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; margin-top: 64px; }
.rules h3 { font-size: var(--fs-lg); margin-bottom: 12px; }
.titles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.titles li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.titles li b { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; }
.titles li span { font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }

.quiz { background: var(--ink); color: var(--on-dark); }
.quiz[hidden] { display: none; }
.quiz-box { max-width: 820px; margin-inline: auto; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.quiz-top b { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.quiz .bar { background: var(--ink-2); border-color: var(--line-dark); margin-bottom: 40px; }
.quiz .bar span { background: var(--dong); }
.quiz h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); margin-bottom: 32px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer {
  display: flex; align-items: center; gap: 16px; text-align: left; min-height: 64px; padding: 16px 20px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer;
  font-size: var(--fs-base); color: var(--on-dark);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), transform 0.12s;
}
.answer:hover:not([disabled]) { border-color: var(--dong); }
.answer:active:not([disabled]) { transform: translateY(1px); }
.answer .k { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; font-weight: 600; font-size: var(--fs-sm); }
.answer.correct { border-color: var(--ngoc); background: oklch(0.3 0.05 175); }
.answer.correct .k { background: var(--ngoc); border-color: var(--ngoc); }
.answer.wrong { border-color: var(--son); background: oklch(0.28 0.08 27); }
.answer.wrong .k { background: var(--son); border-color: var(--son); }
.answer[disabled] { cursor: default; }
@media (max-width: 640px) { .answers { grid-template-columns: 1fr; } }
.explain { margin-top: 24px; padding: 20px; border-left: 2px solid var(--dong); background: var(--ink-2); }
.explain[hidden] { display: none; }
.explain .verdict { font-weight: 600; margin-bottom: 6px; }
.explain .btn-row { margin-top: 16px; }
.result { text-align: center; }
.result .score { font-family: var(--font-display); font-size: clamp(4rem, 2rem + 8vw, 8rem); line-height: 1; color: var(--dong); font-variant-numeric: tabular-nums; }
.result h2 { margin-top: 16px; }
.result .btn-row { justify-content: center; margin-top: 32px; }
.other-games { border-top: 1px solid var(--ink); }
.og { display: grid; grid-template-columns: 1.2fr 2fr 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.og h3 { font-size: var(--fs-lg); }
.og p { color: var(--ink-3); }
@media (max-width: 860px) { .og { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.contact-info h2 { font-size: var(--fs-lg); }
.contact-info dl { margin: 24px 0 0; border-top: 1px solid var(--ink); }
.contact-info dl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-info dd { margin: 4px 0 0; font-size: var(--fs-md); }
.contact-info .pending { color: var(--muted); font-style: italic; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); }
.field .req { color: var(--son); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: oklch(0.985 0.008 80); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--dong-deep); outline-offset: 1px; }
.field .help { font-size: var(--fs-sm); color: var(--muted); }
.field .err { font-size: var(--fs-sm); color: var(--son); }
.field .err:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--son); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.needs label { position: relative; display: flex; align-items: center; min-height: 56px; padding: 12px 14px; border: 1px solid var(--line); background: oklch(0.985 0.008 80); cursor: pointer; font-weight: 500; transition: border-color 0.2s, background-color 0.2s; }
.needs input { position: absolute; opacity: 0; }
.needs label:has(input:checked) { border-color: var(--son); background: var(--son-soft); color: var(--son-deep); font-weight: 600; }
.needs label:has(input:focus-visible) { outline: 2px solid var(--dong-deep); outline-offset: 2px; }
@media (max-width: 860px) { .contact, .needs { grid-template-columns: 1fr; } }
.form-status { padding: 16px; background: var(--paper-2); }
.form-status[hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid currentColor; }
.faq-item { border-bottom: 1px solid var(--line); }
.dark .faq-item { border-color: var(--line-dark); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.25; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid currentColor; border-radius: 50%; position: relative; opacity: 0.7; }
.faq-item summary .pm::before, .faq-item summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease-out); }
.faq-item summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item summary:hover { color: var(--son); }
.dark .faq-item summary:hover { color: var(--dong); }
.faq-item .a { padding: 0 48px 24px 0; color: var(--ink-3); max-width: 70ch; }
.dark .faq-item .a { color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(64px, 8vw, 112px); }
.footer-top { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { width: 120px; height: 120px; border-radius: 50%; background: var(--paper); }
.footer-brand .tagline { margin-top: 20px; font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); color: var(--dong); }
.footer-brand p { margin-top: 16px; color: var(--on-dark-muted); font-size: var(--fs-sm); max-width: 40ch; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: 999px; text-decoration: none; font-size: var(--fs-sm); color: var(--on-dark-muted); transition: color 0.2s, border-color 0.2s; }
.socials a:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-cols h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; color: var(--dong); margin-bottom: 16px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { display: inline-block; padding: 8px 0; text-decoration: none; color: var(--on-dark-muted); font-size: var(--fs-sm); transition: color 0.2s; }
.footer-cols a:hover { color: var(--on-dark); }
.footer-faq { padding-block: 48px; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); }
.footer-faq h2 { font-size: var(--fs-xl); }
.footer-faq .faq-item summary { font-size: var(--fs-md); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.footer-bottom img { width: 40px; height: 40px; border-radius: 50%; }
.footer-bottom .school { display: flex; align-items: center; gap: 12px; }
@media (max-width: 960px) {
  .footer-top, .footer-faq { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); transform: translate(-50%, 24px); opacity: 0; padding: 14px 20px; background: var(--ink); color: var(--on-dark); border-left: 2px solid var(--dong); font-size: var(--fs-sm); max-width: calc(100% - 32px); pointer-events: none; transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal (progressive, content visible by default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   Tông màu theo mockup app Sắc Việt (kem · đỏ son · xanh lá đậm)
   ========================================================= */
.btn { border-radius: 999px; }
.btn--green { --bg: var(--xanh); --fg: var(--on-dark); --bd: var(--xanh); }
.btn--green:hover { --bg: var(--xanh-deep); --bd: var(--xanh-deep); }
.btn--sm { border-radius: 999px; }

/* thẻ trắng ngà bo góc */
.ccard { background: var(--card); border-radius: var(--radius-card); overflow: hidden; border-color: oklch(0.88 0.025 80); }
.ccard .fig { background: radial-gradient(ellipse at 50% 85%, var(--paper-2), var(--card) 65%); }
.ccard .actions .btn { border-radius: var(--radius); }
.series-card .media, .product-media .main, .product-media .row > *, .product-media .grid8 { border-radius: var(--radius-card); overflow: hidden; }
.qs { border-radius: var(--radius-card); }
.qs.main { background: var(--son-deep); }
.badge-item, .note, .form-status, .journey .next { border-radius: var(--radius); }
.needs label, .field input, .field select, .field textarea, .filters select, .search input { border-radius: var(--radius); background: var(--card); }

/* segmented tabs giống app */
.tabs { background: var(--paper-2); border-radius: 999px; padding: 4px; flex: 0 1 auto; }
.tab { border-radius: 999px; }
.tab:hover { border-color: transparent; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--card); color: var(--son-deep); box-shadow: 0 1px 2px oklch(0.3 0.03 50 / 0.12); }

/* tiến độ màu xanh */
.bar { border-radius: 999px; background: var(--paper-2); }
.bar span { background: var(--xanh); }
.quiz .bar span { background: var(--dong); }

/* dải trò chơi: xanh lá đậm */
.games-band { background: var(--xanh-deep); }
.games-band p { color: oklch(0.9 0.03 150); }

/* đáp án đố vui: nền kem như app */
.quiz { background: var(--paper-2); color: var(--ink); }
.quiz-top { color: var(--muted); }
.quiz-top b { color: var(--ink); }
.quiz .bar { background: var(--card); border-color: var(--line); }
.quiz .bar span { background: var(--xanh); }
.answer { background: var(--card); color: var(--ink); border-color: var(--line); border-radius: var(--radius); }
.answer:hover:not([disabled]) { border-color: var(--son); }
.answer .k { border-color: var(--line); }
.answer.correct { background: oklch(0.93 0.04 160); border-color: var(--xanh); color: var(--xanh-deep); }
.answer.correct .k { background: var(--xanh); border-color: var(--xanh); color: var(--on-dark); }
.answer.wrong { background: var(--son-soft); border-color: var(--son); color: var(--son-deep); }
.answer.wrong .k { background: var(--son); border-color: var(--son); color: var(--on-dark); }
.explain { background: var(--card); border-left: 0; border-radius: var(--radius); border: 1px solid var(--line); }
.explain .btn--ghost { --fg: var(--ink); --bd: var(--ink); }
.result .score { color: var(--son); }

/* khung 3D & footer: nâu đen như màn hình quét QR */
.char-hero { background: var(--ink); }
.site-footer { background: var(--ink); }
.owned-mark { background: var(--xanh) !important; }
.btn-own[aria-pressed="true"] { --bg: var(--xanh); --fg: var(--on-dark); --bd: var(--xanh); }
.link-arrow svg, .quiz-link svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg, .quiz-link:hover svg { transform: translateX(3px); }
.safety li > svg { width: 24px; height: 24px; }
.site-footer .faq-item { border-color: var(--line-dark); }
.site-footer .faq-item summary:hover { color: var(--dong); }
.site-footer .faq-item .a { color: var(--on-dark-muted); }
.site-footer .faq-list { border-color: var(--line-dark); }

/* Font tiêu đề theo mockup: Playfair Display, đậm vừa */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5rem); font-weight: 700; line-height: 1.05; }
.hero h1 .accent { font-weight: 500; }
.banner h1 { font-weight: 700; }
.value h3 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 700; }
.brand span { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }
.ccard h3 { font-size: 1.375rem; }
.char-aside h1 { font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem); font-weight: 700; }
.result .score { font-weight: 700; }
.pull, .hero .sub, .series-intro p, .coming, .locked p, .footer-brand .tagline { font-weight: 500; }
.faq-item summary { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 600; }
.footer-faq .faq-item summary { font-size: 1.0625rem; }
.titles li b, .badge-item b { font-weight: 600; }
.portrait .ph span, .member .ph span { font-weight: 700; }

/* ===== Chỉnh sửa theo góp ý (đợt 2) ===== */
/* 2 thẻ series: cùng bố cục 3 nhân vật, tiêu đề / nội dung thẳng hàng */
.series-pair { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto; row-gap: 0; }
.series-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; gap: 0; }
.series-card:nth-child(2) { margin-top: 0; }
.series-card .media { margin-bottom: 24px; }
.series-card > p { margin-top: 16px; }
.series-card .link-arrow { margin-top: 16px; align-self: start; justify-self: start; }
.series-card .media.figures { aspect-ratio: 4 / 3; padding: 32px 24px 0; }
.series-card .media.figures img { width: 32%; }
.series-card .media.figures img:nth-child(2) { width: 40%; transform: translateY(-6%); }
.series-card .media.figures img.shadow-fig { filter: brightness(0) drop-shadow(0 12px 16px oklch(0.1 0.02 40 / 0.5)); opacity: 0.85; }
@media (max-width: 860px) {
  .series-pair { grid-template-columns: 1fr; }
  .series-card { grid-row: auto; display: flex; flex-direction: column; }
  .series-card + .series-card { margin-top: 48px; }
}

/* Footer: chỉ biểu tượng Zalo */
.social-icon { width: 48px; height: 48px; padding: 0 !important; border-radius: 50% !important; display: inline-grid !important; place-items: center; border: 1px solid var(--line-dark); color: var(--on-dark); }
.social-icon svg { width: 26px; height: 26px; }
.social-icon:hover { border-color: var(--on-dark); background: oklch(0.32 0.02 50); }
.social-icon--light { color: var(--ink); border: 1px solid var(--line); vertical-align: middle; margin-right: 8px; }
a.social-icon--light:hover { background: var(--paper-2); }

/* Đội ngũ dạng thẻ, ảnh tròn */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px; margin-top: 48px; }
.tm .ph { aspect-ratio: 1; width: 100%; border-radius: 50%; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.tm .ph img { width: 100%; height: 100%; object-fit: cover; }
.tm .ph span { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--son); }
.tm h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; margin-top: 20px; }
.tm .role { margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--son); line-height: 1.5; }
.tm .cls { margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); }
.tm .task { margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; }
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* Đặt hàng cho tổ chức: 3 cột bằng nhau, cùng kiểu */
.orgs { grid-template-columns: repeat(3, 1fr); }
.org:first-child h3 { font-size: var(--fs-lg); color: inherit; }
@media (max-width: 860px) { .orgs { grid-template-columns: 1fr; } }
.series-card .media.figures img { width: auto !important; height: 70%; max-width: 36%; object-fit: contain; }
.series-card .media.figures img:nth-child(2) { height: 88%; max-width: 42%; transform: none; }
.series-card .media.figures img.shadow-fig { filter: brightness(0) invert(0.08) drop-shadow(0 0 1px oklch(0.6 0.08 60 / 0.6)); opacity: 1; }
.series-card h3 { font-size: clamp(1.5rem, 0.9rem + 1.5vw, 2rem); }

/* ===== Hình nhân vật luôn hiện trọn (đợt 3) ===== */
.ccard .fig { aspect-ratio: 4 / 5; padding: 20px; place-items: center; }
.ccard .fig img { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center bottom; }
.ccard .fig .ph-fig { width: 62%; height: 88%; }
.stage .img2d { position: absolute; inset: 24px 24px 72px; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.stage .img2d img { width: 100%; height: 100%; max-height: none; object-fit: contain; transform: none !important; }
.stage .img2d:focus-visible { outline: 2px solid var(--dong); outline-offset: 4px; border-radius: var(--radius); }
.stage .placeholder3d > div { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage .placeholder3d img { max-height: calc(100% - 64px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox { border: 0; padding: 0; background: none; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lightbox::backdrop { background: oklch(0.15 0.015 50 / 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 900px); max-height: 90dvh; width: auto; height: auto; object-fit: contain; }
.lightbox .lb-close { position: fixed; top: 16px; right: 16px; font-size: 18px; }
.ccard .fig { position: relative; display: block; }
.ccard .fig img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
.ccard .fig .ph-fig { position: absolute; left: 19%; top: 8%; }
.ccard .badge { z-index: 1; }

/* ===== Khung chuẩn chung cho mọi nhân vật (2D, 3D, bóng đen) ===== */
/* Ảnh nhân vật: 800x1000, nền trong suốt, đế chạm đáy. Trong khung trưng bày luôn chiếm cùng một vùng. */
.stage .img2d { inset: 32px 24px 80px; }
.stage .img2d .silhouette { filter: brightness(0) invert(0.06) drop-shadow(0 0 1px oklch(0.7 0.08 70 / 0.5)); cursor: default; }
div.img2d { cursor: default; }
