/* ==========================================================================
   奶娃战机 — 样式表（全部本地，无任何外部依赖）
   ========================================================================== */

:root {
  --bg-deep: #05070f;
  --panel: rgba(15, 22, 42, 0.86);
  --panel-line: rgba(130, 200, 255, 0.28);
  --ink: #eaf4ff;
  --ink-dim: #9db4d4;
  --cyan: #6fe3ff;
  --cyan-deep: #2aa6d8;
  --gold: #ffd166;
  --pink: #ff8fb1;
  --danger: #ff6b6b;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

body::before {
  /* 用「天使降临」当页面氛围背景 */
  content: "";
  position: fixed;
  inset: -6%;
  background: url("../assets/menu_bg.jpg") center/cover no-repeat;
  opacity: 0.30;
  filter: blur(3px) saturate(1.15);
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(60,120,220,0.20), transparent 60%),
              linear-gradient(180deg, rgba(5,7,15,0.55), rgba(5,7,15,0.92));
  z-index: 0;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------ 舞台 */
#stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: min(100vw, calc(100dvh * 0.62), 560px);
  overflow: hidden;
  background: #04060d;
  box-shadow: 0 0 0 1px rgba(120, 190, 255, 0.18),
              0 24px 70px rgba(0, 0, 0, 0.75);
  border-radius: 0;
}
@media (min-width: 620px) and (min-height: 560px) {
  #stage { border-radius: 22px; height: min(100dvh - 24px, 1040px); }
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#game.dragging { cursor: grabbing; }

/* ------------------------------------------------------------------ HUD */
#hud {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 10px 12px 12px;
  pointer-events: none;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.82), rgba(4, 8, 18, 0.0));
}
#hud .icon-btn { pointer-events: auto; }

.hud-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hud-top { align-items: flex-start; flex-wrap: nowrap; }
/* 底部这一行元素多（时间/难度/歼灭/延迟 + 两个按钮），窄屏上必须允许换行，
   否则最后那颗按钮会被挤到屏幕外 —— 客人右上角的「离开房间」就是这么跑丢的。
   同时让统计项可以被压缩、不允许换行内部折断。 */
.hud-bottom { margin-top: 8px; gap: 8px; row-gap: 6px; }
.hud-bottom .stat { flex: 0 1 auto; min-width: 0; white-space: nowrap; font-size: 11.5px; }
.hud-bottom .spacer { flex: 1 1 auto; min-width: 4px; }
.hud-bottom .icon-btn { flex: 0 0 auto; }

