.cases-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 40px;
}
.cases-promo-card {
  height: 250px;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cases-promo-card:hover {
  transform: scale(1.02);
}
.cases-promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
}
.promo-content {
  position: relative;
  z-index: 2;
}
.promo-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.promo-content p {
  color: rgba(255,255,255,0.8);
  max-width: 400px;
  margin-bottom: 20px;
}
.promo-daily {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
}
.promo-new-collection {
  background-color: var(--color-red);
  border-color: var(--color-red);
}
.cases-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.case-column {
  background-color: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.column-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.case-card {
  background: #191919;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  position: relative;
  border: 1px solid #2a2a2a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.case-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 15px rgba(215, 31, 44, 0);
  transition: box-shadow 0.3s ease;
}
.case-card:hover::after {
  box-shadow: inset 0 0 20px rgba(215, 31, 44, 0.4);
}
.case-image {
  height: 300px;
  /* margin-bottom: 15px; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 15px; */
}
.case-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.case-name {
  font-weight: 600;
  padding: 10px 15px;
  font-size: 1.5rem;
}

.case-column::before,
.case-column::after {
  content: '';
  position: absolute;
  background-color: rgba(215, 31, 44, 0.04); /* Очень низкая прозрачность для "еле заметного" эффекта */
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: 0; /* Размещаем под контентом */
  pointer-events: none; /* Чтобы не мешали кликам */
}

/* Расположение и размеры треугольников */
.case-column::before {
  width: 250px;
  height: 250px;
  top: -80px;
  right: -100px;
  transform: rotate(45deg);
}

.case-column::after {
  width: 200px;
  height: 200px;
  bottom: -90px;
  left: -70px;
  transform: rotate(210deg);
}
.case-price {
  background-color: var(--bg-card-light);
  padding: 12px 15px;
  margin-top: 15px;
  font-weight: 700;
  color: var(--color-red);
  transition: all 0.3s ease;
}
.case-card:hover .case-price {
  background-color: var(--color-red);
  color: white;
}
.case-card.premium .case-price {
  background: linear-gradient(45deg, var(--color-red), #a11b26);
  color: white;
}
.case-card.premium:hover .case-price {
  background: linear-gradient(45deg, var(--color-red-light), #be222f);
}
@media (max-width: 1200px) {
  .cases-promo-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 992px) {
  .cases-layout {
    grid-template-columns: 1fr;
  }
  .cases-promo-grid{
    padding-top: 20px;
  }

}
@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cases-promo-card{
    height: auto;
  }
  
  .cases-stats-block {
    padding: 8px 12px;
    gap: 8px;
  }
  
  .stats-text {
    font-size: 13px;
  }
  
  .stats-counter {
    padding: 5px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cases-recent-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .cases-recent-header .all-time {
    width: 100%;
    justify-content: center;
  }
  
  .cases-stats-block {
    width: 100%;
    justify-content: center;
  }
}

.case-opening-page {
  margin: 0 auto;
  padding: 20px 0;
}
.case-opening-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
}
.case-opening-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}
.sound-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--bg-card-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}
.roulette-container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: #111;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}
.roulette-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--color-red);
  box-shadow: 0 0 15px var(--color-red);
  z-index: 10;
}
.roulette-track {
  display: flex;
  height: 100%;
  position: absolute;
  left: 0;
  transition: transform 7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.roulette-item {
  width: 180px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background-color: var(--bg-card);
  border-right: 2px solid #111;
}
.roulette-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}
.roulette-item .item-name {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.roulette-item.rare { border-top: 3px solid var(--color-yellow); }
.roulette-item.epic { border-top: 3px solid var(--color-purple); }
.roulette-item.legendary { border-top: 3px solid var(--color-red); }
.btn-open-case {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  padding: 18px;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--color-red);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(215, 31, 44, 0.3);
  transition: all 0.3s ease;
}
.btn-open-case:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(215, 31, 44, 0.4);
}
.btn-open-case:disabled {
  background-color: #555;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}
.case-contents-container {
  margin-top: 40px;
}
.contents-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  gap: 20px;
}
.contents-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--bg-card-light);
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #333;
}
.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.content-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  border: 1px solid #2a2a2a;
}
.content-item .item-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #2a2a2a 0%, #191919 70%);
  border-radius: 8px;
  margin-bottom: 15px;
}
.content-item .item-name {
  font-weight: 600;
  font-size: 14px;
}
.content-item p {
  font-size: 12px;
  color: var(--text-muted);
}
.content-item.rare {
  border-color: var(--color-yellow);
}
.win-modal-window {
  max-width: 450px;
  background: #1a1c1e;
  overflow: hidden;
}
.win-content {
  text-align: center;
  padding: 40px 25px 25px;
  position: relative;
}
.win-light-beam {
  position: absolute;
  top: 0;
  left: 50%;
  width: 300%;
  pointer-events: none;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(215, 31, 44, 0.4) 0%, rgba(215, 31, 44, 0) 70%);
  transform: translateX(-50%);
  z-index: 1;
  animation: rotate-beam 20s linear infinite;
}
@keyframes rotate-beam {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}
.win-item-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 15px var(--color-red));
}
.win-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-red);
  text-shadow: 0 0 15px var(--color-red);
}
.win-subtitle {
  color: var(--text-muted);
  margin-bottom: 5px;
}
.win-item-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 30px;
}
.win-actions {
  display: flex;
  gap: 15px;
}
.win-actions .btn {
  flex: 1;
  justify-content: center;
}
.case-opening-page {
  background-color: #111;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(215, 31, 44, 0.2), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(215, 31, 44, 0.15), transparent 40%);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #222;
  position: relative;
  overflow: hidden;
}

