/* 砖筑 Lite · iPad 个人版
   设计令牌与主项目（zhuanzhu-miniprogram/app.wxss）同源。
   适配要点：safe-area、竖横屏双布局、44pt 以上触控目标、禁用双击缩放与选中。 */
:root {
  --night: #2E3358; --night-top: #3A4070; --night-bottom: #4A3A55; --night-deep: #232744;
  --brick: #C9573A; --brick-light: #D96C47; --brick-deep: #B84A2E;
  --sand: #F2C879; --sand-light: #FBE3A9;
  --cream: #FDF6EC; --paper: #FDFCFA; --paper-ink: #2B3440; --paper-soft: #7A8494;
  --copper-1: #D08A4C; --copper-2: #A3612F; --copper-3: #8A4E22; --patina: #8FC2A9;
  --silver-1: #E2E8F4; --silver-2: #AEBCD6; --silver-3: #8B9CBD;
  --gold-1: #F7D689; --gold-2: #E0B458; --gold-3: #C99A38;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--night); color: var(--cream);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  -webkit-user-select: none; user-select: none;
  overscroll-behavior: none; touch-action: manipulation;
  font-variant-numeric: tabular-nums;
}
button { font: inherit; color: inherit; border: none; background: none; touch-action: manipulation; }

/* ===== 屏幕容器 ===== */
.screen {
  position: fixed; inset: 0; display: none;
  padding: calc(var(--safe-t) + 24px) calc(var(--safe-r) + 32px) calc(var(--safe-b) + 24px) calc(var(--safe-l) + 32px);
  background: linear-gradient(180deg, var(--night-top) 0%, var(--night) 42%, var(--night-bottom) 100%);
  animation: fade .28s ease;
}
.screen.on { display: flex; flex-direction: column; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.icon-btn {
  width: 56px; height: 56px; border-radius: 50%; font-size: 32px; line-height: 52px;
  background: rgba(253,246,236,.12); flex: none;
}
.icon-btn:active { background: rgba(253,246,236,.22); }

/* ===== 首页 ===== */
.home-wrap { flex: 1; display: flex; align-items: center; gap: 48px; min-height: 0; }
.home-left { flex: 1; max-width: 560px; }
.home-right { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
@media (orientation: portrait) {
  .home-wrap { flex-direction: column-reverse; justify-content: center; gap: 20px; }
  .home-left, .home-right { width: 100%; max-width: 640px; margin: 0 auto; }
  .home-left { flex: none; }
  .home-right { flex: 0 1 auto; min-height: 0; }
  .tower-stage { max-height: 34vh; }
}

.brand { font-size: 52px; font-weight: 800; letter-spacing: 12px; color: var(--sand-light); margin: 0; }
.brand-sub { font-size: 18px; color: rgba(253,246,236,.6); margin: 10px 0 28px; letter-spacing: 2px; }

.stat-row { display: flex; gap: 14px; }
.stat {
  flex: 1; background: rgba(35,39,68,.5); border: 1px solid rgba(253,246,236,.12);
  border-radius: 18px; padding: 16px 10px; text-align: center;
}
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--sand-light); }
.stat span { font-size: 13px; color: rgba(253,246,236,.55); }

.today-card {
  margin: 22px 0; padding: 18px 22px; border-radius: 18px;
  background: rgba(35,39,68,.5); border: 1px solid rgba(253,246,236,.12);
  font-size: 17px; line-height: 1.8; color: rgba(253,246,236,.8);
}
.today-card b { color: var(--sand-light); }
.today-steps { display: flex; gap: 10px; margin-top: 12px; }
.today-steps i {
  flex: 1; height: 8px; border-radius: 8px; background: rgba(253,246,236,.18);
}
.today-steps i.done { background: linear-gradient(90deg, var(--brick-light), var(--brick)); }

