/* ============================================================
 * 工业熊《螺丝连连看 · 30秒 × 连续3轮》样式
 * 视觉方向：工业熊品牌 + 工业制造 + 紧固件 + 风电新能源 + 轻游戏化
 * ------------------------------------------------------------
 * 品牌色统一在 :root 中配置（--brand 等），全局只改这一处。
 *   --brand #C7000B 用于：主按钮 / 倒计时 / 选中描边 / 进度提示 /
 *   ROUND 数字 / 关键标题 / 重要分割线 / 通关品牌视觉。
 *   大面积页面保持白 / 浅灰（#F5F5F5），红不铺满。
 * 适配：微信小程序 web-view / Chrome / Safari / Android / iPhone
 * ============================================================ */

:root {
  --brand: #C7000B;
  --brand-deep: #A30009;
  --brand-soft: #FBEEEE;
  --brand-line: #EFC9CB;
  --ink: #1C1C1C;
  --ink-2: #242424;
  --muted: #666666;
  --bg: #F5F5F5;
  --bg-2: #EEEEEE;
  --panel: #FFFFFF;
  --line: #E2E2E2;
  --line-soft: #EFEFEF;
  --ok: #178A4A;
  --ok-soft: #E8F6EE;
  --warn: #8A5A12;
  --warn-soft: #FDF3DC;
  --err-soft: #FDEBEC;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(28, 28, 28, 0.05);
  --shadow-lg: 0 8px 26px rgba(28, 28, 28, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 380px at 85% -80px, rgba(199, 0, 11, 0.045), transparent 62%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea { user-select: text; -webkit-user-select: text; }
img { -webkit-user-drag: none; }

.hidden { display: none !important; }

a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }

/* ---------- 布局骨架 ---------- */
.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  padding-top: calc(9px + env(safe-area-inset-top));
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand img {
  height: 30px;
  width: auto;
  display: block;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 2px;
}
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: 1px; color: var(--ink); white-space: nowrap; }
.topbar-link { color: var(--brand); font-size: 13px; font-weight: 600; padding: 4px 2px; }
.topbar-link:active { opacity: 0.6; }

.main { flex: 1; }
.view { padding: 14px 14px 20px; animation: viewIn 0.28s ease; }

