/* 深海捕鱼 · 横屏街机捕鱼 H5（竖屏保留铺满兜底布局） */
:root {
  --orange: #FF8A3D;
  --orange-deep: #D85B0B;
  --gold: #FFD36E;
  --gold-2: #F0A62A;
  --ink: #04121f;
  --panel: rgba(6, 27, 43, .8);
  --line: rgba(255, 201, 121, .28);
  --text: #F8F4EA;
  --muted: #9FB9C8;
  --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 {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #010a12;
}

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  user-select: none;
}

img {
  -webkit-user-drag: none;
}

.app {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #0b3350 0%, #04182a 45%, #010a12 100%);
  box-shadow: 0 0 100px rgba(0, 0, 0, .9);
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#sea,
#turret {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#sea {
  touch-action: none;
}

/* 炮台固定层：独立画布，开炮位永远在屏幕底部正中，不会被鱼群/特效裁走 */
#turret {
  z-index: 5;
  pointer-events: none;
}

/* ---------- 顶部游戏 HUD ---------- */
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: calc(var(--safe-top) + 10px) 14px 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
  visibility: visible;
}

.hud button {
  pointer-events: auto;
}

.hud-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11, 39, 58, .9), rgba(4, 20, 34, .85));
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 62%;
}

.avatar {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #2a6c86, #123047);
  border: 2px solid #FFC766;
  color: #FFE7B0;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(255, 170, 60, .25);
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar.has-img img {
  display: block;
}

.avatar.has-img span {
  display: none;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 19px;
  border-width: 2px;
}

.p-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.p-meta b {
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 104px;
  color: #FFF3D9;
}

.p-best {
  display: flex;
  align-items: center;
  gap: 2px;
  font-style: normal;
  font-size: 9.5px;
  color: #FFC978;
}

.p-best .mp-icon {
  width: 11px;
  height: 11px;
}

.hud-tools {
  display: flex;
  gap: 6px;
  flex: none;
}

.icon-btn {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(6, 26, 40, .78);
  color: #FFE0B0;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .12s ease;
}

.icon-btn.exit {
  color: #FFB29A;
  border-color: rgba(255, 140, 100, .25);
  background: rgba(44, 16, 16, .62);
}

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

.icon-btn:active {
  transform: scale(.9);
}

#btnSound .ico-off {
  display: none;
}

.app.muted #btnSound .ico-on {
  display: none;
}

.app.muted #btnSound .ico-off {
  display: block;
}

.hud-status {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
}

.coin-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(9, 33, 50, .9), rgba(4, 20, 34, .88));
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.coin-pill b {
  font-size: 16px;
  font-weight: 900;
  color: #FFE3A6;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}

.coin-pill.bump b {
  animation: bump .28s ease;
}

.coin-dot {
  position: relative;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF7C9, #FFD05A 45%, #D9870F 80%);
  border: 1px solid #FFE9AE;
  box-shadow: 0 0 10px rgba(255, 190, 60, .5), inset 0 -2px 4px rgba(150, 80, 0, .45);
  flex: none;
}

.coin-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(160, 90, 0, .45);
}

.jackpot {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 12px 4px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(37, 23, 6, .92), rgba(8, 25, 35, .9));
  border: 1px solid rgba(255, 198, 96, .5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 220, 150, .16);
  overflow: hidden;
}

.jackpot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 220, 140, .16) 50%, transparent 70%);
  animation: shimmer 3.2s linear infinite;
  pointer-events: none;
}

.jp-title {
  font-size: 8.5px;
  letter-spacing: .24em;
  text-indent: .24em;
  color: #FFC978;
  white-space: nowrap;
  position: relative;
  line-height: 1.3;
}

.jp-value {
  position: relative;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFF9D8, #FFD36E 46%, #F09A22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(90, 40, 0, .8));
  white-space: nowrap;
}

/* ---------- 多人对战排名 ---------- */
.battle-hud {
  position: absolute;
  z-index: 24;
  left: 12px;
  top: calc(var(--safe-top) + 162px);
  width: 124px;
  padding: 8px 8px 7px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9, 33, 50, .88), rgba(4, 18, 30, .92));
  border: 1px solid rgba(255, 200, 120, .28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.app.in-battle .battle-hud {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.app.mode-menu .battle-hud {
  opacity: 0;
  visibility: hidden;
}

.bh-top {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 2px 6px;
  border-bottom: 1px solid rgba(255, 200, 120, .14);
  margin-bottom: 4px;
}

.bh-top .mp-icon {
  width: 13px;
  height: 13px;
  color: #FFC978;
}

.bh-top b {
  font-size: 15px;
  font-weight: 900;
  color: #FFE3A6;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bh-top span {
  font-size: 8px;
  color: #8FAEBE;
  margin-left: auto;
}

.battle-hud.danger .bh-top b {
  color: #FF8A6E;
  animation: bump .7s ease infinite;
}

.bh-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bh-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 3px;
  border-radius: 8px;
}

.bh-row.me {
  background: linear-gradient(90deg, rgba(255, 170, 80, .22), rgba(255, 140, 50, .05));
  box-shadow: inset 0 0 0 1px rgba(255, 190, 100, .28);
}

.bh-rank {
  flex: none;
  width: 10px;
  font-size: 8.5px;
  font-weight: 900;
  color: #FFC978;
  text-align: center;
}

.bh-ava {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8.5px;
  font-weight: 900;
  color: #04121f;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .3);
}

.bh-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
  color: #D3E4ED;
}

.bh-score {
  flex: none;
  font-size: 9px;
  font-weight: 900;
  color: #FFE3A6;
  font-variant-numeric: tabular-nums;
}

/* ---------- 连击 / 飘字 / 大赢家 ---------- */
.combo {
  position: absolute;
  z-index: 25;
  top: calc(var(--safe-top) + 126px);
  left: 50%;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 14px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 150, 50, .22), rgba(120, 40, 0, .45));
  border: 1px solid rgba(255, 200, 110, .5);
  box-shadow: 0 0 22px rgba(255, 140, 40, .3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translate(-50%, 8px) scale(.8);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

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

.combo b {
  font-size: 25px;
  font-weight: 900;
  font-style: italic;
  color: #FFE08A;
  text-shadow: 0 2px 0 #B2500A, 0 0 18px rgba(255, 160, 50, .8);
}

.combo span {
  font-size: 10px;
  letter-spacing: .16em;
  color: #FFD9A0;
}

.toast-wrap {
  position: absolute;
  z-index: 95;
  left: 0;
  right: 0;
  bottom: calc(184px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  padding: 0 20px;
}

.toast {
  max-width: 100%;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(4, 18, 30, .94);
  border: 1px solid rgba(255, 200, 120, .35);
  color: #FFE6B8;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  animation: toastIn .24s ease both, toastOut .32s ease 1.95s both;
}

.toast.gold {
  border-color: rgba(255, 200, 90, .7);
  background: linear-gradient(180deg, rgba(70, 40, 8, .95), rgba(24, 18, 8, .95));
  color: #FFE3A0;
}

.bigwin {
  position: absolute;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  overflow: hidden;
}

.bigwin.show {
  opacity: 1;
  visibility: visible;
}

.bw-rays {
  position: absolute;
  width: 160vmax;
  height: 160vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 192, 82, .2) 0deg 4deg, transparent 4deg 13deg);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .45) 30%, transparent 62%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .45) 30%, transparent 62%);
  animation: spin 14s linear infinite;
}

.bw-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 34px;
  border-radius: 22px;
  background: radial-gradient(ellipse at center, rgba(82, 44, 5, .94), rgba(14, 12, 7, .82));
  border: 1px solid rgba(255, 210, 120, .55);
  box-shadow: 0 0 60px rgba(255, 160, 40, .45), inset 0 1px rgba(255, 240, 190, .25);
  transform: scale(.8);
  transition: transform .35s cubic-bezier(.2, 1.2, .4, 1);
}

.bigwin.show .bw-inner {
  transform: scale(1);
}

.bw-kicker {
  font-size: 10px;
  letter-spacing: .42em;
  text-indent: .42em;
  color: #FFC978;
  font-weight: 800;
}

.bw-inner b {
  font-size: clamp(32px, 10vw, 46px);
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFFBE0, #FFD36E 42%, #F08A18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(90, 35, 0, .7)) drop-shadow(0 0 22px rgba(255, 170, 50, .65));
}

.bw-sub {
  font-size: 11px;
  letter-spacing: .18em;
  color: #E8C48C;
}

/* ---------- 底部操作台 ---------- */
.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 14px 14px calc(10px + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(6, 25, 40, .55) 0%, rgba(4, 18, 30, .96) 24%, #03111d 100%);
  border-top: 1px solid rgba(255, 195, 110, .22);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .3s ease, opacity .3s ease, visibility .3s;
  visibility: visible;
  touch-action: none;
}

.skill-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.skill {
  position: relative;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(255, 200, 120, .18);
  background: linear-gradient(180deg, rgba(20, 52, 74, .9), rgba(7, 26, 42, .95));
  color: #DCEAF2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 4px 12px rgba(0, 0, 0, .3);
  transition: transform .12s ease, border-color .2s, background .2s, box-shadow .2s;
  overflow: hidden;
}

.skill .s-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(255, 170, 80, .28), rgba(255, 140, 60, .05));
  border: 1px solid rgba(255, 180, 100, .2);
}

.skill .mp-icon {
  width: 17px;
  height: 17px;
  color: #FFCE8A;
}

.s-name {
  font-size: 10px;
  letter-spacing: .04em;
  color: #CFE0E9;
  line-height: 1.25;
}

.s-cd {
  position: absolute;
  top: 3px;
  right: 4px;
  min-width: 15px;
  padding: 0 3px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .38);
  color: #FFD9A0;
  font-size: 8.5px;
  font-style: normal;
  line-height: 13px;
  text-align: center;
}

.skill.cool {
  border-color: rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(18, 38, 52, .9), rgba(6, 20, 32, .95));
}

.skill.cool .s-ico,
.skill.cool .s-name {
  opacity: .42;
}

/* 技能次数靠广告获得：0 次时用暖色描边提示可领 */
.skill.ad-need {
  border-color: rgba(255, 170, 80, .42);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 0 0 1px rgba(255, 140, 50, .12), 0 4px 12px rgba(0, 0, 0, .3);
}

.skill.ad-need .s-cd {
  background: linear-gradient(180deg, rgba(255, 150, 60, .42), rgba(255, 110, 30, .24));
  color: #FFF1D6;
  animation: skillAdHint 1.8s ease-in-out infinite;
}

.skill.ready {
  border-color: rgba(255, 200, 120, .5);
  background: linear-gradient(180deg, rgba(54, 62, 48, .94), rgba(15, 30, 38, .96));
}

.skill.ready .s-cd {
  background: rgba(255, 176, 74, .24);
  color: #FFE7BE;
}

@keyframes skillAdHint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 160, 70, 0); }
  50% { box-shadow: 0 0 0 2px rgba(255, 160, 70, .25); }
}

.skill.active {
  border-color: #FFB24B;
  background: linear-gradient(180deg, rgba(90, 52, 16, .96), rgba(35, 35, 25, .96));
  box-shadow: 0 0 0 1px rgba(255, 156, 61, .5) inset, 0 0 16px rgba(255, 140, 50, .35);
}

.skill.active .s-cd {
  background: rgba(255, 140, 50, .28);
  color: #FFE7BE;
}

.rage-skill .s-ico {
  background: radial-gradient(circle at 50% 35%, rgba(255, 90, 40, .42), rgba(180, 20, 0, .08));
  border-color: rgba(255, 110, 50, .4);
}

.rage-skill .mp-icon {
  color: #FF9A5A;
}

.rage-skill.active {
  border-color: #FF6A2E;
  background: linear-gradient(180deg, rgba(120, 34, 8, .98), rgba(48, 20, 18, .96));
  box-shadow: 0 0 0 1px rgba(255, 98, 40, .62) inset, 0 0 22px rgba(255, 80, 20, .48);
  animation: ragePulse 1.1s ease-in-out infinite;
}

.rage-skill.active .s-ico {
  background: radial-gradient(circle at 50% 35%, rgba(255, 140, 50, .6), rgba(200, 30, 0, .1));
}

.rage-skill.active .mp-icon {
  color: #FFD08A;
  filter: drop-shadow(0 0 5px rgba(255, 120, 30, .9));
}

@keyframes ragePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 98, 40, .5) inset, 0 0 12px rgba(255, 80, 20, .3); }
  50% { box-shadow: 0 0 0 1px rgba(255, 140, 60, .85) inset, 0 0 24px rgba(255, 80, 20, .6); }
}

.skill:active {
  transform: scale(.94);
}

.ctrl-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.tier-ctl {
  justify-self: start;
  display: flex;
  align-items: stretch;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 45, 65, .88), rgba(6, 23, 37, .92));
  border: 1px solid rgba(255, 200, 120, .25);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 4px 12px rgba(0, 0, 0, .25);
}

.tier-arrow {
  width: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFC978;
  display: grid;
  place-items: center;
}

.tier-arrow .mp-icon {
  width: 17px;
  height: 17px;
}

.tier-arrow:active {
  background: rgba(255, 180, 80, .14);
}

.tier-pill {
  flex: 1;
  min-width: 58px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #FFE6B0;
}

.tier-pill:active {
  background: rgba(255, 180, 80, .08);
}

