* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #131443; color: #eef0ff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#stage { position: fixed; inset: 0; display: block; touch-action: none; }
#ui { position: fixed; inset: 0; pointer-events: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#ui button, #ui .panel, #ui .cards > *, #ui .hcard { pointer-events: auto; }
.hidden { display: none !important; }
.screen { position: absolute; inset: 0; }

/* ---------- 像素图标 ---------- */
.ic { display: inline-block; flex: none; vertical-align: -0.2em; line-height: 0; }
.ic svg { width: 100%; height: 100%; display: block; }
.btn .ic, .chip .ic, .bk-act .ic, .hc-title .ic, .me-title .ic, .r-badges .ttl .ic, .tb-title .ic { margin-right: 7px; }
.chip .ic { margin-right: 5px; vertical-align: -2px; }
.btn-gold { --ic-acc: #ffffff; }
.bk-act.dl { --ic-acc: #ffffff; }
.icon-btn { display: inline-grid; place-items: center; }
.empty .ic { opacity: 0.6; margin-bottom: 8px; }

/* ---------- 通用 ---------- */
.panel { background: linear-gradient(160deg, rgba(40, 32, 110, 0.62), rgba(18, 20, 64, 0.62));
  border: 1px solid rgba(170, 150, 255, 0.22); border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn { font: inherit; font-weight: 700; color: #fff; border: 0; cursor: pointer; border-radius: 10px;
  padding: 10px 16px; font-size: 15px; letter-spacing: 0.5px; position: relative; top: 0;
  transition: top 0.06s, box-shadow 0.06s, filter 0.15s; white-space: nowrap; }
.btn:active { top: 4px; }
.btn:hover { filter: brightness(1.08); }
.btn-gold { background: linear-gradient(180deg, #ffe27a, #ffc12b); color: #5a3200; box-shadow: 0 5px 0 #b97408, 0 8px 24px rgba(255, 190, 40, 0.35); }
.btn-gold:active { box-shadow: 0 1px 0 #b97408, 0 4px 14px rgba(255, 190, 40, 0.3); }
.btn-violet { background: linear-gradient(180deg, #a088ff, #7b5cf5); box-shadow: 0 4px 0 #4630b0; }
.btn-violet:active { box-shadow: 0 0 0 #4630b0; }
.btn-ghost { background: rgba(255, 255, 255, 0.07); color: #c9c4f5; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); border: 1px solid rgba(170, 150, 255, 0.2); }
.btn-ghost:active { box-shadow: none; }
.btn-big { width: 100%; font-size: 20px; padding: 14px; margin-top: 18px; letter-spacing: 6px; }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.chip { font: inherit; font-size: 13px; color: #c9c4f5; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(170, 150, 255, 0.2); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.chip:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- 首页 ---------- */
.home-wrap { height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4vw; padding: 4vh 5vw; }
.home-hero { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.logo-slot { width: 100%; height: min(24vh, 210px); }
.tagline { color: #b9b2f0; font-size: clamp(14px, 1.8vw, 18px); letter-spacing: 4px; opacity: 0.9; }
.home-panel { padding: 22px 22px 18px; max-width: 520px; width: 100%; justify-self: center; }
.sec-title { font-size: 13px; color: #9d95dc; letter-spacing: 2px; margin: 4px 0 10px; }
.sec-title:not(:first-child) { margin-top: 18px; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.card { position: relative; cursor: pointer; padding: 14px 14px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(170, 150, 255, 0.16); transition: all 0.15s; }
.card:hover { background: rgba(255, 255, 255, 0.09); }
.card.on { border-color: #ffd23f; background: rgba(255, 210, 63, 0.1); box-shadow: 0 0 24px rgba(255, 210, 63, 0.18); }
.card .c-name { font-size: 18px; font-weight: 800; }
.card .c-desc { font-size: 12.5px; color: #a9a2e0; margin-top: 3px; }
.card .c-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); margin-top: 10px; overflow: hidden; display: flex; }
.card .c-bar i { display: block; height: 100%; }
.card .c-bar i.m { background: #ffd23f; }
.card .c-bar i.s { background: #8f71ff; }
.card .c-stat { font-size: 11.5px; color: #9d95dc; margin-top: 6px; }
.card .badge { position: absolute; top: -9px; right: 10px; font-size: 11px; font-weight: 800; color: #5a3200;
  background: #ffd23f; padding: 2px 8px; border-radius: 99px; }
.card .c-ico { font-size: 22px; float: right; opacity: 0.9; }
.settings { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

/* ---------- 游戏 ---------- */
/* minmax(0,1fr)：页面宽度永远等于屏幕宽度，不会被顶栏等内容撑开 */
#scr-game, #scr-me, #scr-bank { grid-template-columns: minmax(0, 1fr); }
#scr-game { display: grid; grid-template-rows: auto 1fr; }
.topbar { min-width: 0; }
.tb-stats { min-width: 0; flex-shrink: 0; }
.topbar > .icon-btn { flex: none; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 20px 4px; }
.icon-btn { pointer-events: auto; font: inherit; font-size: 28px; line-height: 1; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  color: #d9d4ff; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(170, 150, 255, 0.2); }
.tb-title { font-weight: 700; color: #b9b2f0; letter-spacing: 1px; font-size: 15px;
  flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-stats { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.stat { display: flex; align-items: center; gap: 2px; padding: 2px 8px 2px 12px; border-radius: 10px; background: rgba(10, 10, 40, 0.35); }
.stat .lbl { font-size: 12px; color: #9d95dc; }
.stat.combo { opacity: 0.35; transition: opacity 0.2s, transform 0.2s; }
.stat.combo.on { opacity: 1; }
.stat.combo.pop { transform: scale(1.18); }

.game-body { display: grid; grid-template-columns: minmax(250px, 30%) 1fr; gap: 20px; padding: 10px 20px 20px; min-height: 0; }
.prompt { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; }
.p-tag { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: #8f71ff; color: #fff; }
.p-tag.new { background: #45d2ff; color: #06344a; }
.p-tag.review { background: #ffd23f; color: #5a3200; }
.p-tag:empty { display: none; }
.p-pos { font-size: 13px; color: #9d95dc; font-style: italic; }
.p-cn { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; line-height: 1.3; color: #fff; text-shadow: 0 2px 12px rgba(143, 113, 255, 0.5); }
.p-reveal { border-top: 1px dashed rgba(170, 150, 255, 0.25); padding-top: 10px; opacity: 0; transform: translateY(6px); transition: all 0.3s; }
.p-reveal.show { opacity: 1; transform: none; }
.p-word { font-size: 26px; font-weight: 800; color: #ffd23f; letter-spacing: 1px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.p-phon { color: #b9b2f0; font-size: 15px; margin-top: 2px; font-family: "Lucida Sans Unicode", "Arial Unicode MS", sans-serif; }
.p-full { color: #d9d4ff; font-size: 14px; margin-top: 6px; line-height: 1.5; }
.p-help { color: #8b84c9; font-size: 13px; line-height: 1.5; margin-top: auto; }
.p-help:empty { display: none; }
.p-cn:empty { display: none; }
.p-card { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.p-reveal:not(.show) .p-extra { display: none; }
.p-extra { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ex { padding: 8px 10px 8px 12px; border-left: 3px solid #8f71ff; background: rgba(255, 255, 255, 0.04); border-radius: 0 10px 10px 0; cursor: pointer; pointer-events: auto; }
.ex:hover { background: rgba(255, 255, 255, 0.08); }
.ex-en { font-size: 14.5px; line-height: 1.45; color: #eef0ff; }
.ex-en b { color: #ffd23f; font-weight: 800; }
.ex-ic { opacity: 0.55; margin-left: 5px; }
.ex-ic .ic { vertical-align: -1px; }
.ex-zh { font-size: 12.5px; color: #a9a2e0; margin-top: 3px; line-height: 1.4; }
.phr { display: flex; flex-wrap: wrap; gap: 6px; }
.phr span { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: rgba(69, 210, 255, 0.12); border: 1px solid rgba(69, 210, 255, 0.25); color: #c9f1ff; }
.phr span b { color: #fff; margin-right: 4px; font-weight: 700; }
.x-label { font-size: 11.5px; color: #8b84c9; letter-spacing: 1px; margin-bottom: -4px; }

/* 收集区 */
.collect { flex: 0 0 auto; max-height: 40%; min-height: 120px; display: flex; flex-direction: column; gap: 8px;
  border-top: 1px dashed rgba(170, 150, 255, 0.25); padding-top: 10px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: #9d95dc; }
.col-head b { color: #ffd23f; font-size: 15px; margin-left: 2px; }
.col-total { font-size: 11.5px; }
.col-grid { flex: 1; min-height: 0; overflow: auto; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; scrollbar-width: thin; }
.col-grid:empty::before { content: '配对成功的单词会飞到这里'; font-size: 12px; color: #6f68ad; }
.cw { pointer-events: auto; font: inherit; cursor: pointer; border: 0; border-radius: 7px; padding: 4px 9px 5px; display: inline-flex; gap: 5px; align-items: baseline;
  background: linear-gradient(180deg, #ffe680, #ffc72e); color: #5a3200; box-shadow: 0 3px 0 #b97408, 0 0 14px rgba(255, 200, 60, 0.25);
  opacity: 0; transform: scale(0.4); transition: transform 0.25s cubic-bezier(.3, 1.8, .5, 1), opacity 0.15s; }
.cw.show { opacity: 1; transform: none; }
.cw.retry { background: linear-gradient(180deg, #b9ecff, #45d2ff); color: #06344a; box-shadow: 0 3px 0 #13739f; }
.cw b { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; font-weight: 800; }
.cw i { font-style: normal; font-size: 11.5px; opacity: 0.8; }
.cw.on { outline: 2px solid #fff; outline-offset: 2px; }
.flyer { position: fixed; z-index: 50; pointer-events: none; display: grid; place-items: center; border-radius: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 800; color: #5a3200;
  background: linear-gradient(160deg, #fff3a8, #ffd23f 40%, #f5ae1b); box-shadow: 0 6px 0 #c27b0f, 0 0 30px rgba(255, 205, 64, 0.8);
  transition: left 0.55s cubic-bezier(.5, 0, .3, 1), top 0.55s cubic-bezier(.5, -0.4, .3, 1), width 0.55s, height 0.55s, font-size 0.55s, opacity 0.55s; }
.play-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.play-col .playfield { flex: 1; }
.actions { display: flex; gap: 12px; justify-content: center; flex: none; }
.actions .btn { flex: 0 1 170px; padding: 12px 10px; font-size: 16px; }
/* 全屏按钮（右上角） */
.full-btn { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: calc(env(safe-area-inset-right) + 14px); z-index: 20; pointer-events: auto;
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer; color: #d9d4ff; background: rgba(255, 255, 255, 0.07); display: grid; place-items: center;
  border: 1px solid rgba(170, 150, 255, 0.2); }
.full-btn.on { color: #ffd23f; border-color: rgba(255, 210, 63, 0.4); }
.full-btn:hover { background-color: rgba(255, 255, 255, 0.12); }
body:not(.no-fs) .topbar { padding-right: 70px; }
.no-fs .full-btn { display: none; }
.playfield { position: relative; min-height: 0; }
.tap-next { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 14px; color: #ffe27a; letter-spacing: 2px;
  animation: blink 1.2s infinite; pointer-events: auto; cursor: pointer; padding: 6px 14px; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- 结算 ---------- */
#scr-result { display: flex; align-items: center; justify-content: center; padding: 3vh 4vw; }
.result { width: min(640px, 100%); max-height: 100%; padding: 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.r-stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.r-stats .rs { text-align: center; padding: 8px 16px; border-radius: 12px; background: rgba(10, 10, 40, 0.35); min-width: 92px; }
.r-stats .rs b { display: block; font-size: 22px; color: #fff; }
.r-stats .rs span { font-size: 12px; color: #9d95dc; }
.r-list { width: 100%; overflow: auto; min-height: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 6px 2px; }
.r-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); cursor: pointer; pointer-events: auto; }
.r-item:hover { background: rgba(255, 255, 255, 0.09); }
.r-item .ok { width: 18px; height: 18px; border-radius: 4px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.r-item .ok.y { background: #4ae59b; color: #063; }
.r-item .ok.n { background: #ff5874; color: #fff; }
.r-item .w { font-weight: 800; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.r-item .m { font-size: 12.5px; color: #a9a2e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-btns { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }

/* ---------- 首页：成就 / 历史卡片 ---------- */
.home-cards { width: 100%; max-width: 620px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; margin-top: 6px; }
.hcard { cursor: pointer; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid rgba(170, 150, 255, 0.22); background: linear-gradient(160deg, rgba(40, 32, 110, 0.62), rgba(18, 20, 64, 0.62));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform 0.15s, box-shadow 0.15s; }
.hcard:hover { transform: translateY(-2px); }
.hc-ach { border-color: rgba(255, 210, 63, 0.45); background: linear-gradient(160deg, rgba(120, 90, 20, 0.35), rgba(40, 32, 110, 0.6) 55%);
  box-shadow: 0 0 30px rgba(255, 200, 60, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.hc-title { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 15px; }
.hc-ach .hc-title { color: #ffe27a; }
.hc-title .more { font-size: 12px; font-weight: 600; color: #9d95dc; }
.hc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hc-nums > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hc-nums span { font-size: 11.5px; color: #c9c4f5; }
.hc-badges { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 34px; }
.hc-badges .nb { font-size: 11.5px; color: #8b84c9; }
.hc-today { font-size: 13px; color: #c9c4f5; line-height: 1.5; }
.hc-today b { color: #ffd23f; font-size: 16px; margin: 0 2px; }
.hc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: auto; }
.hc-week .d { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: #7d76bd; }
.hc-week .hc { width: 100%; }
.btn-demo { width: 100%; padding: 10px; font-size: 15px; }
.demo-sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: #6f68ad; font-size: 11.5px; letter-spacing: 2px; }
.demo-sep::before, .demo-sep::after { content: ''; flex: 1; height: 1px; background: rgba(170, 150, 255, 0.2); }
.btn-demo small { font-size: 12px; font-weight: 500; color: #8b84c9; margin-left: 4px; }
.next-btn { flex: none; width: auto; padding: 0 12px; font-size: 14px; font-weight: 700; white-space: nowrap; }
body.demo .tb-title { color: #ffe27a; }
/* 选择词库 */
#scr-bank { display: grid; grid-template-rows: auto 1fr; }
.pick-bank .c-stat { color: #ffe27a; }
/* 还没选词库：右边“选择词库”高亮呼吸 */
.pick-bank.glow { border-color: #ffd23f; background: rgba(255, 210, 63, 0.12); animation: glowPulse 1.8s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 10px rgba(255, 210, 63, 0.25); } 50% { box-shadow: 0 0 28px rgba(255, 210, 63, 0.6); } }
.cur-bank.trial { border-color: rgba(170, 150, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
.cur-bank.trial .c-name { color: #d9d4ff; }
.bk { padding: 0; overflow: hidden; margin-bottom: 8px; }
.bk.na .bk-name { color: #b9b2f0; }
.bk-cat { font-size: 13px; color: #9d95dc; letter-spacing: 2px; margin: 14px 4px 8px; font-weight: 700; }
.bk-cat:first-child { margin-top: 2px; }
.bk-main { min-width: 0; }
.bk-side { display: flex; align-items: center; gap: 10px; flex: none; }
.bk-act { font: inherit; font-size: 13px; font-weight: 700; border-radius: 9px; padding: 6px 12px; white-space: nowrap; }
.bk-act.dl { cursor: pointer; border: 0; color: #5a3200; background: linear-gradient(180deg, #ffe27a, #ffc12b); box-shadow: 0 3px 0 #b97408; }
.bk-act.dl small { font-weight: 500; opacity: 0.75; }
.bk-act.tag { color: #9d95dc; background: rgba(255, 255, 255, 0.06); }
.bk-act.tag.ok { color: #4ae59b; }
.bk-act.busy { color: #ffe27a; animation: blink 1s infinite; }
.bk-del { font: inherit; cursor: pointer; border: 0; background: transparent; font-size: 16px; opacity: 0.6; padding: 4px; }
.bk-del:hover { opacity: 1; }
.bk-err { font-size: 12px; color: #ff8a9c; margin-top: 4px; }
.ch-loading { padding: 0 18px 16px; color: #9d95dc; font-size: 13px; }
.c-stat b.today { color: #4ae59b; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; }
.bk-head:hover { background: rgba(255, 255, 255, 0.04); }
.bk-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.bk-cur { font-size: 11px; font-weight: 800; color: #5a3200; background: #ffd23f; padding: 2px 8px; border-radius: 99px; }
.bk-desc { font-size: 12.5px; color: #a9a2e0; margin-top: 3px; }
.bk-arrow { font-size: 15px; color: #9d95dc; transition: transform 0.2s; white-space: nowrap; }
.bk.open .bk-arrow { transform: rotate(90deg); }
.ch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; padding: 0 14px 16px; }
.ch { cursor: pointer; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(170, 150, 255, 0.14);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; }
.ch:hover { background: rgba(255, 255, 255, 0.09); }
.ch.on { border-color: #ffd23f; background: rgba(255, 210, 63, 0.1); }
.ch-name { font-size: 14px; font-weight: 700; }
.ch-n { font-size: 12px; color: #9d95dc; font-variant-numeric: tabular-nums; }
.ch-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ch-bar i { display: block; height: 100%; background: #ffd23f; }
.me-title { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.case-btn { white-space: nowrap; flex: none; font-size: 16px; font-weight: 800; width: auto; padding: 0 12px; margin-left: 4px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---------- 我的记录 ---------- */
.chip-gold { color: #ffe27a; border-color: rgba(255, 210, 63, 0.4); background: rgba(255, 210, 63, 0.08); }
.settings { flex-wrap: wrap; }
#scr-me { display: grid; grid-template-rows: auto 1fr; }
#scr-me:not(.hidden) { display: grid; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(10, 10, 40, 0.45); pointer-events: auto; }
.tab { font: inherit; font-size: 15px; font-weight: 700; color: #9d95dc; background: transparent; border: 0; border-radius: 9px; padding: 7px 22px; cursor: pointer; }
.tab.on { color: #5a3200; background: linear-gradient(180deg, #ffe27a, #ffc12b); box-shadow: 0 3px 0 #b97408; }
.me-body { overflow: auto; pointer-events: auto; padding: 10px 20px 30px; }
.me-pane { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.heat-card { padding: 16px 18px; }
.heat-head { display: flex; justify-content: space-between; font-size: 13px; color: #9d95dc; margin-bottom: 10px; }
.heat-head b { color: #ffd23f; }
.heat { display: grid; grid-template-columns: repeat(30, 1fr); gap: 5px; }
.hc { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, 0.06); position: relative; }
.hc.l1 { background: #5b46c4; box-shadow: 0 2px 0 #382593; }
.hc.l2 { background: #8f71ff; box-shadow: 0 2px 0 #4a33b8, 0 0 8px rgba(143, 113, 255, 0.5); }
.hc.l3 { background: #ffd23f; box-shadow: 0 2px 0 #c27b0f, 0 0 10px rgba(255, 210, 63, 0.6); }
.hc.today { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 1px; }
.heat-foot { display: flex; justify-content: space-between; font-size: 11px; color: #6f68ad; margin-top: 6px; }
.h-day { margin-top: 6px; display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.h-day b { font-size: 15px; }
.h-day span { font-size: 12px; color: #9d95dc; }
.h-row { display: grid; grid-template-columns: 52px 1fr auto auto auto auto 18px; gap: 14px; align-items: center; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(30, 26, 90, 0.55); border: 1px solid rgba(170, 150, 255, 0.14); margin-top: 6px; }
.h-row:hover { background: rgba(50, 42, 130, 0.6); }
.h-time { color: #9d95dc; font-size: 13px; font-variant-numeric: tabular-nums; }
.h-what b { font-size: 14.5px; }
.h-what span { font-size: 12px; color: #9d95dc; margin-left: 8px; }
.h-num { text-align: right; font-size: 13px; color: #c9c4f5; min-width: 54px; font-variant-numeric: tabular-nums; }
.h-num small { display: block; font-size: 10.5px; color: #7d76bd; }
.h-num.score { color: #ffd23f; font-weight: 800; font-size: 15px; }
.h-arrow { color: #7d76bd; transition: transform 0.2s; }
.h-row.open .h-arrow { transform: rotate(90deg); }
.h-words { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px 4px; }
.h-words .cw { opacity: 1; transform: none; }
.empty { text-align: center; color: #7d76bd; padding: 40px 0; font-size: 14px; }
.life-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; }
.lt { grid-column: span 2; }
.lt { padding: 14px 12px 12px; border-radius: 14px; background: rgba(30, 26, 90, 0.55); border: 1px solid rgba(170, 150, 255, 0.16);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lt span { font-size: 12.5px; color: #a9a2e0; }
.lt.hero { grid-column: span 5; background: linear-gradient(160deg, rgba(90, 70, 200, 0.45), rgba(30, 26, 90, 0.55)); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bd { padding: 14px 10px 12px; border-radius: 14px; background: rgba(30, 26, 90, 0.45); border: 1px solid rgba(170, 150, 255, 0.12); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bd.on { background: linear-gradient(160deg, rgba(255, 210, 63, 0.16), rgba(30, 26, 90, 0.55)); border-color: rgba(255, 210, 63, 0.4); }
.bd b { font-size: 14px; }
.bd:not(.on) b { color: #8b84c9; }
.bd span { font-size: 11.5px; color: #8b84c9; line-height: 1.4; }
.bd i { font-style: normal; font-size: 10.5px; color: #ffd23f; opacity: 0.8; }
.bd .slot { height: 64px; display: grid; place-items: center; }
#badgeCount { color: #ffd23f; margin-left: 4px; }
.r-score-wrap { position: relative; display: flex; align-items: center; }
.r-best { position: absolute; right: -78px; top: 10px; font-size: 13px; font-weight: 900; color: #5a3200; background: #4ae59b; padding: 3px 9px; border-radius: 99px; transform: rotate(8deg); animation: pop 0.5s cubic-bezier(.3, 1.8, .5, 1); }
.r-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 210, 63, 0.1); border: 1px solid rgba(255, 210, 63, 0.35); }
.r-badges .ttl { font-weight: 800; color: #ffe27a; font-size: 14px; width: 100%; text-align: center; }
.r-badges .rb { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; animation: pop 0.6s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }

/* ---------- 竖屏（手机） ---------- */
@media (orientation: portrait), (max-width: 760px) {
  /* 用 flex + margin:auto 居中：内容超出时不会把顶部挤出屏幕（老版 Safari 不支持 safe center） */
  .home-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 4vw 18px;
    overflow-y: auto; -webkit-overflow-scrolling: touch; pointer-events: auto; overscroll-behavior: contain; }
  .logo-slot { height: min(15vh, 150px); height: min(15svh, 150px); }
  .tagline { display: none; }
  .home-wrap > :first-child { margin-top: auto; }
  .home-wrap > :last-child { margin-bottom: auto; }
  .home-panel { max-width: none; }
  .home-hero { gap: 10px; }
  .home-cards { grid-template-columns: 1.3fr 1fr; gap: 8px; }
  .hcard { padding: 10px 11px; gap: 7px; }
  .hc-title { font-size: 13px; }
  .hc-title .more { display: none; }
  .hc-nums span { font-size: 10px; }
  .hc-badges { min-height: 26px; }
  .hc-today { font-size: 11.5px; }
  .hc-week { gap: 3px; }
  .card { padding: 10px 12px 9px; }
  .card .c-name { font-size: 16px; }
  .card .c-desc { font-size: 11.5px; }
  .card .c-bar { margin-top: 6px; }
  .btn-big { margin-top: 12px; padding: 11px; }
  .settings { margin-top: 10px; }
  .sec-title:not(:first-child) { margin-top: 12px; }
  .home-panel { padding: 16px; }
  .game-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 6px 12px 12px; gap: 10px; }
  .prompt { padding: 12px 14px; gap: 8px; height: 34vh; height: 34svh; }
  .play-col { gap: 8px; }
  .full-btn { width: 36px; height: 36px; top: calc(env(safe-area-inset-top) + 10px); right: calc(env(safe-area-inset-right) + 8px); background-size: 16px; }
  body:not(.no-fs) .topbar { padding-right: 50px; }
  .actions { gap: 8px; }
  .actions .btn { flex: 1 1 0; padding: 12px 6px; font-size: 15px; }
  .p-card { gap: 6px; }
  .p-extra { margin-top: 8px; gap: 6px; }
  .ex-en { font-size: 13px; }
  .collect { min-height: 0; max-height: none; padding-top: 6px; gap: 5px; }
  .col-grid { flex: none; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; height: 34px; padding-bottom: 2px; }
  .cw { flex: none; }
  .p-help { display: none; }
  .p-cn { font-size: 24px; }
  .p-word { font-size: 20px; }
  .p-full { font-size: 13px; margin-top: 2px; }
  .topbar { padding: 10px 12px 2px; gap: 8px; }
  .tb-title { display: none; }
  .tb-stats { gap: 6px; }
  .stat { padding: 2px 4px 2px 6px; }
  .stat .lbl { display: none; }
  .case-btn { padding: 0 9px; font-size: 14px; }
  .next-btn { padding: 0 8px; font-size: 16px; }
  .case-btn .sp { display: none; }
  .case-btn { padding: 0 8px !important; font-size: 14px !important; }
  #scr-game .topbar { gap: 6px; padding-left: 10px; }
  .full-btn { width: 32px; height: 32px; right: calc(env(safe-area-inset-right) + 6px); background-size: 14px; }
  body:not(.no-fs) .topbar { padding-right: 44px; }
  .next-btn .nb-txt { display: none; }
  .icon-btn { width: 38px; height: 38px; font-size: 24px; border-radius: 10px; }
  .case-btn, .next-btn { width: auto; }
  .tb-stats { gap: 2px; }
  .stat { padding: 1px 2px; }
  .btn-demo { padding: 8px; font-size: 14px; }
  .demo-sep { margin: 10px 0 8px; }
  .btn-demo small { font-size: 11px; margin-left: 2px; }
  .r-list { grid-template-columns: 1fr; }
  .heat { grid-template-columns: repeat(15, 1fr); }
  .h-row { grid-template-columns: 44px 1fr auto auto 14px; gap: 8px; padding: 10px; }
  .h-row .h-num.hide-m { display: none; }
  .life-grid { grid-template-columns: repeat(2, 1fr); }
  .lt { grid-column: span 1; }
  .lt.hero { grid-column: span 2; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .ch-list { grid-template-columns: 1fr 1fr; padding: 0 10px 12px; gap: 6px; }
  .bk-head { padding: 12px 12px; gap: 8px; }
  .bk-name { font-size: 15.5px; }
  .bk-desc { font-size: 11.5px; }
  .bk-act { font-size: 12px; padding: 5px 9px; }
  .bk-act.dl small { display: none; }
  .bk-side { gap: 6px; }
  .ch { padding: 8px 9px; }
  .ch-name { font-size: 12.5px; }
  .ch-name .ch-pre { display: none; }
  .me-body { padding: 8px 12px 24px; }
  .r-best { right: -60px; }
}
/* 矮屏手机（如 iPhone 13 Safari 带地址栏时约 390x664） */
@media (orientation: portrait) and (max-height: 760px) {
  .home-wrap { gap: 8px; padding-top: 10px; }
  .logo-slot { height: 11svh; height: 11vh; }
  .home-hero { gap: 6px; }
  .home-cards { gap: 6px; }
  .hcard { padding: 8px 10px; gap: 5px; border-radius: 12px; }
  .hc-badges { min-height: 20px; }
  .hc-week .d { font-size: 9.5px; }
  .home-panel { padding: 12px 12px 10px; }
  .sec-title { margin: 0 0 6px; font-size: 12px; }
  .sec-title:not(:first-child) { margin-top: 8px; }
  .cards { gap: 8px; }
  .card { padding: 8px 10px 7px; border-radius: 10px; }
  .card .c-name { font-size: 15px; }
  .card .c-desc { margin-top: 1px; }
  .card .c-bar { margin-top: 5px; height: 5px; }
  .card .c-stat { margin-top: 4px; font-size: 11px; }
  .card .c-ico { font-size: 18px; }
  .btn-big { margin-top: 10px; padding: 9px; font-size: 18px; }
  .settings { margin-top: 8px; gap: 6px; }
  .chip { font-size: 12px; padding: 5px 10px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .topbar { padding-top: 6px; }
  .game-body { padding-bottom: 10px; gap: 12px; }
  .prompt { padding: 12px; gap: 6px; }
  .p-help { display: none; }
  .home-wrap { padding: 2vh 4vw; }
  .home-panel { padding: 14px; }
  .sec-title:not(:first-child) { margin-top: 10px; }
  .btn-big { margin-top: 12px; padding: 10px; }
}
.p-cn:empty + .p-reveal { border-top: 0; padding-top: 0; }

/* ---------- 进度墙 ---------- */
#scr-wall { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); }
#scr-wall .me-title { display: flex; align-items: center; min-width: 0; }
#scr-wall .me-title .wt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#scr-wall .me-title small { flex: none; font-size: 13px; font-weight: 600; color: #9d95dc; margin-left: 10px; letter-spacing: 0; }
.wall-sum { padding: 14px 18px; }
.ws-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #9d95dc; }
.ws-top b { color: #eef0ff; }
.ws-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ws-n { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #b9b4ea; }
.ws-n i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ws-n b { font-size: 18px; color: #fff; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.ws-today { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(170, 150, 255, 0.2); font-size: 13px; color: #c9c4f5; }
.ws-today b { color: #4ae59b; }
.wall-box { position: relative; padding: 12px 16px 16px; }
.wl-ch { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #9d95dc; margin: 10px 0 5px; }
.wl-ch:first-child { margin-top: 0; }
.wl-ch b { color: #d9d4ff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wl-ch span { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.wl-ch .ok { color: #4ae59b; }
.wl-cv { display: block; cursor: pointer; }
.wl-tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; color: #1a1850; border-radius: 10px; padding: 7px 11px; font-size: 12px; line-height: 1.5; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); white-space: nowrap; }
.wl-tip b { font-size: 15px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.wl-tip .m { color: #5a5690; }
.wl-tip .st { font-weight: 700; }
.wl-tip .st-wrong { color: #e85a1f; } .wl-tip .st-done { color: #17a75a; } .wl-tip .st-none { color: #6b6aa0; }
.wl-tip::after { content: ""; position: absolute; left: calc(var(--ax, 20px) - 6px); bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.wl-tip.below::after { bottom: auto; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #fff; }
.wall-trial { pointer-events: auto; cursor: pointer; text-align: center; font-size: 14px; font-weight: 700; color: #ffe27a; padding: 12px; border-radius: 12px; border: 1px dashed rgba(255, 210, 63, 0.45); background: rgba(255, 210, 63, 0.06); }
/* 首页卡片里的迷你墙 */
.card .c-wall { display: block; max-width: 100%; margin-top: 10px; }
.c-wstat { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; }
.c-wstat .cw-t { min-width: 0; }
.c-wstat .cw-go { flex: none; color: #ffe27a; font-weight: 700; }
.c-stat b.wrong { color: #ff8a5c; }
/* 选择词库：进度墙按钮 */
.bk-wall { font: inherit; font-size: 12px; font-weight: 700; color: #c9c4f5; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 9px; border: 1px solid rgba(170, 150, 255, 0.25); background: rgba(255, 255, 255, 0.06); }
.bk-wall:hover { background: rgba(255, 255, 255, 0.12); }
/* 结算页的小段墙 */
.r-wall { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rw-txt { font-size: 14px; color: #d9d4ff; }
.rw-txt b { color: #4ae59b; font-size: 18px; }
@media (max-width: 480px) {
  .wall-sum { padding: 12px 14px; }
  .wall-box { padding: 10px 12px 12px; }
  .ws-n b { font-size: 16px; }
  .card .c-wall { margin-top: 6px; }
  .bk-wall span { display: none; }
}
/* 首页：当前词库整行一张卡片；选择词库放最下面 */
.bank-cards { display: block; }
.bank-cards .card { display: block; }
.cb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cb-pick { font: inherit; font-size: 13px; font-weight: 800; flex: none; cursor: pointer; border: 0; border-radius: 10px; padding: 8px 12px; color: #5a3200;
  background: linear-gradient(180deg, #ffe27a, #ffc12b); box-shadow: 0 3px 0 #b97408; display: inline-flex; align-items: center; animation: glowPulse 1.8s ease-in-out infinite; }
.cb-pick .ic { margin-right: 5px; }
.btn-pick { width: 100%; margin-top: 4px; font-size: 15px; }
.btn-pick small { font-weight: 500; color: #9d95dc; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* 单词灌顶：像素小人头 + 字母方块一个接一个飞进脑袋 */
.btn-demo { display: inline-flex; align-items: center; justify-content: center; }
.gd { position: relative; display: inline-block; flex: none; width: calc(var(--gd) * 3.2); height: var(--gd); margin-right: 8px; vertical-align: middle; }
.gd .ic { position: absolute; left: 0; top: 0; margin: 0 !important; color: #d9d4ff; --ic-acc: #ffd23f; animation: gdBrain 0.4s ease-in-out infinite; }
.gd b { position: absolute; left: 100%; top: 50%; width: calc(var(--gd) * 0.42); height: calc(var(--gd) * 0.42); border-radius: 2px;
  display: grid; place-items: center; font: 800 calc(var(--gd) * 0.3)/1 ui-monospace, "SF Mono", Menlo, monospace; color: #1b1650;
  background: #45d2ff; box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.25); opacity: 0; transform: translate(-100%, -50%);
  animation: gdFly 1.6s cubic-bezier(.45, 0, .85, .6) infinite; }
.gd b:nth-of-type(2) { background: #ffd23f; }
.gd b:nth-of-type(3) { background: #8f71ff; color: #fff; }
.gd b:nth-of-type(4) { background: #4ae59b; }
@keyframes gdFly {
  0% { left: 100%; top: 50%; opacity: 0; transform: translate(-100%, -50%) scale(1); }
  12% { opacity: 1; }
  75% { opacity: 1; }
  100% { left: calc(var(--gd) * 0.5); top: 22%; opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
}
@keyframes gdBrain { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 210, 63, 0)); } 50% { filter: drop-shadow(0 0 3px rgba(255, 210, 63, 0.9)); } }
.tb-title .gd { margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .gd b, .gd .ic { animation: none; } }
/* 首页：单词灌顶 / 学习模式 两个并排的大按钮（高度跟着动画走） */
.mode-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.tile { font: inherit; color: #eef0ff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px;
  border-radius: 14px; border: 1px solid rgba(170, 150, 255, 0.22); background: rgba(255, 255, 255, 0.06); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.tile:hover { background: rgba(255, 255, 255, 0.1); }
.tile:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.tile-anim { display: flex; align-items: center; justify-content: center; min-height: 40px; }
.tile-name { font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.tile-sub { font-size: 12px; color: #9d95dc; }
.tile .gd { margin-right: 0; }
/* 学习模式的小动画：一排淡淡的字母空格，一个接一个被点亮 */
.st-anim { gap: 5px; }
.st-anim b { width: 26px; height: 30px; border-radius: 5px; display: grid; place-items: center; font: 800 16px/1 ui-monospace, "SF Mono", Menlo, monospace;
  color: rgba(201, 192, 255, 0.35); border: 1.5px dashed rgba(170, 150, 255, 0.45); background: rgba(8, 6, 30, 0.4);
  animation: stLight 2.6s steps(1, end) infinite; }
.st-anim b:nth-child(2) { animation-delay: 0.35s; } .st-anim b:nth-child(3) { animation-delay: 0.7s; } .st-anim b:nth-child(4) { animation-delay: 1.05s; }
@keyframes stLight {
  0%, 12% { color: rgba(201, 192, 255, 0.35); background: rgba(8, 6, 30, 0.4); border-color: rgba(170, 150, 255, 0.45); box-shadow: none; transform: none; }
  13%, 80% { color: #5a3200; background: linear-gradient(180deg, #ffe27a, #ffc12b); border: 1.5px solid #ffd23f; box-shadow: 0 0 10px rgba(255, 210, 63, 0.55); transform: translateY(-1px); }
  81%, 100% { color: rgba(201, 192, 255, 0.35); background: rgba(8, 6, 30, 0.4); border-color: rgba(170, 150, 255, 0.45); box-shadow: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .st-anim b { animation: none; } }
@media (max-width: 480px) {
  .mode-tiles { gap: 8px; }
  .tile { padding: 12px 6px 10px; gap: 4px; }
  .tile-name { font-size: 15px; }
  .tile-sub { font-size: 11px; }
  .st-anim b { width: 22px; height: 26px; font-size: 14px; }
}
/* 学习模式：顶栏的星星进度条代替分数 */
body.study #scr-game .tb-stats { display: none; }
.study-bar { margin-left: auto; display: flex; gap: 4px; flex-wrap: nowrap; min-width: 0; }
.study-bar i { width: 18px; height: 18px; border-radius: 4px; background: rgba(10, 10, 40, 0.45); border: 1px solid rgba(170, 150, 255, 0.3); flex: none; display: grid; place-items: center; font-style: normal; transition: all 0.2s; }
.study-bar i.on { background: linear-gradient(180deg, #ffe27a, #ffc12b); border-color: #ffd23f; box-shadow: 0 0 10px rgba(255, 210, 63, 0.6); animation: starPop 0.35s ease-out; }
.study-bar i .ic { --ic-acc: #fff7d0; color: #8a4b00; }
@keyframes starPop { 0% { transform: scale(1.7); } 100% { transform: scale(1); } }
.star-flyer { position: fixed; z-index: 50; pointer-events: none; color: #ffd23f; --ic-acc: #ffd23f; filter: drop-shadow(0 0 10px rgba(255, 210, 63, 0.9));
  transform: translate(-50%, -50%) scale(1.3); transition: left 0.65s cubic-bezier(.5, -0.3, .7, 1), top 0.65s cubic-bezier(.3, 0, .8, .5), transform 0.65s; }
@media (max-width: 480px) { .study-bar { gap: 2px; } .study-bar i { width: 13px; height: 13px; border-radius: 3px; } .study-bar i .ic { width: 9px !important; height: 9px !important; } }
.p-tag.study { background: #4ae59b; color: #063a22; }
/* 学习模式结算 */
.r-study-title { font-size: 26px; font-weight: 900; letter-spacing: 3px; color: #ffe27a; text-shadow: 0 0 18px rgba(255, 210, 63, 0.5); }
.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.r-btns.r-btns-study { flex-direction: column; align-items: stretch; width: min(340px, 100%); gap: 10px; }
.r-btns.r-btns-study .btn { width: 100%; justify-content: center; }
.r-btns.r-btns-study #btnHome { background: transparent; box-shadow: none; border: 0; color: #9d95dc; font-size: 14px; padding: 6px; }
.r-btns.r-btns-study #btnHome .ic { width: 16px !important; height: 16px !important; }

/* ================= 首页 v3：信息（看）· 选项（选）· 开始（按） ================= */
/* 信息：平的、没有立体感，点了看详情 */
.hcard, .hc-ach { border: 0; background: rgba(255, 255, 255, 0.04); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hcard:hover { transform: none; background: rgba(255, 255, 255, 0.07); }
.hc-ach .hc-title, .hc-title { color: #c9c4f5; font-size: 14px; font-weight: 700; }
.hc-title .more { font-size: 14px; color: #7c76b8; }
.hc-badges { display: none; }
.home-hero { width: 100%; }
.home-cards, .hc-wall { width: 100%; max-width: 560px; }
.hc-wall { gap: 6px; }
.hc-wall .c-wall { display: block; max-width: 100%; }
.hw-stat { font-size: 12px; color: #8b84c9; }
.hw-stat b { color: #d9d4ff; }
.hw-stat b.wrong { color: #ff8a5c; } .hw-stat b.today { color: #4ae59b; }
.hc-nums span { white-space: nowrap; }
/* 选项：放在一个框里，像设置页 */
.opt { background: rgba(10, 10, 40, 0.35); border: 1px solid rgba(170, 150, 255, 0.18); border-radius: 14px; padding: 4px; }
.opt-sep { height: 1px; background: rgba(170, 150, 255, 0.12); margin: 0 10px; }
.field { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; min-width: 0; }
#curBank { cursor: pointer; }
#curBank:hover { background: rgba(255, 255, 255, 0.04); }
.fk { font-size: 15px; font-weight: 800; color: #e3dfff; flex: none; width: 36px; }
.fv { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv small { display: block; font-size: 12px; font-weight: 400; color: #8b84c9; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.fchev { font: inherit; font-size: 13px; font-weight: 700; flex: none; cursor: pointer; color: #d9d4ff; background: transparent;
  border: 1px solid rgba(170, 150, 255, 0.35); border-radius: 9px; padding: 5px 11px; display: inline-flex; align-items: center; }
.fchev .ic { margin-right: 5px; }
.fchev.glow { color: #5a3200; border: 0; background: linear-gradient(180deg, #ffe27a, #ffc12b); box-shadow: 0 3px 0 #b97408; animation: glowPulse 1.8s ease-in-out infinite; }
/* 玩法：分段开关，白色底块滑到选中的一边 */
.seg { position: relative; flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; background: rgba(0, 0, 0, 0.28); border-radius: 10px; padding: 3px; }
.seg-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 8px; background: #eef0ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.28s cubic-bezier(.3, 1.3, .5, 1); }
.seg.right .seg-pill { transform: translateX(100%); }
.seg-opt { position: relative; z-index: 1; font: inherit; font-size: 15px; font-weight: 800; color: #d9d4ff; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border-radius: 8px; transition: color 0.2s; white-space: nowrap; }
.seg-opt .ic { margin: 0; }
.seg-opt.on { color: #231c6b; }
/* 开始：立体、有颜色、带 ▶ */
.go { font: inherit; border: 0; border-radius: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px 11px; }
.go:active { transform: translateY(2px); }
.go-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.go-anim { display: flex; align-items: center; justify-content: center; height: 34px; }
.go-name { font-size: 17px; font-weight: 900; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 7px; }
.go-sub { font-size: 12px; font-weight: 500; }
.tri { display: inline-block; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }
.go-study { color: #fff; background: linear-gradient(180deg, #9b84ff, #7b5cf5); box-shadow: 0 4px 0 #4630b0; }
.go-study .go-sub { color: #e3dcff; }
.go-test { color: #5a3200; background: linear-gradient(180deg, #ffe27a, #ffc12b); box-shadow: 0 4px 0 #b97408, 0 8px 22px rgba(255, 190, 40, 0.3); }
.go-test .go-sub { color: #8a5a10; }
.go-study:active { box-shadow: 0 2px 0 #4630b0; } .go-test:active { box-shadow: 0 2px 0 #b97408; }
.te-anim .ic { color: #5a3200; animation: tePop 1.6s ease-in-out infinite; }
@keyframes tePop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.go-auto { width: 100%; margin-top: 12px; flex-direction: row; justify-content: space-between; gap: 12px; padding: 10px 20px; color: #eef0ff;
  background: rgba(143, 113, 255, 0.16); border: 1px solid rgba(170, 150, 255, 0.35); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.go-auto:active { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.go-auto .go-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.go-auto .go-name { font-size: 15px; }
.go-auto .go-sub { color: #b9b2f0; text-align: left; }
.go-auto .tri { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
.go-auto .go-anim { height: auto; flex: none; }
.go-auto .gd { margin-right: 0; }
/* 设置：上面写「设置」，下面是圆角按钮 */
.set-title { font-size: 12px; color: #8b84c9; letter-spacing: 2px; margin: 16px 0 0; display: flex; align-items: center; gap: 10px; }
.set-title::before, .set-title::after { content: ""; flex: 1; height: 1px; background: rgba(170, 150, 255, 0.15); }
.home-panel .settings { margin-top: 8px; }
@media (orientation: portrait), (max-width: 760px) {
  /* 手机：Logo 一行，省屏幕 */
  .logo-slot { height: min(64px, 15vw); }
  .home-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hc-nums span { font-size: 9.5px; }
  .fk { font-size: 14px; width: 32px; }
  .fv { font-size: 15px; }
  .seg-opt { font-size: 14px; }
  .go-row { gap: 10px; margin-top: 12px; }
  .go-name { font-size: 16px; }
  .go-auto { margin-top: 10px; padding: 9px 14px; }
  .set-title { margin-top: 12px; }
  .home-panel .settings { gap: 6px; }
  .home-panel .chip { font-size: 12px; padding: 5px 9px; }
}
@media (orientation: portrait) and (max-height: 760px) {
  .logo-slot { height: min(52px, 13vw); }
  .field { padding: 8px 10px; }
  .go { padding: 9px 6px 8px; }
  .go-anim { height: 28px; }
  .st-anim b { width: 20px; height: 24px; font-size: 13px; }
  .go-row { margin-top: 10px; }
  .go-auto { margin-top: 8px; padding: 7px 14px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .go-anim { height: 26px; }
  .go { padding: 8px 6px; }
  .go-row { margin-top: 10px; }
}
/* 单词卡片：标签在右上角，词性跟在中文后面，音标跟在单词后面（省掉三行） */
.p-card { position: relative; }
.p-card > .p-tag { position: absolute; top: 0; right: 0; z-index: 1; }
.p-cn { padding-right: 58px; }
.p-cn.empty { display: none; }
.p-cn.empty + .p-reveal { border-top: 0; padding-top: 0; }
.p-cn.empty + .p-reveal .p-wl { padding-right: 70px; }
.p-cn .p-pos { font-size: 15px; font-weight: 500; font-style: italic; color: #9d95dc; margin-left: 8px; text-shadow: none; white-space: nowrap; }
.p-wl { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.p-wl .p-word { word-break: break-all; }
.p-wl .p-phon { margin-top: 0; }
.p-phon:empty { display: none; }
@media (orientation: portrait), (max-width: 760px) { .p-cn .p-pos { font-size: 13px; } .p-cn { padding-right: 52px; } }
#btnStudyHint.off { opacity: 0.7; }
