/* ============================================================
   像素打砖块 · Pixel Breaker
   移动端优先 / 竖屏铺满 / 无顶栏
   ============================================================ */

:root {
  --orange: #FF8A3D;
  --orange-hot: #FFA85C;
  --orange-deep: #C24E0E;
  --orange-ink: #7A2E00;
  --cream: #FFF3E4;
  --ink: #F2F4FC;
  --muted: #9AA4C2;
  --dim: #7C87A6;
  --panel: #161D35;
  --panel-deep: #0F1427;
  --line: #2C3658;
  --bg: #090C18;
  --pixel: "SFMono-Regular", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;
  --ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

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

html,
body {
  margin: 0;
  height: 100%;
  background: #05060c;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
  color: var(--ink);
  font-family: var(--ui);
  -webkit-user-select: none;
  user-select: none;
}

.safe-probe-top,
.safe-probe-bottom {
  position: fixed;
  left: 0;
  width: 1px;
  visibility: hidden;
  pointer-events: none;
}
.safe-probe-top {
  top: 0;
  height: env(safe-area-inset-top, 0px);
}
.safe-probe-bottom {
  bottom: 0;
  height: env(safe-area-inset-bottom, 0px);
}

.game-shell {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(90% 52% at 50% 8%, rgba(124, 91, 255, 0.32), rgba(124, 91, 255, 0) 68%),
    radial-gradient(70% 40% at 50% 100%, rgba(255, 138, 61, 0.1), rgba(255, 138, 61, 0) 70%),
    linear-gradient(180deg, #191438 0%, #211a4c 52%, #0b0920 100%);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  isolation: isolate;
}

@media (min-width: 560px) {
  .game-shell {
    box-shadow: 0 0 0 1px #1d2540, 0 0 90px rgba(255, 138, 61, 0.09);
  }
}

#gameCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.crt,
.vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.crt {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
  opacity: 0.65;
}

.vignette {
  background: radial-gradient(
    120% 78% at 50% 42%,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.42) 100%
  );
}

/* ---------- HUD ---------- */

.hud {
  position: absolute;
  top: calc(var(--sat) + 8px);
  left: 14px;
  right: 14px;
  height: 56px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.hud.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}

.hud-left {
  width: 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hearts {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 15px;
}

.hearts .mp-icon {
  width: 15px;
  height: 15px;
  color: var(--orange);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hearts .mp-icon.off {
  opacity: 0.22;
  transform: scale(0.82);
}

.level-tag {
  font: 700 10px/1 var(--pixel);
  letter-spacing: 0.16em;
  color: var(--dim);
}

.level-tag b {
  color: var(--orange-hot);
  font-size: 11px;
}

.hud-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 110px;
}

.score {
  font: 800 29px/1 var(--pixel);
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 2px 0 var(--orange-ink), 0 0 20px rgba(255, 138, 61, 0.55);
  font-variant-numeric: tabular-nums;
}

.mid-under {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 13px;
}

.best-mini {
  font: 700 9px/1 var(--pixel);
  letter-spacing: 0.12em;
  color: #7c87a6;
  white-space: nowrap;
}

.best-mini b {
  color: #aeb7d4;
}

.combo-chip {
  font: 800 9px/1 var(--pixel);
  color: #1a0d04;
  background: var(--orange-hot);
  padding: 3px 5px;
  border-radius: 3px;
  opacity: 0;
  transform: scale(0.6) translateY(2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.combo-chip.on {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hud-right {
  width: 92px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: auto;
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(18, 24, 45, 0.82);
  color: #ccd4ec;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.08s ease, background 0.12s ease;
  cursor: pointer;
  font-family: var(--ui);
}

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

.icon-btn:active {
  transform: translateY(2px);
  background: #232c4c;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.4);
}

/* ---------- 提示 / 状态 ---------- */

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--sab) + 20px);
  z-index: 5;
  text-align: center;
  font: 700 12px/1.4 var(--ui);
  letter-spacing: 0.08em;
  color: rgba(255, 216, 186, 0.82);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hint.is-hidden {
  opacity: 0;
  transform: translateY(5px);
}

.buffs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--sab) + 15px);
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.buffs.is-hidden {
  opacity: 0;
}

.buff {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  font: 700 10px/1 var(--pixel);
  letter-spacing: 0.03em;
  background: rgba(12, 16, 32, 0.85);
  border: 1px solid currentColor;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.buff-wide {
  color: #4fd6c8;
}
.buff-slow {
  color: #a598ff;
}

/* ---------- 屏幕层 ---------- */

.screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
}

.screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}