/* Анимированные фоновые элементы */
.case-opening-page::before,
.case-opening-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, rgba(215, 31, 44, 0.1), transparent);
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  animation: move-blob 30s infinite alternate;
}

.case-opening-page::after {
  bottom: -200px;
  right: -200px;
  animation-delay: -15s;
}

.case-opening-page::before {
  top: -200px;
  left: -200px;
}

/* Все элементы внутри делаем поверх фона */
.case-opening-page > * {
  position: relative;
  z-index: 1;
}

@keyframes move-blob {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(100px, 50px) rotate(180deg);
  }
}

@media (max-width: 760px){
  .case-opening-page{
    margin-top: 20px;
    padding: 10px;
  }
}

.case-opening-page {
  margin: 0 auto;
  padding: 20px 0;
}
.case-opening-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
}
.case-opening-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}
.sound-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--bg-card-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}
.roulette-container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: #111;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}
.roulette-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--color-red);
  box-shadow: 0 0 15px var(--color-red);
  z-index: 10;
}
.roulette-track {
  display: flex;
  height: 100%;
  position: absolute;
  left: 0;
  transition: transform 7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.roulette-item {
  width: 180px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background-color: var(--bg-card);
  border-right: 2px solid #111;
}
.roulette-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}
.roulette-item .item-name {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.roulette-item.rare { border-top: 3px solid var(--color-yellow); }
.roulette-item.epic { border-top: 3px solid var(--color-purple); }
.roulette-item.legendary { border-top: 3px solid var(--color-red); }
.btn-open-case {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  padding: 18px;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--color-red);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(215, 31, 44, 0.3);
  transition: all 0.3s ease;
}
.btn-open-case:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(215, 31, 44, 0.4);
}
.btn-open-case:disabled {
  background-color: #555;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}
.case-contents-container {
  margin-top: 40px;
}
.contents-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  gap: 20px;
}
.contents-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--bg-card-light);
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #333;
}
.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.content-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  border: 1px solid #2a2a2a;
}
.content-item .item-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #2a2a2a 0%, #191919 70%);
  border-radius: 8px;
  margin-bottom: 15px;
}
.content-item .item-name {
  font-weight: 600;
  font-size: 14px;
}
.content-item p {
  font-size: 12px;
  color: var(--text-muted);
}
.content-item.rare {
  border-color: var(--color-yellow);
}
.win-modal-window {
  max-width: 450px;
  background: #1a1c1e;
  overflow: hidden;
}
.win-content {
  text-align: center;
  padding: 40px 25px 25px;
  position: relative;
}
.win-light-beam {
  position: absolute;
  top: 0;
  left: 50%;
  width: 300%;
  pointer-events: none;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(215, 31, 44, 0.4) 0%, rgba(215, 31, 44, 0) 70%);
  transform: translateX(-50%);
  z-index: 1;
  animation: rotate-beam 20s linear infinite;
}
@keyframes rotate-beam {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}
.win-item-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 15px var(--color-red));
}
.win-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-red);
  text-shadow: 0 0 15px var(--color-red);
}
.win-subtitle {
  color: var(--text-muted);
  margin-bottom: 5px;
}
.win-item-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 30px;
}
.win-actions {
  display: flex;
  gap: 15px;
}
.win-actions .btn {
  flex: 1;
  justify-content: center;
}
.case-opening-page {
  background-color: #111;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(215, 31, 44, 0.2), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(215, 31, 44, 0.15), transparent 40%);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #222;
  position: relative;
  overflow: hidden;
}

/* Анимированные фоновые элементы */
.case-opening-page::before,
.case-opening-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, rgba(215, 31, 44, 0.1), transparent);
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  animation: move-blob 30s infinite alternate;
}

.case-opening-page::after {
  bottom: -200px;
  right: -200px;
  animation-delay: -15s;
}

.case-opening-page::before {
  top: -200px;
  left: -200px;
}

/* Все элементы внутри делаем поверх фона */
.case-opening-page > * {
  position: relative;
  z-index: 1;
}

@keyframes move-blob {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(100px, 50px) rotate(180deg);
  }
}