.tier-cap {
  font-size: 8.5px;
  letter-spacing: .16em;
  text-indent: .16em;
  color: var(--tier-accent, #92ADBD);
  line-height: 1.25;
}

.tier-num {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.tier-num b {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--tier-accent, #FFD36E);
  font-variant-numeric: tabular-nums;
}

.tier-num em {
  font-size: 9px;
  font-style: normal;
  color: var(--tier-accent, #C7A46A);
  opacity: .75;
}

#startTier,
#pauseTier {
  color: var(--tier-accent, #FFE3A6) !important;
}

.fire-btn {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--tier-accent, #FFE3A6);
  background: radial-gradient(circle at 36% 28%, #FFF0C0, #FFB04C 38%, #F07816 72%, #B94A05 100%);
  color: #4A1B00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  transform: translateY(-8px);
  box-shadow: 0 0 0 5px rgba(255, 140, 50, .13), 0 8px 18px rgba(0, 0, 0, .45), inset 0 -5px 10px rgba(140, 50, 0, .35);
  transition: transform .1s ease, box-shadow .2s;
  touch-action: none;
}

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

.fire-btn > span:last-child {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
}

.fire-glow {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 200, 120, .35);
  animation: spin 12s linear infinite;
  pointer-events: none;
}

.fire-btn:active {
  transform: translateY(-3px) scale(.94);
  box-shadow: 0 0 0 8px rgba(255, 140, 50, .1), 0 4px 10px rgba(0, 0, 0, .45), inset 0 -3px 8px rgba(140, 50, 0, .35);
}

.app.laser-on .fire-btn {
  box-shadow: 0 0 0 6px rgba(255, 210, 100, .18), 0 0 26px rgba(255, 170, 50, .55), inset 0 -5px 10px rgba(140, 50, 0, .35);
}

.ad-pill {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 112px;
  min-height: 44px;
  padding: 5px 9px;
  border-radius: 13px;
  border: 1px solid rgba(255, 190, 100, .45);
  background: linear-gradient(180deg, rgba(255, 160, 70, .2), rgba(255, 120, 40, .06));
  color: #FFDFAD;
  font-size: 10px;
  line-height: 1.3;
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .12s ease;
}

.ad-pill .mp-icon {
  width: 20px;
  height: 20px;
  color: #FFC766;
  flex: none;
}

.ad-pill:active {
  transform: scale(.95);
}

.ad-pill.flash {
  animation: adPulse 1.1s ease-in-out infinite;
}

.ad-pill:disabled,
.ad-pill.is-disabled {
  opacity: .48;
  filter: grayscale(1);
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
}

.dock-hint {
  margin-top: 7px;
  text-align: center;
  font-size: 9px;
  letter-spacing: .06em;
  color: rgba(159, 185, 200, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 全屏面板 ---------- */
.screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s;
}

.screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 开始界面 */
.start-screen {
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 4vh) 20px calc(var(--safe-bottom) + 18px);
  background:
    linear-gradient(180deg, rgba(2, 12, 22, .22) 0%, rgba(2, 12, 22, .06) 30%, rgba(2, 12, 22, .32) 52%, rgba(2, 12, 22, .78) 72%, #020e19 94%),
    url("images/gen/gptimg_1795159938_look.png");
  background-size: cover, cover;
  /* 参考图里的炮台固定在底部正中，不再随屏幕比例被裁到左边 */
  background-position: center, 50% 100%;
  background-repeat: no-repeat, no-repeat;
  background-color: #020e19;
  overflow: hidden;
}

.start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(2, 14, 25, .88) 0%, rgba(2, 14, 25, .34) 46%, transparent 72%),
    radial-gradient(90% 70% at 50% 0%, rgba(2, 14, 25, .42) 0%, transparent 58%);
}

.start-screen .start-top,
.start-screen .start-card {
  z-index: 1;
}

.start-halo {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 170, 70, .28), rgba(255, 120, 30, .08) 45%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

.start-top {
  position: relative;
  text-align: center;
  padding-top: 2vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .45em;
  text-indent: .45em;
  color: rgba(255, 206, 146, .72);
}

.game-title {
  margin: 12px 0 0;
  display: flex;
  justify-content: center;
  gap: .05em;
  font-size: clamp(46px, 14.2vw, 70px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: .02em;
  filter: drop-shadow(0 3px 0 rgba(90, 30, 0, .55)) drop-shadow(0 10px 26px rgba(255, 130, 40, .4));
}

.game-title span {
  background: linear-gradient(180deg, #FFF9DE 6%, #FFE090 30%, #FFB246 58%, #F07A12 82%, #C95006 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 13px;
  color: #FFD58F;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-indent: .22em;
  text-shadow: 0 0 16px rgba(255, 170, 60, .5);
}

.title-sub i {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FFC56D, transparent);
}

.title-desc {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: .28em;
  text-indent: .28em;
  color: rgba(210, 231, 240, .6);
}

.start-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  flex: none;
  padding: 14px 16px 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 34, 51, .88), rgba(3, 16, 28, .95));
  border: 1px solid rgba(255, 198, 120, .3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.start-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px dashed rgba(255, 198, 120, .18);
}

.sp-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-meta b {
  font-size: 14px;
  color: #FFF1D2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-meta i {
  font-style: normal;
  font-size: 10px;
  color: #8FAEBE;
}

.sp-best {
  flex: none;
  font-size: 10px;
  color: #9FB9C8;
  text-align: right;
  line-height: 1.3;
}

.sp-best b {
  display: block;
  font-size: 15px;
  color: #FFD36E;
  font-variant-numeric: tabular-nums;
}

.start-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 13px;
}

.start-stats div {
  padding: 7px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .05);
  min-width: 0;
}

.start-stats b {
  display: block;
  font-size: 15px;
  color: #FFE3A6;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.start-stats span {
  font-size: 9px;
  color: #8FAEBE;
  letter-spacing: .04em;
}

.mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.mode-chip {
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(255, 200, 120, .18);
  background: rgba(255, 255, 255, .035);
  color: #AFC7D4;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform .12s ease, background .2s, border-color .2s;
}

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

.mode-chip.active {
  border-color: rgba(255, 190, 100, .7);
  background: linear-gradient(180deg, rgba(255, 170, 80, .28), rgba(255, 120, 40, .1));
  color: #FFE5B4;
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 0 14px rgba(255, 150, 50, .18);
}

.mode-chip:active {
  transform: scale(.96);
}

.scene-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.scene-chip {
  position: relative;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .03);
  color: #9FB9C8;
  font-size: 9.5px;
  letter-spacing: .02em;
  padding: 0 2px;
  transition: transform .12s ease, background .2s, border-color .2s, color .2s;
}

.scene-chip::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: 1px;
  background: #2C94AE;
}

.scene-chip[data-scene="1"]::before { background: #FF9A5A; }
.scene-chip[data-scene="2"]::before { background: #9C7CFF; }

.scene-chip.active {
  color: #FFE3AE;
  border-color: rgba(255, 190, 100, .55);
  background: linear-gradient(180deg, rgba(255, 170, 80, .18), rgba(255, 120, 40, .05));
}

.scene-chip:active {
  transform: scale(.95);
}

.primary-btn {
  position: relative;
  width: 100%;
  height: 54px;
  border-radius: 999px;
  border: 1px solid #FFE0A0;
  background: linear-gradient(180deg, #FFC96B, #FF8A3D 45%, #E9650F);
  color: #3A1704;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 6px 0 #A9420A, 0 14px 30px rgba(255, 120, 40, .38), inset 0 1px rgba(255, 255, 255, .5);
  transition: transform .1s ease, box-shadow .1s ease;
}

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

.primary-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #A9420A, 0 8px 18px rgba(255, 120, 40, .32), inset 0 1px rgba(255, 255, 255, .4);
}

.text-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #A9C6D3;
  font-size: 12px;
  letter-spacing: .04em;
}

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

.text-btn:active {
  color: #FFD9A0;
  transform: scale(.98);
}

.start-note {
  margin: 4px 0 0;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .03em;
  color: rgba(159, 185, 200, .7);
}

.start-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}

.start-links .text-btn {
  min-height: 36px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  font-size: 11.5px;
}

.start-links .text-btn:active {
  background: rgba(255, 180, 80, .08);
}

.start-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(143, 185, 200, .62);
}

.start-save .mp-icon {
  width: 12px;
  height: 12px;
  color: #7FC9B8;
  animation: savePulse 2.6s ease-in-out infinite;
}

@keyframes savePulse {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

.pause-save {
  min-height: 36px;
  margin-top: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .035);
  font-size: 11.5px;
}

/* 游戏存档 */
.save-card {
  max-height: 88vh;
}

.save-sub {
  margin: -4px 0 12px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.55;
  color: #9FB9C8;
}

.save-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.save-slot {
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 200, 120, .07), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 190, 100, .2);
}

.save-slot.empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .02);
}

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

.ss-head b {
  font-size: 12px;
  color: #FFE5B0;
}

.ss-time {
  font-size: 8.5px;
  color: #8FAEBE;
  font-variant-numeric: tabular-nums;
}

.ss-meta {
  margin-top: 2px;
  font-size: 8.5px;
  color: #7F9FB0;
}

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

.ss-stats div {
  min-width: 0;
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.ss-stats span {
  display: block;
  font-size: 8px;
  color: #7896A8;
}

.ss-stats b {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: #E8F4FA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.ss-actions {
  display: flex;
  gap: 5px;
}

.ss-btn {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #BBD3DF;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

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

.ss-btn.save {
  color: #FFDCA8;
  border-color: rgba(255, 190, 100, .35);
  background: rgba(255, 170, 70, .1);
}

.ss-btn.load {
  color: #A8F0FF;
  border-color: rgba(100, 210, 255, .28);
  background: rgba(70, 180, 230, .08);
}

.ss-btn.del {
  flex: 0 0 34px;
  color: #FF9E9E;
  border-color: rgba(255, 120, 120, .2);
}

.ss-btn:active {
  transform: scale(.97);
}

.ss-empty {
  padding: 6px 0 10px;
  text-align: center;
  font-size: 10px;
  color: #7896A8;
}

/* 结算界面 */
.end-screen {
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px);
  background: radial-gradient(ellipse at 50% 32%, rgba(90, 49, 9, .55), rgba(2, 12, 22, .94) 68%);
  overflow-y: auto;
}

.end-card {
  width: 100%;
  max-width: 380px;
  margin: auto;
  text-align: center;
  padding: 20px 18px 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(16, 40, 52, .95), rgba(4, 18, 30, .98));
  border: 1px solid rgba(255, 198, 120, .4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65), inset 0 1px rgba(255, 255, 255, .08);
}

.end-crown {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 30%, #FFF2C4, #FFC24B 55%, #D98612);
  box-shadow: 0 0 26px rgba(255, 170, 50, .45), inset 0 -3px 6px rgba(130, 60, 0, .4);
  color: #5B2A00;
}

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

.end-kicker {
  font-size: 9px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: #C89556;
}

.end-card h2 {
  margin: 4px 0;
  font-size: 24px;
  letter-spacing: .04em;
  color: #FFF3D6;
}

.end-desc {
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 1.5;
  color: #9FB9C8;
}

.end-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 180, 80, .14), rgba(255, 140, 50, .04));
  border: 1px solid rgba(255, 190, 100, .3);
}

.end-score span {
  font-size: 11px;
  letter-spacing: .1em;
  color: #C7A46A;
}

.end-score b {
  font-size: 25px;
  font-weight: 900;
  color: #FFD36E;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255, 170, 50, .5);
}

.end-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 14px;
}

.end-grid div {
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .05);
}

.end-grid b {
  display: block;
  font-size: 16px;
  color: #FFE3A6;
  font-variant-numeric: tabular-nums;
}

.end-grid span {
  font-size: 9.5px;
  color: #8FAEBE;
}

.supply-btn {
  width: 100%;
  height: 46px;
  margin-top: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 120, .4);
  background: rgba(255, 170, 70, .08);
  color: #FFDBA4;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .1s ease, background .2s;
}

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

.supply-btn:active {
  transform: translateY(1px);
  background: rgba(255, 170, 70, .16);
}

/* 对战结算 */
.battle-end {
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px);
  background: radial-gradient(ellipse at 50% 30%, rgba(70, 42, 110, .55), rgba(2, 12, 22, .95) 68%);
  overflow-y: auto;
}

.battle-card {
  margin: auto;
}

.battle-rank {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0 15px;
}

.br-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .06);
  min-width: 0;
}

.br-row.me {
  background: linear-gradient(90deg, rgba(255, 170, 80, .2), rgba(255, 140, 50, .04));
  border-color: rgba(255, 190, 100, .4);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 100, .12);
}

.br-row.first {
  background: linear-gradient(90deg, rgba(255, 200, 90, .2), rgba(255, 150, 50, .04));
  border-color: rgba(255, 210, 120, .45);
}

.br-medal {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  color: #4A2600;
  background: rgba(255, 255, 255, .1);
}

.br-row.first .br-medal {
  background: linear-gradient(180deg, #FFF0B8, #F0A62A);
  box-shadow: 0 0 12px rgba(255, 180, 60, .45);
}

.br-ava {
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  color: #04121f;
  box-shadow: inset 0 -1px 3px rgba(0, 0, 0, .3);
}

.br-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: #DDEBF2;
}

