/* Chinese-language first-screen links and phrase-card dialog for the isolated preview. */

main > section.china-quick {
  max-width: none;
  padding: clamp(20px, 3vw, 34px) 0 clamp(22px, 3.2vw, 38px);
  border-block: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.china-quick-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 8px clamp(20px, 4vw, 52px);
}
.china-quick h2 {
  font-family: var(--han);
  font-size: clamp(23px, 2.7vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--red-ink);
}
.china-quick-note { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.china-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.china-quick-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #cdbba2;
  border-radius: 5px;
  background: var(--card);
  color: var(--red-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.china-quick-actions a:first-child { border-color: var(--red); background: var(--red); color: var(--on-dark); }
.china-quick-actions a:hover { border-color: var(--gold); background: #f1e5d4; color: var(--red-ink); }
.china-quick-actions a:first-child:hover { background: var(--red-ink); color: #fff; }
.china-quick-address {
  grid-column: 1 / -1;
  display: flex;
  align-items: start;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #ded1c1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.china-quick-address::before { content: "⌖"; flex: none; color: var(--red); font-size: 16px; line-height: 1.3; }

/* Compact guide link next to the full-menu introduction. */
.menu-phrase-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 14px;
  padding: 7px 13px;
  border: 1px solid rgba(243, 217, 164, .72);
  border-radius: 5px;
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.menu-phrase-link:hover { border-color: var(--gold-soft); background: rgba(255, 255, 255, .08); color: #fff; }

/* Phrase cards stay comfortable to tap and retain a clear keyboard focus. */
.phrase-grid [data-phrase-open] {
  display: grid;
  align-content: center;
  width: 100%;
  min-height: 76px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 5px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.phrase-grid li:has([data-phrase-open]) { padding: 0; border: 0; background: transparent; }
.phrase-grid [data-phrase-open]:hover { border-color: var(--gold); background: #fffdf8; box-shadow: 0 5px 14px rgba(35, 24, 22, .07); }
.phrase-grid [data-phrase-open]:focus-visible,
.menu-phrase-link:focus-visible,
.china-quick-actions a:focus-visible,
.menu-play-sheet [data-phrase-close]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Oversized, copyable-looking language rows in the shared phrase dialog. */
.menu-play-sheet .phrase-large-th,
.menu-play-sheet .phrase-large-zh,
.menu-play-sheet .phrase-large-en { display: block; overflow-wrap: anywhere; }
.menu-play-sheet .phrase-large-zh {
  margin-top: 18px;
  color: var(--red-ink);
  font-family: var(--han-sans);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.35;
}
.menu-play-sheet .phrase-large-th {
  margin-top: 15px;
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(32px, 9vw, 54px);
  font-weight: 700;
  line-height: 1.5;
}
.menu-play-sheet .phrase-large-en {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.menu-play-sheet [data-phrase-close] {
  position: absolute;
  inset: 14px 14px auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--red);
  border-radius: 5px;
  background: var(--red);
  color: var(--on-dark);
  font-size: 23px;
  font-weight: 700;
  cursor: pointer;
}
.menu-play-sheet [data-phrase-close]:hover { background: var(--red-ink); }

@media (max-width: 820px) {
  .china-quick-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .china-quick-actions { gap: 7px; }
  .china-quick-address { margin-top: 0; }
}
@media (max-width: 520px) {
  main > section.china-quick { padding-block: 18px 20px; }
  .china-quick h2 { font-size: 24px; }
  .china-quick-actions { grid-template-columns: minmax(0, 1fr); }
  .china-quick-actions a { justify-content: flex-start; min-height: 48px; padding-inline: 14px; text-align: left; }
  .china-quick-address { font-size: 12px; }
  .phrase-grid [data-phrase-open] { min-height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .china-quick-actions a,
  .phrase-grid [data-phrase-open] { transition: none; }
}
