.brand {
  object-fit: contain;
}

.top-download {
  display: none !important;
}

.auth-submit:disabled {
  opacity: .62;
  pointer-events: none;
}

body.front-auth-required .phone-shell {
  pointer-events: none;
}

body.front-auth-required #authOverlay {
  pointer-events: auto;
}

body.front-auth-required .topbar,
body.front-auth-required #wd-view-root > :not(#authOverlay) {
  display: none !important;
}

body.front-auth-required .auth-close,
body.front-auth-required [data-auth-close] {
  display: none !important;
}

.starlume-wallet-sheet[hidden] {
  display: none;
}

.starlume-wallet-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: end;
  background: rgba(2, 6, 18, .54);
}

.starlume-wallet-mask {
  position: absolute;
  inset: 0;
}

.starlume-wallet-panel {
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(16, 25, 52, .96), rgba(7, 11, 22, .98));
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .45);
  color: #fff;
}

.starlume-wallet-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.starlume-wallet-panel header strong {
  font-size: 18px;
}

.starlume-wallet-panel header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 20px;
  line-height: 1;
}

.starlume-pay-list {
  display: grid;
  gap: 9px;
  max-height: 220px;
  overflow: auto;
  margin-bottom: 12px;
}

.starlume-pay-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .06);
  text-align: left;
}

.starlume-pay-list button.active {
  border-color: rgba(0, 212, 255, .65);
  background: rgba(45, 124, 255, .2);
  box-shadow: 0 8px 30px rgba(45, 124, 255, .22);
}

.starlume-pay-list span,
.starlume-wallet-panel label span,
.starlume-wallet-panel p {
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
}

.starlume-wallet-panel label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.starlume-wallet-panel input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 0 13px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  box-sizing: border-box;
}

.starlume-wallet-panel input:focus {
  border-color: rgba(0, 212, 255, .55);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .12);
}

.starlume-wallet-panel p {
  min-height: 20px;
  margin: 12px 0 0;
  line-height: 1.6;
}

.starlume-wallet-panel p img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-top: 8px;
  border-radius: 12px;
  background: #fff;
}

.starlume-wallet-submit {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2d7cff, #00d4ff);
  box-shadow: 0 8px 30px rgba(45, 124, 255, .25);
}

.starlume-wallet-submit:disabled {
  opacity: .6;
  pointer-events: none;
}

.starlume-transfer-sheet .starlume-wallet-panel {
  padding-top: 20px;
}

.starlume-transfer-sheet .starlume-wallet-panel::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin: -6px auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26);
}

.starlume-record-sheet[hidden] {
  display: none;
}

.starlume-record-sheet {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  align-items: end;
  background: rgba(2, 6, 18, .56);
}

.starlume-record-mask {
  position: absolute;
  inset: 0;
}

.starlume-record-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(78vh, 720px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(16, 25, 52, .97), rgba(7, 11, 22, .99));
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .45);
  color: #fff;
}

.starlume-record-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.starlume-record-panel header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.starlume-record-panel header strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.starlume-record-panel header span,
.starlume-record-tabs button,
.starlume-record-main span,
.starlume-record-side span,
.starlume-record-item time,
.starlume-record-empty span {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.starlume-record-panel header button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 20px;
  line-height: 1;
}

.starlume-record-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}

.starlume-record-tabs button {
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.starlume-record-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(45, 124, 255, .95), rgba(0, 212, 255, .85));
  box-shadow: 0 8px 24px rgba(45, 124, 255, .22);
}

.starlume-record-list {
  display: grid;
  gap: 10px;
  min-height: 120px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.starlume-record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
}

