* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  color: #f8f4e8;
  background:
    linear-gradient(rgba(10, 1, 18, 0.08), rgba(10, 1, 18, 0.08)),
    url("/assets/hud-ui/hall-background.png") center / cover fixed;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow: hidden;
}

button,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#app,
#pixi-container {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

#pixi-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-links {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(100% - 24px, 360px);
  padding: 0;
  pointer-events: auto;
}

.legal-links a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 207, 105, 0.42);
  border-radius: 6px;
  background: rgba(15, 8, 14, 0.86);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
  color: #f6e8c8;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  border-color: rgba(255, 207, 105, 0.72);
  background: rgba(48, 28, 20, 0.92);
  color: #ffcf69;
  outline: none;
}

.account-bar {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 38px;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(255, 207, 105, 0.34);
  border-radius: 8px;
  background: rgba(15, 8, 14, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.account-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-kind {
  color: #ffcf69;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-auth-provider {
  max-width: 190px;
  overflow: hidden;
  color: #fff7dd;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-bar[data-auth-busy="true"] {
  pointer-events: none;
  opacity: 0.72;
}

.bonus-panel {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10;
  width: min(100%, 320px);
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 207, 105, 0.34);
  border-radius: 8px;
  background: rgba(15, 8, 14, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.bonus-panel-title {
  margin: 0;
  color: #ffcf69;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bonus-panel-status,
.bonus-panel-error {
  margin: 0;
  color: #f0e6d2;
  font-size: 0.78rem;
}

.bonus-panel-error {
  color: #ffd6d6;
}

.bonus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bonus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 207, 105, 0.18);
  border-radius: 8px;
  background: rgba(22, 11, 20, 0.72);
}

.bonus-item-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bonus-item-title {
  color: #fff7dd;
  font-size: 0.82rem;
  font-weight: 700;
}

.bonus-item-amount {
  color: #38ffa4;
  font-size: 0.78rem;
  font-weight: 700;
}

.bonus-item-state {
  color: #c9b8a0;
  font-size: 0.72rem;
}

.bonus-claim-button {
  min-width: 72px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 207, 105, 0.42);
  border-radius: 8px;
  background: rgba(143, 95, 18, 0.92);
  color: #fff7dd;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.bonus-claim-button:hover:not(:disabled) {
  background: rgba(175, 118, 24, 0.96);
}

.bonus-claim-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.daily-wheel-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  width: min(100%, 240px);
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 207, 105, 0.34);
  border-radius: 8px;
  background: rgba(15, 8, 14, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.daily-wheel-panel-title {
  margin: 0;
  color: #ffcf69;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.daily-wheel-panel-status {
  margin: 0;
  color: #f0e6d2;
  font-size: 0.78rem;
}

.daily-wheel-panel-error {
  margin: 0;
  color: #ffd6d6;
  font-size: 0.76rem;
}

.daily-wheel-open-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 207, 105, 0.42);
  border-radius: 8px;
  background: rgba(143, 95, 18, 0.92);
  color: #fff7dd;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.daily-wheel-open-button:hover:not(:disabled) {
  background: rgba(175, 118, 24, 0.96);
}

.daily-wheel-open-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.quest-panel {
  position: fixed;
  right: 14px;
  bottom: 230px;
  z-index: 10;
  width: min(100%, 240px);
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(143, 208, 255, 0.34);
  border-radius: 8px;
  background: rgba(15, 8, 14, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.quest-panel-title {
  margin: 0;
  color: #8fd0ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quest-panel-status {
  margin: 0;
  color: #f0e6d2;
  font-size: 0.78rem;
}

.quest-panel-claimable {
  margin: 0;
  color: #38ffa4;
  font-size: 0.78rem;
  font-weight: 700;
}

.quest-panel-error {
  margin: 0;
  color: #ffd6d6;
  font-size: 0.76rem;
}

.quest-open-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(143, 208, 255, 0.42);
  border-radius: 8px;
  background: rgba(40, 80, 120, 0.92);
  color: #f0f7ff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.quest-open-button:hover:not(:disabled) {
  background: rgba(54, 104, 150, 0.96);
}

.quest-open-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-button,
.logout-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 207, 105, 0.42);
  border-radius: 8px;
  background: rgba(143, 95, 18, 0.92);
  color: #fff7dd;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.login-button:hover:not(:disabled),
.logout-button:hover {
  background: rgba(175, 118, 24, 0.96);
}

.login-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-login-dom-bridge {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}

