/* ============================================================
   史蒂夫老师 · 英语方块大冒险 —— 《我的世界》像素风样式表
   设计要素：
   - 方块立体边框（高光/阴影斜面）
   - 热键栏（hotbar）导航、经验条（XP bar）进度
   - 草方块/泥土/石头配色、像素云朵与草地背景
   - 所有元素硬直角、无圆角，营造纯正方块感
   面向：小学 3-6 年级学生
   ============================================================ */

:root {
  /* 方块世界配色 */
  --mc-grass: #5c9e34;        /* 草绿 */
  --mc-grass-hi: #79c94f;     /* 草绿高光 */
  --mc-dirt: #8a5f3c;         /* 泥土棕 */
  --mc-dirt-dk: #5d4028;      /* 深泥土 */
  --mc-stone: #9a9a9a;        /* 石头灰 */
  --mc-stone-hi: #c7c7c7;     /* 石头高光 */
  --mc-panel: #c6c6c6;        /* 经典面板灰 */
  --mc-panel-dk: #8b8b8b;     /* 深槽灰 */
  --mc-iron: #d8d8d8;
  --mc-xp: #7efc20;           /* 经验绿 */
  --mc-gold: #ffd83d;         /* 金锭黄 */
  --mc-redstone: #e03232;     /* 红石红 */
  --mc-water: #3f76e4;        /* 水蓝 */
  --mc-diamond: #5de8e8;      /* 钻石青 */
  --mc-purple: #b24bd8;       /* 末影紫 */
  --mc-cream: #efe6c9;        /* 书页米色 */
  --mc-cream-dk: #d4c79a;

  --ink: #2b2b2b;
  --ink-soft: #4a4a4a;
  --ink-faint: #6d6d6d;
  --line-dark: #000000;

  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", "VT323", "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #78a6ff 0%, #a8ccff 38%, #cfe8ff 62%, #aee29a 78%, #7cc75a 88%, #5c9e34 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  image-rendering: pixelated;
}

/* ============ 像素背景装饰 ============ */
.pixel-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 像素云：用 box-shadow 堆出方块云 */
.pixel-cloud {
  position: absolute;
  width: 16px; height: 16px;
  background: #ffffff;
  box-shadow:
    16px 0 0 #fff, 32px 0 0 #fff, 48px 0 0 #fff,
    -16px 0 0 #fff,
    0 -16px 0 #fff, 16px -16px 0 #fff, 32px -16px 0 #fff,
    16px 16px 0 rgba(255,255,255,.85), 32px 16px 0 rgba(255,255,255,.85), 0 16px 0 rgba(255,255,255,.85);
  opacity: .9;
  animation: cloudDrift linear infinite;
}
@keyframes cloudDrift {
  from { transform: translateX(-140px); }
  to   { transform: translateX(110vw); }
}

