/* 体感游戏公共样式（和挥手切果果一样的摄像头、手的光标、全屏、开始面板选项） */
.nf-top, .nf-stage, .as-info { max-width: 980px; }
#field { position: relative; width: 100%; height: 520px; overflow: hidden; }
#cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(-1.25, 1.25); opacity: 0; transition: opacity .4s; pointer-events: none; }
#cam.on { opacity: .42; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.camchip { position: absolute; left: 12px; bottom: 12px; z-index: 11; font-size: 12px; font-weight: 800; color: #2b6cb0; background: rgba(255,255,255,.85); border-radius: 14px; padding: 3px 10px; pointer-events: none; }
.mt-ask { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 12; background: #fff; border: 4px solid #ffd23f; border-radius: 22px;
  padding: 4px 20px; font-weight: 900; font-size: 28px; color: #3b2a5c; white-space: nowrap; box-shadow: 0 4px 0 rgba(0,0,0,.12); pointer-events: none; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.mt-ask small { font-size: 15px; color: #8a7ab0; margin-right: 6px; }
.mt-ask.pop { animation: mtpop .35s cubic-bezier(.3,1.6,.6,1); }
@keyframes mtpop { from { transform: translateX(-50%) scale(.6); } to { transform: translateX(-50%) scale(1); } }
.mt-timer { position: absolute; right: 12px; top: 30px; z-index: 11; font-weight: 900; font-size: 18px; background: #fff; border: 3px solid #ffd23f; border-radius: 20px; padding: 0 10px; pointer-events: none; }
.mt-timer.low { color: #ff4f6d; }
.mt-target { position: absolute; left: 12px; top: 30px; z-index: 11; font-weight: 800; font-size: 14px; background: rgba(255,255,255,.9); border-radius: 20px; padding: 2px 10px; pointer-events: none; }
.hidden { display: none !important; }
.as-pick { display: grid; gap: 6px; margin: 8px 0 2px; }
.as-pick .row { display: flex; gap: 6px; flex-wrap: wrap; }
.as-pick button { flex: 1; min-width: 80px; font: inherit; font-weight: 900; font-size: 15px; border: 3px solid #e6dcff; background: #fff; color: #5a4a80; border-radius: 14px; padding: 8px 4px; cursor: pointer; line-height: 1.2; }
.as-pick button small { display: block; font-size: 11px; font-weight: 700; color: #9b8fc0; }
.as-pick button.on { border-color: #ff4f8b; background: #fff0f5; color: #ff4f8b; }
.as-pick .lab { font-size: 13px; font-weight: 800; color: #9b8fc0; text-align: left; }
.as-pick button[data-c] { font-size: 18px; padding: 12px 4px; }
.as-pick button[data-c] small { font-size: 12px; }
.as-pick button:disabled { opacity: .45; cursor: not-allowed; }
.as-safe { font-size: 12px !important; color: #2b6cb0 !important; background: #eaf6ff; border-radius: 10px; padding: 5px 8px; line-height: 1.5 !important; }
.as-bar { height: 12px; border-radius: 8px; background: #eee; overflow: hidden; margin: 10px 0 4px; }
.as-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #ffd23f); transition: width .2s; }
#mtCur { position: absolute; left: 0; top: 0; z-index: 40; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; display: none;
  border: 4px solid #fff; background: rgba(255,210,63,.45); box-shadow: 0 0 0 3px rgba(255,140,26,.7); }
#mtCur.hold { background: conic-gradient(#ff4f8b var(--p, 0%), rgba(255,210,63,.45) 0); }
.as-info { width: 100%; margin: 14px auto 0; background: #fff; border: 4px solid #ffd23f; border-radius: 22px; padding: 14px 18px 16px; color: #4d3f6f; }
.as-info h2 { font-size: 20px; color: #ff4f8b; margin-bottom: 6px; }
.as-info h3 { font-size: 16px; color: #2b6cb0; margin: 12px 0 4px; }
.as-info p, .as-info li { font-size: 15px; line-height: 1.7; }
.as-info ul { padding-left: 22px; }
.as-fs { padding: 0; }
.as-fs svg { width: 20px; height: 20px; display: block; }
html.as-full { overflow: hidden; height: 100%; overscroll-behavior: none; }
body.as-full { padding: 6px 8px 0; height: 100vh; height: 100dvh; overflow: hidden; }
body.as-full .nf-top { max-width: none; margin-bottom: 6px; }
body.as-full .nf-stage { max-width: none; border-width: 0; border-radius: 16px; }
body.as-full .nf-tip, body.as-full .as-info, body.as-full .nfp-back { display: none !important; }
@media (max-width: 440px) { .nf-top .lv { display: none; } }
@media (max-width: 520px) { .mt-ask { font-size: 21px; padding: 3px 12px; } .mt-target { font-size: 12px; } }
.shake { animation: mtshake .35s; }
@keyframes mtshake { 20% { transform: translate(-7px, 3px); } 40% { transform: translate(7px, -3px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(4px, 0); } }
/* 选角色 */
.mt-pets .row { flex-wrap: wrap; justify-content: center; gap: 4px; padding-bottom: 2px; }
.mt-pets button { flex: 0 0 auto; min-width: 0; width: 18%; max-width: 56px; height: 56px; padding: 2px; border-width: 3px; }
.mt-pets button img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; }
/* 开始面板紧凑排版：不用往下拉就能看到「开始闯关」和「排行榜」 */
.nf-stage .nf-panel { padding: 10px; }
.nf-stage .nf-card { width: min(600px, 100%); padding: 12px 18px 12px; }
.nf-stage .nf-card .big-emoji { font-size: 36px; line-height: 1; }
.nf-stage .nf-card h2 { font-size: 22px; margin: 2px 0 2px; }
.nf-stage .nf-card p { font-size: 14px; line-height: 1.45; margin: 4px 0; }
.nf-stage .nf-card input { padding: 7px 10px; font-size: 17px; margin: 6px 0 0; }
.nf-stage .nf-btns { margin-top: 8px; }
.nf-stage .nf-btn { padding: 9px 24px; }
.nf-stage .as-pick { margin: 4px 0 0; gap: 4px; }
.nf-stage .as-pick button[data-c] { padding: 7px 4px; font-size: 17px; }
.nf-stage .as-safe { padding: 3px 8px; margin: 4px 0 !important; }
.nf-stage .mt-pets .row { flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
.nf-stage .mt-pets .row::-webkit-scrollbar { display: none; }
.nf-stage .mt-pets button { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; }
@media (max-width: 520px) {
  .nf-stage .nf-panel { padding: 6px; }
  .nf-stage .nf-card { padding: 10px 12px; border-width: 3px; }
  .nf-stage .nf-card .big-emoji { display: none; }
  .nf-stage .nf-card h2 { font-size: 20px; }
  .nf-stage .nf-card p { font-size: 13px; }
  .nf-stage .as-pick .lab { font-size: 12px; }
  .nf-stage .as-pick button { font-size: 14px; padding: 5px 4px; border-width: 2px; }
  .nf-stage .as-pick button[data-c] { font-size: 15px; padding: 5px 4px; }
  .nf-stage .mt-pets button { width: 42px; height: 42px; flex-basis: 42px; padding: 1px; border-width: 2px; }
  .nf-stage .nf-btn { font-size: 18px; padding: 8px 20px; }
  .nf-stage .nf-btn.sec { font-size: 15px; }
}
/* 开始提示：认识完孩子 → 怎么玩 + 倒数 */
.mt-ready { position: absolute; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; padding: 12px; pointer-events: none; }
.mt-rcard { background: rgba(255,255,255,.96); border: 5px solid #22c55e; border-radius: 24px; padding: 16px 26px 12px; max-width: min(540px, 94%); text-align: center;
  color: #3b2a5c; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: nf-pop .35s cubic-bezier(.3,1.6,.6,1); }
.mt-rcard b { display: block; font-size: 32px; font-weight: 900; color: #16a34a; margin-bottom: 6px; }
.mt-rcard p { font-size: 20px; font-weight: 800; line-height: 1.45; margin: 4px 0; }
.mt-rcard i { display: block; font-style: normal; font-size: 42px; font-weight: 900; color: #ff4f8b; margin-top: 4px; }
.mt-rcard.wait { border-color: #ffd23f; font-size: 22px; font-weight: 900; line-height: 1.5; }
.mt-rcard.wait small { font-size: 16px; color: #8a7ab0; }
@media (max-width: 520px) { .mt-rcard { padding: 10px 14px 8px; } .mt-rcard b { font-size: 24px; } .mt-rcard p { font-size: 15px; } .mt-rcard i { font-size: 32px; } .mt-rcard.wait { font-size: 17px; } }