.auth-login-dom-bridge-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 360px);
  padding: 20px;
  border: 1px solid rgba(255, 207, 105, 0.36);
  border-radius: 12px;
  background: rgba(15, 8, 14, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.auth-login-dom-bridge-title {
  margin: 0;
  color: #ffcf69;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.auth-login-dom-bridge-button-host {
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.auth-login-dom-bridge-cancel {
  min-height: 38px;
  border: 1px solid rgba(141, 122, 102, 0.8);
  border-radius: 8px;
  background: rgba(42, 26, 36, 0.96);
  color: #f0e6d2;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.google-sign-in-wrap,
.facebook-sign-in-wrap {
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.account-error {
  max-width: 240px;
  color: #ffd6d6;
  font-size: 0.72rem;
  text-align: right;
}

.slot-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 16px;
  box-sizing: border-box;
}

.slot-selector {
  position: fixed;
  right: 12px;
  bottom: 8px;
  left: 12px;
  z-index: 40;
  width: min(calc(100vw - 24px), var(--slot-panel-width, 636px));
  max-height: min(22vh, 126px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 207, 105, 0.28);
  border-radius: 8px;
  background: rgba(15, 8, 14, 0.88);
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
  transition:
    transform 300ms cubic-bezier(0.2, 0.78, 0.22, 1),
    opacity 180ms ease;
}

.slot-selector[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 50;
}

.game-shell--slot-selector-open .slot-selector[data-open="true"] {
  z-index: 50;
}

.slot-selector__header {
  display: none;
}

.slot-selector__status {
  position: absolute;
  top: 5px;
  right: 8px;
  color: #d8c7a0;
  font-size: 0.72rem;
}

.slot-selector__list {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.slot-selector__item {
  flex: 0 0 auto;
  width: 84px;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 5px;
  border: 1px solid rgba(255, 207, 105, 0.22);
  border-radius: 8px;
  background: rgba(28, 16, 24, 0.92);
  color: #f6e8c8;
  cursor: pointer;
}

.slot-selector__item[data-selected="true"] {
  border-color: rgba(255, 207, 105, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 207, 105, 0.35);
}

.slot-selector__item:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.slot-selector__thumb {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
}

.slot-selector__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-selector__fallback {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffcf69;
}

.slot-selector__label {
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
}

.control-panel {
  width: min(100%, var(--slot-panel-width, 636px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 207, 105, 0.36);
  border-radius: 8px;
  background: rgba(15, 8, 14, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.slot-shell[data-popup-blocking="true"] .control-panel {
  pointer-events: none;
  opacity: 0.72;
}

.control-summary,
.control-actions,
.bet-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-summary,
.control-actions {
  justify-content: space-between;
}

.player-block,
.win-block,
.balance-block,
.currency-block {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-block,
.win-block,
.currency-block,
.lines-display,
.total-bet,
.control-field {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.label {
  color: #ffcf69;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.currency-block strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.google-sign-in {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 207, 105, 0.44);
  border-radius: 6px;
  color: #fff7dd;
  background: #2a111a;
  cursor: pointer;
}

.google-sign-in:hover {
  border-color: rgba(255, 207, 105, 0.72);
}

.google-sign-in:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.facebook-sign-in {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: #1877f2;
  cursor: pointer;
  font-weight: 700;
}

.facebook-sign-in:hover:not(:disabled) {
  background: #166fe5;
}

.facebook-sign-in:disabled {
  cursor: wait;
  opacity: 0.68;
}

.logout-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 207, 105, 0.44);
  border-radius: 6px;
  color: #fff7dd;
  background: #2a111a;
  cursor: pointer;
  font-weight: 700;
}

.logout-button:hover {
  border-color: rgba(255, 207, 105, 0.72);
  background: #3a1722;
}

.coin-icon {
  width: 36px;
  height: 20px;
  object-fit: contain;
}

.coin-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffcf69;
  font-size: 1rem;
}

.stage-wrap {
  position: relative;
  width: var(--slot-stage-width, 636px);
  height: var(--slot-stage-height, 417px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transform-origin: top center;
}

.stage-wrap canvas {
  display: block;
}

.bonus-action-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(255, 207, 105, 0.42);
  border-radius: 8px;
  background: rgba(13, 8, 16, 0.9);
  color: #fff7dd;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
}

.bonus-action-panel__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.84rem;
}

.bonus-action-panel__kind {
  color: #ffcf69;
  font-weight: 800;
}

.bonus-action-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.bonus-action-panel__button {
  min-width: 96px;
  min-height: 36px;
  border: 1px solid rgba(255, 207, 105, 0.6);
  border-radius: 6px;
  background: #ffcf69;
  color: #231116;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.bonus-action-panel__button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.bonus-action-panel__error {
  color: #ffd6d6;
  font-size: 0.78rem;
  text-align: center;
}

.ads-rewards-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(8, 10, 16, 0.72);
}

.ads-reward-card {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  width: min(100%, 360px);
  padding: 8px;
  border: 1px solid rgba(130, 205, 255, 0.38);
  border-radius: 8px;
  background: rgba(16, 22, 32, 0.88);
  color: #eef8ff;
}

.ads-reward-card strong,
.ads-reward-card span,
.ads-reward-card small {
  display: block;
}

.ads-reward-card span,
.ads-reward-card small {
  color: #bcd7e8;
  font-size: 0.78rem;
}

.ads-reward-card__button {
  min-height: 34px;
  min-width: 82px;
  border: 1px solid rgba(130, 205, 255, 0.58);
  border-radius: 6px;
  background: #82cdff;
  color: #07111a;
  font-weight: 800;
  cursor: pointer;
}

.ads-reward-card__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ads-reward-card__error {
  grid-column: 1 / -1;
  color: #ffd6d6 !important;
}

.ads-rewards-panel__low-balance {
  width: min(100%, 360px);
  padding: 8px 10px;
  border: 1px solid rgba(255, 207, 105, 0.6);
  border-radius: 8px;
  background: rgba(64, 44, 8, 0.88);
  color: #ffe9b8;
  font-size: 0.82rem;
  text-align: center;
}

.ads-reward-card__success {
  grid-column: 1 / -1;
  color: #c9f7c9 !important;
}

.mock-rewarded-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 10, 0.82);
}

.mock-rewarded-overlay__card {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: min(92vw, 380px);
  padding: 20px;
  border: 1px dashed rgba(130, 205, 255, 0.65);
  border-radius: 10px;
  background: rgba(16, 22, 32, 0.96);
  color: #eef8ff;
  text-align: center;
}

.mock-rewarded-overlay__card small {
  color: #bcd7e8;
}

.mock-rewarded-overlay__spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(130, 205, 255, 0.3);
  border-top-color: #82cdff;
  border-radius: 50%;
  animation: mock-rewarded-spin 0.9s linear infinite;
}

@keyframes mock-rewarded-spin {
  to {
    transform: rotate(360deg);
  }
}

.bet-panel {
  flex: 1;
  flex-wrap: wrap;
}

.control-field,
.lines-display,
.total-bet {
  color: #ffcf69;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.control-field select {
  min-width: 78px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 207, 105, 0.44);
  border-radius: 6px;
  color: #fff7dd;
  background: #2a111a;
}

