/* Sold-out cases remain browsable, including their contents and favourites. */
a.cb-case-sold-out .case-image,
a.cb-case-sold-out .bottom-elements,
a.cb-case-sold-out .title > span:not(.cb-case-labels),
a.cb-case-sold-out .counter {
  filter: grayscale(1);
}
a.cb-case-sold-out .case-image { opacity: .55; }
a.cb-case-sold-out .bottom-elements { opacity: .55; }

.container.caseBox #case-box-app .cb-case-sold-out-notice,
.container.caseBox #case-box-app[data-cb-case-sold-out="true"] .cb-case-sold-out-notice {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 350px;
  max-width: 100%;
  min-height: 100px;
  padding: 20px;
  margin: 0 auto;
  color: #f5f5f6;
  background: rgba(9, 8, 13, .55);
  font: 14px/1.4 "Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  text-align: center;
}
.container.caseBox #case-box-app[data-cb-case-sold-out="true"] .game-case {
  width: 220px;
  height: 220px;
}
.container.caseBox #case-box-app[data-cb-case-sold-out="true"] .game-case .case-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: none;
}
.container.caseBox #case-box-app[data-cb-case-sold-out="true"] .floor-glow {
  background: radial-gradient(circle, rgba(110, 110, 110, .14), transparent 70%);
}
@media (prefers-reduced-motion: reduce) {
  a.cb-case-sold-out img { animation: none !important; }
}

/* Suppress the retired case-odds footer in already exported client bundles. */
body:has(#case-box-app) .cb-rtp-odds { display: none !important; }

/* Paired legacy artwork keeps the same geometry in both availability states. */
body .container.caseBox #case-box-app .center-wrapper .stage-container:has(.game-case > .case-image ~ .case-image) {
  width: min(220px, 66vw);
  height: auto;
  aspect-ratio: 220 / 232;
  margin: 38px auto 0;
  display: block;
  transform: none;
  perspective: none;
}
body .container.caseBox #case-box-app .center-wrapper .stage-container:has(.game-case > .case-image ~ .case-image) .game-case {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
body .container.caseBox #case-box-app .center-wrapper .stage-container:has(.game-case > .case-image ~ .case-image) .case-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
}
body .container.caseBox #case-box-app .center-wrapper .stage-container:not(.disabled):has(.game-case > .case-image ~ .case-image) .case-image.animated {
  animation: slowmotion 10s ease infinite;
}
body .container.caseBox #case-box-app .center-wrapper .stage-container:has(.game-case > .case-image ~ .case-image) .floor-wrapper {
  width: min(350px, 96vw);
  height: auto;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 5px), calc(-50% - 10px));
}
body .container.caseBox #case-box-app .center-wrapper .stage-container:has(.game-case > .case-image ~ .case-image) .floor-wrapper > * { display: none; }
body .container.caseBox #case-box-app .center-wrapper .stage-container:has(.game-case > .case-image ~ .case-image) .floor-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/img/case-circle.png') center / contain no-repeat;
  animation: rotation 40s linear infinite;
}
body .container.caseBox #case-box-app .center-wrapper .stage-container.disabled .floor-wrapper::before {
  animation: none;
  filter: grayscale(1);
  opacity: .5;
}
@media (prefers-reduced-motion: reduce) {
  body .container.caseBox #case-box-app .center-wrapper .stage-container:has(.game-case > .case-image ~ .case-image) .case-image.animated,
  body .container.caseBox #case-box-app .center-wrapper .stage-container .floor-wrapper::before { animation: none; }
}



