/* cyl_minigames.css — shared styling for the three cylinder-army minigames
 * (Mosh Pit, Choir, Parade). Each modal is a wide stage that displays the
 * player's full harem in bookshelf-style cylinders. The three games share
 * the .cyl-mini-modal frame so launcher buttons feel like siblings of the
 * Castle Raid mini-game beside them. */

/* ── Launcher buttons (shared base) ──────────────────────────────────── */
#cyl-wave-btn,
#cyl-choir-btn,
#cyl-parade-btn,
#breeding-pit-btn {
  background: linear-gradient(135deg, #1e1e28, #323244);
  border: 1.5px solid #7070a0;
  border-radius: 8px;
  color: #d0d0ee;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  box-shadow: 0 0 10px 2px rgba(140, 140, 200, 0.3),
              0 0 20px 4px rgba(120, 120, 180, 0.15);
}
#cyl-wave-btn:hover,
#cyl-choir-btn:hover,
#cyl-parade-btn:hover,
#breeding-pit-btn:hover {
  background: linear-gradient(135deg, #323244, #484860);
  border-color: #9090c0;
  color: #eeeeff;
  box-shadow: 0 0 14px 3px rgba(160, 160, 220, 0.5),
              0 0 28px 6px rgba(140, 140, 200, 0.28);
}
/* Distinct accent tints so the row of mini-game buttons isn't a wall of grey */
#cyl-wave-btn   { border-color: #4a8aaa; box-shadow: 0 0 10px 2px rgba(80,180,220,0.25), 0 0 20px 4px rgba(60,140,200,0.12); }
#cyl-wave-btn:hover { border-color: #6abada; box-shadow: 0 0 14px 3px rgba(110,210,240,0.4), 0 0 26px 6px rgba(80,170,220,0.22); }
#cyl-choir-btn  { border-color: #aa6aaa; box-shadow: 0 0 10px 2px rgba(220,140,210,0.25), 0 0 20px 4px rgba(180,90,180,0.12); }
#cyl-choir-btn:hover { border-color: #d088d0; box-shadow: 0 0 14px 3px rgba(240,170,235,0.4), 0 0 26px 6px rgba(210,120,210,0.22); }
#cyl-parade-btn { border-color: #c08a4a; box-shadow: 0 0 10px 2px rgba(220,170,90,0.25), 0 0 20px 4px rgba(200,140,60,0.12); }
#cyl-parade-btn:hover { border-color: #e0a868; box-shadow: 0 0 14px 3px rgba(240,200,120,0.4), 0 0 26px 6px rgba(220,160,80,0.22); }