@media (max-width: 760px){
  .case-opening-page{
    margin-top: 20px;
    padding: 10px;
  }
}






.cases-main-block > a[class^="icon"], .cases-main-block .main-case, .cases-main-block .roulette > #sound-point, .cases-main-block .roulette .roulette-slider, #prize .modal-content {
  background-size: 100% 100%; }

.cases-main-block {
  width: 100%;
  margin-bottom: 30px;
  height: auto;
  overflow: hidden;
  position: relative;
  background-color: #111;
  background-image: radial-gradient(circle at 100% 0%, rgba(215, 31, 44, 0.2), transparent 40%), radial-gradient(circle at 0% 100%, rgba(215, 31, 44, 0.15), transparent 40%);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #222;
  }
  .cases-main-block > a[class^="icon"] {
    width: 30px;
    height: 30px;
    display: block;
    position: absolute;
    opacity: 0.2;
    top: 37px;
    cursor: pointer; }
    .cases-main-block > a[class^="icon"].icon-open-cases {
      background-image: url(../img/icon-key.png);
      right: 50px; }
    .cases-main-block > a[class^="icon"].icon-back-to-cases {
      background-image: url(../img/icon-back.png);
      left: 50px; }
    .cases-main-block > a[class^="icon"]:hover {
      opacity: .5; }
  .cases-main-block h2 {
    min-height: 47px;
    padding-top: 5px;
    text-transform: uppercase;
    font-size: 28px;
    color: white;
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold; }
  @media (min-width: 992px) {
    .cases-main-block h2 {
      background: url(../img/title-bg.png) center bottom no-repeat;
      } }
  @media (max-width: 991.99px) {
    .cases-main-block h2 {
      border-bottom: 1px dashed #ff4800; } }
  .cases-main-block .info-block {
    position: relative;
    background: url(../img/info-block-bg.jpg);
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 0 96px -15px #c64f47; }
    .cases-main-block .info-block > h3 {
      color: #64ca00;
      text-shadow: 0 2px 4px rgba(133, 214, 0, 0.25); }
    .cases-main-block .info-block > ul {
      margin-left: 15px;
      margin-bottom: 0;
      color: #FFFFFF; }
    .cases-main-block .info-block > p {
      color: #FFFFFF; }
  .cases-main-block .main-case {
    background: url(../img/case-bg.png);
    min-height: 253px;
    line-height: 253px;
    text-align: center;
    max-width: 600px !important;
    width: 100%;
    display: block;
    margin: 0 auto 20px; }
    .cases-main-block .main-case img {
      max-width: 300px; }
  @media (max-width: 991.99px) {
    .cases-main-block .main-case {
      min-height: 150px;
      line-height: 150px;
      background: rgba(0, 0, 0, 0); }
      .cases-main-block .main-case img {
        max-width: 100%; }
    .cases-main-block button.open-case {
      font-size: 16px; } }
  .cases-main-block button.open-case {
    padding: 0 15px;
    height: 60px;
    line-height: 60px;
    background: var(--color-red);
    box-shadow: 0 2px 4px 0 rgba(254, 0, 32, 0.35);
    border-radius: 3px;
    text-transform: uppercase;
    border: 0;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 21px;
    margin: 30px auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    }
    .cases-main-block button.open-case:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(215, 31, 44, 0.4);
      }
    .cases-main-block button.open-case[disabled] {
      background-image: linear-gradient(135deg, rgba(255, 121, 0, 0.53) 0%, rgba(255, 0, 30, 0.47) 46%, rgba(214, 0, 90, 0.49) 100%) !important;
      opacity: 0.5; }
  @media (max-width: 991.99px) {
    .cases-main-block button.open-case {
      font-size: 16px; } }
  .cases-main-block .roulette {
    /* padding: 27px 27px 36px; */
    position: relative;
    /*background: url(../img/roulette-bg.png) repeat;*/
    /* border-radius: 26px; */
    overflow: hidden;
    width: 100%;
    /* height: 403px; */
    max-width: 650px !important;
    margin: 0 auto;
    }

    #sound-point {
      width: 30px;
      height: 30px;
      display: block;
      position: absolute;
      opacity: 0.2;
      right: 50px;
      top: 37px;
      cursor: pointer;
      background-size: 100%;
    }
      #sound-point.sound-on {
        background-image: url(../img/icon-sound-on.png);
        }
      #sound-point.sound-off {
        background-image: url(../img/icon-sound-off.png); }
      #sound-point:hover {
        opacity: .5; }
    .cases-main-block .roulette .roulette-slider {
      /* padding: 33px 30px 23px; */
      /* margin-bottom: 25px; */
      position: relative;
      /* background-position: 50% 50%; */
      /* height: 229px; */
      background-color: #111;
      border-top: 2px solid #333;
      border-bottom: 2px solid #333;
      box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
      }
      .cases-main-block .roulette .roulette-slider .r-left {
        position: absolute;
        left: -24px;
        top: -8px;
        bottom: 0;
        display: block;
        background: url(../img/r-left.png) no-repeat;
        width: 73px;
        height: 394px; }
      .cases-main-block .roulette .roulette-slider .r-right {
        position: absolute;
        right: -37px;
        top: 3px;
        bottom: 0;
        display: block;
        background: url(../img/r-right.png) no-repeat;
        width: 83px;
        height: 379px; }
      .cases-main-block .roulette .roulette-slider .r-side {
        left: 49px;
        width: calc(50% - 47px);
        top: 4px;
        bottom: -45px;
        position: absolute;
        background: url(../img/r-side.png) repeat-x; }
      .cases-main-block .roulette .roulette-slider .r-side2 {
        right: 46px;
        width: calc(50% - 48px);
        top: 4px;
        bottom: -45px;
        position: absolute;
        background: url(../img/r-side.png) repeat-x; }
      .cases-main-block .roulette .roulette-slider .top-arr {
        background: url(../img/top-arr.png) no-repeat;
        width: 132px;
        height: 28px;
        position: absolute;
        left: 50%;
        top: 4px;
        -ms-transform: translate(-50%, 0);
        transform: translate(-50%, 0); }
      .cases-main-block .roulette .roulette-slider .bottom-arr {
        background: url(../img/bottom-arr.png) 0 0 no-repeat;
        width: 132px;
        height: 28px;
        position: absolute;
        left: 50%;
        bottom: -4px;
        -ms-transform: translate(-50%, 0);
        transform: translate(-50%, 0); }
      .cases-main-block .roulette .roulette-slider .roulette-area {
        overflow: hidden;
        width: calc(100% + 36px);
        height: 100%;
        margin-left: -16px;
        }
        .cases-main-block .roulette .roulette-slider .roulette-area #roulette {
          height: 202px;
          width: 190px;
          top: 1px;
          position: relative;
          margin: 0 auto;
          }
          .cases-main-block .roulette .roulette-slider .roulette-area #roulette .roulette-inner {
            transition: 0s linear;
            position: relative;
            top: 0;
            white-space: nowrap;
            height: 100%;
            width: 100%;
            }
            .cases-main-block .roulette .roulette-slider .roulette-area #roulette .roulette-inner .subject-block {
              box-shadow: none !important; }

