/* ============================================================
   PULL OFF · Mobile Landing Page
   Aesthetic: hand-drawn watercolor + ink scrapbook journal
   Audience: Chinese ESL learners on short-video apps
   ============================================================ */

/* -----------------------------------------------------------
   Custom properties — palette, typography, motion
   ----------------------------------------------------------- */
:root {
  /* Paper / surface */
  --paper:        #fff5e1;
  --paper-deep:   #f6e9c8;
  --paper-edge:   #ecdcb1;

  /* Ink + accent palette */
  --ink:          #1a3a6e;
  --ink-soft:     #34507f;
  --coral:        #c64545;
  --coral-deep:   #a83333;
  --marigold:     #d68a1e;
  --mint:         #2a7a3f;
  --peach:        #fbcfcf;
  --lemon:        #ffe89a;

  /* Shadows */
  --shadow-sm:    0 2px 0 rgba(28, 36, 60, 0.08);
  --shadow-md:    0 6px 18px rgba(28, 36, 60, 0.14);
  --shadow-lg:    0 12px 32px rgba(28, 36, 60, 0.18);

  /* Type families */
  --font-display: "Caveat", "PingFang SC", "Noto Sans SC", cursive;
  --font-badge:   "Fredoka", system-ui, sans-serif;
  --font-body:    "Crimson Pro", "Noto Sans SC", Georgia, serif;
  --font-zh:      "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Layout (mobile-only) */
  --page-pad:     1.25rem;
  --page-max:     430px;
  --radius-card:  20px;

  /* Motion */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:  cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* -----------------------------------------------------------
   Reset (lean)
   ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100dvh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
:focus-visible {
  outline: 3px dashed var(--coral);
  outline-offset: 4px;
  border-radius: 6px;
}

/* -----------------------------------------------------------
   Paper background — gradient + SVG noise grain
   ----------------------------------------------------------- */
body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 232, 154, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(251, 207, 207, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: multiply;
  /* SVG noise data URI */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.4 0 0 0 0 0.2 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -----------------------------------------------------------
   Sparkle layer (twinkling stars)
   ----------------------------------------------------------- */
.sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.sparkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 12px);
  height: var(--s, 12px);
  background: var(--marigold);
  clip-path: polygon(
    50% 0%, 58% 38%, 100% 50%, 58% 62%,
    50% 100%, 42% 62%, 0% 50%, 42% 38%
  );
  opacity: 0.4;
  filter: drop-shadow(0 0 6px rgba(255, 220, 130, 0.7));
  animation: twinkle 3.6s var(--ease-out) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes twinkle {
  0%, 100% {
    opacity: 0.15;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.15) rotate(180deg);
  }
}

/* -----------------------------------------------------------
   Page container
   ----------------------------------------------------------- */
.page {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-bottom: 4rem;
}

/* Section staggered entry (page-load animation) */
section {
  position: relative;
  padding: 2.5rem var(--page-pad) 2rem;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section-head ribbon */
.section-head {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.section-head h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--ink);
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 0.25rem;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  bottom: 0.05em;
  width: 3px;
  height: 1.6em;
  background: var(--coral);
  border-radius: 3px;
  transform: rotate(-3deg);
}
.section-head .kicker {
  font-family: var(--font-display);
}
.section-head .zh {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

/* Inline ZH styling — applied wherever lang="zh-CN" appears in body */
:is(p, span, strong, em, h1, h2, h3, h4, li)[lang="zh-CN"],
.zh {
  font-family: var(--font-zh);
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  padding-top: 2rem;
  padding-bottom: 1rem;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}
.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phrasal-tag {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-badge);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed var(--ink);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  transform: rotate(-2deg);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.title-block {
  position: relative;
  margin-bottom: 0.5rem;
}
.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 19vw, 5.2rem);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -1px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.4em;
  flex-wrap: wrap;
}
.title .word-pull {
  transform: rotate(-2deg);
}
.title .word-off {
  color: var(--coral);
  transform: rotate(2deg);
}
.title-underline {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 92%;
  height: 18px;
  pointer-events: none;
}
.title-underline path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: paint-in 1.4s 0.8s var(--ease-out) forwards;
}
@keyframes paint-in {
  to { stroke-dashoffset: 0; }
}