/* ── Shared modal frame ──────────────────────────────────────────────── */
.cyl-mini-modal {
  width: 88vw;
  max-width: 1280px;
  height: 80vh;
  max-height: 900px;
  min-width: 0;
  padding: 18px 22px 16px;
  background: radial-gradient(ellipse at 50% 0%, #1c1828 0%, #0c0a14 80%);
  border: 1.5px solid #50506a;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85),
              0 0 28px rgba(140, 140, 200, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  color: #e0e0f0;
  position: relative;
}
.cyl-mini-x {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 50;
}
.cyl-mini-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(160, 160, 220, 0.4);
  margin-bottom: 4px;
}
.cyl-mini-sub {
  text-align: center;
  font-size: 13px;
  color: #a0a0c0;
  margin-bottom: 12px;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════════════════
 * 1) MOSH PIT (cyl-wave)
 * ════════════════════════════════════════════════════════════════════════ */
.cyl-wave-arena {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 70%, rgba(80, 100, 180, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(180, 80, 100, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #181628 0%, #0a0814 100%);
  border: 1px solid #3a3a52;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}
.cyl-wave-stagelights {
  position: absolute;
  top: -10%; left: -5%; right: -5%; height: 70%;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(120,160,255,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(255,180,120,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 0%, rgba(255,120,180,0.18) 0%, transparent 50%);
  pointer-events: none;
  animation: cyl-wave-light-sweep 9s ease-in-out infinite;
}
@keyframes cyl-wave-light-sweep {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(20px); }
}
.cyl-wave-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 36%;
  background:
    repeating-linear-gradient(90deg,
      rgba(80, 60, 120, 0.0) 0px, rgba(80, 60, 120, 0.0) 28px,
      rgba(120, 100, 160, 0.18) 28px, rgba(120, 100, 160, 0.18) 30px),
    linear-gradient(180deg, transparent 0%, rgba(60, 40, 90, 0.5) 100%);
  pointer-events: none;
}
.cyl-wave-pit {
  position: absolute;
  left: 4%; top: 18%;
  width: 22%; height: 70%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  padding: 10px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at center, rgba(120, 80, 160, 0.18) 0%, transparent 70%);
}
.cyl-wave-cyl-wrap {
  display: inline-block;
  position: relative;
  transition: transform 0.5s ease;
  will-change: transform;
}
/* Rarity rings on launched cylinders */
.cyl-wave-cyl-wrap[class*="cyl-wave-rarity-"]:not(.cyl-wave-rarity-common)::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  border: 1px solid var(--cyl-rarity, #909090);
  opacity: 0.5;
  pointer-events: none;
}
.cyl-wave-cyl-wrap.cyl-wave-launch {
  position: absolute;
  z-index: 200;
}
.cyl-wave-cyl-wrap.cyl-wave-impact {
  animation: cyl-wave-impact-pop 0.46s ease-out forwards;
}
@keyframes cyl-wave-impact-pop {
  0%   { opacity: 1; }
  40%  { transform: scale(1.55); filter: brightness(1.4); opacity: 1; }
  100% { transform: scale(0.6); opacity: 0; }
}

.cyl-wave-target {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
.cyl-wave-target-emoji {
  font-size: 92px;
  filter: drop-shadow(0 0 16px rgba(180, 80, 220, 0.7));
  animation: cyl-wave-target-idle 2.4s ease-in-out infinite;
}
@keyframes cyl-wave-target-idle {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-6px) rotate(2deg); }
}
.cyl-wave-target-shake .cyl-wave-target-emoji {
  animation: cyl-wave-target-shake 0.35s ease-out;
}
@keyframes cyl-wave-target-shake {
  0%   { transform: translate(0,0) rotate(0); }
  25%  { transform: translate(-8px,2px) rotate(-6deg) scale(1.08); }
  50%  { transform: translate(7px,-3px) rotate(5deg) scale(1.04); }
  75%  { transform: translate(-4px,1px) rotate(-3deg); }
  100% { transform: translate(0,0) rotate(0); }
}
.cyl-wave-target-hp {
  margin-top: 10px;
  width: 140px;
  height: 8px;
  background: rgba(40, 20, 60, 0.7);
  border: 1px solid #5a3a7a;
  border-radius: 6px;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}
.cyl-wave-target-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7090, #ffb070, #ffe070);
  transition: width 0.35s ease;
  box-shadow: 0 0 6px rgba(255, 160, 120, 0.5);
}

.cyl-wave-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 300;
}
.cyl-wave-particle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  pointer-events: none;
  animation: cyl-wave-particle-fly 0.7s ease-out forwards;
}
@keyframes cyl-wave-particle-fly {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--p-dx), var(--p-dy)) scale(0.2); opacity: 0; }
}
.cyl-wave-damage-pop {
  position: absolute;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 0 4px rgba(0,0,0,0.85);
  pointer-events: none;
  animation: cyl-wave-dmg-rise 0.85s ease-out forwards;
}
@keyframes cyl-wave-dmg-rise {
  0%   { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  20%  { transform: translate(-50%, -8px) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -50px) scale(1); opacity: 0; }
}
.cyl-wave-result-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffe080;
  text-shadow: 0 0 20px rgba(255, 200, 80, 0.8), 0 0 40px rgba(255, 130, 80, 0.5);
  pointer-events: none;
  animation: cyl-wave-banner-pop 3.2s ease-out forwards;
}
.cyl-wave-result-banner span {
  display: block;
  font-size: 22px;
  margin-top: 8px;
  color: #80ffd0;
  text-shadow: 0 0 14px rgba(80, 220, 180, 0.7);
}
@keyframes cyl-wave-banner-pop {
  0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  18%  { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  35%  { transform: translate(-50%, -50%) scale(1.0); }
  85%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0; }
}