.screen-menu {
  justify-content: space-between;
  padding: calc(var(--sat) + 26px) 22px calc(var(--sab) + 22px);
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(78% 38% at 50% 14%, rgba(255, 138, 61, 0.18), rgba(255, 138, 61, 0) 72%),
    linear-gradient(
      180deg,
      rgba(7, 9, 18, 0.1) 0%,
      rgba(7, 9, 18, 0.3) 44%,
      rgba(7, 9, 18, 0.88) 78%,
      rgba(7, 9, 18, 0.96) 100%
    );
}

.menu-sound {
  position: absolute;
  top: calc(var(--sat) + 16px);
  right: 16px;
  width: 42px;
  height: 42px;
}

.menu-top {
  padding-top: 4vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 138, 61, 0.42);
  border-radius: 5px;
  background: rgba(255, 138, 61, 0.09);
  color: var(--orange-hot);
  font: 700 10px/1 var(--pixel);
  letter-spacing: 0.26em;
}

.game-title {
  margin: 17px 0 0;
  font-family: var(--ui);
  font-size: clamp(38px, 11.6vw, 56px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0.035em;
  color: #fff7ee;
  text-shadow:
    3px 0 0 #b84a0c,
    -3px 0 0 #b84a0c,
    0 3px 0 #b84a0c,
    0 -3px 0 #b84a0c,
    3px 3px 0 #7c2c02,
    6px 6px 0 rgba(0, 0, 0, 0.35);
}

.game-title span {
  color: #ffb570;
}

.title-en {
  margin: 14px 0 0;
  font: 700 12px/1 var(--pixel);
  letter-spacing: 0.38em;
  color: #ffc697;
  opacity: 0.78;
}

.brick-ribbon {
  display: flex;
  gap: 4px;
  margin-top: 22px;
  max-width: 300px;
}

.brick-ribbon i {
  flex: 1;
  height: 17px;
  border-radius: 2px;
  background: var(--c);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.32),
    inset -2px -3px 0 rgba(0, 0, 0, 0.3),
    0 3px 0 rgba(0, 0, 0, 0.45);
  animation: ribbon-bob 2.8s ease-in-out infinite;
}

.brick-ribbon i:nth-child(2n) {
  animation-delay: -0.7s;
}
.brick-ribbon i:nth-child(3n) {
  animation-delay: -1.4s;
}

@keyframes ribbon-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.menu-hero {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 300px;
  height: clamp(150px, 23vh, 220px);
  margin: auto auto;
  padding: 22px 16px 0;
  border: 1px solid rgba(255, 138, 61, 0.24);
  border-radius: 15px;
  overflow: hidden;
  background:
    radial-gradient(72% 58% at 50% 24%, rgba(255, 138, 61, 0.13), transparent 72%),
    linear-gradient(180deg, rgba(18, 25, 46, 0.7), rgba(8, 11, 23, 0.56));
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.4),
    0 12px 30px rgba(0, 0, 0, 0.26);
}

.menu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
  opacity: 0.7;
}

.hero-hud {
  display: flex;
  justify-content: space-between;
  font: 700 8px/1 var(--pixel);
  letter-spacing: 0.16em;
  color: #7984a6;
}

.hero-bricks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 9px;
}

.hero-bricks i {
  height: 15px;
  border-radius: 2px;
  background: var(--c);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.34),
    inset -2px -2px 0 rgba(0, 0, 0, 0.3),
    0 3px 0 rgba(0, 0, 0, 0.42);
}