#cases > p, #cases_not_open > p {
  color: #64ca00;
  text-shadow: 0 2px 4px rgba(133, 214, 0, 0.25);
  font-size: 20px;
  margin-left: 15px;
  font-weight: bold; }
#cases .case-block, #cases_not_open .case-block {
  position: relative;
  display: block;
  box-shadow: rgba(0, 0, 0, 0.3) 5px 5px 20px;
  background-image: linear-gradient(-135deg, rgba(255, 121, 0, 0.1) 0%, rgba(255, 0, 30, 0.05) 46%, rgba(214, 0, 90, 0.1) 100%);
  border-radius: 6px;
  height: 260px;
  padding: 0 10px 10px 10px;
  margin-top: 30px; }
  #cases .case-block:hover, #cases_not_open .case-block:hover {
    background-image: linear-gradient(-135deg, rgba(255, 121, 0, 0.45) 0%, rgba(255, 0, 30, 0.15) 46%, rgba(214, 0, 90, 0.45) 100%); }
  #cases .case-block span, #cases_not_open .case-block span {
    display: block;
    color: #FFFFFF;
    height: 40px;
    position: absolute;
    bottom: 0;
    line-height: 40px;
    border-radius: 6px; }
    #cases .case-block span:nth-child(2), #cases_not_open .case-block span:nth-child(2) {
      width: calc(100% - 80px);
      background-image: linear-gradient(-90deg, rgba(33, 21, 54, 0) 0%, rgba(24, 13, 43, 0.85) 100%);
      left: 0;
      padding-left: 10px;
      padding-right: 10px;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap; }
    #cases .case-block span:nth-child(3), #cases .case-block span:nth-child(4), #cases_not_open .case-block span:nth-child(3), #cases_not_open .case-block span:nth-child(4) {
      width: 80px;
      background-image: linear-gradient(-135deg, rgba(255, 0, 0, 0.5) 0%, rgba(255, 0, 30, 0.45) 46%, rgba(214, 0, 90, 0.45) 100%);
      right: 0;
      font-weight: bold;
      text-align: center; }
  #cases .case-block div.case-image-block, #cases_not_open .case-block div.case-image-block {
    height: 220px;
    line-height: 220px;
    text-align: center; }
    #cases .case-block div.case-image-block img, #cases_not_open .case-block div.case-image-block img {
      max-width: 100%;
      max-height: 220px; }