.cyl-wave-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  flex: 0 0 auto;
}
.cyl-wave-stats {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #c0c0e0;
}
.cyl-wave-stat {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(160, 160, 210, 0.18);
}
.cyl-wave-stat b { color: #ffe070; margin: 0 4px; }
.cyl-wave-go-btn {
  background: linear-gradient(135deg, #2a4a8a, #3a6acc);
  border: 2px solid #6098e0;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 10px 32px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 0 18px rgba(96,152,224,0.5), 0 4px 12px rgba(0,0,0,0.5);
}
.cyl-wave-go-btn:hover {
  background: linear-gradient(135deg, #3a6acc, #5090ff);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(120, 180, 255, 0.7), 0 6px 16px rgba(0,0,0,0.5);
}
.cyl-wave-go-btn-disabled,
.cyl-wave-go-btn:disabled {
  background: linear-gradient(135deg, #303040, #404058);
  border-color: #555570;
  color: #888899;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.cyl-wave-cooldown {
  font-size: 12px;
  color: #888899;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════════════════
 * 2) CHOIR (cyl-choir)
 * ════════════════════════════════════════════════════════════════════════ */
.cyl-choir-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 220, 140, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(40, 20, 60, 0.6) 0%, transparent 60%),
    linear-gradient(180deg, #1e1226 0%, #0a0612 100%);
  border: 1px solid #4a3a52;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}
.cyl-choir-curtain {
  position: absolute;
  top: -2%;
  width: 16%;
  height: 104%;
  background:
    repeating-linear-gradient(90deg,
      #4a0a18 0px, #4a0a18 14px,
      #6a1a28 14px, #6a1a28 18px,
      #3a0a18 18px, #3a0a18 26px);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.7);
  z-index: 1;
}
.cyl-choir-curtain-l { left: 0; border-right: 2px solid #2a0008; }
.cyl-choir-curtain-r { right: 0; border-left: 2px solid #2a0008; }
.cyl-choir-spot {
  position: absolute;
  left: 50%; top: -10%;
  transform: translateX(-50%);
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,230,160,0.45) 0%, rgba(255,210,140,0.18) 35%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}
.cyl-choir-rows {
  position: relative;
  z-index: 5;
  height: 78%;
  margin: 4% 18% 0;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  pointer-events: none;
}
.cyl-choir-row {
  flex: 0 0 auto;
  height: 24%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  pointer-events: auto;
  transform: scale(var(--row-scale, 1));
  transform-origin: 50% 100%;
  transition: transform 0.3s ease;
  filter: brightness(calc(0.7 + 0.1 * var(--row-scale, 1)));
}
.cyl-choir-row-0 { /* front row */ filter: none; }
.cyl-choir-cyl-wrap {
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.cyl-choir-cyl-wrap:hover {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.15);
}
.cyl-choir-cyl-wrap.cyl-choir-sing {
  animation: cyl-choir-sing-bob 0.85s ease-out;
}
@keyframes cyl-choir-sing-bob {
  0%   { transform: translateY(0) scale(1); }
  20%  { transform: translateY(-12px) scale(1.16); filter: brightness(1.4); }
  60%  { transform: translateY(-3px) scale(1.05); filter: brightness(1.15); }
  100% { transform: translateY(0) scale(1); }
}
.cyl-choir-podium {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 38px;
  z-index: 6;
  filter: drop-shadow(0 0 8px rgba(255,230,160,0.6));
  animation: cyl-choir-baton 2.4s ease-in-out infinite;
}
@keyframes cyl-choir-baton {
  0%,100% { transform: translateX(-50%) rotate(-6deg); }
  50%     { transform: translateX(-50%) rotate(6deg); }
}

.cyl-choir-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
.cyl-choir-note {
  position: absolute;
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 0 6px currentColor;
  pointer-events: none;
  animation: cyl-choir-note-rise 1.3s ease-out forwards;
}
@keyframes cyl-choir-note-rise {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  20%  { transform: translate(var(--note-dx, 0), -10px) scale(1); opacity: 1; }
  100% { transform: translate(calc(var(--note-dx, 0) * 1.4), -90px) scale(1.1); opacity: 0; }
}
.cyl-choir-banner {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: 900;
  text-align: center;
  color: #ffe080;
  text-shadow: 0 0 18px rgba(255, 220, 120, 0.8);
  animation: cyl-choir-banner-pop 2.4s ease-out forwards;
  pointer-events: none;
}
.cyl-choir-banner-sub {
  display: block;
  font-size: 18px;
  color: #80ffd0;
  margin-top: 6px;
  text-shadow: 0 0 12px rgba(80,220,180,0.7);
}
@keyframes cyl-choir-banner-pop {
  0%   { transform: translate(-50%,-50%) scale(0.6); opacity: 0; }
  20%  { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.0); opacity: 0; }
}

.cyl-choir-bottom {
  flex: 0 0 auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cyl-choir-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}
.cyl-choir-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(20, 16, 28, 0.65);
  border: 1px solid var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  font-size: 12px;
  color: #d0d0e8;
}
.cyl-choir-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
}
.cyl-choir-legend-pill b { color: var(--c); }
.cyl-choir-buttons {
  display: flex;
  gap: 12px;
}
.cyl-choir-btn {
  background: linear-gradient(135deg, #4a2060, #6a3090);
  border: 2px solid #aa70d0;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 9px 22px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 0 16px rgba(170, 110, 220, 0.45), 0 4px 12px rgba(0,0,0,0.4);
}
.cyl-choir-btn:hover {
  background: linear-gradient(135deg, #6a3090, #8a40b8);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(200, 140, 240, 0.6), 0 6px 16px rgba(0,0,0,0.4);
}
.cyl-choir-chord {
  background: linear-gradient(135deg, #2a4070, #3a60a0);
  border-color: #70a0e0;
  box-shadow: 0 0 16px rgba(110, 160, 220, 0.45), 0 4px 12px rgba(0,0,0,0.4);
}
.cyl-choir-chord:hover {
  background: linear-gradient(135deg, #3a60a0, #4a80c8);
  box-shadow: 0 0 22px rgba(140, 190, 240, 0.6), 0 6px 16px rgba(0,0,0,0.4);
}
.cyl-choir-btn:disabled,
.cyl-choir-btn-disabled {
  background: linear-gradient(135deg, #303040, #404058);
  border-color: #555570;
  color: #888899;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.cyl-choir-cooldown {
  font-size: 12px;
  color: #888899;
  font-style: italic;
  min-height: 16px;
}
.cyl-choir-cd-ready {
  color: #80ffd0;
  font-style: normal;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(80, 220, 180, 0.5);
}

/* ════════════════════════════════════════════════════════════════════════
 * 3) PARADE (cyl-parade)
 * ════════════════════════════════════════════════════════════════════════ */
.cyl-parade-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(120, 30, 50, 0.45) 0%, transparent 60%),
    linear-gradient(180deg, #181020 0%, #0a0610 100%);
  border: 1px solid #5a3a3a;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}
.cyl-parade-curtain {
  position: absolute;
  top: -2%; width: 12%; height: 104%;
  background:
    repeating-linear-gradient(90deg,
      #5a0a1a 0px, #5a0a1a 12px,
      #7a1a2a 12px, #7a1a2a 16px,
      #4a0a1a 16px, #4a0a1a 24px);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.7);
  z-index: 4;
}
.cyl-parade-curtain-l { left: 0; border-right: 2px solid #2a0008; }
.cyl-parade-curtain-r { right: 0; border-left: 2px solid #2a0008; }
.cyl-parade-spotlights {
  position: absolute;
  top: -10%; left: 0; right: 0; height: 80%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 160, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 35% 5%, rgba(180, 220, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 5%, rgba(255, 180, 220, 0.18) 0%, transparent 55%);
  pointer-events: none;
  animation: cyl-parade-light-pulse 5s ease-in-out infinite;
  z-index: 1;
}
@keyframes cyl-parade-light-pulse {
  0%,100% { opacity: 0.85; }
  50%     { opacity: 1; }
}
.cyl-parade-carpet {
  position: absolute;
  bottom: 12%; left: 0; right: 0; height: 32%;
  background: linear-gradient(180deg,
    rgba(140, 20, 30, 0.85) 0%,
    rgba(180, 30, 50, 0.95) 50%,
    rgba(100, 10, 20, 0.85) 100%);
  border-top: 2px solid rgba(240, 180, 90, 0.45);
  border-bottom: 2px solid rgba(240, 180, 90, 0.45);
  box-shadow: 0 -4px 12px rgba(255, 200, 100, 0.2),
              inset 0 0 30px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.cyl-parade-carpet::before, .cyl-parade-carpet::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    rgba(240, 200, 110, 0.55) 0px, rgba(240, 200, 110, 0.55) 8px,
    transparent 8px, transparent 18px);
}
.cyl-parade-carpet::before { top: 6px; }
.cyl-parade-carpet::after  { bottom: 6px; }

.cyl-parade-track {
  position: absolute;
  top: 6%;
  left: 14%; right: 14%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  z-index: 3;
  padding: 8px;
  background: rgba(20, 14, 26, 0.55);
  border-radius: 8px;
  border: 1px solid rgba(120, 80, 100, 0.3);
  max-height: 20%;
  overflow: auto;
  transition: opacity 0.4s ease;
}
.cyl-parade-track-dim { opacity: 0.32; pointer-events: none; }
.cyl-parade-queue-cyl {
  display: inline-flex;
  align-items: flex-end;
  cursor: default;
}

.cyl-parade-applause-meter {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  background: rgba(20, 12, 20, 0.85);
  border: 1.5px solid #b88040;
  border-radius: 10px;
  padding: 6px 10px;
  z-index: 8;
  box-shadow: 0 0 14px rgba(220, 150, 70, 0.3);
}
.cyl-parade-meter-label {
  font-size: 12px;
  font-weight: 700;
  color: #ffe080;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.cyl-parade-meter-bar {
  height: 14px;
  background: rgba(40, 20, 30, 0.9);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(220, 140, 80, 0.4);
}
.cyl-parade-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8c0c8, #ffd070, #ffaa50, #ff80a0, #c080ff);
  background-size: 300% 100%;
  background-position: 0% 50%;
  transition: width 0.25s cubic-bezier(.5,0,.3,1.4);
  box-shadow: 0 0 8px rgba(255, 200, 120, 0.5);
  animation: cyl-parade-meter-shine 3s linear infinite;
}
@keyframes cyl-parade-meter-shine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.cyl-parade-current {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.cyl-parade-current-walk {
  animation: cyl-parade-walk-in 0.7s ease-out forwards;
}
.cyl-parade-current-out {
  animation: cyl-parade-walk-out 0.45s ease-in forwards;
}
@keyframes cyl-parade-walk-in {
  0%   { transform: translate(-260%, 0) scale(0.7); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
@keyframes cyl-parade-walk-out {
  0%   { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(220%, 0) scale(0.7); opacity: 0; }
}
.cyl-parade-showcase-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 0 12px var(--rarity-color, #909090))
          drop-shadow(0 6px 14px rgba(0,0,0,0.7));
  transform: scale(2.0);
  transform-origin: 50% 100%;
  margin-bottom: 36px; /* leave room for the scaled cylinder */
}
.cyl-parade-name-tag {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) scale(0.5); /* counter-scale parent's 2x */
  text-align: center;
  background: rgba(10, 6, 18, 0.95);
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 4px 14px;
  white-space: nowrap;
  text-shadow: 0 0 6px currentColor;
  box-shadow: 0 0 10px currentColor;
}
.cyl-parade-name-line {
  font-size: 18px;
  font-weight: 800;
}
.cyl-parade-name-rarity {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 2px;
  opacity: 0.95;
}

.cyl-parade-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.cyl-parade-sparkle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px currentColor;
  animation: cyl-parade-sparkle-fly 1.0s ease-out forwards;
}
@keyframes cyl-parade-sparkle-fly {
  0%   { transform: translate(0,0) scale(0.4); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(var(--sparkle-dx), var(--sparkle-dy)) scale(0.2); opacity: 0; }
}

.cyl-parade-audience {
  position: absolute;
  bottom: -10px;
  left: 0; right: 0;
  height: 30%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.cyl-parade-emoji {
  position: absolute;
  bottom: 0;
  font-size: 18px;
  animation: cyl-parade-emoji-rise 1.5s ease-out forwards;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}
@keyframes cyl-parade-emoji-rise {
  0%   { transform: translateY(20px) scale(0.6); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-160px) scale(1.1); opacity: 0; }
}

.cyl-parade-winner-banner {
  position: absolute;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffe080;
  text-shadow: 0 0 22px rgba(255, 200, 100, 0.8);
  animation: cyl-parade-winner-pop 4s ease-out forwards;
  pointer-events: none;
}
.cyl-parade-winner-name {
  display: block;
  font-size: 36px;
  margin-top: 8px;
  text-shadow: 0 0 14px currentColor;
}
.cyl-parade-winner-rarity {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
  color: #d0d0e0;
  letter-spacing: 0.08em;
}
@keyframes cyl-parade-winner-pop {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  15%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.0); opacity: 0; }
}
.cyl-parade-reward-banner {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  color: #80ffd0;
  text-shadow: 0 0 16px rgba(100, 240, 200, 0.8);
  animation: cyl-parade-reward-pop 3s ease-out forwards;
  pointer-events: none;
}
@keyframes cyl-parade-reward-pop {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  20%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(-50%, -120%) scale(1.0); opacity: 0; }
}

.cyl-parade-leaderboard {
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(20, 14, 24, 0.7);
  border: 1px solid rgba(180, 130, 80, 0.3);
  border-radius: 10px;
  min-height: 36px;
}
.cyl-parade-lb-title {
  font-size: 12px;
  color: #ffe080;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 4px;
}
.cyl-parade-lb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cyl-parade-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 13px;
}
.cyl-parade-lb-medal { font-size: 18px; flex: 0 0 auto; }
.cyl-parade-lb-cyl   { flex: 0 0 auto; display: flex; align-items: flex-end; min-width: 22px; }
.cyl-parade-lb-name  { flex: 1 1 auto; font-weight: 700; color: #e0d0f0; }
.cyl-parade-lb-rarity{ flex: 0 0 auto; font-weight: 700; }
.cyl-parade-lb-score { flex: 0 0 auto; color: #ffe080; font-weight: 700; }

.cyl-parade-bottom {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
}
.cyl-parade-go-btn {
  background: linear-gradient(135deg, #6a2030, #a04050);
  border: 2px solid #d88a90;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 10px 32px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 0 18px rgba(220, 140, 150, 0.45), 0 4px 12px rgba(0,0,0,0.5);
}
.cyl-parade-go-btn:hover {
  background: linear-gradient(135deg, #a04050, #c86070);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 170, 180, 0.6), 0 6px 16px rgba(0,0,0,0.5);
}
.cyl-parade-go-btn:disabled,
.cyl-parade-go-btn-disabled {
  background: linear-gradient(135deg, #303040, #404058);
  border-color: #555570;
  color: #888899;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.cyl-parade-cooldown {
  font-size: 12px;
  color: #888899;
  font-style: italic;
}

/* ── Mobile narrowing — single-column drop for tight viewports ───────── */
@media (max-width: 720px) {
  .cyl-mini-modal { width: 96vw; height: 92vh; padding: 10px 10px 10px; }
  .cyl-mini-title { font-size: 18px; }
  .cyl-mini-sub   { font-size: 11px; margin-bottom: 6px; }
  .cyl-wave-pit   { width: 30%; }
  .cyl-wave-target-emoji { font-size: 64px; }
  .cyl-choir-rows { margin: 4% 4% 0; }
  .cyl-parade-track { left: 4%; right: 4%; }
  .cyl-parade-applause-meter { width: 92%; }
  .cyl-parade-showcase-wrap { transform: scale(1.5); }
}
