/* 麻邻学园 · design tokens(与麻邻国 theme 同源) */
@font-face { font-family: 'KuaiLe'; src: url('/assets/fonts/ZCOOLKuaiLe-Regular.ttf') format('truetype'); font-display: swap; }
:root {
  --bg: #F7F7F7; --card: #FFFFFF; --line: #E5E5E5; --line-strong: #D7D7D7;
  --green: #58CC02; --green-dark: #46A302; --green-light: #D7FFB8; --green-text: #58A700;
  --gold: #FFC800; --gold-dark: #E5A600; --gold-light: #FFF3C4;
  --blue: #1CB0F6; --blue-dark: #1899D6; --blue-light: #DDF4FF;
  --red: #FF4B4B; --red-dark: #EA2B2B; --red-light: #FFDFE0;
  --orange: #FF9600; --orange-dark: #E08600; --orange-light: #FFE9C7;
  --purple: #CE82FF; --purple-dark: #A560E8; --purple-light: #F3E4FF;
  --text: #3C3C3C; --text-2: #777777; --text-3: #AFAFAF;
  --radius: 16px; --radius-sm: 12px; --radius-lg: 24px;
  --font-display: 'KuaiLe', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  --shadow-card: 0 2px 0 var(--line);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
body { min-height: 100dvh; }
button { font-family: inherit; }
input { font-family: inherit; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; background: var(--bg); }
@media (min-width: 560px) { #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.screen { padding: 16px 16px calc(84px + var(--safe-b)); min-height: 100dvh; }
.screen.no-nav { padding-bottom: 24px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: .5px; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
.muted { color: var(--text-2); } .small { font-size: 13px; } .tiny { font-size: 12px; color: var(--text-3); }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; } .center { text-align: center; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb8 { margin-bottom: 8px; }
.hidden { display: none !important; }

/* 卡片 */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-card); }
.card.tight { padding: 12px; }
.card.accent-green { border-color: var(--green); background: linear-gradient(180deg, #F3FFE8, #fff); }
.card.accent-gold { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-light), #fff); }
.card.accent-blue { border-color: var(--blue); background: linear-gradient(180deg, var(--blue-light), #fff); }

/* 3D 按压按钮(Duo3DButton 同款:底 4px 实色阴影,按下位移 4px) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 18px; border-radius: var(--radius); border: 0; font-size: 17px; font-weight: 800; letter-spacing: 1px; color: #fff; background: var(--green); box-shadow: 0 4px 0 var(--green-dark); cursor: pointer; user-select: none; transition: transform .06s ease, box-shadow .06s ease, filter .15s; position: relative; top: 0; }
.btn:active, .btn.pressed { transform: translateY(4px); box-shadow: 0 0 0 var(--green-dark); }
.btn:disabled { background: #E5E5E5; box-shadow: 0 4px 0 #CFCFCF; color: #AFAFAF; cursor: not-allowed; }
.btn.blue { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); } .btn.blue:active { box-shadow: none; }
.btn.gold { background: var(--gold); box-shadow: 0 4px 0 var(--gold-dark); color: #5b4300; } .btn.gold:active { box-shadow: none; }
.btn.red { background: var(--red); box-shadow: 0 4px 0 var(--red-dark); } .btn.red:active { box-shadow: none; }
.btn.orange { background: var(--orange); box-shadow: 0 4px 0 var(--orange-dark); } .btn.orange:active { box-shadow: none; }
.btn.purple { background: var(--purple); box-shadow: 0 4px 0 var(--purple-dark); } .btn.purple:active { box-shadow: none; }
.btn.ghost { background: #fff; color: var(--blue); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); } .btn.ghost:active { box-shadow: none; }
.btn.sm { padding: 10px 14px; font-size: 14px; border-radius: 12px; width: auto; }
.btn.xs { padding: 6px 10px; font-size: 12px; border-radius: 10px; width: auto; box-shadow: 0 3px 0 var(--green-dark); }
.btn.xs.ghost { box-shadow: 0 3px 0 var(--line); }
.btn.bounce { animation: overshoot .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes overshoot { 0% { transform: translateY(4px) } 60% { transform: translateY(-2px) } 100% { transform: translateY(0) } }

/* 选项按钮(答题) */
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: var(--radius); font-size: 17px; font-weight: 700; color: var(--text); cursor: pointer; transition: transform .06s, border-color .12s, background .12s; }
.opt:active { transform: translateY(2px); border-bottom-width: 2px; }
.opt .k { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-2); flex: none; }
.opt.selected { border-color: var(--blue); background: var(--blue-light); color: var(--blue-dark); } .opt.selected .k { border-color: var(--blue); color: var(--blue-dark); }
.opt.correct { border-color: var(--green); background: var(--green-light); color: var(--green-text); }
.opt.wrong { border-color: var(--red); background: var(--red-light); color: var(--red-dark); }
.opt:disabled { cursor: default; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.opts.grid2 .opt { justify-content: center; text-align: center; font-size: 22px; padding: 18px 10px; }
.opts.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.opts.grid3 .opt { justify-content: center; font-family: var(--font-display); font-size: 30px; padding: 16px 6px; }

/* 输入框 */
.input { width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); font-size: 20px; font-weight: 700; background: #fff; color: var(--text); outline: none; }
.input:focus { border-color: var(--blue); }
.input.correct { border-color: var(--green); background: var(--green-light); } .input.wrong { border-color: var(--red); background: var(--red-light); }

/* 排序题 */
.tokens { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 8px; border: 2px dashed var(--line); border-radius: var(--radius); }
.tokens.target { border-style: solid; background: #fff; }
.token { padding: 8px 12px; border-radius: 12px; background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; font-weight: 700; font-size: 16px; cursor: pointer; }
.token:active { transform: translateY(2px); border-bottom-width: 2px; }
.token.used { visibility: hidden; }

/* 顶部状态条 */
.statbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.stat { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 15px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 2px solid var(--line); }
.stat.energy { color: var(--blue-dark); } .stat.coins { color: #B58500; } .stat.streak { color: var(--orange-dark); }
.stat.dim { opacity: .5; }

/* 进度条 */
.bar { height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; position: relative; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s cubic-bezier(.22,1,.36,1); position: relative; }
.bar > i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.35); }
.bar.gold > i { background: var(--gold); } .bar.blue > i { background: var(--blue); } .bar.purple > i { background: var(--purple); }

/* 麻宝 */
.mascot { width: 96px; height: 96px; object-fit: contain; flex: none; mix-blend-mode: multiply; border-radius: 18px; }
.mascot.lg { width: 140px; height: 140px; } .mascot.sm { width: 56px; height: 56px; } .mascot.xs { width: 36px; height: 36px; }
.bubble { position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.bubble::before { content: ''; position: absolute; left: -10px; top: 20px; width: 16px; height: 16px; background: #fff; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); }
.bubble.right::before { left: auto; right: -10px; transform: rotate(-135deg); }

/* 底部导航 */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; pointer-events: none; }
.nav > div { pointer-events: auto; width: 100%; max-width: 480px; display: flex; background: #fff; border-top: 2px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.nav button { flex: 1; background: none; border: 0; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--text-3); border-radius: 12px; cursor: pointer; }
.nav button .ic { font-size: 22px; line-height: 1; }
.nav button.active { color: var(--green-text); background: var(--green-light); }

/* 课程地图 */
.unit { margin: 18px 0 8px; }
.unit-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); color: #fff; background: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.unit-head .n { font-family: var(--font-display); font-size: 22px; opacity: .9; }
.unit-head .t { font-weight: 800; font-size: 16px; }
.unit-head .sub { font-size: 12px; opacity: .85; }
.path { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 6px; }
.node-row { display: flex; }
.node-row.r1 { justify-content: center; } .node-row.r2 { justify-content: flex-end; padding-right: 22%; } .node-row.r3 { justify-content: center; } .node-row.r4 { justify-content: flex-start; padding-left: 22%; }
.node { width: 78px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; }
.node .disc { width: 66px; height: 66px; border-radius: 50%; background: var(--green); box-shadow: 0 6px 0 var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; transition: transform .08s; position: relative; }
.node:active .disc { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-dark); }
.node.locked .disc { background: #E5E5E5; box-shadow: 0 6px 0 #CFCFCF; color: #AFAFAF; }
.node.done .disc { background: var(--gold); box-shadow: 0 6px 0 var(--gold-dark); }
.node.review .disc { background: var(--purple); box-shadow: 0 6px 0 var(--purple-dark); }
.node .stars { font-size: 11px; letter-spacing: -1px; height: 14px; color: var(--gold-dark); }
.node .lbl { font-size: 12px; font-weight: 700; color: var(--text-2); text-align: center; line-height: 1.2; max-width: 92px; }
.node .disc .ring { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--green); opacity: 0; }
.node.current .disc .ring { opacity: .6; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { transform: scale(.95); opacity: .7 } 70% { transform: scale(1.12); opacity: 0 } 100% { opacity: 0 } }

/* 答题页 */
.lesson-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lesson-top .x { background: none; border: 0; font-size: 22px; color: var(--text-3); padding: 4px; cursor: pointer; }
.hearts { font-size: 16px; font-weight: 800; color: var(--red); display: inline-flex; align-items: center; gap: 4px; }
.q-type { font-size: 13px; font-weight: 800; color: var(--blue-dark); letter-spacing: 1px; }
.q-prompt { font-size: 22px; font-weight: 800; line-height: 1.5; margin: 8px 0 18px; word-break: break-word; }
.q-prompt.en { font-size: 24px; }
.speak-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); border: 0; color: #fff; font-size: 20px; cursor: pointer; vertical-align: middle; }
.speak-btn:active { transform: translateY(3px); box-shadow: none; }
.combo { position: fixed; top: 64px; right: 16px; z-index: 5; font-family: var(--font-display); font-size: 22px; color: var(--orange-dark); background: var(--orange-light); border: 2px solid var(--orange); padding: 4px 12px; border-radius: 99px; animation: pop .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
.feedback { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; transform: translateY(110%); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.feedback.show { transform: translateY(0); }
.feedback > div { width: 100%; max-width: 480px; padding: 18px 16px calc(18px + var(--safe-b)); border-radius: 24px 24px 0 0; }
.feedback.ok > div { background: var(--green-light); } .feedback.bad > div { background: var(--red-light); }
.feedback .title { font-family: var(--font-display); font-size: 24px; } .feedback.ok .title { color: var(--green-text); } .feedback.bad .title { color: var(--red-dark); }
.feedback .ans { font-weight: 800; margin-top: 4px; } .feedback.bad .ans { color: var(--red-dark); }
.feedback .ex { font-size: 14px; color: var(--text); margin-top: 6px; }
.feedback .ai { margin-top: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.feedback.ok .btn { background: var(--green); box-shadow: 0 4px 0 var(--green-dark); } .feedback.bad .btn { background: var(--red); box-shadow: 0 4px 0 var(--red-dark); }
.feedback .btn.ghost { background: #fff; color: var(--blue); box-shadow: 0 3px 0 var(--line); } .feedback .btn.orange { background: var(--orange); box-shadow: 0 3px 0 var(--orange-dark); }
.shake { animation: shake .4s; } @keyframes shake { 10%, 90% { transform: translateX(-2px) } 20%, 80% { transform: translateX(4px) } 30%, 50%, 70% { transform: translateX(-6px) } 40%, 60% { transform: translateX(6px) } }
.flash-ok { animation: flashok .5s; } @keyframes flashok { 0% { background: rgba(88,204,2,.25) } 100% { background: transparent } }

/* 结算 */
.result-hero { text-align: center; padding: 12px 0; }
.result-hero h1 { font-size: 34px; }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile-stat { border-radius: var(--radius); border: 2px solid; padding: 10px 6px; text-align: center; background: #fff; }
.tile-stat .v { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.tile-stat .l { font-size: 11px; font-weight: 800; letter-spacing: 1px; margin-top: 2px; }
.tile-stat.xp { border-color: var(--blue); color: var(--blue-dark); } .tile-stat.acc { border-color: var(--green); color: var(--green-text); } .tile-stat.coin { border-color: var(--gold); color: #B58500; }
.breakdown { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.breakdown div { display: flex; justify-content: space-between; } .breakdown b { color: #B58500; }
.badge-pop { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); }
.badge-pop .card { width: 300px; text-align: center; animation: pop .4s cubic-bezier(.34,1.56,.64,1); }
.badge-pop .big { font-size: 64px; line-height: 1; }

/* 任务卡 */
.task { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--bg); flex: none; }
.task .t { font-weight: 800; } .task .d { font-size: 12px; color: var(--text-2); }
.task .rw { font-weight: 800; color: #B58500; font-size: 14px; white-space: nowrap; }
.task.done .ic { background: var(--green-light); } .task.done .t { text-decoration: line-through; color: var(--text-3); }
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.subj { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: var(--radius); border: 2px solid var(--line); border-bottom-width: 4px; background: #fff; cursor: pointer; font-weight: 800; }
.subj:active { transform: translateY(2px); border-bottom-width: 2px; }
.subj .ic { font-size: 30px; } .subj.done { border-color: var(--green); background: var(--green-light); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick .btn { font-size: 15px; }

/* 商店 */
.reward { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.reward .e { font-size: 32px; } .reward .t { font-weight: 800; } .reward .p { color: #B58500; font-weight: 800; font-size: 14px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--bg); color: var(--text-2); }
.chip.pending { background: var(--gold-light); color: #B58500; } .chip.done, .chip.approved { background: var(--green-light); color: var(--green-text); } .chip.rejected { background: var(--red-light); color: var(--red-dark); }

/* 徽章 */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge { text-align: center; padding: 8px 4px; border-radius: 12px; background: #fff; border: 2px solid var(--line); }
.badge .e { font-size: 28px; } .badge .t { font-size: 11px; font-weight: 800; margin-top: 2px; }
.badge.off { opacity: .35; filter: grayscale(1); }

/* 体力小游戏 */
.mg-modes { display: flex; flex-direction: column; gap: 12px; }
.mg-mode { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 16px; background: #fff; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: var(--radius-lg); cursor: pointer; transition: transform .06s; }
.mg-mode:active { transform: translateY(3px); border-bottom-width: 2px; }
.mg-mode .e { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.mg-mode .t { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.mg-mode .d { font-size: 13px; color: var(--text-2); }
.mg-mode.mg-math .e { background: var(--blue-light); } .mg-mode.mg-english .e { background: var(--purple-light, #F3E8FF); } .mg-mode.mg-pinyin .e { background: var(--green-light); }
.mg-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 28px 16px; text-align: center; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.mg-card .sub { font-size: 13px; font-weight: 800; color: var(--text-3); letter-spacing: 1px; }
.mg-card .q { font-family: var(--font-display); font-size: 40px; line-height: 1.15; color: var(--text); word-break: break-word; }
.mg-card.mg-math { border-color: var(--blue); } .mg-card.mg-math .q { font-size: 46px; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.mg-card.mg-english .q { color: var(--purple-dark, #7C3AED); letter-spacing: 1px; }
.mg-card.mg-pinyin { border-color: var(--green); } .mg-card.mg-pinyin .q { color: var(--green-text); font-family: var(--font-body); font-weight: 800; font-size: 34px; }
.mg-combo { position: absolute; top: 10px; right: 12px; font-size: 13px; font-weight: 900; color: var(--orange-dark, #C2410C); background: #FFF1E6; border-radius: 99px; padding: 3px 10px; animation: comboPop .3s; }
@keyframes comboPop { from { transform: scale(.6); opacity: 0 } to { transform: none; opacity: 1 } }
.opts.mg-text .opt { justify-content: center; text-align: center; font-size: 20px; padding: 16px 10px; }
.timer { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.timer > i { display: block; height: 100%; background: var(--blue); width: 100%; transition: width .2s linear; }
.timer.warn > i { background: var(--red); }

/* 聊天 */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 80px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: #fff; border: 2px solid var(--line); border-bottom-left-radius: 6px; }
.chat-input { position: fixed; bottom: calc(68px + var(--safe-b)); left: 0; right: 0; display: flex; justify-content: center; z-index: 15; }
.chat-input > div { width: 100%; max-width: 480px; display: flex; gap: 8px; padding: 8px 12px; background: var(--bg); }

/* 登录 */
.kids { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; background: #fff; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: var(--radius-lg); cursor: pointer; }
.kid:active { transform: translateY(3px); border-bottom-width: 2px; }
.kid .n { font-family: var(--font-display); font-size: 22px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pinpad button { padding: 16px; font-size: 24px; font-weight: 800; border-radius: var(--radius); border: 2px solid var(--line); border-bottom-width: 4px; background: #fff; cursor: pointer; }
.pinpad button:active { transform: translateY(2px); border-bottom-width: 2px; }
.pindots { display: flex; justify-content: center; gap: 14px; margin: 16px 0; }
.pindots i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line-strong); display: block; }
.pindots i.on { background: var(--green); border-color: var(--green); }

/* 入场动画:fadeIn + slideY(6px),stagger 60ms */
.in { animation: enter .35s ease-out backwards; }
.in:nth-child(1) { animation-delay: 0ms } .in:nth-child(2) { animation-delay: 60ms } .in:nth-child(3) { animation-delay: 120ms } .in:nth-child(4) { animation-delay: 180ms } .in:nth-child(5) { animation-delay: 240ms } .in:nth-child(6) { animation-delay: 300ms } .in:nth-child(7) { animation-delay: 360ms } .in:nth-child(8) { animation-delay: 420ms }
@keyframes enter { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; animation: pop .3s; max-width: 90%; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.coin-fly { position: fixed; z-index: 55; font-size: 22px; pointer-events: none; }
.float-xp { position: fixed; z-index: 55; font-family: var(--font-display); font-size: 22px; color: var(--blue-dark); pointer-events: none; animation: floatup .9s ease-out forwards; }
@keyframes floatup { from { transform: translateY(0); opacity: 1 } to { transform: translateY(-60px); opacity: 0 } }
.overlay { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.overlay > .sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0 } to { transform: none; opacity: 1 } }
.loading { text-align: center; padding: 60px 0; color: var(--text-3); font-weight: 700; }