.subtitle {
  margin: 0.5rem 0 0.25rem;
  font-family: var(--font-badge);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--marigold);
  letter-spacing: 0.5px;
}
.subtitle .emoji {
  display: inline-block;
  transform: translateY(2px) rotate(-12deg);
}

.zh-gloss {
  margin: 0.15rem 0 0;
  font-family: var(--font-zh);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  line-height: 1.4;
  max-width: 22ch;
}

/* "YES!" sticker burst */
.yes-sticker {
  position: absolute;
  top: -0.5rem;
  right: 0.5rem;
  width: 88px;
  height: 88px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-badge);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    50% 0%, 60% 20%, 80% 12%, 75% 32%, 100% 38%,
    82% 54%, 95% 72%, 72% 70%, 68% 90%, 50% 78%,
    32% 100%, 28% 78%, 5% 80%, 18% 60%, 0% 50%,
    20% 38%, 5% 22%, 28% 22%, 22% 0%, 40% 14%
  );
  transform: rotate(-12deg);
  z-index: 5;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.12));
}

/* Trophy + speech bubble */
.trophy-callout {
  position: absolute;
  top: 10.5rem;
  right: -0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  z-index: 4;
  transform: rotate(4deg);
}
.speech-bubble {
  position: relative;
  display: inline-block;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--coral);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 22px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--ink);
}
.speech-bubble::before {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 24px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #fff;
  z-index: 1;
}
.trophy {
  font-size: 3rem;
  line-height: 1;
  margin-right: 1rem;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.1));
  animation: trophy-bob 3s var(--ease-out) infinite;
}
@keyframes trophy-bob {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(2deg)  translateY(-4px); }
}

/* Hero figure */
.hero-figure {
  margin: 1.25rem auto 0 -1rem;
  max-width: 84%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.hero-figure img {
  width: 100%;
  height: auto;
  transform: rotate(-3deg);
  filter: drop-shadow(0 18px 24px rgba(28, 36, 60, 0.18));
}

/* Hero soft fade */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--paper-deep));
  pointer-events: none;
}

/* ============================================================
   2. THREE MEANINGS
   ============================================================ */
.meanings {
  background: linear-gradient(180deg, transparent, rgba(246, 233, 200, 0.5));
}

.meaning-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem 1.25rem;
  margin: 0 -0.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(28, 36, 60, 0.05);
}
.meaning-1 { transform: rotate(-2deg); }
.meaning-2 { transform: rotate(1.5deg); margin-left: -0.5rem; margin-right: 0.25rem; }
.meaning-3 { transform: rotate(-1.5deg); }
.meaning-card:active {
  transform: rotate(0) scale(0.98);
  transition: transform 200ms var(--ease-out);
}

.paper-clip {
  position: absolute;
  top: -16px;
  left: 1.5rem;
  width: 40px;
  height: 60px;
  background:
    linear-gradient(135deg, transparent 0 30%, #b9c4d6 30% 32%, transparent 32%),
    linear-gradient(180deg, #b9c4d6 0 4px, transparent 4px) 0 0/100% 60% no-repeat;
  border: 3px solid #9aa6b9;
  border-radius: 6px;
  background-color: transparent;
  box-shadow: var(--shadow-sm);
  transform: rotate(-15deg);
  z-index: 5;
}
.paper-clip::before {
  content: "";
  position: absolute;
  inset: 6px 8px 30%;
  border: 3px solid #9aa6b9;
  border-radius: 4px;
}
.paper-clip-coral {
  border-color: var(--coral);
}
.paper-clip-coral::before {
  border-color: var(--coral);
}

.meaning-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-badge);
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 var(--coral-deep);
  transform: rotate(8deg);
}
.meaning-2 .meaning-num { background: var(--mint); box-shadow: 0 4px 0 #1f5b30; }
.meaning-3 .meaning-num { background: var(--marigold); box-shadow: 0 4px 0 #a96b13; }

.meaning-icon {
  margin: 0.5rem auto 0.75rem;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.meaning-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(28, 36, 60, 0.18));
}

.meaning-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.meaning-card h3 [lang="zh-CN"] {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 1.5rem;
}
.chip {
  display: inline-block;
  font-family: var(--font-badge);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  vertical-align: middle;
}
.meaning-2 .chip { background: var(--mint); }
.meaning-3 .chip { background: var(--marigold); }

.meaning-card .zh {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.meaning-card .en {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================================
   3. KEY IDEA
   ============================================================ */
.key-idea {
  padding-top: 1rem;
}

.key-idea-card {
  position: relative;
  background:
    linear-gradient(180deg, #fffaf0, #fff5e1);
  border: 3px solid var(--coral);
  border-radius: 24px;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 6px rgba(255, 255, 255, 0.6);
  transform: rotate(1.5deg);
  margin: 0 0.25rem;
}
.lightbulb {
  position: absolute;
  top: -22px;
  right: 1.25rem;
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.15));
  animation: bulb 4s var(--ease-out) infinite;
}
@keyframes bulb {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}
.key-idea-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--coral);
  letter-spacing: 0.5px;
}
.key-idea-body {
  margin: 0.4rem 0 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}