.control-field select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.lines-display strong,
.total-bet strong {
  color: #fff7dd;
  font-size: 0.95rem;
  text-transform: none;
}

.total-bet-warning strong {
  color: #ff9f9f;
}

.spin-button {
  position: relative;
  min-width: 148px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    filter 120ms ease;
}

.spin-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px) scale(1.02);
}

.spin-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.spin-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.48;
}

.spin-button-busy:disabled {
  cursor: wait;
  filter: saturate(0.8);
  opacity: 0.72;
}

.spin-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.spin-button span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.spin-button-fallback {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #d62839 0%, #8f1020 100%);
}

.game-status {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.game-status-ready {
  color: #d7ffe4;
  background: rgba(23, 90, 52, 0.42);
}

.game-status-busy {
  color: #fff4cc;
  background: rgba(121, 78, 18, 0.46);
}

.game-status-warning {
  color: #ffe0a6;
  background: rgba(119, 70, 13, 0.58);
}

.game-status-error {
  color: #ffd6d6;
  background: rgba(122, 20, 34, 0.72);
}

.status-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.preloader-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.preloader-card {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 207, 105, 0.34);
  border-radius: 12px;
  background: rgba(15, 8, 14, 0.84);
  text-align: center;
}

.preloader-title {
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0.08em;
  color: #ffcf69;
}

.preloader-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.preloader-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcf69, #ff9d3c);
  transition: width 0.25s ease;
}

.preloader-progress[data-variant="error"] .preloader-progress-fill {
  background: #d9534f;
}

.preloader-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 20px;
}

.preloader-message {
  color: rgba(255, 255, 255, 0.82);
}

.preloader-percent {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.preloader-error {
  color: #ff9b97;
}

.preloader-retry {
  padding: 9px 18px;
  border: 1px solid rgba(255, 207, 105, 0.5);
  border-radius: 8px;
  background: rgba(255, 207, 105, 0.12);
  color: #ffcf69;
  cursor: pointer;
}

.preloader-retry:hover {
  background: rgba(255, 207, 105, 0.2);
}

@media (max-width: 700px) {
  #pixi-container {
    align-items: center;
  }

  .account-bar {
    top: 8px;
    right: 8px;
    left: 8px;
    max-width: calc(100vw - 16px);
    justify-content: flex-end;
  }

  .account-auth-provider {
    max-width: 132px;
  }

  .stage-wrap {
    width: var(--slot-stage-width, 636px);
    height: var(--slot-stage-height, 417px);
  }

  .stage-wrap canvas {
    width: var(--slot-stage-width, 636px) !important;
    height: var(--slot-stage-height, 417px) !important;
  }

  .control-panel {
    width: 100%;
  }

  .control-summary,
  .control-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bet-panel {
    width: 100%;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  #pixi-container {
    align-items: center;
  }

  .control-panel {
    gap: 8px;
    padding: 10px;
  }

  .control-summary,
  .control-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .currency-block strong {
    font-size: 0.98rem;
  }

  .game-status {
    padding: 8px 10px;
  }
}

.dom-slot-stage {
  width: min(100%, 980px);
  min-height: 620px;
  margin: 0 auto;
  padding: 18px;
  overflow: auto;
  color: #f7f7fb;
  background: #10121a;
  border: 2px solid #f4cc3a;
  font:
    15px/1.4 system-ui,
    sans-serif;
}

