.cherry-beat-all-wrp {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cherry-beat-all-wrp * {
  box-sizing: border-box;
}

.cb-game {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(0, 153, 255, 0.9),
    0 0 24px rgba(0, 153, 255, 0.35),
    0 0 80px rgba(255, 0, 128, 0.18);
  background: #000;
}

.cb-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04) brightness(0.68);
  transform: scale(1.04);
}

.cb-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.18) 28%, rgba(0,0,0,0.3) 100%),
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.12) 55%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
}

.cb-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(255,255,255,0.14) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.18) 0 1px, transparent 1px);
  background-size: 140px 140px, 180px 180px, 220px 220px, 260px 260px;
  animation: cb-grain-move 10s linear infinite;
}

@keyframes cb-grain-move {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-10px, 8px); }
  50% { transform: translate(8px, -10px); }
  75% { transform: translate(-6px, -6px); }
  100% { transform: translate(0, 0); }
}

.cb-top-ui {
  position: absolute;
  top: 16px;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.cb-life-wrap {
  width: min(420px, 62vw);
  height: 34px;
  padding: 5px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12)),
    linear-gradient(180deg, rgba(255,163,205,0.45), rgba(85,0,85,0.4));
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 0 24px rgba(255, 85, 170, 0.3);
}

.cb-life-bar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.55);
}

.cb-life-fill {
  width: 70%;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ff2b2b 0%, #ff7b2b 20%, #ffe52b 36%, #38ff65 62%, #1aff9a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 0 16px rgba(57, 255, 130, 0.45);
  transition: width 0.12s linear;
}

.cb-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 700;
  text-shadow:
    0 0 8px rgba(255,255,255,0.55),
    0 2px 8px rgba(0,0,0,0.8);
  letter-spacing: 0.04em;
}

.cb-status-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.cb-receptors {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 62vw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  z-index: 9;
  pointer-events: none;
}

.cb-receptor {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transition: transform 0.08s ease, filter 0.08s ease, opacity 0.08s ease;
  opacity: 0.92;
}

.cb-receptor.cb-active,
.cb-receptor.active {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(79, 124, 255, 0.95));
  opacity: 1;
}

.cb-playfield {
  position: absolute;
  inset: 0;
  z-index: 7;
}

.cb-lane-guide {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 62vw);
  height: calc(100% - 210px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  pointer-events: none;
}

.cb-lane-guide div {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 40px rgba(255,255,255,0.03),
    0 0 18px rgba(255,255,255,0.02);
}

.cb-notes {
  position: absolute;
  inset: 0;
  z-index: 8;
}

.cb-note {
  position: absolute;
  width: calc((min(430px, 62vw) - 48px) / 4);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  user-select: none;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.35));
  transform: translateZ(0);
}

.cb-judge {
  position: absolute;
  top: 305px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
  text-align: center;
}

.cb-judge-main {
  min-width: 260px;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transition: opacity 0.12s ease, transform 0.12s ease;
  text-shadow:
    0 0 10px rgba(255,255,255,0.65),
    0 0 18px rgba(255,174,214,0.7),
    0 3px 12px rgba(0,0,0,0.8);
}

.cb-judge-main.cb-show,
.cb-judge-main.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cb-judge-main.cb-perfect,
.cb-judge-main.perfect {
  color: #ffd8f0;
}

.cb-judge-main.cb-good,
.cb-judge-main.good {
  color: #d8f4ff;
}

.cb-judge-main.cb-miss,
.cb-judge-main.miss {
  color: #ffd7d7;
}

.cb-judge-sub {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
  color: #fff1f7;
  opacity: 0;
  transition: opacity 0.12s ease;
  text-shadow:
    0 0 8px rgba(255,255,255,0.55),
    0 2px 8px rgba(0,0,0,0.8);
}

.cb-judge-sub.cb-show,
.cb-judge-sub.show {
  opacity: 1;
}