.key-idea-body em {
  color: var(--coral);
  font-weight: 600;
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(198, 69, 69, 0.22) 60%);
  padding: 0 2px;
}
.key-idea-body strong {
  color: var(--ink);
  font-weight: 700;
}
.key-idea-body.zh {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ============================================================
   4. EXAMPLES
   ============================================================ */
.examples {
  padding-bottom: 3rem;
}

.example-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.example {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.example-1 { transform: rotate(-1deg); }
.example-2 { transform: rotate(1.2deg); margin-left: 1rem; }
.example-3 { transform: rotate(-1.4deg); margin-right: 0.5rem; }
.example-4 { transform: rotate(0.8deg); margin-left: 0.5rem; }

.example-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  position: relative;
  isolation: isolate;
}
/* Painterly inset border */
.example-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 4;
}
.example-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ------------------------------------------------------------
   Per-example animated overlays (always-on ambient motion)
   The painted scene stays static; ::before adds a code-rendered
   layer of motion specific to each example's content.
   ------------------------------------------------------------ */

/* ============================================================
   Example image full-scene sprite-sheet animations
   Each example's painted <img> is replaced with a 4-cell sprite
   sheet showing the SAME background but the main character in
   different poses across cells. Cycles via @sprite-cycle keyframes.
   ============================================================ */

/* When .example-anim is present in the figure, hide the static <img>. */
.example-figure:has(.example-anim) > img { display: none; }
.example-figure:has(.example-anim) { container-type: inline-size; }

.example-anim {
  --frames: 4;
  --cycle: 1.6s;
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: 0 0;
  /* Use container-query width so sprite sheet scales with figure */
  background-size: calc(100cqw * var(--frames)) 100%;
  animation: example-sprite-cycle var(--cycle) steps(var(--frames)) infinite;
  z-index: 1;
  will-change: background-position;
}
@keyframes example-sprite-cycle {
  to {
    background-position: calc(100cqw * var(--frames) * -1) 0;
  }
}

/* Example 1 — Stage performer: 4 singing poses, same stage backdrop */
.example-1 .example-anim {
  background-image: url("images/example-stage-fullscene-sheet.png");
  --cycle: 1.8s;
}

/* Example 2 — Birthday party: 4 reactions of the central girl */
.example-2 .example-anim {
  background-image: url("images/example-party-fullscene-sheet.png");
  --cycle: 2.0s;
  transform: scale(1.28);
  transform-origin: center center;
}

/* Example 4 — Jacket run: 4-frame run cycle through the doorway */
.example-4 .example-anim {
  background-image: url("images/example-jacket-fullscene-sheet.png");
  --cycle: 0.9s;       /* fast — running gait should feel quick */
}

/* Example 2 — confetti is baked into the new watercolor sprite sheet,
   so no CSS overlay is needed. */

/* Example 3 — Project DONE: pulsing coral glow over the DONE stamp area */
.example-3 .example-figure::before {
  content: "";
  position: absolute;
  left: 55%;
  top: 55%;
  width: 70%;
  height: 50%;
  transform: translate(-30%, -30%);
  background: radial-gradient(ellipse at center, rgba(198, 69, 69, 0.32) 0%, transparent 60%);
  animation: stamp-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
  filter: blur(8px);
}
@keyframes stamp-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-30%, -30%) scale(0.85); }
  50%      { opacity: 0.9; transform: translate(-30%, -30%) scale(1.08); }
}