.dom-slot-stage header {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.dom-slot-stage header > div,
.dom-feature,
.dom-slot-stage section {
  padding: 10px;
  background: #202433;
  border: 1px solid #555e76;
}

.dom-slot-stage header span,
.dom-slot-stage header small {
  display: block;
  color: #b9c1d6;
}

.dom-slot-grid {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.dom-slot-symbol {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 6px;
  color: #fff;
  background: #2c3142;
  border: 2px solid #68718a;
  overflow-wrap: anywhere;
}

.dom-slot-symbol[data-winning="true"] {
  color: #10121a;
  background: #f4cc3a;
  border-color: #fff3a8;
}

.dom-slot-controls,
.dom-feature__actions {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-bottom: 14px;
}

.dom-slot-controls label {
  display: grid;
  gap: 4px;
}

.dom-slot-stage button,
.dom-slot-stage select {
  min-height: 38px;
  padding: 7px 12px;
}

.dom-slot-stage section {
  margin-top: 10px;
}

.dom-slot-stage pre {
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
}

.round-history {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  color: #fff;
  font:
    14px/1.35 system-ui,
    sans-serif;
}

.round-history__toggle,
.round-history__panel button {
  border: 1px solid #f4cc3a;
  color: #fff;
  background: #24112d;
  cursor: pointer;
}

.round-history__toggle {
  min-height: 40px;
  padding: 8px 14px;
}

.round-history__panel {
  width: min(360px, calc(100vw - 36px));
  max-height: 60vh;
  margin-bottom: 8px;
  padding: 14px;
  overflow: auto;
  border: 1px solid #f4cc3a;
  background: #11131c;
}

.round-history__panel h2 {
  font-size: 16px;
}

.round-history__panel dl div,
.round-history__list button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: 100%;
  padding: 8px;
}

.round-history__panel dd {
  margin: 0;
}

.round-history__list {
  display: grid;
  gap: 6px;
}

.round-history__list small {
  grid-column: 1 / -1;
  text-align: left;
}

@media (max-width: 720px) {
  .dom-slot-stage header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Current source scene reconstruction --- */

.scene-layout {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.scene-layout__stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
}

.scene-layout__stage canvas {
  display: block;
}

.game-canvas-host,
.game-canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-layout__insertion,
.scene-layout__dynamic {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.scene-layout__insertion > *,
.scene-layout__dynamic > * {
  pointer-events: auto;
}

.scene-layout__insertion--reels {
  z-index: 3;
  overflow: visible;
}

.scene-layout__insertion--popup_layer {
  z-index: 20;
}

.scene-layout__insertion--message_bar,
.scene-layout__dynamic--message_text {
  z-index: 7;
  display: grid;
  place-items: center;
}

.scene-layout__insertion--slot_selector {
  z-index: 16;
}

.scene-layout__insertion--tournament {
  z-index: 8;
}

/* Control panel row: spin, auto, turbo, paytable, more slots share one layer. */
.scene-layout__dynamic--spin_button,
.scene-layout__dynamic--auto_button,
.scene-layout__dynamic--turbo_button,
.scene-layout__dynamic--more_slots_button,
.scene-layout__dynamic--paytable_button {
  z-index: 12;
}

.scene-layout__dynamic--balance_text,
.scene-layout__dynamic--bet_text,
.scene-layout__dynamic--total_bet_text,
.scene-layout__dynamic--win_text {
  z-index: 9;
  display: grid;
  place-items: center;
}

.scene-layout__dynamic--balance_text,
.scene-layout__dynamic--win_text {
  width: 192px !important;
  height: 32px !important;
  margin-top: -4px;
  margin-left: -40px;
  background: center / 100% 100% no-repeat url("/assets/ui/widgets/balance.png");
}

.scene-layout__dynamic--bet_text {
  width: 160px !important;
  height: 32px !important;
  margin-top: -4px;
  margin-left: -24px;
  background: center / 100% 100% no-repeat url("/assets/ui/widgets/balance.png");
}

.scene-layout__dynamic--balance_text .source-scene-metric__value {
  padding-left: 22px;
}

.scene-layout__dynamic--balance_text::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background: center / contain no-repeat url("/assets/ui/widgets/Coin32x32.png");
}

.scene-layout__error,
.current-preloader--loading,
.current-preloader--error {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #fff4d0;
  background: #120818;
  text-align: center;
}

/* Stage 5: legacy DOM preloader shell CSS — active runtime uses preloader-scene-host only. */
.current-preloader {
  position: fixed;
  inset: 0;
  background: #120818;
}

.current-preloader-reference-chrome {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  color: #ffffff;
  font-family:
    Arial Black,
    Impact,
    system-ui,
    sans-serif;
}

.current-preloader-reference-chrome button {
  font: inherit;
  pointer-events: auto;
}

.current-preloader__progress {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 0;
}

.current-preloader__progress .preloader-progress {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.42);
}

.current-preloader__status {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #fff4d0;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
  opacity: 0.88;
}

.current-preloader__retry {
  justify-self: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 207, 105, 0.5);
  border-radius: 6px;
  background: rgba(15, 8, 14, 0.84);
  color: #ffcf69;
  cursor: pointer;
}

