/* ============================================================
   游戏厅 / 存稿保卫战
   ============================================================ */

/* 首页侧栏入口 */
.game-entry {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px;
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px;
}
.game-entry-icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--card2));
  font-size: 19px;
}
.game-entry-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.game-entry-main b { font-size: 13.5px; }
.game-entry-main small { font-size: 11px; color: var(--muted); }
.game-entry em { font-style: normal; color: var(--muted); font-size: 18px; }

/* 游戏厅 */
.games-page { max-width: 760px; margin: 0 auto; }
.games-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.games-head h1 { margin: 0; font-size: 26px; }
.games-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.games-balance {
  text-align: right; padding: 8px 12px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
}
.games-balance span { display: block; font-size: 10px; color: var(--muted); }
.games-balance b { font-size: 19px; color: var(--gold); }

.game-feature {
  display: grid; grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 16px; align-items: center; padding: 16px;
  border-radius: 16px; color: #f8fafc;
  background:
    radial-gradient(circle at 16% 20%, rgba(251, 191, 36, .18), transparent 38%),
    linear-gradient(135deg, #111c31, #0b1220 60%, #16243c);
  border: 1px solid #24344d;
  box-shadow: 0 14px 34px rgba(2, 6, 23, .18);
}
.gf-art {
  height: 112px; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(155deg, rgba(251, 191, 36, .18), rgba(56, 189, 248, .12));
  border: 1px solid rgba(251, 191, 36, .25);
}
.gf-art span { font-size: 42px; }
.gf-art em { font-style: normal; font-size: 8px; letter-spacing: 1.5px; color: #94a3b8; }
.gf-main { min-width: 0; }
.gf-kicker { font-size: 10.5px; letter-spacing: 1px; color: #fbbf24; }
.gf-main h2 { margin: 4px 0 5px; font-size: 24px; letter-spacing: .5px; }
.gf-main p { margin: 0; font-size: 12px; line-height: 1.6; color: #94a3b8; }
.gf-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; font-size: 11.5px; color: #cbd5e1; }
.gf-meta span:first-child { color: #fbbf24; }
.gf-go { flex: none; font-size: 13px; color: #111827; background: #fbbf24; padding: 9px 14px; border-radius: 999px; font-weight: 700; }
.games-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 14px; padding: 14px 10px; text-align: center;
}
.games-stats b { display: block; font-size: 21px; color: var(--ink); line-height: 1.2; }
.games-stats span { font-size: 10.5px; color: var(--muted); }
.games-note { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--muted); }
.games-note + .games-note { margin-top: 4px; }

/* 关卡选择 */
.td-levels-page { max-width: 760px; margin: 0 auto; }
.td-levels-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.td-back {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  font-size: 26px; line-height: 1; color: var(--ink); border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); padding-bottom: 3px;
}
.td-levels-head h1 { margin: 0; font-size: 23px; }
.td-levels-head p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.td-stars-total { margin-left: auto; color: var(--gold); font-size: 13px; font-weight: 700; white-space: nowrap; }
.td-level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.td-level-card {
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  min-height: 96px; color: var(--ink); transition: .15s;
}
a.td-level-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.td-level-card.locked { opacity: .5; }
.td-level-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.td-level-top b { font-family: Georgia, serif; font-size: 22px; color: var(--muted); }
.td-level-top em { font-style: normal; font-size: 10px; color: var(--gold); letter-spacing: .5px; }
.td-level-card > span { font-size: 13px; font-weight: 600; }
.td-level-card > small { font-size: 10.5px; color: var(--muted); }
.td-endless-card {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 15px;
  border-radius: 12px; border: 1px solid #3b4c6b; color: #f8fafc;
  background: linear-gradient(135deg, #17243a, #0f172a);
}
.td-endless-card.locked { opacity: .5; }
.td-endless-card > span { font-size: 26px; }
.td-endless-card div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.td-endless-card b { font-size: 14px; }
.td-endless-card small { font-size: 11px; color: #94a3b8; }
.td-endless-card em { font-style: normal; font-size: 18px; color: #fbbf24; }

/* 游戏页 */
body.game-playing {
  background:
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, .13), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, .06), transparent 35%),
    #080e18;
  overscroll-behavior: none;
}
body.game-playing .top,
body.game-playing .footer,
body.game-playing .bottomnav,
body.game-playing .music-btn { display: none !important; }
body.game-playing .main { max-width: none; padding: 0; }
body.game-playing .page-wrap { max-width: none; padding: 0; }
body.game-playing #app { background: #080e18; min-height: 100dvh; }

.td-game {
  max-width: 980px; margin: 0 auto;
  padding: 8px 12px calc(14px + env(safe-area-inset-bottom));
  color: #e5e7eb; color-scheme: dark;
}
.td-game-head { display: flex; align-items: center; gap: 10px; height: 46px; }
.td-game .td-back { background: #111b2d; border-color: #24344d; color: #e5e7eb; }
.td-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.td-title b { font-size: 14px; }
.td-title span { font-size: 10.5px; color: #94a3b8; }
.td-hud { flex: none; display: flex; align-items: center; gap: 5px; }
.td-stat {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 9px;
  border-radius: 999px; background: #111b2d; border: 1px solid #24344d;
  font-size: 12px; color: #cbd5e1;
}
.td-stat i { font-style: normal; font-size: 12px; }
.td-stat b { font-size: 12.5px; color: #f8fafc; font-variant-numeric: tabular-nums; }
.td-stat.td-wave { min-width: 54px; justify-content: center; }

.td-stage { display: grid; grid-template-columns: minmax(0, 1fr) 226px; gap: 12px; align-items: start; }
.td-main { min-width: 0; }
.td-side { display: flex; flex-direction: column; gap: 8px; }
.td-side-card {
  padding: 11px 12px; border-radius: 11px; border: 1px solid #223049;
  background: #0f192b; color: #cbd5e1;
}
.td-side-label { display: block; font-size: 10px; letter-spacing: 1px; color: #64748b; margin-bottom: 6px; }
.td-side-card > b { display: block; font-size: 13.5px; color: #f8fafc; }
.td-side-card > small { display: block; margin-top: 3px; font-size: 10.5px; color: #94a3b8; }
.td-codex { display: flex; flex-direction: column; gap: 6px; }
.td-codex-row { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.td-codex-row span { width: 22px; text-align: center; font-size: 15px; flex: none; }
.td-codex-row b { font-size: 11.5px; color: #e2e8f0; font-weight: 600; }
.td-codex-row small { margin-left: auto; font-size: 9.5px; color: #94a3b8; }
.td-log { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: #94a3b8; }
.td-log div { position: relative; padding-left: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-log div::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 4px; height: 4px; border-radius: 50%; background: #475569;
}
.td-log div.new { color: #e2e8f0; }
.td-log div.new::before { background: #fbbf24; }

.td-board-wrap {
  position: relative; margin-top: 6px; border-radius: 14px; overflow: hidden;
  border: 1px solid #223049; background: #0b1220;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
#tdCanvas { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; touch-action: manipulation; }

.td-shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.td-tower-card {
  display: flex; align-items: center; gap: 7px; padding: 8px 9px;
  border: 1px solid #24344d; border-radius: 10px; background: #111b2d;
  color: #e5e7eb; font-family: inherit; cursor: pointer; text-align: left;
}
.td-tower-card:hover { border-color: #3b5273; }
.td-tower-card.active { border-color: #fbbf24; box-shadow: 0 0 0 1px #fbbf24 inset; }
.td-tower-card.disabled { opacity: .42; }
.tt-icon { font-size: 20px; flex: none; }
.tt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tt-main b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-main small { font-size: 9.5px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-cost { flex: none; font-size: 10px; color: #fbbf24; white-space: nowrap; }

.td-next {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 28px; margin-top: 8px; padding: 0 2px;
  font-size: 11.5px; color: #94a3b8;
}
.td-next .tn-label { color: #fbbf24; font-weight: 700; }
.td-next .tn-enemies { color: #cbd5e1; letter-spacing: .5px; }
.td-next em { margin-left: auto; font-style: normal; color: #64748b; }

.td-actionbar { display: flex; gap: 7px; margin-top: 9px; }
.td-btn {
  flex: none; height: 38px; padding: 0 14px; border-radius: 9px;
  border: 1px solid #2b3c58; background: #16233a; color: #e5e7eb;
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.td-btn.primary { background: #fbbf24; border-color: #fbbf24; color: #111827; }
.td-btn.ghost { background: transparent; color: #94a3b8; }
.td-btn:disabled { opacity: .48; cursor: default; }
.td-btn.small { height: 34px; padding: 0 10px; font-size: 11.5px; }
#tdWaveBtn { flex: 1; }

.td-wave-banner {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  z-index: 4; padding: 7px 18px; border-radius: 999px;
  color: #fbbf24; background: rgba(2, 6, 23, .84);
  border: 1px solid rgba(251, 191, 36, .55);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  pointer-events: none; backdrop-filter: blur(8px);
  animation: tdBannerIn .22s ease;
}
.td-wave-banner.boss { color: #f87171; border-color: rgba(248, 113, 113, .65); }
.td-wave-banner[hidden] { display: none; }
@keyframes tdBannerIn {
  from { opacity: 0; transform: translate(-50%, -7px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.td-selected {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 10px; border-radius: 11px;
  background: rgba(10, 17, 30, .94); border: 1px solid #334766;
  backdrop-filter: blur(8px);
}
.td-selected[hidden] { display: none; }
.td-sel-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.td-sel-info b { font-size: 12.5px; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-sel-info small { font-size: 10px; color: #94a3b8; }
.td-sel-close {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; color: #94a3b8; font-size: 18px; cursor: pointer;
}

.td-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 16px; background: rgba(2, 6, 23, .78); backdrop-filter: blur(3px);
}
.td-overlay[hidden] { display: none; }
.td-result {
  width: min(420px, 100%); max-height: 86dvh; overflow: auto;
  text-align: center; padding: 22px 18px;
  border-radius: 16px; background: #111b2d; border: 1px solid #334766;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.td-result-kicker { font-size: 10.5px; letter-spacing: 1.5px; color: #fbbf24; }
.td-result h2 { margin: 6px 0 8px; font-size: 23px; color: #f8fafc; }
.td-result.lose .td-result-kicker { color: #f87171; }
.td-stars { color: #fbbf24; font-size: 30px; letter-spacing: 5px; line-height: 1.2; }
.td-reward { margin-top: 7px; font-size: 16px; font-weight: 700; color: #4ade80; }
.td-result.lose .td-reward { color: #94a3b8; font-size: 13px; }
.td-result small { display: block; margin-top: 5px; font-size: 10.5px; color: #94a3b8; }
.td-result-actions { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.td-result-actions .td-btn { text-decoration: none; }

@media (max-width: 640px) {
  .game-feature { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .td-game-head { height: auto; flex-wrap: wrap; row-gap: 6px; padding: 3px 0 5px; }
  .td-title { flex: 1; min-width: 100px; }
  .td-hud { width: 100%; justify-content: flex-end; }
  .td-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .td-tower-card { padding: 9px 10px; gap: 7px; }
  .tt-icon { font-size: 20px; }
  .tt-name { font-size: 12px; }
  .tt-cost { font-size: 10px; }
  .gf-art { height: 92px; }
  .gf-art span { font-size: 30px; }
  .gf-art em { display: none; }
  .gf-main h2 { font-size: 20px; }
  .gf-main p { display: none; }
  .gf-go { grid-column: 1 / -1; text-align: center; padding: 8px; }
  .td-level-grid { gap: 8px; }
  .td-level-card { padding: 10px; min-height: 86px; }
  .td-level-top b { font-size: 19px; }
  .td-level-card > span { font-size: 12px; }
  .td-game { padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); }
  .td-stage { display: block; }
  .td-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
  .td-side-card { padding: 9px 10px; }
  .td-side-card:nth-child(3),
  .td-side-card:nth-child(4) { grid-column: 1 / -1; }
  .td-side-label { margin-bottom: 4px; font-size: 9px; }
  .td-side-card > b { font-size: 12.5px; }
  .td-codex { flex-direction: row; flex-wrap: wrap; gap: 5px 12px; }
  .td-codex-row { flex: 1 1 40%; }
  .td-next { margin-top: 2px; min-height: 18px; font-size: 10.5px; }
  .td-hud { gap: 3px; }
  .td-stat { height: 27px; padding: 0 7px; font-size: 11px; }
  .td-stat b { font-size: 11.5px; }
  .td-shop { gap: 5px; }
  .td-tower-card { padding: 7px 6px; gap: 5px; }
  .tt-icon { font-size: 18px; }
  .tt-name { font-size: 11px; }
  .tt-cost { font-size: 9px; }
  .td-actionbar { gap: 5px; }
  .td-btn { height: 36px; padding: 0 10px; font-size: 11.5px; }
  .td-selected { left: 6px; right: 6px; bottom: 6px; padding: 7px 8px; gap: 5px; }
  .td-sel-info b { font-size: 11.5px; }
  .td-sel-info small { font-size: 9.5px; }
}

/* ============================================================
   催更路线（推箱子）/ 鸽速送达
   ============================================================ */
.sk-levels-page { max-width: 760px; margin: 0 auto; }
.sk-intro {
  padding: 11px 13px; border-radius: 11px; background: var(--card);
  border: 1px solid var(--line); font-size: 11.5px; color: var(--muted);
  line-height: 1.75; margin-bottom: 4px;
}
.sk-chapter { margin-top: 15px; }
.sk-chapter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sk-chapter-head b { font-size: 14px; }
.sk-chapter-head span { font-size: 11px; color: var(--gold); white-space: nowrap; }
.sk-level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sk-level-card { min-height: 96px; }

.sk-stage { display: grid; grid-template-columns: minmax(0, 1fr) 226px; gap: 12px; align-items: start; }
.sk-main { min-width: 0; }
.sk-board-wrap {
  position: relative; margin-top: 6px; border-radius: 14px; overflow: hidden;
  border: 1px solid #223049; background: #0b1220;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
#skCanvas { display: block; width: 100%; height: auto; touch-action: none; }
.sk-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 10px;
}
.sk-dpad {
  display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 46px);
  gap: 5px;
}
.sk-dpad button {
  border: 1px solid #2b3c58; border-radius: 10px; background: #16233a;
  color: #e5e7eb; font-size: 19px; font-family: inherit; cursor: pointer;
  display: grid; place-items: center;
}
.sk-dpad button:active { background: #1f3050; transform: translateY(1px); }
.sk-dpad .sk-wait { font-size: 12px; color: #fbbf24; }
.sk-tools { display: flex; flex-direction: column; gap: 7px; }
.sk-tools .td-btn { width: 92px; }
.sk-swipe-hint { margin-top: 8px; text-align: center; font-size: 10.5px; color: #64748b; }
.sk-mech { display: flex; flex-direction: column; gap: 7px; }
.sk-mech-row { display: flex; align-items: flex-start; gap: 7px; }
.sk-mech-row > span { width: 22px; flex: none; text-align: center; font-size: 14px; }
.sk-mech-row b { display: block; font-size: 11.5px; color: #e2e8f0; font-weight: 600; }
.sk-mech-row small { display: block; margin-top: 1px; font-size: 10px; color: #94a3b8; line-height: 1.5; }
.sk-help { font-size: 10.5px; line-height: 1.75; color: #94a3b8; }
.sk-chapter-note {
  margin: -2px 0 9px; font-size: 11px; color: var(--muted);
  line-height: 1.7;
}
.sk-tip {
  margin-top: 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35);
  color: #fecaca; font-size: 11px; line-height: 1.5;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sk-tip[hidden] { display: none; }
.sk-tip .td-btn { flex: none; }
.sk-result-note { margin-top: 8px; font-size: 11.5px; color: #94a3b8; line-height: 1.7; }
.sk-tools .td-btn:disabled { opacity: .4; cursor: default; }
.sk-dpad button { touch-action: none; -webkit-user-select: none; user-select: none; }

.sk-shake { animation: skShake .18s ease; }
@keyframes skShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.td-result-stars { color: #fbbf24; font-size: 30px; letter-spacing: 5px; line-height: 1.2; }
.td-result-points { margin-top: 6px; font-size: 13px; font-weight: 700; color: #4ade80; }
.td-result p { margin: 6px 0 0; font-size: 12px; color: #cbd5e1; }
.sk-result h2 { margin-bottom: 4px; }

@media (max-width: 640px) {
  .sk-stage { display: block; }
  .sk-level-grid { gap: 8px; }
  .sk-level-card { min-height: 86px; padding: 10px; }
  .sk-controls { margin-top: 8px; }
  .sk-dpad { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 42px); gap: 4px; }
  .sk-tools { flex-direction: row; }
  .sk-tools .td-btn { width: auto; }
  .sk-swipe-hint { margin-bottom: 2px; }
  .sk-intro { font-size: 10.5px; padding: 9px 11px; }
  .sk-chapter-head b { font-size: 13px; }
}
/* 游戏厅三卡 */
.game-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.game-mini {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); transition: .15s;
}
.game-mini:hover { border-color: var(--accent); transform: translateY(-1px); }
.gm-icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 12px; font-size: 22px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 16%, var(--card2)), var(--card2));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}
.gm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gm-main b { font-size: 14.5px; }
.gm-main small { font-size: 11px; color: var(--muted); }
.gm-main em { font-style: normal; font-size: 10.5px; color: var(--gold); }
.gm-go { flex: none; color: var(--muted); font-size: 18px; }

/* 鸽速送达 */
.pg-game { max-width: 900px; }
.pg-board-wrap {
  position: relative; margin-top: 6px; border-radius: 14px; overflow: hidden;
  border: 1px solid #223049; background: #0b1220;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
#pgCanvas { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; touch-action: none; }
.pg-progress {
  position: absolute; left: 16px; right: 16px; bottom: 14px; height: 8px;
  border-radius: 999px; background: rgba(15, 23, 42, .62);
  border: 1px solid rgba(148, 163, 184, .22); overflow: visible;
}
.pg-progress i {
  display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
  transition: width .08s linear;
}
.pg-progress b { position: absolute; right: 0; top: -20px; font-size: 10.5px; color: #e2e8f0; }
.pg-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 11px; }
.pg-hold {
  width: 230px; max-width: 64vw; height: 50px; border-radius: 999px;
  border: 1px solid #fbbf24; background: #fbbf24; color: #111827;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: none;
  box-shadow: 0 6px 18px rgba(251, 191, 36, .25);
}
.pg-hold:active { transform: scale(.98); background: #fcd34d; }
.pg-controls span { font-size: 10.5px; color: #64748b; }
.pg-tips {
  display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 14px;
  padding: 11px 13px; border-radius: 11px; background: var(--card);
  border: 1px solid var(--line); font-size: 10.5px; color: var(--muted);
}
.pg-start-meta { margin-top: 8px !important; font-size: 11.5px !important; color: #94a3b8 !important; }
.pg-result p { line-height: 1.65; }

@media (max-width: 640px) {
  .game-mini-grid { grid-template-columns: 1fr; gap: 7px; }
  .game-mini { padding: 11px 12px; }
  .gm-icon { width: 38px; height: 38px; font-size: 19px; }
  .pg-hold { height: 46px; font-size: 14px; }
  .pg-controls span { display: none; }
  .pg-progress { left: 10px; right: 10px; bottom: 9px; }
}