.br-row.me .br-name {
  color: #FFE3B0;
  font-weight: 700;
}

.br-score {
  flex: none;
  font-size: 13px;
  font-weight: 900;
  color: #FFD36E;
  font-variant-numeric: tabular-nums;
}

.battle-card .primary-btn {
  margin-top: 2px;
}

.battle-card .text-btn {
  margin-top: 3px;
}

/* ---------- 弹层 ---------- */
.modal-mask {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(1, 8, 15, .74);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}

.modal-mask.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 350px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 22px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 42, 57, .98), rgba(4, 18, 30, .99));
  border: 1px solid rgba(255, 198, 120, .35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .7), inset 0 1px rgba(255, 255, 255, .08);
  transform: translateY(14px) scale(.97);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
  -webkit-overflow-scrolling: touch;
}

.modal-mask.open .modal {
  transform: none;
}

.modal h3 {
  margin: 4px 0 14px;
  font-size: 21px;
  letter-spacing: .06em;
  color: #FFF0CE;
  text-align: center;
}

.modal-kicker {
  display: block;
  text-align: center;
  font-size: 8.5px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: #C89556;
}

.modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: #C9DCE6;
  display: grid;
  place-items: center;
}

.modal-x .mp-icon {
  width: 17px;
  height: 17px;
}

.modal-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.modal-row .text-btn {
  margin-top: 0;
}

.pause-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.pause-stats div {
  padding: 8px 4px;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .05);
}

.pause-stats b {
  display: block;
  font-size: 16px;
  color: #FFE3A6;
  font-variant-numeric: tabular-nums;
}

.pause-stats span {
  font-size: 9.5px;
  color: #8FAEBE;
}

.how-card {
  max-height: 84vh;
}

.how-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.how-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .05);
}

.how-n {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  color: #3D1B00;
  background: linear-gradient(180deg, #FFD888, #F0A62A);
}

.how-item p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #B9CFDB;
}

.how-item b {
  color: #FFE2A8;
  margin-right: 4px;
}

/* 技能补给站 */
.props-card {
  max-height: 84vh;
}

.props-sub {
  margin: -4px 0 12px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.55;
  color: #9FB9C8;
}

.prop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.prop-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .06);
}

.prop-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #FFCE8A;
  background: radial-gradient(circle at 50% 35%, rgba(255, 170, 80, .28), rgba(255, 140, 60, .05));
  border: 1px solid rgba(255, 180, 100, .25);
}

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

.prop-ico.rage {
  color: #FF9A5A;
  background: radial-gradient(circle at 50% 35%, rgba(255, 100, 40, .38), rgba(160, 24, 0, .08));
  border-color: rgba(255, 120, 50, .38);
}

.rage-prop {
  border-color: rgba(255, 120, 50, .26);
  background: linear-gradient(90deg, rgba(255, 92, 24, .08), rgba(255, 255, 255, .03));
}

.prop-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prop-info b {
  font-size: 12.5px;
  color: #FFF0CE;
}

.prop-info i {
  font-style: normal;
  font-size: 9.5px;
  color: #8FAEBE;
}

.prop-count {
  font-size: 11px;
  font-weight: 900;
  color: #FFD36E;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 180, 80, .1);
  border: 1px solid rgba(255, 190, 100, .2);
  border-radius: 7px;
  padding: 2px 6px;
}

.prop-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.prop-btn {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: #D6E6EF;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

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

.prop-use {
  border-color: rgba(255, 190, 100, .4);
  color: #FFE0A8;
  background: rgba(255, 170, 70, .08);
}

.prop-use:disabled {
  opacity: .38;
  filter: grayscale(1);
  cursor: not-allowed;
}

.prop-ad {
  background: linear-gradient(180deg, rgba(255, 170, 70, .22), rgba(255, 120, 40, .08));
  border-color: rgba(255, 190, 100, .45);
  color: #FFDAA4;
}

.prop-btn:active:not(:disabled) {
  transform: scale(.97);
}

.props-card .primary-btn {
  margin-top: 2px;
}

/* Boss 宝箱 */
.chest-card {
  text-align: center;
  border-color: rgba(255, 180, 90, .38);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 170, 60, .16), transparent 60%),
    linear-gradient(180deg, rgba(14, 39, 56, .98), rgba(4, 18, 30, .99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6), inset 0 1px rgba(255, 230, 170, .14);
}

.chest-hero {
  position: relative;
  width: 112px;
  height: 96px;
  margin: 6px auto 2px;
  display: grid;
  place-items: center;
}

.chest-glow {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 100, .42), rgba(255, 140, 40, .1) 55%, transparent 72%);
  filter: blur(3px);
  animation: breathe 2.1s ease-in-out infinite;
}

.chest-hero .mp-icon {
  position: relative;
  width: 72px;
  height: 72px;
  color: #FFD36E;
  filter: drop-shadow(0 6px 14px rgba(255, 130, 30, .55));
  animation: chestFloat 2.2s ease-in-out infinite;
}

@keyframes chestFloat {
  0%, 100% { transform: translateY(-2px) rotate(-1.5deg); }
  50% { transform: translateY(4px) rotate(1.5deg); }
}

.chest-sub {
  margin: 0 0 12px;
  font-size: 10.5px;
  color: #A9C1CF;
}

.chest-rewards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.chest-reward {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 0;
  border-radius: 15px;
  text-align: left;
  background: linear-gradient(90deg, rgba(255, 150, 50, .15), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 190, 100, .32);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  animation: chestRewardIn .32s cubic-bezier(.2, .9, .3, 1.12) both;
}

.chest-rewards .chest-reward:nth-child(2) {
  animation-delay: .07s;
}

.chest-rewards .chest-reward:nth-child(3) {
  animation-delay: .14s;
}

@keyframes chestRewardIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cr-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #FFE0A0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 170, 70, .4), rgba(180, 60, 10, .1));
  border: 1px solid rgba(255, 190, 100, .4);
}

.cr-ico .mp-icon {
  width: 25px;
  height: 25px;
}

.cr-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cr-meta i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .14em;
  color: #C99A63;
}

.cr-meta b {
  font-size: 14px;
  color: #FFF0CE;
}

.cr-meta em {
  font-style: normal;
  font-size: 9.5px;
  line-height: 1.4;
  color: #A9C1CF;
}

.cr-count {
  flex: none;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #FFD36E;
  background: rgba(255, 180, 80, .12);
  border: 1px solid rgba(255, 190, 100, .24);
}

/* 广告加载 */
.ad-mask {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 7, 13, .86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}

.ad-mask.open {
  opacity: 1;
  visibility: visible;
}

.ad-box {
  width: 100%;
  max-width: 300px;
  padding: 22px 20px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 45, 60, .98), rgba(5, 18, 30, .99));
  border: 1px solid rgba(255, 198, 120, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  text-align: center;
}

.ad-kicker {
  font-size: 8px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: #C89556;
}

.ad-spinner {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 14px auto;
  display: grid;
  place-items: center;
}

.ad-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 190, 100, .15);
  border-top-color: #FFB95C;
  border-right-color: #FF8A3D;
  animation: spin 1.1s linear infinite;
}

.ad-spinner span {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(180deg, #FFD98A, #F08A1E);
  box-shadow: 0 0 20px rgba(255, 170, 50, .5);
}

.ad-spinner span::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-left: 11px solid #5A2A00;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.ad-box b {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  color: #FFEBC6;
}

.ad-box p {
  margin: 0 0 14px;
  font-size: 11px;
  color: #9FB9C8;
}

.ad-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.ad-bar i {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: 99px;
  background: linear-gradient(90deg, #FF8A3D, #FFD36E);
  box-shadow: 0 0 10px rgba(255, 170, 50, .5);
  transition: width .25s linear;
}

.ad-box small {
  display: block;
  margin-top: 11px;
  font-size: 9px;
  color: #6F8B9B;
}

/* ---------- 状态 ---------- */
.frost {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  background: radial-gradient(ellipse at 50% 55%, rgba(120, 220, 255, .02) 30%, rgba(90, 200, 255, .17) 100%);
  box-shadow: inset 0 0 80px rgba(100, 210, 255, .35);
}

.app.frozen .frost {
  opacity: 1;
}

.rage-aura {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background:
    radial-gradient(ellipse at 50% 105%, rgba(255, 92, 20, .38) 0%, rgba(255, 60, 0, .1) 42%, rgba(255, 40, 0, 0) 68%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 150, 40, .16) 0%, rgba(255, 80, 20, 0) 46%),
    linear-gradient(180deg, rgba(255, 70, 20, .07), rgba(120, 12, 0, .12) 72%, rgba(255, 60, 10, .2));
  box-shadow: inset 0 0 70px rgba(255, 70, 20, .32), inset 0 -80px 90px rgba(255, 100, 20, .26);
}

.rage-aura::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 118%;
  height: 70%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 18% 100%, rgba(255, 170, 50, .28), transparent 58%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 90, 20, .34), transparent 62%),
    radial-gradient(ellipse at 82% 100%, rgba(255, 170, 50, .28), transparent 58%);
  filter: blur(8px);
  animation: rageFlame 1.4s ease-in-out infinite alternate;
}

.app.rage-on .rage-aura {
  opacity: 1;
}

@keyframes rageFlame {
  from { transform: translateX(-50%) scale(.96, .92); opacity: .7; }
  to { transform: translateX(-50%) scale(1.04, 1.06); opacity: 1; }
}

.app.mode-menu .hud {
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
}

.app.mode-menu .dock {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  pointer-events: none;
}

.app.mode-menu .toast-wrap,
.app.mode-menu .combo {
  display: none;
}

/* ---------- 动画 ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

@keyframes breathe {
  0%, 100% { opacity: .62; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.07); }
}

@keyframes adPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 170, 60, 0), 0 4px 12px rgba(0, 0, 0, .25); }
  50% { box-shadow: 0 0 0 4px rgba(255, 170, 60, .16), 0 0 18px rgba(255, 150, 40, .42); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.13); }
  100% { transform: scale(1); }
}

/* ---------- 小屏适配 ---------- */
@media (max-height: 730px) {
  .start-screen {
    padding-top: calc(var(--safe-top) + 14px);
  }

  .start-top {
    padding-top: 0;
    justify-content: flex-start;
  }

  .game-title {
    font-size: clamp(38px, 12vw, 54px);
    margin-top: 8px;
  }

  .title-sub {
    margin-top: 8px;
  }

  .title-desc {
    margin-top: 4px;
  }

  .start-card {
    padding: 12px 14px 10px;
  }

  .start-profile {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .start-stats {
    margin-bottom: 10px;
  }

  .mode-row {
    margin-bottom: 6px;
  }

  .mode-chip {
    height: 32px;
    font-size: 10px;
  }

  .scene-row {
    margin-bottom: 8px;
  }

  .scene-chip {
    height: 27px;
    font-size: 9px;
  }

  .primary-btn {
    height: 50px;
  }

  .dock {
    padding-top: 10px;
  }

  .skill {
    height: 50px;
  }

  .skill .s-ico {
    width: 24px;
    height: 24px;
  }

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

  .fire-btn {
    width: 64px;
    height: 64px;
  }

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

  .ctrl-row {
    margin-top: 8px;
  }

  .toast-wrap {
    bottom: calc(164px + var(--safe-bottom));
  }
}

@media (max-height: 620px) {
  .title-desc,
  .start-note,
  .start-save {
    display: none;
  }

  .start-links .text-btn {
    min-height: 32px;
  }

  .start-profile {
    padding-bottom: 6px;
    margin-bottom: 6px;
  }

  .avatar-lg {
    width: 40px;
    height: 40px;
  }

  .skill {
    height: 46px;
  }

  .s-name {
    font-size: 9px;
  }

  .skill .mp-icon {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jackpot::before,
  .fire-glow,
  .bw-rays,
  .start-halo,
  .start-save .mp-icon,
  .ad-pill.flash {
    animation: none;
  }
}

/* ============================================================
   街机大厅首页 · 参考捕鱼达人实机 HUD 重构
   背景沿用项目内已有成品海景，不新生成任何图片
   ============================================================ */
.start-screen {
  display: block;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(1, 9, 17, .9) 0%, rgba(1, 12, 22, .5) 11%, rgba(1, 12, 22, .08) 27%, rgba(1, 12, 22, .12) 46%, rgba(1, 10, 18, .82) 75%, #010a12 100%),
    radial-gradient(95% 60% at 50% 34%, rgba(70, 220, 255, .07) 0%, transparent 62%),
    url("images/gen/gptimg_1795159938_look.png") 62% 50% / cover no-repeat,
    radial-gradient(120% 78% at 50% 28%, #0a6788 0%, #064260 38%, #032537 64%, #010f1b 100%);
  background-color: #020e19;
  overflow: hidden;
}

.start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(56% 22% at 50% 30%, rgba(255, 168, 70, .2), transparent 72%),
    radial-gradient(80% 60% at 50% 48%, transparent 42%, rgba(0, 7, 14, .48) 100%),
    linear-gradient(180deg, rgba(1, 9, 17, .2), transparent 34%);
}

.start-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background: repeating-linear-gradient(112deg, transparent 0 96px, rgba(130, 230, 255, .05) 96px 98px, transparent 98px 196px);
  mix-blend-mode: screen;
}

.lobby-rays {
  position: absolute;
  left: -20%;
  right: -20%;
  top: -12%;
  height: 70%;
  z-index: 1;
  pointer-events: none;
  opacity: .55;
  background: repeating-conic-gradient(from 190deg at 50% -8%, rgba(155, 235, 255, .085) 0deg 1.6deg, transparent 1.6deg 13deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 52%, transparent 100%);
  filter: blur(6px);
}

.lobby-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(70% 46% at 50% 38%, rgba(255, 170, 70, .09), transparent 70%),
    linear-gradient(180deg, rgba(1, 9, 17, .64) 0%, rgba(1, 12, 22, .38) 30%, rgba(1, 10, 18, .5) 62%, rgba(1, 10, 18, .82) 100%);
  backdrop-filter: blur(3.5px) saturate(.94);
  -webkit-backdrop-filter: blur(3.5px) saturate(.94);
}