/* Example 4 — Jacket run: horizontal speed-line sweep on the left side */
.example-4 .example-figure::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30%;
  width: 50%;
  height: 50%;
  background:
    linear-gradient(90deg, transparent, rgba(28, 36, 60, 0.35) 30%, transparent 70%) 0 30%/100% 4px no-repeat,
    linear-gradient(90deg, transparent, rgba(28, 36, 60, 0.32) 30%, transparent 70%) 0 50%/100% 5px no-repeat,
    linear-gradient(90deg, transparent, rgba(28, 36, 60, 0.30) 30%, transparent 70%) 0 70%/100% 4px no-repeat,
    linear-gradient(90deg, transparent, rgba(28, 36, 60, 0.28) 30%, transparent 70%) 0 90%/100% 3px no-repeat;
  animation: speed-streak 1.2s linear infinite;
  pointer-events: none;
  z-index: 3;
  will-change: transform;
}
@keyframes speed-streak {
  0%   { transform: translateX(-60%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(40%); opacity: 0; }
}

.example-num {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 46px;
  height: 46px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 4px 0 var(--coral-deep);
  transform: rotate(-8deg);
  z-index: 2;
}
.example-2 .example-num,
.example-4 .example-num {
  left: auto;
  right: -14px;
  transform: rotate(8deg);
  background: var(--marigold);
  box-shadow: 0 4px 0 #a96b13;
}

.example .en {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--ink);
}
.example .zh {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Highlight mark behind "pulled off" / "pull it off" */
.hl {
  position: relative;
  display: inline-block;
  padding: 0 4px;
  color: var(--coral-deep);
  font-weight: 700;
}
.hl::before {
  content: "";
  position: absolute;
  inset: 12% -2px;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(214, 138, 30, 0.35) 8%,
    rgba(214, 138, 30, 0.55) 50%,
    rgba(214, 138, 30, 0.35) 92%,
    transparent 100%
  );
  border-radius: 6px;
  transform: rotate(-1.5deg);
  z-index: -1;
}
.hl-strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--coral);
  background: linear-gradient(transparent 60%, var(--lemon) 60%);
  padding: 0 4px;
}

/* ============================================================
   5. COLLOCATIONS — marquee
   ============================================================ */
.collocations {
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(
    180deg,
    rgba(251, 207, 207, 0.25),
    rgba(255, 232, 154, 0.3)
  );
  overflow: hidden;
}
.collocations .section-head {
  padding: 0 var(--page-pad);
  margin-bottom: 1.25rem;
}
.marquee {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  cursor: grab;
  /* Hide the scrollbar while keeping native scrolling */
  scrollbar-width: none;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; user-select: none; }

.marquee-track {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1rem;
  width: max-content;
}

.colloc-pill {
  scroll-snap-align: center;
  transition:
    box-shadow 0.4s var(--ease-out),
    filter 0.4s ease;
}

/* Currently-playing pill: ring glow + brighter dye, preserves the pill's
   existing rotation transform via filter:drop-shadow + outline rather than
   transform-based scale. */
.colloc-pill.is-current {
  box-shadow: 0 0 0 3px var(--marigold), 0 6px 18px rgba(214, 138, 30, 0.35);
  filter: brightness(1.04) saturate(1.1);
  z-index: 5;
}
.colloc-pill.is-current .colloc-pill,
.colloc-pill.is-current .en {
  color: var(--coral);
}
.colloc-pill.is-current .play-btn-mini {
  transform: scale(1.1);
}
/* Hide the duplicate-loop copies — they were only needed for auto-scroll */
.colloc-pill[aria-hidden="true"] { display: none; }