.starlume-record-main,
.starlume-record-side {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.starlume-record-main strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.starlume-record-main span {
  overflow: hidden;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.starlume-record-side {
  justify-items: end;
  text-align: right;
}

.starlume-record-side b {
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

.starlume-record-side b.is-in {
  color: #31e6a1;
}

.starlume-record-side b.is-out {
  color: #ffbf69;
}

.starlume-record-side b.is-neutral {
  color: rgba(255, 255, 255, .82);
}

.starlume-record-item time {
  grid-column: 1 / -1;
  line-height: 1.4;
}

.starlume-record-loading,
.starlume-record-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 140px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 16px;
  color: rgba(255, 255, 255, .72);
  text-align: center;
}

.starlume-record-empty strong {
  color: #fff;
  font-size: 15px;
}

.mine-account-list {
  width: calc(100% - 40px);
  margin: 12px auto 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.mine-account-list .mine-center-row {
  min-height: 50px;
  border: 1px solid #e9ebf4;
  border-radius: 12px;
  background: #fff;
  color: #191c21;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.mine-account-list .mine-center-row:active {
  transform: translateY(1px);
}

.mine-account-list .mine-center-left span {
  color: #29334f;
}

.mine-account-list .mine-center-right {
  color: #8a91a3;
}

.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list {
  width: calc(100% - 24px);
  display: grid;
  gap: 9px;
  margin: 0 auto;
}

.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list .game-card,
.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list article[data-provider],
.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list article[data-unavailable] {
  width: 100%;
  aspect-ratio: 1080 / 375;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 141, 30, .72);
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: 0 5px 14px rgba(154, 124, 71, .08);
}

.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list .game-card .game-art,
.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list article[data-provider] .game-art,
.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list article[data-unavailable] .game-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list .game-card .tag,
.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list article[data-provider] .tag,
.phone-shell[data-page="hall"]:not(.pg-page-active) .game-list article[data-unavailable] .tag {
  width: 32px;
  height: 17px;
}

.phone-shell.service-chat-active {
  padding-bottom: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(0, 212, 255, .2), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(45, 124, 255, .22), transparent 30%),
    linear-gradient(180deg, #070b16 0%, #0e1630 54%, #070b16 100%) !important;
}

.phone-shell.service-chat-active .topbar {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 11, 22, .86);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.phone-shell.service-chat-active .topbar h1 {
  color: #fff;
}

.phone-shell.service-chat-active .pg-top-back::before {
  border-color: #fff !important;
}

.phone-shell.service-chat-active .top-actions {
  display: none;
}

.service-chat-view {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  width: 100%;
  min-height: calc(100vh - 44px) !important;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) !important;
  color: #fff;
}

.service-chat-view.is-readable {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 210px),
    linear-gradient(180deg, #070b16 0%, #0e1630 58%, #070b16 100%) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 9999px rgba(7, 11, 22, .02);
}

.service-chat-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: 0 8px 30px rgba(45, 124, 255, .18) !important;
  backdrop-filter: blur(20px);
}

.service-chat-agent {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.service-chat-agent-avatar {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2d7cff, #00d4ff);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(45, 124, 255, .35);
}

.service-chat-agent div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.service-chat-agent strong {
  display: block;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 22px !important;
  font-weight: 900;
}

.service-chat-status {
  display: flex !important;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .66) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.service-chat-agent i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27e89a;
  box-shadow: 0 0 0 4px rgba(39, 232, 154, .14), 0 0 18px rgba(39, 232, 154, .72);
}

.service-chat-head button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.service-chat-head button:active,
.service-chat-form button:active,
.service-chat-upload:active,
.service-chat-chips button:active {
  transform: scale(.96);
}

.service-chat-tip {
  display: grid;
  gap: 4px;
  margin: 10px 2px 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 212, 255, .18);
  border-radius: 16px;
  background: rgba(0, 212, 255, .08);
}

.service-chat-tip b {
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}

.service-chat-tip span {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 17px;
}

.service-chat-list {
  display: flex !important;
  flex-direction: column;
  gap: 14px !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding: 14px 2px 16px !important;
  scrollbar-width: thin;
}

