/* ============================================================================
   英语小精灵 · 网页版 —— 页面布局
   逐屏对齐 reference/uishots 真实截图：login / map / battle / result / 其它页
   ============================================================================ */

/* ============================================================
   舞台：固定逻辑尺寸 + 等比缩放（战斗 1180×780 / 结算 700×1000 / 登录 470×660）
   ============================================================ */
.stage-wrap { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; }
.stage { flex:none; transform:scale(var(--stage-scale,1)); transform-origin:center center; }

/* ============================================================
   1. 登录窗 470×660
   ============================================================ */
.login-screen { position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg,#BDE9FF 0%,#D8F1FF 30%,#EAF7FF 62%,#F7EEFF 100%); }
.login-win {
  position:relative; width:470px; height:660px; flex:none;
  transform:scale(var(--stage-scale,1)); transform-origin:center center;
  background:linear-gradient(180deg,#BDEAFF 0%,#DCF2FF 34%,#EFF9FF 66%,#F9F1FF 100%);
  border-radius:14px; box-shadow:0 22px 60px rgba(30,70,120,.28),0 0 0 1px rgba(255,255,255,.6) inset;
  overflow:hidden;
}
.login-title { position:absolute; top:34px; left:0; right:0; text-align:center;
  font-size:30px; font-weight:800; letter-spacing:2px; color:#12233F; }
.login-sub { position:absolute; top:76px; left:0; right:0; text-align:center;
  font-size:12.5px; color:#8499B0; letter-spacing:.5px; }

.login-tabs { position:absolute; top:104px; left:20px; right:20px; height:40px; display:flex; gap:2px; }
.login-tab { flex:1; border-radius:4px; font-size:14px; font-weight:700; color:#5B6B80; background:#E6ECF5; letter-spacing:3px; }
.login-tab.active { background:var(--login-blue); color:#fff; box-shadow:0 2px 6px rgba(76,123,244,.35); }
.login-win.reg .login-tab[data-tab="reg"].active { background:var(--reg-green); box-shadow:0 2px 6px rgba(31,181,115,.35); }

.login-fields { position:absolute; top:162px; left:20px; right:20px; }
.field-label { display:block; font-size:13px; color:#3E4C60; margin-bottom:7px; }
.login-input {
  width:100%; height:40px; background:#fff; border:1px solid #E3EAF2; border-radius:8px;
  padding:0 13px; font-size:14px; color:#12233F; outline:none;
  box-shadow:0 1px 3px rgba(30,60,100,.06);
}
.login-input:focus { border-color:var(--login-blue); box-shadow:0 0 0 3px rgba(76,123,244,.14); }
.login-input::placeholder { color:#9AA8B8; }
.pwd-row { display:flex; gap:10px; }
.pwd-row > div { flex:1; min-width:0; }
.pwd-row .field-label { margin-bottom:7px; }

.login-cta {
  position:absolute; top:305px; left:20px; right:20px; height:44px;
  background:var(--login-blue); color:#fff; font-size:15px; font-weight:700; letter-spacing:3px;
  border-radius:6px; box-shadow:0 4px 10px rgba(76,123,244,.3);
}
.login-cta:hover { background:var(--login-blue-hi); }
.login-win.reg .login-cta { background:var(--reg-green); box-shadow:0 4px 10px rgba(31,181,115,.3); }

.login-service { position:absolute; top:380px; left:20px; right:20px; display:flex; gap:14px; align-items:flex-start; }
.qr-box {
  width:78px; height:78px; flex:none; background:#fff; border-radius:8px; padding:6px;
  box-shadow:0 2px 8px rgba(30,60,100,.1); display:grid;
  grid-template-columns:repeat(13,1fr); grid-template-rows:repeat(13,1fr); gap:0;
}
.qr-box i { background:#3D5BC4; }
.qr-box i.off { background:transparent; }
.qr-box i.finder { background:#2C46A8; }
.qr-box.img-mode { display:block; padding:5px; box-sizing:border-box; }
.qr-box .qr-img { display:block; width:100%; height:100%; object-fit:cover;
  object-position:center top; border-radius:4px; }
.svc-text { padding-top:2px; }
.svc-title { font-size:14px; font-weight:800; color:#1B2A3F; }
.svc-sub { font-size:12px; color:#8A9AB0; margin-top:3px; }
.svc-exit { margin-top:10px; width:100px; height:32px; border-radius:5px; background:#909AA8; color:#fff; font-size:13px; letter-spacing:4px; font-weight:700; }
.svc-exit:hover { background:#7E8897; }

/* ============================================================
   2. 主窗 + 顶栏 98px
   ============================================================ */
.app { position:absolute; inset:0; display:flex; flex-direction:column; z-index:1; }
.topbar { position:relative; z-index:20; height:var(--topbar-h); flex:none;
  background:var(--g-topbar); border-bottom:4px solid #CFE3F2; padding:0 20px; display:flex; align-items:center; }
.topbar-inner { width:100%; display:flex; align-items:center; }
.brand { display:flex; align-items:center; gap:13px; flex:none; }
.logo-disc { width:64px; height:64px; flex:none; border-radius:50%;
  background:radial-gradient(circle at 38% 32%,#FFFFFF,#D9F1FF 70%,#A9DEFF);
  border:3px solid #fff; box-shadow:0 4px 10px rgba(22,51,90,.22),0 0 0 2px #BEE6FA;
  display:flex; align-items:center; justify-content:center; overflow:visible; }
.logo-disc img { width:58px; height:58px; object-fit:contain; }
.brand-title { font-size:26px; font-weight:800; color:#0E1C36; line-height:1.1; letter-spacing:1px;
  text-shadow:0 0 10px rgba(0,229,255,.35); }
.brand-sub { font-size:11.5px; color:#7C93AD; margin-top:1px; }
.edition-select { margin-top:4px; height:22px; min-width:150px; font-size:11px;
  background:#FFFBEA; color:#5A3E1B; border:1.5px solid #E0C88A; border-radius:6px; padding:0 6px; outline:none; }

.nav-pills { flex:1; display:flex; align-items:center; justify-content:center; gap:4px; }
.nav-pill { padding:9px 16px; margin:0 4px; border-radius:18px; font-size:13.5px; font-weight:600;
  color:var(--ink-dim); border:1.5px solid var(--neon-edge); background:transparent; white-space:nowrap;
  transition:transform .14s, box-shadow .14s, background .14s; }
.nav-pill:hover { background:#E6FBFFFF; color:var(--ink); }
.nav-pill.active { background:var(--nav-active); border-color:#FFE0A8; color:#4A2B00; font-weight:800;
  transform:translateY(-2px); box-shadow:0 5px 0 rgba(140,90,0,.55),0 0 14px rgba(255,210,74,.55); }
.nav-pill.yellow { background:#FFF04A; border-color:#F2C200; color:#5B4200; }
.nav-pill.yellow.active { background:#FFD21F; border-color:#D69E00; }

.res-area { display:flex; align-items:center; gap:8px; flex:none; }
.res-pill { display:flex; align-items:center; gap:6px; padding:7px 15px; border-radius:20px;
  border:2.5px solid #E0C88A; background:linear-gradient(180deg,#FFFBEA,#FFF0CC); }
.res-ico { width:19px; height:19px; object-fit:contain; }
.res-num { font-size:15px; font-weight:800; }
.res-num.gold { color:#B26A00; } .res-num.star-n { color:#E09400; }
.res-divider { width:1.5px; height:18px; background:#E8D49A; margin:0 7px; border-radius:1px; }
.icon-btn { width:42px; height:42px; border-radius:21px; background:#EAFBFFFF; border:1.5px solid var(--neon-edge);
  font-size:16px; display:flex; align-items:center; justify-content:center; color:var(--ink-dim);
  box-shadow:0 3px 8px rgba(22,51,90,.14); transition:transform .12s, box-shadow .12s; }
.icon-btn:hover { transform:translateY(-1px); box-shadow:0 0 12px rgba(0,229,255,.5); }
.icon-btn img { width:20px; height:20px; object-fit:contain; }

/* 页面容器 */
.page-host { position:relative; z-index:5; flex:1; min-height:0; }
.page { height:100%; }

/* ============================================================
   3. 冒险地图
   ============================================================ */
.map-page { height:100%; display:flex; flex-direction:column; gap:13px; padding:14px 22px 12px; }
.map-card { position:relative; border-radius:16px; overflow:hidden; }
.map-detail { flex:1.26; border:2px solid #46D68C;
  background:linear-gradient(165deg,#F1FFF6 0%,#E3F8EC 55%,#D6F3E3 100%); }
.map-path { flex:1; border:1.5px solid #C3E4FF;
  background:linear-gradient(180deg,#F8FCFF 0%,#EDF6FF 100%); }

.md-pill { position:absolute; top:13px; z-index:3; font-size:12px; font-weight:700; color:#2F6B4A;
  background:#fff; border:1.5px solid #8EDCB0; border-radius:999px; padding:4px 12px; }
.md-pill-left { left:16px; } .md-pill-right { right:16px; color:#5C7488; border-color:#CBE2F2; }
.md-center { position:absolute; top:22px; left:0; right:0; text-align:center; z-index:2; }
.md-mon-cn { font-size:21px; font-weight:800; color:#102A46; }
.md-mon-en { font-size:11.5px; color:#8AA0B2; letter-spacing:.5px; margin-top:1px; }
.md-monster { position:absolute; top:56px; left:50%; transform:translateX(-50%); width:150px; height:150px; z-index:2; }
.md-monster img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 8px 8px rgba(40,80,50,.18)); }
.md-group { position:absolute; top:118px; width:33%; display:flex; flex-direction:column; gap:7px; z-index:3; }
.md-group.left { left:16px; } .md-group.right { right:16px; width:37%; }
.md-group-title { align-self:flex-start; font-size:12.5px; font-weight:800; color:#2F4A5E;
  background:#fff; border:1.5px solid #CBE2F2; border-radius:7px; padding:3px 10px; }
.md-chips { display:flex; flex-wrap:wrap; gap:6px; }
.md-chip { font-size:12px; color:#33475B; background:#fff; border:1.5px solid #DCEAF4;
  border-radius:999px; padding:3px 9px; white-space:nowrap; box-shadow:0 1px 3px rgba(30,80,120,.06); }
.md-chip b { color:#1E6FA8; margin-right:4px; font-weight:700; }
.md-chip.phrase { border-radius:8px; padding:4px 9px; }
.md-dots { position:absolute; bottom:12px; left:0; right:0; display:flex; justify-content:center; gap:9px; z-index:3; }
.md-dots i { width:9px; height:9px; border-radius:50%; background:#D3D0E8; }
.md-dots i.on { background:#B9A9E8; }

.mp-route { position:absolute; left:3%; right:3%; top:44%; height:80px; z-index:1; }
.mp-nodes { position:absolute; inset:0; display:flex; align-items:center; justify-content:space-around; padding:0 20px; z-index:2; }
.mp-node { position:relative; width:15%; display:flex; flex-direction:column; align-items:center; cursor:pointer; }
.mp-ring { width:96px; height:96px; border-radius:50%; border:3px solid #3ECB8E; background:rgba(255,255,255,.55);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  box-shadow:0 4px 10px rgba(30,90,70,.14); transition:transform .15s, box-shadow .15s; }
.mp-node:hover .mp-ring { transform:scale(1.07); box-shadow:0 6px 16px rgba(30,90,70,.25); }
.mp-ring img { width:88px; height:88px; object-fit:contain; }
.mp-node.c1 .mp-ring,.mp-node.c2 .mp-ring,.mp-node.c3 .mp-ring,
.mp-node.c4 .mp-ring,.mp-node.c5 .mp-ring,.mp-node.c6 .mp-ring{border-color:#3ECB8E}
.mp-captured { position:absolute; top:-8px; left:50%; transform:translateX(-50%) rotate(-6deg);
  font-size:10px; font-weight:800; color:#fff; background:linear-gradient(135deg,#B57BFF,#8A4FF0);
  border-radius:999px; padding:2px 8px; white-space:nowrap; box-shadow:0 2px 5px rgba(120,70,220,.4); }
.mp-stars { display:flex; gap:3px; margin-top:7px; }
.mp-stars img { width:22px; height:22px; object-fit:contain; }
.mp-stars img.grey { filter:grayscale(1); opacity:.45; }
.mp-tag { margin-top:4px; font-size:11px; font-weight:800; color:#fff; background:#2FC48A;
  border-radius:999px; padding:2px 12px; white-space:nowrap; }

.book-bar { height:52px; flex:none; border-radius:14px; background:rgba(255,255,255,.86);
  border:1px solid #E0EEFA; display:flex; align-items:center; gap:6px; padding:0 12px; overflow-x:auto; box-shadow:var(--shadow-soft); }
.book-chip { flex:none; display:flex; align-items:center; gap:5px; font-size:11.5px; color:#53687E;
  background:#fff; border:1px solid #E4EFF8; border-radius:999px; padding:5px 10px; white-space:nowrap; cursor:pointer; }
.book-chip:hover { border-color:var(--accent); }
.book-chip.active { background:#E4F6FF; border-color:#63C9FF; color:#0E6BA8; font-weight:700; }
.book-chip img { width:15px; height:15px; object-fit:contain; }
.book-chip .bc-num { color:#9AAEC0; font-weight:700; }
.book-chip.active .bc-num { color:#0E8AD0; }

/* ============================================================
   4. 战斗 1180×780
   ============================================================ */
.battle-screen { position:fixed; inset:0; z-index:1500; background:#DCEEFF; }
.battle-stage { width:1180px; height:780px; display:flex; flex-direction:column; position:relative;
  background:linear-gradient(180deg,#CBE9FF 0%,#E2F3FF 31%,#FFFFFF 33.5%,#FFFFFF 88%,#FBF3FF 100%);
  box-shadow:0 20px 60px rgba(20,50,90,.3); overflow:hidden; }
.bt-top { height:46px; flex:none; display:flex; align-items:center; justify-content:space-between; padding:0 22px; }
.bt-left { display:flex; align-items:center; gap:7px; font-size:16px; font-weight:800; color:#122A48; }
.bt-left .bt-book { display:flex; align-items:center; gap:4px; font-size:12px; font-weight:500; color:#7E93A8; }
.bt-left .bt-book img { width:14px; height:14px; }
.bt-center { font-size:14px; color:#5E7186; }
.bt-center b { color:#FF7A1A; font-weight:800; }
.bt-right { display:flex; align-items:center; gap:12px; }
.bt-coin { display:flex; align-items:center; gap:5px; background:rgba(255,255,255,.75); border:1.5px solid #E4D5A8;
  border-radius:999px; padding:4px 12px; font-size:14px; font-weight:800; color:#B26A00; }
.bt-coin img { width:17px; height:17px; }
.bt-surrender { background:linear-gradient(180deg,#FF5B93,#FF2D6E); color:#fff; font-size:14px; font-weight:800;
  border-radius:11px; padding:9px 26px; box-shadow:var(--glow-cyan); }

.bt-upper { height:250px; flex:none; display:flex; padding:0 22px; position:relative; }
.bt-side { width:47%; display:flex; flex-direction:column; align-items:center; }
.bt-side.enemy { margin-left:auto; }
.fighter-name { font-size:16px; font-weight:800; color:#142C48; text-align:center; height:22px; }
.fighter-en { font-size:11.5px; color:#8AA0B4; text-align:center; height:16px; }
.fighter-en em { font-style:normal; color:#A0B0C0; }
.bar { position:relative; width:340px; height:20px; border-radius:10px; margin-top:3px; overflow:hidden;
  background:#D9E3EC; border:1px solid rgba(80,110,140,.25); }
.bar .bar-fill { position:absolute; left:0; top:0; bottom:0; border-radius:10px; transition:width .25s; }
.bar.hp .bar-fill { background:var(--g-hp); }
.bar.enemyhp .bar-fill { background:linear-gradient(180deg,#FFD0DC,#FF9BB4); }
.bar-lv { position:absolute; left:0; top:0; bottom:0; width:52px; border-radius:10px; z-index:2;
  background:rgba(0,120,90,.55); color:#fff; font-size:11px; font-weight:800;
  display:flex; align-items:center; justify-content:center; }
.bar-lv.grey { background:rgba(80,100,120,.5); }
.bar-num { position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.25); }
.bar.exp { width:340px; height:12px; margin-top:5px; background:#E7EDF3; }
.bar.exp .bar-fill { background:linear-gradient(90deg,#B8E6FF,#7CC4FF); }
.bar.exp .bar-num { font-size:10px; color:#7E93A8; text-shadow:none; font-weight:600; }
.strike-bar { position:relative; width:340px; height:18px; border-radius:9px; margin-top:4px; overflow:hidden;
  background:linear-gradient(180deg,#FF9A5A,#FF3D6E); box-shadow:0 2px 6px rgba(255,60,110,.3); }
.strike-bar .strike-fill { position:absolute; left:0; top:0; bottom:0; background:rgba(255,255,255,.16); border-radius:9px; }
.strike-bar .strike-num { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800; color:#fff; }
.fighter-art { position:relative; width:100%; height:112px; margin-top:2px; }
.fighter-art .sprite { position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:170px; height:112px; }
.fighter-art.enemy .sprite { width:150px; height:112px; }
.ground-ellipse { position:absolute; left:50%; bottom:2px; transform:translateX(-50%);
  width:150px; height:26px; border-radius:50%; background:radial-gradient(ellipse,#FFE7A8,#F6D27A);
  box-shadow:0 3px 8px rgba(190,150,60,.25); z-index:0; }
.ground-ellipse + .sprite { z-index:1; }

.skill-cards { display:flex; gap:8px; margin-top:4px; }
.skill-card { width:118px; height:46px; background:#fff; border:1px solid #E2ECF5; border-radius:10px;
  box-shadow:0 2px 6px rgba(30,70,110,.08); display:flex; align-items:center; gap:6px; padding:0 8px; }
.skill-card img { width:22px; height:22px; object-fit:contain; flex:none; }
.skill-card .sc-name { font-size:12px; font-weight:800; color:#20344A; line-height:1.15; }
.skill-card .sc-sub { font-size:9.5px; color:#93A5B6; }
/* 战斗中技能卡：可点选 + 选中态（对齐桌面 EquippedCardsFor + SelectedCardId） */
.skill-card { transition:border-color .15s, box-shadow .15s, background .15s, opacity .15s; }
.skill-card:not(.dis) { cursor:pointer; }
.skill-card:not(.dis):hover { border-color:#9FC6F0; }
.skill-card.sel { border-color:#FFB43E; box-shadow:0 0 0 3px rgba(255,180,62,.32); background:#FFF7E6; }
.skill-card.dis { opacity:.42; filter:grayscale(.45); }

.bt-divider { height:2px; flex:none; background:linear-gradient(90deg,#CDEAFF,#E7DBFF,#CDEAFF); }
.bt-quiz { flex:1; display:flex; flex-direction:column; align-items:center; padding-top:18px; position:relative; }
.qz-icon { height:52px; width:80px; object-fit:contain; margin-bottom:2px; }
.qz-icon.hidden { display:none; }
.qz-bigletter { font-size:42px; font-weight:800; letter-spacing:2px; line-height:1.1; }
.qz-bigletter .b1 { color:#FFA51E; } .qz-bigletter .b2 { color:#2D9CFF; }
.qz-title { font-size:34px; font-weight:800; color:#16233C; text-align:center; margin-top:2px; letter-spacing:1px; }
.qz-title.small { font-size:27px; }
.qz-maskword { font-size:40px; font-weight:800; color:#16233C; letter-spacing:6px; }
.qz-maskword .blank { display:inline-block; min-width:22px; border-bottom:4px solid #16233C; color:transparent; }
.qz-meaning { margin-top:6px; font-size:15px; font-weight:700; color:#B26A00;
  background:#FFF3D6; border:1.5px solid #FFD98A; border-radius:10px; padding:3px 16px; }
.qz-meaning.blank-sentence { font-size:17px; }
.qz-hint { font-size:12.5px; color:#9AA9BA; margin-top:7px; text-align:center; }
.qz-progress { width:490px; height:9px; border-radius:6px; margin-top:11px; overflow:hidden;
  background:#EFEAF8; }
.qz-progress .qz-fill { height:100%; border-radius:6px; width:100%;
  background:linear-gradient(90deg,#00E5FF,#2D9CFF 55%,#8B5CFF); transition:width .1s linear; }
.qz-body { margin-top:18px; display:flex; justify-content:center; width:100%; }

/* 2×2 选项 */
.qz-options { display:grid; grid-template-columns:1fr 1fr; gap:13px 42px; width:530px; }
.opt-btn { display:flex; align-items:center; gap:11px; height:46px; padding:0 15px; border-radius:23px;
  background:#fff; border:1.5px solid #8FD8FF; font-size:15px; color:#1D2E45; text-align:left;
  box-shadow:0 2px 6px rgba(0,140,210,.08); transition:transform .1s, box-shadow .1s, background .1s; }
.opt-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,160,230,.22); }
.opt-key { width:27px; height:27px; flex:none; border-radius:50%; background:#E6F5FF; border:1.5px solid #9FDCFF;
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; color:#2D9CFF; }
.opt-btn.correct { background:#E4FBF0; border-color:#3ED69B; }
.opt-btn.wrong { background:#FFE9F0; border-color:#FF6B9E; }
.opt-btn.dim { opacity:.35; }

/* 字母格 / 键盘按钮 */
.qz-letter-grid { display:flex; gap:9px; justify-content:center; margin-top:4px; }
.qz-letter-cell { width:46px; height:48px; border-radius:10px; background:#F2FAFF; border:1.5px solid #CDE9FF;
  display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; color:#163A63; }
.qz-letter-cell.filled { background:#E4F6FF; color:#0E8AD0; }
.qz-letter-cell.blank { border-bottom:3px solid #FFB000; background:#FFFBF0; }
.qz-letter-keys { display:flex; flex-wrap:wrap; gap:9px; justify-content:center; width:600px; margin-top:16px; }
.qz-letter-keys button { width:50px; height:46px; border-radius:11px; background:#fff; border:1.5px solid #8FD8FF;
  font-size:19px; font-weight:800; color:#163A63; box-shadow:0 2px 5px rgba(0,140,210,.1); }
.qz-letter-keys button:hover { background:#E9F7FF; }
.qz-typed-slots { display:flex; gap:6px; justify-content:center; margin-top:6px; }
.qz-typed-slots span { min-width:20px; height:34px; border-bottom:3px solid #C9D8E6; text-align:center;
  font-size:22px; font-weight:800; color:#163A63; }
.qz-typed-slots span.cur { border-color:#FFB000; }
.qz-typed-slots span.space { border:0; }
.qz-typed-note { font-size:12px; color:#2D9CFF; margin-top:12px; }
.qz-input { width:400px; height:44px; border:1.5px solid #8FD8FF; border-radius:12px; background:#fff;
  padding:0 14px; font-size:17px; color:#163A63; outline:none; text-align:center; }
.qz-input:focus { box-shadow:0 0 0 3px rgba(0,194,255,.2); }

/* 词块 */
.qz-chips { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; width:640px; }
.qz-chip { min-width:96px; height:48px; padding:0 18px; border-radius:12px; background:#fff;
  border:1.5px solid #8FD8FF; font-size:17px; font-weight:700; color:#163A63;
  box-shadow:0 2px 6px rgba(0,140,210,.1); }
.qz-chip:hover { background:#E9F7FF; }
.qz-chip.used { opacity:.3; }
.qz-order-display { min-height:34px; font-size:20px; font-weight:700; color:#2D9CFF; margin-top:8px; }

/* 判断题 */
.qz-tf-card { display:flex; align-items:center; gap:12px; justify-content:center; font-size:26px; font-weight:800;
  color:#163A63; background:#F4FBFF; border:1.5px solid #BFE6FF; border-radius:14px; padding:12px 34px; margin-top:6px; }
.qz-tf-card .cn { color:#FF8A2B; }
.qz-tf-btns { display:flex; gap:40px; margin-top:24px; }
.tf-btn { display:flex; align-items:center; gap:8px; padding:10px 22px; border-radius:14px; font-size:15px; font-weight:800; background:#fff; }
.tf-btn.yes { border:2px solid #3ED69B; color:#1FA870; }
.tf-btn.no { border:2px solid #FF7A6B; color:#E8503C; }
.tf-btn .tf-ico { font-size:20px; }

/* 配对题 */
.qz-match-title { font-size:23px; font-weight:800; color:#16233C; }
.qz-match-board { display:flex; gap:90px; margin-top:14px; }
.qz-match-col { display:flex; flex-direction:column; gap:12px; }
.qz-pair { width:250px; height:44px; border-radius:12px; background:#F6FBFF; border:1.5px solid #BFE6FF;
  font-size:17px; font-weight:700; color:#163A63; }
.qz-pair.sel { background:#FFF3D6; border-color:#FFB000; }
.qz-pair.done { background:#E4FBF0; border-color:#3ED69B; color:#1FA870; }
.qz-pair.wrong { background:#FFE9F0; border-color:#FF6B9E; }

/* 底部道具 */
.bt-items { height:70px; flex:none; display:flex; align-items:center; justify-content:center; gap:10px; }
.bi-btn { display:flex; align-items:center; gap:7px; height:46px; padding:0 16px; border-radius:13px;
  background:#fff; border:2px solid #C9F2FF; font-size:13px; font-weight:700; color:#2B4055;
  box-shadow:var(--glow-cyan); }
.bi-btn:hover { background:#F2FDFF; }
.bi-btn img { width:26px; height:26px; object-fit:contain; }
.bi-btn .bi-n { color:#FF7A1A; font-weight:800; }
.bi-btn:disabled { opacity:.45; }

/* ============================================================
   5. 结算 700×1000
   ============================================================ */
.result-screen { position:fixed; inset:0; z-index:1600; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg,#BFE9FF 0%,#DDF2FF 30%,#EFF9FF 62%,#F8EEFF 100%); }
.result-stage { width:700px; height:1000px; display:flex; flex-direction:column; position:relative;
  background:linear-gradient(180deg,#C6ECFF 0%,#E6F6FF 24%,#F7FBFF 60%,#FBF3FF 100%);
  box-shadow:0 20px 60px rgba(20,50,90,.3); overflow:hidden; }
.rs-win-card { margin:16px 16px 0; height:300px; border:2px solid #FFC24A; border-radius:18px;
  background:linear-gradient(180deg,#FFF6DC 0%,#FFF0C8 100%); position:relative; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; }
.rs-head { display:flex; align-items:center; gap:8px; margin-top:14px; z-index:2; }
.rs-head img { width:38px; height:38px; object-fit:contain; }
.rs-win-title { font-size:29px; font-weight:800; color:#C97A00; letter-spacing:1px; }
.rs-win-sub { font-size:13px; color:#8C7A55; margin-top:2px; z-index:2; }
.rs-star-wrap { position:absolute; top:64px; left:0; right:0; bottom:0;
  display:flex; align-items:center; justify-content:center; }
.rs-rays { position:absolute; width:420px; height:420px; border-radius:50%;
  background:repeating-conic-gradient(from 0deg,rgba(255,214,110,.55) 0deg 9deg,transparent 9deg 22deg);
  mask:radial-gradient(circle,transparent 0 28%,#000 30% 100%);
  -webkit-mask:radial-gradient(circle,transparent 0 28%,#000 30% 100%); }
.rs-star { position:relative; width:230px; height:230px; filter:drop-shadow(0 6px 12px rgba(120,90,20,.18)); }
.rs-star svg { width:100%; height:100%; }

.rs-loot { margin:14px 16px 0; border:2px solid #FFD07A; border-radius:16px; background:#FFFDF6; padding:10px 0 14px; }
.rs-loot-title { text-align:center; font-size:14px; font-weight:800; color:#7A5A20; margin-bottom:8px; }
.rs-loot-row { display:flex; justify-content:center; gap:14px; }
.rs-loot-item { width:96px; height:92px; border:1.5px solid #FFD88A; border-radius:12px; background:#FFF9EC;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
.rs-loot-item img { width:34px; height:34px; object-fit:contain; }
.rs-loot-item .rl-name { font-size:11.5px; color:#8A7450; }
.rs-loot-item .rl-num { font-size:18px; font-weight:800; color:#E8790C; }
.rs-stats { margin:14px 20px 0; text-align:center; font-size:13px; color:#6B7E92; }
.rs-stats b { font-weight:800; }
.rs-stats .c1{color:#1FA870} .rs-stats .c2{color:#FF4D8D} .rs-stats .c3{color:#FFB000}
.rs-stats .c4{color:#2D9CFF} .rs-stats .c5{color:#9B5CFF}
.rs-levelup { margin:8px 20px 0; font-size:12.5px; color:#22B37A; font-weight:700; }
.rs-spacer { flex:1; }
.rs-footer { height:92px; flex:none; background:rgba(255,255,255,.72); border-top:1px solid #E8F2FB;
  display:flex; align-items:center; justify-content:center; }
.rs-continue { background:var(--g-continue); color:#fff; font-size:17px; font-weight:800; letter-spacing:2px;
  border-radius:14px; padding:13px 44px; box-shadow:var(--glow-cyan),0 6px 14px rgba(255,150,50,.4); }
.rs-lose { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:linear-gradient(180deg,#5A6570,#7A828C); }
.rs-lose-art { width:330px; height:330px; object-fit:contain; }
.rs-lose-label { color:#D8DEE6; font-size:14px; margin-top:10px; display:flex; align-items:center; gap:6px; }
.rs-lose-words { display:flex; gap:12px; margin-top:14px; }
.rs-lose-word { background:#fff; border:2px solid #57D6F5; border-radius:12px; padding:8px 20px; text-align:center; }
.rs-lose-word b { display:block; color:#0E7FA8; font-size:17px; }
.rs-lose-word span { font-size:12px; color:#8A98A6; }

/* ============================================================
   6. 其它页（宠物 / 背包 / 技能 / 错题）
   ============================================================ */
.page-scroll { height:100%; overflow-y:auto; padding:16px 22px 26px; }
.page-head { border-radius:16px; padding:16px 20px; display:flex; align-items:center; gap:14px;
  background:var(--g-head); border:1.5px solid var(--card-edge); box-shadow:var(--shadow-card); }
.page-head .ph-icon { width:48px; height:48px; object-fit:contain; flex:none; }
.page-head h2 { margin:0; font-size:21px; }
.page-head p { margin:3px 0 0; font-size:12.5px; color:var(--ink-mute); }
.page-head .ph-right { margin-left:auto; display:flex; flex-direction:column; gap:6px; align-items:flex-end; }
.res-capsules { display:flex; gap:8px; margin-top:9px; flex-wrap:wrap; }
.res-cap { display:flex; align-items:center; gap:5px; background:#fff; border:1.5px solid #DCEBF6;
  border-radius:999px; padding:4px 12px; font-size:12.5px; font-weight:700; color:#5B6E82; }
.res-cap img { width:15px; height:15px; }
.section-title { display:flex; align-items:center; gap:7px; font-size:15px; font-weight:800; color:#3A5B8C; margin:18px 2px 10px; }
.section-title::before { content:""; width:4px; height:16px; border-radius:2px; background:var(--accent2); }
.section-title .st-right { margin-left:auto; font-size:12px; font-weight:500; color:var(--ink-mute); }
.cat-pills { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.cat-pill { border-radius:999px; padding:6px 16px; font-size:13px; font-weight:700; color:#5B6E82;
  background:#fff; border:1.5px solid #DCEBF6; }
.cat-pill.active { background:linear-gradient(135deg,#00D2FF,#2D9CFF); color:#fff; border-color:transparent; }

/* 宠物小窝 */
.pet-banner { position:relative; height:270px; border-radius:16px; overflow:hidden;
  background-image:url('../assets/Scenes/scene_meadow.png'); background-size:cover; background-position:center 62%; }
.pet-banner .pb-cap { position:absolute; top:12px; display:flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.9); border:1.5px solid #E1EEF8; border-radius:999px; padding:5px 12px;
  font-size:12.5px; font-weight:800; color:#3C5670; }
.pet-banner .pb-left { left:14px; } .pet-banner .pb-right { right:14px; }
.pet-banner .pb-cap img { width:16px; height:16px; }
.pet-banner .pb-pets { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:space-around; padding:0 5% 8%; }
.pet-banner .pb-pets img { width:88px; height:96px; object-fit:contain; filter:drop-shadow(0 5px 6px rgba(30,80,40,.22)); }
.pet-cards { display:flex; gap:12px; flex-wrap:wrap; margin-top:4px; }
.pet-card { width:190px; border-radius:14px; background:#fff; border:1.5px solid #DCEBF6; padding:10px;
  box-shadow:var(--shadow-soft); position:relative; }
.pet-card.active-pet { border:2px solid #FFB000; box-shadow:0 0 0 3px rgba(255,176,0,.2); }
.pet-card .pc-art { width:100%; height:92px; object-fit:contain; }
.pet-card .pc-lv { position:absolute; right:10px; top:10px; font-size:13px; font-weight:800; color:#2D9CFF; }
.pet-card .pc-name { font-size:14px; font-weight:800; color:#22344A; margin-top:2px; }
.pet-card .pc-stats { font-size:10.5px; color:#788CA0; margin-top:4px; line-height:1.5; }
.pet-card .pc-tags { display:flex; gap:4px; flex-wrap:wrap; margin-top:6px; }
.pet-card .pc-tag { font-size:10px; font-weight:700; border-radius:6px; padding:2px 7px; color:#fff; }
.pet-card .pc-fainted { position:absolute; inset:0; background:rgba(40,50,60,.45); border-radius:14px;
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:15px; }

/* 背包 */
.item-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.item-card { border-radius:14px; background:#fff; border:1.5px solid #DCEBF6; overflow:hidden;
  box-shadow:var(--shadow-soft); display:flex; flex-direction:column; position:relative; }
.item-card.shop { border-color:#FFD88A; }
.item-card .ic-top { height:104px; display:flex; align-items:center; justify-content:center; position:relative; }
.item-card .ic-top.g1{background:linear-gradient(180deg,#FFF7DC,#FFF1E0)}
.item-card .ic-top.g2{background:linear-gradient(180deg,#E9FAF4,#DFF6FF)}
.item-card .ic-top.g3{background:linear-gradient(180deg,#FFEFF5,#FFF0F6)}
.item-card .ic-top.g4{background:linear-gradient(180deg,#F3ECFF,#F7F0FF)}
.item-card .ic-top.g5{background:linear-gradient(180deg,#FFF6E6,#FFFBE8)}
.item-card .ic-top img { width:62px; height:62px; object-fit:contain; }
.item-card .ic-count { position:absolute; right:8px; top:8px; font-size:11px; font-weight:800; color:#fff;
  background:#9B5CFF; border-radius:999px; padding:2px 8px; }
.item-card .ic-count.c1{background:#FF4D8D} .item-card .ic-count.c2{background:#2D9CFF}
.item-card .ic-count.c3{background:#FFB000}
.item-card .ic-name { font-size:13px; font-weight:800; color:#22344A; text-align:center; margin-top:8px; }
.item-card .ic-desc { font-size:10.5px; color:#93A5B6; text-align:center; line-height:1.35; padding:4px 8px; min-height:30px; }
.item-card .ic-foot { margin-top:auto; padding:8px; }
.item-card .ic-btn { width:100%; border-radius:10px; padding:7px 0; font-size:12.5px; font-weight:800; }
.item-card .ic-btn.use { background:linear-gradient(135deg,#4B8CFF,#7C5CFF); color:#fff; box-shadow:0 0 0 2px rgba(0,229,255,.5); }
.item-card .ic-btn.buy { background:var(--g-gold); color:#5A3A00; box-shadow:0 0 0 2px rgba(0,229,255,.5); }
.item-card .ic-btn.note { background:#F2F6FA; color:#8A9AA8; font-size:11px; }
.item-card .ic-price { text-align:center; font-size:12px; font-weight:800; color:#C07A00; margin:2px 0 6px; }
.item-card .ic-owned { position:absolute; left:8px; top:8px; font-size:10px; font-weight:700; color:#0E7FA8;
  background:#E4F6FF; border-radius:999px; padding:2px 8px; }

/* 技能卡 */
.skill-filter-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; font-size:12px; color:#7A8CA0; }
.skill-filter-row .sf-label { font-weight:800; color:#5B6E82; }
.sf-pill { border-radius:999px; padding:3px 11px; font-size:12px; font-weight:700; color:#8A6A20; background:#FFF3D6; }
.sf-pill.active { background:linear-gradient(135deg,#00D2FF,#2D9CFF); color:#fff; }
.skill-search { width:250px; height:34px; border:1.5px solid #BFE6FF; border-radius:10px; padding:0 12px; font-size:13px; outline:none; }
.skill-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.skill-card-big { border-radius:14px; background:#fff; border:1.5px solid #DCEBF6; overflow:hidden;
  box-shadow:var(--shadow-soft); padding:8px; }
.skill-card-big.epic { border-color:#F0C46A; }
.skill-card-big .scb-head { display:flex; justify-content:space-between; font-size:10.5px; color:#8A9AA8; }
.skill-card-big .scb-head .dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#2D9CFF; margin-right:4px; }
.skill-card-big .scb-art { height:110px; display:flex; align-items:center; justify-content:center; }
.skill-card-big .scb-art img { width:96px; height:96px; object-fit:contain; }
.skill-card-big .scb-name { display:flex; justify-content:space-between; align-items:baseline; font-size:13px; font-weight:800; color:#22344A; }
.skill-card-big .scb-name em { font-style:normal; font-size:11px; color:#2D9CFF; }
.skill-card-big .scb-sub { font-size:10px; color:#A0B0BE; margin-top:3px; }

/* 错题本 */
.wrong-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; padding-top:90px; gap:12px; }
.wrong-empty img { width:34px; height:34px; }
.wrong-empty span { font-size:13px; color:#9AA9BA; }
.wrong-list { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.wrong-item { border-radius:12px; background:#fff; border:1.5px solid #DCEBF6; padding:12px; box-shadow:var(--shadow-soft); }
.wrong-item .wi-en { font-size:16px; font-weight:800; color:#1E6FA8; }
.wrong-item .wi-cn { font-size:12.5px; color:#5B6E82; margin-top:2px; }
.wrong-item .wi-meta { font-size:11px; color:#9AA9BA; margin-top:7px; }

/* 页头右侧竖向小胶囊（错题本） */
.ph-stack { margin-left:auto; display:flex; flex-direction:column; gap:6px; }
.ph-chip { border-radius:999px; padding:5px 14px; font-size:12px; font-weight:700; }
.ph-chip.pink { background:#FFF0F6; border:1.5px solid #FFC4DC; color:#E8508A; }
.ph-chip.blue { background:#EDF8FF; border:1.5px solid #BFE6FF; color:#2D8AD0; }
.ph-chip.gold { background:#FFF7E4; border:1.5px solid #FFD88A; color:#C07A00; }

/* 通用浮层内容 */
.story-scene { text-align:center; padding:8px; }
.story-scene .ss-icon { font-size:34px; }
.story-scene h3 { margin:8px 0; }
.ss-text { font-size:14px; color:var(--ink-dim); line-height:1.7; margin:10px 0 16px; }
.grid-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.entity-card { border-radius:12px; background:#fff; border:1.5px solid var(--card-edge); padding:10px; text-align:center; }
.entity-card .ec-art { width:100%; height:90px; object-fit:contain; }
.entity-card .ec-name { font-size:13px; font-weight:800; margin-top:6px; }
.entity-card .ec-meta { font-size:11px; color:var(--ink-mute); margin-top:3px; }

/* ============================================================
   7. 剧情对话（story_dialogue.png：深色沉浸 + 双立绘 + 白底蓝边对话框）
   ============================================================ */
.story-screen { position:fixed; inset:0; z-index:9998; overflow:hidden; color:#E9EDF3;
  background:radial-gradient(120% 90% at 50% 42%,#33343B 0%,#26272C 60%,#1E1F23 100%); }
.st-topbar { position:absolute; top:0; left:0; right:0; height:64px; display:flex;
  align-items:center; justify-content:space-between; padding:0 34px; }
.st-chapter { font-size:14px; color:#9AA3B0; letter-spacing:1px; }
.st-chapter b { color:#E9EDF3; font-weight:800; margin-left:8px; }
.st-chapter i { color:#57D6F5; font-style:normal; margin-right:8px; }
.st-skip { border:0; border-radius:999px; padding:7px 16px; font-size:13px; color:#C9CFD8;
  background:rgba(255,255,255,.10); cursor:pointer; }
.st-skip:hover { background:rgba(255,255,255,.18); }
.st-stage { position:relative; width:1080px; max-width:96vw; height:540px; margin:96px auto 0; }
.st-actor { position:absolute; bottom:64px; width:220px; text-align:center; }
.st-actor.left { left:14%; }
.st-actor.right { left:50%; }
.st-art { width:200px; height:200px; object-fit:contain; filter:drop-shadow(0 0 26px rgba(255,210,120,.28)); }
.st-actor.right .st-art { filter:drop-shadow(0 0 30px rgba(120,200,255,.32)); }
.st-actor-name { margin-top:10px; font-size:14px; color:#B8C1CE; letter-spacing:1px; }
.st-bubble { position:absolute; bottom:222px; left:-34px; width:150px; background:#F4F8FF;
  border-radius:16px; padding:12px 14px; color:#5B6472; font-size:13px; box-shadow:0 8px 24px rgba(0,0,0,.28); }
.st-bubble:after { content:""; position:absolute; right:-10px; bottom:22px;
  border:8px solid transparent; border-left-color:#F4F8FF; }
.st-b-name { display:inline-block; background:#E3ECF8; color:#33465E; border-radius:999px;
  padding:2px 10px; font-size:11px; font-weight:800; margin-right:6px; }
.st-b-av { width:22px; height:22px; object-fit:contain; vertical-align:-6px; }
.st-b-dots { display:block; margin-top:10px; letter-spacing:3px; }
.st-dialog { position:absolute; right:2%; top:60px; width:300px; min-height:210px;
  background:#fff; border:3px solid #57D6F5; border-radius:22px; padding:16px 18px 14px;
  color:#22303F; box-shadow:0 14px 40px rgba(0,0,0,.35); }
.st-dialog:before { content:""; position:absolute; left:-14px; top:66px;
  border:10px solid transparent; border-right-color:#57D6F5; }
.st-dlg-head { display:flex; align-items:center; gap:8px; }
.st-dlg-head img { width:34px; height:34px; border-radius:50%; object-fit:contain;
  background:#EAF6FF; border:2px solid #57D6F5; }
.st-dlg-name { background:#3EC8F0; color:#fff; border-radius:999px; padding:3px 12px; font-size:12px; font-weight:800; }
.st-dlg-text { margin:12px 0 10px; font-size:15px; line-height:1.85; color:#2B3A4B; }
.st-dlg-foot { font-size:11.5px; color:#9AA6B4; }
.st-bottom { position:absolute; left:0; right:0; bottom:26px; text-align:center; }
.st-hint { font-size:12px; color:#6E7784; letter-spacing:.5px; }
.st-dots { display:flex; justify-content:center; gap:7px; margin-top:12px; }
.st-dots i { width:8px; height:8px; border-radius:50%; background:#555A64; display:block; }
.st-dots i.on { background:#FFB000; width:20px; border-radius:5px; }
/* 剧情终章 choices（对齐 StoryWindow 的末段选项） */
.st-choices { display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.st-choice { border:0; border-radius:10px; padding:9px 14px; font-size:13.5px; font-weight:700;
  color:#1E2E3E; background:linear-gradient(180deg,#FFF,#EAF2FB); cursor:pointer;
  box-shadow:0 2px 8px rgba(20,40,70,.12); text-align:left; }
.st-choice:hover { background:linear-gradient(180deg,#FFF,#DCEBFA); }
