#beat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  background: #1a0a32;
}

.beat-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + var(--safe-t)) 10px 8px;
}

.hp-wrap {
  flex: 1;
  min-width: 0;
}

.hp-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hp-bar {
  height: 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  overflow: hidden;
  background: #2a1038;
}

#hp-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff2d6f, #ffd24a);
}

.beat-stats {
  text-align: center;
  font-size: 11px;
}

.beat-stats b {
  display: block;
  font-family: var(--font-comic);
  font-size: 22px;
}

.speech {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(64px + var(--safe-t));
  z-index: 6;
  margin: 0;
  padding: 8px 12px;
  background: #fff;
  color: #1b0a18;
  border-radius: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 0 #000;
}

.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 8px 10px calc(10px + var(--safe-b));
  background: linear-gradient(transparent, rgba(10, 4, 24, 0.92));
}

.dock-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.dock-btn,
.wpn {
  flex: 0 0 auto;
  min-height: 48px;
  min-width: 72px;
  border: 3px solid #fff;
  border-radius: 16px;
  background: #ffd24a;
  color: #1b0a18;
  font-weight: 700;
  font-family: var(--font-ui);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wpn {
  width: 74px;
  height: 74px;
  padding: 6px;
}

.wpn img,
.dock-btn img,
.sheet-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  pointer-events: none;
}

.dock-btn img {
  width: 28px;
  height: 28px;
}

.wpn.on {
  background: #ff4d8d;
  color: #fff;
  box-shadow: 0 0 0 3px #fff inset;
}

.sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(18px + var(--safe-b));
  z-index: 8;
  background: #fff7ea;
  color: #1b0a18;
  border-radius: 22px;
  padding: 16px;
  border: 4px solid #fff;
}

.sheet h3 {
  font-family: var(--font-comic);
  margin: 0 0 6px;
}

.sheet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.sheet-row button,
.sheet-close {
  min-height: 44px;
  border-radius: 14px;
  border: 3px solid #1b0a18;
  background: #ffd24a;
  font-weight: 700;
  padding: 8px 12px;
}

.sheet-close {
  width: 100%;
  background: #111;
  color: #ffd24a;
}
