/* Dark Template surfaces for the public storefront. */
@font-face {
  font-family: Montserrat;
  src: url("../../vendor/montserrat/Montserrat-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html[data-site-template="pandora"] {
  --pd-accent: #ff5c5c;
  --pd-red: #ff5c5c;
  --pd-red-dark: #f33c3c;
  --pd-action-gradient: linear-gradient(90deg, #ff5c5c, #f33c3c);
}

html[data-site-template="pandora"] .navigation .menu-item-link:is(:hover, [aria-current="page"]) {
  background: #191c2273;
  border-color: var(--pd-line);
  color: var(--pd-text);
}

html[data-site-template="pandora"] .profile-balance {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
  font-variant-numeric: lining-nums tabular-nums;
  color: #c7cbd3;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-site-template="pandora"] .navigation .logo img {
    transition: transform .22s ease, filter .22s ease;
  }
  html[data-site-template="pandora"] .navigation .logo a:is(:hover, :focus-visible) img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 6px #0007);
  }
}

@media (min-width: 801px) {
  html[data-site-template="pandora"] .pandora-sidebar-inner {
    box-sizing: border-box;
    min-height: calc(100dvh - 40px);
    padding: 24px 12px 18px;
    gap: 16px;
    background: #16171a;
    background-image: linear-gradient(180deg, #141519d9, #151619f5 23%, #151619ed 53%, #1516198c 80%, #151619f5),
      var(--dark-sidebar-image, url("../../img/bg.png"));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  html[data-site-template="pandora"] .navigation .logo {
    margin: 0;
    padding: 5px 8px 19px;
  }

  html[data-site-template="pandora"] .navigation .logo img {
    width: min(100%, 170px);
    height: 52px;
  }

  html[data-site-template="pandora"] .navigation .menu {
    gap: 4px;
    margin: 0 0 auto;
  }

  html[data-site-template="pandora"] .navigation .menu-item-link {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  html[data-site-template="pandora"] .sidebar-account .profile-link {
    background: #17181be8;
    border-color: #48494e;
  }

  html[data-site-template="pandora"] .sidebar-account .profile-link::after {
    content: "";
    flex: 0 0 7px;
    height: 7px;
    margin: 0 4px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
  }
}

html[data-site-template="pandora"] .mobile-nav-actions .dark-mobile-profile {
  width: 100%;
  justify-content: flex-start;
}

html[data-site-template="pandora"] .dark-mobile-profile .profile-info {
  display: grid;
  flex: 1;
  text-align: left;
}

html[data-site-template="pandora"] .giveaway-strip-wrapper {
  margin: 0 0 10px;
  padding: 9px 11px;
  background: #171a2080;
  border-radius: 10px;
}

html[data-site-template="pandora"] .giveaway-strip-header {
  margin-bottom: 7px;
  color: #c2c5ce;
}

html[data-site-template="pandora"] .giveaway-strip-track {
  margin-top: 0;
  padding-block: 3px;
}

html[data-site-template="pandora"] .gs-card {
  flex-basis: clamp(168px, 24vw, 190px);
  border-color: var(--pd-line);
  background: #18191fb3;
  border-radius: 9px;
  backdrop-filter: none;
}

html[data-site-template="pandora"] .gs-card:hover {
  border-color: #50535c;
  box-shadow: none;
  transform: none;
}

html[data-site-template="pandora"] .gs-card-img-wrap { height: 76px; border-radius: 8px 8px 0 0; }
html[data-site-template="pandora"] .gs-card-img { object-fit: contain; }
html[data-site-template="pandora"] .gs-card-body { padding: 8px 9px; gap: 5px; }
html[data-site-template="pandora"] .gs-progress-label { flex-wrap: wrap; gap: 2px 6px; }
html[data-site-template="pandora"] :is(.gs-join-btn, .gs-joined-badge) { padding-block: 7px; }

html[data-site-template="pandora"] .guest-protected-content > .banner {
  margin-bottom: 11px;
  border-color: #45464c;
  border-radius: 12px;
}

html[data-site-template="pandora"] .server-monitoring {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

html[data-site-template="pandora"] .server-monitoring .server-status-box {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 68px;
  padding: 12px 16px 14px;
  border: 1px solid #3a3b41;
  border-radius: 10px;
  background: linear-gradient(110deg, #24252a, #1a1b1e);
}

html[data-site-template="pandora"] .server-monitoring .server-status-box[data-map-background] {
  background-image: linear-gradient(90deg, #18191d45, #1b1c20 24%, #1a1b1e 100%), var(--monitor-map-photo);
  background-size: 100% 100%, min(34%, 340px) auto;
  background-position: left center;
  background-repeat: no-repeat;
}

html[data-site-template="pandora"] .server-monitoring .server-total-box {
  justify-self: end;
  max-width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
}

html[data-site-template="pandora"] .server-total-box::after { display: none; }
html[data-site-template="pandora"] .total-online-count { font-size: 14px; }

html[data-site-template="pandora"] .server-info {
  grid-template-columns: minmax(0, 1fr) minmax(100px, auto) minmax(0, auto);
  gap: 8px 18px;
}

html[data-site-template="pandora"] .server-info-name {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 750;
  overflow-wrap: anywhere;
}

html[data-site-template="pandora"] .server-info-online,
html[data-site-template="pandora"] .server-info-map-time {
  grid-row: 1;
  margin: 0;
  color: #d4d5dc;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 500;
  line-height: 1.45;
}

html[data-site-template="pandora"] .server-info-map-time {
  grid-column: 3;
  padding-left: 12px;
  border-left: 1px solid #4c4d53;
}

html[data-site-template="pandora"] .server-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ffffff40;
  border-radius: 10px;
  background: #ffffff14;
  color: #fff;
}

html[data-site-template="pandora"] .server-play svg { width: 17px; height: 17px; }
html[data-site-template="pandora"] .server-play:hover { background: #ffffff1f; }
html[data-site-template="pandora"] .server-monitoring .server-load-track { height: 2px; background: #ffffff12; }

html[data-site-template="pandora"] .pandora-catalog-toolbar .pandora-search {
  box-sizing: border-box;
  flex: 0 1 240px;
  min-height: 48px;
  gap: 9px;
  padding: 0 12px;
  margin-left: auto;
  border-color: #494a50;
  border-radius: 8px;
  background: #1d1e22;
}

html[data-site-template="pandora"] .pandora-catalog-toolbar .pandora-search input[type="search"] {
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  box-shadow: none;
  font: inherit;
}

html[data-site-template="pandora"] .pandora-catalog-toolbar .pandora-search:focus-within { border-color: #747e8d; }

html[data-site-template="pandora"] .pandora-categories {
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 10px;
  border-bottom: 1px solid #3b3c42;
  overflow: visible;
}

html[data-site-template="pandora"] .pandora-category {
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #c4c5cc;
  white-space: nowrap;
}

html[data-site-template="pandora"] .pandora-category:is(:hover, .is-active) {
  border-color: transparent;
  background: var(--pd-action-gradient) center bottom / 100% 2px no-repeat,
    linear-gradient(transparent, #db4b5314);
  color: var(--pd-text);
}

html[data-site-template="pandora"] .pandora-category.is-active i { color: var(--pd-accent); }
html[data-site-template="pandora"] .pandora-category i { font-size: 15px; }
html[data-site-template="pandora"] .pandora-category-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}
html[data-site-template="pandora"] .pandora-categories--images {
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 0;
}
html[data-site-template="pandora"] .pandora-categories--images .pandora-category {
  position: relative;
  isolation: isolate;
  flex: 1 1 164px;
  min-height: 104px;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
  overflow: hidden;
  white-space: normal;
  text-align: left;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: #191c2266;
}
html[data-site-template="pandora"] .pandora-categories--images .pandora-category:is(:hover, .is-active) {
  border-color: #a5a7af;
  background: #191c2280;
}
html[data-site-template="pandora"] .pandora-categories--images .pandora-category-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
html[data-site-template="pandora"] .pandora-categories--images .pandora-category:has(.pandora-category-background) .pandora-category-copy {
  margin: -10px;
  width: calc(100% + 20px);
  padding: 22px 10px 10px;
  background: linear-gradient(transparent, #000b);
  color: #fff;
  text-shadow: 0 1px 3px #000;
}
html[data-site-template="pandora"] .pandora-catalog-toolbar { margin-bottom: 14px; gap: 8px; }

html[data-site-template="pandora"] .pandora-card {
  min-height: 0;
  border-color: #3b3c43;
  border-radius: 11px;
  background: linear-gradient(#25262b, #1b1c20 80%);
}

html[data-site-template="pandora"] .pandora-card__media {
  height: auto;
  aspect-ratio: 5 / 3;
  background: radial-gradient(ellipse at 50% 38%, #45494e, #292c31 67%, #25262a);
}

html[data-site-template="pandora"] .pandora-card .product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center top;
}
html[data-site-template="pandora"] .pandora-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(transparent, #232429);
  pointer-events: none;
}

html[data-site-template="pandora"] #productModal > .modal-content {
  grid-template-rows: minmax(0, 1fr);
}

html[data-site-template="pandora"] #productModal #modalImageContainer {
  align-items: center;
  padding: 24px;
  min-height: 0;
}

html[data-site-template="pandora"] #productModal #modalImageWrap {
  min-height: 0;
  aspect-ratio: auto;
}

html[data-site-template="pandora"] #productModal #modalImage {
  height: auto!important;
  max-height: 65dvh;
}

html[data-site-template="pandora"] #productModal #modalImageContainer.has-opaque-image { padding: 0; }
html[data-site-template="pandora"] #productModal .has-opaque-image #modalImageWrap {
  position: absolute;
  inset: 0;
  height: 100%!important;
  border-radius: 0;
}
html[data-site-template="pandora"] #productModal .has-opaque-image #modalImage {
  height: 100%!important;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

html[data-site-template="pandora"] #productModal .pandora-product-details {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

html[data-site-template="pandora"] #productModal .pandora-product-details > * { flex-shrink: 0; }

html[data-site-template="pandora"] #productModal .bundle-choice-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-height: 40dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 2px;
}

html[data-site-template="pandora"] #productModal:has(.bundle-choice:not([hidden])) > .modal-content {
  width: min(1180px, 100%);
  max-width: 1180px;
}
html[data-site-template="pandora"] #productModal .bundle-choice { margin-top: 0; padding: 12px; }
html[data-site-template="pandora"] #productModal .bundle-choice h3 { margin-bottom: 10px; font-size: 16px; }
html[data-site-template="pandora"] #productModal .bundle-choice-row { padding: 10px 8px; gap: 6px; }
html[data-site-template="pandora"] #productModal .bundle-choice-row img { height: 56px; }
html[data-site-template="pandora"] #productModal .bundle-choice-row span { font-size: 11px; line-height: 1.35; }
html[data-site-template="pandora"] #productModal .bundle-choice-row strong { font-size: 12px; }

@media (min-width: 701px) {
  html[data-site-template="pandora"] #productModal:has(.bundle-choice:not([hidden])) > .modal-content {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 700px) {
  html[data-site-template="pandora"] #productModal > .modal-content {
    grid-template-rows: auto auto;
  }
  html[data-site-template="pandora"] #productModal .pandora-product-details {
    overflow-y: visible;
  }
  html[data-site-template="pandora"] #productModal #modalImage { max-height: 35dvh; }
  html[data-site-template="pandora"] #productModal .has-opaque-image #modalImageWrap {
    position: relative;
    inset: auto;
    height: auto!important;
  }
  html[data-site-template="pandora"] #productModal .has-opaque-image #modalImage {
    height: auto!important;
    max-height: 35dvh;
    object-fit: contain;
  }
  html[data-site-template="pandora"] #productModal .bundle-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html[data-site-template="pandora"] .pandora-card__body { gap: 5px; padding: 11px 13px; }