.game-shell--source-scene {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.game-shell--source-scene > .scene-layout {
  position: fixed;
  inset: 0;
}

.game-shell--source-scene .round-history {
  z-index: 6;
}

.source-scene-reference-chrome {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  color: #ffffff;
  font-family:
    Arial Black,
    Impact,
    system-ui,
    sans-serif;
}

.source-scene-reference-chrome button {
  font: inherit;
  pointer-events: auto;
  cursor: pointer;
}

.source-scene-top-nav {
  position: absolute;
  top: 8px;
  left: max(8px, calc((100vw - min(100vw, 1080px)) / 2 + 8px));
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.source-scene-nav-item {
  width: 70px;
  min-height: 82px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-shadow:
    0 2px 0 #201440,
    0 3px 5px rgba(0, 0, 0, 0.8);
}

.source-scene-nav-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 3px solid #f3d216;
  border-radius: 50%;
  color: #ffe33a;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(180deg, #15102a 0%, #07060f 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.75),
    0 2px 8px rgba(0, 0, 0, 0.75);
  font-size: 23px;
  line-height: 1;
}

.source-scene-nav-label {
  max-width: 76px;
  color: #ffffff;
  font-size: 12px;
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
}

.source-scene-top-logo {
  position: absolute;
  top: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  text-shadow:
    0 2px 0 #132a69,
    0 3px 8px rgba(0, 0, 0, 0.78);
}

.source-scene-top-logo span {
  display: flex;
  gap: 4px;
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 0.14em;
}

.source-scene-top-logo span::before,
.source-scene-top-logo span::after {
  content: "";
}

.source-scene-top-logo strong {
  color: #ffd45a;
  font-family: Georgia, serif;
  font-size: 25px;
  font-style: italic;
}

.source-scene-profile {
  position: absolute;
  top: 14px;
  right: max(8px, calc((100vw - min(100vw, 1080px)) / 2 + 8px));
  min-width: 250px;
  height: 60px;
  display: grid;
  grid-template-columns: 56px 1fr 74px 28px 28px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 34px 12px 12px 34px;
  border: 2px solid rgba(255, 220, 42, 0.72);
  background: linear-gradient(90deg, #2a1541 0%, #8b3d9f 72%, #221235 100%);
  box-shadow:
    inset 0 1px 4px rgba(255, 255, 255, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.68);
}

.source-scene-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #edd31f;
  background:
    radial-gradient(circle at 50% 35%, #dad2f5 0 16%, #79708c 17% 30%, transparent 31%),
    radial-gradient(ellipse at 50% 77%, #bdb7d3 0 28%, transparent 29%),
    linear-gradient(180deg, #342c49, #0d0b18);
}

.source-scene-profile-name {
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  text-align: left;
}

.source-scene-profile > button:not(.source-scene-profile-name) {
  min-height: 44px;
  padding: 0 7px;
  border: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  color: #94ffef;
  background: transparent;
  font-size: 16px;
  line-height: 0.95;
  text-align: left;
}

.source-scene-login-pill {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #1d68d8;
  font-size: 12px;
}

.source-scene-login-pill + .source-scene-login-pill {
  background: #ffffff;
  color: #d8422f;
}

.source-scene-machine-top {
  position: absolute;
  top: clamp(72px, 12.2vh, 94px);
  left: 50%;
  width: min(720px, 58vw);
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr 154px 92px;
  grid-template-rows: 35px 39px;
  gap: 6px 10px;
  padding: 10px 18px 8px;
  transform: translateX(-50%);
  border: 4px solid #0a0d10;
  border-radius: 22px 22px 8px 8px;
  background:
    linear-gradient(180deg, rgba(5, 13, 24, 0.98), rgba(0, 0, 0, 0.96)),
    linear-gradient(90deg, #f4db25, #fff26a, #c89709);
  box-shadow:
    inset 0 0 0 3px #f5d816,
    0 5px 10px rgba(0, 0, 0, 0.72);
}

.source-scene-machine-meter {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
}

.source-scene-machine-meter i {
  height: 15px;
  border: 2px solid #9edaff;
  border-radius: 999px;
  background: linear-gradient(90deg, #181818 0 72%, #f0bf1c 73% 100%);
}

.source-scene-sale-button {
  grid-column: 2;
  grid-row: 1;
  border: 3px solid #ffd331;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff4e39, #d71910);
  font-size: 19px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.55),
    0 3px 5px rgba(0, 0, 0, 0.62);
}

.source-scene-level {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: 4px;
  color: #ffdf35;
  font-size: 12px;
}

.source-scene-level strong {
  color: #ffffff;
  font-size: 16px;
}

.source-scene-jackpots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.source-scene-jackpots span {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 15px;
  line-height: 0.98;
  text-shadow: 0 2px 3px #000000;
}

.source-scene-jackpots span:nth-child(1) {
  color: #ffe227;
}

.source-scene-jackpots span:nth-child(2) {
  color: #ff2020;
}

.source-scene-jackpots span:nth-child(3) {
  color: #37d629;
}

.source-scene-jackpots span:nth-child(4) {
  color: #24bfff;
}

.source-scene-jackpots strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
}

.source-scene-right-promos {
  position: absolute;
  top: clamp(150px, 27vh, 205px);
  right: max(24px, calc((100vw - min(100vw, 1080px)) / 2 + 24px));
  width: 118px;
  display: grid;
  gap: 8px;
}

.source-scene-promo {
  min-height: 108px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 8px 6px;
  border: 0;
  color: #ffffff;
  background: transparent;
  text-align: center;
  text-shadow:
    0 2px 0 #39154d,
    0 3px 5px rgba(0, 0, 0, 0.88);
}

.source-scene-promo span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  background: center / contain no-repeat;
}

.source-scene-bonus span {
  background-image: url("/assets/ui/popups/bonus_bg.png");
}

.source-scene-wheel span {
  width: 82px;
  height: 86px;
  background-image: url("/assets/ui/popups/bonuses_daily_wheel_11.png");
}

.source-scene-quest span {
  width: 82px;
  height: 86px;
  background-image: url("/assets/ui/popups/quest_done_hero.png");
}

.source-scene-promo strong {
  color: #ffea62;
  font-size: 26px;
  line-height: 0.85;
}

.source-scene-promo small {
  font-size: 12px;
  line-height: 1;
}

.source-scene-wheel,
.source-scene-quest {
  min-height: 136px;
}

.source-scene-quest em {
  min-width: 72px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffdf35;
  background: rgba(27, 11, 36, 0.95);
  font-style: normal;
  font-size: 18px;
}

.source-scene-mini-status {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: none;
  gap: 10px;
  transform: translateX(-50%);
  color: #fff4d0;
  font-size: 11px;
  text-shadow: 0 2px 3px #000000;
}

/* Stage 4: legacy nested-canvas reels wrapper CSS — reels render in root Pixi stage now. */
.scene-layout__insertion--reels .source-scene-reels-host,
.current-slot-reels {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.game-shell--source-scene .source-scene-reels-host {
  pointer-events: none;
}

.game-shell--source-scene .source-scene-reels-host .bonus-action-panel {
  pointer-events: auto;
}

.scene-layout__insertion--reels .current-slot-reels {
  --source-scene-reels-y-offset: -20px;
  --source-scene-reels-vertical-bleed: 60px;

  height: calc(100% + var(--source-scene-reels-vertical-bleed));
  transform: translateY(var(--source-scene-reels-y-offset));
}

.scene-layout__insertion--popup_layer,
.scene-layout__insertion--popup_layer > *,
.current-scene-popup-layer,
.current-scene-popup-layer canvas {
  pointer-events: none;
}

.current-scene-popup-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: block;
}

.current-scene-popup-layer[data-popup-open="true"],
.current-scene-popup-layer[data-popup-open="true"] canvas {
  pointer-events: auto;
}

.current-slot-reels canvas,
.current-scene-popup-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scene-layout__insertion--reels .current-slot-reels canvas,
.scene-layout__insertion--popup_layer .current-scene-popup-layer canvas {
  width: 100% !important;
  height: 100% !important;
}

.source-scene-message {
  width: 100%;
  padding: 2px 12px;
  color: #fff4d0;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-scene-metric {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff4d0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.source-scene-metric__value {
  position: relative;
  z-index: 2;
}

.source-scene-bet-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 35px;
  height: 29px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.source-scene-bet-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.65);
  opacity: 0.55;
}

.source-scene-bet-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.source-scene-bet-button--decrease {
  left: -4px;
}

.source-scene-bet-button--increase {
  right: -4px;
}

.source-scene-hit-button,
.source-scene-spin-button {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.source-scene-hit-button {
  position: relative;
  display: block;
  padding: 0;
  color: transparent;
  font-size: 0;
  outline: none;
}

.source-scene-spin-button,
.source-scene-auto-button,
.source-scene-turbo-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.source-scene-image-button {
  overflow: visible;
}

.source-scene-button-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.source-scene-button-art--pressed {
  opacity: 0;
}

.source-scene-image-button:hover:not(:disabled)
  .source-scene-button-art--pressed,
.source-scene-image-button:active:not(:disabled)
  .source-scene-button-art--pressed,
.source-scene-image-button:focus-visible:not(:disabled)
  .source-scene-button-art--pressed {
  opacity: 1;
}

.source-scene-image-button:hover:not(:disabled)
  .source-scene-button-art--normal,
.source-scene-image-button:active:not(:disabled)
  .source-scene-button-art--normal,
.source-scene-image-button:focus-visible:not(:disabled)
  .source-scene-button-art--normal {
  opacity: 0;
}

.source-scene-hit-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.82),
    0 0 18px rgba(255, 210, 42, 0.72);
}

