/* 霓虹消行 · 3D 方块 —— 竖屏暗色霓虹科技风 */
:root {
  --bg: #05070d;
  --panel: #0d1422;
  --panel-2: #111b2c;
  --line: rgba(126, 170, 230, 0.16);
  --line-soft: rgba(126, 170, 230, 0.09);
  --text: #eaf2ff;
  --muted: #8ea3c4;
  --muted-2: #667b9d;
  --orange: #ff8a3d;
  --orange-2: #ffb36b;
  --cyan: #38e8ff;
  --pink: #ff4fd8;
  --danger: #ff4d5e;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--text);
  background:
    radial-gradient(120% 62% at 50% -12%, rgba(255, 138, 61, 0.17), transparent 58%),
    radial-gradient(90% 55% at 108% 108%, rgba(56, 232, 255, 0.12), transparent 62%),
    radial-gradient(70% 45% at -10% 90%, rgba(255, 79, 216, 0.08), transparent 60%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 170, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 170, 230, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 40%, #000 10%, transparent 78%);
  mask-image: radial-gradient(75% 60% at 50% 40%, #000 10%, transparent 78%);
  opacity: 0.7;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 10px) 14px calc(var(--safe-bottom) + 10px);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ---------- 顶部信息 ---------- */
.hud {
  display: flex;
  gap: 9px;
  flex: 0 0 auto;
}

.score-card {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 8px 14px 9px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(24, 37, 60, 0.96), rgba(9, 15, 26, 0.96));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.score-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.75;
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.eyebrow {
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--muted-2);
}

.best-line {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  white-space: nowrap;
}

.best-line b {
  color: var(--orange-2);
  font-weight: 800;
}

.score {
  margin-top: 2px;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 138, 61, 0.42);
}

.score.bump {
  animation: scoreBump 0.26s ease-out;
}

@keyframes scoreBump {
  0% { transform: scale(1); color: #fff; }
  40% { transform: scale(1.09); color: var(--orange-2); }
  100% { transform: scale(1); color: #fff; }
}

.next-card {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  padding: 7px 6px 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(22, 34, 55, 0.96), rgba(8, 13, 23, 0.96));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.next-card .eyebrow {
  align-self: flex-start;
  padding-left: 2px;
}

.next-wrap {
  position: relative;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

#next {
  display: block;
  width: 64px;
  height: 40px;
}

.next-flash {
  position: absolute;
  right: 0;
  top: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe37a;
  background: rgba(255, 138, 61, 0.18);
  border: 1px solid rgba(255, 195, 100, 0.55);
  box-shadow: 0 0 12px rgba(255, 192, 80, 0.5);
  animation: flashPulse 1s ease-in-out infinite;
}

.next-flash .mp-icon {
  width: 12px;
  height: 12px;
}

.next-hint {
  font-size: 8.5px;
  line-height: 1;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.next-card.special {
  border-color: rgba(255, 196, 92, 0.55);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(255, 167, 60, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes flashPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ---------- 状态行 ---------- */
.status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 32px;
}

.chip {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(16, 26, 43, 0.82);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.chip b {
  color: #f4f8ff;
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.chip .mp-icon {
  width: 13px;
  height: 13px;
  color: var(--orange);
}

button.chip {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.chip-flash {
  color: var(--orange-2);
  border-color: rgba(255, 138, 61, 0.26);
  background: linear-gradient(180deg, rgba(57, 34, 20, 0.72), rgba(24, 19, 24, 0.82));
}

.chip-flash b {
  color: var(--orange-2);
}

.chip-flash .mp-icon {
  color: #ffd166;
}

.chip-flash:active {
  transform: scale(0.96);
}

.status-spacer {
  flex: 1;
}

.icon-btn {
  flex: 0 0 32px;
  width: 32px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(16, 26, 43, 0.82);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.icon-btn .mp-icon {
  width: 15px;
  height: 15px;
}

.icon-btn:active {
  transform: scale(0.93);
  color: var(--orange-2);
  border-color: rgba(255, 138, 61, 0.4);
}

/* ---------- 提示 / 挑战条 ---------- */
.event-bar {
  position: relative;
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(15, 25, 42, 0.92), rgba(10, 17, 29, 0.92));
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.event-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.event-text {
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  line-height: 1.2;
  color: #a9bbd6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.event-text.swap {
  animation: textSwap 0.32s ease-out;
}

@keyframes textSwap {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.event-ad {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 196, 92, 0.42);
  background: linear-gradient(180deg, rgba(90, 55, 20, 0.86), rgba(48, 32, 18, 0.9));
  color: #ffd88a;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  animation: adPulse 1.4s ease-in-out infinite;
}

.event-ad .mp-icon {
  width: 11px;
  height: 11px;
}

.event-ad:active {
  transform: scale(0.94);
}

@keyframes adPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 176, 70, 0); }
  50% { box-shadow: 0 0 14px rgba(255, 176, 70, 0.35); }
}

.event-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 0.2s;
}

.event-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ffd27a);
}

.event-bar.warning {
  border-color: rgba(255, 77, 94, 0.55);
  background: linear-gradient(90deg, rgba(74, 18, 30, 0.92), rgba(34, 12, 22, 0.94));
  animation: warnBar 0.55s ease-in-out infinite alternate;
}

.event-bar.warning .event-icon,
.event-bar.warning .event-text {
  color: #ff9aa5;
}

.event-bar.warning .event-progress {
  opacity: 1;
}

.event-bar.warning .event-progress span {
  background: linear-gradient(90deg, var(--danger), #ffb36b);
}

.event-bar.challenge {
  border-color: rgba(255, 138, 61, 0.5);
  background: linear-gradient(90deg, rgba(53, 31, 15, 0.92), rgba(20, 18, 26, 0.94));
}

.event-bar.challenge .event-text {
  color: #ffd09f;
}

.event-bar.challenge .event-progress {
  opacity: 1;
}

.event-bar.result {
  border-color: rgba(255, 196, 92, 0.5);
}

@keyframes warnBar {
  0% { box-shadow: 0 0 0 rgba(255, 77, 94, 0); }
  100% { box-shadow: 0 0 20px rgba(255, 77, 94, 0.24); }
}

/* ---------- 棋盘 ---------- */
.board-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-halo {
  position: absolute;
  width: 82%;
  height: 70%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 138, 61, 0.2), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(56, 232, 255, 0.12), transparent 60%);
  filter: blur(34px);
  pointer-events: none;
}

#board {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(126, 170, 230, 0.22),
    0 0 0 4px rgba(8, 13, 23, 0.72),
    0 18px 48px rgba(0, 0, 0, 0.62),
    0 0 46px rgba(255, 138, 61, 0.13);
  touch-action: none;
}

