* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #06324a;
  color: #fff8ef;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  touch-action: manipulation;
}
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
#sea {
  display: block;
  width: 100%;
  height: 100%;
}
.hud {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 28, 48, 0.55);
  color: #fff8ef;
  font-size: 18px;
  font-weight: 700;
}
.chip .mp-icon { font-size: 20px; color: #FF8A3D; }
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 18, 32, 0.45);
  padding: 24px;
}
.overlay.hidden { display: none; }
.sheet {
  width: min(320px, 100%);
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: rgba(8, 36, 58, 0.92);
  text-align: center;
}
.sheet h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.sheet p {
  margin: 10px 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #d7e6f2;
}
.sheet button {
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #FF8A3D;
  color: #2a1408;
  font-size: 17px;
  font-weight: 700;
}