.btn-primary {
  display: block; width: 100%; padding: 22px; border-radius: 100px; margin-top: 4px;
  font-size: 24px; font-weight: 800; letter-spacing: 4px; color: #5A3313;
  background: linear-gradient(135deg, var(--sand-light), var(--sand));
  box-shadow: 0 10px 30px rgba(242,200,121,.25);
}
.btn-primary:active { transform: translateY(2px); opacity: .9; }
.btn-primary[disabled] { filter: grayscale(.6); opacity: .55; box-shadow: none; }
.btn-ghost {
  display: block; width: 100%; padding: 16px; margin-top: 14px; border-radius: 100px;
  font-size: 17px; color: rgba(253,246,236,.75); background: rgba(253,246,236,.08);
}
.btn-ghost:active { background: rgba(253,246,236,.16); }

/* 首页砖塔（五进制：基础/铜/银/金） */
.tower-stage {
  display: flex; flex-direction: column-reverse; align-items: center; gap: 5px;
  min-height: 0; overflow: hidden; padding: 8px;
}
.brick-row { display: flex; gap: 5px; }
.bk { border-radius: 4px; }
.bk.base   { width: 34px; height: 16px; background: linear-gradient(180deg, var(--brick-light), var(--brick)); }
.bk.bronze { width: 40px; height: 18px; background: linear-gradient(180deg, var(--copper-1), var(--copper-2)); }
.bk.silver { width: 46px; height: 20px; background: linear-gradient(180deg, var(--silver-1), var(--silver-2)); box-shadow: 0 0 12px rgba(190,210,255,.35); }
.bk.gold   { width: 54px; height: 22px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); box-shadow: 0 0 16px rgba(242,200,121,.45); }
.bk.fresh  { animation: drop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } }
.tower-cap { font-size: 14px; color: rgba(253,246,236,.45); margin: 12px 0 0; letter-spacing: 1px; }
.tower-empty { font-size: 16px; color: rgba(253,246,236,.4); text-align: center; line-height: 2; }

/* ===== 训练 ===== */
.train-head { display: flex; align-items: center; gap: 18px; flex: none; }
.train-title { flex: 1; }
.train-title b { display: block; font-size: 26px; font-weight: 800; color: var(--sand-light); }
.train-title span { font-size: 14px; color: rgba(253,246,236,.5); }
.train-meta { text-align: right; }
.train-meta span { display: block; }
.train-meta span:first-child { font-size: 13px; color: rgba(253,246,236,.5); }
.train-meta span:last-child { font-size: 26px; font-weight: 800; color: var(--sand); }
.train-tip { flex: none; text-align: center; font-size: 17px; color: rgba(253,246,236,.7); padding: 14px 0 6px; min-height: 26px; }
.stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }

