.handheld-body.home-mode {
  grid-template-rows: 1fr 0;
}

.handheld-body.home-mode .control-deck {
  display: none;
}

/* 独立冲刺键：竖屏双拇指可同时控制移动、冲刺与咬合。 */
.control-deck {
  grid-template-columns: minmax(126px, 1fr) minmax(150px, 1fr);
}

.control-deck .deck-label {
  letter-spacing: .12em;
}

.joystick .move-ring {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: end center;
  padding-bottom: 9px;
  border: 1px dashed rgba(137, 225, 239, .28);
  border-radius: 50%;
  color: rgba(202, 245, 250, .58);
  font-size: 9px;
  pointer-events: none;
}

.action-cluster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.dash-button {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(131, 229, 255, .72);
  border-radius: 50%;
  color: #e9fbff;
  background: radial-gradient(circle at 35% 28%, #299bc3, #0c5578 70%);
  box-shadow: inset 0 -7px 13px rgba(2, 32, 55, .48), 0 5px 0 #06364f, 0 9px 16px rgba(0, 24, 42, .35);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.dash-button > i {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(3, 28, 46, .72);
}

.dash-button > i > em {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #7de9ff;
}

.dash-button b {
  margin-top: -9px;
  font-size: 24px;
}

.dash-button small {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 80px;
  transform: translateX(-50%);
  color: rgba(217, 246, 250, .72);
  font-size: 9px;
  white-space: nowrap;
}

.dash-button.pressed {
  transform: translateY(4px) scale(.97);
  box-shadow: inset 0 3px 15px rgba(1, 23, 42, .62), 0 2px 0 #06364f;
}

.dash-button.is-empty {
  filter: saturate(.35);
}

.bite-button {
  flex: 0 0 auto;
}

/* 三条程序化小鱼依次点亮，不依赖外部图标素材。 */
.streak-badge {
  gap: 7px;
  padding-right: 8px;
}

.streak-fish-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.streak-fish {
  --streak-fish-color: #68838a;
  --streak-fish-accent: #9db0b4;
  position: relative;
  display: block;
  width: 22px;
  height: 13px;
  border: 1px solid rgba(194, 222, 223, .42);
  border-radius: 58% 46% 52% 55%;
  background: #47636a;
  opacity: .34;
  filter: grayscale(1);
  transform: scale(.9);
  transition: opacity .16s, filter .16s, transform .18s, background .16s, box-shadow .18s;
}

.streak-fish::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid #47636a;
}

.streak-fish::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(239, 255, 251, .65);
}

.streak-fish.lit {
  border-color: var(--streak-fish-accent);
  background: var(--streak-fish-color);
  opacity: 1;
  filter: none;
  transform: scale(1);
  box-shadow: 0 0 9px var(--streak-fish-color), inset 0 2px rgba(255, 255, 255, .32);
  animation: streak-fish-pop .26s ease-out;
}

.streak-fish.lit::before {
  border-right-color: var(--streak-fish-color);
}

.streak-fish.complete {
  animation: streak-fish-complete .55s ease-in-out infinite alternate;
}

@keyframes streak-fish-pop {
  0% { transform: scale(.45); }
  70% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes streak-fish-complete {
  from { filter: brightness(1); }
  to { filter: brightness(1.42); box-shadow: 0 0 14px var(--streak-fish-color); }
}

/* 首领阶段用实时动作提示替代教程条，避免盖住双方生命条。 */
.boss-mode .boss-hud { top: 46px; }
.boss-mode .player-health { top: 132px; }
.boss-mode .danger-tracker { top: auto; bottom: 12px; }
.boss-cue { --cue-color: #bcdde9; margin-top: 9px; color: var(--cue-color); }
.boss-cue[data-phase="windup"], .boss-cue[data-phase="dash"] { --cue-color: #ff8996; }
.boss-cue[data-phase="recover"], .boss-cue[data-phase="latched"] { --cue-color: #ffe077; }
.boss-cue > div { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.boss-cue > div > span { min-width: 35px; text-align: right; font-variant-numeric: tabular-nums; }
.boss-cue > i { display: block; height: 4px; margin-top: 5px; border-radius: 4px; overflow: hidden; background: #23465a; }
.boss-cue > i > em { display: block; height: 100%; background: var(--cue-color); }

@media (max-width: 370px) {
  .control-deck {
    grid-template-columns: 122px 1fr;
  }

  .action-cluster {
    gap: 13px;
  }

  .dash-button {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }
}