#subjects, #roulette, #prize_area {
  text-align: center; }
  #subjects .modal-dialog, #roulette .modal-dialog, #prize_area .modal-dialog {
    text-align: left; }
  #subjects .subject-block, #roulette .subject-block, #prize_area .subject-block {
    overflow: hidden;
    display: inline-block;
    position: relative;
    height: 200px;
    width: 180px;
    margin-right: 5px;
    margin-left: 5px;
    background-color: var(--bg-card);
    background-image: unset!important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    /* border-radius: 5px; */
    }
    #subjects .subject-block .b-top, #subjects .subject-block .b-bottom, #subjects .subject-block .b-left, #subjects .subject-block .b-right, #roulette .subject-block .b-top, #roulette .subject-block .b-bottom, #roulette .subject-block .b-left, #roulette .subject-block .b-right, #prize_area .subject-block .b-top, #prize_area .subject-block .b-bottom, #prize_area .subject-block .b-left, #prize_area .subject-block .b-right {
      position: absolute;
      display: block; }
    #subjects .subject-block .b-top, #roulette .subject-block .b-top, #prize_area .subject-block .b-top {
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      }
    #subjects .subject-block .b-bottom, #roulette .subject-block .b-bottom, #prize_area .subject-block .b-bottom {
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      display: none;
      }
    #subjects .subject-block .b-left, #roulette .subject-block .b-left, #prize_area .subject-block .b-left {
      left: 0;
      top: 0;
      bottom: 0;
      width: 2px;
      display: none;
      }
    #subjects .subject-block .b-right, #roulette .subject-block .b-right, #prize_area .subject-block .b-right {
      right: 0;
      top: 0;
      bottom: 0;
      width: 2px;
      display: none;
      }
    #subjects .subject-block.orange, #roulette .subject-block.orange, #prize_area .subject-block.orange {
      background-image: url(../img/orange-bg.png); }
      #subjects .subject-block.orange > .b-top, #roulette .subject-block.orange > .b-top, #prize_area .subject-block.orange > .b-top {
        background: #ffbe0b;
        }
      #subjects .subject-block.orange > .b-bottom, #roulette .subject-block.orange > .b-bottom, #prize_area .subject-block.orange > .b-bottom {
        background: linear-gradient(to right, #725a39 0%, #d8b38a 43%, #d8b38a 60%, #725a39 100%); }
      #subjects .subject-block.orange > .b-left, #roulette .subject-block.orange > .b-left, #prize_area .subject-block.orange > .b-left {
        background: linear-gradient(to bottom, #725a39 0%, #d8b38a 43%, #d8b38a 60%, #725a39 100%); }
      #subjects .subject-block.orange > .b-right, #roulette .subject-block.orange > .b-right, #prize_area .subject-block.orange > .b-right {
        background: linear-gradient(to bottom, #725a39 0%, #d8b38a 43%, #d8b38a 60%, #725a39 100%); }
      #subjects .subject-block.orange .subject > span:nth-child(1), #roulette .subject-block.orange .subject > span:nth-child(1), #prize_area .subject-block.orange .subject > span:nth-child(1) {
        color: #ffbe0b;
        }
    #subjects .subject-block.red, #roulette .subject-block.red, #prize_area .subject-block.red {
      background-image: url(../img/red-bg.jpg); }
      #subjects .subject-block.red > .b-top, #roulette .subject-block.red > .b-top, #prize_area .subject-block.red > .b-top {
        background: #d71f2c;
        }
      #subjects .subject-block.red > .b-bottom, #roulette .subject-block.red > .b-bottom, #prize_area .subject-block.red > .b-bottom {
        background: linear-gradient(to right, #c23459 0%, #ec8492 43%, #ec8492 60%, #c23459 100%); }
      #subjects .subject-block.red > .b-left, #roulette .subject-block.red > .b-left, #prize_area .subject-block.red > .b-left {
        background: linear-gradient(to bottom, #c23459 0%, #ec8492 43%, #ec8492 60%, #c23459 100%); }
      #subjects .subject-block.red > .b-right, #roulette .subject-block.red > .b-right, #prize_area .subject-block.red > .b-right {
        background: linear-gradient(to bottom, #c23459 0%, #ec8492 43%, #ec8492 60%, #c23459 100%); }
      #subjects .subject-block.red .subject > span:nth-child(1), #roulette .subject-block.red .subject > span:nth-child(1), #prize_area .subject-block.red .subject > span:nth-child(1) {
        color: #d71f2c;
        }
    #subjects .subject-block.purple, #roulette .subject-block.purple, #prize_area .subject-block.purple {
      background-image: url(../img/purple-bg.jpg); }
      #subjects .subject-block.purple > .b-top, #roulette .subject-block.purple > .b-top, #prize_area .subject-block.purple > .b-top {
        background: #862b7c;
        }
      #subjects .subject-block.purple > .b-bottom, #roulette .subject-block.purple > .b-bottom, #prize_area .subject-block.purple > .b-bottom {
        background: linear-gradient(to right, #862b7c 0%, #ec85d7 43%, #ec85d7 60%, #862b7c 100%);
        }
      #subjects .subject-block.purple > .b-left, #roulette .subject-block.purple > .b-left, #prize_area .subject-block.purple > .b-left {
        background: linear-gradient(to bottom, #862b7c 0%, #ec85d7 43%, #ec85d7 60%, #862b7c 100%);
        }
      #subjects .subject-block.purple > .b-right, #roulette .subject-block.purple > .b-right, #prize_area .subject-block.purple > .b-right {
        background: linear-gradient(to bottom, #862b7c 0%, #ec85d7 43%, #ec85d7 60%, #862b7c 100%);
        }
      #subjects .subject-block.purple .subject > span:nth-child(1), #roulette .subject-block.purple .subject > span:nth-child(1), #prize_area .subject-block.purple .subject > span:nth-child(1) {
        color: #862b7c;
        }
    #subjects .subject-block.blue, #roulette .subject-block.blue, #prize_area .subject-block.blue {
      background-image: url(../img/blue-bg.jpg); }
      #subjects .subject-block.blue > .b-top, #roulette .subject-block.blue > .b-top, #prize_area .subject-block.blue > .b-top {
        background: linear-gradient(to right, #3634c2 0%, #5655d3 50%, #5655d3 51%, #3634c2 100%); }
      #subjects .subject-block.blue > .b-bottom, #roulette .subject-block.blue > .b-bottom, #prize_area .subject-block.blue > .b-bottom {
        background: linear-gradient(to right, #3634c2 0%, #5655d3 50%, #5655d3 51%, #3634c2 100%); }
      #subjects .subject-block.blue > .b-left, #roulette .subject-block.blue > .b-left, #prize_area .subject-block.blue > .b-left {
        background: linear-gradient(to bottom, #3634c2 0%, #5655d3 50%, #5655d3 51%, #3634c2 100%); }
      #subjects .subject-block.blue > .b-right, #roulette .subject-block.blue > .b-right, #prize_area .subject-block.blue > .b-right {
        background: linear-gradient(to bottom, #3634c2 0%, #5655d3 50%, #5655d3 51%, #3634c2 100%); }
      #subjects .subject-block.blue .subject > span:nth-child(1), #roulette .subject-block.blue .subject > span:nth-child(1), #prize_area .subject-block.blue .subject > span:nth-child(1) {
        color: #b2a9fa; }
    #subjects .subject-block.military, #roulette .subject-block.military, #prize_area .subject-block.military {
      background-image: url(../img/military-bg.jpg); }
      #subjects .subject-block.military > .b-top, #roulette .subject-block.military > .b-top, #prize_area .subject-block.military > .b-top {
        background: linear-gradient(to right, #457dff 0%, #6695ff 51%, #457dff 100%); }
      #subjects .subject-block.military > .b-bottom, #roulette .subject-block.military > .b-bottom, #prize_area .subject-block.military > .b-bottom {
        background: linear-gradient(to right, #457dff 0%, #6695ff 51%, #457dff 100%); }
      #subjects .subject-block.military > .b-left, #roulette .subject-block.military > .b-left, #prize_area .subject-block.military > .b-left {
        background: linear-gradient(to bottom, #457dff 0%, #6695ff 51%, #457dff 100%); }
      #subjects .subject-block.military > .b-right, #roulette .subject-block.military > .b-right, #prize_area .subject-block.military > .b-right {
        background: linear-gradient(to bottom, #457dff 0%, #6695ff 51%, #457dff 100%); }
      #subjects .subject-block.military .subject > span:nth-child(1), #roulette .subject-block.military .subject > span:nth-child(1), #prize_area .subject-block.military .subject > span:nth-child(1) {
        color: #9ebffb; }
    #subjects .subject-block > .subject-services, #roulette .subject-block > .subject-services, #prize_area .subject-block > .subject-services {
      height: 200px;
      width: 100%;
      display: table;
      padding: 8px; }
      #subjects .subject-block > .subject-services .subject-fix, #roulette .subject-block > .subject-services .subject-fix, #prize_area .subject-block > .subject-services .subject-fix {
        display: table-cell;
        height: auto;
        text-align: center;
        vertical-align: middle; }
        #subjects .subject-block > .subject-services .subject-fix .subject span, #roulette .subject-block > .subject-services .subject-fix .subject span, #prize_area .subject-block > .subject-services .subject-fix .subject span {
          width: 164px;
          display: block; }
          #subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(1), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(1), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(1) {
            text-shadow: 0 0 7px rgba(81, 67, 37, 0.55);
            font-size: 17px;
            text-overflow: ellipsis;
            overflow: hidden;
            /* white-space: nowrap; */
            }
          #subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(2), #subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(2), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(2), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(3) {
            line-height: 12px;
            font-size: 11px;
            color: #dbdbdb;
            text-shadow: 0 2px 4px rgba(133, 214, 0, 0.25); }
          #subjects .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #roulette .subject-block > .subject-services .subject-fix .subject span:nth-child(3), #prize_area .subject-block > .subject-services .subject-fix .subject span:nth-child(3) {
            margin-bottom: 5px; }

#prize .modal-content {
  background: url(../img/modal-bg.jpg) no-repeat top center;
  border: 0;
  box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.12);
  border-radius: 6px; }
  #prize .modal-content h4 {
    text-align: center;
    color: #f2f2f2;
    font-size: 35px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold; }
  #prize .modal-content #prize_area {
    text-align: center;
    padding: 50px 0; }
    #prize .modal-content #prize_area .subject-block {
      -webkit-transform: scale(1.25);
      transform: scale(1.25); }
      #prize .modal-content #prize_area .subject-block.orange {
        box-shadow: 0 0 23px -4px #f7e3a0; }
      #prize .modal-content #prize_area .subject-block.red {
        box-shadow: 0 0 23px -4px #fbabb8; }
      #prize .modal-content #prize_area .subject-block.purple {
        box-shadow: 0 0 23px -4px #fb9ed5; }
      #prize .modal-content #prize_area .subject-block.blue {
        box-shadow: 0 0 23px -4px #b2a9fa; }
      #prize .modal-content #prize_area .subject-block.military {
        box-shadow: 0 0 23px -4px #9ebffb; }
  #prize .modal-content .close {
    color: #FFFFFF; }
  #prize .modal-content p {
    font-size: 14px;
    color: #efecec;
    text-align: center; }