.lobby-top {
  position: absolute;
  z-index: 9;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wallet-card {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 54px);
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(7, 32, 52, .95), rgba(2, 13, 24, .93));
  border: 1px solid rgba(255, 198, 110, .48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wallet-card .avatar {
  width: 42px;
  height: 42px;
  border: 2px solid #FFD36E;
  box-shadow: 0 0 0 2px rgba(5, 24, 40, .8), 0 0 16px rgba(255, 176, 60, .35);
}

.wallet-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.wallet-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  line-height: 1;
}

.wallet-row.coin b {
  font-size: 17px;
  font-weight: 900;
  color: #FFE7AE;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(70, 30, 0, .7);
  white-space: nowrap;
}

.wallet-row.gem .mp-icon {
  width: 12px;
  height: 12px;
  color: #8DE7FF;
  filter: drop-shadow(0 0 4px rgba(80, 210, 255, .5));
}

.wallet-row.gem b {
  font-size: 12px;
  font-weight: 800;
  color: #BFEFFF;
  font-variant-numeric: tabular-nums;
}

.wallet-row.gem span {
  font-size: 8px;
  color: #7FA8BC;
  letter-spacing: .04em;
}

.wallet-card .coin-dot {
  width: 16px;
  height: 16px;
}

.wallet-plus {
  width: 25px;
  height: 25px;
  margin-left: auto;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #D6FFA8;
  background: radial-gradient(circle at 36% 28%, #C6FF8C, #5CCB2B 58%, #238808);
  color: #0A3A00;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .45);
}

.wallet-plus .mp-icon {
  width: 15px;
  height: 15px;
  color: #0A3A00;
}

.wallet-plus:active {
  transform: scale(.9);
}

.wallet-name {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  max-width: 88px;
  min-width: 0;
  padding-right: 3px;
}

.wallet-name b {
  font-size: 11px;
  color: #FFF1D2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.wallet-name span {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  color: #7FA8BC;
  white-space: nowrap;
}

.live-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #69F0A5;
  box-shadow: 0 0 6px rgba(80, 255, 150, .8);
}

.lobby-settings {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 205, 120, .78);
  background: radial-gradient(circle at 36% 28%, rgba(52, 124, 168, .96), rgba(5, 26, 46, .97));
  color: #FFDC9F;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(4, 20, 34, .72), 0 6px 16px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .18);
}

.lobby-settings .mp-icon {
  width: 22px;
  height: 22px;
}

.lobby-settings:active {
  transform: rotate(25deg) scale(.92);
}

.lobby-seats {
  position: absolute;
  z-index: 8;
  top: calc(env(safe-area-inset-top, 0px) + 78px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}

.seat {
  position: relative;
  height: 38px;
  flex: 0 1 150px;
  min-width: 0;
  padding: 0 12px 0 5px;
  border: 1px solid rgba(120, 210, 255, .24);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(9, 43, 68, .9), rgba(3, 22, 38, .92));
  color: #CFEAF7;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .08);
  transition: transform .12s ease, border-color .2s, background .2s;
}

.seat::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .045);
  pointer-events: none;
}

.seat.active {
  border-color: rgba(255, 201, 110, .72);
  background: linear-gradient(180deg, rgba(43, 60, 55, .94), rgba(15, 34, 40, .94));
  color: #FFE7B4;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .12), 0 0 14px rgba(255, 170, 60, .14);
}

.seat-ico {
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 30%, rgba(80, 190, 240, .5), rgba(4, 28, 48, .9));
  border: 1px solid rgba(150, 230, 255, .3);
  color: #A9E9FF;
}

.seat-ico .mp-icon {
  width: 16px;
  height: 16px;
}

.seat-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.seat-meta b {
  font-size: 10.5px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-meta i {
  font-size: 8px;
  font-style: normal;
  line-height: 1.1;
  color: #7FA8BC;
  white-space: nowrap;
}

.seat:active {
  transform: scale(.96);
}

.lobby-hero {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 72px;
  text-align: center;
}

.lobby-hero .kicker {
  color: rgba(255, 210, 150, .8);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

.lobby-hero .game-title {
  margin-top: 8px;
  filter: drop-shadow(0 3px 0 rgba(90, 30, 0, .68)) drop-shadow(0 12px 28px rgba(255, 120, 30, .36));
}

.lobby-hero .title-sub {
  margin-top: 10px;
  text-shadow: 0 0 18px rgba(255, 170, 60, .6), 0 2px 4px rgba(0, 0, 0, .7);
}

.lobby-hero .title-desc {
  margin-top: 5px;
  color: rgba(220, 238, 246, .74);
  text-shadow: 0 1px 5px rgba(0, 0, 0, .8);
}

.hero-pot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(54, 29, 5, .92), rgba(12, 23, 27, .9));
  border: 1px solid rgba(255, 200, 100, .62);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 226, 160, .18), 0 0 20px rgba(255, 160, 50, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pot-orb {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 36% 28%, #FFF6CB, #FFC94E 46%, #D9840D 78%, #7C3E02);
  border: 1px solid #FFEAB0;
  box-shadow: 0 0 16px rgba(255, 180, 60, .55), inset 0 -3px 6px rgba(120, 60, 0, .45);
}

.pot-orb .mp-icon {
  width: 20px;
  height: 20px;
  color: #7A3A00;
  filter: drop-shadow(0 1px 0 rgba(255, 240, 190, .6));
}

.pot-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

.pot-meta i {
  font-size: 8px;
  font-style: normal;
  letter-spacing: .16em;
  color: #D7A868;
}

.pot-meta b {
  font-size: 16px;
  font-weight: 900;
  color: #FFE7A6;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  text-shadow: 0 1px 0 rgba(80, 35, 0, .8), 0 0 14px rgba(255, 190, 70, .5);
}

.arcade-start {
  width: 100%;
  max-width: 280px;
  height: 56px;
  margin-top: 15px;
  border-radius: 15px;
  border: 1px solid #FFF3C2;
  font-size: 19px;
  letter-spacing: .14em;
  text-indent: .14em;
  color: #3A1400;
  background: linear-gradient(180deg, #FFF4C0 0%, #FFD36E 22%, #FFA141 56%, #F17415 78%, #C95006 100%);
  box-shadow: 0 5px 0 #8E3604, 0 16px 30px rgba(255, 120, 30, .42), inset 0 2px rgba(255, 255, 255, .7), inset 0 -4px 8px rgba(150, 55, 0, .3);
  text-shadow: 0 1px 0 rgba(255, 230, 160, .55);
  overflow: visible;
}

.arcade-start::before,
.arcade-start::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFBE2, #E9A42E 62%, #8B4300);
  box-shadow: inset 0 1px rgba(255, 255, 255, .5);
}

.arcade-start::before { left: 12px; }
.arcade-start::after { right: 12px; }

.arcade-start .mp-icon {
  width: 24px;
  height: 24px;
  color: #4A1B00;
}

.arcade-start:active {
  transform: translateY(3px) scale(.99);
  box-shadow: 0 2px 0 #8E3604, 0 8px 18px rgba(255, 120, 30, .32), inset 0 2px rgba(255, 255, 255, .55);
}

.lobby-hero .start-note {
  margin-top: 9px;
  font-size: 9px;
  line-height: 1.4;
  color: rgba(210, 232, 242, .72);
  text-shadow: 0 1px 5px rgba(0, 0, 0, .8);
}

.lobby-rail {
  position: absolute;
  top: 44%;
  z-index: 7;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.lobby-rail.left { left: 10px; }
.lobby-rail.right { right: 10px; }

.rail-btn {
  width: 47px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #D5ECF7;
}

.rail-ico {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 28%, rgba(54, 122, 164, .98), rgba(5, 27, 47, .98) 70%);
  border: 2px solid rgba(255, 206, 120, .72);
  box-shadow: 0 0 0 2px rgba(4, 20, 34, .7), 0 6px 15px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .2), inset 0 -4px 8px rgba(0, 20, 38, .55);
  transition: transform .12s ease, border-color .2s, box-shadow .2s;
}

.rail-ico .mp-icon {
  width: 22px;
  height: 22px;
  color: #FFD993;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}

.rail-label {
  font-size: 8.5px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 5px;
  color: #E7F3F8;
  background: rgba(2, 14, 26, .76);
  text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.rail-btn:active .rail-ico {
  transform: scale(.9);
  border-color: #FFF0C0;
  box-shadow: 0 0 0 2px rgba(255, 190, 90, .22), 0 0 16px rgba(255, 180, 70, .35);
}

.lobby-deck {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  padding: 11px 14px calc(env(safe-area-inset-bottom, 0px) + 9px);
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(6, 33, 52, .96) 0%, rgba(3, 19, 32, .98) 44%, #020d18 100%);
  border-top: 1px solid rgba(255, 200, 110, .48);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lobby-deck::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD98C 22%, #FFF7D6 50%, #FFD98C 78%, transparent);
  filter: drop-shadow(0 0 6px rgba(255, 190, 80, .6));
}

.deck-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.deck-cap {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  letter-spacing: .08em;
  color: #D7A868;
  white-space: nowrap;
}

.deck-cap .mp-icon {
  width: 12px;
  height: 12px;
  color: #FFC978;
}

.lobby-deck .scene-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.lobby-deck .scene-chip {
  height: 29px;
  border-radius: 9px;
  font-size: 9px;
  color: #9FB9C8;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
}

.lobby-deck .scene-chip.active {
  color: #FFE3AE;
  border-color: rgba(255, 190, 100, .6);
  background: linear-gradient(180deg, rgba(255, 170, 80, .22), rgba(255, 120, 40, .07));
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 0 12px rgba(255, 160, 60, .12);
}

.deck-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 7px;
}

.lobby-tier {
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(18, 52, 74, .96), rgba(5, 24, 40, .98));
  border: 1px solid rgba(255, 200, 120, .32);
  box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 4px 12px rgba(0, 0, 0, .3);
}

