/* =========================================================
   大肥鱼保卫战 · 界面样式
   设计稿 1280×720，整体等比缩放适配任何屏幕
   ========================================================= */
:root {
  --ink: #eaf4ff;
  --dim: #9db4d8;
  --blue: #4a9fe8;
  --cyan: #7fe3ff;
  --gold: #ffd166;
  --pink: #ff7fa8;
  --panel: rgba(14, 26, 52, .88);
  --panel-2: rgba(24, 42, 78, .92);
  --line: rgba(120, 190, 255, .28);
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
}

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

html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden;
  background: #050a18;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#app {
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, #16305e 0%, #0a1430 45%, #050a18 100%);
  overflow: hidden;
}

#stage {
  position: absolute;
  left: 50%; top: 50%;
  width: 1280px; height: 720px;
  margin-left: -640px; margin-top: -360px;
  transform: scale(var(--s, 1));
  transform-origin: center center;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(120, 190, 255, .18), 0 40px 120px rgba(0, 0, 0, .7);
  background: #0a1230;
}

#cv {
  position: absolute; inset: 0;
  width: 1280px; height: 720px;
  display: block;
  cursor: crosshair;
}

.hidden { display: none !important; }

/* ---------------- 通用按钮 ---------------- */
.btn {
  position: relative;
  border: 0;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  color: #eaf6ff;
  background: linear-gradient(180deg, rgba(90, 160, 240, .35), rgba(40, 80, 160, .45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 0 rgba(8, 18, 40, .55), 0 12px 26px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease;
  letter-spacing: .5px;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 3px 0 rgba(8, 18, 40, .55); }
.btn.primary {
  background: linear-gradient(180deg, #6fc3ff, #2f7fd4 55%, #1f5ba8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 0 #12386e, 0 14px 30px rgba(40, 140, 255, .4);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 40, 90, .6);
}
.btn.ghost {
  background: rgba(18, 34, 64, .72);
  border: 1px solid rgba(120, 190, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 0 rgba(6, 14, 32, .6);
}
.btn.danger { border-color: rgba(255, 120, 140, .4); color: #ffb3c0; }
.btn.big { padding: 18px 56px; font-size: 24px; border-radius: 18px; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.tiny { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* ---------------- HUD ---------------- */
#hud {
  position: absolute; left: 0; right: 0; top: 0; height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(6, 14, 32, .92), rgba(6, 14, 32, .55) 70%, transparent);
  pointer-events: none;
  z-index: 20;
}
#hud > * { pointer-events: auto; }
.hud-left { display: flex; align-items: center; gap: 18px; }
.stat {
  display: flex; align-items: center; gap: 8px;
  background: rgba(10, 22, 46, .78);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px 7px 10px;
  font-size: 19px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.stat b { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.stat.gold b { color: var(--gold); }
.ico-gold {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffcc4d 40%, #d99a12 100%);
  box-shadow: 0 0 10px rgba(255, 200, 70, .6), inset 0 -1px 2px rgba(120, 70, 0, .5);
  position: relative;
}
.ico-gold::after {
  content: "饭"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #8a5b00;
}
#hud-hp-hearts { display: flex; gap: 3px; }
#hud-hp-hearts svg { width: 19px; height: 19px; }

.hud-mid { flex: 1; max-width: 430px; margin: 0 24px; }
.wave-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--dim); margin-bottom: 5px; }
.wave-line b { color: var(--ink); }
.next-hint { color: var(--cyan); font-weight: 700; }
.wave-bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.wave-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #4a9fe8, #7fe3ff); box-shadow: 0 0 12px rgba(120, 220, 255, .8); transition: width .25s ease; }

.hud-right { display: flex; gap: 8px; }
.hud-btn {
  min-width: 48px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 26, 52, .82);
  color: var(--ink);
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 4px 0 rgba(4, 10, 24, .55);
  transition: transform .08s;
}
.hud-btn:active { transform: translateY(2px); }
.hud-btn.on { background: linear-gradient(180deg, #3f8fe0, #1f5ba8); border-color: #7fd0ff; }

/* ---------------- 技能 ---------------- */
#skills {
  position: absolute; right: 18px; top: 102px;
  display: flex; flex-direction: column; gap: 9px;
  z-index: 18;
}
.skill {
  position: relative;
  width: 88px; height: 62px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 52, 96, .9), rgba(12, 24, 48, .9));
  color: var(--ink);
  font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 0 rgba(4, 10, 24, .5);
  transition: transform .08s;
}
.skill:active { transform: translateY(2px); }
.sk-ico { font-size: 20px; line-height: 1; }
.sk-name { font-size: 10.5px; color: var(--dim); }
.sk-key {
  position: absolute; top: 3px; left: 5px;
  font-size: 9px; color: var(--dim); opacity: .8;
  border: 1px solid var(--line); border-radius: 4px; padding: 0 3px;
}
.sk-cd {
  position: absolute; inset: 0;
  background: rgba(4, 10, 24, .78);
  transform-origin: bottom;
  transform: scaleY(0);
  pointer-events: none;
  backdrop-filter: blur(1px);
}
.skill.ready { border-color: rgba(150, 230, 255, .7); box-shadow: 0 0 18px rgba(110, 200, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 0 rgba(4, 10, 24, .5); }
.skill.locked { opacity: .35; }

/* ---------------- 商店 ---------------- */
#shop {
  position: absolute; left: 0; right: 0; bottom: 0; height: 104px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  background: linear-gradient(0deg, rgba(6, 14, 32, .95), rgba(6, 14, 32, .6) 70%, transparent);
  z-index: 19;
}
.shop-title {
  writing-mode: vertical-rl;
  font-size: 12px; letter-spacing: 4px; color: var(--dim);
  padding: 6px 4px;
  border-right: 1px solid var(--line);
  height: 54px;
  display: flex; align-items: center;
}
#shop-list { display: flex; gap: 9px; flex: 1; }
.tcard {
  position: relative;
  width: 104px; height: 84px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 48, 88, .92), rgba(12, 24, 48, .94));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 5px 0 rgba(4, 10, 24, .55);
  transition: transform .1s, border-color .15s, box-shadow .15s;
}
.tcard:hover { transform: translateY(-3px); border-color: rgba(150, 220, 255, .6); box-shadow: 0 0 20px rgba(90, 180, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 0 rgba(4, 10, 24, .55); }
.tcard.sel { border-color: #7fe3ff; box-shadow: 0 0 0 2px rgba(127, 227, 255, .5), 0 0 24px rgba(90, 200, 255, .5); }
.tcard.poor { opacity: .45; filter: grayscale(.55); }
.tcard canvas { width: 46px; height: 46px; }
.tcard .tc-name { font-size: 11px; color: var(--dim); }
.tcard .tc-cost { font-size: 12px; font-weight: 800; color: var(--gold); display: flex; align-items: center; gap: 3px; }
.tcard .tc-cost::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffcc4d 40%, #d99a12);
}
.tcard .tc-key {
  position: absolute; top: 3px; left: 5px;
  font-size: 9px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 3px;
}

/* ---------------- 炮塔面板 ---------------- */
#tower-panel {
  position: absolute;
  width: 218px;
  padding: 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 25;
  backdrop-filter: blur(10px);
}
.tp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tp-head b { font-size: 15px; }
.tp-head span { font-size: 12px; color: var(--gold); font-weight: 800; }
.tp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; font-size: 11.5px; color: var(--dim); margin-bottom: 10px; }
.tp-stats b { color: var(--ink); font-weight: 700; }
.tp-btns { display: flex; gap: 7px; }
.tp-btns .btn { flex: 1; }
.tp-btns em { font-style: normal; color: var(--gold); font-size: 12px; }