/* 数字寻宝 */
.grid { display: grid; gap: 10px; }
.cell {
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; font-weight: 800;
  background: linear-gradient(180deg, #3F4676, #333A63);
  border: 1px solid rgba(253,246,236,.12); color: var(--cream);
}
.cell:active { transform: scale(.94); }
.cell.hit { background: linear-gradient(180deg, var(--brick-light), var(--brick)); border-color: transparent; opacity: .55; }
.cell.miss { animation: shake .3s; background: #7A3B3B; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* 颜色冲突 */
.stroop { text-align: center; }
.stroop-word { font-size: 96px; font-weight: 800; letter-spacing: 8px; margin-bottom: 40px; }
.stroop-opts { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.opt {
  min-width: 130px; padding: 22px 28px; border-radius: 18px; font-size: 24px; font-weight: 800;
  background: rgba(253,246,236,.1); border: 2px solid rgba(253,246,236,.2);
}
.opt:active { transform: scale(.95); }
.opt.right { background: rgba(143,194,169,.35); border-color: var(--patina); }
.opt.wrong { background: rgba(201,87,58,.4); border-color: var(--brick); }

/* 亮砖寻宝 */
.corsi { display: grid; gap: 14px; }
.cor-cell {
  border-radius: 16px; background: rgba(35,39,68,.75);
  border: 2px solid rgba(253,246,236,.14);
}
.cor-cell.lit { background: linear-gradient(180deg, var(--sand-light), var(--sand)); border-color: transparent; box-shadow: 0 0 26px rgba(242,200,121,.7); }
.cor-cell.tap { background: linear-gradient(180deg, var(--brick-light), var(--brick)); border-color: transparent; }
.cor-cell.bad { background: #7A3B3B; }

/* ===== 结算 ===== */
.settle-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.settle-stars { font-size: 64px; letter-spacing: 10px; color: var(--sand); }
.settle-brick { height: 30px; margin: 18px 0 10px; display: flex; justify-content: center; }
.settle-title { font-size: 34px; font-weight: 800; margin: 8px 0; color: var(--sand-light); }
.settle-praise { font-size: 19px; line-height: 1.9; color: rgba(253,246,236,.8); max-width: 620px; margin: 6px 0 20px; }
.settle-facts { display: flex; gap: 14px; margin-bottom: 34px; }
.settle-facts div { background: rgba(35,39,68,.5); border: 1px solid rgba(253,246,236,.12); border-radius: 14px; padding: 12px 22px; font-size: 15px; color: rgba(253,246,236,.7); }
.settle-facts b { color: var(--sand-light); font-size: 20px; }
#s-settle .btn-primary { max-width: 420px; }

/* ===== 我的城市 ===== */
.city-back { position: absolute; top: calc(var(--safe-t) + 20px); left: calc(var(--safe-l) + 24px); z-index: 3; }
.city-head { flex: none; text-align: center; }
.city-title { font-size: 30px; font-weight: 800; letter-spacing: 10px; color: var(--sand-light); margin: 0; }
.city-sub { font-size: 14px; color: rgba(253,246,236,.55); margin: 8px 0 0; letter-spacing: 2px; }
.city-field { flex: 1; display: flex; align-items: flex-end; justify-content: center; min-height: 0; padding-top: 16px; }

.plots { display: flex; flex-wrap: wrap; width: 100%; max-width: 720px; }
.plot { width: 33.333%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-top: 26px; min-height: 150px; }
.plot.p0 { order: 7; } .plot.p1 { order: 8; } .plot.p2 { order: 9; }
.plot.p3, .plot.p4, .plot.p5 { transform: scale(.92); transform-origin: 50% 100%; }
.plot.p3 { order: 4; } .plot.p4 { order: 5; } .plot.p5 { order: 6; }
.plot.p6, .plot.p7, .plot.p8 { transform: scale(.78); transform-origin: 50% 100%; opacity: .8; min-height: 124px; }
.plot.p6 { order: 1; } .plot.p7 { order: 2; } .plot.p8 { order: 3; }
/* 横屏宽景：两排天际线（后排四座缩远 + 前排五座铺开） */
@media (orientation: landscape) {
  .plots { max-width: 1100px; }
  .plot { width: 20%; padding-top: 30px; }
  .plot.p0 { order: 5; } .plot.p1 { order: 6; } .plot.p2 { order: 7; }
  .plot.p3 { order: 8; transform: none; } .plot.p4 { order: 9; transform: none; }
  .plot.p5, .plot.p6, .plot.p7, .plot.p8 {
    width: 25%; min-height: 124px; opacity: .85; transform: scale(.82); transform-origin: 50% 100%;
  }
  .plot.p5 { order: 1; } .plot.p6 { order: 2; } .plot.p7 { order: 3; } .plot.p8 { order: 4; }
}

.plaque {
  margin-top: 9px; font-size: 12px; letter-spacing: .5px; color: rgba(253,246,236,.85);
  background: rgba(253,246,236,.1); border-radius: 50px; padding: 3px 11px;
  max-width: 168px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plaque.cur { color: var(--sand-light); background: rgba(242,200,121,.16); }
.plaque.dim { color: rgba(253,246,236,.35); background: none; }

/* 塔体（九塔差异化形制，与主项目 city.wxss 同源，尺寸 = rpx × 0.75） */
.tw { display: flex; flex-direction: column; align-items: center; position: relative; }
.fl { border-radius: 4px; margin-top: 3px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.win { width: 8px; height: 11px; border-radius: 2px; background: var(--sand-light); box-shadow: 0 0 8px rgba(251,227,169,.8); }
.m-clay .fl { background: linear-gradient(180deg, var(--brick-light), var(--brick)); }
.m-copper .fl { background: linear-gradient(180deg, var(--copper-1), var(--copper-2)); }
.m-silver .fl { background: linear-gradient(180deg, var(--silver-1), var(--silver-2)); }
.m-silver .win { border-radius: 4px 4px 1px 1px; background: #EAF2FF; box-shadow: 0 0 9px rgba(190,210,255,.9); }
.m-gold .fl { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); }

.d1 .eave { width: 60px; height: 8px; border-radius: 5px; background: var(--brick-deep); }
.d1 .fl-0 { width: 39px; height: 23px; } .d1 .fl-1 { width: 51px; height: 26px; }
.d2 .gable { width: 0; height: 0; border-left: 28px solid transparent; border-right: 28px solid transparent; border-bottom: 20px solid var(--copper-3); }
.d2 .fl-0 { width: 39px; height: 21px; } .d2 .fl-1 { width: 50px; height: 24px; } .d2 .fl-2 { width: 60px; height: 27px; }
.d3 .dome { width: 39px; height: 21px; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #F0F4FC, var(--silver-2)); }
.d3 .halo { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 66px; height: 66px; border-radius: 50%; border: 2px solid rgba(190,210,255,.28); }
.d3 .fl-0 { width: 41px; height: 21px; } .d3 .fl-1 { width: 51px; height: 24px; } .d3 .fl-2 { width: 62px; height: 27px; }
.d4 .spire { width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 27px solid var(--gold-2); position: relative; }
.tstar { position: absolute; top: -39px; left: 50%; transform: translateX(-50%); font-size: 15px; line-height: 1; color: var(--sand-light); text-shadow: 0 0 12px rgba(251,227,169,.9); }
.d4 .fl-0 { width: 36px; height: 20px; } .d4 .fl-1 { width: 45px; height: 23px; } .d4 .fl-2 { width: 56px; height: 24px; } .d4 .fl-3 { width: 66px; height: 27px; }
.d5 .eave { width: 45px; height: 8px; border-radius: 5px; background: var(--brick-deep); }
.d5 .eave.mid { width: 69px; margin-top: 3px; }
.d5 .fl-0 { width: 36px; height: 20px; } .d5 .fl-1 { width: 47px; height: 23px; } .d5 .fl-2 { width: 57px; height: 24px; } .d5 .fl-3 { width: 69px; height: 27px; }
.d6 .gable { width: 0; height: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 21px solid var(--copper-3); }
.d6 .belfry { width: 45px; height: 27px; border-radius: 5px; background: linear-gradient(180deg, var(--copper-1), var(--copper-2)); margin-top: 3px; display: flex; align-items: center; justify-content: center; }
.d6 .bell { width: 14px; height: 15px; border-radius: 8px 8px 3px 3px; background: var(--patina); box-shadow: 0 0 9px rgba(143,194,169,.7); }
.d6 .fl-0 { width: 45px; height: 20px; } .d6 .fl-1 { width: 54px; height: 23px; } .d6 .fl-2 { width: 63px; height: 24px; } .d6 .fl-3 { width: 74px; height: 27px; }
.d7 .turret { position: relative; display: flex; flex-direction: column; align-items: center; }
.d7 .cap { width: 42px; height: 18px; border-radius: 21px 21px 0 0; background: linear-gradient(180deg, #F0F4FC, var(--silver-2)); }
.d7 .shaft { width: 36px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--silver-1), var(--silver-2)); display: flex; align-items: center; justify-content: center; gap: 6px; }
.d7 .shaft .win { width: 6px; height: 9px; }
.d7 .moonlet { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #F5E9C8; box-shadow: -5px 3px 0 0 var(--night-deep) inset, 0 0 14px rgba(245,233,200,.7); }
.d7 .fl-0 { width: 51px; height: 20px; } .d7 .fl-1 { width: 57px; height: 21px; } .d7 .fl-2 { width: 63px; height: 24px; } .d7 .fl-3 { width: 69px; height: 26px; } .d7 .fl-4 { width: 75px; height: 27px; }
.d8 .orb { width: 17px; height: 17px; border-radius: 50%; margin-bottom: 5px; background: radial-gradient(circle at 35% 30%, #FDEBB8, var(--gold-2)); box-shadow: 0 0 18px rgba(242,200,121,.95); }
.d8 .eave1 { width: 33px; height: 9px; border-radius: 5px; background: linear-gradient(180deg, var(--gold-1), var(--gold-3)); }
.d8 .eave2 { width: 51px; height: 9px; border-radius: 5px; background: linear-gradient(180deg, var(--gold-1), var(--gold-3)); margin-top: 3px; }
.d8 .ring { position: absolute; top: 15px; left: 50%; transform: translateX(-50%) rotateX(64deg); width: 84px; height: 84px; border-radius: 50%; border: 3px solid rgba(242,200,121,.4); }
.d8 .fl-0 { width: 42px; height: 18px; } .d8 .fl-1 { width: 50px; height: 20px; } .d8 .fl-2 { width: 59px; height: 23px; } .d8 .fl-3 { width: 68px; height: 24px; } .d8 .fl-4 { width: 77px; height: 26px; } .d8 .fl-5 { width: 87px; height: 27px; }
.d9 .apex { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 21px solid var(--gold-2); position: relative; }
.tstar.big { top: -39px; font-size: 23px; text-shadow: 0 0 15px rgba(251,227,169,1), 0 0 33px rgba(242,200,121,.6); }
.d9 .b-gold { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); }
.d9 .b-silver { background: linear-gradient(180deg, var(--silver-1), var(--silver-2)); }
.d9 .b-copper { background: linear-gradient(180deg, var(--copper-1), var(--copper-2)); }
.d9 .b-clay { background: linear-gradient(180deg, var(--brick-light), var(--brick)); }
.d9 .plinth { width: 102px; height: 11px; border-radius: 3px; margin-top: 3px; background: var(--night-deep); border: 2px solid rgba(251,227,169,.3); }
.d9 .fl-0 { width: 39px; height: 18px; } .d9 .fl-1 { width: 48px; height: 20px; } .d9 .fl-2 { width: 57px; height: 23px; } .d9 .fl-3 { width: 68px; height: 24px; } .d9 .fl-4 { width: 78px; height: 26px; } .d9 .fl-5 { width: 89px; height: 27px; }

.building { position: relative; display: flex; align-items: flex-end; }
.b-outline { width: 75px; height: 112px; border: 2px dashed rgba(242,200,121,.6); border-radius: 8px 8px 5px 5px; overflow: hidden; display: flex; align-items: flex-end; }
.b-fill { width: 100%; background: linear-gradient(180deg, var(--brick-light), var(--brick)); box-shadow: 0 0 12px rgba(217,108,71,.5); transition: height .35s ease; }
.future { position: relative; width: 82px; height: 97px; }
.f-ring { position: absolute; bottom: 0; left: 4px; width: 72px; height: 26px; border-radius: 50%; border: 2px dashed rgba(253,246,236,.25); }
.f-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(253,246,236,.4); }
.f-dot.d1 { top: 30px; left: 22px; } .f-dot.d2 { top: 50px; right: 20px; }

/* 城市底部纸卡 */
.city-panel {
  flex: none; background: var(--cream); color: #4A3527; border-radius: 24px 24px 0 0;
  margin: 24px calc(-1 * (var(--safe-r) + 32px)) calc(-1 * (var(--safe-b) + 24px)) calc(-1 * (var(--safe-l) + 32px));
  padding: 20px calc(var(--safe-r) + 32px) calc(var(--safe-b) + 18px) calc(var(--safe-l) + 32px);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.cp-main { flex: 1; min-width: 240px; }
.cp-head { font-size: 20px; font-weight: 800; color: var(--brick-deep); }
.cp-bar { margin-top: 10px; height: 9px; border-radius: 9px; background: #EFE3D2; overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--brick-light), var(--brick)); transition: width .35s ease; }
.cp-stats { display: flex; gap: 12px; }
.cp-stat { text-align: center; background: #FFF; border: 1px solid #EEDDC8; border-radius: 12px; padding: 10px 18px; min-width: 88px; }
.cp-stat b { display: block; font-size: 22px; font-weight: 800; }
.cp-stat span { font-size: 12px; color: #A08A72; }
.cp-dev { width: 100%; font-size: 14px; color: #A08A72; }
.cp-dev summary { padding: 6px 0; cursor: pointer; }
.dev-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.dev-row label { min-width: 130px; color: #4A3527; }
.dev-row input[type=range] { flex: 1; accent-color: var(--brick); }
.mini { background: #FDF1EC; border: 1px solid var(--brick); color: var(--brick-deep); border-radius: 10px; padding: 8px 16px; font-weight: 700; }
.mini:active { opacity: .7; }
.mini.wide { margin-left: auto; }

/* ===== toast ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 60px); transform: translateX(-50%) translateY(20px);
  background: rgba(35,39,68,.94); border: 1px solid rgba(253,246,236,.2); color: var(--cream);
  padding: 14px 26px; border-radius: 100px; font-size: 16px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 99;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ===== 家长视图（本周一览） ===== */
.btn-plain { display: block; width: 100%; padding: 12px; margin-top: 10px; font-size: 15px; color: rgba(253,246,236,.45); }
.btn-plain:active { color: rgba(253,246,236,.8); }
.parent-body { flex: 1; overflow-y: auto; padding-top: 20px; max-width: 900px; width: 100%; margin: 0 auto; }
.pv-week { display: flex; gap: 10px; }
.pv-day { flex: 1; background: rgba(35,39,68,.5); border: 1px solid rgba(253,246,236,.12);
  border-radius: 16px; padding: 14px 6px; text-align: center; }
.pv-day.today { border-color: var(--sand); }
.pv-dow { font-size: 13px; color: rgba(253,246,236,.5); }
.pv-date { font-size: 12px; color: rgba(253,246,236,.35); margin-top: 2px; }
.pv-mark { font-size: 26px; margin: 10px 0 6px; }
.pv-mark.done { color: var(--sand); }
.pv-mark.miss { color: rgba(253,246,236,.2); }
.pv-stars { font-size: 12px; color: rgba(253,246,236,.55); letter-spacing: 1px; min-height: 16px; }
.pv-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--sand-light); margin: 28px 0 12px; }
.pv-levels { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-lv { flex: 1; min-width: 150px; background: rgba(35,39,68,.5); border: 1px solid rgba(253,246,236,.12);
  border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; }
.pv-lv b { font-size: 17px; color: var(--sand-light); }
.pv-lv span { font-size: 14px; color: rgba(253,246,236,.6); }
.pv-note { font-size: 14px; line-height: 1.9; color: rgba(253,246,236,.6); margin-top: 22px; }
.pv-actions { display: flex; gap: 12px; margin-top: 20px; padding-bottom: 20px; }
.pv-actions .mini { background: rgba(253,246,236,.1); border: 1px solid rgba(253,246,236,.25); color: var(--cream); }

/* ===== 找不同：两块方阵并排（横屏）/ 上下（竖屏） ===== */
.sd-wrap { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sd-panel { display: grid; gap: 8px; padding: 14px; border-radius: 20px;
  background: rgba(35,39,68,.55); border: 1px solid rgba(253,246,236,.12); }
.sd-tile { border-radius: 10px; border: none; }
.sd-tile:active { transform: scale(.93); }
.sd-tile.sd-ok { outline: 4px solid var(--patina); outline-offset: 2px; }
.sd-tile.sd-no { outline: 4px solid var(--brick); outline-offset: 2px; }
@media (orientation: portrait) { .sd-wrap { flex-direction: column; gap: 20px; } }

/* ===== 听数寻宝：数字键盘 ===== */
.keypad { display: grid; grid-template-columns: repeat(5, 108px); gap: 14px; }
.keypad.listening { opacity: .35; pointer-events: none; }
.key { height: 92px; border-radius: 18px; font-size: 40px; font-weight: 800;
  background: linear-gradient(180deg, #3F4676, #333A63);
  border: 1px solid rgba(253,246,236,.14); color: var(--cream); }
.key:active, .key.tap { transform: scale(.94); background: linear-gradient(180deg, var(--brick-light), var(--brick)); }
.key.bad { background: #7A3B3B; }
@media (orientation: portrait) { .keypad { grid-template-columns: repeat(5, 92px); } .key { height: 80px; font-size: 34px; } }

/* ===== 听音寻宝：颜色形状盘 ===== */
.lb { display: grid;
  gap: 18px; justify-content: center; max-width: 700px; }
.lb-item { height: 120px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  background: rgba(35,39,68,.55); border: 2px solid rgba(253,246,236,.12); }
.lb-item:active { transform: scale(.95); }
.lb-item.lb-ok { border-color: var(--patina); background: rgba(143,194,169,.25); }
.lb-item.lb-no { border-color: var(--brick); background: rgba(201,87,58,.25); }
.fig { display: block; }
.fig-sq { width: 62px; height: 62px; border-radius: 8px; }
.fig-ci { width: 66px; height: 66px; border-radius: 50%; }
.fig-tr { width: 0; height: 0; border-left: 36px solid transparent; border-right: 36px solid transparent; border-bottom: 62px solid currentColor; }
.fig-st { width: 66px; height: 66px;
  clip-path: polygon(50% 0%, 62% 36%, 100% 38%, 70% 60%, 81% 100%, 50% 76%, 19% 100%, 30% 60%, 0% 38%, 38% 36%); }


/* ===== 开工仪式 ===== */
.ritual-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; text-align: center; }
.ritual-step { font-size: 34px; font-weight: 700; line-height: 1.7; max-width: 720px; color: var(--cream); }
.ritual-dots { display: flex; gap: 12px; }
.ritual-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(253,246,236,.25); }
.ritual-dots i.on { background: var(--sand); }
#s-ritual .btn-primary { max-width: 340px; }

/* ===== 首遇教程浮层 ===== */
.tut-mask { position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; background: rgba(20,23,44,.82); backdrop-filter: blur(6px); }
.tut-mask.on { display: flex; }
.tut-card { width: min(620px, 86vw); background: linear-gradient(180deg, #333A63, #2A2F55);
  border: 1px solid rgba(253,246,236,.18); border-radius: 28px; padding: 40px 36px 30px; text-align: center; }
.tut-name { font-size: 26px; font-weight: 800; color: var(--sand-light); letter-spacing: 2px; }
.tut-text { font-size: 21px; line-height: 1.9; margin: 20px 0 30px; color: rgba(253,246,236,.9); }

/* 找不同：答错时提示正确位置 */
.sd-tile.sd-hint { outline: 4px solid var(--sand); outline-offset: 2px; animation: hintpulse .9s ease; }
@keyframes hintpulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