.lobby-tier .tier-arrow {
  width: 38px;
  margin: 4px;
  border-radius: 9px;
  background: linear-gradient(180deg, #8BE860, #4FBE22 62%, #258A0B);
  border: 1px solid #D6FFAC;
  color: #063300;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .45);
}

.lobby-tier .tier-arrow .mp-icon {
  width: 20px;
  height: 20px;
  color: #063300;
}

.lobby-tier .tier-arrow:active {
  background: linear-gradient(180deg, #A6F47E, #54C628);
}

.lobby-tier .tier-pill {
  min-width: 0;
  padding: 0 6px;
}

.lobby-tier .tier-cap {
  color: #D7A868;
  font-size: 7.5px;
  letter-spacing: .14em;
}

.lobby-tier .tier-num b {
  font-size: 19px;
  color: #FFD36E;
  text-shadow: 0 1px 0 rgba(70, 30, 0, .8), 0 0 12px rgba(255, 180, 60, .32);
}

.lobby-ad {
  height: 48px;
  min-width: 104px;
  padding: 0 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 210, 130, .58);
  background: linear-gradient(180deg, rgba(255, 176, 80, .24), rgba(255, 120, 40, .07));
  color: #FFE3B0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 4px 12px rgba(0, 0, 0, .3);
}

.lobby-ad .mp-icon {
  width: 18px;
  height: 18px;
  color: #FFC766;
  flex: none;
}

.lobby-ad:active {
  transform: scale(.96);
  background: linear-gradient(180deg, rgba(255, 196, 100, .3), rgba(255, 130, 45, .1));
}

.lobby-deck .start-save {
  margin: 7px 0 0;
  font-size: 8.5px;
  color: rgba(143, 185, 200, .68);
}

/* ============================================================
   对局内 · 两侧街机技能栏 + 精简底部炮台
   ============================================================ */
.side-rails {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(var(--safe-top) + 144px);
  bottom: calc(112px + var(--safe-bottom));
  z-index: 26;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.app.mode-menu .side-rails {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

.app.mode-menu .side-rails .rail-col {
  pointer-events: none;
}

.rail-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
}

.side-rails .skill {
  width: 54px;
  height: auto;
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  gap: 0;
}

.side-rails .skill .s-ico {
  width: 46px;
  height: 46px;
  border-width: 2px;
  border-color: rgba(255, 206, 120, .68);
  background: radial-gradient(circle at 38% 28%, rgba(52, 122, 162, .94), rgba(5, 27, 47, .97) 70%);
  box-shadow: 0 0 0 2px rgba(4, 20, 34, .7), 0 5px 14px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .18);
  transition: transform .12s ease, border-color .2s, box-shadow .2s;
}

.side-rails .skill .mp-icon {
  width: 22px;
  height: 22px;
}

.side-rails .skill .s-name {
  margin-top: 1px;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 8.5px;
  line-height: 1.25;
  color: #E2F0F6;
  background: rgba(2, 14, 26, .78);
  text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.side-rails .skill .s-cd {
  top: -2px;
  right: 2px;
  min-width: 16px;
  line-height: 13px;
  border-radius: 7px;
  font-size: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
}

.side-rails .skill:active {
  transform: scale(.92);
}

.side-rails .skill:active .s-ico {
  border-color: #FFF0C0;
  box-shadow: 0 0 0 2px rgba(255, 190, 90, .22), 0 0 16px rgba(255, 180, 70, .35);
}

.side-rails .skill.ready .s-ico {
  border-color: rgba(255, 220, 150, .9);
  box-shadow: 0 0 0 2px rgba(255, 190, 90, .18), 0 0 15px rgba(255, 170, 60, .32), inset 0 1px rgba(255, 255, 255, .2);
}

.side-rails .skill.active .s-ico {
  border-color: #FFDFA0;
  box-shadow: 0 0 0 2px rgba(255, 140, 50, .42), 0 0 20px rgba(255, 130, 40, .5);
}

.side-rails .rage-skill.active .s-ico {
  border-color: #FF9A5A;
  box-shadow: 0 0 0 2px rgba(255, 90, 30, .5), 0 0 22px rgba(255, 80, 20, .6);
}

.dock {
  padding: 9px 14px calc(8px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(5, 24, 39, .62) 0%, rgba(3, 17, 29, .97) 25%, #020e19 100%);
  border-top: 1px solid rgba(255, 195, 110, .3);
  box-shadow: 0 -14px 38px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .06);
}

.dock .ctrl-row {
  margin-top: 0;
  gap: 7px;
}

.dock .tier-ctl {
  height: 50px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(18, 52, 74, .96), rgba(5, 24, 40, .98));
  border: 1px solid rgba(255, 200, 120, .32);
}

.dock .tier-arrow {
  width: 37px;
  margin: 4px;
  border-radius: 9px;
  background: linear-gradient(180deg, #8BE860, #4FBE22 62%, #258A0B);
  border: 1px solid #D6FFAC;
  color: #063300;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .45);
}

.dock .tier-arrow .mp-icon {
  width: 20px;
  height: 20px;
  color: #063300;
}

.dock .tier-arrow:active {
  background: linear-gradient(180deg, #A6F47E, #54C628);
}

.dock .tier-cap {
  color: #D7A868;
  font-size: 7.5px;
}

.dock .tier-num b {
  font-size: 20px;
}

.dock-hint {
  margin-top: 5px;
  font-size: 8.5px;
  color: rgba(159, 185, 200, .66);
}

.dock .fire-btn {
  width: 70px;
  height: 70px;
  transform: translateY(-6px);
}

.dock .fire-btn:active {
  transform: translateY(-2px) scale(.94);
}

@media (max-height: 760px) {
  .lobby-hero {
    transform: translateY(-48%);
    padding: 0 66px;
  }

  .lobby-hero .game-title {
    font-size: clamp(42px, 12.8vw, 56px);
    margin-top: 6px;
  }

  .lobby-hero .title-desc {
    display: none;
  }

  .lobby-hero .title-sub {
    margin-top: 7px;
  }

  .hero-pot {
    margin-top: 10px;
    transform: scale(.94);
  }

  .arcade-start {
    height: 50px;
    margin-top: 11px;
    font-size: 17px;
  }

  .lobby-rail {
    gap: 9px;
  }

  .rail-ico {
    width: 40px;
    height: 40px;
  }

  .rail-ico .mp-icon {
    width: 19px;
    height: 19px;
  }

  .lobby-deck {
    padding-top: 9px;
  }

  .deck-top {
    margin-bottom: 6px;
  }

  .lobby-tier,
  .lobby-ad {
    height: 44px;
  }

  .lobby-deck .start-save {
    margin-top: 5px;
  }

  .side-rails {
    top: calc(var(--safe-top) + 132px);
    bottom: calc(104px + var(--safe-bottom));
    gap: 5px;
  }

  .rail-col {
    gap: 5px;
  }

  .side-rails .skill {
    min-height: 52px;
  }

  .side-rails .skill .s-ico {
    width: 40px;
    height: 40px;
  }

  .side-rails .skill .mp-icon {
    width: 19px;
    height: 19px;
  }

  .side-rails .skill .s-name {
    font-size: 8px;
  }

  .dock .tier-ctl {
    height: 46px;
  }

  .dock .fire-btn {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 370px) {
  .wallet-name {
    display: none;
  }

  .lobby-hero {
    padding: 0 60px;
  }

  .lobby-rail.left { left: 7px; }
  .lobby-rail.right { right: 7px; }

  .rail-btn { width: 43px; }

  .rail-ico {
    width: 41px;
    height: 41px;
  }

  .seat {
    flex: 1 1 0;
    padding-right: 8px;
  }

  .deck-cap {
    display: none;
  }

  .lobby-ad {
    min-width: 94px;
    padding: 0 7px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lobby-rays {
    animation: none;
  }
}

/* 新技能栏与对战榜不叠压 */
.app.in-battle .battle-hud {
  left: 68px;
  top: calc(var(--safe-top) + 150px);
}

/* 底部操作台更紧凑，提示条跟随上移 */
.toast-wrap {
  bottom: calc(124px + var(--safe-bottom));
}

@media (max-height: 640px) {
  .lobby-hero {
    transform: translateY(-47%);
  }

  .lobby-hero .game-title {
    font-size: clamp(36px, 11.5vw, 46px);
  }

  .lobby-hero .title-sub,
  .lobby-hero .title-desc,
  .lobby-hero .kicker {
    display: none;
  }

  .hero-pot {
    margin-top: 8px;
    transform: scale(.88);
  }

  .arcade-start {
    height: 46px;
    margin-top: 8px;
    font-size: 16px;
  }

  .lobby-seats {
    top: calc(env(safe-area-inset-top, 0px) + 72px);
  }

  .seat {
    height: 34px;
  }

  .lobby-rail {
    gap: 6px;
  }

  .rail-ico {
    width: 37px;
    height: 37px;
  }

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

  .rail-label {
    font-size: 8px;
    padding: 1px 4px;
  }

  .lobby-deck {
    padding-top: 7px;
  }

  .deck-top {
    margin-bottom: 5px;
  }

  .lobby-tier,
  .lobby-ad {
    height: 41px;
  }

  .lobby-tier .tier-num b {
    font-size: 17px;
  }

  .lobby-deck .start-save {
    display: none;
  }
}

/* 大厅音效开关状态 */
.lobby-rail [data-toggle-sound] .snd-off {
  display: none;
}

.app.muted .lobby-rail [data-toggle-sound] .snd-on {
  display: none;
}

.app.muted .lobby-rail [data-toggle-sound] .snd-off {
  display: block;
  color: #8FAEBE;
}

.app.muted .lobby-rail [data-toggle-sound] .rail-ico {
  opacity: .62;
}

.app.muted .lobby-rail [data-toggle-sound] .rail-label {
  color: #8FAEBE;
}

/* 对局海面轻微提亮，抵消深水暗角 */
#sea {
  filter: brightness(1.09) saturate(1.12);
}

/* 消息提示抬到炮台上方，避免遮住炮口 */
.app .toast-wrap {
  bottom: calc(198px + var(--safe-bottom));
}

@media (max-height: 640px) {
  .app .toast-wrap {
    bottom: calc(156px + var(--safe-bottom));
  }
}

/* 对局消息抬到炮台上方，不遮炮口也不挡技能 */
.app .toast-wrap {
  top: auto;
  bottom: calc(232px + var(--safe-bottom));
}

@media (max-height: 640px) {
  .app .toast-wrap {
    bottom: calc(188px + var(--safe-bottom));
  }
}

/* ============================================================
   2026 · 参考实机图重做首页/对局 HUD
   顶部钱包 + 等待加入 + 齿轮，两侧街机圆键，底部技能条/炮台/聚宝盆
   背景与炮台全部是真实 Canvas/HTML，不使用任何新生成图片
   ============================================================ */

.app .hud {
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 0;
  z-index: 32;
}

.app .hud-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app .player-chip {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  height: 52px;
  padding: 4px 6px 4px 4px;
  gap: 7px;
  border-radius: 16px;
  border: 1px solid rgba(255, 205, 120, .58);
  background:
    linear-gradient(180deg, rgba(16, 58, 86, .97) 0%, rgba(5, 28, 48, .97) 58%, rgba(3, 18, 32, .98) 100%);
  box-shadow:
    0 3px 0 rgba(0, 12, 22, .5),
    0 8px 20px rgba(0, 0, 0, .46),
    inset 0 1px rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.app .player-chip::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 13px;
  border: 1px solid rgba(140, 225, 255, .08);
  pointer-events: none;
}

.app .player-chip .avatar {
  width: 40px;
  height: 40px;
  border: 2px solid #FFD36E;
  box-shadow: 0 0 0 2px rgba(4, 20, 34, .7), 0 0 14px rgba(255, 176, 60, .3);
  font-size: 16px;
}

.app .p-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.app .p-meta > b {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: #A9D4E8;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app .p-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1;
}

.app .p-coin {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.app .p-coin .coin-dot {
  width: 15px;
  height: 15px;
}

.app .p-coin b {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: #FFE5A4;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(70, 30, 0, .8), 0 0 12px rgba(255, 180, 60, .32);
  white-space: nowrap;
}

.app .p-gem {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.app .p-gem .mp-icon {
  width: 11px;
  height: 11px;
  color: #8DE7FF;
  filter: drop-shadow(0 0 4px rgba(80, 210, 255, .5));
}

.app .p-gem b {
  font-size: 11px;
  font-weight: 800;
  color: #C9F2FF;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.app .p-gem em {
  font-size: 7.5px;
  font-style: normal;
  color: #7FA8BC;
  line-height: 1;
}

.app .wallet-plus {
  width: 25px;
  height: 25px;
  margin-left: auto;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #DCFFB0;
  background: radial-gradient(circle at 36% 27%, #D6FF9C, #64D22D 55%, #228807);
  color: #0A3A00;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .5);
}

.app .wallet-plus .mp-icon {
  width: 15px;
  height: 15px;
  color: #0A3A00;
}

.app .wallet-plus:active {
  transform: scale(.88);
}

/* 顶部中间：等待加入 */
.seat-pill {
  flex: none;
  height: 40px;
  padding: 0 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 205, 120, .42);
  background:
    linear-gradient(180deg, rgba(14, 55, 84, .96), rgba(4, 24, 42, .97));
  color: #E9F6FC;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 3px 0 rgba(0, 12, 22, .42), 0 6px 14px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .12);
}

.seat-pill .mp-icon {
  width: 16px;
  height: 16px;
  color: #8FE2FF;
}

.seat-pill span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.seat-pill:active {
  transform: scale(.95);
  border-color: rgba(255, 230, 170, .8);
}

.app .hud-tools {
  display: flex;
  gap: 5px;
  flex: none;
}

.app .hud-tools .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 205, 120, .55);
  background: radial-gradient(circle at 36% 28%, #2F7EA8 0%, #0A3556 58%, #031A2C 100%);
  color: #FFDF9F;
  box-shadow: 0 0 0 2px rgba(3, 17, 30, .66), 0 5px 12px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .2);
}

.app .hud-tools .icon-btn .mp-icon {
  width: 19px;
  height: 19px;
}

.app .hud-tools .icon-btn:active {
  transform: scale(.9);
  border-color: #FFEBC2;
}

/* 两侧街机按键：菜单里也保持可见，点下去有提示 */
.app .side-rails {
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  left: 7px;
  right: 7px;
  z-index: 24;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.app.mode-menu .side-rails {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.app.mode-menu .side-rails .rail-col {
  pointer-events: auto;
}

.app .side-rails .rail-col {
  gap: 10px;
}

.app .side-rails .skill {
  width: 54px;
  min-height: 60px;
  gap: 1px;
}

.app .side-rails .skill .s-ico {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 206, 120, .74);
  background:
    radial-gradient(circle at 36% 26%, rgba(104, 206, 246, .94) 0%, rgba(26, 104, 150, .96) 42%, rgba(4, 28, 48, .99) 100%);
  box-shadow:
    0 0 0 2px rgba(3, 17, 30, .72),
    0 5px 14px rgba(0, 0, 0, .46),
    inset 0 1px rgba(255, 255, 255, .26),
    inset 0 -5px 9px rgba(0, 15, 30, .55);
}

.app .side-rails .skill .s-ico::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 52%);
  pointer-events: none;
}

.app .side-rails .skill .mp-icon {
  width: 23px;
  height: 23px;
  color: #FFD98F;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
}

.app .side-rails .skill .s-name {
  margin-top: 1px;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 8.5px;
  line-height: 1.3;
  color: #EAF6FB;
  background: rgba(1, 12, 23, .8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  text-shadow: 0 1px 2px #000;
}

.app .side-rails .skill .s-cd {
  top: -3px;
  right: 1px;
  min-width: 17px;
  line-height: 14px;
  border-radius: 7px;
  font-size: 8px;
  color: #FFE7B8;
  background: linear-gradient(180deg, rgba(255, 148, 52, .82), rgba(184, 64, 8, .9));
  border: 1px solid rgba(255, 220, 160, .35);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .45);
}

.app .side-rails .skill.active .s-ico {
  border-color: #FFE7A8;
  background: radial-gradient(circle at 36% 26%, #FFE28C 0%, #E79A2C 42%, #6E3400 100%);
  box-shadow: 0 0 0 2px rgba(255, 160, 50, .45), 0 0 20px rgba(255, 150, 40, .55), inset 0 1px rgba(255, 255, 255, .3);
}

.app .side-rails .skill.active .mp-icon {
  color: #572500;
}

/* 底部：技能条 + 聚宝盆 + 炮台操作 */
.app .dock {
  padding: 8px 10px calc(7px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255, 198, 110, .55);
  background:
    linear-gradient(180deg, rgba(8, 37, 58, .72) 0%, rgba(3, 20, 35, .97) 30%, #010b15 100%);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .08);
  z-index: 30;
}

.app .dock::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD98C 22%, #FFF7D6 50%, #FFD98C 78%, transparent);
  filter: drop-shadow(0 0 6px rgba(255, 190, 80, .55));
  pointer-events: none;
}

.app .power-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.app .dock .skill.power {
  width: 52px;
  height: 58px;
  flex: none;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  gap: 0;
}

.app .dock .skill.power .s-ico {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 206, 120, .7);
  background: radial-gradient(circle at 36% 26%, rgba(88, 194, 240, .92) 0%, rgba(20, 92, 140, .96) 46%, rgba(3, 24, 42, .99) 100%);
  box-shadow: 0 0 0 2px rgba(2, 14, 26, .75), 0 4px 12px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .24);
}

.app .dock .skill.power .mp-icon {
  width: 22px;
  height: 22px;
  color: #BDF2FF;
  filter: drop-shadow(0 0 5px rgba(80, 210, 255, .4));
}

.app .dock .skill.power .s-name {
  margin-top: 1px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 8px;
  line-height: 1.35;
  color: #D7EDF7;
  background: rgba(1, 12, 23, .82);
}

.app .dock .skill.power .s-cd {
  top: -1px;
  right: 0;
  min-width: 16px;
  line-height: 13px;
  border-radius: 7px;
  font-size: 8px;
  background: rgba(3, 20, 36, .9);
  border: 1px solid rgba(255, 215, 150, .4);
  color: #FFE7B8;
}

.app .dock .skill.power.rage-skill .s-ico {
  background: radial-gradient(circle at 36% 26%, #FFD27A 0%, #E8702A 44%, #6E1B04 100%);
  border-color: rgba(255, 220, 160, .85);
}

.app .dock .skill.power.rage-skill .mp-icon {
  color: #FFF2CC;
}

.app .dock .skill.power.active .s-ico {
  border-color: #FFF0C0;
  box-shadow: 0 0 0 2px rgba(255, 170, 60, .42), 0 0 18px rgba(255, 150, 40, .55);
}

/* 聚宝盆 */
.pot-btn {
  margin-left: auto;
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 116px;
  height: 54px;
  padding: 3px 9px 3px 3px;
  border-radius: 16px;
  border: 1px solid rgba(255, 205, 120, .58);
  background: linear-gradient(180deg, rgba(64, 39, 7, .94), rgba(14, 30, 36, .97) 62%, rgba(4, 18, 28, .98));
  box-shadow: inset 0 1px rgba(255, 236, 180, .2), 0 4px 14px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 160, 50, .1);
}

.pot-btn:active {
  transform: scale(.96);
}

.pot-jar {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 26%, #FFF8CB 0%, #FFD264 36%, #E6921C 66%, #7B3E02 100%);
  border: 2px solid #FFE9AC;
  box-shadow: 0 0 16px rgba(255, 176, 50, .55), inset 0 -4px 8px rgba(110, 52, 0, .5);
}

.pot-jar .mp-icon {
  width: 25px;
  height: 25px;
  color: #6E3300;
  filter: drop-shadow(0 1px 0 rgba(255, 240, 190, .7));
}

.pot-shine {
  position: absolute;
  left: 9px;
  top: 5px;
  width: 13px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  filter: blur(2px);
  transform: rotate(-20deg);
}

.pot-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
  line-height: 1.05;
}

.pot-meta em {
  font-size: 7.5px;
  font-style: normal;
  letter-spacing: .06em;
  color: #D7A868;
  white-space: nowrap;
}

.pot-meta b {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .01em;
  color: #FFE7A6;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(70, 30, 0, .8), 0 0 12px rgba(255, 190, 70, .4);
  white-space: nowrap;
}

.pot-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  border: 1px solid #FFD7B0;
  background: linear-gradient(180deg, #FF7A50, #C9230A);
  color: #FFF6E8;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}

.app .dock .ctrl-row {
  margin-top: 0;
  gap: 7px;
}

.app .dock .tier-ctl {
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 200, 120, .38);
  background: linear-gradient(180deg, rgba(20, 58, 82, .97), rgba(4, 22, 38, .99));
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 4px 10px rgba(0, 0, 0, .35);
}

.app .dock .tier-arrow {
  width: 34px;
  margin: 4px;
  border-radius: 10px;
  border: 1px solid #DCFFB0;
  background: linear-gradient(180deg, #9CF26C 0%, #52C023 56%, #1F7C06 100%);
  color: #063300;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .5);
}

.app .dock .tier-arrow .mp-icon {
  width: 20px;
  height: 20px;
  color: #063300;
}

.app .dock .tier-cap {
  font-size: 7.5px;
  color: #D7A868;
}

.app .dock .tier-num b {
  font-size: 21px;
  color: #FFD36E;
  text-shadow: 0 1px 0 rgba(70, 30, 0, .8), 0 0 12px rgba(255, 180, 60, .35);
}

.app .dock .fire-btn {
  width: 66px;
  height: 66px;
  transform: translateY(-5px);
  border-width: 2px;
  box-shadow: 0 0 0 5px rgba(255, 140, 50, .14), 0 8px 18px rgba(0, 0, 0, .5), inset 0 -5px 10px rgba(140, 50, 0, .38);
}

.app .dock .fire-btn:active {
  transform: translateY(-1px) scale(.94);
}

.app .dock .ad-pill {
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(255, 205, 120, .52);
  background: linear-gradient(180deg, rgba(255, 176, 80, .24), rgba(255, 120, 40, .07));
}

.app .dock-hint {
  margin-top: 4px;
  font-size: 8px;
  color: rgba(170, 202, 216, .6);
}

/* 菜单里保持同一套 HUD / 炮台可见 */
.app.mode-menu .hud {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: none;
}

.app.mode-menu .dock {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.app.mode-menu .toast-wrap {
  display: block;
}

/* 首页：只有一枚开局按钮浮在真实海面之上 */
.app .start-screen {
  z-index: 34;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px calc(200px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(58% 26% at 50% 66%, rgba(1, 12, 22, .34), rgba(1, 12, 22, 0) 74%);
  pointer-events: none;
  overflow: visible;
}

.app .start-screen::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 9, 17, 0) 0%, rgba(1, 9, 17, .24) 48%, rgba(1, 9, 17, .62) 100%);
}

.app .start-screen::after {
  display: none;
}

.ready-glow {
  position: absolute;
  left: 50%;
  bottom: calc(156px + env(safe-area-inset-bottom, 0px));
  width: 340px;
  height: 190px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 168, 64, .28) 0%, rgba(255, 120, 30, .1) 46%, rgba(255, 100, 20, 0) 72%);
  filter: blur(8px);
  pointer-events: none;
}