.source-scene-hit-button:disabled,
.source-scene-spin-button:disabled {
  cursor: wait;
}

.scene-layout__dynamic--balance_text::before,
.scene-layout__dynamic--bet_text::before,
.scene-layout__dynamic--win_text::before {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.86);
  white-space: nowrap;
}

.scene-layout__dynamic--balance_text::before {
  content: "BALANCE";
}

.scene-layout__dynamic--bet_text::before {
  content: "BET";
}

.scene-layout__dynamic--win_text::before {
  content: "WINNER PAID";
}

.source-scene-tournament,
.source-scene-empty-state {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #fff4d0;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.86);
}

/* Classic-bars chrome: shared shell, slot content changes only inside reels. */
.source-scene-top-nav {
  display: none;
}

.source-scene-top-logo {
  top: 28px;
  gap: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.72));
}

.source-scene-top-logo::before {
  content: "";
  width: 36px;
  height: 36px;
  margin-right: -10px;
  background:
    conic-gradient(from 0deg, transparent 0 35deg, #ffed35 35deg 55deg, transparent 55deg 90deg),
    radial-gradient(circle, #fffad0 0 14%, #ffc400 15% 32%, transparent 33%);
  clip-path: polygon(
    50% 0,
    60% 38%,
    100% 50%,
    60% 62%,
    50% 100%,
    40% 62%,
    0 50%,
    40% 38%
  );
}

.source-scene-top-logo span {
  color: #e8f7ff;
  font-size: 16px;
  letter-spacing: 0.22em;
}

.source-scene-top-logo strong {
  color: #ffd856;
  font-size: 28px;
}

.source-scene-profile {
  top: clamp(16px, 2.2vh, 24px);
  right: clamp(16px, 2vw, 32px);
  z-index: 26;
  box-sizing: border-box;
  min-width: 250px;
  max-width: calc(100vw - 32px);
  height: 66px;
  grid-template-columns: 58px 1fr 72px;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 28px 10px 10px 28px;
  border: 3px solid #f2d035;
  background:
    linear-gradient(180deg, rgba(72, 19, 74, 0.98), rgba(37, 8, 45, 0.98)),
    #3a103a;
}

.source-scene-avatar {
  width: 54px;
  height: 54px;
  border: 2px solid #f2d035;
  background: radial-gradient(circle at 50% 50%, #22152a 0 62%, #09040b 63%);
}

.source-scene-profile-name {
  display: grid;
  gap: 2px;
  padding: 0;
  color: #ffffff;
  text-align: left;
}

.source-scene-profile-name strong {
  font-size: 16px;
  line-height: 1;
}

.source-scene-profile-name small {
  font-family: Arial, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.source-scene-login-button {
  height: 50px;
  border: 2px solid #e6c944;
  border-radius: 8px;
  color: #fff5dc;
  background: rgba(54, 19, 44, 0.9);
  font-size: 16px;
}

.source-scene-profile > .source-scene-login-button {
  min-height: 50px;
  padding: 0 14px;
  border: 2px solid #e6c944;
  border-radius: 8px;
  color: #fff5dc;
  background: rgba(54, 19, 44, 0.9);
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.source-scene-machine-top {
  top: calc(clamp(88px, 11vh, 118px) - 50px);
  width: min(900px, 70vw);
  min-height: 118px;
  display: grid;
  grid-template-columns: 248px 180px 178px 150px;
  grid-template-rows: 69px 48px;
  align-items: center;
  gap: 0 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background:
    center top / 100% 69px no-repeat url("/assets/hud-ui/top-bar/top_bar.png"),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(3, 4, 8, 0.95));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.58);
}

.source-scene-machine-meter {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 42px 62px 1fr;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 2px 3px #000000;
}

.source-scene-machine-meter img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.source-scene-progress {
  position: relative;
  width: 95px;
  height: 15px;
  display: block;
  overflow: hidden;
  background: center / 100% 100% no-repeat url("/assets/hud-ui/top-bar/level_back.png");
}

.source-scene-progress__strip {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  overflow: hidden;
}

.source-scene-progress__strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  height: 15px;
  background: left center / 96px 15px no-repeat url("/assets/hud-ui/top-bar/level_strip.png");
}

.source-scene-progress--vip {
  align-self: center;
}

.source-scene-sale-button {
  grid-column: 2;
  grid-row: 1;
  height: 50px;
  display: grid;
  place-items: center;
  gap: 0;
  margin-top: 2px;
  border: 0;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff4c38, #c91710);
  box-shadow:
    inset 0 2px 7px rgba(255, 255, 255, 0.55),
    0 3px 0 rgba(90, 0, 0, 0.75),
    0 0 10px rgba(255, 50, 24, 0.65);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
}

.source-scene-sale-button strong {
  font-size: 25px;
  line-height: 0.9;
}

.source-scene-sale-button span {
  padding-left: 20px;
  color: #ffd832;
  font-size: 16px;
  line-height: 1;
}

.source-scene-level {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding-right: 4px;
}

.source-scene-level strong {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: end center;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 2px 3px #000000;
}

.source-scene-level strong::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 35px;
  height: 35px;
  transform: translateX(-50%);
  background: radial-gradient(circle, #fff66b 0 32%, #ffcf16 33% 62%, transparent 63%);
  clip-path: polygon(
    50% 0,
    61% 34%,
    98% 35%,
    68% 56%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 56%,
    2% 35%,
    39% 34%
  );
}

.source-scene-level strong {
  padding-top: 24px;
}

.source-scene-topbar-actions {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 4px;
}

.source-scene-topbar-actions button {
  width: 42px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
}

.source-scene-topbar-actions img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.source-scene-jackpots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px 8px;
}

.source-scene-jackpots span {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 4px 8px 3px;
  border: 1px solid currentColor;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 4px
    ),
    rgba(0, 0, 0, 0.82);
  font-size: 15px;
  line-height: 0.9;
  text-shadow: 0 2px 3px #000000;
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.64);
}