.hp-wrap { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(150, 220, 255, 0.55);
  background: rgba(10, 20, 40, 0.6);
  box-shadow: 0 0 12px rgba(90, 180, 255, 0.35);
  flex: none;
}
.hp-col { flex: 1; min-width: 0; }
.hp-bar {
  position: relative;
  height: 16px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(150, 210, 255, 0.30);
  overflow: hidden;
}
.hp-fill {
  height: 100%;
  width: 100%;
  border-radius: 9px 0 0 9px;
  background: linear-gradient(90deg, #46e08a, #9bf7c0);
  transition: width 0.18s ease, background 0.3s ease;
}
.hp-fill.warn { background: linear-gradient(90deg, #ffc857, #ffe6a8); }
.hp-fill.danger { background: linear-gradient(90deg, #ff5f6d, #ff9a9e); }
.hp-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  color: #06121f; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.buffs { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.buff {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(110, 220, 255, 0.16);
  border: 1px solid rgba(130, 220, 255, 0.32);
  color: #cfeeff;
}
.buff b { color: #fff; }

.score-wrap { text-align: right; flex: none; }
.score-label { font-size: 10px; letter-spacing: 3px; color: var(--ink-dim); }
.score-value {
  font-size: 26px; font-weight: 800; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 14px rgba(110, 220, 255, 0.65);
}
.combo {
  font-size: 11px; color: var(--gold); font-weight: 700;
  opacity: 0.35; transition: opacity 0.2s, transform 0.2s;
}
.combo.active { opacity: 1; transform: scale(1.06); }

.stat {
  font-size: 12px; color: var(--ink-dim);
  background: rgba(10, 18, 34, 0.5);
  border: 1px solid rgba(120, 190, 255, 0.16);
  border-radius: 999px; padding: 3px 9px;
  white-space: nowrap;
}
.stat b { color: #fff; font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }

.icon-btn {
  pointer-events: auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(140, 210, 255, 0.35);
  background: rgba(12, 22, 42, 0.72);
  color: var(--ink); font-size: 15px; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer; transition: transform 0.12s, background 0.2s;
}
.icon-btn:hover { background: rgba(30, 60, 110, 0.85); }
.icon-btn:active { transform: scale(0.92); }

/* ------------------------------------------------------------- 弹窗面板 */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  /* 注意：这里不能用 align-items:center。内容比屏幕高的时候，
     居中会让溢出部分同时向上向下跑，顶部那一截怎么滚都够不到
     （「玩法说明看不到最上面」就是这个坑）。
     改成 flex-start + 给 .panel 加 margin:auto —— 有空间时一样居中，
     没空间时从顶部开始、可以正常滚动。 */
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(80% 60% at 50% 20%, rgba(20, 40, 80, 0.55), rgba(3, 5, 12, 0.9));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 5;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: fade-in 0.25s ease;
}
.screen.hidden, .hidden { display: none !important; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

.panel {
  width: 100%;
  max-width: 420px;
  /* 配合 .screen 的 flex-start：有空间时上下居中，内容超高时从顶部开始且能滚到底 */
  margin: auto;
  flex: 0 0 auto;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: pop-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.panel h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: 1px; }
.panel h3 { margin: 16px 0 8px; font-size: 14px; color: var(--cyan); letter-spacing: 1px; text-align: left; }

.title {
  margin: 4px 0 0;
  font-size: 40px; letter-spacing: 6px; font-weight: 900;
  background: linear-gradient(180deg, #ffffff, #8fd8ff 55%, #4aa7e8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(80, 180, 255, 0.55));
}
.subtitle {
  margin: 2px 0 8px; font-size: 11px; letter-spacing: 6px; color: var(--ink-dim);
}
.menu-hero {
  width: min(62%, 210px);
  display: block; margin: 2px auto 6px;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
  animation: float-y 3.4s ease-in-out infinite;
}
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.tagline { color: var(--ink-dim); font-size: 13px; margin: 6px 0 16px; }

.btn {
  display: block; width: 100%;
  margin: 9px 0 0; padding: 13px 16px;
  font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 2px;
  border-radius: 14px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, filter 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.975); }
.btn-primary {
  background: linear-gradient(180deg, #63d8ff, #2b8fd6);
  color: #04121f; border-color: rgba(190, 240, 255, 0.7);
  box-shadow: 0 8px 22px rgba(50, 160, 230, 0.42);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink); border-color: rgba(150, 210, 255, 0.3);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* 作者 GitHub 主页入口（暂停 / 结算底部） */
.btn-github {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 16px;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  border-color: rgba(150, 210, 255, 0.22);
  color: #cfe2f7;
}
.btn-github:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-color: rgba(170, 225, 255, 0.5);
}
.btn-github .gh-icon { flex: none; opacity: 0.9; transition: transform 0.2s; }
.btn-github:hover .gh-icon { transform: scale(1.12) rotate(-6deg); opacity: 1; }

.best-line { margin-top: 14px; font-size: 13px; color: var(--ink-dim); }
.best-line b { color: var(--gold); font-size: 16px; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- 联机 */
.btn-multi { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-multi small { font-size: 11px; font-weight: 500; color: var(--ink-dim); letter-spacing: 0; }
.multi-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #57e08a; flex: none;
  box-shadow: 0 0 8px rgba(87, 224, 138, 0.9);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }

.mp-hint { font-size: 12.5px; color: var(--ink-dim); margin: 0 0 12px; line-height: 1.6; }
.mp-hint.small { font-size: 11px; margin: 6px 0 0; }
.mp-status { font-size: 12.5px; color: var(--cyan); margin: 10px 0 0; min-height: 18px; }
.mp-status.error { color: var(--danger); }
.mp-status.ok { color: #7ff0a8; }

.session-id {
  font-size: 46px; font-weight: 900; letter-spacing: 12px; line-height: 1.1;
  color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(110, 220, 255, 0.85);
  margin: 4px 0 12px;
}
.session-id.small { font-size: 30px; letter-spacing: 8px; margin-bottom: 10px; }

.qr-box {
  display: inline-block; padding: 10px; margin: 4px auto 10px;
  background: #fff; border-radius: 14px; line-height: 0;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
/* 二维码按 canvas 实际像素 1:1 显示，不做任何 CSS 缩放
   （缩放会让模块宽度在 7px/6px 之间跳，很多扫码器就读不出来了） */
.qr-box canvas { display: block; width: auto; height: auto; max-width: 100%; image-rendering: pixelated; }

.join-url { font-size: 10.5px; color: var(--ink-dim); word-break: break-all; margin: 0 0 10px; line-height: 1.5; }

.player-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 10px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(140, 200, 255, 0.28);
  color: #dcecff;
}
.chip.empty { opacity: 0.35; font-weight: 500; }
.chip.me { border-color: rgba(150, 235, 255, 0.8); box-shadow: 0 0 12px rgba(110, 220, 255, 0.35); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip.p0 .dot { background: #6fe3ff; }
.chip.p1 .dot { background: #ffd166; }
.chip.p2 .dot { background: #9dff9d; }
.chip.p3 .dot { background: #ff9ad5; }
.chip .lat { font-size: 10px; color: var(--ink-dim); font-weight: 500; }

.code-input {
  width: 100%; margin: 2px 0 4px; padding: 14px 16px;
  font-family: inherit; font-size: 34px; font-weight: 900;
  letter-spacing: 14px; text-align: center; text-indent: 14px;
  color: #fff; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(140, 200, 255, 0.35); border-radius: 14px;
  font-variant-numeric: tabular-nums; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.code-input::placeholder { color: rgba(200, 220, 245, 0.25); }
.code-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(110, 220, 255, 0.18); }

.scan-wrap { margin-top: 12px; }
.scan-wrap video {
  width: 100%; max-height: 250px; border-radius: 14px; background: #000;
  object-fit: cover; border: 1px solid rgba(140, 200, 255, 0.3);
}

.buff.charged {
  background: rgba(110, 220, 255, 0.3);
  border-color: rgba(150, 235, 255, 0.75);
  box-shadow: 0 0 10px rgba(110, 220, 255, 0.45);
}

/* 多人按钮下面的小提示 */
.mp-note {
  margin: -4px 0 10px;
  font-size: 11.5px; line-height: 1.5;
  color: var(--ink-dim);
  text-align: center;
}
.mp-note::before { content: '📶 '; }

/* ----------------------------------------------------------- 赞助作者 */
.btn-sponsor { position: relative; }
.btn-sponsor .sp-heart { color: #ff8fa3; font-size: 14px; margin-right: 7px; }
.btn-sponsor:hover .sp-heart { animation: heart-beat 0.7s ease infinite; }
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.35); }
  60% { transform: scale(1.08); }
}

.sponsor-panel { text-align: center; }
.sponsor-img {
  display: block; margin: 6px auto 10px;
  width: min(260px, 72vw); height: auto;
  border-radius: 14px; background: #fff; padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------- 观战条 */
.spectate-bar {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px;
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.18), rgba(255, 209, 102, 0.05));
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 12px;
  pointer-events: auto;
  animation: pop-in 0.3s ease;
}
.spec-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  color: #3a2400; background: linear-gradient(90deg, #ffd166, #ffb347);
  padding: 2px 9px; border-radius: 999px; flex: none;
}
.spec-text { font-size: 12px; color: #ffe9b8; }
.spec-text b { color: #fff; font-size: 13px; }
.spec-cd { font-size: 12px; color: var(--ink-dim); margin-left: auto; }
.spec-cd b { color: #ffd166; font-variant-numeric: tabular-nums; font-size: 13px; }
.spec-btn {
  flex: none; font-family: inherit; font-size: 11.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; cursor: pointer;
  color: #2a1c00; background: linear-gradient(180deg, #ffe08a, #ffc247);
  border: 1px solid rgba(255, 240, 200, 0.8);
  transition: transform 0.12s, filter 0.2s;
}
.spec-btn:hover { filter: brightness(1.08); }
.spec-btn:active { transform: scale(0.95); }

/* 联机延迟指示 */
.net-stat b { color: #9ff0b8; }
.net-stat.warn b { color: var(--gold); }
.net-stat.bad b { color: var(--danger); }

/* 房主掉线 / 卡住的提示条 */
.stall-bar {
  margin-top: 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 11px;
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.22), rgba(255, 107, 107, 0.06));
  border: 1px solid rgba(255, 120, 120, 0.55);
  border-radius: 12px;
  pointer-events: auto;
  animation: pop-in 0.3s ease;
}
.stall-text { font-size: 12px; color: #ffd9d9; }
.stall-text b { color: #fff; font-variant-numeric: tabular-nums; }

/* 轻提示 */
.toast {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  max-width: 88%;
  padding: 9px 16px;
  font-size: 12.5px; line-height: 1.5; text-align: center;
  color: #eaf4ff;
  background: rgba(12, 22, 42, 0.94);
  border: 1px solid rgba(140, 200, 255, 0.4);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 8;
  animation: toast-in 0.22s ease;
}
.toast.warn { border-color: rgba(255, 209, 102, 0.65); color: #ffe9b8; }
.toast.error { border-color: rgba(255, 120, 120, 0.7); color: #ffd9d9; }
.toast.hidden { display: none !important; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------------- 说明页 */
.help-list { text-align: left; padding-left: 18px; margin: 0 0 6px; color: #cfe2f7; font-size: 13px; line-height: 1.7; }
.help-list b { color: var(--cyan); }
.items-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.item-card {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(140, 200, 255, 0.16);
  border-radius: 12px; padding: 7px 10px;
}
.item-card img { width: 42px; height: 42px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)); }
.item-card b { display: block; font-size: 13px; color: #fff; }
.item-card span { font-size: 11.5px; color: var(--ink-dim); }

/* --------------------------------------------------------------- 暂停页 */
.pause-stats { display: flex; gap: 10px; margin: 4px 0 12px; }
.pause-stats > div {
  flex: 1; background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 10px;
  border: 1px solid rgba(140, 200, 255, 0.16);
}
.pause-stats span { display: block; font-size: 11px; color: var(--ink-dim); }
.pause-stats b { font-size: 20px; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- 结算页 */
.over-panel { max-width: 440px; }
.over-art {
  width: 116px; display: block; margin: 0 auto 6px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
  animation: float-y 3s ease-in-out infinite;
}
.new-record {
  display: inline-block; margin: 0 auto 8px; padding: 4px 14px;
  background: linear-gradient(90deg, #ffd166, #ffb347);
  color: #3a2400; font-weight: 900; font-size: 13px; letter-spacing: 2px;
  border-radius: 999px; animation: pop-in 0.4s ease;
}
.result-score {
  display: flex; flex-direction: column; align-items: center;
  margin: 4px 0 12px; padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(90, 190, 255, 0.16), rgba(90, 190, 255, 0.04));
  border: 1px solid rgba(130, 210, 255, 0.3);
}
.result-score span { font-size: 11px; letter-spacing: 3px; color: var(--ink-dim); }
.result-score b {
  font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 22px rgba(110, 220, 255, 0.8);
}
.result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.result-grid > div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(140, 200, 255, 0.14);
  border-radius: 12px; padding: 8px 6px;
}
.result-grid span { display: block; font-size: 11px; color: var(--ink-dim); }
.result-grid b { font-size: 17px; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- 加载页 */
.loading-panel p { color: var(--ink-dim); font-size: 13px; margin: 12px 0 8px; }
.loading-egg {
  width: 54px; height: 66px; margin: 6px auto 0;
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 38% 30%, #fff9e0, #ffd977 60%, #e8b53c);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  animation: bob 1.1s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-10px) scaleY(1.05); } }
.loading-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.12); overflow: hidden; }
.loading-bar > div {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #63d8ff, #9bf7c0);
  transition: width 0.2s ease;
}

/* ------------------------------------------------------------ 横屏提示 */
.rotate-hint {
  display: none;
  position: fixed;
  left: 50%; bottom: 10px; transform: translateX(-50%);
  z-index: 9; margin: 0; padding: 6px 14px;
  font-size: 12px; color: #cfe2f7;
  background: rgba(10, 20, 40, 0.8);
  border: 1px solid rgba(130, 200, 255, 0.28);
  border-radius: 999px;
}
@media (orientation: landscape) and (max-height: 520px) {
  .rotate-hint { display: block; }
}

/* --------------------------------------------------------- 电脑端微调 */
@media (min-width: 900px) {
  #hud { font-size: 14px; padding: 14px 16px; }
  .score-value { font-size: 30px; }
  .items-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}
