/* 爱学大冒险 · 站内学习闯关游戏样式
 * 配色承接站点（--blue #2F5FB3 / --gold #C9A24B / --teal #2F8C83 / --coral #D96A4F），
 * 面向儿童调亮调暖；全部场景用 CSS/SVG 绘制，无外部图片。 */

:root {
  --paper: #F5F7FB;
  --ink: #1B2A4A;
  --ink-soft: #5A6B8C;
  --blue: #2F5FB3;
  --blue-deep: #24498F;
  --gold: #C9A24B;
  --gold-bright: #F4B942;
  --teal: #2F8C83;
  --coral: #D96A4F;
  --grass: #58B368;
  --sky-top: #7EC8F2;
  --sky-mid: #A9DDF7;
  --sea: #3FA8D8;
  --hairline: #E3E9F4;
  --card-shadow: 0 10px 30px -12px rgba(27, 42, 74, .25);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 顶栏（与站点一致） ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 14px;
}
.topbar, .game-footer { position: relative; z-index: 3; }
.wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; letter-spacing: .12em; font-size: 14px; font-weight: 600; }
.account { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.account .who b, .account b { color: var(--blue); font-weight: 600; }
.btn {
  display: inline-block; padding: 8px 18px; border-radius: 999px; font-size: 13.5px; text-decoration: none;
  border: 1px solid var(--hairline); color: var(--ink); background: #fff; cursor: pointer; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.btn:hover { border-color: var(--blue); box-shadow: 0 4px 14px -6px rgba(47, 95, 179, .35); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #28509c; }

/* ===== 游戏主舞台 ===== */
.app {
  position: relative;
  width: min(1060px, 100%);
  margin: 18px auto 10px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 55%, #DFF3FB);
  min-height: 620px;
  isolation: isolate;
}
@media (max-width: 720px) {
  .app { margin: 10px 8px; width: auto; min-height: 560px; border-radius: 20px; }
}

.noscript-tip { text-align: center; padding: 60px 20px; font-size: 16px; color: var(--ink); }

/* 天空装饰：云与太阳 */
.sky-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cloud {
  position: absolute; background: rgba(255, 255, 255, .9); border-radius: 999px;
  filter: blur(.4px); animation: cloudDrift linear infinite;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.cloud::before { width: 55%; height: 150%; left: 12%; top: -62%; }
.cloud::after { width: 42%; height: 118%; right: 14%; top: -42%; }
@keyframes cloudDrift { from { transform: translateX(-30vw); } to { transform: translateX(115vw); } }
.sun {
  position: absolute; top: 24px; right: 290px; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #FFE9A8, var(--gold-bright) 62%, #F0A93B);
  box-shadow: 0 0 0 14px rgba(244, 185, 66, .18), 0 0 0 30px rgba(244, 185, 66, .08);
  animation: sunPulse 5s ease-in-out infinite;
}
@keyframes sunPulse { 50% { box-shadow: 0 0 0 20px rgba(244, 185, 66, .14), 0 0 0 42px rgba(244, 185, 66, .06); } }

/* 屏幕通用 */
.screen { position: relative; z-index: 1; display: none; animation: screenIn .45s var(--pop); padding: 26px clamp(14px, 4vw, 40px) 34px; min-height: 620px; }
.screen.active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .screen { min-height: 560px; padding: 18px 12px 24px; } }

/* ===== 首页 ===== */
.home-hero { text-align: center; margin: 6px 0 4px; }
.home-hero .kicker { font-size: 12px; letter-spacing: .5em; text-indent: .5em; color: #fff; background: var(--coral); display: inline-block; padding: 6px 16px 6px 20px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(217, 106, 79, .8); font-weight: 700; }
.home-hero h1 {
  margin: 14px 0 6px; font-size: clamp(34px, 6.5vw, 58px); letter-spacing: .1em; color: #fff;
  text-shadow: 0 3px 0 rgba(47, 95, 179, .55), 0 12px 28px rgba(27, 42, 74, .35);
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.home-hero .sub { color: #14507B; font-size: clamp(13.5px, 2.4vw, 16px); letter-spacing: .08em; }

.mascot-row { display: flex; justify-content: center; gap: clamp(8px, 2.6vw, 22px); margin: 26px 0 6px; flex-wrap: wrap; }
.mascot-card {
  position: relative; width: clamp(84px, 20vw, 128px); padding: 12px 6px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .82); border: 2.5px solid transparent; cursor: pointer; text-align: center;
  transition: transform .25s var(--pop), border-color .2s, box-shadow .2s; font-family: inherit;
}
.mascot-card:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 14px 26px -14px rgba(27, 42, 74, .45); }
.mascot-card.selected { border-color: var(--gold); background: #fff; transform: translateY(-8px) scale(1.06); box-shadow: 0 16px 30px -12px rgba(201, 162, 75, .6); }
.mascot-card .m-svg { width: clamp(54px, 12vw, 76px); height: auto; display: block; margin: 0 auto; animation: bob 2.6s ease-in-out infinite; }
.mascot-card .m-name { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.mascot-card .m-desc { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.home-name-row { display: flex; justify-content: center; gap: 10px; margin: 18px auto 6px; flex-wrap: wrap; }
.home-name-row input {
  padding: 12px 20px; border-radius: 999px; border: 2px solid #fff; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--ink); outline: none; width: min(260px, 66vw); text-align: center;
  box-shadow: 0 6px 18px -10px rgba(27, 42, 74, .35); transition: border-color .2s;
}
.home-name-row input:focus { border-color: var(--blue); }
.start-btn {
  margin: 18px auto 0; display: flex; align-items: center; gap: 10px;
  font-size: clamp(18px, 3.4vw, 23px); font-weight: 800; letter-spacing: .14em; text-indent: .14em;
  color: #fff; background: linear-gradient(180deg, #4A7FD6, var(--blue-deep));
  border: none; border-radius: 999px; padding: 15px 44px; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 0 #1B3768, 0 18px 30px -12px rgba(27, 42, 74, .55);
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.start-btn:hover { filter: brightness(1.07); }
.start-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #1B3768, 0 8px 18px -12px rgba(27, 42, 74, .55); }
.start-btn:disabled { filter: saturate(.4) brightness(.9); cursor: not-allowed; }
.home-tip { text-align: center; color: #14507B; font-size: 12.5px; margin-top: 14px; letter-spacing: .05em; }

/* ===== 地图页 ===== */
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.map-title { color: #fff; font-size: clamp(20px, 4vw, 28px); letter-spacing: .12em; text-shadow: 0 2px 0 rgba(47, 95, 179, .5); font-weight: 800; }
.map-player { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .88); padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 16px -10px rgba(27, 42, 74, .4); }
.map-player .mini-mascot { width: 26px; height: 26px; }
.star-total { display: inline-flex; align-items: center; gap: 5px; color: #9A6B00; }
.star-total .star-icon { color: var(--gold-bright); filter: drop-shadow(0 1px 0 rgba(154, 107, 0, .35)); }

.island-map { position: relative; width: 100%; height: clamp(380px, 56vw, 480px); margin-top: 8px; }
.island-map svg.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.island-stop { cursor: pointer; }
.island-stop.locked { cursor: not-allowed; }
.island-stop .isl-hit { fill: transparent; }
.island-stop:not(.locked):hover .isl-body { transform: translateY(-4px) scale(1.04); transform-origin: center; }
.island-stop .isl-body { transition: transform .25s var(--pop); }
.island-stop .isl-glow { opacity: 0; transition: opacity .3s; animation: glowPulse 2.2s ease-in-out infinite; }
.island-stop.current .isl-glow { opacity: 1; }
@keyframes glowPulse { 50% { opacity: .45; } }

.map-star-row { display: flex; justify-content: center; gap: 3px; }
.map-star-row .ms { width: 15px; height: 15px; }
.map-legend { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: #14507B; font-size: 12.5px; margin-top: 6px; }
.map-legend b { color: var(--ink); }

/* ===== 关卡通用 ===== */
.lv-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lv-back {
  display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; font-family: inherit;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13.5px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(27, 42, 74, .4);
  transition: transform .15s var(--pop), box-shadow .2s;
}
.lv-back:hover { transform: translateX(-2px); box-shadow: 0 8px 18px -8px rgba(27, 42, 74, .5); }
.lv-title { color: #fff; font-size: clamp(18px, 3.6vw, 24px); font-weight: 800; letter-spacing: .1em; text-shadow: 0 2px 0 rgba(27, 75, 112, .45); }
.lv-status { display: flex; align-items: center; gap: 12px; }
.hearts { display: inline-flex; gap: 4px; }
.heart { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgba(154, 31, 31, .35)); transition: transform .3s var(--pop), opacity .3s; }
.heart.lost { transform: scale(.72); opacity: .22; filter: grayscale(1); }
.prog-pill {
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700;
  color: var(--ink); box-shadow: 0 6px 14px -8px rgba(27, 42, 74, .4);
}
.streak-pill { background: linear-gradient(180deg, #FFD57E, var(--gold-bright)); color: #6B4A00; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; box-shadow: 0 6px 14px -8px rgba(154, 107, 0, .55); }
.streak-pill.off { visibility: hidden; }

.lv-stage { position: relative; margin-top: 16px; border-radius: 20px; padding: clamp(16px, 3.5vw, 28px); min-height: 340px; box-shadow: inset 0 2px 12px rgba(27, 42, 74, .12), 0 10px 24px -16px rgba(27, 42, 74, .3); }

/* 关卡场景主题 */
.lv-stage.theme-beach { background: linear-gradient(180deg, #BDE9FB 0%, #E9F9F4 46%, #FCEBC8 78%, #F6DFA2 100%); }
.lv-stage.theme-market { background: linear-gradient(180deg, #FFE9C9 0%, #FFF4E0 50%, #FDE7C3 100%); }
.lv-stage.theme-snow { background: linear-gradient(180deg, #DDEEFF 0%, #F2F9FF 55%, #FFFFFF 100%); }
.lv-stage.theme-maze { background: linear-gradient(180deg, #E8F6E4 0%, #F3FBEF 55%, #E2F3DC 100%); }
.lv-stage.theme-castle { background: linear-gradient(180deg, #2C4E9E 0%, #4A7FD6 55%, #A9DDF7 100%); }

.lv-question {
  background: rgba(255, 255, 255, .94); border-radius: 16px; padding: clamp(14px, 3vw, 22px) clamp(16px, 3.6vw, 26px);
  box-shadow: 0 8px 22px -14px rgba(27, 42, 74, .4); margin: 0 auto; max-width: 640px; position: relative;
}
.lv-question .q-kicker { font-size: 11.5px; letter-spacing: .3em; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.lv-question .q-text { font-size: clamp(16px, 3.2vw, 20px); font-weight: 700; line-height: 1.55; }
.lv-question .q-sub { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

/* 选项 */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vw, 14px); max-width: 640px; margin: 16px auto 0; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 3px solid #E8EFF9; border-radius: 16px; padding: clamp(12px, 2.6vw, 18px) 10px;
  cursor: pointer; font-family: inherit; font-size: clamp(14px, 2.8vw, 16.5px); font-weight: 700; color: var(--ink);
  transition: transform .18s var(--pop), border-color .18s, box-shadow .18s; text-align: center; line-height: 1.45;
}
.choice .c-emoji { font-size: clamp(26px, 5.6vw, 34px); line-height: 1; }
.choice .c-en { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.choice:hover:not(:disabled) { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 12px 22px -14px rgba(47, 95, 179, .55); }
.choice:disabled { cursor: default; }
.choice.correct { border-color: var(--grass); background: #F0FBF2; animation: popRight .5s var(--pop); }
.choice.correct::after { content: "✓"; position: absolute; top: -10px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--grass); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px -3px rgba(52, 135, 70, .7); }
.choice.wrong { border-color: var(--coral); background: #FDF1ED; animation: shakeX .45s ease; }
.choice.wrong::after { content: "✕"; position: absolute; top: -10px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px -3px rgba(180, 85, 47, .7); }
@keyframes popRight { 0% { transform: scale(.94); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes shakeX { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ===== 单词海滩：拼写 ===== */
.spell-fig { text-align: center; margin-bottom: 6px; }
.spell-fig .fig-emoji { font-size: clamp(56px, 13vw, 86px); line-height: 1.1; filter: drop-shadow(0 10px 14px rgba(27, 42, 74, .25)); animation: bob 3s ease-in-out infinite; display: inline-block; }
.spell-audio-row { display: flex; justify-content: center; margin: 4px 0 10px; }
.say-btn {
  display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer; font-family: inherit;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 13.5px; letter-spacing: .06em;
  padding: 9px 20px; border-radius: 999px; box-shadow: 0 6px 0 #1E655E, 0 12px 20px -10px rgba(47, 140, 131, .7);
  transition: transform .12s, box-shadow .12s;
}
.say-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #1E655E; }
.slots { display: flex; justify-content: center; gap: clamp(6px, 1.6vw, 10px); margin: 10px 0 14px; flex-wrap: wrap; }
.slot {
  width: clamp(40px, 9vw, 54px); height: clamp(48px, 11vw, 62px); border-radius: 12px;
  background: rgba(255, 255, 255, .75); border: 2.5px dashed #9EC7E8;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(22px, 5.4vw, 30px); font-weight: 800; color: var(--blue-deep); font-family: "Outfit", ui-rounded, system-ui;
  transition: border-color .2s, background .2s, transform .18s var(--pop);
}
.slot.filled { border-style: solid; border-color: var(--blue); background: #fff; animation: popRight .3s var(--pop); }
.slot.wrong-shake { border-color: var(--coral); animation: shakeX .4s ease; }
.letter-tiles { display: flex; justify-content: center; gap: clamp(7px, 2vw, 12px); flex-wrap: wrap; margin-top: 4px; }
.tile {
  width: clamp(42px, 9.6vw, 56px); height: clamp(46px, 10.4vw, 58px); border-radius: 13px; cursor: pointer;
  background: linear-gradient(180deg, #fff, #EAF3FC); border: 2.5px solid #C9DCF2; color: var(--blue-deep);
  font-size: clamp(21px, 5.2vw, 28px); font-weight: 800; font-family: "Outfit", ui-rounded, system-ui;
  box-shadow: 0 5px 0 #B7CDE8, 0 10px 16px -10px rgba(27, 42, 74, .35);
  transition: transform .12s, box-shadow .12s, opacity .2s;
}
.tile:hover:not(:disabled) { filter: brightness(1.04); }
.tile:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #B7CDE8; }
.tile:disabled { opacity: 0; pointer-events: none; transform: scale(.7); }

/* ===== 蓝斯雪山 ===== */
.mountain-zone { position: relative; height: clamp(150px, 26vw, 210px); margin: 2px 0 12px; }
.mountain-zone svg { width: 100%; height: 100%; display: block; }
.climber { transition: left 1s cubic-bezier(.45, .05, .35, 1.2), bottom 1s cubic-bezier(.45, .05, .35, 1.2); position: absolute; width: 44px; height: 44px; z-index: 2; }
.altitude-pill { position: absolute; right: 0; top: 0; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 800; color: #14507B; box-shadow: 0 6px 14px -8px rgba(27, 42, 74, .4); }

/* ===== 路线迷城 ===== */
.maze-zone { position: relative; margin: 2px 0 12px; }
.maze-track { display: flex; align-items: flex-end; gap: clamp(4px, 1.2vw, 10px); justify-content: center; }
.maze-node { position: relative; flex: 0 0 auto; }
.maze-node .nd {
  width: clamp(30px, 6.6vw, 42px); height: clamp(30px, 6.6vw, 42px); border-radius: 50%;
  background: #fff; border: 3px solid #CBE6C2; display: flex; align-items: center; justify-content: center;
  font-size: clamp(15px, 3.4vw, 20px); box-shadow: 0 4px 10px -6px rgba(27, 42, 74, .35); transition: border-color .3s, background .3s, transform .3s var(--pop);
}
.maze-node.done .nd { border-color: var(--grass); background: #EAF9EC; }
.maze-node.hero .nd { border-color: var(--gold-bright); background: #FFF6DE; transform: scale(1.22); box-shadow: 0 6px 16px -6px rgba(201, 162, 75, .7); }
.maze-flag { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: clamp(20px, 4.4vw, 26px); }
.maze-hero-mascot { position: absolute; transition: left .8s cubic-bezier(.4, .1, .3, 1.3), bottom .8s; width: 38px; height: 38px; z-index: 3; }

/* 资源集市专属 */
.market-booth { text-align: center; margin-bottom: 8px; }
.market-booth .booth-emoji { font-size: clamp(40px, 9vw, 58px); animation: bob 3.4s ease-in-out infinite; display: inline-block; filter: drop-shadow(0 8px 12px rgba(27, 42, 74, .22)); }

/* ===== 反馈条 ===== */
.feedback {
  position: fixed; left: 50%; top: 13%; transform: translate(-50%, -16px) scale(.9); z-index: 60;
  background: #fff; border-radius: 18px; padding: 14px 26px; font-size: clamp(15px, 3.2vw, 18px); font-weight: 800;
  box-shadow: 0 18px 40px -14px rgba(27, 42, 74, .5); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--pop); text-align: center; max-width: min(480px, 88vw);
}
.feedback.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.feedback.good { border: 3px solid var(--grass); color: #2C7A40; }
.feedback.bad { border: 3px solid var(--coral); color: #B4552F; }
.feedback .fb-sub { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }

/* ===== 结算 ===== */
.result-panel { max-width: 560px; margin: 12px auto 0; background: rgba(255, 255, 255, .95); border-radius: 22px; padding: clamp(20px, 4.6vw, 34px); text-align: center; box-shadow: 0 16px 36px -18px rgba(27, 42, 74, .5); }
.result-panel .r-kicker { font-size: 12px; letter-spacing: .4em; text-indent: .4em; color: var(--coral); font-weight: 800; }
.result-panel h2 { font-size: clamp(24px, 5vw, 32px); margin: 8px 0 4px; letter-spacing: .08em; }
.result-stars { display: flex; justify-content: center; gap: 10px; margin: 12px 0 8px; }
.result-stars .rs { width: clamp(40px, 9vw, 54px); height: clamp(40px, 9vw, 54px); opacity: .18; transform: scale(.85); transition: transform .4s var(--pop), opacity .3s; }
.result-stars .rs.lit { opacity: 1; transform: scale(1); filter: drop-shadow(0 6px 12px rgba(201, 162, 75, .55)); }
.result-panel .r-stats { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.result-panel .r-learn { color: #14507B; font-size: 14px; font-weight: 700; background: #EAF3FB; border-radius: 12px; padding: 8px 14px; margin: 0 auto 14px; max-width: min(520px, 92%); line-height: 1.6; }
.settings-panel .set-rows { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
.settings-panel .set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #F6F9FD; border-radius: 12px; font-weight: 700; }
.settings-panel .set-row .big-btn { padding: 8px 16px; min-height: 40px; font-size: 14px; }
/* ===== 移动端适配增强（390px 专项） ===== */
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .account { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .band-card { width: calc(50% - 5px); }
  .mascot-card { width: calc(25% - 8px); min-width: 0; padding: 10px 3px 8px; }
  .map-player { flex-wrap: wrap; justify-content: center; gap: 5px 8px; padding: 6px 10px; font-size: 12px; }
  .map-player .mini-mascot { width: 22px; height: 22px; }
  .go-map-row { gap: 8px; }
  .go-map-row .big-btn { padding: 9px 16px; font-size: 13.5px; }
  .result-actions { gap: 8px; }
  .result-actions .big-btn { padding: 9px 16px; font-size: 13.5px; }
  .settings-panel .set-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .album-dialog { padding: 14px 12px 12px; }
  .band-overlay { padding: 10px; }
}
.result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.site-link-card {
  margin: 16px auto 0; max-width: 480px; background: linear-gradient(135deg, #F2F7FF, #FFF9EC);
  border: 2px dashed #C9D9F0; border-radius: 16px; padding: 12px 16px; font-size: 13px; color: var(--ink); line-height: 1.7;
}
.site-link-card a { color: var(--blue); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(47, 95, 179, .3); }
.site-link-card a:hover { border-bottom-color: var(--blue); }

/* 城堡结算 */
.castle-done .result-panel { background: linear-gradient(180deg, #FFFFFF, #F4F8FF); }
.badge-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }
.badge {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 14px;
  background: #fff; border: 2.5px solid #E8EFF9; min-width: 86px; transition: transform .25s var(--pop), border-color .2s;
}
.badge:hover { transform: translateY(-4px); border-color: var(--gold); }
.badge .b-icon { font-size: 30px; }
.badge .b-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.badge.earned { border-color: var(--gold-bright); background: #FFFAEE; box-shadow: 0 8px 18px -10px rgba(201, 162, 75, .6); }
.badge.earned .b-name { color: #9A6B00; }

/* ===== 通用按钮 ===== */
.big-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 800; border-radius: 999px;
  font-size: 15.5px; padding: 12px 30px; color: #fff; letter-spacing: .06em;
  background: linear-gradient(180deg, #4A7FD6, var(--blue-deep)); box-shadow: 0 6px 0 #1B3768, 0 14px 24px -12px rgba(27, 42, 74, .5);
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.big-btn:hover { filter: brightness(1.07); }
.big-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #1B3768; }
.big-btn.gold { background: linear-gradient(180deg, #FFD57E, #E8A62E); color: #5F3D00; box-shadow: 0 6px 0 #B07E17, 0 14px 24px -12px rgba(154, 107, 0, .55); }
.big-btn.gold:active { box-shadow: 0 2px 0 #B07E17; }
.big-btn.ghost { background: #fff; color: var(--ink); border: 2.5px solid #DCE6F5; box-shadow: 0 4px 0 #C9D6EA; }
.big-btn.ghost:active { box-shadow: 0 1px 0 #C9D6EA; }

/* 返回地图/首页 */
.go-map-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* 音效开关 */
.sound-toggle {
  position: absolute; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 18px; background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 14px -8px rgba(27, 42, 74, .45); transition: transform .18s var(--pop);
}
.sound-toggle:hover { transform: scale(1.12); }
.sound-toggle.muted { filter: grayscale(1); opacity: .6; }

/* 粒子画布 */
#fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

/* 页脚 */
.game-footer { text-align: center; padding: 26px 0 34px; color: var(--ink-soft); font-size: 12.5px; letter-spacing: .08em; line-height: 2; }
.game-footer .rule { width: 56px; height: 1px; margin: 0 auto 14px; background: var(--hairline); }

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* 隐藏但可访问 */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== v2：蓝斯分级 ===== */
.home-section-label { text-align: center; margin: 20px 0 10px; font-size: 13px; font-weight: 800; color: #14507B; letter-spacing: .18em; }
.band-row { display: flex; justify-content: center; gap: clamp(6px, 1.8vw, 14px); flex-wrap: wrap; }
.band-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: clamp(118px, 23vw, 168px); padding: 12px 8px 10px; border-radius: 16px; cursor: pointer; font-family: inherit;
  background: rgba(255,255,255,.82); border: 2.5px solid transparent; text-align: center;
  transition: transform .22s var(--pop), border-color .2s, box-shadow .2s;
}
.band-card:hover { transform: translateY(-4px); box-shadow: 0 12px 22px -12px rgba(27,42,74,.4); }
.band-card.selected { border-color: var(--bc); background: #fff; transform: translateY(-6px) scale(1.04); box-shadow: 0 14px 26px -12px var(--bc); }
.band-card .b-emoji { font-size: 26px; line-height: 1.1; }
.band-card .b-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.band-card .b-range { font-size: 11.5px; font-weight: 700; color: var(--bc); }
.band-card .b-sub { font-size: 11px; color: var(--ink-soft); }
.band-card .b-age { font-size: 10.5px; color: var(--ink-soft); border-top: 1px dashed var(--hairline); width: 100%; padding-top: 6px; margin-top: 4px; }

.band-pill {
  display: inline-flex; align-items: center; gap: 5px; border: 2px solid var(--bc); background: #fff; color: var(--ink);
  font-size: 12.5px; font-weight: 800; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-family: inherit;
  box-shadow: 0 5px 12px -8px rgba(27,42,74,.45); transition: transform .16s var(--pop);
}
.band-pill:hover { transform: scale(1.05); }
.band-pill.mini { padding: 4px 10px; font-size: 11.5px; }

.band-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(27,42,74,.45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: screenIn .25s var(--pop); }
.band-dialog { background: #fff; border-radius: 20px; padding: 22px 22px 18px; max-width: 640px; width: 100%; box-shadow: 0 24px 60px -20px rgba(27,42,74,.55); }
.band-dialog h3 { font-size: 19px; letter-spacing: .1em; }
.bd-tip { color: var(--ink-soft); font-size: 12.5px; margin: 6px 0 14px; }
.band-row.in-dialog .band-card { width: clamp(118px, 30%, 158px); }
.bd-actions { display: flex; justify-content: center; margin-top: 14px; }

/* ===== 3D 地图 ===== */
.map-3d-wrap { position: relative; height: clamp(380px, 52vw, 500px); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px -18px rgba(27,42,74,.5), inset 0 0 0 3px rgba(255,255,255,.55); background: linear-gradient(180deg,#A9DDF7,#E8F6FC); }
.map-3d-wrap canvas { cursor: grab; }
.map-3d-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #14507B; font-weight: 700; letter-spacing: .2em; font-size: 14px; }
.map-svg-2d { width: 100%; height: 100%; display: block; }
.island-stop2 { cursor: pointer; }
.island-stop2.locked { cursor: not-allowed; }
.island-stop2:hover circle { stroke-width: 5; }

/* ===== 关卡补充 ===== */
.lv-en { font-size: .55em; font-weight: 600; opacity: .85; letter-spacing: .06em; margin-left: 4px; }
.lv-src { font-size: 11px; color: #14507B; text-align: center; margin-bottom: 8px; letter-spacing: .08em; opacity: .85; }
.lv-stage.theme-phonics { background: linear-gradient(180deg, #CBEAFA 0%, #EAF7FF 55%, #FFF6DE 100%); }
.lv-stage.theme-forest { background: linear-gradient(180deg, #D8F2D0 0%, #F0FAEA 55%, #E2F3DC 100%); }
.lv-stage.theme-math { background: linear-gradient(180deg, #E3DBF7 0%, #F5F0FE 55%, #EDE5FB 100%); }
.lv-stage.theme-science { background: linear-gradient(180deg, #CDE9EC 0%, #EBF7F8 55%, #E0F2EF 100%); }
.say-btn.small { padding: 7px 16px; font-size: 12.5px; box-shadow: 0 4px 0 #1E655E, 0 8px 14px -8px rgba(47,140,131,.6); }
.phonics-booth { text-align: center; margin: 4px 0 10px; }
.phonics-choice .p-word { font-size: clamp(16px, 3.4vw, 21px); font-weight: 800; color: var(--blue-deep); font-family: "Outfit", ui-rounded, system-ui; }
.phonics-choice .p-word.big { font-size: clamp(22px, 5vw, 30px); }

/* ===== 阅读卡 ===== */
.reading-card {
  max-width: 640px; margin: 0 auto; background: #FFFDF6; border-radius: 16px; padding: clamp(14px,3vw,22px);
  box-shadow: 0 8px 22px -14px rgba(27,42,74,.35); border: 1px solid #EFE6CC;
}
.reading-card .r-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 800; font-size: 14.5px; color: #8A6D1F; margin-bottom: 8px; }
.reading-card .r-band { font-size: 11px; background: #FFF3D6; color: #9A6B00; padding: 3px 10px; border-radius: 999px; }
.reading-card .r-text { font-family: Georgia, "Times New Roman", serif; font-size: clamp(15px, 3vw, 18px); line-height: 1.85; color: #3A3323; margin-bottom: 10px; }

/* 移动端：关卡标题英文副标隐藏，避免截断 */
@media (max-width: 560px) {
  .lv-title .lv-en { display: none; }
  .lv-title { font-size: 17px; }
}

/* ===== v3 交互增强 ===== */
/* 伙伴气泡伙伴 */
.buddy {
  position: absolute; left: 10px; bottom: 8px; z-index: 6; width: 76px; text-align: center;
  cursor: pointer; transition: transform .15s var(--pop); -webkit-tap-highlight-color: transparent;
}
.buddy:hover { transform: scale(1.1); }
.buddy .buddy-body { width: 60px; margin: 0 auto; animation: bob 2.8s ease-in-out infinite; transition: filter .3s; }
.buddy.cheer .buddy-body { animation: buddyJump .55s var(--pop) 2; }
.buddy.dizzy .buddy-body { animation: buddyDizzy .6s ease; filter: saturate(.55); }
.buddy.cry .buddy-body { animation: buddySad 1.2s ease; }
.buddy.dance .buddy-body { animation: buddyDance .5s var(--pop) 4; }
@keyframes buddyJump { 0%,100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-16px) rotate(-6deg); } 70% { transform: translateY(-4px) rotate(4deg); } }
@keyframes buddyDizzy { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
@keyframes buddySad { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px) scaleY(.92); } }
@keyframes buddyDance { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.buddy-say {
  position: absolute; left: 84px; bottom: 46px; z-index: 7; background: #fff; border-radius: 14px 14px 14px 4px;
  padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--ink); max-width: 220px; line-height: 1.5;
  box-shadow: 0 10px 24px -10px rgba(27,42,74,.45); opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .25s, transform .3s var(--pop); pointer-events: none; text-align: left;
}
.buddy-say.show { opacity: 1; transform: none; }

/* 答对：星星飞行 */
.star-fly {
  position: fixed; z-index: 55; width: 30px; height: 30px; pointer-events: none;
  transition: transform .8s cubic-bezier(.3, .1, .3, 1), opacity .8s;
}
/* 答错：舞台轻震 */
.lv-stage.shake { animation: stageShake .45s ease; }
@keyframes stageShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
/* 红心碎裂 */
.heart.crack { animation: heartCrack .6s ease forwards; }
@keyframes heartCrack { 0% { transform: scale(1); } 30% { transform: scale(1.35) rotate(-10deg); } 60% { transform: scale(.7) rotate(8deg); } 100% { transform: scale(.72) rotate(0); opacity: .22; filter: grayscale(1); } }
/* 连击火焰 */
.streak-pill.blaze { animation: blazePulse .8s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(244,185,66,.25), 0 6px 14px -8px rgba(154,107,0,.6); }
@keyframes blazePulse { 50% { transform: scale(1.1); } }

/* 单词泡泡 */
.letter-tiles .tile {
  border-radius: 50%; border: 3px solid rgba(255,255,255,.9);
  background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #DFF0FD 38%, #8FC3EC 100%);
  box-shadow: 0 6px 0 #7FB1DC, 0 12px 18px -8px rgba(27,42,74,.35), inset 0 -8px 14px rgba(47,95,179,.18);
  animation: bubbleBob 2.6s ease-in-out infinite;
}
.letter-tiles .tile:nth-child(2n) { animation-delay: -.5s; }
.letter-tiles .tile:nth-child(3n) { animation-delay: -1.1s; }
.letter-tiles .tile:hover:not(:disabled) { filter: brightness(1.06) saturate(1.1); }
.letter-tiles .tile:disabled { opacity: 0; pointer-events: none; transform: scale(.2); }
@keyframes bubbleBob { 50% { transform: translateY(-6px); } }
.tile.pop { animation: bubblePop .35s var(--pop); }
@keyframes bubblePop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
.spell-fig .fig-emoji.happy { animation: figHappy .8s var(--pop); display: inline-block; }
@keyframes figHappy { 0% { transform: scale(1); } 35% { transform: scale(1.3) rotate(-8deg); } 65% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1); } }

/* 拼读选项试听小喇叭 */
.choice .mini-hear {
  border: none; background: #EAF3FC; color: var(--blue); border-radius: 999px; font-size: 13px;
  padding: 2px 10px; cursor: pointer; font-family: inherit; margin-top: 4px; transition: transform .15s var(--pop);
}
.choice .mini-hear:hover { transform: scale(1.12); background: #D8EAFB; }

/* 收集册 */
.album-overlay { position: fixed; inset: 0; z-index: 72; background: rgba(27,42,74,.5); display: flex; align-items: center; justify-content: center; padding: 14px; animation: screenIn .25s var(--pop); }
.album-dialog { background: #fff; border-radius: 22px; padding: 20px 20px 16px; width: min(760px, 96vw); max-height: 88vh; overflow: auto; box-shadow: 0 24px 60px -18px rgba(27,42,74,.6); }
.album-dialog h3 { font-size: 19px; letter-spacing: .1em; display: flex; align-items: center; justify-content: space-between; }
.album-grid { margin-top: 12px; }
.album-band-row { margin-bottom: 10px; }
.album-band-head { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); margin: 8px 0 6px; }
.album-cells { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
@media (max-width: 560px) { .album-cells { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.album-cell {
  display: flex; align-items: center; gap: 8px; border-radius: 14px; padding: 8px 10px;
  border: 2.5px solid #EAF0F9; background: #FBFCFE; transition: transform .2s var(--pop), border-color .2s;
}
.album-cell.earned { border-color: var(--gold-bright); background: #FFFAEE; }
.album-cell.earned:hover { transform: translateY(-3px) rotate(-1deg); }
.album-cell .a-icon { font-size: 24px; }
.album-cell .a-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.album-cell .a-sub { font-size: 10.5px; color: var(--ink-soft); }
.album-cell.locked .a-icon { filter: grayscale(1); opacity: .45; }
.album-cell.locked .a-name { color: #A5B1C6; }
.album-actions { display: flex; justify-content: center; margin-top: 12px; }
.map-egg-hint { text-align: center; font-size: 11.5px; color: #14507B; margin-top: 4px; letter-spacing: .05em; }

/* ===== 积分联动 ===== */
.points-line {
  margin: 12px auto 0; max-width: 480px; background: linear-gradient(135deg, #FFF9EC, #F2F7FF);
  border: 2px dashed #E8D9A8; border-radius: 14px; padding: 10px 14px;
  font-size: 13px; color: #6B4A00; line-height: 1.6;
}
.points-line b { color: #B4552F; }
.points-line a { color: var(--blue); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(47,95,179,.3); }
.points-chip {
  display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(180deg, #FFF3D6, #FFE9B8);
  border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 800; color: #8A6D1F;
  text-decoration: none; box-shadow: 0 4px 10px -6px rgba(154,107,0,.5);
}
.points-chip b { color: #B4552F; }
.points-chip.login-hint { background: #fff; color: var(--ink-soft); border: 1.5px dashed var(--hairline); }
.points-chip.login-hint:hover { border-color: var(--blue); color: var(--blue); }

/* ===== v4：留存与落地（streak / 家长看板 / 错题重练 / 证书） ===== */
.streak-chip {
  display: inline-flex; align-items: center; gap: 3px; background: linear-gradient(180deg, #FFD57E, #E8A62E);
  border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 800; color: #6B4A00;
  box-shadow: 0 4px 10px -6px rgba(154,107,0,.55);
}
.parent-panel { width: min(680px, 96vw); }
.pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
@media (max-width: 560px) { .pp-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.pp-cell {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px;
  background: #FBFCFE; border: 2px solid #EAF0F9; border-radius: 14px; text-align: center;
}
.pp-cell b { font-size: 22px; color: var(--blue-deep); }
.pp-cell span { font-size: 11px; color: var(--ink-soft); }
.pp-bands { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pp-band { display: flex; align-items: center; gap: 10px; }
.pp-band .pp-name { width: 92px; font-size: 12.5px; font-weight: 800; }
.pp-band .pp-bar { flex: 1; height: 12px; background: #EEF3FA; border-radius: 999px; overflow: hidden; }
.pp-band .pp-bar i { display: block; height: 100%; border-radius: 999px; transition: width .6s var(--pop); }
.pp-band .pp-num { width: 70px; text-align: right; font-size: 12px; font-weight: 700; color: var(--ink-soft); }

/* 证书（打印友好） */
.cert-overlay { position: fixed; inset: 0; z-index: 75; background: rgba(27,42,74,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; overflow: auto; }
.cert-paper {
  width: min(640px, 94vw); background: #FFFDF6; border: 10px double #C9A24B; border-radius: 8px;
  padding: 34px 30px; text-align: center; color: #6B4A00; box-shadow: 0 24px 60px -18px rgba(27,42,74,.6);
}
.cert-inner { border: 1px solid #E8D9A8; border-radius: 6px; padding: 22px 14px; }
.cert-brand { font-size: 12px; letter-spacing: .3em; color: #9A6B00; }
.cert-title { font-family: "Songti SC", "STSong", serif; font-size: clamp(30px, 6vw, 44px); letter-spacing: .22em; margin: 14px 0 4px; color: #8A6D1F; font-weight: 700; }
.cert-sub { font-size: 10.5px; letter-spacing: .28em; color: #B9A26B; }
.cert-body { font-size: 14px; line-height: 1.9; margin-top: 16px; }
.cert-body b { color: #B4552F; }
.cert-name {
  font-family: "Songti SC", "STSong", serif; font-size: clamp(26px, 5.4vw, 38px); color: #1B2A4A;
  border-bottom: 3px solid #C9A24B; display: inline-block; padding: 0 26px 6px; margin: 12px 0; font-weight: 700;
}
.cert-badge { font-size: clamp(18px, 3.6vw, 24px); font-weight: 800; color: #9A6B00; background: #FFF3D6; border: 2px dashed #E0A94E; border-radius: 999px; display: inline-block; padding: 10px 26px; margin-top: 8px; }
.cert-foot { display: flex; justify-content: space-between; font-size: 12px; color: #B9A26B; margin-top: 22px; }
.cert-actions { display: flex; gap: 10px; }
@media print {
  body > .wrap, body > .app, body > .game-footer, body > #fx-canvas, body > .feedback, .no-print { display: none !important; }
  .cert-overlay { position: static; background: none; padding: 0; }
  .cert-paper { box-shadow: none; width: 100%; }
}

/* ===== 两步开局与语言切换 ===== */
.home-step { display: none; }
.home-step.active { display: block; }
.home-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.home-actions .start-btn { margin-top: 18px; }
.home-actions .big-btn { margin-top: 18px; }
.lang-toggle { white-space: nowrap; min-width: 78px; }
.band-card[aria-pressed="true"], .mascot-card[aria-pressed="true"] { outline: 2px solid rgba(255,255,255,.85); outline-offset: 2px; }
@media (max-width: 560px) {
  .account { gap: 6px; }
  .account .btn { padding: 7px 11px; font-size: 12px; }
  .lang-toggle { min-width: 60px; }
  .home-actions { flex-direction: column; gap: 0; }
  .home-actions .start-btn { order: -1; }
}

.reading-card .r-source { margin: 0 0 12px; color: #7B6A43; font-size: 12px; line-height: 1.55; border-top: 1px dashed #E6D9B8; padding-top: 8px; }

.map-3d-wrap { min-height: 500px; }
@media (max-width: 720px) { .map-3d-wrap { min-height: 430px; } }
.map-goal { margin: 10px auto 0; text-align: center; font-size: 13.5px; font-weight: 800; color: #14507B; background: #EAF3FB; border: 1.5px dashed #9CC4E8; border-radius: 999px; padding: 8px 16px; max-width: min(640px, 96%); }
/* 右下角星图快捷悬浮钮（与左下伙伴呼应） */
.map-fab { position: fixed; right: 14px; bottom: 16px; z-index: 8; width: 54px; height: 54px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 25px; line-height: 1; color: #fff;
  background: radial-gradient(circle at 32% 30%, #FFE9A8, #E8A62E 70%); box-shadow: 0 6px 0 #B07E17, 0 16px 26px -10px rgba(154, 107, 0, .6);
  transition: transform .15s var(--pop); -webkit-tap-highlight-color: transparent; }
.map-fab:hover { transform: scale(1.08); }
.map-fab:active { transform: translateY(4px); box-shadow: 0 2px 0 #B07E17; }
/* 星图弹窗 */
.star-atlas { background: linear-gradient(180deg, #14224A 0%, #1E3260 55%, #2A4278 100%); color: #fff; }
.star-atlas h3 { color: #FFE9A8; }
.star-atlas .sa-tip { color: #C9D6F2; font-size: 12.5px; margin: 6px 0 12px; }
.star-atlas .sa-band { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.star-atlas .sa-band-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14.5px; margin-bottom: 8px; }
.star-atlas .sa-band-num { color: #FFE9A8; font-size: 13px; font-weight: 800; }
.star-atlas .sa-isles { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; }
.star-atlas .sa-isle { text-align: center; padding: 8px 4px 6px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.star-atlas .sa-isle.got { background: rgba(255, 213, 126, .16); }
.star-atlas .sa-stars { display: flex; justify-content: center; gap: 2px; }
.star-atlas .sa-star { width: 17px; height: 17px; opacity: .22; }
.star-atlas .sa-star.lit { opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 213, 126, .9)); }
.star-atlas .sa-name { font-size: 10.5px; color: #C9D6F2; margin-top: 3px; }
.star-atlas .album-actions .big-btn.ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
@media (max-width: 560px) { .map-fab { width: 48px; height: 48px; font-size: 22px; right: 10px; bottom: 12px; } .star-atlas .sa-isles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== 美国校园场景与分级故事 ===== */
.campus-welcome { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px auto 2px; padding: 10px 16px; max-width: 850px; border: 1px solid rgba(255,255,255,.75); border-radius: 15px; background: rgba(255,255,255,.84); color: #24498F; font-size: 13px; line-height: 1.55; box-shadow: 0 6px 18px -12px #1B2A4A; }
.campus-badge { flex: 0 0 auto; padding: 4px 11px; border-radius: 999px; background: #FFF3D6; color: #8A6D1F; font-weight: 800; }
.school-guide { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto 14px; padding: 12px 16px; border: 2px solid rgba(255,255,255,.78); border-radius: 17px; background: linear-gradient(105deg, rgba(255,255,255,.94), rgba(255,248,222,.9)); box-shadow: 0 8px 20px -14px #1B2A4A; }
.school-room-icon { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: #EAF3FC; font-size: 32px; }
.school-story { min-width: 0; }
.school-room-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #24498F; }
.school-room-line span { color: #7B6A43; font-size: 12px; font-weight: 700; }
.school-story p { margin-top: 4px; color: #3A4A67; font-size: 13px; line-height: 1.6; }
.school-stage .lv-src { margin-top: 4px; }
@media (max-width: 560px) { .campus-welcome { align-items: flex-start; padding: 9px 11px; font-size: 12px; } .school-guide { align-items: flex-start; padding: 10px 12px; gap: 10px; } .school-room-icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 25px; } }

/* 返回地图固定在屏幕右下角，顶部留给关卡状态 */
.screen .lv-topbar { min-height: 44px; padding-right: 0; }
.screen .lv-topbar .lv-back { position: absolute; right: clamp(14px, 4vw, 40px); bottom: 24px; z-index: 12; box-shadow: 0 6px 18px rgba(27,42,74,.22); }
.screen:has(.lv-topbar) { padding-bottom: 88px; }
@media (max-width: 560px) { .screen .lv-topbar .lv-back { right: 12px; bottom: 18px; } }
