:root { --ink:#23314d; --muted:#6b7a93; --green:#43b047; --greenD:#2e7d32; --orange:#ff9800; --orangeD:#e65100; --blue:#2196f3; --blueD:#1565c0; --red:#e53935; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #8fd16a; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; color: var(--ink); }
button { font-family: inherit; cursor: pointer; border: 0; color: inherit; touch-action: manipulation; }
.emo { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.hide { display: none !important; }

/* ---------- 选关页 ---------- */
#home { position: fixed; inset: 0; overflow-y: auto; touch-action: pan-y; background: linear-gradient(#bfe8ff 0, #dff4ff 40%, #9fdc7c 40%, #7cc95a 100%); padding: 18px 16px 30px; }
.title { text-align: center; margin: 6px 0 14px; }
.title h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 900; letter-spacing: 4px; color: #fff; text-shadow: 0 4px 0 var(--greenD), 0 8px 18px rgba(0,0,0,.18); -webkit-text-stroke: 2px var(--greenD); }
.title p { font-size: clamp(15px, 2.2vw, 19px); color: #2a5d86; font-weight: 700; margin-top: 4px; }
.speed { display: flex; justify-content: center; gap: 10px; margin: 0 auto 16px; flex-wrap: wrap; }
.speed button { background: #fff; border-radius: 999px; padding: 8px 20px; font-size: 17px; font-weight: 800; box-shadow: 0 3px 0 #c9d6e6; }
.speed button.on { background: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orangeD); }
.levels { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lv { background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 6px 0 rgba(0,0,0,.08), 0 10px 22px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 10px; }
.lv .top { display: flex; gap: 12px; align-items: center; }
.lv .no { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--green); color: #fff; font-size: 20px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.lv .no.all { background: var(--orange); font-size: 26px; }
.lv .nm { flex: 1; font-weight: 800; font-size: 17px; line-height: 1.25; }
.lv .nm small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.lv .stars { font-size: 22px; letter-spacing: 2px; white-space: nowrap; }
.lv .pics { font-size: 22px; letter-spacing: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv .btns { display: flex; gap: 8px; }
.lv .btns button { flex: 1; border-radius: 14px; padding: 10px 0; font-size: 17px; font-weight: 800; }
.b-learn { background: #e8f2ff; color: var(--blueD); box-shadow: 0 3px 0 #bcd5f5; }
.b-play { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--greenD); }
.foot { text-align: center; color: #1f4d22; font-size: 14px; margin-top: 16px; line-height: 1.8; font-weight: 700; }
/* 单元选择页 */
body.single #home {
  display: flex; flex-direction: column; align-items: center;
  padding: 72px 16px 40px;
  background: radial-gradient(ellipse at 18% 110%, #a6d88c 0 35%, transparent 35.3%),
              radial-gradient(ellipse at 92% 115%, #c2e5a3 0 48%, transparent 48.3%),
              linear-gradient(#d9f1ff, #eff9f4);
}
body.single .speed {
  flex: none; flex-wrap: nowrap; margin: auto 0 14px; gap: 3px; padding: 4px;
  background: #ffffffdf; border-radius: 24px; box-shadow: 0 2px 10px #285a3512;
}
body.single .speed button { padding: 8px clamp(9px, 3vw, 18px); font-size: 16px; white-space: nowrap; box-shadow: none; background: transparent; }
body.single .speed button.on { background: #ffdf97; color: #613900; }
body.single .levels { flex: none; width: min(100%, 560px); max-width: none; grid-template-columns: minmax(0, 1fr); margin: 0 0 auto; }
body.single .lv { padding: clamp(16px, 3vw, 26px); gap: 18px; border-radius: 26px; box-shadow: 0 4px 0 #92bb882f, 0 14px 40px #2d5c5421; }
body.single .lv .no { width: 50px; height: 50px; font-size: 24px; border-radius: 15px; }
body.single .lv .nm { min-width: 0; font-size: clamp(18px, 3vw, 23px); overflow-wrap: anywhere; }
body.single .lv .nm small { margin-top: 4px; font-size: 14px; line-height: 1.4; }
body.single .lv .stars { font-size: 19px; letter-spacing: 0; }
body.single .lv .pics { white-space: normal; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 4px; font-size: clamp(28px, 6.5vw, 38px); letter-spacing: 0; background: #faf7ed; border-radius: 16px; padding: 14px 8px; }
body.single .lv .pics > * { justify-self: center; }
body.single .lv .btns { gap: 10px; }
body.single .lv .btns button { padding: 13px 4px; font-size: clamp(16px, 2.5vw, 19px); border-radius: 14px; }
@media (max-width: 480px) {
  body.single .lv .top { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 10px; }
  body.single .lv .no { grid-row: span 2; }
  body.single .lv .stars { grid-column: 2; font-size: 15px; }
}
#switch { position: absolute; left: 12px; top: 12px; z-index: 2; }
#switch a { display: inline-block; padding: 9px 16px; border-radius: 14px; text-decoration: none; color: #23314d; font-weight: 800; font-size: 15px; }
@media (max-width: 640px) { body.single .title { padding-top: 40px; } }
/* 单词图（SVG，同一套画风） */
.art { display: block; width: 1.2em; height: 1.2em; overflow: hidden; }
.tile .p .art { width: 1.15em; height: 1.15em; }
.tile .tag { font-size: 11px; color: #fff; background: #90a4ae; border-radius: 999px; padding: 0 7px; font-weight: 700; }
/* 认读页：uncle / aunt / cousin 用大图家谱 + 图例 */
.kin { margin-top: 16px; padding: 12px 10px 10px; background: #fffbea; border-radius: 18px; box-shadow: 0 3px 0 #f1e3b0; }
.kin h3 { font-size: 18px; font-weight: 900; }
.kin .legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; margin: 6px 0 10px; font-size: 15px; font-weight: 800; color: #5d4a1a; }
.kin .legend span { display: inline-flex; align-items: center; gap: 5px; }
.kin .legend svg { width: 24px; height: 24px; flex: none; }
.kin .tiles { grid-template-columns: repeat(3, 1fr); }
.kin .tile { background: #fff; box-shadow: 0 3px 0 #f1e3b0; }
.kin .tile .p { font-size: clamp(60px, 18vw, 110px); height: auto; }

/* ---------- 游戏 ---------- */
#game { position: fixed; inset: 0; display: flex; flex-direction: column; }
#bar { flex: none; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: #5a3d22; z-index: 6; min-width: 0; }
.bbtn { flex: none; height: 40px; min-width: 40px; border-radius: 12px; background: #fff; font-size: 19px; font-weight: 900; box-shadow: 0 3px 0 rgba(0,0,0,.3); padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
#shovel { font-size: 16px; }
#shovel svg { width: 22px; height: 22px; flex: none; }
#shovel.on { background: #ffcc80; box-shadow: 0 0 0 3px #ff9800; }
#wave { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 900; font-size: 18px; white-space: nowrap; overflow: hidden; }
#wave .dots { display: inline-flex; gap: 6px; flex: none; }
#wave .dots b { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.25); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
#wave .dots b.done { background: #ffe14d; box-shadow: none; }
#wave .dots b.cur { background: #ffe14d; box-shadow: 0 0 0 3px rgba(255,225,77,.45); animation: curdot 1s ease-in-out infinite alternate; }
@keyframes curdot { to { box-shadow: 0 0 0 5px rgba(255,225,77,.15); } }
#wave .prog { flex: 0 1 260px; min-width: 40px; height: 12px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
#wave .prog i { display: block; height: 100%; background: #ffe14d; width: 0; transition: width .3s; }
#wave .cars { flex: none; }
@media (max-width: 600px) {
  #bar { gap: 6px; padding: 0 6px; }
  .bbtn { min-width: 38px; padding: 0 8px; }
  #shovel .t, #wave .wt, #wave .prog { display: none; }
  #wave { font-size: 16px; gap: 8px; }
}

/* 传送带：浅色皮带 + 上下滚轮 */
#belt { position: relative; flex: none; height: clamp(86px, 16vh, 126px); overflow: hidden; z-index: 5; perspective: 600px;
  background: linear-gradient(rgba(60,50,30,.16), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(60,50,30,.2)), repeating-linear-gradient(90deg, #ece5d2 0 46px, #ddd3bb 46px 48px);
  background-size: 100% 100%, 48px 100%; animation: beltmove 1.9s linear infinite; }
@keyframes beltmove { from { background-position: 0 0, 0 0; } to { background-position: 0 0, -48px 0; } }
#belt::before, #belt::after { content: ""; position: absolute; left: 0; right: 0; height: 11px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #eceff1 0 2px, #90a4ae 2.5px 4px, #546e7a 4.5px 5px, rgba(0,0,0,0) 5.5px) 0 0 / 20px 11px repeat-x, linear-gradient(#78909c, #546e7a); }
#belt::before { top: 0; box-shadow: 0 2px 3px rgba(0,0,0,.25); }
#belt::after { bottom: 0; box-shadow: 0 -2px 3px rgba(0,0,0,.2); }
#game.paused #belt { animation-play-state: paused; }
.card { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%) rotateX(16deg); transform-origin: 50% 100%; background: linear-gradient(#fffefa, #f3ead3); border-radius: 14px; box-shadow: 0 5px 0 #c4b18a, 0 8px 10px rgba(60,40,10,.3); display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; transition: box-shadow .2s; }
.card.hint { animation: hintcard .45s ease-in-out infinite alternate; box-shadow: 0 0 0 5px #ff5722, 0 0 18px 6px rgba(255,152,0,.8), 0 5px 0 #c4b18a; z-index: 2; }
@keyframes hintcard { to { scale: 1.08; } }
/* 卡片贴着传送带左右边缘时，光圈改成内阴影，不往外扩（传送带 overflow: hidden 会裁掉） */
.card.hint.edge { animation: none; box-shadow: inset 0 0 0 5px #ff5722, inset 0 0 14px 6px rgba(255,152,0,.75), 0 5px 0 #c4b18a; }
.card .p { line-height: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.card .sp { position: absolute; right: 5%; bottom: 5%; width: 22%; height: 18%; border-radius: 50%; background: #5cc23c; pointer-events: none; }
.card .sp::after { content: ""; position: absolute; right: -30%; top: 22%; width: 40%; height: 56%; border-radius: 2px 5px 5px 2px; background: #3a8f26; }
.card.sel { box-shadow: 0 0 0 4px #ffeb3b, 0 4px 0 #b9a47a, 0 6px 14px rgba(0,0,0,.4); transform: translateY(-56%); z-index: 3; }
.card.drag { opacity: .35; }
.card.dying { animation: dying .35s ease-in-out infinite alternate; }
@keyframes dying { to { opacity: .35; } }
.card.vanish { transition: opacity .3s, transform .3s; opacity: 0; transform: translateY(-50%) scale(.4); }
#ghost { position: fixed; z-index: 50; pointer-events: none; transform: translate(-50%, -60%); }

#field { position: relative; flex: 1; overflow: hidden; background: #7cc95a; }
.lane { position: absolute; left: 0; right: 0; }
.lane:nth-child(odd) { background: #86d163; }
.lane:nth-child(even) { background: #77c456; }
.house { position: absolute; left: 0; top: 0; bottom: 0; width: 3%; background: repeating-linear-gradient(0deg, #b0855a 0 14px, #9b7149 14px 16px); z-index: 1; }
/* 整行土壤 + 细沟：.soil 是一整条，.cell 之间只留很窄的缝 */
.soil { position: absolute; top: 10%; bottom: 10%; border-radius: 8px; background: #573a22; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 2px 0 rgba(0,0,0,.08); }
.cell { position: absolute; top: 12%; bottom: 12%; border-radius: 4px; background: linear-gradient(#8a6141, #74502f); box-shadow: inset 0 2px 0 rgba(255,255,255,.1); }
.cell:nth-child(odd) { background: linear-gradient(#835b3c, #6e4b2c); }
.cell.hl { box-shadow: 0 0 0 4px #ffeb3b, inset 0 0 20px rgba(255,235,59,.5); z-index: 1; }
body.planting .cell { box-shadow: inset 0 0 0 2px rgba(255,235,59,.55), inset 0 2px 0 rgba(255,255,255,.1); }

/* 小车 */
.cart { position: absolute; z-index: 4; transform: translate(-50%, -50%); width: 1em; height: .8em; transition: top .4s; }
.cart .bx { position: absolute; inset: 0 -6%; background: url("patrol-car.svg") center / contain no-repeat; }
.cart .wh { position: absolute; bottom: 7%; width: .275em; height: .275em; border-radius: 50%; border: .04em solid #30383a; background: radial-gradient(circle, #efb148 0 14%, transparent 16%), repeating-conic-gradient(#869899 0 30deg,#e4ece7 30deg 65deg,#536567 65deg 90deg); box-shadow: inset 0 0 0 .025em #566064; }
.cart .wh.a { left: 10%; } .cart .wh.b { right: 8%; }
.cart.go .wh { animation: spin .3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cart.ready { animation: idle 2s ease-in-out infinite; }
@keyframes idle { 50% { transform: translate(-50%, -54%); } }

/* 射手 */
.tur { position: absolute; z-index: 2; transform: translate(-50%, -40%); width: 1em; height: 1.2em; --bs: .45em; }
.tur .hd { position: absolute; left: 0; top: 0; width: .8em; height: .72em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b9f6a0, #5cc23c 55%, #3a8f26); box-shadow: 0 .04em 0 #2c6e1c; z-index: 2; }
.tur .hd::before { content: ""; position: absolute; left: 44%; top: 26%; width: .14em; height: .17em; background: #1d3a12; border-radius: 50%; }
.tur .hd::after { content: ""; position: absolute; right: -.26em; top: 22%; width: .34em; height: .32em; border-radius: .06em .18em .18em .06em; background: linear-gradient(#6ad24a, #3a8f26); box-shadow: inset -.06em 0 0 #2c6e1c; }
.tur .st { position: absolute; left: .34em; top: .62em; width: .1em; height: .45em; background: #3a8f26; border-radius: .05em; }
.tur .lf { position: absolute; top: .86em; width: .36em; height: .18em; background: #4caf35; border-radius: 0 100% 0 100%; }
.tur .lf.a { left: .02em; transform: rotate(-12deg); } .tur .lf.b { left: .4em; transform: scaleX(-1) rotate(-12deg); }
/* 射手头顶的单词牌：大小由 --bs 控制（layout() 按格子宽和行高算），窄屏也尽量看得清 */
.tur .badge { position: absolute; left: calc(.4em - var(--bs) / 2); top: calc(0px - var(--bs)); width: var(--bs); height: var(--bs); background: #fff; border-radius: calc(var(--bs) * .2); border: max(2px, calc(var(--bs) * .05)) solid #3a8f26; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 3; box-shadow: 0 .03em .05em rgba(0,0,0,.25); }
.tur .badge .art { width: 92%; height: 92%; }
.tur .badge .emo { font-size: calc(var(--bs) * .7); }
.tur.proven .badge { border-color: #ffb300; box-shadow: 0 0 0 max(2px, calc(var(--bs) * .04)) #ffe082, 0 .03em .05em rgba(0,0,0,.25); }
.tur.fire .hd { animation: recoil .22s; }
@keyframes recoil { 40% { transform: translateX(-.1em) scale(1.08, .92); } }
.tur.new { animation: plant .35s; }
@keyframes plant { from { transform: translate(-50%, -40%) scale(.2); } 70% { transform: translate(-50%, -40%) scale(1.05); } }
.tur.chewed { animation: chew .25s infinite alternate; }
@keyframes chew { to { filter: brightness(.8); transform: translate(-50%, -40%) scale(.94, 1.04); } }
body.shoveling .tur { cursor: pointer; outline: 3px dashed #ff9800; outline-offset: 4px; border-radius: 8px; }

/* 僵尸 */
.mon { position: absolute; z-index: 3; transform: translate(-50%, -54%); pointer-events: none; }
.mon .sign { transform-origin: center top; position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: .06em .28em .1em; background: #fffbe9; border-radius: .18em; border: .06em solid #5b4630; box-shadow: 0 .05em 0 rgba(0,0,0,.25); white-space: nowrap; font-weight: 900; color: #2b2116; z-index: 4; line-height: 1.05; font-family: "Comic Sans MS", "Segoe UI", Arial, sans-serif; transition: background .15s, border-color .15s; }
.mon.hintme .sign { background: #ffe082; border-color: #ff6d00; box-shadow: 0 0 0 .08em #ff9800; }
.mon.okhit .sign { background: #c8f7b0; border-color: #2e9d1a; animation: okhit .45s; }
@keyframes okhit { 30% { transform: translateX(-50%) scale(1.25); } }
.mon.badhit .sign { border-color: #e53935; animation: badhit .3s; }
@keyframes badhit { 25%, 75% { transform: translateX(-56%); } 50% { transform: translateX(-44%); } }
.mon .zb { position: absolute; left: 22%; right: 22%; top: 30%; bottom: 0; animation: shamble .9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes shamble { from { transform: rotate(-5deg); } to { transform: rotate(4deg) translateY(-2%); } }
.mon .head { position: absolute; left: 12%; width: 76%; top: 0; height: 40%; border-radius: 46% 50% 42% 44%; background: var(--sk); box-shadow: inset -.06em -.05em 0 rgba(0,0,0,.15); z-index: 2; }
.mon .head .e { position: absolute; top: 34%; width: 24%; height: 30%; background: #fff; border-radius: 50%; }
.mon .head .e::after { content: ""; position: absolute; left: 20%; top: 30%; width: 46%; height: 46%; background: #222; border-radius: 50%; }
.mon .head .e.l { left: 14%; } .mon .head .e.r { left: 50%; width: 30%; height: 36%; top: 30%; }
.mon .head .m { position: absolute; left: 24%; bottom: 14%; width: 48%; height: 14%; background: #4a2020; border-radius: 3px; }
.mon .head .m::after { content: ""; position: absolute; left: 25%; top: 0; width: 16%; height: 50%; background: #fff; }
.mon .head .hair { position: absolute; left: 30%; top: -10%; width: 40%; height: 18%; border-top: .04em solid #3d4a2a; border-radius: 50% 50% 0 0; }
.mon .body { position: absolute; left: 18%; width: 64%; top: 36%; height: 40%; background: var(--cl); border-radius: 18% 18% 10% 10%; }
.mon .body::after { content: ""; position: absolute; left: 44%; top: 0; width: 12%; height: 50%; background: #c62828; clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }
.mon .arm { position: absolute; left: -22%; top: 42%; width: 46%; height: 9%; background: var(--sk); border-radius: 999px; z-index: 3; animation: reach .9s ease-in-out infinite alternate; transform-origin: 100% 50%; }
.mon .arm.b { top: 52%; animation-delay: .45s; filter: brightness(.88); z-index: 1; }
@keyframes reach { to { transform: rotate(8deg); } }
.mon .leg { position: absolute; bottom: 0; width: 20%; height: 26%; background: #4e5b6e; border-radius: 10% 10% 30% 30%; animation: walk .9s ease-in-out infinite alternate; transform-origin: 50% 0; }
.mon .leg.l { left: 26%; } .mon .leg.r { left: 54%; animation-direction: alternate-reverse; }
@keyframes walk { from { transform: rotate(12deg); } to { transform: rotate(-12deg); } }
.mon.rage .head { background: #e57373; }
.mon.rage .zb { animation-duration: .35s; }
.mon.rage .leg { animation-duration: .3s; }
.tur.wilt { transition: transform .8s, filter .8s, opacity .8s; filter: sepia(1) saturate(2) hue-rotate(-20deg) brightness(.8); transform: translate(-50%, -24%) rotate(-70deg) scale(.7); opacity: 0; }
.mon.stun .zb, .mon.stun .arm, .mon.stun .leg, .mon.eating .leg { animation-play-state: paused; }
.mon.stun .head .e::after { animation: dizzy .3s linear infinite; }
@keyframes dizzy { 50% { transform: translate(40%, 20%); } }
.mon.eating .head { animation: chomp .2s infinite alternate; }
@keyframes chomp { to { transform: scale(1.1, .85); } }
.mon .hp { position: absolute; left: 22%; right: 22%; bottom: -6%; height: 6%; background: rgba(0,0,0,.3); border-radius: 999px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.mon .hp i { display: block; height: 100%; background: #ff5252; width: 100%; transition: width .2s; }
.mon.hurt .hp { opacity: 1; }
.mon.die { transition: transform .5s, opacity .5s; transform: translate(-30%, -40%) rotate(85deg) scale(.7); opacity: 0; }
.mon.squash { transition: transform .3s, opacity .4s; transform: translate(-50%, -20%) scale(1.3, .1); opacity: 0; }

.pea { position: absolute; z-index: 4; transform: translate(-50%, -50%); width: .4em; height: .4em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d6ffb8, #57c234 60%, #2f7d1c); box-shadow: 0 .03em .06em rgba(0,0,0,.3); pointer-events: none; }
.fx { position: absolute; z-index: 6; transform: translate(-50%, -50%); pointer-events: none; line-height: 1; font-weight: 900; white-space: nowrap; }
.fx.ok { color: #fff; text-shadow: 0 2px 0 #1e7d14, 0 0 8px #7cff5a; animation: burst .6s forwards; }
.fx.ring { border: .08em solid #8cff5c; border-radius: 50%; width: 1em; height: 1em; animation: ring .4s forwards; }
@keyframes ring { from { transform: translate(-50%, -50%) scale(.3); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
.fx.bad { color: #fff; text-shadow: 0 2px 0 #b71c1c; animation: fizz .5s forwards; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; } 40% { transform: translate(-50%, -80%) scale(1.3); } 100% { transform: translate(-50%, -150%) scale(1); opacity: 0; } }
@keyframes fizz { 0% { opacity: 1; } 100% { transform: translate(-50%, -110%) scale(.7); opacity: 0; } }
.fx.word { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.4); animation: fizz 1.1s forwards; }
#banner { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.5); z-index: 8; width: max-content; max-width: 92%; text-align: center; line-height: 1.15; font-size: clamp(26px, min(9vh, 11vw), 70px); font-weight: 900; color: #fff; -webkit-text-stroke: 2px var(--orangeD); text-shadow: 0 5px 0 var(--orangeD); white-space: normal; opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }
#banner.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 颜色、数字图（与单词拔河一致） */
.paint { display: inline-block; width: 1.25em; height: 1.05em; border-radius: 52% 48% 55% 45% / 55% 50% 50% 45%; background: var(--c); box-shadow: inset -.08em -.1em 0 rgba(0,0,0,.15), inset .08em .08em 0 rgba(255,255,255,.35), 0 0 0 .04em rgba(0,0,0,.25); }
.num { display: inline-flex; flex-direction: column; align-items: center; gap: .08em; line-height: 1; font-size: .62em; }
.num b { font-size: 1em; font-weight: 900; color: var(--ink); }
.num i { display: flex; flex-wrap: wrap; justify-content: center; width: 1.45em; gap: .06em; font-style: normal; }
.num i s { width: .24em; height: .24em; border-radius: 50%; background: var(--orange); text-decoration: none; }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(20,40,20,.5); display: flex; align-items: center; justify-content: center; z-index: 30; padding: 16px; }
.box { background: #fff; border-radius: 26px; padding: 22px 22px 18px; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; touch-action: pan-y; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.box h2 { font-size: 30px; font-weight: 900; }
.box .sub { color: var(--muted); font-size: 16px; margin: 6px 0 14px; font-weight: 600; }
.box .big { font-size: 64px; letter-spacing: 6px; }
.box .row { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.box .row button { border-radius: 16px; padding: 12px 22px; font-size: 18px; font-weight: 800; }
.b-main { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--greenD); }
.b-sub { background: #eef2f7; box-shadow: 0 4px 0 #cfd8e3; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tile { background: #f4f8ff; border-radius: 16px; padding: 10px 4px 8px; box-shadow: 0 3px 0 #d5e2f3; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tile .p { font-size: 44px; line-height: 1.1; height: 50px; display: flex; align-items: center; }
.tile b { font-size: 17px; }
.tile small { color: var(--muted); font-size: 12px; }
.tile:active { transform: scale(.95); }
.mon.armored .head::before { content: ""; position: absolute; z-index: 2; left: -6%; right: -6%; top: -6%; height: 36%; background: linear-gradient(115deg,#a3b5bd,#536978 70%); border: .025em solid #394953; border-bottom-width: .045em; border-radius: 60% 65% 18% 16%; }