.source-scene-jackpots span:nth-child(1) {
  color: #ffe227;
}

.source-scene-jackpots span:nth-child(2) {
  color: #ff2020;
}

.source-scene-jackpots span:nth-child(3) {
  color: #37d629;
}

.source-scene-jackpots span:nth-child(4) {
  color: #24bfff;
}

.source-scene-jackpots strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
}

.game-shell--source-scene .source-scene-message {
  display: none;
}

.source-scene-right-promos {
  top: clamp(220px, 25vh, 250px);
  right: max(48px, calc((100vw - min(100vw, 1500px)) / 2 + 56px));
  width: 128px;
  gap: 14px;
}

.source-scene-promo {
  min-height: 118px;
  gap: 0;
  padding: 0;
  text-shadow:
    0 2px 0 #44205c,
    0 3px 6px rgba(0, 0, 0, 0.9);
}

.source-scene-promo span {
  width: 112px;
  height: 112px;
}

.source-scene-bonus span {
  background-image: url("/assets/ui/popups/bonus_bg.png");
}

.source-scene-wheel span {
  width: 108px;
  height: 114px;
  background-image: url("/assets/ui/popups/bonuses_daily_wheel_11.png");
}

.source-scene-quest span {
  width: 122px;
  height: 126px;
  background-image: url("/assets/ui/popups/quest_done_hero.png");
}

