.betsoft-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;

  /* Blocking backdrop: while a dialog is shown the overlay must swallow every
     user action so nothing reaches the game canvas underneath (e.g. spamming
     SPIN through an FRB-finished dialog). It sits above the canvas (z-index),
     captures pointer input, and kills touch gestures / text selection. */
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.betsoft-alert-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 410px;
  min-height: 230px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
}

.betsoft-alert-title {
  font-size: 24px;
  font-weight: bold;
}

.betsoft-alert-text {
  font-size: 18px;
  line-height: 1.5;
  /* Multi-line dialog texts (e.g. FRB launch greeting + rounds counter). */
  white-space: pre-line;
}

.betsoft-alert-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.betsoft-alert-button {
  padding: 10px 36px;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  background: #00fd67;
  border: 1px solid #00d858;
  border-radius: 4px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

/* Icon buttons (refresh balance). The icon is an inline SVG, so centering is
   pure geometry — no font metrics involved — and `align-self` keeps the button
   the same height as the word buttons standing next to it. */
.betsoft-alert-button--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 24px;
}

.betsoft-alert-button--icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.betsoft-alert-button:hover {
  background: #00d858;
  border-color: #00b349;
}

.betsoft-alert-button--loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}

.betsoft-alert-button--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: betsoft-btn-spin 0.6s linear infinite;
}

@keyframes betsoft-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* RC-specific overrides on top of betsoft-alert.css (compound selectors win over
   the base single-class rules regardless of load order). RC needs its three
   buttons on one row (reference layout), so widen the dialog and disable wrap. */
.betsoft-alert-dialog.betsoft-rc-dialog {
  width: auto;
  max-width: 640px;
}

.betsoft-alert-buttons.betsoft-rc-buttons {
  flex-wrap: nowrap;
}

/* Equal-width buttons; long labels ("Confirm and Keep") wrap to two lines. */
.betsoft-alert-buttons.betsoft-rc-buttons .betsoft-alert-button {
  flex: 1 1 0;
  white-space: normal;
}