.colloc-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: #fff;
  border: 3px dashed var(--mint);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1deg);
}
.colloc-pill.alt {
  border-color: var(--coral);
  background: var(--lemon);
  transform: rotate(1.2deg);
}
.colloc-pill .en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}
.colloc-pill .zh {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

/* ============================================================
   6. QUICK TIP
   ============================================================ */
.quick-tip {
  padding-top: 2.5rem;
}
.tip-card {
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      var(--lemon) 0,
      var(--lemon) 33px,
      rgba(255, 232, 154, 0.7) 33px,
      rgba(255, 232, 154, 0.7) 34px
    );
  border-radius: 18px;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
  border: 2px solid rgba(214, 138, 30, 0.25);
}
.tip-card header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.tip-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.1));
}
.tip-card h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.tip-card .kicker {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--marigold);
}
.tip-card .zh {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.formula {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  border: 2px dashed var(--marigold);
}
.formula li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
}
.formula .key {
  color: var(--coral);
  font-weight: 700;
  min-width: 3.5rem;
}
.formula .eq {
  color: var(--marigold);
  font-weight: 700;
  font-size: 1.7rem;
}
.formula li [lang="zh-CN"] {
  font-family: var(--font-zh);
  font-size: 1.15rem;
  font-weight: 600;
}

.combine {
  margin: 0.5rem 0 1.25rem;
  font-family: var(--font-zh);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}
.combine strong {
  color: var(--coral);
  font-weight: 700;
}

.remember {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.9rem;
  background: rgba(198, 69, 69, 0.08);
  border-radius: 12px;
  border-left: 4px solid var(--coral);
}
.remember-label {
  font-weight: 700;
  color: var(--coral);
}
.remember .zh {
  font-family: var(--font-zh);
  font-weight: 700;
  color: var(--coral);
}

/* ============================================================
   7. CLOSING CTA
   ============================================================ */
.cta {
  padding: 2.5rem var(--page-pad) 2rem;
  text-align: center;
  position: relative;
}

.cta-figure {
  margin: 0 -0.75rem 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  transform: rotate(-1deg);
  position: relative;
  /* Crop empty top sky so the boy + trophy sit higher in the frame */
  aspect-ratio: 4 / 5;
}

/* Tagline overlay sits in the cream/sky area below the boy + dog */
.cta-overlay {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 4%;
  z-index: 5;
  text-align: center;
  padding: 0.75rem 0.6rem 0.85rem;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 235, 0.0) 0%,
    rgba(255, 248, 222, 0.85) 18%,
    rgba(255, 248, 222, 0.95) 100%
  );
  border-radius: 14px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cta-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(255, 232, 154, 0.4);
  border-radius: 20px;
}
.cta-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 78%;  /* push image down — crops empty top sky */
}

.cta-line-1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
}

.cta-line-2 {
  margin: 0.5rem 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--coral);
  letter-spacing: 0.5px;
}
.cta-line-2 em {
  font-style: normal;
  color: var(--marigold);
  margin: 0 0.05em;
}
.cta-line-2 .cta-emphasis {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 1.2rem;
  color: var(--ink);
  background: linear-gradient(transparent 65%, var(--lemon) 65%);
  padding: 0 0.4rem;
}
.cta-star {
  display: inline-block;
  color: var(--marigold);
  font-size: 1.2em;
  animation: spin-slow 8s linear infinite;
  vertical-align: middle;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.cta-zh {
  margin: 0.4rem 0 0;
  font-family: var(--font-zh);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* ============================================================
   Sprite-sheet animations (codex 4-cell horizontal sheets)
   ============================================================
   Pattern: each cell width is shown via background-image + steps(N).
   The sheet is N cells wide, so background-size width = N * cell-display-width.
   Animation moves bg-position from 0 to -N * cell-w, with steps(N) clamping to
   each cell. Final step would land on cell N+1 (= empty), but with infinite
   looping it snaps cleanly back to cell 1.
   ============================================================ */
.sprite-anim {
  --frames: 4;
  --cycle: 1.6s;
  background-repeat: no-repeat;
  background-position: 0 0;
  /* Cell aspect — each animation overrides cell-w / cell-h below */
  width: var(--cell-w);
  height: var(--cell-h);
  background-size: calc(var(--cell-w) * var(--frames)) var(--cell-h);
  animation: sprite-cycle var(--cycle) steps(var(--frames)) infinite;
  will-change: background-position;
}
@keyframes sprite-cycle {
  to {
    background-position: calc(var(--cell-w) * var(--frames) * -1) 0;
  }
}

/* Hero boy: 4 poses (idle, thumbs-up, fist-raise, V-victory). Cell native 512x1024. */
.hero-anim {
  --cell-w: 280px;
  --cell-h: 560px;
  --cycle: 4.8s;          /* slow loop — feels like ambient breathing */
  background-image: url("images/hero-boy-sheet.png");
  filter: drop-shadow(0 18px 24px rgba(28, 36, 60, 0.18));
  transform: rotate(-3deg);
  margin: 0 auto;
}
.hero-figure { display: flex; justify-content: center; }

/* Bullseye + arrow: arrow flying in and impacting. Cell native 512x512. */
.bullseye-anim {
  --cell-w: 130px;
  --cell-h: 130px;
  --cycle: 2.6s;
  background-image: url("images/bullseye-arrow-sheet.png");
  filter: drop-shadow(0 4px 12px rgba(28, 36, 60, 0.18));
}

/* Mountain + flag: flag waves in 4 frames. Cell native 512x512. */
.mountain-anim {
  --cell-w: 130px;
  --cell-h: 130px;
  --cycle: 1.6s;          /* faster — flag flutter feels right at ~6Hz */
  background-image: url("images/mountain-flag-wave-sheet.png");
  filter: drop-shadow(0 4px 12px rgba(28, 36, 60, 0.18));
}

/* Jacket-yank: boy yanking off jacket. Cell native 512x512. */
.jacket-anim {
  --cell-w: 130px;
  --cell-h: 130px;
  --cycle: 2.0s;
  background-image: url("images/jacket-yank-sheet.png");
  filter: drop-shadow(0 4px 12px rgba(28, 36, 60, 0.18));
}

/* Pause sprite animations when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .sprite-anim {
    animation: none;
    background-position: 0 0;
  }
}

/* ============================================================
   Hover & active interactions (desktop hover / mobile tap)
   ============================================================ */

/* --- Hero figure: gentle wobble + lift on hover --- */
.hero-anim {
  transition:
    transform 0.6s var(--ease-out),
    filter 0.4s ease;
}
.hero-anim:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.04);
  filter: drop-shadow(0 28px 36px rgba(28, 36, 60, 0.28));
  /* Speed up the pose cycle slightly on hover for extra liveliness */
  --cycle: 2.4s;
}

