/* case-open-v3 CACHE 20261205e
 * Kill cqi collapse, wider Storm reel, TOP prize frame, stable spin chrome.
 */

.storm-dc-overlay,
.storm-dc.storm-dc--overlay,
.storm-dc.storm-dc-overlay {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background:
    radial-gradient(90% 70% at 50% -10%, rgba(38, 141, 255, 0.28), transparent 55%),
    radial-gradient(70% 50% at 80% 100%, rgba(242, 193, 92, 0.12), transparent 45%),
    rgba(3, 8, 16, 0.92) !important;
}

.storm-dc-stage {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 0.85rem !important;
  container-type: normal !important;
}

.storm-dc-case,
.storm-dc--overlay .storm-dc-case,
.storm-dc-overlay .storm-dc-case,
.storm-rc-case {
  --dc-tile: 7.1rem !important;
  --rc-tile: 7.1rem !important;
  --dc-gap: 0.55rem !important;
  --dc-window-h: 11.2rem !important;
  --rc-window-h: 11.2rem !important;
  container-type: normal !important;
  background:
    linear-gradient(165deg, rgba(22, 48, 86, 0.55), rgba(6, 12, 24, 0.92)) !important;
  border: 1px solid rgba(124, 240, 255, 0.28) !important;
  border-radius: 1.05rem !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .storm-dc-case,
  .storm-dc--overlay .storm-dc-case {
    --dc-tile: 6.1rem !important;
    --dc-window-h: 10rem !important;
  }
}

.storm-dc-window-wrap {
  isolation: isolate;
  margin: 0.45rem 0.7rem 0.85rem !important;
}

.storm-rc-window,
.storm-dc-window {
  height: var(--dc-window-h, 11.2rem) !important;
  min-height: 9.5rem !important;
  overflow: hidden !important;
  contain: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background:
    linear-gradient(90deg, #030812 0%, transparent 10%, transparent 90%, #030812 100%),
    radial-gradient(120% 80% at 50% 0%, rgba(38, 141, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #0c1830, #050b16) !important;
  border: 1px solid rgba(124, 240, 255, 0.32) !important;
  border-radius: 0.95rem !important;
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) !important;
  transform: translateZ(0);
  position: relative !important;
}

.storm-dc-pointer,
.storm-rc-pointer {
  z-index: 6 !important;
  width: 3px !important;
  left: 50% !important;
  top: 0 !important;
  bottom: 0 !important;
  position: absolute !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(180deg, transparent, #ffe08a 12%, #f0b429 50%, #ffe08a 88%, transparent) !important;
  box-shadow: 0 0 16px rgba(240, 180, 41, 0.9), 0 0 2px #fff8 !important;
  pointer-events: none !important;
}

.storm-dc-pointer:before,
.storm-dc-pointer:after,
.storm-rc-pointer:before,
.storm-rc-pointer:after {
  border-left-width: 7px !important;
  border-right-width: 7px !important;
}

.storm-rc-track,
.storm-dc-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: var(--dc-gap, 0.55rem) !important;
  height: 100% !important;
  width: max-content !important;
  min-width: 100% !important;
  padding: 0 var(--dc-gap, 0.55rem) !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.storm-rc-tile,
.storm-dc-tile {
  flex: 0 0 7.1rem !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  width: 7.1rem !important;
  min-width: 7.1rem !important;
  max-width: 7.1rem !important;
  height: calc(var(--dc-window-h, 11.2rem) - 1.1rem) !important;
  min-height: 8.6rem !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.28rem !important;
  padding: 0.4rem 0.3rem !important;
  box-sizing: border-box !important;
  border-radius: 0.85rem !important;
  border: 1px solid rgba(124, 240, 255, 0.26) !important;
  background:
    linear-gradient(155deg, rgba(36, 74, 122, 0.95), rgba(8, 18, 36, 0.98)) !important;
  color: #f4fbff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.25) !important;
  transform: translateZ(0);
  position: relative !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .storm-rc-tile,
  .storm-dc-tile {
    flex-basis: 6.1rem !important;
    width: 6.1rem !important;
    min-width: 6.1rem !important;
    max-width: 6.1rem !important;
    min-height: 7.6rem !important;
  }
}

/* TOP prize frame */
.storm-dc-tile.is-top,
.storm-rc-tile.is-top {
  border: 1.5px solid rgba(242, 193, 92, 0.85) !important;
  background:
    linear-gradient(155deg, rgba(84, 58, 18, 0.55), rgba(12, 22, 40, 0.96)),
    linear-gradient(155deg, rgba(36, 74, 122, 0.9), rgba(8, 18, 36, 0.98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 138, 0.25),
    0 0 18px rgba(240, 180, 41, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

.storm-dc-tile.is-top::before,
.storm-rc-tile.is-top::before {
  content: "TOP";
  position: absolute;
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  color: #1a1206;
  background: linear-gradient(180deg, #ffe08a, #f0b429);
  box-shadow: 0 0 12px rgba(240, 180, 41, 0.55);
}

.storm-dc-tile.is-top .storm-dc-tile__art,
.storm-rc-tile.is-top .storm-dc-tile__art {
  margin-top: 0.55rem !important;
}

.storm-dc-tile__art {
  width: 72% !important;
  aspect-ratio: 1 !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(4, 10, 22, 0.58) !important;
  border-radius: 0.55rem !important;
  overflow: hidden !important;
  box-shadow: inset 0 0 0 1px rgba(124, 240, 255, 0.12);
}

.storm-dc-tile__art img,
.storm-dc-tile img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.storm-dc-tile__label {
  display: block !important;
  max-width: 100% !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: rgba(244, 251, 255, 0.94) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.storm-dc-case.is-spinning .storm-dc-window {
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(240, 180, 41, 0.28),
    0 0 28px rgba(38, 141, 255, 0.18) !important;
}

.storm-dc-case.is-spinning .storm-dc-pointer {
  animation: storm-dc-pointer-pulse 850ms ease-in-out infinite;
}

@keyframes storm-dc-pointer-pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(240, 180, 41, 0.8)); }
  50% { opacity: 0.72; filter: drop-shadow(0 0 14px rgba(240, 180, 41, 1)); }
}

.storm-dc-case.is-won .storm-dc-track {
  opacity: 0.38 !important;
  filter: none !important;
  transition: opacity 0.35s ease;
}

.storm-dc-case.is-won .storm-dc-window:after {
  background: rgba(3, 8, 18, 0.52) !important;
}

.storm-dc-prize.is-in {
  animation: storm-dc-prize-in 0.48s cubic-bezier(0.16, 0.84, 0.22, 1) both;
}

@keyframes storm-dc-prize-in {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.storm-dc-lid.is-open {
  animation: storm-dc-lid-pop 0.55s cubic-bezier(0.16, 0.84, 0.22, 1) both;
}

@keyframes storm-dc-lid-pop {
  from { transform: translateY(6px) scale(0.92); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}

.storm-dc--overlay .storm-dc-card,
.storm-dc-overlay .storm-dc-card {
  border: 1px solid rgba(124, 240, 255, 0.24) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 70px rgba(0, 0, 0, 0.58) !important;
  background:
    radial-gradient(circle at 85% 10%, rgba(38, 141, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(14, 30, 54, 0.98), rgba(6, 10, 20, 0.99)) !important;
}