.modal-backdrop-blur {
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  -ms-filter: blur(5px);
  filter: blur(5px); }

#my_cases_area .opened-case {
  width: 100%;
  border-bottom: 1px solid #DDDDDD;
  padding: 10px 0; }
  #my_cases_area .opened-case .case-img {
    width: 100px;
    float: left; }
    #my_cases_area .opened-case .case-img img {
      width: 100%; }
  #my_cases_area .opened-case .case-info {
    width: calc(100% - 110px);
    float: right; }
    #my_cases_area .opened-case .case-info h3 {
      font-size: 17px;
      margin: 0; }
    #my_cases_area .opened-case .case-info .subject {
      display: block;
      width: 100%;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
      margin-top: 5px; }
  #my_cases_area .opened-case:last-child {
    border-bottom: 0; }

.case-banner {
  position: relative;
  width: 100%;
  background: #182C4F;
  border-radius: 4px;
  margin-bottom: 30px; }
  .case-banner a {
    padding: 25px 0;
    display: block;
    width: 100%;
    height: 100%;
    white-space: normal; }
  .case-banner h3 {
    font-weight: bold;
    line-height: 40px;
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
    color: #FFFFFF; }
  .case-banner p {
    color: #FFFFFF;
    font-weight: 500;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
    margin: 10px; }
  .case-banner img {
    height: 211px;
    width: 280px;
    display: block;
    margin-left: 11px;
    margin-bottom: -45px;
    margin-top: 15px; }

/* Лента последних открытий кейсов */
.cases-recent-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px 20px 10px;
}
.cases-recent-wrapper { position: relative; }
.cases-fade-left, .cases-fade-right {
  position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; z-index: 1;
}
.cases-fade-left { left: 0; background: linear-gradient(90deg, var(--bg-card) 0%, rgba(20,20,20,0) 100%); }
.cases-fade-right { right: 0; background: linear-gradient(270deg, var(--bg-card) 0%, rgba(20,20,20,0) 100%); }
.cases-scroll-left, .cases-scroll-right {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 60px; background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  z-index: 2; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s;
}
.cases-scroll-left.visible, .cases-scroll-right.visible { opacity: 1; visibility: visible; }
.cases-scroll-left { left: 6px; }
.cases-scroll-right { right: 6px; }
.cases-scroll-left:before, .cases-scroll-right:before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform-origin: center; opacity: .8;
}
.cases-scroll-left:before { transform: translate(-30%, -50%) rotate(-135deg); }
.cases-scroll-right:before { transform: translate(-70%, -50%) rotate(45deg); }
.cases-recent-header { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:15px; }
.cases-recent-header .left .section-title { margin: 0; }
.cases-recent-header .all-time { display: flex; align-items: center; gap: 8px; }