/* ---------------- 提示 ---------------- */
#toast {
  position: absolute; left: 50%; top: 108px;
  transform: translateX(-50%) translateY(-10px);
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(10, 22, 46, .92);
  border: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 60;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 对话框 ---------------- */
#dialog {
  position: absolute; left: 0; right: 0; bottom: 118px;
  display: flex; justify-content: center;
  z-index: 30;
  pointer-events: none;
}
.dlg-box {
  pointer-events: auto;
  display: flex; align-items: flex-end; gap: 12px;
  width: 760px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(10, 22, 46, .94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: dlgIn .28s ease;
}
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.dlg-face { width: 78px; height: 90px; flex: none; }
.dlg-face canvas { width: 78px; height: 90px; }
.dlg-body { flex: 1; }
.dlg-name { font-size: 13px; color: var(--cyan); font-weight: 800; margin-bottom: 5px; letter-spacing: 1px; }
#dlg-text { font-size: 16px; line-height: 1.55; color: #dceafc; }
#dlg-ok { align-self: center; }

/* ---------------- 全屏界面 ---------------- */
.screen {
  position: absolute; inset: 0;
  z-index: 40;
  display: flex; flex-direction: column;
  animation: fadeIn .25s ease;
}
.screen.overlay { background: rgba(4, 9, 22, .78); backdrop-filter: blur(6px); align-items: center; justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 标题页 */
#screen-title {
  align-items: center; justify-content: center;
  background:
    radial-gradient(900px 600px at 50% 30%, rgba(30, 80, 160, .5), transparent 70%),
    radial-gradient(600px 400px at 80% 85%, rgba(120, 60, 160, .28), transparent 70%);
}
.title-wrap { display: flex; flex-direction: column; align-items: center; }
.title-art { width: 620px; height: 330px; }
.title-art canvas { width: 620px; height: 330px; }
.title-btns { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-top: -8px; }
.title-btns .row { display: flex; gap: 11px; }
.title-foot { margin-top: 18px; display: flex; gap: 18px; align-items: center; font-size: 12.5px; color: var(--dim); }
.title-foot .ver { opacity: .55; }
.credit { position: absolute; bottom: 12px; font-size: 11px; color: rgba(157, 180, 216, .55); }

/* 选关 */
#screen-levels { padding: 16px 24px 18px; background: linear-gradient(180deg, rgba(6, 14, 32, .6), rgba(6, 14, 32, .9)); }
.lv-head { display: flex; align-items: center; gap: 16px; }
.lv-head h2 { font-size: 22px; margin: 0; }
.lv-tabs { display: flex; gap: 8px; flex: 1; }
.tab {
  padding: 9px 20px; border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 28, 56, .8);
  color: var(--dim); font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer;
  transition: all .18s;
}
.tab.on { background: linear-gradient(180deg, #3f8fe0, #1f5ba8); color: #fff; border-color: #7fd0ff; box-shadow: 0 0 20px rgba(80, 170, 255, .4); }
.tab.lock { opacity: .4; cursor: not-allowed; }
.lv-gold { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; color: var(--gold); }
.lv-chapter-desc { font-size: 13px; color: var(--dim); margin: 10px 0 14px; padding-left: 2px; }
.lv-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.lv-card {
  position: relative;
  height: 150px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(30, 56, 100, .82), rgba(10, 20, 42, .9));
  cursor: pointer;
  overflow: hidden;
  transition: transform .12s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 13px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.lv-card:hover { transform: translateY(-4px); border-color: rgba(140, 215, 255, .65); box-shadow: 0 12px 32px rgba(40, 120, 220, .35), inset 0 1px 0 rgba(255, 255, 255, .18); }
.lv-card.lock { opacity: .45; filter: grayscale(.7); cursor: not-allowed; }
.lv-card.lock:hover { transform: none; }
.lv-card canvas { position: absolute; right: -6px; bottom: -8px; width: 108px; height: 108px; opacity: .92; }
.lv-no { font-size: 12px; color: var(--cyan); font-weight: 800; letter-spacing: 1px; }
.lv-name { font-size: 19px; font-weight: 800; margin-top: 2px; }
.lv-sub { font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.lv-stars { display: flex; gap: 4px; }
.lv-stars svg { width: 17px; height: 17px; }
.lv-best { font-size: 11px; color: var(--dim); }
.lv-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* 图鉴 */
#screen-gallery { padding: 16px 24px; background: linear-gradient(180deg, rgba(6, 14, 32, .7), rgba(6, 14, 32, .95)); }
.gal-grid { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; overflow-y: auto; padding-right: 6px; }
.gal-grid::-webkit-scrollbar { width: 8px; }
.gal-grid::-webkit-scrollbar-thumb { background: rgba(120, 190, 255, .3); border-radius: 99px; }
.gal-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(10, 20, 42, .9);
  aspect-ratio: 1;
  cursor: pointer;
}
.gal-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-card .gal-line {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 8px 6px;
  font-size: 10.5px; line-height: 1.35;
  background: linear-gradient(0deg, rgba(4, 10, 24, .95), transparent);
  color: #dbe9fb;
}
.gal-card.lock img { filter: grayscale(1) brightness(.35); }
.gal-card.lock::after {
  content: "🔒"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; opacity: .7;
}
.gal-card .gal-cond {
  position: absolute; top: 6px; left: 6px;
  font-size: 10px; padding: 2px 6px; border-radius: 6px;
  background: rgba(4, 10, 24, .8); color: var(--cyan);
}

/* 设置 */
#screen-settings { align-items: center; justify-content: center; background: rgba(4, 9, 22, .8); backdrop-filter: blur(6px); }
.set-box { width: 460px; padding: 24px 26px; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.set-box h2 { margin: 0 0 18px; font-size: 21px; }
.set-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 14px; color: var(--dim); }
.set-row span { width: 92px; flex: none; }
.set-row input[type=range] { flex: 1; -webkit-appearance: none; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); outline: none; }
.set-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #8fd8ff, #3f8fe0); box-shadow: 0 0 10px rgba(120, 210, 255, .7); cursor: pointer; }
.set-row b { width: 34px; text-align: right; color: var(--ink); }
.set-row select { flex: 1; padding: 8px 10px; border-radius: 10px; background: rgba(14, 28, 56, .9); color: var(--ink); border: 1px solid var(--line); font-family: inherit; font-size: 14px; }
.set-row input[type=checkbox] { width: 20px; height: 20px; accent-color: #3f8fe0; }
.set-actions { margin-top: 22px; text-align: center; }
.set-note { margin-top: 14px; font-size: 11.5px; color: rgba(157, 180, 216, .7); text-align: center; line-height: 1.5; }

/* 暂停 */
.pause-box { width: 300px; padding: 26px; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 11px; align-items: stretch; text-align: center; }
.pause-box h2 { margin: 0 0 8px; font-size: 22px; }

/* 结算 */
.result-box { width: 460px; padding: 26px; border-radius: 22px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; animation: pop .32s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-box h2 { margin: 0 0 6px; font-size: 27px; letter-spacing: 2px; }
.res-stars { display: flex; justify-content: center; gap: 12px; margin: 14px 0 18px; }
.res-stars svg { width: 46px; height: 46px; filter: drop-shadow(0 4px 12px rgba(255, 200, 60, .5)); animation: starPop .4s backwards; }
.res-stars svg:nth-child(2) { animation-delay: .12s; }
.res-stars svg:nth-child(3) { animation-delay: .24s; }
@keyframes starPop { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1); } }
.res-lines { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--dim); margin-bottom: 22px; }
.res-lines div { display: flex; justify-content: space-between; padding: 0 26px; }
.res-lines b { color: var(--ink); }
.res-btns { display: flex; gap: 9px; justify-content: center; }