/* Custom-dialog message wraps within the dialog even without explicit <br>. */
.betsoft-rc-custom-text {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Interval Selection carousel (‹ 16 minutes 40 seconds ›). */
.betsoft-rc-interval {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #fff;
  font-family: Arial, sans-serif;
}

.betsoft-rc-interval-value {
  min-width: 180px;
  text-align: center;
  font-size: 16px;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  margin-top: 4px;
}

.betsoft-rc-interval-arrow {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
  /* Stretch to the value box height and center the glyph so the arrows sit on the
     same line as the text instead of dropping below the baseline. */
  display: flex;
  align-items: center;
  align-self: stretch;
}

.alert-wrapper {
  display: flex;
  z-index: 1;
}

.alert-overlay {
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2;
}

.alert-wrapper,
.alert-overlay {
  position: fixed;
  height: 100%;
  width: 100%;
}

.alert {
  --paytable-border-radius: 20px;
  display: flex;
  flex-direction: column;
  background-color: #252525;
  border-radius: var(--paytable-border-radius);
  color: #fff;
  margin: auto;
  padding: 0 4px 4px;
  z-index: 3;
  position: relative;
  min-width: 256px;
  max-width: 386px;
  min-height: 112px;
  max-height: 186px;
}

.alert-header {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding: 6px 0;
}

.alert-close {
  cursor: pointer;
  height: 16px;
  width: 16px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.alert-close svg {
  fill: #fff;
  height: 100%;
  width: 100%;
}

.alert-content {
  background-color: #000;
  border-bottom-left-radius: var(--paytable-border-radius);
  border-bottom-right-radius: var(--paytable-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: 1;
  padding: 16px;
}

.paytable-wrapper {
  display: flex;
  z-index: 1;
}

.paytable-overlay {
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2;
}

.paytable-wrapper,
.paytable-overlay {
  position: fixed;
  height: 100%;
  width: 100%;
}

.paytable {
  --paytable-border-radius: 20px;
  --paytable-icon-width: 92px;

  background-color: #252525;
  border-radius: var(--paytable-border-radius);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr 72px;
  grid-template-rows: 32px auto;
  margin: auto;
  padding: 0 4px 4px;
  height: 80vh;
  width: 80vw;
  max-width: 760px;
  z-index: 3;
  position: relative;
}

.paytable-radio {
  display: none;
}

.paytable-tab {
  align-items: center;
  display: flex;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  word-break: break-word;
}

.paytable-radio:checked+.paytable-tab {
  color: #fcfc53;
}

.paytable-actions {
  align-items: center;
  display: flex;
  justify-content: space-around;
  right: 10px;
  top: 10px;
  order: 1;
}

.paytable-icon {
  cursor: pointer;
  height: 16px;
  width: 16px;
}

.paytable-icon.is-hidden {
  display: none;
}

.paytable-icon svg {
  fill: #fff;
  height: 100%;
  width: 100%;
}

.paytable-icon:hover svg {
  fill: #fcfc53;
}

.paytable-content {
  background-color: #000;
  border-bottom-left-radius: var(--paytable-border-radius);
  border-bottom-right-radius: var(--paytable-border-radius);
  display: none;
  padding: 32px;
  overflow: auto;
  grid-column: span 3;
  order: 99;
}

.paytable-radio:checked+.paytable-tab+.paytable-content {
  display: block;
}

.paytable-content {
  scrollbar-color: #6e6e71 #1a1a1f;
  scrollbar-width: thin;
}

.paytable-content::-webkit-scrollbar-track {
  background-color: #1a1a1f;
}

.paytable-content::-webkit-scrollbar {
  width: 4px;
  height: 4px;
  border-radius: 10px;
  background-color: #1a1a1f;
}

.paytable-content::-webkit-scrollbar-thumb {
  background-color: #6e6e71;
}

.paytable-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paytable-item {
  align-items: center;
  display: flex;
  flex: 1;
}

.item-left {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-right: 8px;
}

.item-image-wrapper {
  display: flex;
  margin-left: -12px;
  margin-right: 8px;
  height: 92px;
  width: 120px;
}

.item-image {
  height: auto;
  width: auto;
  max-height: 80px;
  max-width: 100%;
  margin: auto;
}

.item-content {
  flex: 1;
}

.item-image-wrapper+.item-content .item-title {
  color: #ffc000;
  text-align: left;
}

.item-title {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.item-description-list {
  list-style: disc;
  padding-left: 14px;
}

.item-description-list:not(:last-child) {
  margin-bottom: 8px;
}

.item-description {
  font-size: 14px;
}

.item-description,
.item-payout {
  font-size: 16px;
}

.item-payout {
  white-space: nowrap;
}

.item-payout-count {
  color: #ffc000;
  margin-right: 4px;
}

.item-separator {
  background-color: #666;
  margin: 12px 0;
  height: 1px;
}

.item-separator:last-child {
  display: none;
}

.paylines-block {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 454px;
  margin: 12px auto auto;
}

.slot-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.slot-cell {
  background-color: #fff;
  border: 1px solid #ccc;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
}

.slot-payline {
  background-color: rgb(19 19 19);
}

@media (max-width: 980px) {
  .paytable {
    padding: 0;
    height: 100%;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr 1fr 112px;
    grid-template-rows: 64px auto;

    --paytable-border-radius: 0;
  }

  .paytable-icon {
    height: 22px;
    width: 22px;
  }

  .item-left {
    margin-right: 12px;
  }

  .item-title,
  .item-description,
  .item-payout {
    font-size: 18px;
  }

  .item-image-wrapper {
    margin-right: 0;
    height: 134px;
    width: 134px;
  }

  .paylines-block {
    max-width: 390px;
  }

  .slot-cell {
    height: 12px;
    width: 12px;
  }
}

@media (max-width: 570px) {
  .paytable-close {
    right: 4px;
  }
}
.top-canvas-node {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.top-canvas-panel {
  height: 100%;
}

.canvas-node {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;

  /* QA-1156: smooth downscale of the high-res backbuffer to the display size.
     'pixelated' disabled the smoothing and produced aliased output on small windows. */
  image-rendering: auto;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;
  background-color: #000000;

  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