.cases-stats-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.cases-stats-block:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cases-icon { 
  color: #ff6b35; 
  animation: giftBounce 2s infinite; 
  font-size: 16px;
}

@keyframes giftBounce { 
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 
  40% { transform: translateY(-3px); } 
  60% { transform: translateY(-2px); } 
}

.stats-text {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 14px;
}

.stats-counter {
  background: rgba(215,31,44,0.2);
  color: var(--color-red);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: .5px;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 1px solid rgba(215,31,44,0.3);
}

.stats-counter.pulse { 
  animation: casesPulse 2.6s infinite; 
}

.cases-stats-block:hover .stats-counter { 
  background: rgba(215,31,44,0.3);
  border-color: rgba(215,31,44,0.5);
  transform: scale(1.05);
}

@keyframes casesPulse { 
  0%{ box-shadow: 0 0 0 0 rgba(215,31,44,.35);} 
  70%{ box-shadow: 0 0 0 10px rgba(215,31,44,0);} 
  100%{ box-shadow: 0 0 0 0 rgba(215,31,44,0);} 
}

.recent-cases-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 12px; overflow-x: auto; padding-bottom: 6px; user-select: none; }
.recent-cases-grid::-webkit-scrollbar { display: none; }
.recent-cases-grid { -ms-overflow-style: none; scrollbar-width: none; }
.recent-case-item { perspective: 1000px; }
.loading-item { 
    opacity: 0; 
    transform: translateX(50px) scale(0.8); 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.loaded-item { 
    opacity: 1; 
    transform: translateX(0) scale(1); 
}
.flip-inner {position: relative;width: 100%;height: 233px;transform-style: preserve-3d;transition: transform .5s;}
.flip-card:hover .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {position: absolute;inset: 0;backface-visibility: hidden;border-radius: 12px;border:1px solid rgba(255,255,255,0.06);background: var(--bg-card-light);overflow: hidden;display:flex;flex-direction: column;padding: 6px;transition: box-shadow .2s, border-color .2s;text-align: center;align-items: center;}
.flip-front .case-thumb img {width: 100px;pointer-events: none;margin: 0 auto;}
.flip-front .case-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    flex: 1;
    justify-content: space-evenly;
}
.flip-front .case-title { font-weight: 800; font-size: 13px; }
.flip-front .case-prize {
    font-size: 12px;
    color: #cfd2d6;
    line-height: 1.2;
    flex: 1;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    justify-content: center;
}
.flip-front .case-time { 
    color: var(--text-muted); 
    font-size: 11px; 
    margin-top: auto;
}