html[data-site-template="pandora"] .pandora-product-title { font-size: clamp(14px, 1.3vw, 19px); }
html[data-site-template="pandora"] .pandora-card__description { color: #c3c4ca; }
html[data-site-template="pandora"] .pandora-category-label {
  order: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c3c4ca;
}

html[data-site-template="pandora"] .pandora-card__description { order: 1; }
html[data-site-template="pandora"] .pandora-card__description:empty { display: none; }
html[data-site-template="pandora"] .pandora-card__footer { order: 2; padding-top: 8px; border-color: #38393e; }
html[data-site-template="pandora"] .pandora-price strong { font-size: clamp(15px, 1.5vw, 22px); }
html[data-site-template="pandora"] .pandora-card[data-playtime-product-id] .pandora-price strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

html[data-site-template="pandora"] :is(.btn-primary, .auth-submit, .popolnenie-button, .try-luck-button, .try-luck-button-free, .rpl-btn--confirm, .pirate-link-btn, .ref-mini-apply, .sub-modal-btn-confirm, .transfer-button),
html[data-site-template="pandora"] #productModal .purchase-button:not(.purchase-button--gift),
html[data-site-template="pandora"] #depositModal .payment-button:not(:disabled) {
  background: var(--pd-action-gradient);
  border-color: transparent;
  color: #fff;
}

html[data-site-template="pandora"][data-page="profile"] .info-row {
  justify-content: flex-start;
  gap: 6px 10px;
}

html[data-site-template="pandora"][data-page="profile"] .info-row :is(.value, .info-value) {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}

html[data-site-template="pandora"][data-page="profile"] .info-details,
html[data-site-template="pandora"][data-page="roulette"] .roulette-section {
  font-family: Montserrat, Arial, sans-serif;
}

html[data-site-template="pandora"][data-page="roulette"] .roulette-actions {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  align-items: stretch;
  gap: 12px;
  max-width: 780px;
  margin: 22px auto 24px;
}

html[data-site-template="pandora"][data-page="roulette"] .roulette-actions .global-server-select-custom {
  min-width: 0;
  width: 100%;
  margin: 0;
}

html[data-site-template="pandora"][data-page="roulette"] .roulette-actions :is(.custom-select, .try-luck-button, .try-luck-button-free, #openWinsBtn) {
  box-sizing: border-box;
  min-height: 58px;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit;
}

html[data-site-template="pandora"][data-page="roulette"] .roulette-actions :is(.try-luck-button, .try-luck-button-free, #openWinsBtn) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #fff;
  background: var(--pd-action-gradient);
  border: 1px solid transparent;
}

html[data-site-template="pandora"][data-page="roulette"] .roulette-actions .button-price { color: #942929; }

html[data-site-template="pandora"][data-page="roulette"] :is(.roulette-images-wrapper, .priz-modal__content) {
  border-color: var(--pd-line);
  background: var(--pd-panel);
}

html[data-site-template="pandora"][data-page="roulette"] .roulette-images {
  margin-bottom: 0;
  /* Offset even layouts by half a slot, independently of the spin transform. */
  translate: var(--roulette-idle-offset, 0px) 0;
}

html[data-site-template="pandora"][data-page="roulette"] .roulette-item { min-width: 0; }
html[data-site-template="pandora"][data-page="roulette"] .roulette-item-name { max-width: 100%; }

html[data-site-template="pandora"][data-page="roulette"] :is(.roulette-item, .roulette-item img, .prize-card img, .win-card img, #winInfo img) {
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-site-template="pandora"][data-page="roulette"] .prizes-list { padding: 16px; }
html[data-site-template="pandora"][data-page="roulette"] .prizes-title { margin: 0 0 14px; }
html[data-site-template="pandora"][data-page="roulette"] .prizes-container {
  margin: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}
html[data-site-template="pandora"][data-page="roulette"] .prize-card {
  min-width: min(150px, 100%);
  border-color: var(--pd-line);
  background: var(--pd-panel-raised);
  box-shadow: none;
}
html[data-site-template="pandora"][data-page="roulette"] .prize-card.rare-prize::after { content: none; }

html[data-site-template="pandora"][data-page="roulette"] :is(#winModal, #winsModal) :is(#claimBtn, .claim-btn, .win-settlement-btn) {
  min-height: 58px;
  border-radius: 8px;
  color: #fff;
  background: var(--pd-action-gradient);
  border-color: transparent;
}

html[data-site-template="pandora"][data-page="roulette"] :is(.roulette-actions, #winModal, #winsModal) :is(.try-luck-button, .try-luck-button-free, #openWinsBtn, #claimBtn, .claim-btn, .win-settlement-btn):hover:not(:disabled) {
  filter: brightness(1.1);
  transform: none;
}

@media (max-width: 700px) {
  html[data-site-template="pandora"][data-page="roulette"] .roulette-actions { grid-auto-flow: row; }
}

@media (min-width: 1061px) {
  html[data-site-template="pandora"] .server-status-box[data-map-background] .server-info { padding-left: clamp(85px, 12vw, 210px); }
}

@media (max-width: 1060px) {
  html[data-site-template="pandora"] .server-info { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 9px; }
  html[data-site-template="pandora"] .server-info-map-time { grid-column: 1 / -1; grid-row: 2; padding: 0; border: 0; }
  html[data-site-template="pandora"] .server-monitoring .server-status-box[data-map-background] {
    background-image: linear-gradient(90deg, #1b1c20d9, #1a1b1e 60%), var(--monitor-map-photo);
  }
}

@media (max-width: 800px) {
  html[data-site-template="pandora"] .server-monitoring .server-status-box[data-map-background] {
    background-image: linear-gradient(90deg, #1b1c208c, #1a1b1e 60%), var(--monitor-map-photo);
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 520px) {
  html[data-site-template="pandora"] .guest-protected-content > .banner { min-height: 132px; }
  html[data-site-template="pandora"] .pandora-catalog-controls .pandora-catalog-toolbar .pandora-search {
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }
  html[data-site-template="pandora"] .server-monitoring .server-status-box { padding-inline: 10px; }
}