/* --- Meaning cards: lift, straighten, deepen shadow --- */
.meaning-card {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.4s ease;
  cursor: default;
}
.meaning-card:hover,
.meaning-card:focus-within {
  transform: rotate(0deg) translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
}
.meaning-icon .sprite-anim {
  transition:
    transform 0.7s var(--ease-bounce),
    filter 0.4s ease;
}
.meaning-card:hover .meaning-icon .sprite-anim {
  transform: scale(1.12) rotate(-4deg);
  filter: drop-shadow(0 8px 16px rgba(28, 36, 60, 0.28));
  --cycle: 0.9s;          /* dramatic speed-up on hover */
}
.meaning-num {
  transition: transform 0.4s var(--ease-bounce);
}
.meaning-card:hover .meaning-num {
  transform: rotate(0deg) scale(1.15);
}

/* --- EXAMPLE CARDS: the key ask — image animates on hover --- */
.example {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.4s ease;
  cursor: pointer;
}
.example:hover,
.example:focus-within,
.example:active {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* The image figure itself: contained zoom + glow ring */
.example-figure {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.4s ease;
  will-change: transform;
}
.example:hover .example-figure,
.example:focus-within .example-figure,
.example:active .example-figure {
  transform: scale(1.03);
  box-shadow: 0 0 0 4px var(--lemon), 0 8px 24px rgba(28, 36, 60, 0.2);
}

/* The actual image inside: bigger zoom + Ken-Burns pan + saturation pop */
.example-figure img {
  transition:
    transform 0.7s var(--ease-out),
    filter 0.5s ease,
    object-position 1.4s var(--ease-out);
  will-change: transform, filter;
}
.example:hover .example-figure img,
.example:focus-within .example-figure img,
.example:active .example-figure img {
  transform: scale(1.08);
  filter: saturate(1.18) brightness(1.05) contrast(1.04);
  object-position: center 50%;
}

/* The number badge: pop, untilt, deepen */
.example-num {
  transition: transform 0.45s var(--ease-bounce);
}
.example:hover .example-num,
.example:focus-within .example-num,
.example:active .example-num {
  transform: rotate(0deg) scale(1.2);
}

/* The "pulled off" highlight glows brighter on hover */
.example .hl::before {
  transition: opacity 0.4s ease, filter 0.4s ease;
}
.example:hover .hl::before,
.example:active .hl::before {
  filter: saturate(1.5) brightness(1.1);
}

/* --- Collocation pills: scale + pull out on hover --- */
.colloc-pill {
  transition:
    transform 0.4s var(--ease-bounce),
    box-shadow 0.4s ease;
}
.colloc-pill:hover,
.colloc-pill:active {
  transform: rotate(0deg) scale(1.1);
  box-shadow: var(--shadow-md);
}

/* --- Quick Tip card: soft tilt-back + glow --- */
.tip-card {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.4s ease;
}
.tip-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(255, 232, 154, 0.6);
}

