.apj-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0,0,0,.4);
  border-radius: 8px;
  overflow: hidden;
  background: #bfe6ff;
  touch-action: none;
}
.apj-wrap * { box-sizing: border-box; }
.apj-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.apj-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(10,20,35,.72);
  color: #fff;
  padding: 24px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.apj-overlay h1 {
  font-size: clamp(22px,6vw,34px);
  color: #ffd23f;
  text-shadow: 2px 2px 0 #b91c1c, -1px -1px 0 #7f1d1d;
  line-height: 1.2;
  margin-bottom: 6px;
}
.apj-overlay p { font-size: 14px; margin: 4px 0; color: #e5e7eb; }
.apj-legend {
  margin-top: 14px;
  font-size: 12px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.7;
  text-align: left;
  color: #fff;
}
.apj-startbtn {
  margin-top: 18px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  background: linear-gradient(#4ade80,#16a34a);
  color: #fff;
  box-shadow: 0 4px 0 #0f6b30;
  cursor: pointer;
}
.apj-startbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0f6b30; }
.apj-finalscore { margin-top: 10px; color: #ffd23f; font-weight: bold; }
.apj-hud {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,.6);
  font-family: 'Segoe UI', Arial, sans-serif;
}
.apj-score { font-size: 26px; }
.apj-level {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,.35);
}
.apj-mutebtn {
  pointer-events: auto;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apj-mutebtn:active { transform: scale(0.92); }
.apj-shieldbar {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.25);
  overflow: hidden;
  display: none;
}
.apj-shieldfill { height: 100%; background: #38bdf8; width: 100%; }
.apj-hidden { display: none !important; }
