.idiom-adventure {
  color-scheme: light;
  --ia-ink: #18342e;
  --ia-muted: #50645b;
  --ia-deep: #0e453b;
  --ia-mint: #d9ede3;
  --ia-paper: #f8f5e9;
  --ia-white: #fffefa;
  --ia-line: #d5ded1;
  --ia-gold: #f5cc65;
  --ia-gold-ink: #31270d;
  --ia-purple: #e9e0f1;
  background: radial-gradient(circle at 16% 17%, #fffbed 0, transparent 470px), var(--ia-paper);
  color: var(--ia-ink);
  font-family: 'PingFang HK', 'Noto Sans HK', 'Microsoft JhengHei', system-ui, sans-serif;
  min-height: 100dvh;
  line-height: 1.6;
  letter-spacing: .015em;
}
.idiom-adventure *, .idiom-adventure *::before, .idiom-adventure *::after { box-sizing: border-box; }
.idiom-adventure h2, .idiom-adventure h3, .idiom-adventure p, .idiom-adventure dl, .idiom-adventure dd, .idiom-adventure figure { margin: 0; }
.idiom-adventure button, .idiom-adventure input, .idiom-adventure textarea { font: inherit; }
.idiom-adventure button { cursor: pointer; color: inherit; touch-action: manipulation; }
.idiom-adventure button:disabled { cursor: default; }
.idiom-adventure :focus-visible { outline: 3px solid #6a3aa2; outline-offset: 4px; }
.idiom-adventure h2[tabindex]:focus { outline: none; }
.idiom-adventure button, .idiom-adventure input, .idiom-adventure textarea { -webkit-tap-highlight-color: transparent; }
.idiom-adventure .ia-top { background: var(--ia-white); border-bottom: 1px solid var(--ia-line); }
.idiom-adventure .ia-top-inner { max-width: 1130px; min-height: 73px; padding: 0 30px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.idiom-adventure .ia-top nav { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.idiom-adventure .ia-button { border: 1px solid transparent; border-radius: 12px; padding: 10px 15px; min-height: 44px; text-align: center; background: none; font-weight: 700; }
.idiom-adventure .ia-button:hover:not(:disabled) { filter: brightness(.96); }
.idiom-adventure .ia-brand { display: flex; gap: 10px; align-items: center; padding: 0; white-space: nowrap; font-weight: 850; }
.idiom-adventure .ia-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ia-deep); color: #fff9e5; font-family: 'Songti TC', 'Noto Serif TC', serif; font-size: 21px; }
.idiom-adventure .ia-nav { white-space: nowrap; padding-inline: 10px; color: var(--ia-muted); font-size: .93rem; }
.idiom-adventure .ia-nav:hover { background: #edf4ec; }
.idiom-adventure .ia-nav > span:first-child { color: #217960; }
.idiom-adventure .ia-score { display: inline-flex; align-items: center; gap: 5px; background: #f9efce; border: 1px solid #e6dba9; border-radius: 20px; padding: 5px 12px; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.idiom-adventure .ia-score span { font-size: 1rem; line-height: 1; color: #85551a; }
.idiom-adventure .ia-main { max-width: 1130px; margin: auto; padding: clamp(18px, 4.4vw, 53px) 30px 60px; }
.idiom-adventure h2 { font-size: clamp(1.65rem, 3.4vw, 2.55rem); font-weight: 900; line-height: 1.22; color: var(--ia-ink); }
.idiom-adventure .ia-hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; position: relative; isolation: isolate; align-items: center; min-height: 405px; border: 1px solid #114c41; border-radius: 26px; padding: clamp(22px,5vw,59px); background: linear-gradient(128deg, #0a3f35 28%, #145749 68%, #165949); color: #fff9e7; overflow: hidden; box-shadow: 0 13px 25px #143b301d; }
.idiom-adventure .ia-hero h2 { font-family: 'Songti TC', 'Noto Serif TC', serif; font-size: clamp(2.4rem,6.2vw,4.55rem); color: #fff9e7; letter-spacing: .04em; white-space: nowrap; }
.idiom-adventure .ia-hero-text { position: relative; z-index: 1; }
.idiom-adventure .ia-hero-text > p:not(.ia-kicker) { max-width: 23em; margin-top: 15px; line-height: 1.9; color: #e4f0e6; font-size: .99rem; }
.idiom-adventure .ia-kicker { display: flex; gap: 8px; align-items: center; font-size: .79rem; font-weight: 800; color: #24654e; letter-spacing: .09em; margin-bottom: 9px; }
.idiom-adventure .ia-kicker i { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 2px; background: #489475; transform: rotate(45deg); }
.idiom-adventure .ia-hero .ia-kicker { color: #efdb94; }
.idiom-adventure .ia-hero .ia-kicker i { background: #f5cd67; }
.idiom-adventure .ia-button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 16px 0 0; }
.idiom-adventure .ia-button-row .ia-button { flex: 0 0 auto; }
.idiom-adventure .ia-primary { background: var(--ia-gold); border-color: #e1b95b; color: var(--ia-gold-ink); }
.idiom-adventure .ia-primary:disabled { background: #e9e1c8; border-color: #ded5bc; color: #69634d; }
.idiom-adventure .ia-secondary { background: var(--ia-white); border-color: #c7d8c9; color: var(--ia-deep); }
.idiom-adventure .ia-hero .ia-secondary { background: #ffffff0e; color: #fffbea; border-color: #c0d8c479; }
.idiom-adventure .ia-hero-text > p.ia-subtle { font-size: .8rem; margin-top: 12px; }
.idiom-adventure .ia-hero-art { position: relative; aspect-ratio: 1.36; min-width: 0; }
.idiom-adventure .ia-rays { position: absolute; inset: -14% -12%; background: repeating-conic-gradient(from -9deg at 50% 50%, #d0e0aa17 0deg 7deg, transparent 7deg 18deg); border-radius: 50%; mask-image: radial-gradient(circle, black, transparent 68%); }
.idiom-adventure .ia-postcard { position: absolute; border: 5px solid #fff0c6; border-bottom-width: 12px; border-radius: 12px; box-shadow: 0 8px 17px #0827227a; background: #e1ae61; overflow: hidden; width: 48%; aspect-ratio: .98; }
.idiom-adventure .ia-postcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idiom-adventure .ia-post-2 { transform: rotate(14deg); right: 1%; bottom: 6%; }
.idiom-adventure .ia-post-1 { transform: rotate(-14deg); left: 1%; bottom: 9%; }
.idiom-adventure .ia-post-0 { transform: rotate(-4deg); left: 29%; top: 6%; width: 49%; z-index: 1; }
.idiom-adventure .ia-hero-spark { position: absolute; color: #f7d67c; z-index: 2; font-size: 1.3rem; }
.idiom-adventure .ia-spark-one { left: 7%; top: 3%; }
.idiom-adventure .ia-spark-two { right: 3%; top: 5%; }
.idiom-adventure .ia-spark-three { right: 26%; bottom: 1%; }
.idiom-adventure .ia-quick { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; margin-top: 20px; }
.idiom-adventure .ia-quick-card { min-width: 0; text-align: left; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center; background: var(--ia-white); border: 1px solid var(--ia-line); padding: 13px; border-radius: 15px; }
.idiom-adventure .ia-quick-card strong, .idiom-adventure .ia-quick-card > span:nth-child(2) > span { display: block; }
.idiom-adventure .ia-quick-card > span:nth-child(2) > span { font-size: .72rem; font-weight: 500; color: var(--ia-muted); }
.idiom-adventure .ia-quick-icon { display: inline-grid; place-content: center; inline-size: 42px; block-size: 42px; border-radius: 10px; flex: 0 0 auto; font-size: 1.24rem; font-weight: 700; }
.idiom-adventure .ia-green { background: var(--ia-mint); color: #155447; }
.idiom-adventure .ia-yellow { background: #f9ebbb; color: #75521b; }
.idiom-adventure .ia-purple { background: var(--ia-purple); color: #633f78; }
.idiom-adventure .ia-arrow { color: #30765c; }
.idiom-adventure .ia-page-head { margin-bottom: 19px; }
.idiom-adventure .ia-page-head > p:last-child, .idiom-adventure .ia-chapter-intro p:last-child { margin-top: 10px; color: var(--ia-muted); }
.idiom-adventure .ia-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; max-width: 620px; margin-bottom: 18px; }
.idiom-adventure .ia-tabs button { display: grid; background: var(--ia-white); border: 1px solid var(--ia-line); border-radius: 11px; padding: 7px 4px; }
.idiom-adventure .ia-tabs button span { color: var(--ia-muted); font-size: .76rem; }
.idiom-adventure .ia-tabs button[aria-pressed="true"] { background: var(--ia-deep); border-color: var(--ia-deep); color: #fffdf6; }
.idiom-adventure .ia-tabs button[aria-pressed="true"] span { color: #deeee4; }
.idiom-adventure .ia-chapter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.idiom-adventure .ia-chapter-card { width: 100%; display: grid; padding: 0; text-align: left; border: 1px solid var(--ia-line); background: var(--ia-white); border-radius: 13px; overflow: hidden; }
.idiom-adventure .ia-chapter-card:hover { border-color: #739b83; }
.idiom-adventure .ia-chapter-photo { display: block; position: relative; background: #d3e8df; aspect-ratio: 1.65; overflow: hidden; }
.idiom-adventure .ia-chapter-photo img, .idiom-adventure .ia-intro-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.idiom-adventure .ia-chapter-number { position: absolute; left: 9px; bottom: 9px; color: #fff9de; background: #153e34; padding: 2px 8px; font-size: .8rem; font-weight: 800; border-radius: 5px; }
.idiom-adventure .ia-chapter-label { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 9px; }
.idiom-adventure .ia-chapter-label small { color: var(--ia-muted); white-space: nowrap; font-size: .72rem; }
.idiom-adventure .ia-screen-chapter, .idiom-adventure .ia-screen-exercise, .idiom-adventure .ia-screen-done, .idiom-adventure .ia-screen-term, .idiom-adventure .ia-screen-review { max-width: 790px; }
.idiom-adventure .ia-breadcrumb { padding-bottom: 12px; }
.idiom-adventure .ia-link { padding: 5px 1px; min-height: 41px; text-decoration: underline; text-underline-offset: 4px; color: #175b49; background: transparent; font-size: .88rem; }
.idiom-adventure .ia-chapter-intro { display: grid; grid-template-columns: 1fr max(29%,130px); gap: 18px; align-items: center; padding: 20px; background: #e2eee3; border-radius: 16px; }
.idiom-adventure .ia-intro-art { aspect-ratio: 1.2; border: 3px solid #fffaf0; border-radius: 10px; overflow: hidden; }
.idiom-adventure .ia-paths { display: grid; gap: 11px; margin-top: 14px; }
.idiom-adventure .ia-path { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; background: var(--ia-white); border: 1px solid var(--ia-line); border-radius: 13px; padding: 14px; }
.idiom-adventure .ia-path small, .idiom-adventure .ia-path p { color: var(--ia-muted); font-size: .82rem; }
.idiom-adventure .ia-exercise-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .88rem; color: var(--ia-muted); }
.idiom-adventure .ia-exercise-top > div { display: flex; gap: 13px; align-items: center; }
.idiom-adventure .ia-track { display: flex; gap: 5px; margin: 0 0 12px; }
.idiom-adventure .ia-track span { flex: 1; height: 6px; border-radius: 10px; background: #dce6da; }
.idiom-adventure .ia-track span.complete { background: #48866a; }
.idiom-adventure .ia-track span.current { background: #c47c29; }
.idiom-adventure .ia-question, .idiom-adventure .ia-term, .idiom-adventure .ia-finish { padding: clamp(14px,4vw,29px); background: var(--ia-white); border: 1px solid var(--ia-line); border-radius: 18px; box-shadow: 0 7px 21px #1037290e; }
.idiom-adventure .ia-question-head { display: flex; gap: 11px; align-items: center; margin-bottom: 14px; }
.idiom-adventure .ia-question-head > div { flex: 1; min-width: 0; }
.idiom-adventure .ia-question-head h2 { font-size: 1.27rem; }
.idiom-adventure .ia-question-head p { color: var(--ia-muted); font-size: .82rem; margin-top: 2px; }
.idiom-adventure .ia-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid #b2cabe;
  border-radius: 9px;
  background: #f0f7f2;
  color: var(--ia-deep);
  font-size: .83rem;
  font-weight: 800;
  line-height: 1.15;
}
.idiom-adventure .ia-audio > span:first-child { font-size: 1.08rem; }
.idiom-adventure .ia-audio:hover { background: #e0eee6; }
.idiom-adventure .ia-audio[data-ia-audio-state="loading"] { background: #f9efce; border-color: #b58839; }
.idiom-adventure .ia-audio[data-ia-audio-state="playing"] { background: #d3eadc; border-color: #48866a; }
.idiom-adventure .ia-audio[data-ia-audio-state="error"] { background: #f9e7dd; border-color: #bf7759; }
.idiom-adventure .ia-audio-line { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.idiom-adventure .ia-audio-line > :first-child { min-width: 0; overflow-wrap: anywhere; }
.idiom-adventure .ia-audio-status:empty {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.idiom-adventure .ia-audio-status {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 8;
  width: max-content;
  max-width: calc(100% - 26px);
  pointer-events: none;
  padding: 7px 12px;
  border: 1px solid #bf7759;
  border-radius: 9px;
  background: #f9e7dd;
  color: #6f392b;
  font-size: .86rem;
}
.idiom-adventure .ia-clue-art { position: relative; background: #e7eee1; border: 1px solid #d9e6d8; border-radius: 13px; overflow: hidden; text-align: center; }
.idiom-adventure .ia-clue-art img { width: 100%; max-height: 330px; height: auto; object-fit: contain; display: block; }
.idiom-adventure .ia-clue-art figcaption { background: var(--ia-white); padding: 0 10px 3px; }
.idiom-adventure .ia-clue-art figcaption p { padding-bottom: 8px; }
.idiom-adventure .ia-clue-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.idiom-adventure .ia-clue-controls:has(.ia-audio) { padding-top: 3px; }
.idiom-adventure .ia-clue-controls > :focus-visible { outline-offset: 0; }
.idiom-adventure .ia-prompt { padding: 14px 16px; margin-bottom: 13px; border-radius: 12px; background: #edf3e9; border: 1px solid #dae5d6; font-size: 1.13rem; line-height: 1.8; }
.idiom-adventure .ia-word { text-align: center; font-size: clamp(1.6rem,5vw,2.3rem); letter-spacing: .13em; font-weight: 850; }
.idiom-adventure .ia-blank { display: inline-block; min-width: 4em; color: #00614d; border-bottom: 2px solid #008064; line-height: 1; }
.idiom-adventure mark { color: #124e39; background: #e0efe2; border-radius: 4px; padding: 0 .18em; font-weight: 800; }
.idiom-adventure .ia-picture-answer, .idiom-adventure .ia-word-strip { display: flex; gap: 7px; justify-content: center; margin: 12px 0; }
.idiom-adventure .ia-picture-answer span, .idiom-adventure .ia-word-strip button { display: grid; place-content: center; width: min(51px,17vw); height: 42px; background: #eef3e8; color: #155648; font-weight: 800; border: 1px solid #cbdacc; border-radius: 7px; font-size: 1.18rem; }
.idiom-adventure .ia-word-strip button:not(:disabled) { background: #f8eed0; }
.idiom-adventure .ia-word-strip button:disabled { opacity: .65; }
.idiom-adventure .ia-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.idiom-adventure .ia-options-long .ia-choice { text-align: left; font-size: .9rem; }
.idiom-adventure .ia-choice { background: #fffdf1; border-color: #d6dfce; color: #204737; min-height: 47px; font-size: 1.02rem; line-height: 1.45; }
.idiom-adventure .ia-choice:hover { background: #e5f1e5; border-color: #6a9d81; }
.idiom-adventure .ia-choice-with-audio { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) 44px; }
.idiom-adventure .ia-choice-with-audio .ia-choice { min-width: 0; border-radius: 12px 0 0 12px; overflow-wrap: anywhere; }
.idiom-adventure .ia-choice-with-audio .ia-audio { border-radius: 0 12px 12px 0; border-inline-start: 0; }
.idiom-adventure .ia-choice-with-audio > :focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.idiom-adventure .ia-hint-line p, .idiom-adventure .ia-writing-tip { padding: 8px 10px; font-size: .88rem; background: #f8f2da; border-radius: 8px; }
.idiom-adventure .ia-hint-copy > p + .ia-audio-line { margin-top: 4px; }
.idiom-adventure .ia-feedback { color: #6f392b; font-size: .88rem; font-weight: 650; padding: 9px 11px; margin-top: 9px; background: #f9e7dd; border-left: 3px solid #bf7759; border-radius: 6px; }
.idiom-adventure .ia-result { margin-top: 14px; border: 1px solid #c5dfca; border-radius: 12px; padding: 12px; background: #eaf5e9; }
.idiom-adventure .ia-result-title { color: #175541; font-weight: 700; }
.idiom-adventure .ia-result-title strong { font-size: 1.13rem; }
.idiom-adventure .ia-result p + p { margin-top: 4px; }
.idiom-adventure .ia-result .ia-audio-line + .ia-audio-line { margin-top: 4px; }
.idiom-adventure .ia-example { color: #315345; font-size: .9rem; }
.idiom-adventure .ia-writing-context { padding: 12px; background: #edf3e8; border-radius: 12px; margin-bottom: 11px; }
.idiom-adventure .ia-writing-context strong { font-size: 1.36rem; }
.idiom-adventure .ia-writing-context p { font-size: .9rem; }
.idiom-adventure .ia-writing-context .ia-writing-situation { border-top: 1px solid #cad8c8; margin-top: 6px; padding-top: 6px; }
.idiom-adventure label[for] { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.idiom-adventure textarea, .idiom-adventure input[type="search"] { width: 100%; padding: 10px 12px; background: #fffefc; color: var(--ia-ink); border: 1px solid #a6bea8; border-radius: 10px; min-height: 43px; font-size: 1rem; }
.idiom-adventure textarea { display: block; resize: vertical; }
.idiom-adventure .ia-controls { margin: 7px 0 0; }
.idiom-adventure .ia-write-review { padding: 10px; margin-top: 10px; border: 1px solid #d3e0cf; border-radius: 11px; background: #f6f9ef; }
.idiom-adventure .ia-write-review fieldset { padding: 8px; margin: 9px 0; border: 1px solid #cfdbcc; border-radius: 8px; }
.idiom-adventure .ia-write-review fieldset > .ia-audio { margin-bottom: 4px; }
.idiom-adventure .ia-write-review label { display: flex; gap: 8px; align-items: center; font-size: .9rem; min-height: 35px; }
.idiom-adventure .ia-write-review input { width: 17px; height: 17px; accent-color: var(--ia-deep); }
.idiom-adventure .ia-finish-icon { font-size: 3rem; color: #b97e28; line-height: 1.2; display: inline-block; animation: ia-celebrate .34s ease-out both; }
@keyframes ia-celebrate { from { transform: scale(.45) rotate(-14deg); opacity: .3; } to { transform: scale(1); opacity: 1; } }
.idiom-adventure .ia-finish-words { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.idiom-adventure .ia-finish p:not(.ia-kicker) { margin-top: 9px; }
.idiom-adventure .ia-collection-count { color: var(--ia-muted); font-size: .82rem; margin: 9px 0; }
.idiom-adventure .ia-dictionary-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.idiom-adventure .ia-dict-word { display: grid; gap: 3px 8px; grid-template-columns: minmax(0,1fr) 15px; text-align: left; background: var(--ia-white); border: 1px solid var(--ia-line); padding: 8px 11px; }
.idiom-adventure .ia-dict-word strong { color: #16513f; font-size: 1.04rem; }
.idiom-adventure .ia-dict-word > span:first-of-type { grid-row: 2; font-size: .79rem; color: var(--ia-muted); font-weight: 500; }
.idiom-adventure .ia-dictionary-collected { grid-area: 1 / 2 / 3 / 3; color: #8c641d; align-self: center; }
.idiom-adventure .ia-term .ia-clue-art { margin-top: 13px; }
.idiom-adventure .ia-term dl { display: grid; gap: 7px; margin-top: 14px; }
.idiom-adventure .ia-term dl > div { padding: 8px 10px; background: #eff4ea; border-radius: 8px; }
.idiom-adventure .ia-term dt { font-size: .81rem; color: #2a674f; font-weight: 850; }
.idiom-adventure .ia-storage-note, .idiom-adventure .ia-empty { margin-top: 14px; color: var(--ia-muted); font-size: .85rem; }
@media (max-width: 920px) {
  .idiom-adventure .ia-hero { min-height: 335px; }
  .idiom-adventure .ia-chapter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 661px) {
  .idiom-adventure .ia-top-inner { padding: 5px 13px 0; min-height: 0; flex-wrap: wrap; gap: 0 8px; }
  .idiom-adventure .ia-top nav { order: 3; width: 100%; margin: 0; border-top: 1px solid #edf0ea; }
  .idiom-adventure .ia-nav { padding-block: 4px; min-height: 40px; font-size: .87rem; }
  .idiom-adventure .ia-main { padding: 15px 13px 36px; }
  .idiom-adventure .ia-hero { grid-template-columns: 1fr; gap: 9px; padding: 22px 18px 13px; border-radius: 17px; }
  .idiom-adventure .ia-hero h2 { font-size: clamp(2.05rem,9vw,3.25rem); }
  .idiom-adventure .ia-hero-text > p:not(.ia-kicker) { margin-top: 8px; font-size: .9rem; }
  .idiom-adventure .ia-hero .ia-button-row { margin-top: 10px; }
  .idiom-adventure .ia-hero-art { width: min(94%,290px); margin: auto; aspect-ratio: 1.72; }
  .idiom-adventure .ia-postcard { width: 43%; }
  .idiom-adventure .ia-post-0 { width: 43%; }
  .idiom-adventure .ia-quick { grid-template-columns: 1fr; gap: 7px; margin-top: 12px; }
  .idiom-adventure .ia-quick-card { padding: 9px; }
  .idiom-adventure .ia-quick-icon { inline-size: 37px; block-size: 37px; }
  .idiom-adventure .ia-chapter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .idiom-adventure .ia-chapter-label { font-size: .88rem; }
  .idiom-adventure .ia-chapter-intro { padding: 12px; gap: 10px; }
  .idiom-adventure .ia-path { gap: 8px; grid-template-columns: 36px 1fr auto; padding: 9px; }
  .idiom-adventure .ia-options-long { grid-template-columns: 1fr; }
  .idiom-adventure .ia-options:not(.ia-options-long) .ia-choice-with-audio .ia-choice {
    padding-inline: 3px;
    white-space: nowrap;
    letter-spacing: normal;
    font-size: clamp(.875rem, 4.4vw, 1rem);
  }
  .idiom-adventure .ia-clue-art img { max-height: 195px; }
  .idiom-adventure .ia-dictionary-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .idiom-adventure .ia-finish-icon { animation: none; } }
@media (max-width: 410px) and (max-height: 660px) {
  .idiom-adventure .ia-screen-exercise { padding-top: 5px; }
  .idiom-adventure .ia-question[data-kind="picture"] { padding: 10px 12px; }
  .idiom-adventure .ia-question[data-kind="picture"] .ia-question-head { margin-bottom: 7px; }
  .idiom-adventure .ia-question[data-kind="picture"] .ia-question-head:has(.ia-audio) { gap: 7px; }
  .idiom-adventure .ia-question[data-kind="picture"] .ia-question-head:has(.ia-audio) .ia-quick-icon { display: none; }
  .idiom-adventure .ia-question[data-kind="picture"] .ia-clue-art img { max-height: 145px; }
  .idiom-adventure .ia-question[data-kind="picture"] figcaption .ia-link { min-height: 34px; }
  .idiom-adventure .ia-question[data-kind="picture"] .ia-picture-answer { margin: 7px 0; }
  .idiom-adventure .ia-question[data-kind="picture"] .ia-picture-answer span { height: 32px; }
  .idiom-adventure .ia-question[data-kind="picture"] .ia-choice { min-height: 44px; padding: 6px; }
  .idiom-adventure .ia-question[data-kind="picture"] .ia-choice-with-audio .ia-choice { padding-inline: 4px; }
}
/* The Mini App shell clips body overflow; this game owns its scroll region. */
#idiomAdventure.on {
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
  animation: none;
  min-height: 0;
  text-align: start;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wrap:has(> #idiomAdventure.on) { width: min(1130px, 100%); padding: 0; }
.wrap:has(> #idiomAdventure.on) > #syncStatus { display: none; }
#idiomAdventure .ia-top { padding-top: env(safe-area-inset-top, 0px); }
#openIdiomAdventure[hidden] { display: none; }
#openIdiomAdventure .icon { background: linear-gradient(135deg, #438a70, #18513f); }

@media (min-width: 662px) {
  .idiom-adventure .ia-quick-limited { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