.ready-wrap {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 360px;
  padding-bottom: 6px;
  text-align: center;
}

.ready-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.ready-brand b {
  font-size: clamp(28px, 8.4vw, 36px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.05;
  background: linear-gradient(180deg, #FFFCE4 4%, #FFE49C 32%, #FFB44F 60%, #F07A12 84%, #C95006 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(90, 30, 0, .7)) drop-shadow(0 8px 22px rgba(255, 130, 40, .36));
}

.brand-line {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FFC56D);
}

.brand-line:last-child {
  background: linear-gradient(90deg, #FFC56D, transparent);
}

.ready-kicker {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .34em;
  text-indent: .34em;
  color: rgba(255, 214, 150, .82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}

.app .start-screen .arcade-start {
  width: min(284px, 80vw);
  max-width: none;
  height: 58px;
  margin-top: 3px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid #FFF3C2;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .12em;
  text-indent: .12em;
  color: #3A1400;
  background: linear-gradient(180deg, #FFF6C8 0%, #FFD36E 22%, #FFA141 56%, #F17415 78%, #C95006 100%);
  box-shadow: 0 5px 0 #8E3604, 0 16px 30px rgba(255, 120, 30, .4), inset 0 2px rgba(255, 255, 255, .7), inset 0 -4px 8px rgba(150, 55, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: visible;
}

.app .start-screen .arcade-start .mp-icon {
  width: 25px;
  height: 25px;
  color: #4A1B00;
}

.app .start-screen .arcade-start:active {
  transform: translateY(3px) scale(.99);
  box-shadow: 0 2px 0 #8E3604, 0 8px 18px rgba(255, 120, 30, .3), inset 0 2px rgba(255, 255, 255, .55);
}

.app .start-screen .start-note {
  margin: 2px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .03em;
  color: rgba(213, 235, 245, .82);
  background: rgba(1, 14, 25, .48);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}

/* 暂停里的渔场切换 */
.pause-scenes {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 10px;
}

.pause-cap {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: #D7A868;
}

.pause-cap .mp-icon {
  width: 12px;
  height: 12px;
  color: #FFC978;
}

.pause-scenes .scene-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
}

.pause-scenes .scene-chip {
  height: 27px;
  border-radius: 8px;
  font-size: 8.5px;
  padding: 0 2px;
}

/* 小屏适配 */
@media (max-width: 380px) {
  .app .player-chip {
    height: 48px;
    padding-right: 4px;
  }

  .app .player-chip .avatar {
    width: 36px;
    height: 36px;
  }

  .seat-pill {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .seat-pill span {
    display: none;
  }

  .app .p-coin b {
    font-size: 16px;
  }

  .app .p-gem {
    padding-left: 5px;
    gap: 2px;
  }

  .app .p-gem em {
    display: none;
  }

  .app .hud-tools .icon-btn {
    width: 35px;
    height: 35px;
  }

  .app .side-rails {
    left: 5px;
    right: 5px;
  }

  .pot-btn {
    min-width: 104px;
    gap: 4px;
    padding-right: 6px;
  }

  .pot-meta b {
    font-size: 12.5px;
  }

  .app .dock .ad-pill {
    font-size: 9px;
    padding: 4px 6px;
  }

  .app .dock .tier-arrow {
    width: 29px;
  }
}

@media (max-height: 700px) {
  .app .side-rails {
    top: calc(env(safe-area-inset-top, 0px) + 66px);
    bottom: calc(146px + env(safe-area-inset-bottom, 0px));
  }

  .app .side-rails .rail-col {
    gap: 5px;
  }

  .app .side-rails .skill {
    min-height: 52px;
  }

  .app .side-rails .skill .s-ico {
    width: 42px;
    height: 42px;
  }

  .app .side-rails .skill .mp-icon {
    width: 20px;
    height: 20px;
  }

  .app .start-screen {
    padding-bottom: calc(166px + env(safe-area-inset-bottom, 0px));
  }

  .ready-glow {
    bottom: calc(124px + env(safe-area-inset-bottom, 0px));
    height: 150px;
  }

  .ready-brand b {
    font-size: 28px;
  }

  .app .start-screen .arcade-start {
    height: 52px;
    font-size: 18px;
  }

  .app .dock .skill.power {
    height: 52px;
  }

  .app .dock .skill.power .s-ico {
    width: 40px;
    height: 40px;
  }

  .pot-btn {
    height: 48px;
  }

  .pot-jar {
    width: 40px;
    height: 40px;
  }

  .pot-jar .mp-icon {
    width: 22px;
    height: 22px;
  }
}

.app .player-chip { position: relative; }
.app .p-coin.bump b { animation: bump .32s ease; }

/* 让底部礁盘透出一点，画面不被操作台切断 */
.app .dock {
  background:
    linear-gradient(180deg, rgba(8, 37, 58, .62) 0%, rgba(3, 20, 35, .9) 34%, rgba(1, 11, 21, .96) 100%);
  backdrop-filter: blur(7px) saturate(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
}

/* 开局按钮收敛一点，把海面留给鱼群 */
.app .start-screen {
  padding-bottom: calc(238px + env(safe-area-inset-bottom, 0px));
}

.app .start-screen .arcade-start {
  width: min(224px, 66vw);
  height: 52px;
  font-size: 17px;
  letter-spacing: .1em;
  text-indent: .1em;
}

.ready-brand b {
  font-size: clamp(24px, 7.2vw, 31px);
}

@media (max-height: 700px) {
  .app .start-screen {
    padding-bottom: calc(184px + env(safe-area-inset-bottom, 0px));
  }
  .app .start-screen .arcade-start {
    height: 46px;
    font-size: 15.5px;
  }
  .ready-brand b {
    font-size: 24px;
  }
}

/* 窄屏底部三列不挤压：炮台倍率、开炮、广告各自留够触控宽度 */
@media (max-width: 380px) {
  .app .dock .ctrl-row {
    gap: 5px;
  }

  .app .dock .tier-ctl {
    height: 48px;
  }

  .app .dock .tier-arrow {
    width: 25px;
    margin: 3px;
    border-radius: 8px;
  }

  .app .dock .tier-arrow .mp-icon {
    width: 17px;
    height: 17px;
  }

  .app .dock .tier-pill {
    min-width: 46px;
  }

  .app .dock .tier-cap {
    font-size: 6.5px;
    letter-spacing: .08em;
    text-indent: .08em;
  }

  .app .dock .tier-num b {
    font-size: 17px;
  }

  .app .dock .fire-btn {
    width: 58px;
    height: 58px;
    transform: translateY(-4px);
  }

  .app .dock .fire-btn .mp-icon {
    width: 23px;
    height: 23px;
  }

  .app .dock .fire-btn > span:last-child {
    font-size: 9px;
  }

  .app .dock .ad-pill {
    min-height: 42px;
    max-width: 94px;
    padding: 4px 6px;
    font-size: 8.5px;
    gap: 3px;
  }

  .app .dock .ad-pill .mp-icon {
    width: 16px;
    height: 16px;
  }

  .app .dock .skill.power {
    width: 48px;
  }

  .app .dock .skill.power .s-ico {
    width: 42px;
    height: 42px;
  }

  .pot-btn {
    min-width: 104px;
    height: 50px;
  }

  .pot-jar {
    width: 42px;
    height: 42px;
  }
}

/* ============================================================
   2026-11 视觉优化 · 参考实机街机《捕鱼达人》
   蓝金玻璃面板 / 圆形绿钮 / 金色铆钉 / 更亮的渔场
   仅改观感，不改任何玩法与布局逻辑
   ============================================================ */
.app {
  --arc-gold: #FFD77A;
  --arc-gold-hi: #FFF6CF;
  --arc-gold-deep: #B8730B;
  --arc-cyan: #8FE9FF;
  --arc-glass-hi: rgba(34, 124, 168, .96);
  --arc-glass-mid: rgba(8, 56, 88, .97);
  --arc-glass-lo: rgba(2, 24, 42, .99);
  background: radial-gradient(120% 80% at 50% 0%, #0b4468 0%, #04243c 45%, #010d18 100%);
}

/* 顶部压暗，保证白色 HUD 在亮海面上依然清楚 */
.app .hud::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -12px;
  height: 122px;
  z-index: -1;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(4, 28, 46, .5), rgba(2, 15, 27, 0) 72%),
    linear-gradient(180deg, rgba(1, 13, 24, .72) 0%, rgba(2, 17, 30, .34) 58%, rgba(2, 17, 30, 0) 100%);
  pointer-events: none;
}

.app .hud {
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 0;
}

.app .hud-top {
  align-items: center;
  gap: 5px;
}

/* 玩家卡：金色雕边 + 深海蓝玻璃 */
.app .player-chip {
  height: 58px;
  padding: 4px 6px 4px 5px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 216, 140, .82);
  background:
    linear-gradient(180deg, rgba(31, 124, 166, .96) 0%, rgba(8, 62, 98, .97) 46%, rgba(2, 27, 48, .99) 100%);
  box-shadow:
    0 3px 0 rgba(0, 10, 20, .58),
    0 10px 24px rgba(0, 0, 0, .48),
    inset 0 1px rgba(255, 255, 255, .28),
    inset 0 -8px 16px rgba(0, 12, 24, .38);
  backdrop-filter: blur(9px) saturate(1.12);
  -webkit-backdrop-filter: blur(9px) saturate(1.12);
}

.app .player-chip::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 2px;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 214, .78) 22%, rgba(255, 247, 214, .78) 78%, transparent);
  pointer-events: none;
}

