/* assets/play/play.css - AI 玩具箱专属样式（原 play.html 内联 style 抽出） */

/* ===== P1 设计令牌（与 styles.css 的 7 个变量并存，不冲突） ===== */
:root {
  --brand: #3d8248;
  --brand-ink: #244c2b;
  --brand-tint: #e5f6dd;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 6px 16px #17221910;
  --shadow-md: 0 12px 30px #17221914;
  --shadow-lg: 0 20px 48px #1722191a;
  --ease: cubic-bezier(.22, .9, .3, 1);
}
  .play-page { padding: 56px 0 20px; }
  .play-hero { text-align: center; margin-bottom: 26px; }
  .play-hero h1 { font-size: clamp(36px, 4.6vw, 54px); letter-spacing: -.06em; margin-bottom: 14px; }
  .play-hero p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 540px; margin: 0 auto; }

  .play-grid-tip { margin: 0 auto 14px; text-align: center; color: #a3ada5; font: 10px "DM Mono", monospace; letter-spacing: .06em; }
  .play-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 920px; margin: 0 auto 32px; }
  .play-cell { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 15px 13px 12px; border: 1px solid #e2e9de; border-radius: 13px; background: #fff; text-align: left; transition: border-color .18s, transform .18s, box-shadow .18s; }
  .play-cell:hover { border-color: #b9e090; transform: translateY(-2px); box-shadow: 0 10px 22px #17221912; }
  .play-cell.active { border-color: #a7d889; background: var(--soft); box-shadow: 0 8px 18px #1722190e; }
  .cell-badge { position: absolute; top: 9px; right: 9px; padding: 2px 7px; border-radius: 999px; font: 500 9px "DM Mono", monospace; letter-spacing: .05em; }
  .cell-badge.ai { background: #eaf7e2; color: #3d8248; }
  .cell-badge.fast { background: #eef1ee; color: #8b978f; }
  .cell-ico { font-size: 21px; line-height: 1.2; }
  .cell-name { font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
  .cell-desc { font-size: 10.5px; color: #98a39b; line-height: 1.55; }

  .play-panel { display: none; }
  .play-panel.active { display: block; }

  .play-box { max-width: 720px; margin: 0 auto; }
  .play-input-row { display: flex; gap: 10px; }
  .play-input-row input, .play-input-row textarea {
    flex: 1; padding: 13px 16px; border: 1px solid #d6dfd4; border-radius: 10px; background: #fff;
    font: inherit; font-size: 14px; color: var(--ink); outline: none; transition: border-color .2s;
  }
  .play-input-row textarea { resize: vertical; min-height: 96px; line-height: 1.6; font-family: "DM Mono", monospace; font-size: 12.5px; }
  .play-input-row input:focus, .play-input-row textarea:focus { border-color: #a7d889; }
  .play-go { flex: none; padding: 0 24px; height: 48px; border: 0; border-radius: 10px; background: var(--lime); color: #244c2b; font-weight: 500; font-size: 14px; transition: transform .15s, opacity .15s; }
  .play-go:hover { transform: translateY(-2px); }
  .play-go:disabled { opacity: .5; cursor: not-allowed; transform: none; }
  .play-hint { margin-top: 12px; text-align: center; color: #98a39b; font-size: 11.5px; line-height: 1.7; }
  .play-hint b { color: #3d8248; font-weight: 500; }

  .play-status { display: none; margin-top: 26px; text-align: center; color: #3d8248; font: 13px "DM Mono", monospace; }
  .play-status.on { display: block; }
  .play-status i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #76ce69; animation: pulse 1.1s infinite; }
  @keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

  .play-error { display: none; margin-top: 20px; padding: 12px 16px; border: 1px solid #f0c9c9; border-radius: 10px; background: #fdf1f1; color: #a3453f; font-size: 13px; text-align: center; }
  .play-error.on { display: block; }

  .play-result { display: none; margin-top: 28px; }
  .play-result.on { display: block; }

  .fortune-card {
    max-width: 430px; margin: 0 auto; padding: 30px 28px 22px; border: 1px solid var(--line); border-radius: 18px;
    background: #fbfcf8; box-shadow: 0 18px 44px #17221914; position: relative; overflow: hidden;
  }
  .fortune-card::before { content: ""; position: absolute; top: -70px; right: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #d9f7d2 0%, transparent 65%); pointer-events: none; }
  .fc-eyebrow { position: relative; margin: 0 0 10px; color: #4c8d54; font: 500 10px "DM Mono", monospace; letter-spacing: .1em; }
  .fc-name { position: relative; margin: 0 0 4px; font-size: 34px; letter-spacing: -.04em; font-weight: 600; word-break: break-all; }
  .fc-title { position: relative; margin: 0 0 18px; color: #3d8248; font-size: 17px; font-weight: 500; }
  .fc-rule { position: relative; height: 1px; margin: 0 0 18px; background: linear-gradient(90deg, var(--line), transparent); }
  .fc-meta { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  .fc-meta > div { padding: 11px 13px; border: 1px solid #e6ece3; border-radius: 10px; background: #fff; }
  .fc-meta span { display: block; margin-bottom: 5px; color: #98a39b; font-size: 10.5px; }
  .fc-meta b { font-size: 14px; font-weight: 500; }
  .fc-skill { position: relative; display: grid; grid-template-columns: 76px 1fr 30px; align-items: center; gap: 10px; margin-bottom: 11px; }
  .fc-skill .k { color: #51605a; font-size: 12px; }
  .fc-skill .bar { height: 8px; border-radius: 4px; background: #e8efe4; overflow: hidden; }
  .fc-skill .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #76ce69, #a7ed62); transition: width .9s cubic-bezier(.22,.9,.3,1); }
  .fc-skill .v { text-align: right; color: #3d8248; font: 500 12px "DM Mono", monospace; }
  .fc-block { position: relative; margin-top: 20px; padding: 13px 15px; border-radius: 10px; background: #f1f7e9; }
  .fc-block span { display: block; margin-bottom: 5px; color: #7d8f80; font-size: 10.5px; }
  .fc-block b { font-size: 13.5px; font-weight: 500; line-height: 1.6; }
  .fc-block.ji { background: #fdf3ef; }
  .fc-omen { position: relative; margin: 20px 0 0; padding: 0 4px; color: #3f4a42; font-size: 13.5px; line-height: 1.85; text-align: center; font-style: italic; }
  .fc-foot { position: relative; margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); color: #a3ada5; font: 10px "DM Mono", monospace; text-align: center; }

  .fortune-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
  .fc-btn { border: 1px solid #d6dfd4; border-radius: 9px; padding: 10px 18px; background: #fff; color: var(--ink); font-size: 13px; transition: all .2s; }
  .fc-btn:hover { border-color: #a7d889; color: #34753d; transform: translateY(-2px); }
  .fc-btn.primary { border-color: var(--lime); background: var(--lime); color: #244c2b; font-weight: 500; }

  .text-result { max-width: 720px; margin: 0 auto; padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf8; box-shadow: 0 14px 34px #17221910; }
  .text-result .tr-label { margin: 0 0 10px; color: #4c8d54; font: 500 10px "DM Mono", monospace; letter-spacing: .1em; }
  .text-result .tr-body { margin: 0; color: #26332b; font-size: 14.5px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; }
  .text-result .tr-foot { margin: 16px 0 0; padding-top: 13px; border-top: 1px dashed var(--line); color: #a3ada5; font-size: 11px; }

  /* 代码打字赛 */
  .type-original { padding: 18px 20px; border: 1px solid #35443a; border-radius: 12px; background: #1d2920; color: #8fa697; font: 13.5px/2 "DM Mono", monospace; white-space: pre-wrap; word-break: break-all; max-height: 200px; overflow-y: auto; }
  .type-original .ch { color: #8fa697; }
  .type-original .ch.ok { color: #b9e989; }
  .type-original .ch.bad { color: #f2a06a; background: #4a2a1c; border-radius: 2px; }
  .type-original .ch.cur { background: #76ce69; color: #17211d; border-radius: 2px; }
  .type-input { width: 100%; margin-top: 12px; padding: 14px 16px; border: 1px solid #d6dfd4; border-radius: 10px; background: #fff; font: 13px/1.9 "DM Mono", monospace; color: var(--ink); outline: none; resize: vertical; min-height: 86px; transition: border-color .2s; }
  .type-input:focus { border-color: #a7d889; }
  .type-input:disabled { background: #f5f7f3; color: #98a39b; }
  .type-stats { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  .type-stat { flex: 1; min-width: 88px; padding: 10px 12px; border: 1px solid #e6ece3; border-radius: 10px; background: #fff; text-align: center; }
  .type-stat span { display: block; margin-bottom: 4px; color: #98a39b; font-size: 10.5px; }
  .type-stat b { font: 500 17px "DM Mono", monospace; color: #3d8248; }
  .type-board { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
  .type-board p { margin: 0 0 8px; color: #7d8f80; font-size: 11.5px; }
  .type-board ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
  .type-board li::marker { color: #76ce69; }

  /* 猜语言闯关 */
  .guess-meta { display: flex; justify-content: space-between; margin-bottom: 12px; color: #98a39b; font: 11px "DM Mono", monospace; }
  .guess-code { margin: 0 0 16px; padding: 16px 18px; border: 1px solid #35443a; border-radius: 12px; background: #1d2920; color: #d9e7dc; font: 12.5px/1.85 "DM Mono", monospace; overflow-x: auto; white-space: pre; }
  .guess-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .guess-opt { padding: 13px 16px; border: 1px solid #d6dfd4; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; text-align: left; transition: all .2s; }
  .guess-opt:hover:not(:disabled) { border-color: #a7d889; transform: translateY(-2px); }
  .guess-opt:disabled { cursor: default; }
  .guess-opt.correct { border-color: #76ce69; background: #eaf7e2; color: #2f6b34; font-weight: 500; }
  .guess-opt.wrong { border-color: #f0955f; background: #fdf1ea; color: #a3552a; }
  .guess-note { display: none; margin-top: 14px; padding: 13px 16px; border-left: 3px solid var(--lime); border-radius: 0 10px 10px 0; background: #f1f7e9; color: #3f4a42; font-size: 13px; line-height: 1.75; }
  .guess-note.on { display: block; }

  /* Emoji 猜成语 */
  .idiom-emoji { margin: 0 0 8px; font-size: 44px; line-height: 1.35; text-align: center; letter-spacing: 6px; word-break: break-all; }
  .idiom-tip { margin: 0 0 18px; text-align: center; color: #a3ada5; font-size: 11.5px; }
  .idiom-mean { display: none; margin-top: 12px; text-align: center; color: #7d8f80; font-size: 12px; }
  .idiom-mean.on { display: block; }

  /* 反应力挑战 */
  .reflex-arena { border: 1px solid #d6dfd4; border-radius: 14px; background: #f1f5ee; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; transition: background .12s; }
  .reflex-arena .inner { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 250px; gap: 12px; padding: 22px; text-align: center; }
  .reflex-title { margin: 0; font-size: 23px; font-weight: 600; color: #3f4a42; }
  .reflex-sub { margin: 0; color: #93a097; font-size: 13px; line-height: 1.7; }
  .reflex-ms { margin: 0; font: 600 50px/1 "DM Mono", monospace; color: #3d8248; }
  .reflex-arena.wait { background: #e2ebe0; }
  .reflex-arena.go { background: #76ce69; }
  .reflex-arena.go .reflex-title { color: #17211d; font-size: 30px; }
  .reflex-arena.early { background: #f6ddcb; }
  .reflex-best { margin-top: 12px; text-align: center; color: #a3ada5; font: 11.5px "DM Mono", monospace; line-height: 1.8; }

  /* 街机游戏 */
  .arcade { display: flex; flex-direction: column; align-items: center; }
  .arcade-stage { position: relative; max-width: 100%; }
  .arcade-stage canvas { display: block; border-radius: 12px; background: #16211a; box-shadow: 0 14px 34px #17221918; max-width: 100%; height: auto; }
  .arcade-hud { display: flex; gap: 10px; margin-top: 12px; width: 100%; max-width: 430px; flex-wrap: wrap; }
  .arcade-hud .type-stat { flex: 1; min-width: 76px; }
  .arcade-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #16211ad9; border-radius: 12px; color: #eaf3ec; text-align: center; padding: 20px; cursor: pointer; }
  .arcade-start h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
  .arcade-start p { margin: 0; color: #9fb5a6; font-size: 12px; line-height: 1.9; }
  .arcade-start .play-go { height: 42px; padding: 0 26px; }
  .arcade-start.hide { display: none; }
  .pad { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
  .pad button { min-width: 54px; height: 46px; padding: 0 14px; border: 1px solid #d6dfd4; border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; transition: background .12s, border-color .12s; touch-action: none; user-select: none; -webkit-user-select: none; }
  .pad button:active { background: var(--soft); border-color: #a7d889; }

  /* AI 猜物挑战 */
  .gw-start { text-align: center; padding: 22px 10px 8px; }
  .gw-rule { margin: 0 auto 10px; max-width: 480px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
  .gw-rule b { color: #3d8248; font-weight: 500; }
  .gw-top { margin-bottom: 14px; padding: 14px 16px; border: 1px solid #e6ece3; border-radius: 12px; background: #fbfcf8; }
  .gw-hint { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
  .gw-meta { display: flex; justify-content: space-between; margin: 0; color: #98a39b; font: 11.5px "DM Mono", monospace; }
  .gw-qs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
  .gw-q { padding: 11px 8px; border: 1px solid #d6dfd4; border-radius: 9px; background: #fff; color: var(--ink); font-size: 12.5px; transition: all .18s; }
  .gw-q:hover:not(:disabled) { border-color: #a7d889; transform: translateY(-1px); }
  .gw-q:disabled { background: #f2f5f0; color: #aab5ad; cursor: default; }
  .gw-log { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
  .gw-log:empty { display: none; }
  .gw-log .qa { padding: 10px 14px; border-radius: 10px; background: #f1f7e9; font-size: 13px; line-height: 1.6; }
  .gw-log .qa b { color: #34753d; font-weight: 500; margin-right: 10px; }
  .gw-log .qa span { color: #3f4a42; }
  .gw-log .qa.miss { background: #fdf3ef; }
  .gw-log .qa.miss b { color: #a3552a; }
  .gw-guessbar { text-align: center; }
  .gw-guessbar .fc-btn:disabled { opacity: .5; cursor: not-allowed; }

  @media (max-width: 720px) {
    .gw-qs { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 980px) {
    .play-grid { grid-template-columns: repeat(3, 1fr); }
  }

  @media (max-width: 720px) {
    .guess-options { grid-template-columns: 1fr; }
    .type-original { font-size: 12px; max-height: 168px; }
    .idiom-emoji { font-size: 38px; letter-spacing: 4px; }
    .reflex-arena .inner { height: 210px; }
    .play-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cell-desc { display: none; }
  }

  @media (max-width: 720px) {
    .play-page { padding: 40px 0 10px; }
    .play-input-row { flex-direction: column; }
    .play-go { width: 100%; }
    .fortune-card { padding: 24px 20px 18px; }
    .fc-name { font-size: 28px; }
    .fc-skill { grid-template-columns: 68px 1fr 28px; }
  }

/* ===================== P1：筛选栏 / 动效 / 交互增强 ===================== */

/* 分类筛选栏 */
.play-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 16px; }
.play-filter { border:1px solid #d7dfd4; border-radius:999px; padding:7px 14px; background:#fff; color:#66766a; font-size:12px; transition:border-color .2s, background .2s, color .2s, transform .2s; }
.play-filter b { margin-left:2px; font-weight:500; opacity:.55; }
.play-filter:hover { border-color:#cfe8b8; background:#f3fbee; color:#34753d; transform:translateY(-1px); }
.play-filter.active { border-color:var(--brand); background:var(--brand); color:#fff; }
.play-filter.active b { opacity:.8; }
.play-filters-gap { flex:1 1 auto; }
.play-sound-btn { display:inline-flex; align-items:center; gap:6px; border:1px solid #d7dfd4; border-radius:999px; padding:7px 13px; background:#fff; color:#66766a; font-size:12px; transition:border-color .2s, background .2s, color .2s; }
.play-sound-btn:hover { border-color:#cfe8b8; color:#34753d; }
.play-sound-btn[aria-pressed="true"] { border-color:var(--brand); background:var(--brand-tint); color:var(--brand-ink); }

/* 动效关键帧 */
@keyframes play-in { from { opacity:0; transform:translateY(10px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes play-fade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes cardPop { from { opacity:0; transform:translateY(6px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes comboPop { 0% { transform:scale(1); } 45% { transform:scale(1.18); } 100% { transform:scale(1); } }
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* 卡片：错峰入场 + hover 增强（尊重 prefers-reduced-motion） */
.play-cell { position:relative; transition:transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.play-cell .cell-ico { transition:transform .22s var(--ease); }
.play-cell:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--brand-tint); }
.play-cell:hover .cell-ico { transform:scale(1.12); }

@media (prefers-reduced-motion: no-preference) {
  .play-cell { animation:play-in .5s var(--ease) both; animation-delay:calc(var(--i, 0) * 40ms); }
  .play-panel.active { animation:play-fade .35s var(--ease); }
  .play-result.on .text-result,
  .play-result.on .fortune-card { animation:cardPop .4s var(--ease); }
  .combo-burst { animation:comboPop .5s var(--ease); }
}

/* 筛选隐藏 */
.play-cell.is-hidden { display:none; }

/* 卡片状态旗标（P2 接入成长体系后点亮） */
.cell-flag { position:absolute; top:8px; right:8px; border-radius:999px; padding:2px 7px; font-size:9px; background:var(--brand-tint); color:var(--brand-ink); }
.cell-flag.done { background:#e7ece4; color:#5d6a5e; }

/* 轻提示 toast */
.play-toast { position:fixed; left:50%; bottom:28px; z-index:40; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px; pointer-events:none; }
.play-toast-item { animation:toastIn .4s var(--ease); border:1px solid var(--line); border-radius:999px; padding:9px 16px; background:#fbfcf8; box-shadow:var(--shadow-md); color:var(--ink); font-size:12px; white-space:nowrap; }

@media (max-width: 720px) {
  .play-filters { gap:6px; }
  .play-filter { padding:6px 11px; font-size:11px; }
  .play-sound-btn { padding:6px 11px; font-size:11px; }
}


/* ===================== P2：成长 HUD / 成就面板 / 已玩标记 ===================== */
.play-hud { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:0 0 18px; padding:12px 16px; border:1px solid var(--line); border-radius:var(--radius-md); background:#fbfcf8; box-shadow:var(--shadow-sm); }
.hud-lv { display:flex; align-items:center; gap:10px; flex:1 1 240px; min-width:220px; }
.hud-lv-num { flex:none; border-radius:999px; padding:4px 11px; background:var(--brand); color:#fff; font:500 12px "DM Mono",monospace; }
.hud-lv-bar { flex:1 1 auto; height:7px; overflow:hidden; border-radius:999px; background:#e5eae1; }
.hud-lv-bar i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--lime),var(--brand)); transition:width .9s var(--ease); }
.hud-lv-xp { flex:none; color:#849087; font:10px "DM Mono",monospace; }
.hud-daily { display:flex; align-items:center; gap:8px; flex:1 1 260px; color:var(--muted); font-size:12px; }
.hud-daily b { color:var(--brand-ink); font-weight:500; }
.hud-daily i { font-style:normal; color:#849087; font:10px "DM Mono",monospace; }
.hud-daily-bar { flex:none; width:52px; height:5px; overflow:hidden; border-radius:999px; background:#e5eae1; }
.hud-daily-bar i { display:block; height:100%; border-radius:999px; background:var(--brand); transition:width .6s var(--ease); }
.hud-ach { flex:none; border:1px solid #d7dfd4; border-radius:999px; padding:7px 13px; background:#fff; color:#66766a; font-size:12px; transition:border-color .2s, background .2s, color .2s; }
.hud-ach:hover { border-color:var(--brand); background:var(--brand-tint); color:var(--brand-ink); }

/* 已玩过的卡片 */
.play-cell.played { border-color:#cfe3cd; }
.play-cell.played::after { content:'✓'; position:absolute; right:9px; bottom:7px; color:var(--brand); font-size:9px; opacity:.6; }

/* 成就面板 */
.play-ach-backdrop { position:fixed; inset:0; z-index:45; display:grid; place-items:center; padding:24px; background:#10181288; opacity:0; pointer-events:none; transition:opacity .2s; }
.play-ach-backdrop.open { opacity:1; pointer-events:auto; }
.play-ach-modal { position:relative; width:min(620px,100%); max-height:78vh; overflow:auto; padding:30px 30px 26px; border-radius:var(--radius-lg); background:#f8faf4; box-shadow:var(--shadow-lg); }
.play-ach-modal .eyebrow { margin:0 0 8px; color:#4c8d54; font:500 11px "DM Mono",monospace; letter-spacing:.09em; }
.play-ach-modal h2 { margin:0 0 20px; font-size:24px; letter-spacing:-.04em; }
.ach-close { position:absolute; top:12px; right:15px; border:0; background:none; color:var(--muted); font-size:24px; line-height:1; }
.ach-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.ach-item { display:grid; grid-template-columns:34px 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; padding:11px 13px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; opacity:.55; }
.ach-item.got { border-color:var(--brand-tint); background:var(--brand-tint); opacity:1; }
.ach-ico { grid-row:span 2; font-size:22px; text-align:center; }
.ach-item b { font-size:13px; font-weight:500; }
.ach-item i { color:var(--muted); font-size:11px; font-style:normal; }

@media (max-width: 720px) {
  .play-hud { gap:10px; padding:11px 13px; }
  .hud-lv { flex:1 1 100%; min-width:0; }
  .hud-daily { flex:1 1 100%; }
  .ach-grid { grid-template-columns:1fr; }
  .play-ach-modal { padding:24px 20px 20px; }
}

/* ===================== P4：新增玩法（AI 续写 / 杠精 / 华容道 / 24 点 / 记忆翻牌） ===================== */
.arcade-bar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:14px; color:var(--muted); font-size:12px; }
.arcade-bar b { color:var(--ink); font:500 13px "DM Mono",monospace; }
.arcade-bar .fc-btn { margin-left:auto; }
.arcade-bar .fc-btn + .fc-btn { margin-left:0; }

/* 杠精挑战 */
.dv-list { display:flex; flex-direction:column; gap:10px; }
.dv-bubble { display:flex; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-md); background:#fbfcf8; animation:cardPop .4s var(--ease) both; }
.dv-no { flex:none; width:20px; height:20px; border-radius:50%; background:var(--brand-tint); color:var(--brand-ink); font:500 11px/20px "DM Mono",monospace; text-align:center; }
.dv-bubble p { margin:0; font-size:13px; line-height:1.65; }
.dv-verdict { margin:14px 0 0; padding-top:12px; border-top:1px dashed var(--line); color:var(--brand-ink); font-size:13px; }

/* 数字华容道 */
.slide-wrap { display:flex; justify-content:center; margin:6px 0 4px; }
.slide-grid { display:grid; grid-template-columns:repeat(var(--n, 3), 1fr); gap:6px; width:min(320px, 100%); }
.sl-tile { aspect-ratio:1; border:1px solid #cfe0cb; border-radius:var(--radius-sm); background:#fbfdf9; color:var(--brand-ink); font:500 20px "DM Mono",monospace; transition:transform .12s var(--ease), background .15s; }
.sl-tile:hover { background:var(--brand-tint); transform:scale(1.03); }
.sl-tile.blank { border-color:transparent; background:#eef2ea; cursor:default; }
.sl-tile.blank:hover { transform:none; }

/* 24 点速算 */
.m24-cards { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin:4px 0 18px; }
.m24-card { display:grid; place-items:center; width:62px; height:82px; border:1px solid #cfe0cb; border-radius:var(--radius-md); background:linear-gradient(160deg, #fff, #f1f7ec); box-shadow:var(--shadow-sm); color:var(--brand-ink); font:500 26px "DM Mono",monospace; }

/* Emoji 记忆翻牌 */
.mm-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; width:min(380px, 100%); margin:0 auto; }
.mm-card { aspect-ratio:1; display:grid; place-items:center; border:1px solid var(--line); border-radius:var(--radius-sm); background:#eef2ea; transition:transform .15s var(--ease), background .2s, border-color .2s; }
.mm-card:hover { transform:translateY(-2px); }
.mm-card.open { background:#fff; border-color:var(--brand-tint); }
.mm-card.matched { background:var(--brand-tint); border-color:var(--brand); opacity:.78; }
.mm-face { font-size:20px; }

@media (max-width: 720px) {
  .arcade-bar { gap:10px; font-size:11px; }
  .m24-card { width:52px; height:70px; font-size:22px; }
  .mm-grid { gap:6px; }
  .sl-tile { font-size:16px; }
}