.cb-combo-burst {
  position: absolute;
  top: 365px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255,255,255,0.6),
    0 0 18px rgba(255,110,194,0.55),
    0 3px 12px rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}

.cb-combo-burst.cb-show,
.cb-combo-burst.show {
  opacity: 1;
  transform: translateX(-50%) scale(1.04);
}

.cb-song-title {
  position: absolute;
  left: 28px;
  bottom: 88px;
  z-index: 11;
  font-size: 40px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ff84c1;
  text-shadow:
    0 0 10px rgba(255,255,255,0.75),
    0 0 18px rgba(255,117,189,0.75),
    0 4px 14px rgba(0,0,0,0.85);
}

.cb-song-sub {
  position: absolute;
  left: 32px;
  bottom: 42px;
  z-index: 11;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255,255,255,0.55),
    0 3px 10px rgba(0,0,0,0.8);
}

.cb-bottom-score {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  min-width: 250px;
  height: 58px;
  padding: 6px;
  z-index: 11;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08)),
    linear-gradient(180deg, rgba(133, 90, 255, 0.55), rgba(44, 18, 78, 0.8));
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 0 20px rgba(177, 93, 255, 0.35);
}

.cb-bottom-score-inner {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  background: rgba(0,0,0,0.35);
  color: #fff;
  text-shadow:
    0 0 6px rgba(255,255,255,0.5),
    0 2px 8px rgba(0,0,0,0.7);
  letter-spacing: 0.04em;
}

.cb-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.cb-controls-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cb-btn,
.cb-difficulty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.36);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 8px 20px rgba(0,0,0,0.22);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.cb-btn:hover,
.cb-difficulty-btn:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.cb-difficulty-btn.cb-active,
.cb-difficulty-btn.active,
.cb-difficulty-card.cb-active,
.cb-difficulty-card.active {
  background: linear-gradient(180deg, rgba(255,105,180,0.36), rgba(255,45,125,0.18));
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 10px 24px rgba(255, 45, 125, 0.18);
}

.cb-start-overlay,
.cb-end-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.34);
  backdrop-filter: blur(8px);
}

.cb-overlay-card {
  width: min(700px, 88vw);
  padding: 28px 24px;
  text-align: center;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06)),
    linear-gradient(180deg, rgba(90,20,60,0.88), rgba(20,10,26,0.94));
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.cb-overlay-card h1,
.cb-overlay-card h2 {
  margin: 0 0 10px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff0f7;
  text-shadow:
    0 0 10px rgba(255,255,255,0.6),
    0 0 22px rgba(255,111,180,0.5);
}

.cb-overlay-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
}

.cb-overlay-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cb-primary-btn {
  min-width: 160px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #ff5fa7 0%, #ff2f86 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 12px 24px rgba(255, 47, 134, 0.3);
}

.cb-secondary-btn {
  min-width: 160px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.cb-difficulty-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cb-difficulty-card {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  text-align: left;
}

.cb-difficulty-name {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.cb-difficulty-time {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
}

.cb-difficulty-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
}

.cb-result-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cb-result-box {
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.cb-label {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.75;
  letter-spacing: 0.08em;
}

.cb-value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 900;
}

.cb-hidden,
.hidden {
  display: none;
}

.cherry-beat-all-wrp .arrow-svg {
  width: 82px;
  height: 82px;
  overflow: visible;
}

.cherry-beat-all-wrp .arrow-svg .outer {
  fill: #dde7ff;
  stroke: rgba(255,255,255,0.8);
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.45));
}

.cherry-beat-all-wrp .arrow-svg .inner {
  fill: #9caee9;
  stroke: #f5f8ff;
  stroke-width: 3;
}

.cherry-beat-all-wrp .arrow-svg .shine {
  fill: rgba(255,255,255,0.42);
}

.cherry-beat-all-wrp .cb-receptor .arrow-svg {
  width: 88px;
  height: 88px;
  opacity: 0.78;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.45));
}