/* --- Closing CTA figure: parallax-style scale --- */
.cta-figure {
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.4s ease;
}
.cta-figure:hover {
  transform: rotate(0deg) scale(1.02) translateY(-4px);
  box-shadow: 0 24px 48px rgba(28, 36, 60, 0.28);
}
.cta-figure img {
  transition: transform 0.8s var(--ease-out), filter 0.5s ease;
}
.cta-figure:hover img {
  transform: scale(1.04);
  filter: saturate(1.12) brightness(1.04);
}

/* --- Key Idea: subtle lift --- */
.key-idea-card {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.4s ease;
}
.key-idea-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track {
    animation: none;
    transform: translateX(0);
  }
  .sparkle { opacity: 0.4; }
}

/* ============================================================
   Slightly wider phones — gentle scale up but no desktop layout
   ============================================================ */
@media (min-width: 480px) {
  :root {
    --page-pad: 1.5rem;
  }
  body {
    font-size: 17px;
  }
}

/* ============================================================
   Play button (click-to-play TTS audio)
   ============================================================ */
.play-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 2px 0 var(--coral-deep);
  vertical-align: middle;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease,
    background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.play-btn::before {
  /* Triangle "play" glyph drawn as a CSS shape — no font/emoji required */
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 2px;
}
.play-btn:hover {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 3px 0 var(--coral-deep);
}
.play-btn:active {
  transform: scale(0.92);
  box-shadow: 0 1px 0 var(--coral-deep);
}
.play-btn:focus-visible {
  outline: 3px dashed var(--marigold);
  outline-offset: 3px;
}
.play-btn.is-playing {
  background: var(--mint);
  box-shadow: 0 2px 0 #1f5b30;
  animation: play-btn-pulse 1.2s ease-in-out infinite;
}
.play-btn.is-playing::before {
  /* Switch glyph to a square "stop" while playing */
  width: 9px;
  height: 9px;
  border: 0;
  background: #ffffff;
  border-radius: 1.5px;
  margin: 0;
}
@keyframes play-btn-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* Smaller variant for the tight collocation pills */
.play-btn-mini {
  width: 22px;
  height: 22px;
  margin-left: 0.4rem;
}

/* "Play all" variant — sits next to a section title; slightly larger + lifted */
.play-all-btn {
  width: 32px;
  height: 32px;
  margin-left: 0.6rem;
  vertical-align: -6px;
  background: var(--marigold);
  box-shadow: 0 2px 0 #a96b13;
}
.play-all-btn:hover {
  box-shadow: 0 3px 0 #a96b13;
}
.play-all-btn:active {
  box-shadow: 0 1px 0 #a96b13;
}
.play-all-btn::before {
  /* Slightly larger triangle, plus a subtle ">>" feel via offset */
  border-width: 7px 0 7px 11px;
  margin-left: 3px;
}
.play-all-btn.is-playing {
  background: var(--mint);
  box-shadow: 0 2px 0 #1f5b30;
}
.play-btn-mini::before {
  border-width: 5px 0 5px 7px;
}
.play-btn-mini.is-playing::before {
  width: 7px;
  height: 7px;
}

