/* 课本听力(/listening/)— 在 english.css 儿童风之上:听力列表 + 播放面板 + 跟读高亮字幕 */
:root { --teal: #18AFCF; --teal-d: #0E8AA6; --teal-soft: #E3F7FB; }

/* 列表:按单元分行(Unit 3 → 2 → 1),每行若干录音卡片 */
.lunit { margin-bottom: 22px; }
.lunit__title { margin: 0 0 10px 6px; font-size: 22px; color: var(--teal-d); }
.ltracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ltrack {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 18px; text-align: left;
  border: 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.ltrack:active { transform: translateY(3px); }
.ltrack__icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; font-size: 30px; border-radius: 18px; background: var(--teal-soft); }
.ltrack__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ltrack__title { font-size: 20px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ltrack__sub { font-size: 15px; color: var(--ink2); }
.ltrack__bar { display: block; height: 6px; border-radius: 3px; background: #EEF2F5; overflow: hidden; margin-top: 4px; }
.ltrack__bar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.ltrack__go { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: 18px; box-shadow: 0 4px 0 var(--teal-d); }

/* 播放面板(吸顶,滚动字幕时一直能按) */
.ltitle { font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lpanel {
  position: sticky; top: 0; z-index: 5; margin: 8px 0 14px; padding: 14px 18px 12px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .96); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lpanel__row { display: flex; align-items: center; justify-content: center; gap: 22px; }
.lplay {
  width: 78px; height: 78px; border: 0; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 30px; font-weight: 700; box-shadow: 0 6px 0 var(--teal-d);
}
.lplay:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--teal-d); }
.lpanel__seek { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ltime { flex: none; min-width: 44px; font-size: 15px; color: var(--ink2); font-variant-numeric: tabular-nums; text-align: center; }
.lseek { flex: 1; min-width: 0; accent-color: var(--teal); height: 28px; }
.lpanel__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.lchip { border: 2px solid #E3E8EE; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 15px; color: var(--ink2); }
.lchip.on { border-color: var(--teal); color: var(--teal-d); background: var(--teal-soft); }

.lnotice { margin: 0 0 12px; padding: 12px 16px; border-radius: 16px; background: #FFF8E6; color: #8A6400; font-size: 16px; }

/* 字幕:当前句放大高亮,读过的变淡 */
.llines { display: flex; flex-direction: column; gap: 10px; padding-bottom: 40vh; }
.lline {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px 16px; text-align: left;
  border: 3px solid transparent; border-radius: 20px; background: rgba(255, 255, 255, .78);
  transition: background .2s, border-color .2s, transform .2s, opacity .2s;
  -webkit-user-select: text; user-select: text;
}
.lline__no { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #EEF2F5; color: var(--ink2); font-size: 14px; margin-top: 2px; }
.lline__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lline__en { font-family: var(--ipa); font-size: 22px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.lline__cn { font-size: 16px; line-height: 1.5; color: var(--ink2); }
.llines.no-cn .lline__cn { display: none; }
.lline.is-done { opacity: .55; }
.lline.is-on {
  opacity: 1; background: #FFF6D6; border-color: var(--star); transform: scale(1.015);
  box-shadow: 0 6px 18px rgba(255, 200, 61, .35);
}
.lline.is-on .lline__no { background: var(--orange); color: #fff; }
.lline.is-on .lline__en { font-size: 26px; font-weight: 700; color: #2B1F3A; }
.lline.is-on .lline__cn { color: var(--ink); }

@media (max-width: 600px) {
  .lplay { width: 66px; height: 66px; font-size: 26px; }
  .lline__en { font-size: 19px; }
  .lline.is-on .lline__en { font-size: 21px; }
  .ltitle { font-size: 18px; }
}

/* 拼写单词卡片(每个单元第一张,点开进 /listening/spell/) */
.ltrack--spell { text-decoration: none; color: inherit; background: linear-gradient(160deg, #FFF8E8, #FFEBC2); }
.ltrack--spell .ltrack__icon { background: #FFE0A3; }
.ltrack--spell .ltrack__go { background: #F59F00; box-shadow: 0 4px 0 #C77C02; }
.ltrack--reading { text-decoration: none; color: inherit; background: linear-gradient(160deg, #F1EDFF, #E3DBFF); }
.ltrack--reading .ltrack__icon { background: #D9CCFF; }
.ltrack--reading .ltrack__go { background: #7B61FF; box-shadow: 0 4px 0 #5A43D6; }
.ltrack__pics { display: flex; gap: 6px; margin-top: 6px; }
.ltrack__pics img { width: 44px; height: 44px; border-radius: 10px; background: #fff; object-fit: cover; }

/* ─── 奖励金币(2026-11-04)────────────────────────────── */
.lhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lhead .mascot { flex: 0 1 auto; min-width: 0; }
.coinentry {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; text-decoration: none; color: #7A4B00;
  background: linear-gradient(160deg, #FFF3B8, #FFD45C); box-shadow: 0 5px 0 #E0A100, 0 10px 24px rgba(255, 180, 0, .35);
  animation: coinPulse 2.6s ease-in-out infinite;
}
.coinentry:active { transform: translateY(4px); box-shadow: 0 1px 0 #E0A100; }
.coinentry__coin { font-size: 40px; line-height: 1; animation: coinSpinY 3s ease-in-out infinite; }
.coinentry__main { display: flex; flex-direction: column; line-height: 1.15; }
.coinentry__n { font-size: 26px; font-weight: 900; }
.coinentry__label { font-size: 13px; color: #9A6500; }
@keyframes coinPulse { 0%, 100% { transform: none; } 50% { transform: scale(1.05); } }
@keyframes coinSpinY { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(360deg); } }

.cbox.is-poor { filter: saturate(.55); }
.cbox.is-open { background: #fff; box-shadow: 0 6px 0 #E3E8EE, 0 10px 22px rgba(0, 0, 0, .08); animation: none; }
.cbox.is-open::before, .cbox.is-open .cbox__gift { animation: none; }
.cbox.is-open .cbox__no { color: var(--ink2); }
.cbox.is-open .cbox__price { background: #EEF2F5; color: var(--ink2); }
@keyframes boxFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
@keyframes boxWiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-12deg) scale(1.1); } 82% { transform: rotate(10deg) scale(1.1); } 88% { transform: rotate(-6deg); } }
@keyframes boxShine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* 收支记录 */
.clog { margin: 0; }
.clog__list { display: flex; flex-direction: column; gap: 10px; }
.clog__row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.clog__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: #FFF3D1; }
.clog__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.clog__reason { font-size: 17px; overflow-wrap: anywhere; }
.clog__reason b { color: var(--orange-d); }
.clog__at { font-size: 13px; color: var(--ink2); }
.clog__amt { flex: none; font-size: 22px; font-weight: 900; }
.clog__row.is-earn .clog__amt { color: var(--green-d); }
.clog__row.is-spend .clog__amt { color: #E04B6B; }
.clog__empty { text-align: center; color: var(--ink2); padding: 20px; background: rgba(255, 255, 255, .7); border-radius: 18px; }

/* 购买弹窗 + 开盒 */
.cmodal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(43, 31, 58, .5); animation: viewIn .25s ease-out; }
.cmodal.out { opacity: 0; transition: opacity .3s; }
.cmodal__card { position: relative; width: min(420px, 100%); padding: 26px 22px 20px; border-radius: 28px; background: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.cmodal__card h3 { margin: 10px 0 4px; font-size: 26px; }
.cmodal__card p { margin: 0 0 14px; color: var(--ink2); font-size: 17px; }
.cmodal__box { width: 130px; height: 130px; margin: 0 auto; display: grid; place-items: center; font-size: 76px; border-radius: 30px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c)); box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 70%, #000); animation: boxFloat 2s ease-in-out infinite; }
.cmodal__box.shake { animation: boxShake .12s linear infinite; }
@keyframes boxShake { 0% { transform: rotate(-8deg) scale(1.04); } 50% { transform: rotate(8deg) scale(1.08); } 100% { transform: rotate(-8deg) scale(1.04); } }
.cmodal__burst { position: absolute; top: -90px; left: 50%; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 200, 61, .35) 0 12deg, transparent 12deg 24deg); animation: spin 10s linear infinite; pointer-events: none; }
.cmodal__prize { position: relative; font-size: 100px; line-height: 1.1; animation: bounceIn .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.cmodal__pname { position: relative; font-size: 28px !important; font-weight: 900; color: var(--orange-d) !important; }
.cmodal__tip { position: relative; font-size: 15px !important; }
.cmodal .done__btns { position: relative; flex-direction: column; }

@media (max-width: 600px) {
  .coinentry { padding: 8px 14px 8px 10px; }
  .coinentry__coin { font-size: 30px; }
  .coinentry__n { font-size: 22px; }
  .cbox { border-radius: 16px; }
  .cbox__q { display: none; }
}

/* 11-04 三档盲盒 + 我的奖品 */
.ctiers { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.ctier { display: inline-flex; align-items: center; gap: 2px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: var(--c); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 70%, #000); }
.ctier i { font-style: normal; }
.cmodal__mult { color: var(--orange-d); }

.cprize__sum { font-size: 15px; color: var(--ink2); font-weight: 600; }
.cprize__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cprize__card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.cprize__card.is-empty { opacity: .55; }
.cprize__emoji { font-size: 44px; line-height: 1.1; }
.cprize__name { font-size: 17px; font-weight: 800; }
.cprize__left { font-size: 15px; color: var(--green-d); }
.cprize__left b { font-size: 22px; }
.cprize__card.is-empty .cprize__left { color: var(--ink2); }
.cprize__meta { font-size: 12px; color: var(--ink2); }
.cprize__use { margin-top: 6px; padding: 8px 14px; font-size: 15px; min-width: 0; width: 100%; }
.ctabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px 6px; }
.clog__row.is-use .clog__amt { font-size: 16px; color: var(--teal-d); }
.clog__more { display: block; margin: 14px auto 0; }


/* ─── 11-04 金币屋一屏布局 + 蜿蜒小路 ───────────────────── */
body.is-coins { overflow: hidden; }
body.is-coins #app { height: 100dvh; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); box-sizing: border-box; }
.view--coins { height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chead { flex: none; display: flex; align-items: center; gap: 14px; }
.chead__title { margin: 0; font-size: 26px; white-space: nowrap; }
.chead__rule { margin-left: auto; font-size: 13px; line-height: 1.4; color: #8A6400; background: #FFF3CF; padding: 6px 12px; border-radius: 12px; text-align: center; }
.chead__bank { display: flex; align-items: center; gap: 8px; padding: 6px 18px 6px 8px; border-radius: 999px; background: linear-gradient(160deg, #FFF3B8, #FFD45C); box-shadow: 0 4px 0 #E0A100; }
.cbank__coin { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFF3B0, #FFC83D 45%, #E39A00); box-shadow: inset 0 -4px 0 rgba(160, 95, 0, .4), inset 0 0 0 4px rgba(255, 236, 150, .7); animation: coinSpinY 3s ease-in-out infinite; }
.cbank__coin span { font-size: 24px; font-weight: 900; color: #B86E00; }
.chead__n { font-size: 34px; font-weight: 900; color: #7A4B00; line-height: 1; }
.chead__unit { font-size: 15px; color: #9A6500; }

.cmain { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 14px; }
.cboardwrap { min-height: 0; display: flex; flex-direction: column; padding: 10px; border-radius: var(--radius); background: linear-gradient(160deg, #EAF8E1, #D7F0C6); box-shadow: var(--shadow); }
.cpath { position: relative; flex: 1; min-height: 0; }
.cpath__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cpath__svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cpath__edge { stroke: #C99A55; }
.cpath__road { stroke: #F4DCA8; }
.cpath__line { stroke: #fff; stroke-dasharray: 10 12; animation: roadMove 1.6s linear infinite; }
@keyframes roadMove { to { stroke-dashoffset: -44; } }
.cpath__mark { position: absolute; transform: translate(-50%, -50%); font-size: calc(var(--t, 80px) * .38); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .12)); }

.cbox {
  position: absolute; width: var(--t, 80px); height: var(--t, 80px); transform: translate(-50%, -50%);
  border: 0; border-radius: calc(var(--t, 80px) * .22); padding: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 70%, #000), 0 10px 18px rgba(0, 0, 0, .15);
  overflow: hidden; animation: boxFloat 2.4s var(--d) ease-in-out infinite;
}
.cbox::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%); transform: translateX(-120%); animation: boxShine 3.2s var(--d) ease-in-out infinite; }
.cbox:active { margin-top: 3px; }
.cbox__no { position: absolute; top: 4px; left: 7px; font-size: calc(var(--t, 80px) * .13); opacity: .85; }
.cbox__gift { font-size: calc(var(--t, 80px) * .4); line-height: 1; margin-top: calc(var(--t, 80px) * -.1); animation: boxWiggle 1.8s var(--d) ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .15)); }
.cbox__q { position: absolute; top: 5%; right: 7%; font-size: calc(var(--t, 80px) * .14); font-weight: 900; background: rgba(0, 0, 0, .18); padding: 0 5px; border-radius: 999px; }
.cbox__price { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: calc(var(--t, 80px) * .15); font-weight: 800; color: #7A4B00; background: #FFF3B8; padding: 1px 8px; border-radius: 999px; }

.cpanel { min-height: 0; display: flex; flex-direction: column; border-radius: var(--radius); background: rgba(255, 255, 255, .85); box-shadow: var(--shadow); overflow: hidden; }
.cpanel__tabs { flex: none; display: flex; padding: 8px 8px 0; gap: 6px; background: #FFF6E2; }
.cpanel__tab { flex: 1; border: 0; padding: 10px 6px; border-radius: 16px 16px 0 0; font-size: 17px; font-weight: 800; color: var(--ink2); background: transparent; }
.cpanel__tab small { font-size: 12px; font-weight: 600; }
.cpanel__tab.on { background: #fff; color: var(--orange-d); }
.cpanel__body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px; }
.cpanel .cprize__grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cpanel .cprize__card { padding: 10px 6px; box-shadow: 0 3px 0 rgba(59, 47, 74, .06), 0 6px 14px rgba(59, 47, 74, .08); }
.cpanel .cprize__emoji { font-size: 34px; }
.cpanel .cprize__name { font-size: 15px; }
.cpanel .clog__row { padding: 9px 12px; box-shadow: 0 2px 0 rgba(59, 47, 74, .05), 0 5px 12px rgba(59, 47, 74, .07); }
.cpanel .clog__icon { width: 36px; height: 36px; font-size: 22px; }
.cpanel .clog__reason { font-size: 15px; }
.cpanel .clog__amt { font-size: 18px; }
.cpanel .ctabs { margin: 0 0 10px; }

/* 竖屏 / 窄屏:棋盘在上、面板在下,各占一半 */
@media (max-aspect-ratio: 1/1) {
  .cmain { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .chead__rule { display: none; }
  .chead { gap: 10px; }
  .chead__bank { margin-left: auto; }
  .chead__title { font-size: 20px; }
}
@media (max-width: 600px) {
  .ctier { font-size: 12px; padding: 3px 9px; }
  .ctiers { gap: 5px; }
}

/* 11-04 试卷得分 */
.chead__exam { padding: 10px 16px; font-size: 16px; min-width: 0; }
.cexam { text-align: left; max-height: 92vh; overflow-y: auto; width: min(520px, 100%); }
.cexam h3 { text-align: center; margin-top: 0; }
.cexam__label { margin: 12px 0 6px; font-size: 15px; font-weight: 800; color: var(--ink2); }
.cexam__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cexam__opt { flex: 1; min-width: 80px; padding: 12px 8px; border: 3px solid #E3E8EE; border-radius: 16px; background: #fff; font-size: 18px; font-weight: 800; color: var(--ink); }
.cexam__opt.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-d); }
.cexam__kind { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 17px; }
.cexam__kind small { font-size: 12px; font-weight: 600; color: var(--ink2); }
.cexam__opts[hidden] { display: none; }
.cexam__grade { flex: 1; min-width: 78px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 3px solid transparent; border-radius: 16px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.cexam__grade b { font-size: 24px; }
.cexam__grade small { font-size: 12px; color: var(--ink2); }
.cexam__grade.on { border-color: var(--c); background: var(--c); color: #fff; }
.cexam__grade.on small { color: #fff; }
.cexam__note { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 2px solid #E3E8EE; border-radius: 14px; font: inherit; font-size: 16px; resize: vertical; }
.cexam__photo { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.cexam__preview { position: relative; }
.cexam__preview img { display: block; height: 72px; border-radius: 10px; box-shadow: var(--shadow); }
.cexam__rm { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #3B2F4A; color: #fff; font-size: 12px; }
.cexam .done__btns { flex-direction: column; margin-top: 14px; }
.clog__note { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.clog__photo { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; margin: 2px 0; cursor: zoom-in; }
.clog__amt.is-neg { color: #E04B6B !important; }
.clog__row.is-exam .clog__amt { color: var(--green-d); }
.cphoto { cursor: zoom-out; }
.cphoto img { max-width: 94vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
@media (max-width: 600px) { .chead__exam { padding: 8px 10px; font-size: 14px; } }
.cpanel .ctabs { gap: 6px; } .cpanel .ctabs .lchip { padding: 5px 10px; font-size: 14px; }

/* ─── 11-05 十二生肖探险闯关(晚间改版):抠图生肖站在档位色关卡台上,无方框;小路柔边融进草地 + 糖果踏脚石 ─────────── */
.cboardwrap {
  background:
    url(/listening/zodiac/map.webp) center / cover no-repeat,
    linear-gradient(160deg, #EAF8E1, #D7F0C6);
}
/* 小路:去掉原来的黄褐色描边/土路/白虚线 */
.cpath__trail { stroke: rgba(255, 252, 225, .26); }
.cpath__stoneshadow { fill: rgba(24, 60, 22, .32); stroke: none; }
.cpath__decor { position: absolute; inset: 0; pointer-events: none; }
.cpath__decor span { position: absolute; transform: translate(-50%, -50%); line-height: 1; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .1)); }
.cpath__mark--goal { font-size: calc(var(--t, 80px) * .5); }

/* 关卡:按钮本身透明,里面 = 关卡台 + 角色 + 徽章 */
.cbox--z { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; animation: none; color: inherit; }
.cbox--z::before { content: none; }
.cbox--z:active { margin-top: 0; }
.cbox--z:active .cbox__art { transform: scale(.94); }
.cbox--z > * { position: absolute; }
/* 11-05 夜第三版:去掉彩色关卡台,只留一圈自然的地面投影,角色像站在地图上 */
.cbox__base {
  left: 12%; right: 12%; bottom: 5%; height: 16%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(28, 64, 20, .42), rgba(28, 64, 20, .18) 45%, rgba(28, 64, 20, 0) 72%);
  animation: zBase 2.4s var(--d) ease-in-out infinite;
}
.cbox__art {
  left: -8%; right: -8%; top: -16%; bottom: 10%;
  background: var(--img) center bottom / contain no-repeat;
  filter: drop-shadow(0 3px 2px rgba(40, 60, 30, .25));
  transform-origin: 50% 100%; transition: transform .15s, filter .3s, opacity .3s;
  animation: zBob 2.4s var(--d) ease-in-out infinite;
}
.cbox__shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--img) center bottom / contain no-repeat; mask: var(--img) center bottom / contain no-repeat;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%) 120% 0 / 300% 100% no-repeat;
  animation: zShine 3.4s var(--d) ease-in-out infinite;
}
@keyframes zBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes zBase { 0%, 100% { transform: scale(1); } 50% { transform: scale(.93); } }
@keyframes zShine { 0%, 55% { background-position: 120% 0; } 85%, 100% { background-position: -20% 0; } }
.cbox--z .cbox__no {
  top: -2%; left: -2%; min-width: calc(var(--t, 80px) * .25); height: calc(var(--t, 80px) * .25); padding: 0 3px; box-sizing: border-box;
  display: grid; place-items: center; border-radius: 999px; background: var(--c); color: #fff; opacity: 1;
  font-size: calc(var(--t, 80px) * .145); font-weight: 900; line-height: 1; box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 70%, #000), 0 3px 6px rgba(0, 0, 0, .15);
}
.cbox--z .cbox__tag {
  top: -2%; right: -4%; display: flex; align-items: center; gap: 1px; padding: 1px 6px 1px 3px; border-radius: 999px;
  background: #fff; color: color-mix(in srgb, var(--c) 80%, #000); font-size: calc(var(--t, 80px) * .14); font-weight: 900; line-height: 1.25;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.cbox--z .cbox__gift { font-size: 1.25em; font-style: normal; margin: 0; display: inline-block; transform-origin: 50% 80%; animation: boxWiggle 1.8s var(--d) ease-in-out infinite; }
.cbox--z .cbox__price { bottom: -4%; box-shadow: 0 2px 0 #E0A100, 0 3px 6px rgba(0, 0, 0, .15); }
.cbox--z .cbox__prize { left: 0; right: 0; top: 14%; text-align: center; font-size: calc(var(--t, 80px) * .44); line-height: 1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .15)); animation: bounceIn .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.cbox--z.is-open { background: none; box-shadow: none; }
.cbox--z.is-open .cbox__art { filter: grayscale(.7) brightness(1.12); opacity: .5; animation: none; }
.cbox--z.is-open .cbox__shine, .cbox--z.is-open .cbox__base { animation: none; }
.cbox--z.is-open .cbox__base { opacity: .5; }
.cbox--z.is-open .cbox__no { background: #8A9AA8; box-shadow: none; }
.cbox--z.is-open .cbox__tag { color: var(--green-d, #169A6E); }
.cbox--z.is-open .cbox__price { background: #DFF7EC; color: #169A6E; box-shadow: 0 2px 0 #9ED9BE; }
.cbox--z.is-poor { filter: none; }
.cbox--z.is-poor .cbox__art { filter: saturate(.7) drop-shadow(0 3px 2px rgba(40, 60, 30, .2)); }
@media (max-width: 600px) {
  .cbox--z .cbox__tag b { display: none; }
  .cbox--z .cbox__tag { padding: 1px 3px; }
}

/* 开盒弹窗:守关生肖 + 台词 */
.cmodal__card--z { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, #fff), #fff 46%); }
.cmodal__lv { position: relative; display: inline-block; margin: 0 0 6px; padding: 4px 14px; border-radius: 999px; background: var(--c, #FF9F1C); color: #fff; font-size: 15px; font-weight: 900; }
.cmodal__box--z {
  position: relative; width: 190px; height: 190px; font-size: 0; border-radius: 50%;
  background: var(--zimg) center 92% / 86% auto no-repeat, radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 30%, #fff) 0 56%, transparent 57%);
  box-shadow: none;
}
.cmodal__gift { position: absolute; right: -6px; bottom: 4px; display: flex; align-items: center; gap: 2px; padding: 4px 10px 4px 6px; border-radius: 999px; background: #fff; color: color-mix(in srgb, var(--c) 80%, #000); font-size: 18px; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.cmodal__gift i { font-style: normal; font-size: 26px; display: inline-block; animation: boxWiggle 1.6s ease-in-out infinite; }
.cmodal__say { position: relative; display: inline-block; margin: 8px 0 0; padding: 8px 14px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 700; box-shadow: 0 3px 10px rgba(0, 0, 0, .08); }
.cmodal__say::before { content: ''; position: absolute; top: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #fff; }
.cmodal__from { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px !important; }
.cmodal__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; object-position: center bottom; background: color-mix(in srgb, var(--c, #FF9F1C) 25%, #fff); }

/* 手机窄屏顶栏(11-05):标题/试卷得分/余额挤在一行时不再互相遮住 */
@media (max-width: 600px) {
  .chead { gap: 8px; }
  .chead > * { flex: none; }
  .chead .icon-btn { width: 40px; height: 40px; font-size: 20px; }
  .chead__title { font-size: 18px; }
  .chead__exam { padding: 7px 10px; font-size: 14px; white-space: nowrap; }
  .chead__bank { margin-left: auto; padding: 4px 12px 4px 4px; gap: 5px; }
  .cbank__coin { width: 34px; height: 34px; }
  .cbank__coin span { font-size: 18px; }
  .chead__n { font-size: 24px; }
  .chead__unit { font-size: 13px; }
}
@media (max-width: 380px) {
  .chead__title .gc { display: none; }
  .chead__exam { padding: 7px 8px; font-size: 13px; }
}
@media (max-width: 600px) {
  .cpanel__tab { font-size: 15px; white-space: nowrap; padding: 9px 4px; }
  .cpanel__tab small { font-size: 11px; }
}

/* 11-05 夜第三版:汉字关卡号(十一/十二 两个字要窄一点);倍数徽章去掉 🎁(宝箱已经捧在角色手里) */
.cbox--z .cbox__no { font-size: calc(var(--t, 80px) * .15); }
.cbox--z .cbox__no.is-2 { font-size: calc(var(--t, 80px) * .12); letter-spacing: -1px; padding: 0 4px; }
.cbox--z .cbox__tag { padding: 1px 7px; }
.cmodal__gift { padding: 4px 12px; font-size: 20px; }

/* 11-05 深夜:生肖角色缩到原来的一半(脚还站在同一个落点),徽章跟着贴近角色;价格牌左侧放生肖字 */
.cbox--z .cbox__no { display: none; }
.cbox--z .cbox__art { left: 21%; right: 21%; top: 37%; bottom: 10%; }
.cbox--z .cbox__base { left: 30%; right: 30%; bottom: 6%; height: 9%; }
.cbox--z .cbox__tag { top: 26%; right: 12%; font-size: calc(var(--t, 80px) * .12); padding: 0 5px; }
.cbox--z .cbox__prize { top: 30%; font-size: calc(var(--t, 80px) * .28); }
.cbox--z .cbox__price { display: inline-flex; align-items: center; gap: 2px; padding-left: 3px; }
.cbox__zc {
  display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin-right: 2px; border-radius: 50%;
  background: var(--c); color: #fff; font-weight: 900; line-height: 1;
}
.cbox--z.is-open .cbox__zc { background: #8A9AA8; }
/* 角色缩小后让脚落在小路上:关卡整体上移,脚底(格子 90% 处)对准路线,价格牌紧贴脚下 */
.cbox--z { transform: translate(-50%, -84%); }

/* 11-05 23:10 用户:角色放大到上一版的 1.5 倍(58%×53% → 87%×80%,脚仍在格子 90% 处踩路线);生肖字 + 价格牌小一号 */
.cbox--z .cbox__art { left: 6.5%; right: 6.5%; top: 10.5%; bottom: 10%; }
.cbox--z .cbox__base { left: 20%; right: 20%; bottom: 4%; height: 13%; }
.cbox--z .cbox__tag { top: 4%; right: 2%; font-size: calc(var(--t, 80px) * .13); padding: 0 6px; }
.cbox--z .cbox__prize { top: 20%; font-size: calc(var(--t, 80px) * .38); }
.cbox--z .cbox__price { font-size: max(9px, calc(var(--t, 80px) * .12)); padding: 1px 6px 1px 2px; bottom: -2%; }
.cbox--z .cbox__tag { top: 12%; right: 0; }