.rarity-orange .flip-front, .rarity-orange .flip-back { 
    border-top: 3px solid #ffbe0b;
    box-shadow: 0 0 20px rgba(255,190,11,0.15);
}
.rarity-red .flip-front, .rarity-red .flip-back { 
    border-top: 3px solid #d71f2c;
    box-shadow: 0 0 20px rgba(215,31,44,0.15);
}
.rarity-purple .flip-front, .rarity-purple .flip-back { 
    border-top: 3px solid #862b7c;
    box-shadow: 0 0 20px rgba(134,43,124,0.15);
}
.rarity-blue .flip-front, .rarity-blue .flip-back { 
    border-top: 3px solid #b2a9fa;
    box-shadow: 0 0 20px rgba(178,169,250,0.15);
}
.rarity-military .flip-front, .rarity-military .flip-back {
    border-top: 3px solid #457dff;
    box-shadow: 0 0 20px rgba(158,191,251,0.15);
}

.rarity-orange:hover .flip-front { border-top-color: #ffbe0b; box-shadow: 0 10px 24px rgba(255,190,11,0.25), 0 0 30px rgba(255,190,11,0.2); }
.rarity-red:hover .flip-front { border-top-color: #d71f2c; box-shadow: 0 10px 24px rgba(215,31,44,0.25), 0 0 30px rgba(215,31,44,0.2); }
.rarity-purple:hover .flip-front { border-top-color: #862b7c; box-shadow: 0 10px 24px rgba(134,43,124,0.25), 0 0 30px rgba(134,43,124,0.2); }
.rarity-blue:hover .flip-front { border-top-color: #b2a9fa; box-shadow: 0 10px 24px rgba(178,169,250,0.25), 0 0 30px rgba(178,169,250,0.2); }
.rarity-military:hover .flip-front { border-top-color: #9ebffb; box-shadow: 0 10px 24px rgba(158,191,251,0.25), 0 0 30px rgba(158,191,251,0.2); }

.recent-case-item:hover .flip-inner { transform: rotateY(180deg); transition-delay: 0.1s; }
.recent-case-item:hover .flip-front { 
    border-color: rgba(255,255,255,0.2); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.flip-back { transform: rotateY(180deg); align-items:center; justify-content:center; gap:10px; }
.flip-back .who-opened { font-size:12px; color: var(--text-muted); }
.flip-back .user { display:flex; flex-direction:column; align-items:center; gap:8px; color:#fff; text-decoration: none; transition: color 0.3s ease; }
.flip-back .user:hover { color: var(--color-red); }
.flip-back .user img { width:48px; height:48px; border-radius:50%; pointer-events: none; }
.flip-back .back-actions { margin-top: 8px; }
.flip-back .back-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}
.flip-back .back-actions .btn:hover {
    border-color: var(--color-red);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    background: var(--color-red);
    color: #fff;
}

.case-prize.orange { color: #ffbe0b; }
.case-prize.red { color: #d71f2c; }
.case-prize.purple { color: #862b7c; }
.case-prize.blue { color: #b2a9fa; }
.case-prize.military { color: #9ebffb; }