/* 閱與 Gem｜聽發音 — mobile-first styles.
   Colors are checked for WCAG AA. Note: white text on tangerine is only 2.96:1,
   so the "playing" state uses warm-black text on tangerine (5.45:1) instead. */

/* Fonts, both hosted here (nothing is loaded from Google):
   - Fredoka for English and numbers — same as the main site.
   - GenSenRounded (源泉圓體) for Chinese, 注音, and any symbol Fredoka lacks.
   Fredoka is one variable file for every weight. The GenSenRounded files in fonts/
   hold only the characters this page uses; `node tools/build.js` refreshes them
   by itself whenever new characters appear. */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-latin-ext-v17.337681f6b8.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-latin-v17.27d49d7c83.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "GenSenRounded TW";
  src: url("../fonts/GenSenRounded2TW-Medium-subset.1fc9c0236b.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GenSenRounded TW";
  src: url("../fonts/GenSenRounded2TW-Bold-subset.d5a3e6603c.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0e8174;        /* primary: nav, icons, buttons (white text on it: 4.76:1) */
  --teal-text: #0b6b60;   /* teal for text on light backgrounds (5.98:1 on page bg) */
  --tangerine: #E8763A;   /* accent / playing state */
  --tangerine-text: #9a3f12; /* tangerine-family text on light bg (6.36:1) */
  --yellow: #F5C842;      /* highlights */
  --beige: #EDE0CC;       /* card backgrounds */
  --ink: #2a1f0e;         /* warm black text */
  --ink-soft: #5c4a30;    /* secondary text (6.51:1 on beige) */
  --page: #FBF7F0;        /* page background */
  --disabled-bg: #F4EEE4;
  --mint: #C7E9E1;        /* mint teal: consonant digraph tiles (ch, sh, th, ng, zh) */

  --radius: 18px;
  --radius-sm: 12px;
  --font: "Fredoka", "GenSenRounded TW", system-ui, -apple-system, "PingFang TC",
          "Microsoft JhengHei", "Heiti TC", sans-serif;
}
/* 简体: use Simplified Chinese glyph shapes */
:root:lang(zh-Hans) {
  --font: "Fredoka", "GenSenRounded TW", system-ui, -apple-system, "PingFang SC",
          "Microsoft YaHei", "Heiti SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- Header ---------- */
.site-header {
  padding: 24px 16px 12px;
  padding-top: max(24px, env(safe-area-inset-top));
  max-width: 760px;
  margin: 0 auto;
}
.header-top { position: relative; }
/* The 繁/简 switch sits at the top right; the title leaves room for it. */
.header-top .lang-toggle { position: absolute; top: 0; right: 0; }
.site-header h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 134px 0 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--teal-text);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.brand-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.brand-logo { width: 44px; height: 44px; flex: 0 0 auto; display: block; }
.site-header h1 .brand,
.site-header h1 .sub { white-space: nowrap; }
.site-header h1 .sub { flex-basis: 100%; }   /* subtitle on its own line under the logo */
@media (min-width: 640px) {
  .site-header h1 { font-size: 1.6rem; }
  .site-header h1 .sub { flex-basis: auto; }
}
.resource-name {
  margin: 6px 0 0;
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 2px 10px;
  border-radius: 999px;
}
.instruction {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

/* 繁 / 简 toggle (top right) */
.lang-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 3px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: #fff;
}
.lang-btn {
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--teal-text);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}
.lang-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* 第一冊 / 第二冊 / 第三冊 tabs */
.book-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0 12px;
}
.book-tab {
  position: relative;
  flex: 1 1 0;
  min-height: 48px;
  padding: 0 4px;
  white-space: nowrap;   /* four tabs (incl. 字母發音) must stay on one line on a phone */
  border: 2px solid var(--tangerine);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--tangerine-text);   /* dark tangerine: 6.4:1 on white */
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
/* Selected tab: filled tangerine with warm-black text (5.45:1) */
.book-tab[aria-current="true"] { background: var(--tangerine); border-color: var(--tangerine); color: var(--ink); }
.book-tab.is-locked { border-style: dashed; }
.book-tab[aria-current="true"] .pill-lock { background: #fff; color: var(--ink); }
.book-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (min-width: 768px) { .book-tab { flex: 0 0 140px; } }

/* ---------- Sticky unit navigation ---------- */
.unit-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 3px;
  padding: 8px 10px;
  background: rgba(251, 247, 240, 0.96);
  border-bottom: 1px solid var(--beige);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.unit-nav::-webkit-scrollbar { display: none; }
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .unit-nav {
    background: rgba(251, 247, 240, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.unit-pill {
  flex: 1 1 0;      /* equal widths; ten letters still fit a 375px phone */
  min-width: 0;
  min-height: 44px;
  padding: 0 2px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-text);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
.unit-pill { position: relative; }
.unit-pill.is-locked { border-style: dashed; }
.pill-lock {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.pill-lock svg { width: 11px; height: 11px; }
/* Keep the badge inside the pill's edges so the row never scrolls sideways (Safari counts overhang). */
.unit-pill .pill-lock { right: 1px; top: -4px; }
.unit-pill[aria-current="true"] {
  background: var(--teal);
  color: #fff;
}
@media (min-width: 768px) {
  .unit-nav { justify-content: center; gap: 8px; }
  .unit-pill { flex: 0 0 64px; }
}

/* ---------- Content ---------- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 24px;
}
.loading, .empty {
  color: var(--ink-soft);
}
.unit-heading {
  font-size: 2.5rem;
  line-height: 1;
  margin: 16px 0 4px;
  color: var(--ink);
}
.section { margin-top: 24px; }
.section-title {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--teal-text);
}
.tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #FDF3D2;           /* soft yellow */
  border: 1px solid var(--yellow);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.tip strong { margin-right: 4px; }
.intro {
  margin: -4px 0 12px;
  color: var(--ink-soft);
}
.empty {
  margin: 0;
  padding: 14px;
  border: 2px dashed var(--beige);
  border-radius: var(--radius);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.grid.story { grid-template-columns: 1fr; }

/* ---------- Play buttons ---------- */
.play {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--beige);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, background-color 0.15s ease;
}
.play:active { transform: scale(0.98); }
@media (hover: hover) {
  .play:hover:not(:disabled) { border-color: var(--teal); }
}

.icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}
.icon svg { width: 24px; height: 24px; }
.icon .wave { opacity: 0.9; }

.label { display: flex; flex-direction: column; min-width: 0; }
.en {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
  overflow-wrap: break-word; /* only splits a word if it truly can't fit */
}
/* "≈ ㄙ" / "≈ s" next to the letter and the letter sound */
.en-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.approx {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--tangerine); /* warm-black text on tangerine: 5.45:1 */
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.6;
  white-space: nowrap;
}
.approx-sign { font-weight: 500; }
.unit-heading .approx {
  font-size: 1.4rem;
  vertical-align: middle;
  margin-left: 12px;
}
.note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: 4px;
}
/* Letter-sound cards with a longer description take the full row */
.play.has-note { grid-column: 1 / -1; align-items: flex-start; }
.play.has-note .zh { font-size: 1rem; color: var(--ink); }
.play.is-playing .note { color: var(--ink); }
.play.is-playing .approx { background: #fff; }

.zh {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.35;
  margin-top: 2px;
}
.badge {
  display: none;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 4px;
}

/* Story / sentence cards: wider, comfortable reading size */
.story .play { align-items: flex-start; padding: 16px; }
.story .en {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.45;
}
.story .zh { font-size: 1rem; margin-top: 6px; }

/* State: playing */
.play.is-playing {
  background: var(--tangerine);
  border-color: var(--tangerine);
}
.play.is-playing .zh { color: var(--ink); }
.play.is-playing .icon { background: var(--ink); }
.play.is-playing .wave { animation: wave 0.9s ease-in-out infinite; }
.play.is-playing .wave-2 { animation-delay: 0.15s; }
@keyframes wave {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}
.play.is-playing::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(232, 118, 58, 0.55);
  animation: pulse 1.2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  to { box-shadow: 0 0 0 10px rgba(232, 118, 58, 0); }
}

/* State: disabled (音檔準備中) */
.play:disabled {
  cursor: not-allowed;
  background: var(--disabled-bg);
  border: 2px dashed #d9c9ae;
}
.play:disabled .icon { background: #b9a88c; }
.play:disabled .en { color: var(--ink-soft); }
.play:disabled .badge,
.play.is-error .badge { display: block; }
.play:disabled .badge { color: var(--ink-soft); }

/* State: error (temporary — e.g. offline; can tap to retry) */
.play.is-error {
  background: #FDEBDD;
  border-color: var(--tangerine-text);
}
.play.is-error .badge { color: var(--tangerine-text); }

/* Visible focus for keyboard users */
.play:focus-visible,
.unit-pill:focus-visible,
.help summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Help + footer ---------- */
.help {
  max-width: 728px;
  margin: 8px 16px 0;
  padding: 0;
  background: #fff;
  border: 2px solid var(--beige);
  border-radius: var(--radius);
}
@media (min-width: 760px) { .help { margin: 8px auto 0; } }
.help summary {
  padding: 14px 16px;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
  color: var(--teal-text);
  border-radius: var(--radius);
}
.help-body { padding: 0 16px 14px; }
.help-body p { margin: 0 0 8px; }

/* Button back to the main site, above the footer. */
.back-home-wrap { text-align: center; margin: 28px 16px 0; }
.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.back-home:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 24px 16px 32px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion: keep the color change, drop the animation */
@media (prefers-reduced-motion: reduce) {
  .play { transition: none; }
  .play:active { transform: none; }
  .play.is-playing .wave { animation: none; opacity: 1; }
  .play.is-playing::after { animation: none; box-shadow: 0 0 0 4px rgba(232, 118, 58, 0.45); }
}

[hidden] { display: none !important; }

.nowrap { white-space: nowrap; }

/* ---------- Locked unit: password box ---------- */
.heading-lock {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 12px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.heading-lock svg { width: 20px; height: 20px; }

.unlock-intro { margin: 0 0 16px; }
.unlock-form {
  padding: 16px;
  background: var(--beige);
  border-radius: var(--radius);
}
.unlock-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.unlock-row { display: flex; gap: 8px; }
.pw-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;        /* 16px+ stops iPhone zooming in when the field is focused */
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.unlock-btn {
  flex: 0 0 auto;
  min-width: 84px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
.unlock-btn:disabled { opacity: 0.7; cursor: progress; }
.pw-input:focus-visible,
.unlock-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.pw-hint { margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.pw-msg { margin: 8px 0 0; min-height: 1.5em; font-weight: 700; color: var(--tangerine-text); }

/* The workbook card under the password box (locked books with a "promo"). */
.promo { margin-top: 24px; }
.promo-lead { margin: 0 0 10px; font-weight: 700; color: var(--teal-text); }
.promo-card {
  display: grid;
  grid-template-columns: minmax(96px, 34%) 1fr;
  gap: 12px 14px;
  align-items: start;
  padding: 14px;
  background: #fff;
  border: 2px solid var(--beige);
  border-radius: var(--radius);
}
.promo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--beige);
}
.promo-body { min-width: 0; }
.promo-title { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.35; color: var(--ink); }
.promo-meta { margin: 0 0 8px; font-weight: 700; color: var(--tangerine-text); }
.promo-desc { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }
.promo-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: var(--radius-sm);
  background: var(--tangerine);   /* warm-black text on tangerine: 5.45:1 */
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.promo-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Story cards: pause / resume and half speed ---------- */
.story-card { display: flex; flex-direction: column; gap: 8px; }
.story-tools { display: flex; gap: 8px; }
.tool-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid var(--tangerine);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--tangerine-text);   /* dark tangerine on white: 6.4:1 */
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tool-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.tool-btn[aria-pressed="true"] { background: var(--tangerine); color: var(--ink); }   /* 5.45:1 */
.tool-btn:disabled {
  border: 2px dashed #d9c9ae;
  background: var(--disabled-bg);
  color: var(--ink-soft);
  opacity: 0.75;
  cursor: not-allowed;
}
.tool-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .tool-btn:hover:not(:disabled) { filter: brightness(0.97); } }

/* Paused story: outlined instead of filled, no pulse */
.play.is-paused { background: #FDEBDD; border-color: var(--tangerine); }
.play.is-paused .icon { background: var(--tangerine-text); }

/* ---------- 字母發音: the 44 sounds ---------- */
.ph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 96px;
  padding: 10px 6px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--beige);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease;
}
.ph:active { transform: scale(0.97); }
@media (hover: hover) { .ph:hover:not(:disabled) { border-color: var(--teal); } }
.ph-g {
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--teal-text);
}
.ph-w { font-size: 0.85rem; line-height: 1.2; color: var(--ink-soft); }
.ph-w u {
  /* A border instead of text-decoration: it sits below the descenders of j, y, g, p, q instead of running through them. */
  text-decoration: none;
  display: inline-block;
  min-width: 0.6em;                 /* narrow letters (j, l, i) would otherwise get a dot-sized underline */
  text-align: center;
  border-bottom: 2px solid var(--tangerine);
  color: var(--ink);   /* soft black; only the underline is tangerine */
  font-weight: 600;
}
.ph.is-playing .ph-w u { border-bottom-color: var(--ink); }   /* tile turns tangerine while playing */   /* tile turns tangerine while playing */
/* Vowel sounds and vowel teams: tangerine letters. Consonant digraphs: mint teal box. */
.ph-vowel .ph-g { color: var(--tangerine); }
.ph-digraph { background: var(--mint); }
@media (hover: hover) { .ph-digraph:hover:not(:disabled) { border-color: var(--teal); } }
.ph.is-playing { background: var(--tangerine); border-color: var(--tangerine); }
.ph.is-playing.ph-vowel .ph-g { color: var(--ink); }   /* tile is tangerine while playing */
.ph.is-playing .ph-g,
.ph.is-playing .ph-w { color: var(--ink); }
.ph.is-playing::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(232, 118, 58, 0.55);
  animation: pulse 1.2s ease-out infinite;
  pointer-events: none;
}
.ph.is-error { background: #FDEBDD; border-color: var(--tangerine-text); }
.ph.is-error .badge { display: block; color: var(--tangerine-text); }
.ph:disabled { cursor: not-allowed; background: var(--disabled-bg); border: 2px dashed #d9c9ae; }
.ph:disabled .ph-g, .ph:disabled .ph-w { color: var(--ink-soft); }
.ph:disabled .badge { display: block; color: var(--ink-soft); font-size: 0.7rem; }
.ph:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .ph { transition: none; }
  .ph:active { transform: none; }
  .ph.is-playing::after { animation: none; box-shadow: 0 0 0 4px rgba(232, 118, 58, 0.45); }
}

/* The hover / tap card: sound marker + 中文 guide */
.ph-tip {
  position: fixed;
  z-index: 30;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(42, 31, 14, 0.18);
  pointer-events: none;
}
.ph-tip-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ph-tip-marker { font-weight: 700; font-size: 1.7rem; line-height: 1.2; color: var(--ink); }
.ph-tip-zh { text-wrap: pretty; margin: 6px 0 0; font-size: 0.95rem; line-height: 1.45; color: var(--ink); }