.hero-ball {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 1px;
  background: #fff7ec;
  box-shadow:
    0 0 12px rgba(255, 138, 61, 0.9),
    0 0 0 2px rgba(255, 138, 61, 0.2);
  animation: hero-ball 2.7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hero-paddle {
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 72px;
  height: 9px;
  margin-left: -36px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffc58c, #ff8a3d 55%, #e56a18);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.45),
    0 0 14px rgba(255, 138, 61, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

@keyframes hero-ball {
  0% {
    top: 62%;
    left: 50%;
  }
  18% {
    top: 50%;
    left: 37%;
  }
  46% {
    top: 34%;
    left: 64%;
  }
  62% {
    top: 34%;
    left: 51%;
  }
  100% {
    top: 62%;
    left: 48%;
  }
}

.menu-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.start-card {
  padding: 14px 14px 13px;
  border: 1px solid #2e3860;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(29, 36, 64, 0.96), rgba(17, 22, 42, 0.97));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.best-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 12px;
  font-size: 13px;
  color: var(--muted);
}

.best-line .mp-icon {
  width: 17px;
  height: 17px;
  color: var(--orange-hot);
}

.best-line b {
  margin-left: auto;
  font: 800 21px/1 var(--pixel);
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.best-line.compact {
  padding: 10px 0 16px;
  justify-content: center;
  gap: 7px;
  border-top: 1px dashed #2a3352;
}

.best-line.compact b {
  margin-left: 6px;
  font-size: 17px;
}

.pixel-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 2px solid #2a1206;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffb066, #ff8a3d 46%, #f0731f);
  color: #2a1206;
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow:
    0 5px 0 #a3440b,
    0 10px 22px rgba(255, 122, 30, 0.26),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.07s ease, box-shadow 0.07s ease, filter 0.12s ease;
  overflow: hidden;
}

.pixel-btn .mp-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.pixel-btn:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #a3440b,
    0 3px 8px rgba(255, 122, 30, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.start-btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -35%;
  width: 26%;
  height: 220%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(18deg);
  animation: btn-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0%,
  55% {
    left: -35%;
  }
  78%,
  100% {
    left: 120%;
  }
}

.pixel-btn.ghost {
  min-height: 48px;
  border-color: #37426c;
  background: linear-gradient(180deg, #212a4b, #18203a);
  color: #d7ddf2;
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    0 4px 0 #0a0e1c,
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.pixel-btn.ghost:active {
  box-shadow: 0 1px 0 #0a0e1c;
}

/* 激励视频按钮：金币色，和普通主按钮区分 */
.pixel-btn.ad-btn {
  border-color: #4a2a02;
  background: linear-gradient(180deg, #ffe29b, #ffc24b 46%, #f3a31c);
  color: #342005;
  box-shadow:
    0 5px 0 #a86a00,
    0 10px 24px rgba(255, 194, 75, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.55);
}

.pixel-btn.ad-btn:active {
  box-shadow:
    0 1px 0 #a86a00,
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.pixel-btn.ad-btn .ad-tag {
  position: absolute;
  top: 6px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 4px;
  border-radius: 3px;
  background: #342005;
  color: #ffd97a;
  font: 800 8px/1 var(--pixel);
  letter-spacing: 0.08em;
}

.pixel-btn.ad-btn:disabled {
  cursor: default;
  filter: grayscale(0.55);
  opacity: 0.55;
  transform: none;
  box-shadow: 0 3px 0 #6e4a16;
}

.ad-status {
  min-height: 15px;
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #8f9ab9;
}

.panel .pixel-btn.ad-btn {
  margin-top: 12px;
}

.panel .pixel-btn.ad-btn + .ad-status + .pixel-btn {
  margin-top: 13px;
}

.game-toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--sab) + 76px);
  z-index: 80;
  max-width: min(86vw, 360px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 194, 75, 0.5);
  border-radius: 9px;
  background: rgba(12, 10, 28, 0.94);
  color: #ffe7b8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

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

.control-hints {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.control-hints span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.control-hints .mp-icon {
  width: 15px;
  height: 15px;
  color: #ffb570;
}

.footnote {
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #7c87a6;
}

/* ---------- 居中弹层 ---------- */

.screen-center {
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--sat) + 20px) 20px calc(var(--sab) + 20px);
  background:
    radial-gradient(80% 58% at 50% 50%, rgba(12, 16, 32, 0.66), rgba(5, 7, 14, 0.94));
}

.panel {
  width: 100%;
  max-width: 358px;
  padding: 24px 20px 20px;
  text-align: center;
  border: 1px solid #2e3860;
  border-radius: 19px;
  background: linear-gradient(180deg, #19213b, #10152a);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.screen-center:not(.is-hidden) .panel {
  animation: panel-in 0.24s cubic-bezier(0.2, 1.34, 0.5, 1) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.panel-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-hot);
  background: rgba(255, 138, 61, 0.13);
  border: 1px solid rgba(255, 138, 61, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.panel-icon .mp-icon {
  width: 28px;
  height: 28px;
}

.panel-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff6ec;
}

.panel-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.panel .pixel-btn {
  margin-top: 18px;
}

.btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}

.btn-grid .pixel-btn {
  margin-top: 0;
}

.badge-caps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 5px;
  border: 1px solid rgba(255, 138, 61, 0.36);
  background: rgba(255, 138, 61, 0.1);
  color: var(--orange-hot);
  font: 700 10px/1 var(--pixel);
  letter-spacing: 0.2em;
}

.badge-caps b {
  font-size: 11px;
}

.badge-caps.danger {
  color: #ff8ea6;
  border-color: rgba(255, 94, 122, 0.38);
  background: rgba(255, 94, 122, 0.1);
}

.stat-list {
  margin: 18px 0 2px;
  border-top: 1px dashed #2a3352;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  border-bottom: 1px dashed #2a3352;
  font-size: 13px;
  color: var(--muted);
}

.stat-row b {
  font: 800 16px/1 var(--pixel);
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.final-score {
  margin: 18px 0 0;
  font: 800 clamp(44px, 14vw, 58px) / 1 var(--pixel);
  color: #ffffff;
  text-shadow:
    0 3px 0 var(--orange-ink),
    0 0 26px rgba(255, 138, 61, 0.42);
  font-variant-numeric: tabular-nums;
}

.record-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  margin-top: 10px;
  border-radius: 4px;
  background: var(--orange-hot);
  color: #2a1206;
  font: 800 10px/1 var(--pixel);
  letter-spacing: 0.12em;
  box-shadow: 0 3px 0 #a3440b;
  animation: tag-pop 0.5s cubic-bezier(0.2, 1.5, 0.5, 1) both;
}

.record-tag.is-hidden {
  display: none;
}

@keyframes tag-pop {
  0% {
    transform: scale(0.5) rotate(-6deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.08) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

/* ---------- 小屏适配 ---------- */

@media (max-height: 700px) {
  .menu-top {
    padding-top: 0;
  }
  .game-title {
    margin-top: 12px;
    font-size: clamp(32px, 10vw, 44px);
  }
  .title-en {
    margin-top: 9px;
  }
  .brick-ribbon {
    margin-top: 15px;
  }
  .start-card {
    padding: 12px;
  }
  .best-line {
    padding-bottom: 9px;
  }
  .pixel-btn {
    min-height: 50px;
  }
  .menu-hero {
    height: clamp(126px, 21vh, 170px);
    padding-top: 18px;
  }
  .hero-bricks i {
    height: 12px;
  }
  .panel {
    padding: 20px 18px 17px;
  }
  .panel-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 9px;
  }
}

@media (max-height: 560px) {
  .menu-hero {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brick-ribbon i,
  .start-btn::after,
  .hero-ball {
    animation: none;
  }
  .screen-center:not(.is-hidden) .panel {
    animation: none;
  }
}