.source-scene-promo strong {
  color: #ffdd37;
  font-size: 30px;
  line-height: 0.75;
}

.source-scene-promo small {
  margin-top: -14px;
  color: #fff1c8;
  font-size: 10px;
  line-height: 1;
}

.source-scene-quest small {
  min-width: 94px;
  margin-top: -2px;
  padding: 5px 6px;
  border: 2px solid #e38cff;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(34, 15, 72, 0.92);
  box-shadow: 0 0 10px rgba(218, 94, 255, 0.8);
}

.source-scene-wheel,
.source-scene-quest {
  min-height: 118px;
}

.scene-layout__insertion--tournament {
  width: 150px !important;
  height: 166px !important;
  margin-left: -6px;
  margin-top: -12px;
}

.source-scene-tournament,
.source-scene-empty-state {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  padding: 74px 14px 12px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  background: center / contain no-repeat url("/assets/ui/widgets/tournament_silver_backgr0.png");
}

.source-scene-tournament::after,
.source-scene-empty-state::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -10px;
  width: 48px;
  height: 48px;
  background: center / contain no-repeat url("/assets/ui/widgets/tournament_results_btn.png");
}

.source-scene-tournament span,
.source-scene-tournament strong,
.source-scene-tournament em {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 108px;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.8),
    0 0 6px rgba(0, 0, 0, 0.9);
}

.source-scene-tournament span {
  color: #ffffff;
  font-size: 10px;
}

.source-scene-tournament strong {
  margin-top: 4px;
  color: #bff4ff;
  font-size: 17px;
  line-height: 0.86;
}

.source-scene-tournament em {
  margin-top: 3px;
  color: #ffe333;
  font-size: 10px;
  font-style: normal;
}

.scene-layout__dynamic--balance_text,
.scene-layout__dynamic--bet_text,
.scene-layout__dynamic--win_text {
  width: 186px !important;
  height: 54px !important;
  margin-top: 0;
  margin-left: 0;
  border: 1px solid rgba(194, 207, 213, 0.86);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(22, 28, 32, 0.98), rgba(2, 4, 6, 0.98)),
    #05070a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.68);
}

.scene-layout__dynamic--bet_text {
  width: 184px !important;
  margin-left: 0;
}

.scene-layout__dynamic--balance_text::before,
.scene-layout__dynamic--bet_text::before,
.scene-layout__dynamic--win_text::before {
  top: 8px;
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0;
}

.source-scene-metric {
  padding-top: 16px;
  color: #ffeb30;
  font-size: 16px;
}

.scene-layout__dynamic--balance_text .source-scene-metric__value {
  padding-left: 34px;
}

.scene-layout__dynamic--balance_text::after {
  left: 24px;
  width: 28px;
  height: 28px;
}

.source-scene-bet-button {
  width: 38px;
  height: 30px;
}

.source-scene-bet-button--decrease {
  left: 8px;
}

.source-scene-bet-button--increase {
  right: 8px;
}

.scene-layout__dynamic--more_slots_button {
  transform: translateX(118px);
}

.scene-layout__dynamic--paytable_button {
  transform: translateX(-118px);
}

.source-scene-reference-chrome::after {
  content: "DAILY REWARDS   •   PLAY & WIN   •   FREE SPINS";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: min(560px, 42vw);
  min-height: 40px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 3px solid #f4d730;
  border-radius: 8px;
  color: #ffea4a;
  background: rgba(88, 10, 86, 0.94);
  font-size: 14px;
  text-align: center;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.scene-layout__insertion--slot_selector .slot-selector {
  position: absolute;
  inset: 0;
  width: 100%;
  max-height: 100%;
  margin: 0;
  transform: translateY(calc(100% + 12px));
  z-index: 1;
}

.scene-layout__insertion--slot_selector .slot-selector[data-open="true"] {
  transform: translateY(0);
  z-index: 2;
}

.slot-selector--scene {
  border-color: rgba(255, 207, 105, 0.45);
  background-color: rgba(20, 8, 18, 0.92);
  max-height: min(24vh, 140px);
}

.slot-selector--scene .slot-selector__header {
  display: block;
  margin: 0 0 6px;
  color: #ffcf69;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.slot-selector--scene .slot-selector__item {
  border-color: rgba(255, 207, 105, 0.35);
  background: rgba(8, 4, 12, 0.82);
}

.game-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-shell__backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 20%,
      rgba(255, 120, 40, 0.12),
      transparent 55%
    ),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.35), transparent 60%);
  z-index: 0;
}

.game-shell__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 12px;
}

.game-shell__stage-mount {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
