/* File: css/drum-game.css
   Purpose: Styles for drum minigame.
*/

.drumgame-layer {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 10px;
  z-index: 9;
  display: none;
  border: 2px solid #ffffffa0;
  background:
    radial-gradient(circle at 15% 12%, #5bc7ff33 0%, transparent 42%),
    radial-gradient(circle at 82% 0%, #ff8ea029 0%, transparent 42%),
    linear-gradient(180deg, #040912dc 0%, #090b13f0 100%);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  padding: var(--minigame-padding);
  overflow: visible;
}

.drumgame-layer.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drumgame-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 7;
  background:
    radial-gradient(circle at 18% 26%, #ffffff22 0 1px, transparent 1px 100%),
    radial-gradient(circle at 72% 58%, #ffffff1c 0 1px, transparent 1px 100%),
    radial-gradient(circle at 46% 74%, #ffffff18 0 1px, transparent 1px 100%),
    repeating-linear-gradient(0deg, #00000000 0 1px, #ffffff14 1px 2px, #00000000 2px 4px),
    repeating-linear-gradient(90deg, #00000000 0 1px, #ffffff10 1px 2px, #00000000 2px 3px);
  background-size: 90px 90px, 110px 110px, 130px 130px, 100% 4px, 3px 100%;
  mix-blend-mode: screen;
}

.drumgame-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 7;
  background:
    repeating-linear-gradient(
      0deg,
      #dff2ff00 0 2px,
      #dff2ff2f 2px 4px,
      #dff2ff00 4px 7px
    );
  mix-blend-mode: screen;
}

.drumgame-layer.comms-warning::after {
  animation: drumCommsStatic 180ms steps(8, end) infinite;
}

.drumgame-layer.comms-warning::before {
  animation: drumCommsSweep 220ms steps(8, end) infinite;
}

.drumgame-layer.comms-wrong {
  animation: drumCommsWrongShake 320ms ease;
  box-shadow: inset 0 0 0 9999px #ff2f4533;
}

#app.comms-warning-full::after,
#app.comms-warning-full::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

#app.comms-warning-full::after {
  background:
    radial-gradient(circle at 20% 30%, #ffffff20 0 1px, transparent 1px 100%),
    radial-gradient(circle at 70% 58%, #ffffff1c 0 1px, transparent 1px 100%),
    radial-gradient(circle at 44% 76%, #ffffff18 0 1px, transparent 1px 100%),
    repeating-linear-gradient(0deg, #00000000 0 1px, #ffffff13 1px 2px, #00000000 2px 4px),
    repeating-linear-gradient(90deg, #00000000 0 1px, #ffffff0f 1px 2px, #00000000 2px 3px);
  background-size: 92px 92px, 112px 112px, 132px 132px, 100% 4px, 3px 100%;
  mix-blend-mode: screen;
  animation: drumCommsStatic 180ms steps(8, end) infinite;
}

#app.comms-warning-full::before {
  background: repeating-linear-gradient(
    0deg,
    #dff2ff00 0 2px,
    #dff2ff2b 2px 4px,
    #dff2ff00 4px 7px
  );
  mix-blend-mode: screen;
  animation: drumCommsSweep 220ms steps(8, end) infinite;
}

@keyframes drumCommsStatic {
  0% { opacity: 0; transform: translateX(0) scale(1); filter: contrast(1) brightness(1); }
  14% { opacity: 0.92; transform: translateX(-4px) scale(1.01); filter: contrast(1.55) brightness(1.12); }
  38% { opacity: 0.36; transform: translateX(5px) scale(1); filter: contrast(1.2) brightness(0.95); }
  66% { opacity: 0.98; transform: translateX(-3px) scale(1.01); filter: contrast(1.62) brightness(1.16); }
  100% { opacity: 0; transform: translateX(0) scale(1); filter: contrast(1) brightness(1); }
}

@keyframes drumCommsSweep {
  0% { opacity: 0; transform: translateY(-10px); }
  25% { opacity: 0.55; transform: translateY(3px); }
  52% { opacity: 0.2; transform: translateY(-4px); }
  80% { opacity: 0.62; transform: translateY(2px); }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes drumCommsWrongShake {
  0% { transform: translate(0, 0); }
  18% { transform: translate(-8px, 0); }
  36% { transform: translate(7px, 0); }
  54% { transform: translate(-6px, 0); }
  72% { transform: translate(5px, 0); }
  100% { transform: translate(0, 0); }
}

.drum-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.drum-brief {
  position: absolute;
  inset: 56px 18px 62px;
  z-index: 9;
  display: none;
  color: #f9fbff;
  padding: 18px 18px 14px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  background:
    linear-gradient(122deg, #2f74ff 0 14%, transparent 14% 100%),
    linear-gradient(165deg, #06090df2 0%, #0d1119f4 52%, #131722f4 100%);
  border: 2px solid #f2f6ffcc;
  box-shadow: 0 0 0 2px #09111d inset, 0 14px 34px #0000006f;
  /* 縦に収まらない場合はクリップせずスクロールさせ、説明やボタンが切れないようにする。 */
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drum-brief.show {
  display: block;
  animation: drumBriefEnter 340ms cubic-bezier(0.18, 0.88, 0.32, 1);
}

.drum-brief::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(-24deg, #ffffff14 0 2px, transparent 2px 22px),
    linear-gradient(90deg, transparent 0 56%, #4a8eff22 56% 100%);
  opacity: 0.58;
}

.drum-brief-deco {
  position: absolute;
  right: -46px;
  top: 8px;
  width: 182px;
  height: 28px;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, #49dbff 0%, #4d8dff 100%);
  box-shadow: 0 0 0 2px #00000066;
  opacity: 0.92;
}

.drum-brief-kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 8px;
  background: #ffffff;
  color: #090b12;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drum-brief-title {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.06rem, 2.2vw, 1.48rem);
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 2px 2px 0 #2666e1;
}

.drum-brief-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  /* ワイドディスプレイでカードが横に伸びすぎないよう中央寄せの列にする。 */
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
}

.drum-brief-card {
  background: linear-gradient(180deg, #ffffff17 0%, #ffffff08 100%);
  border: 1px solid #ffffff55;
  padding: 10px 10px 9px;
  min-height: 90px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.drum-brief-label {
  margin-bottom: 6px;
  color: #79dcff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 0 0 8px #79dcff4a;
}

.drum-brief-card p {
  margin: 0;
  color: #f2f8ff;
  line-height: 1.45;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.drum-brief-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(460px, 100%);
  margin: 0 auto;
}

.drum-brief-actions .choice-btn {
  width: 100%;
  margin: 0;
  text-align: center;
  transform: skew(-8deg);
}

.drum-brief-actions .choice-btn:hover,
.drum-brief-actions .choice-btn:focus-visible {
  transform: skew(-8deg) translateY(-1px);
}

.drum-brief-start {
  background: linear-gradient(90deg, #2e67ff 0%, #22b6ff 100%);
  border-color: #fff;
  box-shadow: 0 0 0 2px #0000005c;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.drum-brief-tutorial {
  background: linear-gradient(90deg, #31a672 0%, #4ccc7f 100%);
  border-color: #fff;
  box-shadow: 0 0 0 2px #0000005c;
  font-weight: 900;
  letter-spacing: 0.08em;
}

#drumTutorialEndBtn {
  background: linear-gradient(90deg, #2b323d 0%, #454e5d 100%);
  border-color: #fff;
  box-shadow: 0 0 0 2px #0000005c;
  font-weight: 900;
  letter-spacing: 0.08em;
}

@keyframes drumBriefEnter {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.drum-boss-gauge {
  position: relative;
  width: min(300px, 46vw);
  height: 18px;
  border: 2px solid #f0a7bb;
  background: #1b0a12;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 140ms ease;
}

.drum-boss-gauge.active {
  opacity: 1;
}

.drum-boss-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #ff5f8d 0%, #e33666 60%, #911f45 100%);
}

.drum-boss-label {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: #fff3f7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px #000;
}

.drum-power {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.drum-power-slot {
  min-width: 68px;
  height: 20px;
  line-height: 18px;
  padding: 0 6px;
  text-align: center;
  border: 2px solid #8ca2b6;
  background: #0c131d;
  color: #9db0c2;
  font-size: 10px;
  font-weight: 900;
}

.drum-power-slot.active {
  border-color: #e7f3ff;
  color: #f4fbff;
  background: linear-gradient(180deg, #83a8c4 0%, #54748f 100%);
  box-shadow: 0 0 10px #99d7ff88;
}

.drum-canvas {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100% - 92px);
  margin: 0 auto;
  border: 2px solid #ffffff66;
  display: block;
  touch-action: none;
  background: linear-gradient(180deg, #091524 0%, #080d17 60%, #05070c 100%);
  box-shadow: inset 0 0 0 1px #ffffff2c, inset 0 -16px 36px #0000007a;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.drum-comms-layer {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 8;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #9ed8ff22 0%, #02070fcc 72%);
}

.drum-comms-layer.active {
  display: flex;
  pointer-events: auto;
}

.drum-comms-panel {
  position: relative;
  width: min(86%, 520px);
  border: 2px solid #a0b087;
  background:
    linear-gradient(180deg, #273320f2 0%, #151d15f2 100%),
    repeating-linear-gradient(90deg, #00000000 0 19px, #d6e4c40f 19px 20px);
  box-shadow: 0 0 0 1px #d4e0c555, 0 12px 34px #000000aa, inset 0 0 24px #b7c89f22;
  padding: 14px 16px 18px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.drum-comms-head {
  color: #dde8cc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.drum-comms-line {
  color: #eef4e1;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 10px;
}

.drum-comms-time {
  position: relative;
  height: 16px;
  border: 2px solid #afbf95;
  background: #0c120a;
  margin-bottom: 10px;
  overflow: hidden;
}

.drum-comms-time-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #93ba72 0%, #6f9953 60%, #4f733a 100%);
}

.drum-comms-time-label {
  position: absolute;
  right: 6px;
  top: -1px;
  color: #f3f9e8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px #000;
}

.drum-comms-claim {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  color: #f3fbff;
  background: transparent;
  font-size: inherit;
  font-weight: 900;
  letter-spacing: inherit;
  font-family: inherit;
  line-height: inherit;
  text-shadow: inherit;
  appearance: none;
  cursor: pointer;
}

.drum-comms-claim.hit {
  animation: drumCommsClaimHit 420ms ease-out forwards;
}

.drum-comms-info-wrap {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.drum-comms-info {
  border: 2px solid #a9bc90;
  color: #dce8cb;
  background: linear-gradient(180deg, #22301f 0%, #1a2618 100%);
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  cursor: pointer;
}

.drum-comms-info.active {
  border-color: #edf7df;
  color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff88, 0 0 14px #c7ee9499;
}

.drum-comms-claim.kb-focus,
.drum-comms-info.kb-focus {
  outline: none;
  box-shadow: 0 0 0 2px #f6ffde, 0 0 16px #d8ff9099;
}

.drum-comms-result {
  color: #cfdabf;
  font-size: 12px;
  letter-spacing: 0.08em;
  min-height: 1.2em;
}

.drum-comms-shot {
  position: absolute;
  right: 20px;
  bottom: 10px;
  opacity: 0;
  color: #eef8ff;
  padding: 0;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  transform-style: preserve-3d;
  text-shadow:
    0 1px 0 #d6ecff,
    0 2px 0 #bad8ef,
    0 3px 0 #9fbfd8,
    0 4px 0 #82a4bf,
    0 5px 0 #66859e,
    0 10px 18px #000000aa,
    0 0 12px #9fdcffcc;
  pointer-events: none;
}

.drum-comms-shot.play {
  animation: drumCommsShotFly 560ms cubic-bezier(0.14, 0.76, 0.2, 1) forwards;
}

@keyframes drumCommsShotFly {
  0% {
    opacity: 1;
    transform: perspective(480px) rotateY(-24deg) rotateX(8deg) translate(0, 0) scale(0.86);
    filter: brightness(1) saturate(1);
  }
  22% {
    opacity: 1;
    transform: perspective(480px) rotateY(-12deg) rotateX(4deg) translate(-48px, -10px) scale(1);
    filter: brightness(1.16) saturate(1.12);
  }
  52% {
    opacity: 1;
    transform: perspective(480px) rotateY(-10deg) rotateX(3deg) translate(-62px, -14px) scale(1.03);
    filter: brightness(1.22) saturate(1.2);
  }
  88% {
    opacity: 1;
    transform: perspective(480px) rotateY(-8deg) rotateX(2deg) translate(var(--tx, -220px), var(--ty, -80px)) scale(1.04);
    filter: brightness(1.22) saturate(1.18);
  }
  100% {
    opacity: 0;
    transform: perspective(480px) rotateY(0deg) rotateX(0deg) translate(var(--tx, -220px), var(--ty, -80px)) scale(1.16);
    filter: brightness(1.35) saturate(1.25);
  }
}

/* 命中の瞬間だけ白く光らせ、本体は素早く消す。
   実際に飛び散る絵は .drum-glass-shard が担当する。 */
@keyframes drumCommsClaimHit {
  0% { transform: scale(1); filter: brightness(1); opacity: 1; }
  45% { transform: scale(1.14); filter: brightness(2.6); opacity: 1; }
  100% { transform: scale(1.02); filter: brightness(2.6); opacity: 0; }
}

/* ------- ガラス破砕演出 -------
   指摘した語句の上に重ねるレイヤー。JS(shatterDrumCommsClaim)が
   同じ文字を clip-path の扇形で切り出した破片を放射状に飛ばす。 */
.drum-glass-shatter {
  position: absolute;
  z-index: 7;
  pointer-events: none;
}

/* 文字ごとの位置を測るための一時要素（計測後すぐ破棄する） */
.drum-glass-measure {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  visibility: hidden;
}

/* 破片1枚 = 1文字を扇形で切り出したもの。位置とサイズはJSが文字単位で指定する。 */
.drum-glass-shard {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  color: #f3fbff;
  text-shadow: 0 0 6px #9fe8ff, 0 1px 0 #000;
  will-change: transform, opacity;
  animation: drumGlassShard var(--dur, 620ms) cubic-bezier(0.18, 0.7, 0.3, 1) forwards;
}

@keyframes drumGlassShard {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) rotate(var(--rot, 0deg)) scale(0.92);
  }
}

/* 砕けた瞬間の閃光 */
.drum-glass-flash {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #ffffffd9 0%, #9fe8ff59 42%, transparent 72%);
  animation: drumGlassFlash 280ms ease-out forwards;
}

@keyframes drumGlassFlash {
  0% { opacity: 0; transform: scale(0.55); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}

.drum-power-use {
  position: absolute;
  left: 56%;
  top: 42%;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  padding: 8px 14px;
  border: 2px solid #f4fbff;
  background:
    linear-gradient(100deg, #c8ebff00 0%, #c8ebff99 36%, #f4f8ff 52%, #c8ebff99 68%, #c8ebff00 100%),
    linear-gradient(90deg, #28405fdf 0%, #4f7aa7dd 60%, #2c4b6bdd 100%);
  color: #ffffff;
  font-size: clamp(0.88rem, 1.8vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow:
    0 0 8px #a8dfffcc,
    0 0 22px #7ad1ff99,
    0 2px 3px #000;
  box-shadow:
    0 0 0 1px #ffffff88,
    0 0 16px #7ad1ffaa,
    0 8px 18px #00000080;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%, 0 12px);
  transform: translateX(0) skewX(-8deg) scale(0.92);
}

.drum-power-use.play {
  animation: drumPowerUseSweep 900ms cubic-bezier(0.12, 0.78, 0.2, 1) forwards;
}

.drum-power-use.comms-alert {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) skewX(-8deg) scale(0.9);
  border-color: #ffe9bf;
  color: #2b1408;
  background:
    linear-gradient(100deg, #ffd2a400 0%, #ffd2a4aa 34%, #fff4de 52%, #ffd2a4aa 70%, #ffd2a400 100%),
    linear-gradient(90deg, #5e1e17f0 0%, #a43725ea 62%, #641f18ef 100%);
  text-shadow:
    0 1px 0 #fff4dc,
    0 0 6px #fff0d2cc,
    0 2px 3px #00000066;
}

.drum-power-use.comms-alert.play {
  animation: drumCommsEntrySweep 760ms cubic-bezier(0.14, 0.82, 0.24, 1) forwards;
}

@keyframes drumPowerUseSweep {
  0% {
    opacity: 0;
    transform: translateX(34px) skewX(-8deg) scale(0.88);
    filter: brightness(1) saturate(1);
  }
  16% {
    opacity: 1;
    transform: translateX(10px) skewX(-8deg) scale(1);
    filter: brightness(1.2) saturate(1.25);
  }
  72% {
    opacity: 1;
    transform: translateX(-280px) skewX(-8deg) scale(1.02);
    filter: brightness(1.12) saturate(1.18);
  }
  100% {
    opacity: 0;
    transform: translateX(-420px) skewX(-8deg) scale(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes drumCommsEntrySweep {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) skewX(-8deg) scale(0.82);
    filter: brightness(0.95) saturate(0.95);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) skewX(-8deg) scale(1.04);
    filter: brightness(1.28) saturate(1.2);
  }
  76% {
    opacity: 1;
    transform: translate(-50%, -50%) skewX(-8deg) scale(1.01);
    filter: brightness(1.12) saturate(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) skewX(-8deg) scale(1.06);
    filter: brightness(1.02) saturate(1.02);
  }
}

.drum-actions {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(3, 42px);
  grid-template-areas:
    ". up ."
    "left . right"
    ". down .";
  gap: 6px;
  margin-top: 0;
}

.drum-power-panel {
  position: absolute;
  left: 188px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

#drumUpBtn {
  grid-area: up;
}

#drumDownBtn {
  grid-area: down;
}

#drumLeftBtn {
  grid-area: left;
}

#drumRightBtn {
  grid-area: right;
}

.drum-dash-gauge {
  position: absolute;
  right: 12px;
  width: 220px;
  bottom: 42px;
  height: 24px;
  border: 2px solid #dbe8f5;
  background: linear-gradient(180deg, #101a27 0%, #0a101a 100%);
  box-shadow: 0 6px 14px #00000066;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.drum-hp-gauge {
  position: absolute;
  right: 12px;
  width: 220px;
  bottom: 72px;
  height: 24px;
  border: 2px solid #f1f8ff;
  background: linear-gradient(180deg, #17222e 0%, #0f1823 100%);
  box-shadow: 0 6px 14px #00000066;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.drum-score-text {
  position: absolute;
  right: 12px;
  width: 220px;
  bottom: 100px;
  text-align: right;
  color: #f7fbff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
  z-index: 5;
}

.drum-hp-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #9fd6ff 0%, #6bb5ec 55%, #4f89b5 100%);
}

.drum-hp-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  text-align: center;
  color: #f7fbff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px #000;
}

.drum-dash-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #b8dbf2 0%, #8fb4cc 52%, #5f7e94 100%);
}

.drum-dash-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  text-align: center;
  color: #f2f8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px #000;
}