.app .player-chip::after {
  inset: 4px;
  border-radius: 14px;
  border: 1px solid rgba(150, 232, 255, .16);
  box-shadow: inset 0 0 14px rgba(64, 196, 240, .08);
}

.app .player-chip .avatar {
  width: 44px;
  height: 44px;
  border: 2px solid #FFE2A0;
  background:
    radial-gradient(circle at 34% 26%, #3E9CC4 0%, #12547C 55%, #042238 100%);
  box-shadow:
    0 0 0 3px rgba(2, 20, 36, .78),
    0 0 16px rgba(255, 178, 58, .38),
    inset 0 1px rgba(255, 255, 255, .3);
  font-size: 17px;
  color: #FFF1C8;
  animation: arcAvatarGlow 3.6s ease-in-out infinite;
}

.app .p-meta {
  gap: 1px;
}

.app .p-meta > b {
  font-size: 9.5px;
  line-height: 1.15;
  font-weight: 700;
  color: #BFE8F8;
  letter-spacing: .06em;
  text-shadow: 0 1px 2px rgba(0, 10, 20, .8);
}

.app .p-wallet {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.app .p-coin {
  gap: 5px;
}

.app .p-coin .coin-dot {
  width: 17px;
  height: 17px;
  border-width: 1.5px;
  box-shadow:
    0 0 10px rgba(255, 190, 60, .55),
    inset 0 -2px 4px rgba(150, 80, 0, .5),
    0 0 0 2px rgba(80, 42, 0, .22);
}

.app .p-coin b {
  font-size: 20px;
  letter-spacing: .01em;
  color: #FFD778;
  background: linear-gradient(180deg, #FFFCE6 0%, #FFE08E 44%, #FFB23C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(74, 30, 0, .85)) drop-shadow(0 0 7px rgba(255, 176, 54, .25));
}

.app .p-gem {
  padding-left: 0;
  border-left: 0;
  gap: 3px;
}

.app .p-gem .mp-icon {
  width: 10px;
  height: 10px;
  color: #A9F0FF;
}

.app .p-gem b {
  font-size: 10px;
  color: #A9F0FF;
  letter-spacing: .02em;
}

.app .p-gem em {
  font-size: 7px;
  color: #86AFC2;
  letter-spacing: .04em;
}

.app .wallet-plus {
  width: 28px;
  height: 28px;
  border-width: 1.5px;
  border-color: #E7FFC2;
  background: radial-gradient(circle at 36% 25%, #E4FFB4 0%, #78E23A 40%, #34A510 72%, #176D04 100%);
  box-shadow:
    0 2px 0 rgba(8, 55, 0, .6),
    0 4px 10px rgba(0, 0, 0, .4),
    inset 0 1px rgba(255, 255, 255, .65);
  animation: arcPlusPulse 2.6s ease-in-out infinite;
}

.app .wallet-plus .mp-icon {
  width: 17px;
  height: 17px;
  color: #0B4000;
}

/* 中间等待加入：玻璃牌 + 呼吸灯 */
.app .seat-pill {
  position: relative;
  height: 44px;
  padding: 0 11px;
  border-radius: 14px;
  border: 1px solid rgba(146, 233, 255, .5);
  background:
    linear-gradient(180deg, rgba(28, 116, 158, .94) 0%, rgba(7, 54, 86, .97) 58%, rgba(2, 27, 46, .98) 100%);
  box-shadow:
    0 2px 0 rgba(0, 12, 24, .5),
    0 6px 16px rgba(0, 0, 0, .4),
    inset 0 1px rgba(255, 255, 255, .24);
}

.app .seat-pill .mp-icon {
  width: 17px;
  height: 17px;
  color: #B6F3FF;
  filter: drop-shadow(0 0 5px rgba(80, 220, 255, .55));
}

.app .seat-pill span {
  font-size: 9.5px;
  letter-spacing: .04em;
  color: #EAFBFF;
  text-shadow: 0 1px 2px rgba(0, 12, 24, .8);
}

.app .seat-pill::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7DFFB0;
  box-shadow: 0 0 7px #58F89A;
  animation: arcSeatBlink 1.8s ease-in-out infinite;
}

.app .hud-tools {
  gap: 5px;
}

.app .hud-tools .icon-btn {
  width: 40px;
  height: 40px;
  border-width: 1.5px;
  border-color: rgba(255, 216, 144, .68);
  background:
    radial-gradient(circle at 35% 26%, #439CC4 0%, #0E527C 48%, #031F36 100%);
  color: #FFE2A6;
  box-shadow:
    0 0 0 2px rgba(2, 16, 30, .72),
    0 5px 13px rgba(0, 0, 0, .45),
    inset 0 1px rgba(255, 255, 255, .26);
}

.app .hud-tools .icon-btn .mp-icon {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(0, 10, 20, .7));
}

/* 两侧技能：深蓝宝石球 + 金色雕花圈 */
.app .side-rails {
  top: calc(env(safe-area-inset-top, 0px) + 78px);
  bottom: calc(170px + env(safe-area-inset-bottom, 0px));
  left: 6px;
  right: 6px;
}

.app .side-rails .rail-col {
  gap: 10px;
}

.app .side-rails .skill {
  width: 60px;
  min-height: 65px;
}

.app .side-rails .skill .s-ico {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 214, 136, .85);
  background:
    radial-gradient(circle at 35% 24%, #71D3F1 0%, #2A92BE 34%, #0B507B 66%, #04243D 100%);
  box-shadow:
    0 0 0 2.5px rgba(2, 16, 30, .78),
    0 0 0 3.5px rgba(255, 208, 120, .22),
    0 5px 14px rgba(0, 0, 0, .48),
    inset 0 2px 2px rgba(255, 255, 255, .3),
    inset 0 -6px 11px rgba(0, 14, 28, .55);
}

.app .side-rails .skill .s-ico::after {
  inset: 4px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 46%);
}

.app .side-rails .skill .mp-icon {
  width: 24px;
  height: 24px;
  color: #FFE1A0;
  filter: drop-shadow(0 1px 2px rgba(0, 14, 26, .7));
}

.app .side-rails .skill .s-name {
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 210, 130, .26);
  background:
    linear-gradient(180deg, rgba(17, 70, 104, .94), rgba(2, 22, 40, .96));
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .09);
  font-size: 8.5px;
  line-height: 1.35;
  color: #F2FBFF;
}

.app .side-rails .skill .s-cd {
  top: -3px;
  right: 0;
  min-width: 18px;
  line-height: 15px;
  border-radius: 8px;
  font-size: 8.5px;
  border: 1px solid rgba(255, 226, 170, .55);
  background: linear-gradient(180deg, #FF9E4E, #C33B0A);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .3);
}

.app .side-rails .skill.ready .s-ico {
  animation: arcSkillBreath 2.4s ease-in-out infinite;
}

.app .side-rails .skill.active .s-ico {
  border-color: #FFF4C6;
  background:
    radial-gradient(circle at 35% 24%, #FFF3BE 0%, #FFD36E 30%, #E88A16 68%, #7A3400 100%);
  box-shadow:
    0 0 0 2.5px rgba(2, 16, 30, .7),
    0 0 0 4px rgba(255, 170, 50, .38),
    0 0 22px rgba(255, 150, 30, .62),
    inset 0 2px 2px rgba(255, 255, 255, .45);
}

/* 底部操作台：深海蓝玻璃 + 金色包边 */
.app .dock {
  padding: 10px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  border-top: 2px solid rgba(255, 218, 142, .92);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(38, 148, 194, .34) 0%, rgba(38, 148, 194, 0) 54%),
    linear-gradient(180deg, rgba(9, 62, 94, .9) 0%, rgba(3, 33, 54, .97) 38%, #021322 100%);
  box-shadow:
    0 -3px 0 rgba(96, 38, 0, .4),
    0 -14px 34px rgba(0, 0, 0, .52),
    inset 0 1px rgba(255, 255, 255, .14),
    inset 0 18px 32px rgba(70, 200, 240, .07);
  backdrop-filter: blur(9px) saturate(1.16);
  -webkit-backdrop-filter: blur(9px) saturate(1.16);
}

.app .dock::before {
  left: 8%;
  right: 8%;
  top: -2px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent 0%, #FFCF7A 16%, #FFFBE2 42%, #FFE8AD 58%, #FFCF7A 84%, transparent 100%);
  filter: drop-shadow(0 0 7px rgba(255, 196, 90, .8));
}

.app .dock::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 130, .24) 18%, rgba(140, 238, 255, .22) 50%, rgba(255, 212, 130, .24) 82%, transparent);
  pointer-events: none;
}

.app .power-strip {
  gap: 8px;
  margin-bottom: 8px;
}

.app .dock .skill.power {
  flex: 1 1 0;
  width: auto;
  max-width: 66px;
  height: 62px;
}

.app .dock .skill.power .s-ico {
  width: 46px;
  height: 46px;
  border-width: 2px;
  border-color: rgba(255, 216, 142, .82);
  background:
    radial-gradient(circle at 35% 24%, #79D8F5 0%, #2692C2 38%, #0B4C76 70%, #03213A 100%);
  box-shadow:
    0 0 0 2.5px rgba(2, 16, 30, .8),
    0 0 0 3.5px rgba(255, 208, 124, .2),
    0 4px 12px rgba(0, 0, 0, .46),
    inset 0 2px 2px rgba(255, 255, 255, .3),
    inset 0 -6px 10px rgba(0, 14, 28, .5);
}

.app .dock .skill.power .mp-icon {
  width: 23px;
  height: 23px;
  color: #D8F8FF;
  filter: drop-shadow(0 0 6px rgba(90, 220, 255, .5));
}

.app .dock .skill.power .s-name {
  margin-top: 2px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 210, 130, .2);
  font-size: 8.5px;
  line-height: 1.4;
  color: #EAF9FF;
  background: linear-gradient(180deg, rgba(17, 70, 104, .9), rgba(2, 20, 36, .94));
}