/* === Responsive Promo Code Layout (Banner + Managed Banner + Deposit Modal) === */
html body .promo-wrapper .promo-code {
  min-width: 210px;
  width: auto;
}
html body #promocode-holder.cb-live-promo .promo-code--button,
html body .promo-wrapper .promo-code--button {
  container-type: normal;
  box-sizing: border-box;
  min-width: 210px;
  width: max-content;
  max-width: 256px;
  min-height: 45px;
  height: 45px;
  padding: 1px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
}
html body #promocode-holder.cb-live-promo .promo-code--button .inner,
html body .promo-wrapper .promo-code--button .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  max-width: 100%;
  padding: 0 2px;
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
}
html body #promocode-holder.cb-live-promo-inactive .promo-code--button .inner {
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}
@media only screen and (max-width: 900px) and (min-width: 631px) {
  html body .promo-wrapper .promo-code {
    min-width: 192px;
    width: auto;
  }
  html body #promocode-holder.cb-live-promo .promo-code--button,
  html body .promo-wrapper .promo-code--button {
    min-width: 192px;
    max-width: 236px;
    min-height: 42px;
    height: 42px;
    padding: 1px 10px;
  }
  html body #promocode-holder.cb-live-promo .promo-code--button .inner,
  html body .promo-wrapper .promo-code--button .inner {
    font-size: 20px;
    letter-spacing: .7px;
  }
}
@media only screen and (max-width: 720px) {
  html body .promo-wrapper .promo-timer {
    display: none;
  }
}
@media only screen and (max-width: 630px) {
  html body .promo-wrapper {
    padding: 0 12px;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
  }
  html body .promo-wrapper .promo-info {
    transform: none;
    flex: 0 0 auto;
  }
  html body .promo-wrapper .promo-code {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 212px;
    align-items: center;
    gap: 4px;
  }
  html body #promocode-holder .promo-code--label,
  html body .promo-wrapper .promo-code--label {
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }
  html body #promocode-holder.cb-live-promo .promo-code--button,
  html body .promo-wrapper .point-btn.promo-code--button {
    width: min(100%, 194px);
    min-width: 140px;
    max-width: 194px;
    min-height: 40px;
    height: 40px;
    padding: 0 8px;
  }
  html body #promocode-holder.cb-live-promo .promo-code--button .inner,
  html body .promo-wrapper .point-btn.promo-code--button .inner {
    height: 100%;
    padding: 0 2px;
    font-size: 19px;
    letter-spacing: .5px;
    line-height: 1;
  }
}
@media only screen and (max-width: 365px) {
  html body .promo-wrapper {
    padding: 0 8px;
    gap: 6px;
  }
  html body .promo-wrapper .promo-info--card {
    width: 98px;
    height: 54px;
  }
  html body .promo-wrapper .promo-info--card .promo-info--label {
    font-size: 23px;
  }
  html body #promocode-holder.cb-live-promo .promo-code--button,
  html body .promo-wrapper .point-btn.promo-code--button {
    min-width: 120px;
  }
}
@media (max-width: 760px) {
  html body #cb-managed-promo .cb-banner-code-area {
    min-width: 0;
  }
  html body #cb-managed-promo .cb-banner-code {
    container-type: inline-size;
    max-width: 100%;
    padding: 0 8px;
    font-size: clamp(11px, 7.6cqw, 17px);
    letter-spacing: .015em;
    overflow: hidden;
  }
  html body .cb-payment-form {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 10px;
  }
  html body .cb-payment-field input {
    font-size: 16px;
    padding: 11px 38px 11px 12px;
  }
  html body .cb-payment-promo-field input#cb-payment-promo {
    font-size: 15px;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  html body .cb-payment-field svg,
  html body .cb-payment-field .cb-payment-rub {
    right: 11px;
  }
  html body .cb-payment-field svg {
    width: 20px;
    height: 20px;
  }
}