.cherry-beat-all-wrp .cb-receptor .outer {
  fill: rgba(233, 240, 255, 0.2);
  stroke: rgba(255,255,255,0.92);
  stroke-width: 4;
}

.cherry-beat-all-wrp .cb-receptor .inner {
  fill: rgba(255,255,255,0.16);
  stroke: rgba(255,255,255,0.85);
  stroke-width: 2.5;
}

.cherry-beat-all-wrp .cb-receptor .shine {
  fill: rgba(255,255,255,0.2);
}

.cherry-beat-all-wrp .cb-receptor.cb-active .outer,
.cherry-beat-all-wrp .cb-receptor.active .outer {
  fill: #e8f0ff;
  stroke: #ffffff;
}

.cherry-beat-all-wrp .cb-receptor.cb-active .inner,
.cherry-beat-all-wrp .cb-receptor.active .inner {
  fill: #a7b8ff;
  stroke: #ffffff;
}

.cherry-beat-all-wrp .cb-note.cb-lane-left .outer,
.cherry-beat-all-wrp .cb-note.lane-left .outer {
  fill: #ffe3c2;
  stroke: #fff4de;
}

.cherry-beat-all-wrp .cb-note.cb-lane-left .inner,
.cherry-beat-all-wrp .cb-note.lane-left .inner {
  fill: #f5b86b;
  stroke: #fff3d6;
}

.cherry-beat-all-wrp .cb-note.cb-lane-down .outer,
.cherry-beat-all-wrp .cb-note.lane-down .outer {
  fill: #d8ebff;
  stroke: #eff8ff;
}

.cherry-beat-all-wrp .cb-note.cb-lane-down .inner,
.cherry-beat-all-wrp .cb-note.lane-down .inner {
  fill: #79d9ff;
  stroke: #eff8ff;
}

.cherry-beat-all-wrp .cb-note.cb-lane-up .outer,
.cherry-beat-all-wrp .cb-note.lane-up .outer {
  fill: #eadcff;
  stroke: #f7efff;
}

.cherry-beat-all-wrp .cb-note.cb-lane-up .inner,
.cherry-beat-all-wrp .cb-note.lane-up .inner {
  fill: #b588ff;
  stroke: #f7efff;
}

.cherry-beat-all-wrp .cb-note.cb-lane-right .outer,
.cherry-beat-all-wrp .cb-note.lane-right .outer {
  fill: #dfffe0;
  stroke: #effff0;
}

.cherry-beat-all-wrp .cb-note.cb-lane-right .inner,
.cherry-beat-all-wrp .cb-note.lane-right .inner {
  fill: #75e57c;
  stroke: #effff0;
}

@media (max-width: 900px) {
  .cb-receptors,
  .cb-lane-guide {
    width: 82vw;
  }

  .cb-note {
    width: calc((82vw - 48px) / 4);
  }

  .cb-song-title {
    font-size: 30px;
  }

  .cb-song-sub {
    font-size: 18px;
  }

  .cherry-beat-all-wrp .arrow-svg {
    width: 72px;
    height: 72px;
  }

  .cherry-beat-all-wrp .cb-receptor .arrow-svg {
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 640px) {
  .cb-judge-main {
    font-size: 38px;
  }

  .cb-judge-sub,
  .cb-combo-burst {
    font-size: 22px;
  }

  .cb-song-title {
    left: 18px;
    bottom: 92px;
    font-size: 22px;
  }

  .cb-song-sub {
    left: 20px;
    bottom: 58px;
    font-size: 14px;
  }

  .cb-bottom-score {
    min-width: 190px;
    height: 50px;
  }

  .cb-bottom-score-inner {
    font-size: 21px;
  }

  .cb-controls {
    right: 12px;
    bottom: 12px;
  }

  .cb-result-grid,
  .cb-difficulty-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cherry-beat-all-wrp .arrow-svg {
    width: 62px;
    height: 62px;
  }

  .cherry-beat-all-wrp .cb-receptor .arrow-svg {
    width: 66px;
    height: 66px;
  }
}