/* 太阳（像素方块） */
.pixel-sun {
  position: fixed;
  top: 46px; right: 7vw;
  width: 64px; height: 64px;
  background: #ffd83d;
  box-shadow:
    0 0 0 8px rgba(255,216,61,.28),
    inset -10px -10px 0 rgba(0,0,0,.08);
  z-index: 0;
  animation: sunBob 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sunBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* 底部草地 + 泥土 */
.pixel-ground {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 76px;
  z-index: 0;
  pointer-events: none;
  background:
    /* 草层像素纹理 */
    repeating-linear-gradient(90deg,
      var(--mc-grass-hi) 0 16px, var(--mc-grass) 16px 32px,
      #4f8a2c 32px 48px, var(--mc-grass) 48px 64px),
    var(--mc-grass);
  background-size: 64px 14px;
  background-repeat: repeat-x;
  box-shadow: 0 -4px 0 var(--mc-grass-hi);
}
.pixel-ground::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 14px; bottom: 0;
  background:
    repeating-linear-gradient(90deg,
      var(--mc-dirt) 0 14px, var(--mc-dirt-dk) 14px 20px,
      var(--mc-dirt) 20px 42px, #745033 42px 52px),
    var(--mc-dirt);
  background-size: 52px 20px;
}

/* ============ 通用方块构件 ============ */
.mc-bevel {
  background: var(--mc-panel);
  border: 4px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.12), 0 6px 0 rgba(0,0,0,.25);
}
.mc-bevel-in {
  background: var(--mc-panel-dk);
  border: 4px solid;
  border-color: #373737 #ffffff #ffffff #373737;
  box-shadow: inset 4px 4px 0 rgba(0,0,0,.14);
}
.mc-paper {
  background: var(--mc-cream);
  border: 4px solid #8a6d3b;
  box-shadow: inset -5px -5px 0 rgba(138,109,59,.22), 0 6px 0 rgba(0,0,0,.22);
}
.mc-dark {
  background: rgba(20, 20, 20, .82);
  border: 4px solid #000;
  box-shadow: inset 0 0 0 2px #4a4a4a, 0 6px 0 rgba(0,0,0,.35);
  color: #f2f2f2;
}

/* ============ 顶部栏（泥土热键栏风格） ============ */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  background: linear-gradient(180deg, #3a2b1c 0%, #2b2014 100%);
  border-bottom: 5px solid var(--mc-grass);
  box-shadow: 0 5px 0 rgba(0,0,0,.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  user-select: none;
}

.brand-mascot {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--mc-panel);
  border: 4px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: 0 4px 0 rgba(0,0,0,.4);
  animation: steveBob 2.6s steps(2) infinite;
}
.brand-mascot svg { display: block; image-rendering: pixelated; }
@keyframes steveBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.brand-text h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 3px 3px 0 rgba(0,0,0,.65);
}
.brand-text h1 .accent { color: var(--mc-xp); }
.brand-text p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #cbb9a0;
  letter-spacing: .5px;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.55);
  background: linear-gradient(180deg, #9d9d9d 0%, #8b8b8b 45%, #6e6e6e 55%, #6e6e6e 100%);
  border: 3px solid #000;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.3), 0 4px 0 rgba(0,0,0,.4);
  cursor: pointer;
  transition: filter .12s, transform .1s;
}
.chip:hover { filter: brightness(1.15); }
.chip:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 2px 0 rgba(0,0,0,.4); }
.chip.active { background: linear-gradient(180deg, #6fb844 0%, #5c9e34 45%, #478126 55%, #478126 100%); }
.chip.stars-badge {
  background: linear-gradient(180deg, #f5c93d 0%, #d9a91f 50%, #b8890f 100%);
  cursor: default;
}
.chip.stars-badge:hover { filter: none; }

/* ============ 热键栏导航 ============ */
.hotbar {
  position: relative;
  z-index: 9;
  display: flex;
  gap: 6px;
  padding: 12px 22px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hotbar::-webkit-scrollbar { display: none; }

.hot-slot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 86px;
  padding: 10px 4px 7px;
  background: rgba(24, 24, 24, .88);
  border: 4px solid #4f4f4f;
  box-shadow: inset 0 0 0 2px #2a2a2a, 0 4px 0 rgba(0,0,0,.4);
  cursor: pointer;
  font-family: var(--font);
  transition: transform .12s, border-color .12s;
}
.hot-slot .ico { font-size: 25px; line-height: 1; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.6)); }
.hot-slot .lbl { font-size: 12.5px; font-weight: 800; color: #cfcfcf; text-shadow: 2px 2px 0 rgba(0,0,0,.7); }
.hot-slot:hover { transform: translateY(-4px); border-color: #9a9a9a; }
.hot-slot.active {
  border-color: #ffffff;
  background: rgba(48, 48, 48, .95);
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2px #6b6b6b, 0 6px 0 rgba(0,0,0,.45);
}
.hot-slot.active .lbl { color: var(--mc-xp); }

/* ============ 主容器 ============ */
.stage {
  position: relative;
  z-index: 5;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 22px 110px;
}

.panel { display: none; animation: panelIn .3s steps(3); }
.panel.active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ 卡片 ============ */
.card {
  padding: 22px 24px;
  margin-bottom: 18px;
  background: var(--mc-panel);
  border: 4px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.12), 0 6px 0 rgba(0,0,0,.28);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(255,255,255,.6);
}
.card-sub {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 600;
}

/* ============ 按钮（Minecraft 立体按钮） ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 3px solid #000;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.55);
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, #9d9d9d 0%, #8b8b8b 45%, #6e6e6e 55%, #6e6e6e 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.3), 0 5px 0 rgba(0,0,0,.42);
  transition: filter .12s, transform .1s, box-shadow .1s;
}
.btn:hover:not(:disabled) { filter: brightness(1.14); }
.btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: inset 0 2px 0 rgba(0,0,0,.18), inset 0 -2px 0 rgba(0,0,0,.2), 0 2px 0 rgba(0,0,0,.4);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-green  { background: linear-gradient(180deg, #6fb844 0%, #5c9e34 45%, #478126 55%, #478126 100%); }
.btn-blue   { background: linear-gradient(180deg, #5a8fe8 0%, #3f76e4 45%, #2e5cb8 55%, #2e5cb8 100%); }
.btn-purple { background: linear-gradient(180deg, #b96ae0 0%, #a34ed1 45%, #7f3aa8 55%, #7f3aa8 100%); }
.btn-gold   { background: linear-gradient(180deg, #f5c93d 0%, #d9a91f 45%, #b8890f 55%, #b8890f 100%); }
.btn-red    { background: linear-gradient(180deg, #e85656 0%, #d43a3a 45%, #a82b2b 55%, #a82b2b 100%); }
.btn-teal   { background: linear-gradient(180deg, #5de8e8 0%, #3cc9c9 45%, #2a9e9e 55%, #2a9e9e 100%); }
.btn-ghost  { background: linear-gradient(180deg, #9d9d9d 0%, #8b8b8b 45%, #6e6e6e 55%, #6e6e6e 100%); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

/* ============ 说话面板子切换 ============ */
.sub-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.sub-toggle .hot-slot { width: 130px; flex-direction: row; justify-content: center; gap: 8px; padding: 10px; }
.sub-toggle .hot-slot .lbl { font-size: 14px; }

/* ============ 聊天区（游戏聊天框风格） ============ */
.chat-log {
  max-height: 440px;
  overflow-y: auto;
  padding: 16px 18px;
  background: rgba(16, 16, 16, .82);
  border: 4px solid #000;
  box-shadow: inset 0 0 0 2px #3d3d3d;
  margin-bottom: 16px;
}
.chat-log::-webkit-scrollbar { width: 12px; }
.chat-log::-webkit-scrollbar-thumb {
  background: var(--mc-stone);
  border: 3px solid #000;
}
.chat-log::-webkit-scrollbar-track { background: #1c1c1c; }

.msg {
  display: flex;
  gap: 11px;
  margin-bottom: 15px;
  animation: msgIn .25s steps(3);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg.me { flex-direction: row-reverse; }

.msg-av {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid #000;
  box-shadow: 0 3px 0 rgba(0,0,0,.45);
}
.msg.tutor .msg-av { background: var(--mc-panel); }
.msg.me .msg-av {
  background: var(--mc-grass);
  font-size: 22px;
  display: grid;
  place-items: center;
}
.msg-av svg { image-rendering: pixelated; display: block; }

.msg-body {
  max-width: 76%;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.75;
  word-break: break-word;
  white-space: pre-wrap;
  border: 3px solid #000;
}
.msg.tutor .msg-body {
  background: rgba(42, 58, 32, .92);
  color: #e8ffd8;
  box-shadow: inset 0 0 0 2px #3f5a2d;
}
.msg.me .msg-body {
  background: rgba(30, 52, 84, .92);
  color: #d8ecff;
  box-shadow: inset 0 0 0 2px #2d4a78;
}

.msg-name {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.msg.tutor .msg-name { color: var(--mc-xp); }
.msg.me .msg-name { color: var(--mc-diamond); text-align: right; }

/* 英文高亮 & 可点单词 */
.en {
  display: inline;
  font-weight: 800;
  color: #ffe98a;
  border-bottom: 2px dashed rgba(255,233,138,.5);
}
.msg.me .en { color: #aee3ff; border-color: rgba(174,227,255,.5); }
.word {
  cursor: pointer;
  transition: background .12s;
  padding: 0 2px;
}
.word:hover { background: rgba(255, 233, 138, .35); }

/* 打字光标 */
.cursor-blink {
  display: inline-block;
  width: 9px; height: 16px;
  background: var(--mc-xp);
  vertical-align: -3px;
  margin-left: 3px;
  animation: blink .8s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ 输入框 ============ */
.field {
  width: 100%;
  padding: 13px 16px;
  border: 4px solid #000;
  font-family: var(--font);
  font-size: 15.5px;
  color: #f2f2f2;
  background: #3d3d3d;
  box-shadow: inset 0 0 0 2px #1e1e1e, inset 3px 3px 0 rgba(0,0,0,.3);
  outline: none;
  resize: vertical;
}
.field:focus {
  background: #4a4a4a;
  box-shadow: inset 0 0 0 2px var(--mc-xp), inset 3px 3px 0 rgba(0,0,0,.3);
}
.field::placeholder { color: #9a9a9a; }

select.field { cursor: pointer; }
select.field option { background: #3d3d3d; color: #f2f2f2; }

.row-input {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.row-input .field { flex: 1; }

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink-soft);
  margin-bottom: 7px;
  letter-spacing: .5px;
}

/* ============ 麦克风 ============ */
.mic-wrap { text-align: center; margin: 22px 0 8px; }
.mic-btn {
  position: relative;
  width: 92px; height: 92px;
  border: 5px solid #000;
  background: linear-gradient(180deg, #e85656 0%, #d43a3a 50%, #a82b2b 100%);
  color: #fff;
  font-size: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.3), inset 0 -6px 0 rgba(0,0,0,.3), 0 7px 0 rgba(0,0,0,.45);
  transition: filter .12s, transform .1s;
  margin: 0 auto;
}
.mic-btn:hover:not(.recording) { filter: brightness(1.12); }
.mic-btn.recording {
  animation: recPulse 1.1s steps(2) infinite;
}
@keyframes recPulse {
  0%, 100% { box-shadow: inset 0 3px 0 rgba(255,255,255,.3), inset 0 -6px 0 rgba(0,0,0,.3), 0 7px 0 rgba(0,0,0,.45), 0 0 0 0 rgba(224,50,50,.6); }
  50%      { box-shadow: inset 0 3px 0 rgba(255,255,255,.3), inset 0 -6px 0 rgba(0,0,0,.3), 0 7px 0 rgba(0,0,0,.45), 0 0 0 18px rgba(224,50,50,0); }
}
.mic-hint {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
}
.mic-hint.live { color: #a82b2b; animation: blink 1.2s steps(2) infinite; }

/* 声波条（像素柱） */
.wave {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: flex-end;
  height: 30px;
  margin-top: 12px;
}
.wave i {
  width: 8px;
  background: var(--mc-redstone);
  height: 6px;
  transition: height .1s;
}
.wave.on i { animation: waveBar .8s steps(4) infinite; }
.wave.on i:nth-child(1) { animation-delay: 0s; }
.wave.on i:nth-child(2) { animation-delay: .1s; }
.wave.on i:nth-child(3) { animation-delay: .2s; }
.wave.on i:nth-child(4) { animation-delay: .3s; }
.wave.on i:nth-child(5) { animation-delay: .15s; }
.wave.on i:nth-child(6) { animation-delay: .25s; }
.wave.on i:nth-child(7) { animation-delay: .05s; }
@keyframes waveBar {
  0%, 100% { height: 6px; }
  50%      { height: 26px; }
}

/* ============ 喇叭按钮（听力） ============ */
.speaker-btn {
  width: 76px; height: 76px;
  border: 5px solid #000;
  background: linear-gradient(180deg, #b96ae0 0%, #a34ed1 50%, #7f3aa8 100%);
  color: #fff;
  font-size: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.3), inset 0 -6px 0 rgba(0,0,0,.3), 0 6px 0 rgba(0,0,0,.42);
  transition: filter .12s;
  margin: 0 auto 8px;
}
.speaker-btn:hover:not(:disabled) { filter: brightness(1.14); }
.speaker-btn.playing { animation: recPulse 1.2s steps(2) infinite; }
.speaker-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============ 星星评分 ============ */
.stars {
  display: inline-flex;
  gap: 5px;
  font-size: 26px;
  vertical-align: middle;
}
.stars .s { color: #5a5a5a; transition: color .2s; display: inline-block; }
.stars .s.on {
  color: var(--mc-gold);
  text-shadow: 2px 2px 0 rgba(0,0,0,.4);
  animation: starPop .4s steps(4) both;
}
@keyframes starPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ============ XP 经验条进度 ============ */
.meter {
  height: 20px;
  background: #1e1e1e;
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #3d3d3d;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  width: 0;
  transition: width .7s steps(12);
  background: linear-gradient(180deg, #a8ff70 0%, var(--mc-xp) 40%, #4fc90e 100%);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25);
}
.meter .segs {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(0,0,0,.35) 19px 20px);
  pointer-events: none;
}

.q-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink-soft);
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.score-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ============ 选项按钮 ============ */
.options {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #d5d5d5 0%, #c2c2c2 50%, #a8a8a8 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.18), 0 4px 0 rgba(0,0,0,.32);
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .1s, filter .12s;
}
.opt:hover:not(:disabled) { filter: brightness(1.08); transform: translateX(4px); }
.opt:disabled { cursor: default; }
.opt .tag {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  background: #3d3d3d;
  border: 2px solid #000;
  color: var(--mc-xp);
  font-weight: 900;
  font-size: 14px;
}
.opt.correct {
  background: linear-gradient(180deg, #8fd468 0%, #6fb844 50%, #548f31 100%);
  animation: optPop .35s steps(3);
}
.opt.correct .tag { background: #2d5518; color: #a8ff70; }
.opt.wrong {
  background: linear-gradient(180deg, #e88a8a 0%, #d45e5e 50%, #a84545 100%);
}
.opt.wrong .tag { background: #5e1d1d; color: #ffb8b8; }
@keyframes optPop {
  0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); }
}

/* 胶囊选项（填空） */
.opts-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.opt-pill {
  padding: 9px 19px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #d5d5d5 0%, #c2c2c2 50%, #a8a8a8 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.18), 0 3px 0 rgba(0,0,0,.3);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
  transition: transform .1s, filter .12s;
}
.opt-pill:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); }
.opt-pill:disabled { cursor: default; opacity: .7; }
.opt-pill.correct { background: linear-gradient(180deg, #8fd468 0%, #6fb844 50%, #548f31 100%); color: #1d3a0d; }
.opt-pill.wrong { background: linear-gradient(180deg, #e88a8a 0%, #d45e5e 50%, #a84545 100%); color: #4a1212; }

/* ============ 填空 / 阅读 / 笔试条目 ============ */
.blank-item, .exam-item {
  padding: 17px 19px;
  border: 4px solid #000;
  background: #d8d8d8;
  box-shadow: inset 0 0 0 2px #b5b5b5;
  margin-bottom: 14px;
  transition: background .18s;
}
.blank-item.done, .exam-item.done { background: #cfe8bd; box-shadow: inset 0 0 0 2px #9dc984; }
.blank-item.done.bad, .exam-item.done.bad { background: #eed2c9; box-shadow: inset 0 0 0 2px #d5a48f; }

.blank-q {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.95;
  margin-bottom: 6px;
}
.blank-zh { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 13px; font-weight: 600; }

.blank-slot {
  display: inline-block;
  min-width: 88px;
  padding: 2px 10px;
  margin: 0 4px;
  border-bottom: 4px solid var(--mc-purple);
  color: var(--mc-purple);
  font-weight: 900;
  text-align: center;
  background: rgba(178, 75, 216, .12);
}
.blank-slot.filled { color: #2d6e14; border-color: var(--mc-grass); background: rgba(92,158,52,.18); }
.blank-slot.wrongfill { color: #b32e2e; border-color: var(--mc-redstone); background: rgba(224,50,50,.1); }
.blank-slot.wrongfill s { opacity: .75; margin-right: 4px; }

.type-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 2px solid #000;
  font-size: 11.5px;
  font-weight: 900;
  margin-right: 8px;
  vertical-align: 2px;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,.5);
}
.type-choice { background: var(--mc-water); }
.type-blank  { background: var(--mc-grass); }
.type-judge  { background: var(--mc-gold); color: #5e4400; text-shadow: none; }

/* 讲解小卡 */
.explain {
  margin-top: 12px;
  padding: 12px 15px;
  background: var(--mc-cream);
  border: 3px solid #8a6d3b;
  box-shadow: inset -3px -3px 0 rgba(138,109,59,.2);
  font-size: 14px;
  line-height: 1.75;
  color: #5e4a1f;
  animation: msgIn .25s steps(3);
}
.explain b { color: #7a5a12; }

/* ============ 阅读短文 ============ */
.paper-block {
  background: var(--mc-cream);
  border: 4px solid #8a6d3b;
  box-shadow: inset -5px -5px 0 rgba(138,109,59,.22), 0 5px 0 rgba(0,0,0,.22);
  padding: 22px 26px;
  margin-bottom: 18px;
  position: relative;
}
.paper-block .passage {
  font-size: 18px;
  line-height: 2.05;
  color: #3d2f14;
  font-weight: 600;
  word-break: break-word;
}
.paper-block .passage-zh {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 3px dashed #c3b078;
  font-size: 14px;
  color: #7a6435;
  line-height: 1.8;
}

/* ============ 作文骨架 ============ */
.skeleton-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 3px solid #000;
  background: #e4e4e4;
  box-shadow: inset 0 0 0 2px #c9c9c9;
  margin-bottom: 10px;
}
.skeleton-row .num {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: var(--mc-grass);
  border: 3px solid #000;
  color: #fff;
  font-weight: 900;
  text-shadow: 2px 2px 0 rgba(0,0,0,.4);
}
.skeleton-row .sk-en { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.7; }
.skeleton-row .sk-zh { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

.word-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.word-chip {
  padding: 6px 13px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #5de8e8 0%, #3cc9c9 55%, #2a9e9e 100%);
  color: #083a3a;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,.3);
  transition: transform .1s;
}
.word-chip:hover { transform: translateY(-3px); }

/* 作文批改高亮 */
.review-good {
  padding: 13px 16px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #d8f2c4 0%, #c4e8ac 100%);
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #2d5518;
  font-weight: 700;
}
.review-fix {
  padding: 13px 16px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #f7e8c4 0%, #eedcae 100%);
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #5e4a12;
}
.review-fix .bad { color: #b32e2e; text-decoration: line-through; font-weight: 800; }
.review-fix .good { color: #2d6e14; font-weight: 900; }
.review-polish {
  padding: 17px 19px;
  background: var(--mc-cream);
  border: 4px solid #8a6d3b;
  box-shadow: inset -4px -4px 0 rgba(138,109,59,.2);
  font-size: 16px;
  line-height: 2;
  color: #3d2f14;
  font-weight: 600;
  margin-top: 14px;
}

/* ============ 纠错对比（笔试判题复用） ============ */
.err-list { margin-top: 14px; display: grid; gap: 12px; }
.err-card {
  padding: 14px 17px;
  border: 3px solid #000;
  background: #e4e4e4;
  box-shadow: inset 0 0 0 2px #c9c9c9;
  border-left: 8px solid var(--mc-gold);
  animation: msgIn .25s steps(3);
}
.err-card .err-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.badge {
  padding: 3px 11px;
  border: 2px solid #000;
  font-size: 11.5px;
  font-weight: 900;
  background: var(--mc-gold);
  color: #5e4400;
}
.err-card .pair {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 7px;
  line-height: 1.7;
}
.err-card .pair .bad { color: #b32e2e; text-decoration: line-through; }
.err-card .pair .good { color: #2d6e14; }
.err-card .why { font-size: 14px; color: var(--ink-soft); line-height: 1.72; }

/* ============ 拍照翻译 ============ */
.drop-zone {
  border: 5px dashed #6d6d6d;
  padding: 38px 22px;
  text-align: center;
  background: rgba(24, 24, 24, .55);
  cursor: pointer;
  transition: background .18s, border-color .18s;
  color: #f2f2f2;
}
.drop-zone:hover, .drop-zone.over {
  border-color: var(--mc-diamond);
  background: rgba(42, 158, 158, .28);
}
.drop-zone .dz-ico { font-size: 56px; display: block; margin-bottom: 12px; }
.drop-zone .dz-t { font-size: 18px; font-weight: 900; margin-bottom: 6px; text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.drop-zone .dz-s { font-size: 13px; color: #cfcfcf; line-height: 1.7; }

.preview-wrap {
  position: relative;
  overflow: hidden;
  border: 4px solid #000;
  box-shadow: 0 6px 0 rgba(0,0,0,.32);
  margin-top: 16px;
  background: #1c1c1c;
}
.preview-wrap img { display: block; width: 100%; max-height: 340px; object-fit: contain; }
.preview-wrap .px-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border: 3px solid #000;
  background: var(--mc-redstone);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 rgba(0,0,0,.4);
}

.tr-item {
  padding: 16px 19px;
  border: 4px solid #000;
  background: #d8f0f0;
  box-shadow: inset 0 0 0 2px #b0dcdc;
  border-left: 8px solid var(--mc-diamond);
  margin-bottom: 13px;
  animation: msgIn .3s steps(3);
}
.tr-en {
  font-size: 19px;
  font-weight: 900;
  color: #0d5e5e;
  line-height: 1.6;
  margin-bottom: 7px;
  word-break: break-word;
}
.tr-zh { font-size: 16.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.tr-reading {
  display: inline-block;
  font-size: 13.5px;
  color: #3d5a5a;
  background: #c4e8e8;
  border: 2px solid #8fc9c9;
  padding: 4px 11px;
  margin-bottom: 6px;
  font-weight: 700;
}
.tr-explain { font-size: 14px; color: var(--ink-soft); line-height: 1.72; margin-top: 5px; font-weight: 600; }

.word-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 11px;
  margin-top: 14px;
}
.word-card {
  padding: 14px 15px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #f5e08a 0%, #ecd268 55%, #d9b845 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 4px 0 rgba(0,0,0,.3);
  text-align: center;
  cursor: pointer;
  transition: transform .12s;
}
.word-card:hover { transform: translateY(-4px); }
.word-card .wc-w { font-size: 18px; font-weight: 900; color: #5e4400; margin-bottom: 4px; word-break: break-word; }
.word-card .wc-p { font-size: 12.5px; color: #8a6d2b; margin-bottom: 3px; }
.word-card .wc-m { font-size: 14px; font-weight: 800; color: #4a3600; }

/* ============ 反馈横幅 ============ */
.banner {
  padding: 14px 18px;
  border: 3px solid #000;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  animation: msgIn .25s steps(3);
}
.banner .bi { font-size: 21px; flex: 0 0 auto; line-height: 1.3; }
.banner.ok   { background: linear-gradient(180deg, #d8f2c4 0%, #bfe8a4 100%); color: #2d5518; }
.banner.no   { background: linear-gradient(180deg, #f7e8c4 0%, #eedcae 100%); color: #5e4a12; }
.banner.info { background: linear-gradient(180deg, #cde4f7 0%, #aed2f0 100%); color: #173f6b; }
.banner.err  { background: linear-gradient(180deg, #f5c9c9 0%, #eda8a8 100%); color: #6b1717; }

/* ============ 加载动画 ============ */
.loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}
.loading.show { display: flex; }

.dots { display: inline-flex; gap: 7px; }
.dots i {
  width: 13px; height: 13px;
  background: var(--mc-grass);
  border: 2px solid #000;
  animation: dotJump 1s steps(3) infinite;
}
.dots i:nth-child(2) { animation-delay: .16s; background: var(--mc-gold); }
.dots i:nth-child(3) { animation-delay: .32s; background: var(--mc-diamond); }
@keyframes dotJump {
  0%, 80%, 100% { transform: translateY(0); opacity: .6; }
  40%           { transform: translateY(-11px); opacity: 1; }
}

/* ============ 空状态 ============ */
.empty {
  text-align: center;
  padding: 42px 20px;
  color: #cfcfcf;
}
.empty .e-ico { display: flex; justify-content: center; margin-bottom: 14px; }
.empty .e-t { font-size: 15.5px; font-weight: 700; line-height: 1.85; }

/* ============ 隐藏 ============ */
.hidden { display: none !important; }

/* ============ 底部状态栏（泥土条） ============ */
.statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: linear-gradient(180deg, #3a2b1c 0%, #2b2014 100%);
  border-top: 4px solid var(--mc-grass);
  font-size: 13px;
  color: #d8ccb8;
  font-weight: 800;
  flex-wrap: wrap;
}
.statusbar .dot {
  width: 11px; height: 11px;
  background: var(--mc-xp);
  border: 2px solid #000;
  animation: blinkSoft 2s steps(2) infinite;
}
.statusbar .dot.bad { background: var(--mc-redstone); }
@keyframes blinkSoft { 50% { opacity: .4; } }

/* ============ 弹窗（MC 合成台风格） ============ */
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, .62);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.show { display: flex; animation: fadeIn .18s steps(2); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--mc-panel);
  border: 5px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset -5px -5px 0 rgba(0,0,0,.14), 0 10px 0 rgba(0,0,0,.45);
  padding: 26px 28px;
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  animation: modalIn .28s steps(4);
}
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal h3 {
  margin: 0 0 6px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 1px;
}
.modal .m-sub { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; font-weight: 600; }

.grade-picker { display: flex; gap: 9px; margin-bottom: 20px; }
.grade-btn {
  flex: 1;
  padding: 13px 4px;
  border: 3px solid #000;
  background: linear-gradient(180deg, #9d9d9d 0%, #8b8b8b 50%, #6e6e6e 100%);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 rgba(0,0,0,.35);
  transition: filter .12s, transform .1s;
}
.grade-btn:hover { filter: brightness(1.12); }
.grade-btn.active {
  background: linear-gradient(180deg, #6fb844 0%, #5c9e34 50%, #478126 100%);
  transform: translateY(-3px);
}
.grade-btn small { display: block; font-size: 10.5px; font-weight: 700; opacity: .88; margin-top: 4px; }

/* ============ Toast ============ */
#toastBox {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 12px 22px;
  border: 3px solid #000;
  box-shadow: 0 5px 0 rgba(0,0,0,.4);
  font-size: 14.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: toastIn .28s steps(4);
  max-width: 90vw;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.toast.ok   { background: linear-gradient(180deg, #6fb844 0%, #478126 100%); }
.toast.err  { background: linear-gradient(180deg, #e85656 0%, #a82b2b 100%); }
.toast.info { background: linear-gradient(180deg, #5a8fe8 0%, #2e5cb8 100%); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.toast.out { animation: toastOut .22s steps(3) forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-16px); }
}

/* ============ 撒花（像素方块雨） ============ */
.confetti {
  position: fixed;
  width: 12px; height: 12px;
  z-index: 300;
  pointer-events: none;
  border: 2px solid rgba(0,0,0,.35);
}

/* ============ 分数卡 ============ */
.score-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}
.score-card {
  border: 3px solid #000;
  padding: 16px 12px;
  text-align: center;
  background: #d8d8d8;
  box-shadow: inset 0 0 0 2px #b5b5b5, 0 4px 0 rgba(0,0,0,.28);
}
.score-card .sc-label { font-size: 12px; font-weight: 900; color: var(--ink-soft); margin-bottom: 8px; letter-spacing: 1px; }
.score-card .sc-num { font-size: 31px; font-weight: 900; line-height: 1.1; font-family: "Courier New", monospace; }
.score-card .sc-unit { font-size: 12px; color: var(--ink-soft); font-weight: 800; }
.score-card .meter { height: 12px; margin-top: 9px; border-width: 2px; }

/* ============================================================
   进阶系统：成就 + 闯关等级
   ============================================================ */

/* 顶栏难度徽章 */
.level-chip {
  background: linear-gradient(180deg, #6fb844 0%, #5c9e34 45%, #478126 100%);
}
.level-chip .lv-prog-mini {
  font-size: 10.5px;
  font-weight: 700;
  opacity: .92;
}

/* 解锁横幅（居中弹出） */
.unlock-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  z-index: 400;
  min-width: 320px;
  max-width: 88vw;
  padding: 26px 34px;
  text-align: center;
  background: rgba(18, 18, 18, .94);
  border: 5px solid var(--ub-color, #ffd83d);
  box-shadow: 0 0 0 4px #000, 0 0 44px var(--ub-color, #ffd83d), 0 12px 0 rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,1.5,.4,1), opacity .3s;
  cursor: pointer;
}
.unlock-banner.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.unlock-banner .ub-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
  animation: ubBounce .7s steps(4) infinite;
  display: inline-block;
}
@keyframes ubBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.unlock-banner .ub-tag {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--ub-color, #ffd83d);
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
  margin-bottom: 7px;
}
.unlock-banner .ub-title {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0,0,0,.65);
  letter-spacing: 2px;
  margin-bottom: 9px;
}
.unlock-banner .ub-desc {
  font-size: 13.5px;
  color: #cfcfcf;
  line-height: 1.7;
  font-weight: 600;
}

/* 闯关等级轨道 */
.level-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 6px 0 4px;
}
.lv-arrow {
  align-self: center;
  font-size: 26px;
  color: #6d6d6d;
  padding: 0 8px;
  text-shadow: 2px 2px 0 rgba(255,255,255,.5);
  flex: 0 0 auto;
}
.lv-card {
  flex: 1;
  border: 4px solid #000;
  background: #d8d8d8;
  box-shadow: inset 0 0 0 2px #b5b5b5, 0 5px 0 rgba(0,0,0,.28);
  padding: 18px 16px;
  text-align: center;
  position: relative;
  transition: transform .14s;
}
.lv-card:not(.locked):hover { transform: translateY(-4px); }
.lv-card.current {
  background: #e8f5dc;
  box-shadow: inset 0 0 0 3px #5c9e34, 0 5px 0 rgba(0,0,0,.28);
}
.lv-card.locked { background: #b9b9b9; }
.lv-icon { font-size: 42px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.3)); }
.lv-name { font-size: 18px; font-weight: 900; letter-spacing: 1px; margin-bottom: 6px; }
.lv-no { font-size: 12px; color: var(--ink-faint); font-weight: 800; }
.lv-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 12px; min-height: 40px; font-weight: 600; }
.lv-prog-t { font-size: 12px; font-weight: 900; color: var(--ink-soft); }
.lv-current-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 13px;
  border: 2px solid #000;
  background: var(--mc-grass);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 1px 1px 0 rgba(0,0,0,.4);
}
.lv-card .lv-go { margin-top: 10px; }

/* 成就网格 */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 11px;
}
.ach-card {
  border: 3px solid #000;
  background: #c2c2c2;
  box-shadow: inset 0 0 0 2px #a8a8a8, 0 4px 0 rgba(0,0,0,.25);
  padding: 14px 12px;
  text-align: center;
  transition: transform .13s;
  position: relative;
}
.ach-card.got {
  background: linear-gradient(180deg, #f5e08a 0%, #ecd268 55%, #d9b845 100%);
  box-shadow: inset 0 0 0 2px #fff3c4, 0 4px 0 rgba(0,0,0,.3);
}
.ach-card.got:hover { transform: translateY(-4px); }
.ach-icon { font-size: 34px; line-height: 1; margin-bottom: 8px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.25)); }
.ach-card:not(.got) .ach-icon { opacity: .5; filter: grayscale(1); }
.ach-name { font-size: 14.5px; font-weight: 900; color: var(--ink); margin-bottom: 4px; letter-spacing: .5px; }
.ach-card:not(.got) .ach-name { color: #6d6d6d; }
.ach-desc { font-size: 11.5px; color: var(--ink-soft); line-height: 1.6; font-weight: 600; }
.ach-tag {
  margin-top: 8px;
  display: inline-block;
  padding: 2px 9px;
  border: 2px solid #000;
  background: var(--mc-grass);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  text-shadow: 1px 1px 0 rgba(0,0,0,.4);
}

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .topbar { padding: 10px 13px; gap: 10px; }
  .brand-mascot { width: 46px; height: 46px; }
  .brand-text h1 { font-size: 16px; }
  .brand-text p { display: none; }
  .chip { padding: 7px 10px; font-size: 12px; }
  .hotbar { padding: 10px 13px 8px; }
  .hot-slot { width: 72px; }
  .hot-slot .ico { font-size: 21px; }
  .hot-slot .lbl { font-size: 11px; }
  .stage { padding: 10px 13px 120px; }
  .card { padding: 17px 15px; }
  .msg-body { max-width: 84%; font-size: 14.5px; }
  .statusbar { padding: 8px 13px; font-size: 11.5px; gap: 9px; }
  .mic-btn { width: 78px; height: 78px; font-size: 32px; }
  .speaker-btn { width: 64px; height: 64px; font-size: 26px; }
  .word-cards { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .btn { padding: 10px 18px; font-size: 14px; }
  .btn-lg { padding: 13px 26px; font-size: 15.5px; }
  .pixel-sun { width: 44px; height: 44px; top: 60px; }
  .paper-block { padding: 17px 16px; }
  .paper-block .passage { font-size: 16px; }
  /* 进阶系统 */
  .level-track { flex-direction: column; gap: 10px; }
  .lv-arrow { transform: rotate(90deg); padding: 0; text-align: center; }
  .lv-desc { min-height: 0; }
  .ach-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px; }
  .ach-card { padding: 11px 8px; }
  .unlock-banner { min-width: 0; width: 86vw; padding: 20px 18px; }
  .unlock-banner .ub-title { font-size: 20px; }
}
