.case-preview-image {
  width: 270px;
  height: 167px;
  object-fit: contain;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.overlay.show {
  display: block;
  opacity: 1;
}

.cosmic_content {
  position: relative;
  transition: all 0.3s ease-in-out;
}

.cosmic_content.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}

.reel-container {
  position: relative;
  max-width: 1200px;
  min-width: 300px;
  margin: 0 auto 10px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-left: 4px solid #fff136;
  border-right: 4px solid #fff136;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}

.reel-container.show {
  display: block;
  opacity: 1;
}

.reel-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 35px solid #fff136;
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(255, 241, 54, 0.8));
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 241, 54, 0.8));
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 241, 54, 1));
  }
}

.reel-items {
  display: flex;
  transition: transform 5s cubic-bezier(0.15, 0.95, 0.25, 1);
  gap: 20px;
}

.item-card {
  padding: 10px;
  border-bottom: 3px solid;
  min-width: 210px;
  position: relative;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
}

.item-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://forcedrop.vip/public/img/roulette/skin-bg-in-case.svg");
  background-size: 120px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 0;
  transform: translate(0%, -8%);
}

.item-card > * {
  position: relative;
  z-index: 1;
  text-align: center;
}

.item-card.winner {
  border: 3px solid #fff136 !important;
  transform: scale(1.1);
}

.item-image img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.item-card:hover .item-image img {
  transform: translateY(-5px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.item-title {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #fff;
}

.case-block {
  margin-bottom: 50px;
}

.case-view {
  text-align: center;
  margin: 20px auto;
  background: url(/_next/static/media/decor-case.11242405.png) no-repeat center;
  background-size: contain;
  padding: 10px 0;
}

.open-case {
  display: none;
}

.open-case.show {
  display: block;
}

.case-actions {
  text-align: center;
}

.case-actions .open-case.show {
  margin-left: auto;
  margin-right: auto;
}

.case-shadow {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 1));
}

.btn_case {
  background: url(/_next/static/media/button-start.e161a054.png) 50%/295px no-repeat;
  width: 300px;
  height: 50px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  text-transform: uppercase;
}

.item-card.color-0 {
  background: linear-gradient(to bottom, #ff6b6b, #b71c1c, #4a0000);
  border: 1px solid #ff4d4d;
  border-bottom: 3px solid #ff4d4d;
}

.item-card.color-1 {
  background: linear-gradient(to bottom, #4caf50, #2e7d32, #1b3e1e);
  border: 1px solid #43a047;
  border-bottom: 3px solid #43a047;
}

.item-card.color-2 {
  background: linear-gradient(to bottom, #42a5f5, #1565c0, #0d3b6b);
  border: 1px solid #2196f3;
  border-bottom: 3px solid #2196f3;
}

.item-card.color-3 {
  background: linear-gradient(to bottom, #ffca28, #ff8f00, #8e4e00);
  border: 1px solid #ffb300;
  border-bottom: 3px solid #ffb300;
}

.item-card.color-4 {
  background: linear-gradient(to bottom, #ab47bc, #6a1b9a, #3b0d54);
  border: 1px solid #9c27b0;
  border-bottom: 3px solid #9c27b0;
}

.item-card.color-5 {
  background: linear-gradient(to bottom, #26c6da, #007a8c, #00464f);
  border: 1px solid #00acc1;
  border-bottom: 3px solid #00acc1;
}

.item-card.color-6 {
  background: linear-gradient(to bottom, #ff7043, #d84315, #7f250c);
  border: 1px solid #f4511e;
  border-bottom: 3px solid #f4511e;
}

.item-card.color-7 {
  background: linear-gradient(to bottom, #78909c, #455a64, #263238);
  border: 1px solid #607d8b;
  border-bottom: 3px solid #607d8b;
}

.item-card.color-8 {
  background: linear-gradient(to bottom, #d4e157, #9e9d24, #5c5b14);
  border: 1px solid #c0ca33;
  border-bottom: 3px solid #c0ca33;
}

.item-card.color-9 {
  background: linear-gradient(to bottom, #f06292, #c2185b, #6d0f34);
  border: 1px solid #ec407a;
  border-bottom: 3px solid #ec407a;
}

.case-info {
  display: none !important;
  justify-content: center;
  margin-bottom: 20px;
}

.case-info.show {
  display: flex;
}

.case-info div {
  background: #252529;
  color: #cfcfcf;
  padding: 10px;
  width: 300px;
  border: 1px solid #353539;
  border-radius: 10px;
  text-align: center;
}