.toast {
  position: absolute;
  z-index: 3;
  top: 12%;
  left: 50%;
  transform: translate(-50%, -8px);
  max-width: 86%;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid rgba(255, 196, 92, 0.38);
  background: rgba(10, 17, 29, 0.92);
  color: #ffe0b0;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 操作按钮 ---------- */
.controls {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.ctrl {
  position: relative;
  height: 62px;
  padding: 0;
  border-radius: 15px;
  border: 1px solid rgba(126, 170, 230, 0.18);
  background:
    linear-gradient(180deg, rgba(27, 42, 66, 0.95), rgba(10, 17, 29, 0.98));
  color: #d8e7ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.08s ease, background 0.12s, border-color 0.12s;
  touch-action: none;
}

.ctrl .mp-icon {
  width: 22px;
  height: 22px;
  opacity: 0.92;
}

.ctrl:active,
.ctrl.pressed {
  transform: translateY(2px) scale(0.965);
  border-color: rgba(255, 138, 61, 0.55);
  background: linear-gradient(180deg, rgba(45, 55, 78, 0.98), rgba(16, 22, 34, 0.98));
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ctrl-rotate {
  border-color: rgba(255, 190, 128, 0.7);
  background: linear-gradient(180deg, #ffae6b, #f4771f);
  color: #2b1102;
  box-shadow:
    0 8px 22px rgba(244, 119, 31, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ctrl-rotate .mp-icon {
  opacity: 1;
}

.ctrl-rotate:active,
.ctrl-rotate.pressed {
  background: linear-gradient(180deg, #ffc08a, #ff8a3d);
  border-color: #ffd6ad;
}

.ctrl-drop {
  border-color: rgba(56, 232, 255, 0.34);
  background: linear-gradient(180deg, rgba(22, 54, 70, 0.96), rgba(9, 24, 36, 0.98));
  color: #bff5ff;
}

.ctrl-drop .mp-icon {
  color: var(--cyan);
}

.ctrl-drop:active,
.ctrl-drop.pressed {
  background: linear-gradient(180deg, rgba(34, 86, 104, 0.98), rgba(12, 38, 50, 0.98));
  border-color: rgba(56, 232, 255, 0.6);
}

/* ---------- 弹层通用 ---------- */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(3, 6, 12, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-layer.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 22px 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(126, 170, 230, 0.22);
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(255, 138, 61, 0.12), transparent 60%),
    linear-gradient(160deg, #121d30, #080e19);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  text-align: center;
}

.modal-layer.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: linear-gradient(180deg, rgba(255, 155, 80, 0.22), rgba(255, 138, 61, 0.06));
  border: 1px solid rgba(255, 160, 86, 0.35);
  box-shadow: 0 0 26px rgba(255, 138, 61, 0.18);
}

.modal-badge .mp-icon {
  width: 26px;
  height: 26px;
}

.modal-badge.danger {
  color: #ff8a9a;
  background: linear-gradient(180deg, rgba(255, 77, 94, 0.2), rgba(255, 77, 94, 0.05));
  border-color: rgba(255, 77, 94, 0.34);
  box-shadow: 0 0 26px rgba(255, 77, 94, 0.16);
}

.modal-badge.accent {
  color: #ffe37a;
  background: linear-gradient(180deg, rgba(255, 214, 90, 0.2), rgba(255, 138, 61, 0.05));
  border-color: rgba(255, 214, 90, 0.32);
}

.modal-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.modal-sub {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.modal-sub b {
  color: var(--orange-2);
  font-weight: 800;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 15px 0 4px;
}

.mini-stats div {
  padding: 9px 4px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(14, 23, 39, 0.78);
}

.mini-stats span {
  display: block;
  font-size: 9.5px;
  color: var(--muted-2);
  margin-bottom: 2px;
}

.mini-stats b {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

.btn {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.08s, filter 0.12s, opacity 0.12s;
}

.btn .mp-icon {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: scale(0.975);
  filter: brightness(1.08);
}

.btn-primary {
  color: #2b1102;
  background: linear-gradient(135deg, #ffc388, #ff8a3d 62%, #f4771f);
  border-color: rgba(255, 214, 173, 0.8);
  box-shadow: 0 10px 26px rgba(244, 119, 31, 0.3);
}

.btn-ad {
  color: #c8f7ff;
  background: linear-gradient(135deg, rgba(30, 63, 82, 0.95), rgba(13, 27, 43, 0.98));
  border-color: rgba(56, 232, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-ad .mp-icon {
  color: var(--cyan);
}

.btn-ghost {
  color: var(--muted);
  background: rgba(16, 27, 44, 0.55);
  border-color: rgba(126, 170, 230, 0.16);
}

.btn:disabled {
  opacity: 0.42;
  cursor: default;
  filter: none;
}

.modal-tip {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted-2);
}

/* 结算 */
.over-card {
  padding-top: 24px;
  overflow: hidden;
}

.over-glow {
  position: absolute;
  top: -70px;
  left: 50%;
  width: 240px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 77, 94, 0.18), transparent 68%);
  pointer-events: none;
}

.over-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ff9aa5;
}

.over-score {
  margin-top: 2px;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 138, 61, 0.38);
}

.over-best {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin-top: 2px;
}

.over-best b {
  color: var(--orange-2);
}

.over-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 15px;
}

.over-stats div {
  padding: 9px 4px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(14, 23, 39, 0.78);
}

.over-stats span {
  display: block;
  font-size: 9.5px;
  color: var(--muted-2);
  margin-bottom: 2px;
}

.over-stats b {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 闪烁率提升 */
.boost-meter {
  margin-top: 18px;
  padding: 12px 12px 9px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(11, 18, 31, 0.7);
}

.boost-track {
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.boost-track span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a3d, #ffe37a);
  box-shadow: 0 0 12px rgba(255, 196, 92, 0.55);
  transition: width 0.3s ease;
}

.boost-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted-2);
}

/* 广告遮罩 */
.ad-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 6, 12, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.ad-layer.show {
  opacity: 1;
  pointer-events: auto;
}

.ad-box {
  text-align: center;
  padding: 24px;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--orange);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ad-title {
  font-size: 15px;
  font-weight: 800;
  color: #f2f7ff;
}

.ad-sub {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-2);
}

.hidden {
  display: none !important;
}

/* 短屏适配 */
@media (max-height: 720px) {
  .app {
    gap: 6px;
    padding-top: calc(var(--safe-top) + 7px);
    padding-bottom: calc(var(--safe-bottom) + 7px);
  }
  .score-card {
    padding: 6px 12px 7px;
  }
  .score {
    font-size: 25px;
  }
  .next-card {
    flex-basis: 82px;
    width: 82px;
  }
  .next-wrap {
    height: 36px;
  }
  #next {
    width: 58px;
    height: 34px;
  }
  .next-hint {
    display: none;
  }
  .event-bar {
    height: 32px;
    min-height: 32px;
  }
  .ctrl {
    height: 56px;
  }
  .ctrl .mp-icon {
    width: 19px;
    height: 19px;
  }
  .toast {
    font-size: 10.5px;
    padding: 7px 11px;
  }
}

@media (max-height: 620px) {
  .status-row {
    height: 30px;
  }
  .chip,
  .icon-btn {
    height: 28px;
  }
  .event-bar {
    height: 30px;
    min-height: 30px;
  }
  .ctrl {
    height: 50px;
  }
  .ctrl span {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