/* GTA 6 Theme & Serial Cases */
#linear-gradient-logo stop:nth-child(1) { stop-color: #e47f58 !important; }
#linear-gradient-logo stop:nth-child(2) { stop-color: #ec6686 !important; }
#linear-gradient-logo stop:nth-child(3) { stop-color: #f74cb4 !important; }
#linear-gradient-logo stop:nth-child(4) { stop-color: #b450be !important; }
#linear-gradient-logo stop:nth-child(5) { stop-color: #8054c8 !important; }
#linear-gradient-logo stop:nth-child(6) { stop-color: #007bff !important; }
header .wrapper .bg-wrap {
  background-image: url("/themes/gta6/img/bg.png");
  background-repeat: repeat-x;
}
.container.caseBox #case-box-app .case img.cb-case-theme-overlay,
.container.caseBox #case-box-app .case img.case-image.theme {
  position: absolute;
  left: -18px;
  top: -49px;
  width: 251px;
  height: auto;
  pointer-events: none;
  display: block !important;
}
.container.caseBox #case-box-app img.case-animated-circle,
.container.caseBox #case-box-app .circle__back > .animated > img {
  content: url("/themes/gta6/img/case-box/case-circle.png");
}
.homepage #caseList > a.top-leftStart-burst:before,
#caseList > a.top-leftStart-burst:before {
  border-top: 1px solid #f0f !important;
}
.homepage #caseList > a.top-leftStart-burst:after,
#caseList > a.top-leftStart-burst:after {
  border-bottom: 1px solid #fc0 !important;
}
.homepage #caseList > a.top-leftStart-burst .ui-border-element:before,
.homepage #caseList > a.top-leftStart-burst .ui-border-element:after,
#caseList > a.top-leftStart-burst .ui-border-element:before,
#caseList > a.top-leftStart-burst .ui-border-element:after {
  border-width: 1px !important;
  border-image: linear-gradient(to bottom, #ff00ff, #ffcc00) 1 !important;
}
.homepage #caseList > a:hover,
#caseList > a:hover {
  background-image: url("/themes/gta6/img/case-box/hover.jpg");
  background-size: cover;
  animation: cb-gta6-case-bg-opacity 2s;
}
.homepage #caseList > a .theme-overlay,
#caseList > a .theme-overlay {
  position: absolute;
  pointer-events: none;
}
.homepage #caseList > a .theme-overlay.theme-overlay-static,
#caseList > a .theme-overlay.theme-overlay-static {
  display: block !important;
  width: 251px;
  height: auto;
  left: -1px;
  top: -53px;
}
.homepage #caseList > a .theme-overlay.theme-overlay-hovered,
#caseList > a .theme-overlay.theme-overlay-hovered {
  display: none !important;
}
.homepage #caseList > a:hover .theme-overlay.theme-overlay-hovered,
#caseList > a:hover .theme-overlay.theme-overlay-hovered {
  display: block !important;
  position: absolute;
  width: 251px;
  height: auto;
  left: -1px;
  top: -53px;
}
@keyframes cb-gta6-case-bg-opacity {
  from { opacity: .2; }
  to { opacity: 1; }
}
@media only screen and (max-width: 768px) {
  .homepage #caseList > a:hover .theme-overlay.theme-overlay-hovered,
  .homepage #caseList > a .theme-overlay.theme-overlay-static,
  #caseList > a:hover .theme-overlay.theme-overlay-hovered,
  #caseList > a .theme-overlay.theme-overlay-static {
    left: 11px;
    top: -42px;
    width: 195.6659090909px;
  }
}
@media only screen and (max-width: 550px) {
  .homepage #caseList > a:hover .theme-overlay.theme-overlay-hovered,
  .homepage #caseList > a .theme-overlay.theme-overlay-static,
  #caseList > a:hover .theme-overlay.theme-overlay-hovered,
  #caseList > a .theme-overlay.theme-overlay-static {
    left: 17px;
    top: -41px;
    width: 184.9413636364px;
  }
}
@media only screen and (max-width: 440px) {
  .homepage #caseList > a:hover .theme-overlay.theme-overlay-hovered,
  .homepage #caseList > a .theme-overlay.theme-overlay-static,
  #caseList > a:hover .theme-overlay.theme-overlay-hovered,
  #caseList > a .theme-overlay.theme-overlay-static {
    left: -1px;
    top: -36px;
    width: 156.0763636364px;
  }
}

header .wrapper .logo a.logo-img {
  background: url("/themes/gta6/img/logo.svg") center / contain no-repeat !important;
}
header .wrapper .logo a.logo-img svg {
  opacity: 0 !important;
}

/* cb-native-polish-20261126 */
.cb-case-opening, .cb-game-actions, .cb-game-dialog, .cb-game-contract,
.cb-payment-overlay, .cb-payment-heading h2, .cb-payment-bcn-tooltip, .cb-payment-secondary,
.cb-pf-panel, .cb-pf-dialog, .cb-pf-tooltip, .cb-opening-toast, .cb-favorite-tooltip {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.cb-case-opening {
  border-radius: 3px !important;
  border-color: #232a3b !important;
}


/* Retired 10 serial cases (2026-11-27) */
a[href="/case/einstein"],a[href="/case/einstein/"],a[href="/case/mendeleyev"],a[href="/case/mendeleyev/"],a[href="/case/darwin"],a[href="/case/darwin/"],a[href="/case/hauss"],a[href="/case/hauss/"],a[href="/case/copernicus"],a[href="/case/copernicus/"],a[href="/case/jeangrey"],a[href="/case/jeangrey/"],a[href="/case/scorpio"],a[href="/case/scorpio/"],a[href="/case/punisher"],a[href="/case/punisher/"],a[href="/case/hulki"],a[href="/case/hulki/"],a[href="/case/spiderman"],a[href="/case/spiderman/"] {
  display: none !important;
}
