@import url('language-ui/radix-colors.css?v=20260929-glass1');

.language-challenge {
  --card:var(--blue-5); --ink:var(--blue-12); --accent:var(--blue-11);
  box-sizing:border-box; width:min(400px,calc(100vw - 32px)); height:min(480px,calc(100dvh - 32px));
  max-width:none; max-height:none; margin:auto; padding:26px; overflow:hidden; outline:none;
  border:1px solid var(--white-a9); border-radius:34px; color:var(--ink); background:var(--card);
  box-shadow:inset 0 1px 1px var(--white-a11),inset 0 -1px 2px var(--black-a2),0 24px 80px var(--black-a7);
  font-family:Inter,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;
}
.language-challenge[data-palette="mint"] { --card:var(--mint-5); --ink:var(--mint-12); --accent:var(--mint-11); }
.language-challenge[data-palette="iris"] { --card:var(--iris-5); --ink:var(--iris-12); --accent:var(--iris-11); }
.language-challenge[data-palette="amber"] { --card:var(--amber-5); --ink:var(--amber-12); --accent:var(--amber-11); }
.language-challenge[data-palette="crimson"] { --card:var(--crimson-5); --ink:var(--crimson-12); --accent:var(--crimson-11); }
.language-challenge::backdrop { background:var(--black-a7); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.language-challenge *, .language-challenge *::before, .language-challenge *::after { box-sizing:border-box; }
.language-content { height:100%; display:flex; flex-direction:column; min-height:0; }
.language-portrait-hint { display:none; }
.language-challenge[data-mobile-landscape="true"]:is([data-stage="learn"],[data-stage="quiz"]):not(.language-challenge--gallery) { height:min(260px,calc(100dvh - 24px)); }
.language-challenge[data-mobile-landscape="true"]:is([data-stage="learn"],[data-stage="quiz"]):not(.language-challenge--gallery) .language-content { display:none; }
.language-challenge[data-mobile-landscape="true"]:is([data-stage="learn"],[data-stage="quiz"]):not(.language-challenge--gallery) .language-portrait-hint { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; }
.language-portrait-hint strong { font-size:18px; font-weight:550; }
.language-portrait-hint p { margin:0; font-size:12px; opacity:.65; }
.language-portrait-phone { width:32px; height:51px; display:grid; place-items:center; border:2px solid currentColor; border-radius:8px; }
.language-portrait-phone .language-icon { width:19px; height:19px; }
.language-icon { display:inline-block; flex:none; width:24px; height:24px; background:currentColor; -webkit-mask:var(--language-icon) center/contain no-repeat; mask:var(--language-icon) center/contain no-repeat; }
.language-challenge button { font:inherit; color:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.language-challenge button:focus-visible { outline:2px solid var(--ink); outline-offset:5px; }
.language-challenge button:disabled { cursor:default; }
.language-glass { border:1px solid var(--white-a10); background:var(--white-a5); box-shadow:inset 0 1px 1px var(--white-a12),inset 0 -1px 1px var(--white-a4),0 5px 13px var(--black-a2); backdrop-filter:blur(18px) saturate(1.3); -webkit-backdrop-filter:blur(18px) saturate(1.3); }
button.language-glass { transition:background .18s,box-shadow .18s,transform .18s,opacity .18s; }
button.language-glass:not(:disabled):hover { background:var(--white-a8); box-shadow:inset 0 1px 1px var(--white-a12),0 7px 18px var(--black-a3); }
button.language-glass:not(:disabled):active { transform:scale(.95); }
.language-close { position:absolute; top:20px; right:20px; width:34px; height:34px; padding:0; border-radius:50%; display:grid; place-items:center; }
.language-close .language-icon { width:17px; height:17px; }
.language-eyebrow { flex:none; display:flex; align-items:center; gap:9px; min-height:30px; margin-right:42px; font-size:12px; font-weight:550; letter-spacing:.01em; }
.language-eyebrow>.language-icon { width:19px; height:19px; opacity:.75; }
.language-divider { margin:0 9px; opacity:.3; font-weight:400; }
.language-word-card { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; padding-top:9px; }
.language-word { font-size:66px; font-weight:650; line-height:1.08; letter-spacing:-.055em; margin:0; }
.language-word:lang(hi), .language-question-picture figcaption:lang(hi), .language-question-text:lang(hi) { font-family:"Nirmala UI","Noto Sans Devanagari",sans-serif; line-height:1.4; letter-spacing:normal; }
.language-word:lang(ar), .language-question-picture figcaption:lang(ar), .language-question-text:lang(ar) { font-family:"Segoe UI","Geeza Pro","Noto Sans Arabic",sans-serif; line-height:1.4; letter-spacing:normal; }
.language-word:lang(ja), .language-word:lang(kk), .language-word:lang(ru) { letter-spacing:normal; }
.language-pronunciation { margin-top:13px; font-family:"Segoe UI",Arial,sans-serif; font-size:15px; line-height:1.3; opacity:.67; }
.language-meaning { display:block; font-weight:500; margin-top:19px; font-size:20px; line-height:1.3; letter-spacing:.06em; }
.language-study-controls { flex:none; display:flex; flex-direction:column; align-items:center; gap:12px; padding:6px 0 20px; }
.language-play { display:grid; place-items:center; width:70px; height:70px; border-radius:50%; padding:0; }
.language-play>.language-icon { width:30px; height:30px; }
.language-repeat { display:flex; gap:6px; line-height:0; }
.language-repeat .language-icon { width:5px; height:5px; }
.language-repeat>span { opacity:.2; transition:opacity .15s; }
.language-challenge[data-pass="1"] .language-repeat>span:first-child, .language-challenge[data-pass="2"] .language-repeat>span { opacity:.8; }
.language-footer { flex:none; display:flex; align-items:center; justify-content:space-between; min-height:48px; }
.language-footer--center { min-height:22px; justify-content:center; margin-top:16px; }
.language-progress { display:flex; align-items:center; }
.language-dots { display:flex; align-items:center; gap:9px; }
.language-dots>span { display:flex; opacity:.2; }
.language-dots .language-icon { width:7px; height:7px; }
.language-dots .is-done { opacity:.5; }
.language-dots .is-current { opacity:1; }
.language-prev, .language-next { display:grid; place-items:center; width:50px; height:48px; padding:0; border-radius:18px; }
.language-prev:disabled { opacity:.32; box-shadow:none; }
.language-prev>.language-icon, .language-next>.language-icon { width:25px; height:25px; }
.language-prev>.language-icon { transform:rotate(180deg); }
.language-quiz-body { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center; gap:24px; }
.language-challenge[data-stage="quiz"] { height:min(550px,calc(100dvh - 32px)); }
.language-question-prompt { display:grid; grid-template-columns:48px minmax(0,1fr) 48px; align-items:center; gap:7px 8px; }
.language-question-picture { display:contents; text-align:center; }
.language-question-picture img { grid-column:1 / -1; grid-row:1; display:block; width:160px; height:160px; object-fit:contain; margin:0 auto; }
.language-question-picture figcaption { grid-column:2; grid-row:2; font-size:30px; line-height:1.2; font-weight:600; letter-spacing:-.025em; overflow-wrap:anywhere; }
.language-listen { grid-column:1; grid-row:2; display:grid; place-items:center; width:48px; height:48px; padding:0; margin:0; border-radius:50%; }
.language-loading { margin:auto; text-align:center; font-size:15px; }
.language-load-retry { padding:10px 22px; border-radius:16px; }
.language-load-back { display:block; margin:12px auto 0; padding:9px 16px; border-radius:14px; }
.language-challenge[data-stage="portal"] { --ink:#fff; width:min(680px,calc(100vw - 24px),calc((100dvh - 24px) * .780488)); height:auto; aspect-ratio:1024 / 1312; padding:0; border:0; border-radius:24px; background:#030b19; overflow:hidden; isolation:isolate; box-shadow:0 20px 70px #0004; }
.language-challenge[data-stage="portal"] .language-close { z-index:5; top:10px; right:10px; width:40px; height:40px; color:#fff; border:0; background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.language-challenge[data-stage="portal"] .language-close:hover { background:#ffffff18; }
.language-portal { position:relative; flex:1; min-height:0; overflow:hidden; background:#030b19; container-type:inline-size; }
.language-portal-invite { position:absolute; top:50%; left:0; right:0; margin:0; transform:translateY(-50%); text-align:center; font-size:clamp(32px,17.5cqw,100px); font-weight:900; line-height:1; white-space:nowrap; color:#fff; animation:language-portal-fade 1s 1.95s cubic-bezier(.19,1,.22,1) forwards; }
.language-portal-words { position:relative; display:inline-flex; padding:.2em .05em .1em; overflow:hidden; }
.language-portal-words>span { display:block; flex:none; width:calc(var(--w) / 480 * 1em); height:1em; overflow:hidden; color:transparent; background:url('language-ui/flag-title-20261031.webp') no-repeat; background-size:4.525em 1.508333em; background-position:calc(var(--x) / -480 * 1em) -.270833em; animation:language-portal-letter .75s linear both; animation-delay:calc(var(--i) * .05s); }
.language-portal-skip { position:absolute; top:10px; right:58px; z-index:4; min-height:40px; border:0; background:transparent; color:#fff !important; border-radius:20px; padding:7px 12px; font-size:13px !important; }
.language-portal-skip:hover { background:#ffffff18; }
/* 对原作 easeOutElastic（elasticity:500）采样，保留轻弹节奏，无需动画依赖。 */
@keyframes language-portal-letter {
  0% { transform:translateY(1.10000em); }
  2.5% { transform:translateY(0.87971em); }
  5% { transform:translateY(0.62927em); }
  7.5% { transform:translateY(0.38445em); }
  10% { transform:translateY(0.16996em); }
  12.5% { transform:translateY(0.00000em); }
  15% { transform:translateY(-0.12018em); }
  17.5% { transform:translateY(-0.19222em); }
  20% { transform:translateY(-0.22248em); }
  22.5% { transform:translateY(-0.21993em); }
  25% { transform:translateY(-0.19445em); }
  27.5% { transform:translateY(-0.15551em); }
  30% { transform:translateY(-0.11124em); }
  32.5% { transform:translateY(-0.06796em); }
  35% { transform:translateY(-0.03004em); }
  37.5% { transform:translateY(-0.00000em); }
  40% { transform:translateY(0.02124em); }
  42.5% { transform:translateY(0.03398em); }
  45% { transform:translateY(0.03933em); }
  47.5% { transform:translateY(0.03888em); }
  50% { transform:translateY(0.03438em); }
  52.5% { transform:translateY(0.02749em); }
  55% { transform:translateY(0.01966em); }
  57.5% { transform:translateY(0.01201em); }
  60% { transform:translateY(0.00531em); }
  62.5% { transform:translateY(0.00000em); }
  65% { transform:translateY(-0.00376em); }
  67.5% { transform:translateY(-0.00601em); }
  70% { transform:translateY(-0.00695em); }
  72.5% { transform:translateY(-0.00687em); }
  75% { transform:translateY(-0.00608em); }
  77.5% { transform:translateY(-0.00486em); }
  80% { transform:translateY(-0.00348em); }
  82.5% { transform:translateY(-0.00212em); }
  85% { transform:translateY(-0.00094em); }
  87.5% { transform:translateY(-0.00000em); }
  90% { transform:translateY(0.00066em); }
  92.5% { transform:translateY(0.00106em); }
  95% { transform:translateY(0.00123em); }
  97.5% { transform:translateY(0.00121em); }
  100% { transform:translateY(0.00000em); }
}
@keyframes language-portal-fade { to { opacity:0; } }
@media(prefers-reduced-motion:reduce) { .language-portal-invite,.language-portal-words>span { animation:none; opacity:1; } }
.language-challenge[data-stage="levels"] {
  --ink:#452c1d; width:min(680px,calc(100vw - 24px),calc((100dvh - 24px) * .780488));
  height:auto; aspect-ratio:1024 / 1312; padding:0; border:0; border-radius:24px;
  background:#f1dfc3; box-shadow:0 20px 70px #0006; isolation:isolate;
}
.language-challenge[data-stage="levels"] .language-close {
  z-index:5; top:10px; right:10px; width:40px; height:40px; border:0; background:transparent;
  box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; color:#765744;
}
.language-challenge[data-stage="levels"] .language-close .language-icon { width:23px; height:23px; }
.language-challenge[data-stage="levels"] .language-close:hover { background:#fff5; }
.language-levels { position:relative; flex:1; min-height:0; }
.language-challenge[data-portal-arrived="true"] .language-levels { animation:language-portal-open .65s cubic-bezier(.15,.65,.2,1) both; }
@keyframes language-portal-open { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .language-challenge[data-portal-arrived="true"] .language-levels { animation:none; } }
.language-level-map { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.language-level-decor { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.language-level-decor img { position:absolute; height:auto; user-select:none; }
.language-level-cards { position:absolute; z-index:2; top:40%; left:3.5%; right:3.5%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5%; align-items:center; }
.language-level-option { position:relative; display:block; width:100%; padding:0; border:0; border-radius:8px; background:transparent; transform:rotate(var(--tilt)); transition:transform .24s ease,filter .24s ease; filter:drop-shadow(0 5px 3px #57371c36); }
.language-level-option[data-level="easy"] { --tilt:-3deg; }
.language-level-option[data-level="medium"] { --tilt:0deg; }
.language-level-option[data-level="advanced"] { --tilt:3deg; }
.language-level-option>img { display:block; width:100%; height:auto; aspect-ratio:3 / 4; object-fit:contain; user-select:none; -webkit-user-drag:none; }
.language-level-option[data-locked="false"]:focus-visible { z-index:3; transform:translateY(-8px) scale(1.055); filter:drop-shadow(0 14px 7px #57371c55); }
@media (hover:hover) {
  .language-level-option[data-locked="false"]:hover { z-index:3; transform:translateY(-8px) scale(1.055); filter:drop-shadow(0 14px 7px #57371c55); }
}
.language-level-option[data-locked="false"]:active { transform:translateY(-2px) scale(.98); }
.language-level-option[data-locked="true"]>img { filter:saturate(.55); opacity:.76; }
.language-level-route { position:absolute; top:73.5%; left:17%; right:17%; height:clamp(16px,4vw,26px); display:flex; align-items:center; justify-content:space-between; pointer-events:none; }
.language-level-route>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.language-route-node { position:relative; display:flex; color:#70482b; }
.language-route-node .language-icon { width:clamp(16px,4vw,26px); height:clamp(16px,4vw,26px); }
.language-route-node.is-open { color:#315e3b; }
.language-level-country { position:absolute; top:79%; left:0; right:0; margin:0; text-align:center; color:#775b42; font-size:clamp(11px,2vw,15px); letter-spacing:.12em; }
.language-level-tip { position:absolute; top:84%; left:0; right:0; margin:0; text-align:center; color:#70482b; font-size:clamp(12px,2vw,15px); opacity:0; pointer-events:none; }
.language-level-tip.is-visible { opacity:1; }
.language-paper-plane { z-index:2; top:7%; right:14%; width:20%; filter:drop-shadow(0 4px 3px #65472933); }
.language-paper-plane.is-ready { animation:language-plane-depart 3.4s .6s cubic-bezier(.4,0,.65,1) forwards; }
.language-paper-cloud { width:14%; opacity:.93; animation:language-cloud-drift 7s ease-in-out infinite alternate; }
.language-paper-cloud--top { top:6%; left:58%; }
.language-paper-cloud--side { top:33%; right:7%; width:17%; animation-duration:9s; animation-delay:-3s; }
.language-paper-cloud--bottom { bottom:10%; left:47%; width:13%; animation-duration:8s; animation-delay:-5s; }
.language-paper-leaves { bottom:-2%; width:26%; transform-origin:10% 100%; animation:language-leaves-sway 4.8s ease-in-out infinite alternate; }
.language-paper-leaves--left { left:-3%; }
.language-paper-leaves--right { right:-3%; scale:-1 1; transform-origin:50% 100%; animation-duration:5.7s; animation-delay:-2s; }
@keyframes language-plane-depart {
  0%,12% { transform:translate(0,0) rotate(0); opacity:1; }
  40% { transform:translate(12%,-12%) rotate(-5deg); opacity:1; }
  100% { transform:translate(200%,-155%) rotate(-13deg); opacity:0; }
}
@keyframes language-cloud-drift { from { transform:translateX(-8%); } to { transform:translateX(8%); } }
@keyframes language-leaves-sway { from { transform:rotate(-1.5deg); } to { transform:rotate(1.8deg); } }
@media (prefers-reduced-motion:reduce) {
  .language-level-decor img { animation:none!important; }
  .language-level-option { transition:none; }
}
.language-context { margin:14px 0 0; max-width:100%; font-size:12px; line-height:1.6; font-weight:400; opacity:.72; }
.language-challenge[data-kind="phrases"] .language-word, .language-challenge[data-kind="basics"] .language-word { font-size:clamp(25px,7vw,32px); line-height:1.35; letter-spacing:normal; overflow-wrap:anywhere; }
.language-challenge[data-kind="phrases"] .language-pronunciation, .language-challenge[data-kind="basics"] .language-pronunciation { font-size:13px; overflow-wrap:anywhere; }
.language-challenge[data-kind="phrases"] .language-meaning, .language-challenge[data-kind="basics"] .language-meaning { font-size:18px; letter-spacing:normal; }
.language-question-prompt--audio { display:flex; flex-direction:column; justify-content:center; gap:16px; min-height:150px; }
.language-question-prompt--audio .language-listen { width:78px; height:78px; }
.language-question-prompt--audio .language-listen>.language-icon { width:32px; height:32px; }
.language-question-text { margin:0; max-width:100%; font-size:clamp(24px,6vw,30px); line-height:1.4; font-weight:600; overflow-wrap:anywhere; text-align:center; }
.language-continue { padding:10px 20px; border-radius:18px; font:inherit; color:inherit; cursor:pointer; }
.language-listen>.language-icon { width:23px; height:23px; }
.language-challenge[data-playing="true"] .language-play>.language-icon, .language-challenge[data-playing="true"] .language-listen>.language-icon { animation:language-speaking .85s ease-in-out infinite alternate; }
.language-choices { display:grid; gap:10px; }
.language-choice { display:flex; align-items:center; justify-content:center; position:relative; width:100%; min-height:51px; padding:11px 40px; border-radius:17px; font-size:17px!important; font-weight:500!important; }
.language-choice:disabled { opacity:.5; }
.language-choice-mark { position:absolute; right:15px; top:50%; transform:translateY(-50%); display:flex; }
.language-choice-mark .language-icon { width:21px; height:21px; }
.language-choice:is(.is-correct,.is-wrong) { opacity:1; flex-direction:column; gap:4px; padding:8px 14px; }
.language-choice.is-correct { background:var(--blue-5); color:var(--blue-12); border-color:var(--blue-8); }
.language-choice.is-wrong { background:var(--crimson-5); color:var(--crimson-12); border-color:var(--crimson-8); }
.language-choice:is(.is-correct,.is-wrong) .language-choice-mark { position:static; transform:none; align-items:center; gap:4px; font-size:11px; line-height:16px; }
.language-choice:is(.is-correct,.is-wrong) .language-choice-mark .language-icon { width:15px; height:15px; }
.language-result-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 0 12px; flex:none; }
.language-result-score { font-size:55px; font-weight:600; line-height:1; letter-spacing:-.05em; }
.language-result-score>span { margin-left:5px; font-size:20px; opacity:.45; font-weight:400; }
.language-metrics { display:flex; gap:20px; text-align:center; }
.language-metrics>div { display:flex; flex-direction:column; gap:4px; }
.language-metrics strong { font-size:21px; font-weight:600; }
.language-metrics span { font-size:10px; opacity:.65; }
.language-result-reward, .language-collection-body { display:flex; flex:1; min-height:0; align-items:center; justify-content:center; padding:12px 0 20px; }
.language-passport-card { position:relative; width:100%; padding:17px 19px 13px; border-radius:23px; }
.language-passport-top { display:flex; align-items:center; justify-content:space-between; font-size:9px; letter-spacing:.2em; opacity:.8; }
.language-passport-top>.language-icon { width:21px; height:21px; }
.language-passport-detail { display:flex; align-items:center; gap:22px; padding:7px 10px 13px; }
.language-passport-detail img { width:71px; height:96px; object-fit:contain; filter:drop-shadow(0 5px 4px var(--black-a3)); }
.language-passport-detail h2 { margin:0 0 5px; font-size:25px; font-weight:600; letter-spacing:.08em; }
.language-passport-detail p { margin:0; font-size:8px; letter-spacing:.12em; opacity:.6; }
.language-passport-stamp { display:flex; align-items:center; gap:5px; margin-top:13px; font-size:12px; font-weight:500; }
.language-passport-stamp .language-icon { width:14px; height:14px; }
.language-passport-bottom { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--black-a3); padding-top:10px; font-size:9px; opacity:.55; }
.language-result-actions { flex:none; display:flex; align-items:center; justify-content:center; gap:15px; }
.language-result-actions button { display:grid; place-items:center; padding:0; width:58px; height:50px; border-radius:18px; }
.language-result-actions .language-retry { width:96px; }
.language-result-actions .language-practice { width:76px; }
.language-locked { display:flex; flex-direction:column; align-items:center; gap:18px; text-align:center; opacity:.75; }
.language-locked>.language-icon { width:65px; height:65px; opacity:.5; }
.language-locked>span { font-size:13px; }
.language-locked>strong { font-size:23px; font-weight:500; }
.language-sr { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }
.language-status.is-error { clip:auto; clip-path:none; width:auto; height:auto; margin:0; bottom:9px; left:0; right:0; font-size:11px; text-align:center; }
.language-save-error { position:absolute; left:0; right:0; bottom:6px; margin:0; font-size:10px; text-align:center; }
.game-nav .language-passport-nav { display:flex; align-items:center; justify-content:center; gap:6px; }
.language-passport-nav>.language-icon { width:18px; height:18px; }
.language-passport-nav>span:last-child { font-size:11px; }
.language-challenge-open .game-result, .language-challenge-open .game-reward-status { visibility:hidden; }
@keyframes language-speaking { from { opacity:.55; transform:scale(.93); } to { opacity:1; transform:scale(1.04); } }
@media(max-width:650px) {
  .language-question-prompt:not(.language-question-prompt--audio) .language-listen { grid-column:3; }
  .language-challenge { padding:24px; border-radius:30px; }
  .game-nav:has(.language-passport-nav) { padding-inline:12px; gap:6px; }
  .game-nav:has(.language-passport-nav) .game-brand { font-size:12px; letter-spacing:0; }
  .game-nav:has(.language-passport-nav) .game-nav-actions { gap:5px; }
  .game-nav .language-passport-nav { padding-inline:11px; white-space:nowrap; }
}
@media(max-width:360px) {
  .language-word { font-size:55px; }
  .language-challenge { padding:21px; }
  .language-metrics { gap:13px; }
  .language-passport-detail { padding-inline:0; gap:15px; }
}
@media(max-height:520px) {
  .language-challenge { padding:20px 24px; border-radius:28px; }
  .language-close { top:17px; right:18px; }
  .language-word { font-size:57px; }
  .language-pronunciation { margin-top:8px; }
  .language-meaning { margin-top:12px; font-size:18px; }
  .language-study-controls { padding-bottom:12px; gap:9px; }
  .language-play { width:58px; height:58px; }
  .language-quiz-body { gap:18px; }
  .language-question-picture img { width:125px; height:125px; }
  .language-question-picture figcaption { font-size:26px; }
  .language-choice { min-height:44px; padding-block:8px; }
  .language-result-summary { padding:13px 0 6px; }
  .language-result-reward { padding:9px 0 14px; }
  .language-passport-detail img { height:77px; }
  .language-passport-card { padding:13px 17px 10px; }
}
@media(min-height:411px) and (max-height:460px) {
  .language-quiz-body { gap:12px; }
  .language-question-picture img { width:90px; height:90px; }
  .language-question-picture figcaption { font-size:24px; }
}
@media(max-height:410px) {
  .language-challenge { height:calc(100dvh - 20px); padding:15px 22px; }
  .language-close { top:13px; right:16px; width:30px; height:30px; }
  .language-eyebrow { min-height:26px; font-size:11px; }
  .language-word { font-size:45px; }
  .language-pronunciation { font-size:12px; margin-top:5px; }
  .language-meaning { margin-top:8px; font-size:16px; }
  .language-study-controls { padding:4px 0 6px; gap:6px; }
  .language-play { width:46px; height:46px; }
  .language-play>.language-icon { width:23px; height:23px; }
  .language-footer { min-height:36px; }
  .language-prev, .language-next { width:44px; height:36px; border-radius:14px; }
  .language-challenge[data-stage="quiz"] { height:calc(100dvh - 20px); }
  .language-quiz-body { gap:10px; }
  .language-question-picture img { width:72px; height:72px; }
  .language-question-picture figcaption { font-size:22px; }
  .language-listen { width:44px; height:44px; }
  .language-footer--center { min-height:20px; }
  .language-choices { gap:8px; }
  .language-choice { min-height:41px; font-size:15px!important; padding-inline:28px; }
  .language-choice-mark { right:8px; }
  .language-choice-mark .language-icon { width:17px; height:17px; }
  .language-result-summary { padding:8px 0 0; }
  .language-result-score { font-size:38px; }
  .language-metrics strong { font-size:17px; }
  .language-result-reward { padding:7px 0; }
  .language-passport-card { padding:9px 14px; border-radius:18px; }
  .language-passport-detail { padding:1px 8px 5px; gap:20px; }
  .language-passport-detail img { width:48px; height:60px; }
  .language-passport-detail h2 { font-size:20px; }
  .language-passport-stamp { margin-top:5px; font-size:10px; }
  .language-passport-top { font-size:8px; }
  .language-passport-top>.language-icon { width:16px; height:16px; }
  .language-passport-bottom { padding-top:5px; font-size:8px; }
  .language-result-actions button { height:37px; border-radius:14px; }
  .language-locked { gap:10px; }
  .language-locked>.language-icon { width:44px; height:44px; }
}
@media(prefers-reduced-motion:reduce) { .language-challenge *, .language-challenge *::before, .language-challenge *::after { animation:none!important; transition:none!important; } }

.language-challenge.language-challenge--gallery {
  --ink:#f4ead6; width:100vw; height:100dvh;
  padding:32px 12px 20px; border:0; border-radius:0; background:transparent; color:var(--ink);
  box-shadow:none;
}
.language-challenge--gallery::backdrop { background:#020713b3; backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }
.language-challenge--gallery .language-close { z-index:2; top:14px; right:18px; width:40px; height:40px; color:#f4ead6; background:#08111c88; border:1px solid #e5dcc84d; box-shadow:none; backdrop-filter:none; }
.language-gallery-heading { position:absolute; top:16px; left:24px; z-index:2; }
.language-gallery-kicker,.language-gallery-heading h1,.language-gallery-heading p,.language-gallery-note { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.language-gallery-count { font-family:Georgia,serif; font-size:23px; color:#f4ead6; white-space:nowrap; }
.language-gallery-count small { font-family:"Microsoft YaHei",sans-serif; font-size:12px; margin-left:5px; }
.language-gallery-frame { display:block; width:100%; margin:0; flex:1; min-height:0; border:0; background:transparent; }
.language-gallery-footer { position:absolute; bottom:12px; left:18px; right:18px; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.language-challenge--gallery .language-continue { min-height:44px; padding:10px 18px; border:0; border-radius:0; color:#e4d9c6; background:none; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; font-size:14px; letter-spacing:.1em; }
.language-challenge--gallery .language-save-error { width:100%; margin:0; color:#ffd7b0; text-align:center; }
@media(max-width:600px) {
  .language-challenge.language-challenge--gallery { padding-inline:0; }
  .language-gallery-heading { left:18px; }
}
@media(max-height:560px) {
  .language-challenge.language-challenge--gallery { padding-top:12px; padding-bottom:20px; }
  .language-gallery-count { font-size:20px; }
}

.language-challenge[data-stage="result"]:not(.language-challenge--gallery) {
  --ink:#452c1d; width:min(680px,calc(100vw - 24px),calc((100dvh - 24px) * .780282));
  height:auto; aspect-ratio:1108 / 1420; padding:0; border:0; border-radius:24px;
  background:#f1dfc3; box-shadow:0 20px 70px #0006; container-type:inline-size;
}
.language-summary { position:relative; width:100%; height:100%; color:var(--ink); font-family:KaiTi,STKaiti,"Microsoft YaHei",serif; }
.language-summary-map { position:absolute; inset:0; width:100%; height:100%; object-fit:fill; pointer-events:none; }
.language-summary-country { position:absolute; top:20.4%; left:22%; width:56%; height:5.8%; margin:0; display:flex; align-items:center; justify-content:center; font-size:clamp(14px,4.2cqi,28px); font-weight:700; }
.language-summary-book { position:absolute; top:23%; left:0; width:100%; height:62%; }
.language-summary-book>img { display:block; width:100%; height:100%; object-fit:fill; pointer-events:none; }
.language-summary-page { position:absolute; left:54.5%; top:24%; width:38%; height:52%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7%; text-align:center; }
.language-summary-page>p { margin:0; font-size:clamp(15px,4.2cqi,29px); font-weight:700; white-space:nowrap; }
.language-summary-score { display:flex; align-items:baseline; gap:6px; font:700 clamp(52px,20cqi,136px)/1 Georgia,serif; color:#98666a; }
.language-summary-score>span { font-size:.46em; font-weight:400; color:#8d7661; }
.language-summary-page .language-summary-note { font-size:clamp(12px,3.4cqi,24px); }
.language-summary-actions { position:absolute; top:83%; left:12%; width:76%; height:11%; display:flex; align-items:center; gap:5%; }
.language-summary-actions button { position:relative; isolation:isolate; flex:1; height:100%; min-height:44px; padding:0; border:0; background:transparent; font-size:clamp(16px,4.3cqi,30px); font-weight:700; white-space:nowrap; transition:transform .18s; }
.language-summary-actions button::before { content:""; position:absolute; z-index:-1; inset:0; background:url('language-ui/paper-summary/paper.webp') center / 100% 100% no-repeat; }
.language-summary-actions .language-retry { color:#193d57; }
.language-summary-actions .language-retry::before { filter:sepia(1) saturate(1.3) hue-rotate(155deg) brightness(.93); }
.language-summary-actions button:hover { transform:translateY(-3px); }
.language-summary-actions button:active { transform:scale(.96); }
.language-challenge[data-stage="result"]:not(.language-challenge--gallery) .language-close { z-index:5; top:3%; right:2.6%; width:44px; height:44px; border:0; color:#452c1d; background:transparent; box-shadow:none; backdrop-filter:none; }
.language-challenge[data-stage="result"]:not(.language-challenge--gallery) .language-close .language-icon { opacity:0; }