/* Restructure colloc-pill so play button sits next to text */
.colloc-pill {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.colloc-pill .colloc-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

/* In the CTA overlay, lighten the play button so it pops on the cream layer */
.cta-overlay .play-btn {
  width: 30px;
  height: 30px;
}
.cta-overlay .play-btn::before {
  border-width: 7px 0 7px 10px;
}

@media (prefers-reduced-motion: reduce) {
  .play-btn,
  .play-btn.is-playing {
    animation: none;
    transition: none;
  }
}

/* ============================================================
   HERO REDESIGN — content-rich overview with meaning preview row
   ============================================================ */

/* --- Override: hero is no longer 92vh tall --- */
.hero {
  min-height: auto;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

/* --- Override: hero-figure no longer fills remaining flex space --- */
.hero-figure {
  margin: 0;
  max-width: none;
  flex: none;
  width: 100%;
  display: block;
}

/* (Hero boy sprite-sheet removed at user's request — section is now title-only) */

/* (Question speech-bubble + flow arrow were removed in favour of the boy
   tucked under the trophy on the right side.) */

/* === Page TOC: tap any card to jump to that section === */
.hero-toc {
  margin: 0.1rem -0.25rem 0;
  padding: 0.1rem 0.25rem 0;
}
.hero-toc-title {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
}
.hero-toc-title .hero-toc-en {
  position: relative;
  padding: 0 0.15rem;
}
.hero-toc-title .hero-toc-en::after {
  /* Hand-painted lemon highlighter behind the EN label */
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 0.5em;
  background: var(--lemon);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1deg);
}
.hero-toc-title .hero-toc-zh {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
}

/* 2-column grid — 6 chip cards */
.hero-toc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-toc-card {
  --rot: 0deg;
  position: relative;
  opacity: 0;
  transform: translateY(14px) rotate(var(--rot));
  animation: hero-toc-rise 550ms var(--ease-out) forwards;
}
.hero-toc-1 { --rot: -1.5deg; animation-delay: 700ms; }
.hero-toc-2 { --rot:  1deg;   animation-delay: 780ms; }
.hero-toc-3 { --rot:  -1deg;  animation-delay: 860ms; }
.hero-toc-4 { --rot:  1.5deg; animation-delay: 940ms; }
.hero-toc-5 { --rot:  -1deg;  animation-delay: 1020ms; }
.hero-toc-6 { --rot:  1.5deg; animation-delay: 1100ms; }
@keyframes hero-toc-rise {
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot));
  }
}

.hero-toc-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  border: 2px solid rgba(28, 36, 60, 0.06);
  border-radius: 14px;
  padding: 0.65rem 0.7rem 0.65rem 0.55rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  min-height: 70px;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
}
.hero-toc-link::before {
  /* Soft accent stripe on the left edge — color matches section */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent, var(--coral));
}
.hero-toc-1 .hero-toc-link { --accent: var(--coral); }
.hero-toc-2 .hero-toc-link { --accent: var(--marigold); }
.hero-toc-3 .hero-toc-link { --accent: var(--mint); }
.hero-toc-4 .hero-toc-link { --accent: #5a86b8; }   /* soft blue */
.hero-toc-5 .hero-toc-link { --accent: #9c3a8a; }   /* soft plum */
.hero-toc-6 .hero-toc-link { --accent: var(--coral-deep); }

.hero-toc-link:hover {
  transform: translateY(-3px) rotate(0deg);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.hero-toc-link:active {
  transform: scale(0.97) rotate(0deg);
  transition-duration: 120ms;
}

.hero-toc-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent, var(--coral));
  letter-spacing: -1px;
}

.hero-toc-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.hero-toc-en-row {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-toc-zh-row {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-toc-emoji {
  flex-shrink: 0;
  font-size: 1.3rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}
.hero-toc-mini {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.hero-toc-mini img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-left: -6px;
  border-radius: 4px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}
.hero-toc-mini img:first-child { margin-left: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-toc-card {
    opacity: 1;
    transform: rotate(var(--rot));
    animation: none;
  }
}

@media (max-width: 380px) {
  .hero-guide { gap: 0.4rem; }
  .hero-question-en { font-size: 1.35rem; }
  .hero-question-zh { font-size: 0.85rem; }
  .hero-toc-link { padding: 0.55rem 0.55rem 0.55rem 0.5rem; gap: 0.45rem; min-height: 64px; }
  .hero-toc-num { font-size: 1.4rem; }
  .hero-toc-en-row { font-size: 0.95rem; }
  .hero-toc-zh-row { font-size: 0.72rem; }
  .hero-toc-emoji { font-size: 1.15rem; }
  .hero-toc-title { font-size: 1.4rem; }
}