.app .dock .skill.power .s-cd {
  top: -2px;
  right: -1px;
  min-width: 17px;
  line-height: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 228, 174, .55);
  background: linear-gradient(180deg, rgba(255, 158, 70, .95), rgba(172, 48, 6, .96));
  color: #FFF8E6;
}

.app .dock .skill.power.rage-skill .s-ico {
  background:
    radial-gradient(circle at 35% 24%, #FFE9A6 0%, #FFBE52 32%, #EC6C1E 66%, #6A1B03 100%);
  border-color: rgba(255, 236, 184, .9);
}

.app .dock .skill.power.rage-skill .mp-icon {
  color: #FFF8DC;
  filter: drop-shadow(0 0 7px rgba(255, 130, 40, .7));
}

/* 聚宝盆：更亮的金币罐 */
.pot-btn {
  min-width: 112px;
  height: 58px;
  padding: 4px 9px 4px 4px;
  gap: 6px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 218, 142, .86);
  background:
    radial-gradient(100% 140% at 30% 0%, rgba(255, 214, 128, .28) 0%, rgba(255, 214, 128, 0) 54%),
    linear-gradient(180deg, rgba(74, 47, 8, .97), rgba(20, 47, 48, .98) 58%, rgba(3, 22, 34, .99));
  box-shadow:
    0 3px 0 rgba(52, 22, 0, .45),
    0 5px 16px rgba(0, 0, 0, .46),
    inset 0 1px rgba(255, 246, 206, .3),
    0 0 20px rgba(255, 166, 48, .14);
  overflow: visible;
}

.pot-jar {
  width: 48px;
  height: 48px;
  border: 2px solid #FFF0B8;
  background:
    radial-gradient(circle at 32% 22%, #FFFBE0 0%, #FFE29A 20%, #FFC64F 44%, #E08C12 70%, #7A3800 100%);
  box-shadow:
    0 0 0 2px rgba(72, 32, 0, .5),
    0 0 18px rgba(255, 182, 50, .62),
    inset 0 -5px 9px rgba(112, 48, 0, .55),
    inset 0 2px 2px rgba(255, 255, 255, .65);
}

.pot-jar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 226, 160, .45);
  animation: arcSpin 16s linear infinite;
  pointer-events: none;
}

.pot-jar .mp-icon {
  width: 27px;
  height: 27px;
  color: #7A3600;
}

.pot-meta em {
  font-size: 8px;
  letter-spacing: .12em;
  color: #FFC978;
}

.pot-meta b {
  font-size: 16px;
  background: linear-gradient(180deg, #FFFCE8, #FFDC86 52%, #FFB03A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(74, 28, 0, .9)) drop-shadow(0 0 6px rgba(255, 178, 50, .3));
}

.pot-badge {
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  border: 1.5px solid #FFE2B8;
  background: linear-gradient(180deg, #FF7D55, #C11F06);
  font-size: 9.5px;
  line-height: 17px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .3);
}

/* 炮台倍率 + 开炮 + 广告 */
.app .dock .ctrl-row {
  gap: 8px;
  align-items: center;
}

.app .dock .tier-ctl {
  height: 54px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 212, 134, .58);
  background:
    linear-gradient(180deg, rgba(30, 112, 152, .97) 0%, rgba(8, 52, 82, .98) 50%, rgba(2, 24, 42, .99) 100%);
  box-shadow:
    0 2px 0 rgba(0, 10, 20, .5),
    inset 0 1px rgba(255, 255, 255, .2),
    inset 0 -6px 12px rgba(0, 10, 22, .4);
}

.app .dock .tier-arrow {
  width: 33px;
  margin: 4px;
  border-radius: 50%;
  border: 1.5px solid #E4FFC0;
  background:
    radial-gradient(circle at 36% 26%, #C9FF96 0%, #7DE23E 34%, #3EB414 68%, #1D7305 100%);
  color: #FFFFFF;
  box-shadow:
    0 2px 0 rgba(6, 54, 0, .55),
    0 3px 7px rgba(0, 0, 0, .4),
    inset 0 1px rgba(255, 255, 255, .72),
    inset 0 -3px 5px rgba(0, 70, 0, .3);
}

.app .dock .tier-arrow .mp-icon {
  width: 21px;
  height: 21px;
  color: #FFFFFF;
  filter: drop-shadow(0 1px 1px rgba(0, 50, 0, .55));
}

.app .dock .tier-cap {
  font-size: 8px;
  letter-spacing: .1em;
  text-indent: .1em;
  color: #9DE3F8;
}

.app .dock .tier-num b {
  font-size: 24px;
  color: #FFE08C;
  background: linear-gradient(180deg, #FFFCE4, #FFDD86 50%, #FFAE34);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(72, 28, 0, .9)) drop-shadow(0 0 7px rgba(255, 180, 54, .3));
}

.app .dock .tier-num em {
  color: #FFD27E;
  opacity: .8;
}

.app .dock .fire-btn {
  width: 76px;
  height: 76px;
  border: 2.5px solid #FFF0BC;
  transform: translateY(-9px);
  background:
    radial-gradient(circle at 38% 24%, #FFFFFF 0%, #FFF3C2 12%, #FFD36E 36%, #FF9A2E 64%, #D45B05 100%);
  box-shadow:
    0 0 0 5px rgba(3, 30, 48, .55),
    0 0 0 7px rgba(255, 198, 96, .5),
    0 0 28px rgba(255, 150, 40, .55),
    0 10px 20px rgba(0, 0, 0, .5),
    inset 0 3px 3px rgba(255, 255, 255, .75),
    inset 0 -8px 14px rgba(150, 54, 0, .4);
}

.app .dock .fire-btn::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(from 0deg, rgba(255, 226, 156, .85) 0 2%, transparent 2% 10%, rgba(255, 226, 156, .85) 10% 12%, transparent 12% 20%, rgba(255, 226, 156, .85) 20% 22%, transparent 22% 30%, rgba(255, 226, 156, .85) 30% 32%, transparent 32% 40%, rgba(255, 226, 156, .85) 40% 42%, transparent 42% 50%, rgba(255, 226, 156, .85) 50% 52%, transparent 52% 60%, rgba(255, 226, 156, .85) 60% 62%, transparent 62% 70%, rgba(255, 226, 156, .85) 70% 72%, transparent 72% 80%, rgba(255, 226, 156, .85) 80% 82%, transparent 82% 90%, rgba(255, 226, 156, .85) 90% 92%, transparent 92% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: arcSpin 18s linear infinite;
  pointer-events: none;
}

.app .dock .fire-btn .mp-icon {
  width: 28px;
  height: 28px;
  color: #5A2200;
  filter: drop-shadow(0 1px 0 rgba(255, 245, 205, .8));
}

.app .dock .fire-btn > span:last-child {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-indent: .14em;
  color: #4A1B00;
  text-shadow: 0 1px 0 rgba(255, 246, 210, .75);
}

.fire-glow {
  inset: -3px;
  border: 1px dashed rgba(255, 240, 190, .55);
  animation: arcSpin 9s linear infinite;
}

.app .dock .ad-pill {
  min-height: 52px;
  max-width: 122px;
  padding: 5px 9px;
  border-radius: 15px;
  border: 1.5px solid rgba(255, 218, 148, .72);
  background:
    linear-gradient(180deg, rgba(255, 192, 104, .3) 0%, rgba(255, 140, 52, .14) 46%, rgba(120, 48, 6, .16) 100%),
    linear-gradient(180deg, rgba(24, 92, 126, .94), rgba(4, 34, 56, .97));
  color: #FFF0CC;
  box-shadow:
    0 2px 0 rgba(0, 12, 22, .45),
    inset 0 1px rgba(255, 255, 255, .2),
    0 0 14px rgba(255, 160, 60, .15);
  text-shadow: 0 1px 2px rgba(0, 12, 22, .7);
}

.app .dock .ad-pill .mp-icon {
  width: 22px;
  height: 22px;
  color: #FFD47E;
  filter: drop-shadow(0 0 6px rgba(255, 170, 60, .45));
}

.app .dock .ad-pill:active {
  transform: scale(.95);
  border-color: #FFF0C2;
}

.app .dock-hint {
  margin-top: 5px;
  font-size: 8.5px;
  letter-spacing: .1em;
  color: rgba(176, 218, 234, .7);
  text-shadow: 0 1px 2px rgba(0, 10, 20, .8);
}

/* 面板扫光与呼吸动画 */
@keyframes arcSpin {
  to { transform: rotate(360deg); }
}

@keyframes arcAvatarGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(2, 20, 36, .78), 0 0 12px rgba(255, 178, 58, .3), inset 0 1px rgba(255, 255, 255, .3); }
  50% { box-shadow: 0 0 0 3px rgba(2, 20, 36, .78), 0 0 20px rgba(255, 190, 70, .52), inset 0 1px rgba(255, 255, 255, .35); }
}

@keyframes arcPlusPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

@keyframes arcSeatBlink {
  0%, 100% { opacity: .45; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes arcSkillBreath {
  0%, 100% { box-shadow: 0 0 0 2.5px rgba(2, 16, 30, .78), 0 0 0 3.5px rgba(255, 208, 120, .18), 0 5px 14px rgba(0, 0, 0, .48), inset 0 2px 2px rgba(255, 255, 255, .3); }
  50% { box-shadow: 0 0 0 2.5px rgba(2, 16, 30, .78), 0 0 0 5px rgba(255, 206, 118, .36), 0 0 20px rgba(255, 170, 56, .5), inset 0 2px 2px rgba(255, 255, 255, .35); }
}

@media (max-width: 380px) {
  .app .hud {
    padding-left: 9px;
    padding-right: 9px;
  }

  .app .player-chip {
    height: 54px;
    padding-left: 4px;
  }

  .app .player-chip .avatar {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .app .p-coin b {
    font-size: 18px;
  }

  .app .p-meta > b {
    font-size: 9px;
    max-width: 76px;
  }

  .app .seat-pill {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 13px;
  }

  .app .seat-pill span {
    display: none;
  }

  .app .hud-tools .icon-btn {
    width: 37px;
    height: 37px;
  }

  .app .side-rails .skill {
    width: 54px;
    min-height: 60px;
  }

  .app .side-rails .skill .s-ico {
    width: 45px;
    height: 45px;
  }

  .app .side-rails .skill .mp-icon {
    width: 21px;
    height: 21px;
  }

  .app .side-rails .skill .s-name {
    font-size: 8px;
    padding: 1px 4px;
  }

  .app .dock {
    padding-left: 9px;
    padding-right: 9px;
  }

  .app .power-strip {
    gap: 5px;
  }

  .app .dock .skill.power {
    height: 58px;
  }

  .app .dock .skill.power .s-ico {
    width: 42px;
    height: 42px;
  }

  .app .dock .skill.power .mp-icon {
    width: 21px;
    height: 21px;
  }

  .pot-btn {
    min-width: 102px;
    height: 54px;
    padding-right: 6px;
  }

  .pot-jar {
    width: 43px;
    height: 43px;
  }

  .pot-jar .mp-icon {
    width: 24px;
    height: 24px;
  }

  .pot-meta b {
    font-size: 14px;
  }

  .app .dock .tier-ctl {
    height: 50px;
  }

  .app .dock .tier-arrow {
    width: 29px;
    margin: 3px;
  }

  .app .dock .tier-arrow .mp-icon {
    width: 18px;
    height: 18px;
  }

  .app .dock .tier-pill {
    min-width: 48px;
  }

  .app .dock .tier-num b {
    font-size: 20px;
  }

  .app .dock .fire-btn {
    width: 64px;
    height: 64px;
    transform: translateY(-7px);
  }

  .app .dock .fire-btn .mp-icon {
    width: 24px;
    height: 24px;
  }

  .app .dock .ad-pill {
    max-width: 102px;
    min-height: 48px;
    padding: 4px 6px;
    font-size: 8.5px;
  }
}

@media (max-height: 700px) {
  .app .side-rails {
    top: calc(env(safe-area-inset-top, 0px) + 70px);
    bottom: calc(156px + env(safe-area-inset-bottom, 0px));
  }

  .app .side-rails .rail-col {
    gap: 6px;
  }

  .app .side-rails .skill {
    min-height: 57px;
  }

  .app .side-rails .skill .s-ico {
    width: 44px;
    height: 44px;
  }

  .app .side-rails .skill .mp-icon {
    width: 21px;
    height: 21px;
  }

  .app .player-chip {
    height: 54px;
  }

  .app .player-chip .avatar {
    width: 40px;
    height: 40px;
  }

  .app .dock {
    padding-top: 8px;
  }

  .app .dock .skill.power {
    height: 56px;
  }

  .app .dock .skill.power .s-ico {
    width: 42px;
    height: 42px;
  }

  .pot-btn {
    height: 54px;
  }

  .pot-jar {
    width: 44px;
    height: 44px;
  }

  .app .dock .fire-btn {
    width: 68px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app .player-chip .avatar,
  .app .wallet-plus,
  .app .seat-pill::after,
  .app .side-rails .skill.ready .s-ico,
  .pot-jar::after,
  .app .dock .fire-btn::before,
  .fire-glow {
    animation: none;
  }
}