.service-chat-message {
  display: flex;
  gap: 9px;
  width: 100%;
  max-width: 100% !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.service-chat-message.is-client {
  flex-direction: row-reverse;
}

.service-chat-avatar {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 900;
}

.service-chat-message.is-agent .service-chat-avatar {
  background: linear-gradient(135deg, #00d4ff, #2d7cff);
  color: #fff;
}

.service-chat-bubble {
  max-width: min(76%, 292px);
  padding: 10px 12px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
}

.service-chat-message.is-client .service-chat-bubble {
  border-color: rgba(45, 124, 255, .44);
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, rgba(45, 124, 255, .96), rgba(0, 212, 255, .86));
  box-shadow: 0 8px 24px rgba(45, 124, 255, .26);
}

.service-chat-bubble b {
  display: block;
  margin: 0 0 5px !important;
  color: rgba(255, 255, 255, .62) !important;
  font-size: 11px !important;
  line-height: 15px !important;
}

.service-chat-message.is-client .service-chat-bubble b {
  color: rgba(255, 255, 255, .78) !important;
}

.service-chat-bubble p {
  display: block;
  margin: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 21px !important;
  word-break: break-word;
}

.service-chat-bubble time {
  display: block;
  margin-top: 7px !important;
  color: rgba(255, 255, 255, .42) !important;
  font-size: 10px !important;
  line-height: 14px !important;
}

.service-chat-message.is-client .service-chat-bubble time {
  color: rgba(255, 255, 255, .68) !important;
}

.service-chat-empty {
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 230px !important;
  padding: 24px 18px;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .66) !important;
  text-align: center;
}

.service-chat-empty strong {
  color: #fff;
  font-size: 16px;
  line-height: 22px;
}

.service-chat-empty span {
  max-width: 280px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  line-height: 18px;
}

.service-chat-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.service-chat-chips button {
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(0, 212, 255, .28);
  border-radius: 999px;
  background: rgba(0, 212, 255, .1);
  color: rgba(255, 255, 255, .9);
  font: inherit;
  font-size: 12px;
}

.service-chat-form {
  position: sticky;
  bottom: 0;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 62px !important;
  gap: 8px !important;
  align-items: end;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, .11) !important;
  border-radius: 22px !important;
  background: rgba(8, 14, 31, .9) !important;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, .28) !important;
  backdrop-filter: blur(22px);
}

.service-chat-upload {
  position: relative;
  display: grid !important;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  width: 42px;
  height: 42px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
}

.service-chat-upload span {
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.service-chat-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.service-chat-form input[name="message"] {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  height: 42px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 15px !important;
  outline: none;
  background: rgba(255, 255, 255, .075) !important;
  color: #fff !important;
  font: inherit;
  font-size: 14px;
}

.service-chat-form input[name="message"]::placeholder {
  color: rgba(255, 255, 255, .42);
}

.service-chat-form input[name="message"]:focus {
  border-color: rgba(0, 212, 255, .48) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .1);
}

.service-chat-form button[type="submit"] {
  grid-column: 3;
  grid-row: 1;
  height: 42px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #2d7cff, #00d4ff) !important;
  color: #fff !important;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(45, 124, 255, .3);
}

.service-chat-form button[type="submit"]:disabled {
  opacity: .56;
}

.service-chat-form small {
  grid-column: 1 / -1 !important;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .55) !important;
  font-size: 11px !important;
  line-height: 14px !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.service-chat-form small:empty {
  display: none;
}

.service-chat-image {
  display: block;
  width: min(190px, 100%) !important;
  margin-top: 8px !important;
  overflow: hidden;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .12) !important;
}

.service-chat-image img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: cover;
}

.service-chat-file {
  display: inline-flex;
  max-width: 100%;
  height: 31px;
  margin-top: 8px !important;
  padding: 0 11px;
  align-items: center;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 360px) {
  .service-chat-view {
    padding-inline: 10px !important;
  }

  .service-chat-agent-avatar {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .service-chat-form {
    grid-template-columns: 40px minmax(0, 1fr) 56px !important;
    padding: 8px !important;
  }

  .service-chat-bubble {
    max-width: min(78%, 260px);
  }
}