@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.foot {
  flex: none;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  line-height: 1.9;
}
.foot a { color: var(--brand); }
.faint { opacity: 0.75; }
.link-btn {
  border: 0; background: none; color: var(--muted);
  font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s;
  letter-spacing: 1px;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(199, 0, 11, 0.26);
}
.btn-primary:active { box-shadow: 0 2px 6px rgba(199, 0, 11, 0.22); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: #D8D8D8;
}
.btn-ghost:active { background: #FAFAFA; }

.btn-xl { width: 100%; min-height: 52px; font-size: 17px; letter-spacing: 3px; }
.btn-block { width: 100%; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 24px 18px 20px;
  text-align: center;
  background:
    repeating-linear-gradient(-45deg, rgba(28, 28, 28, 0.016) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #FFFFFF 0%, #FCFCFC 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand) 22%, var(--brand) 78%, transparent);
  opacity: 0.9;
}
.hero-top { position: relative; }
.hero-logo {
  height: 74px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 7px;
  box-shadow: 0 4px 14px rgba(28, 28, 28, 0.06);
}

.tag-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.tag-solid { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(199, 0, 11, 0.22); }
.tag-outline { color: #444; border: 1px solid #CFCFCF; background: #fff; }

.hero-title {
  margin-top: 12px;
  font-size: 33px;
  font-weight: 900;
  letter-spacing: 6px;
  margin-right: -6px;
  color: var(--ink);
}
.hero-rule {
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  margin: 12px auto 0;
}
.hero-sub {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
}
.hero-sub b {
  color: var(--brand);
  font-weight: 900;
}
.hero-desc {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.85;
}
.hero-desc .hl { color: var(--brand); font-weight: 700; }

.hero .btn-xl { margin-top: 20px; }
.home-remain {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  min-height: 17px;
}
.home-remain.zero { color: var(--brand); font-weight: 600; }

.home-meta { text-align: center; margin-top: 13px; }
.home-meta .text-btn {
  border: 0; background: none;
  font-size: 12.5px; color: var(--muted);
  padding: 3px 6px; cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-meta .dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #C6C6C6;
  vertical-align: middle;
  margin: 0 2px;
}

.home-extra { text-align: center; margin-top: 4px; }
.mini-line { font-size: 12px; color: var(--muted); line-height: 2; }
.mini-line a { color: var(--brand); }
.brand-line { color: #444; font-weight: 600; }
.brand-line a { font-weight: 400; }

/* ---------- 面板 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.panel + .panel { margin-top: 0; }

.page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.back-btn {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #FAFAFA;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.back-btn:active { background: #F1F1F1; }
.panel-title { font-size: 19px; font-weight: 800; }
.panel-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 公众号关注页 ---------- */
.qr-wrap { text-align: center; margin: 14px 0 4px; }
.qr-box {
  width: 208px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.qr-box img { width: 100%; height: auto; display: block; border-radius: 6px; }
.qr-caption { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: #444; }

.task-actions { display: flex; gap: 10px; margin-top: 14px; }
.task-actions .btn { flex: 1; min-height: 46px; font-size: 15.5px; }
.task-done-line {
  margin-top: 12px;
  text-align: center;
  color: var(--ok);
  font-weight: 700;
  font-size: 14px;
  background: var(--ok-soft);
  border: 1px dashed #9FD6B4;
  border-radius: 10px;
  padding: 9px;
}
.gate-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.gate-limit {
  text-align: center;
  font-size: 13.5px;
  color: var(--brand);
  font-weight: 600;
  margin-top: 12px;
}

/* ---------- 游戏 ---------- */
.game-view { padding-top: 10px; }
.game-head {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 6px;
  box-shadow: var(--shadow);
}
.g-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 2px;
  min-width: 0;
}
.g-col + .g-col { border-left: 1px solid var(--line-soft); }
.g-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  font-weight: 600;
  white-space: nowrap;
}
.g-val {
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--ink);
}
.g-round-val { color: var(--brand); font-size: 20px; }
.g-time-val {
  color: var(--brand);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.5px;
  min-width: 96px;
}
.time-low { animation: blink 0.7s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.45; } }

.grid-wrap { position: relative; margin-top: 10px; }

/* 4×4 网格：整体宽度不超过一屏 */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(7px, 2.1vw, 10px);
  width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: clamp(10px, 2.8vw, 15px);
  background: linear-gradient(180deg, #FAFAFA, #F6F6F6);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card {
  position: relative;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #E4E4E4;      /* 默认：白卡 + 细灰边 */
  box-shadow: 0 1px 4px rgba(28, 28, 28, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  overflow: hidden;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.card:active { transform: scale(0.96); }
.card.selected {
  border-color: var(--brand);         /* 选中：品牌红描边 */
  box-shadow: 0 0 0 3px rgba(199, 0, 11, 0.16);
  transform: scale(1.04);
}
.card.match-pulse {
  border-color: var(--brand);
  background: var(--brand-soft);
  animation: matchPop 0.36s ease;
}
@keyframes matchPop {
  0% { transform: scale(1.05); }
  40% { transform: scale(1.12); box-shadow: 0 0 18px rgba(199, 0, 11, 0.5); }
  100% { transform: scale(1); opacity: 0.15; }
}
.card.wrong {
  border-color: #1C1C1C;
  background: #F3F3F3;
  animation: shake 0.5s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.card.cleared { visibility: hidden; pointer-events: none; }

.connector {
  position: fixed;
  height: 3px;
  border-radius: 3px;
  z-index: 60;
  pointer-events: none;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(199, 0, 11, 0), #C7000B 25%, #C7000B 75%, rgba(199, 0, 11, 0));
  box-shadow: 0 0 8px rgba(199, 0, 11, 0.55);
  animation: connFade 0.4s ease forwards;
}
@keyframes connFade {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

/* 轮次切换反馈（0.3~0.5s，不打断操作） */
.round-flash {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.flash-badge {
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 16px 30px;
  box-shadow: 0 10px 30px rgba(199, 0, 11, 0.4);
  animation: flashPop 0.42s ease;
  max-width: 84%;
}
@keyframes flashPop {
  0% { transform: scale(0.72); opacity: 0; }
  30% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.flash-title {
  display: block;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 2.5px;
  white-space: nowrap;
}
.flash-sub {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
}

.game-foot {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 9px;
  min-height: 17px;
}
.game-foot .foot-sep { color: #CCCCCC; margin: 0 5px; }

/* ---------- 结果页 ---------- */
.result-box { text-align: center; padding: 26px 16px 22px; margin-top: 10px; }

.r-icon-wrap { position: relative; margin: 0 auto 6px; }
.r-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  animation: popIn 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.r-icon.r-ok { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 8px 22px rgba(199, 0, 11, 0.3); }
.r-icon.r-no { background: linear-gradient(135deg, #9A9A9A, #6F6F6F); box-shadow: 0 8px 22px rgba(80, 80, 80, 0.24); }

.r-fullclear {
  display: inline-block;
  margin: 0 auto 6px;
  padding: 8px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 4px;
  padding-right: 20px;
  box-shadow: 0 6px 18px rgba(199, 0, 11, 0.32);
  animation: popIn 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes popIn {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-title { font-size: 25px; font-weight: 900; letter-spacing: 2px; }
.result-sub { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.7; min-height: 20px; }

.r-stats {
  margin: 16px auto 0;
  max-width: 300px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.r-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13.5px;
}
.r-row .rk { color: var(--muted); flex: none; }
.r-row .rv { color: var(--ink); font-weight: 700; text-align: right; word-break: break-all; }
.r-row .rv.red { color: var(--brand); }

.code-plate {
  margin: 18px auto 0;
  max-width: 320px;
  position: relative;
  background: #1C1C1C;
  border-radius: 16px;
  padding: 16px 10px 18px;
  color: #fff;
  overflow: hidden;
}
.code-plate::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand) 20%, var(--brand) 80%, transparent);
}
.code-lbl { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); letter-spacing: 2px; }
.code-val {
  margin-top: 7px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 4px;
  padding-left: 4px;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.result-tip { margin-top: 13px; font-size: 13px; color: #555; line-height: 1.8; }
.result-tip span { color: var(--brand); font-weight: 700; }
.result-actions { display: flex; gap: 10px; margin-top: 18px; }
.result-actions .btn { flex: 1; }
#btn-again, #btn-result-home { min-height: 48px; }

/* ---------- 通用弹层 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 20, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 22px;
}
.modal-box {
  width: 100%;
  max-width: 340px;
  max-height: 76vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.modal-title { font-size: 17px; font-weight: 800; text-align: center; margin-bottom: 10px; }
.modal-body { font-size: 13.5px; color: #444; line-height: 1.95; }
.modal-body ol, .modal-body ul { padding-left: 20px; }
.modal-body li { margin: 5px 0; }
.modal-body .brand-note { color: var(--brand); font-weight: 600; }
.modal-box .btn { margin-top: 16px; }

/* ---------- 工作人员兑奖页 ---------- */
.staff-page .topbar { justify-content: center; }
.staff-page .topbar .brand-name { font-size: 17px; letter-spacing: 2px; }
.staff-banner {
  margin: 10px 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #7A5A10;
  background: var(--warn-soft);
  border: 1px solid #E8D8A8;
  border-radius: 10px;
  padding: 8px 12px;
}
.staff-banner b { color: #9C3A12; }
.query-title { font-size: 16px; font-weight: 800; margin: 2px 0 10px; }
.query-row { display: flex; gap: 8px; }
.query-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 1px; }
.query-row .btn { flex: none; padding: 0 16px; }

.s-result { margin-top: 12px; min-height: 60px; }
.st-card {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.st-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.st-code { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: var(--ink); }
.st-status {
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.st-status.issued { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-line); }
.st-status.redeemed { color: #444; background: #EFEFEF; border-color: #DCDCDC; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line-soft); }
.kv:last-of-type { border-bottom: 0; }
.kv .k { color: var(--muted); flex: none; }
.kv .v { text-align: right; word-break: break-all; }
.st-actions { margin-top: 12px; }

.alert {
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  border: 1px solid;
}
.alert-ok { color: var(--ok); background: var(--ok-soft); border-color: #B7E3C8; }
.alert-warn { color: var(--warn); background: var(--warn-soft); border-color: #E8D8A8; }
.alert-err { color: #A03025; background: var(--err-soft); border-color: #F2C2BD; }

.stats-line { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.help-list { list-style: none; font-size: 13px; color: #555; line-height: 2; }
.s-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 26px 0; }

/* ---------- 输入框（兑奖台） ---------- */
input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 0 13px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 0, 11, 0.12); }

/* ---------- 小屏兼容 ---------- */
@media (max-width: 360px) {
  .hero-title { font-size: 27px; letter-spacing: 4px; margin-right: -4px; }
  .hero { padding: 20px 14px 18px; }
  .g-time-val { font-size: 22px; min-width: 86px; }
  .g-val { font-size: 17px; }
  .code-val { font-size: 29px; }
}

/* ---------- 准备倒计时（点击开始 → 5 秒后计时） ---------- */
.game-view { position: relative; }
.pre-count {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 245, 245, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.pre-card {
  width: min(78vw, 300px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.28s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.pre-num {
  font-size: 76px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.pre-num.pop { animation: prePop 0.95s ease-out both; }
@keyframes prePop {
  0% { transform: scale(0.45); opacity: 0.35; }
  55% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.pre-title { margin-top: 6px; font-size: 17px; font-weight: 800; letter-spacing: 2px; color: var(--ink); }
.pre-sub { margin-top: 5px; font-size: 12px; color: var(--muted); }

/* ---------- LOGO 长按重置反馈 + 防长按弹菜单 ---------- */
.topbar .brand img, .hero-logo {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
img.hold { animation: logoHold 0.35s ease-in-out infinite alternate; }
@keyframes logoHold {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* ---------- 确认弹层双按钮 ---------- */
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; min-height: 46px; margin-top: 0; }

/* 打印时隐藏游戏操作 */
@media print {
  .topbar, .foot, .btn, .modal-mask { display: none !important; }
}