/* 登录 */
.login-box { width: 380px; padding: 24px; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-box h2 { margin: 0 0 6px; font-size: 21px; }
.login-tip { font-size: 12px; color: var(--dim); margin: 0 0 16px; line-height: 1.5; }
.login-box input {
  width: 100%; margin-bottom: 10px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(8, 18, 38, .9); color: var(--ink);
  font-size: 15px; font-family: inherit; outline: none;
}
.login-box input:focus { border-color: rgba(130, 210, 255, .8); box-shadow: 0 0 0 3px rgba(80, 170, 255, .18); }
.login-btns { display: flex; gap: 8px; margin-top: 6px; }
.login-btns .btn { flex: 1; }
.login-msg { margin-top: 12px; font-size: 12.5px; min-height: 18px; color: var(--cyan); line-height: 1.5; }
.login-msg.err { color: #ff9aa8; }

/* ---------------- 竖屏提示 ---------------- */
#rotate-tip {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 9, 22, .94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  font-size: 20px; font-weight: 700;
  backdrop-filter: blur(8px);
}
.rot-ico { font-size: 54px; animation: rot 2s ease-in-out infinite; }
.rot-title { font-size: 22px; font-weight: 800; }
.rot-sub { font-size: 13px; color: var(--dim); margin-top: -8px; }
@keyframes rot { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(90deg); } }

/* ---------------- 加载 ---------------- */
#loading {
  position: fixed; inset: 0; z-index: 99;
  background: radial-gradient(700px 500px at 50% 40%, #14305e, #060d1e);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s;
}
#loading.done { opacity: 0; pointer-events: none; }
.load-inner { text-align: center; }
.load-spin {
  width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(120, 190, 255, .2);
  border-top-color: #7fe3ff;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-text { font-size: 14px; color: var(--dim); letter-spacing: 1px; }

/* 小屏（手机横屏）文字微调 */
@media (max-width: 900px) {
  .credit { display: none; }
}
