/* AOK777 emerald-and-gold visual system, matched to the supplied mobile reference. */
:root {
  color-scheme: dark;
  --shell: 490px;
  --green: #004a34;
  --green-2: #006447;
  --green-3: #0a8a5f;
  --gold: #f7dc68;
  --muted: #d8e5dc;
  --eg-bg: #00291f;
  --eg-bg-top: #006044;
  --eg-panel: #004a35;
  --eg-panel-2: #087052;
  --eg-panel-soft: rgba(0, 82, 58, .9);
  --eg-gold: #f7dc68;
  --eg-gold-light: #fff4a6;
  --eg-gold-deep: #c48716;
  --eg-emerald: #00df95;
  --eg-emerald-light: #83f5c8;
  --eg-text: #fffce9;
  --eg-muted: #d8e5dc;
  --eg-danger: #ef3b32;
  --eg-border: rgba(247, 220, 104, .94);
  --eg-border-soft: rgba(247, 220, 104, .48);
  --eg-shadow: 0 8px 24px rgba(0, 18, 13, .42);
  --eg-gold-gradient: linear-gradient(180deg, #fff8b9 0%, #f8df73 42%, #d99b24 76%, #b7760e 100%);
  --eg-green-gradient: linear-gradient(145deg, #0b9467 0%, #00694a 50%, #003f2e 100%);
}

html,
body {
  background-color: var(--eg-bg) !important;
  background-image:
    radial-gradient(circle at 80% 0, rgba(0, 230, 151, .38), transparent 34%),
    radial-gradient(circle at 3% 42%, rgba(0, 166, 109, .3), transparent 32%),
    linear-gradient(180deg, #006047 0%, #004631 43%, #00291f 100%) !important;
  color: var(--eg-text);
}

body {
  font-family: Arial, "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

::selection {
  background: var(--eg-gold);
  color: #08251c;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--eg-gold-light) !important;
  outline-offset: 2px;
}

.app-shell,
.page-outlet,
#pageOutlet:has(>.notice-center-page) {
  background-color: var(--eg-bg) !important;
  background-image:
    radial-gradient(circle at 84% 2%, rgba(0, 235, 155, .33), transparent 34%),
    radial-gradient(circle at 8% 46%, rgba(0, 177, 116, .24), transparent 31%),
    linear-gradient(180deg, rgba(0, 89, 63, .99), rgba(0, 58, 42, .99) 58%, rgba(0, 39, 30, .99)) !important;
}

.app-shell {
  box-shadow: 0 0 52px rgba(0, 0, 0, .72), inset 0 0 90px rgba(0, 225, 147, .12) !important;
  padding-bottom: 72px !important;
}

/* Language and top account bars */
.language-bar {
  color: var(--eg-gold-light) !important;
  background: linear-gradient(180deg, #003e2d, #00271f) !important;
  border-bottom: 1px solid var(--eg-border-soft) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .26) !important;
}

.language-bar select {
  color: var(--eg-text) !important;
  border: 1px solid var(--eg-border) !important;
  background: #003627 !important;
  border-radius: 9px !important;
}

.topbar,
.source-home-head {
  background: linear-gradient(180deg, rgba(0, 71, 51, .99), rgba(0, 43, 33, .99)) !important;
  border-bottom: 1px solid rgba(247, 220, 104, .58) !important;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .34) !important;
}

.round-control,
.menu-button,
.service {
  color: var(--eg-gold-light) !important;
  background: linear-gradient(145deg, rgba(13, 119, 83, .96), rgba(0, 54, 40, .98)) !important;
  border: 1px solid var(--eg-border) !important;
  box-shadow: inset 0 0 10px rgba(243, 214, 106, .08), 0 3px 9px rgba(0, 0, 0, .28) !important;
}

.menu-button {
  border-radius: 9px !important;
}

.service {
  border-radius: 10px !important;
}

.balance,
.source-home-head .api-account-actions .api-action {
  color: #09261d !important;
  background: var(--eg-gold-gradient) !important;
  border: 1px solid #fff0a1 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 4px 10px rgba(0,0,0,.3) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px rgba(255,255,255,.25);
}

.source-home-head .api-account-actions .api-action + button {
  background: linear-gradient(180deg, #eaffdf, #69cf9a 50%, #12845c) !important;
  border-color: var(--eg-gold-light) !important;
}

.source-home-head .registro-badge {
  background: var(--eg-danger) !important;
  border: 1px solid #fff4c7 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.api-status {
  color: #fff3c4 !important;
  background: linear-gradient(90deg, rgba(87, 19, 14, .9), rgba(66, 35, 12, .9)) !important;
  border-bottom: 1px solid rgba(243, 214, 106, .32) !important;
}

/* Hero, ticker and home category controls */
.hero {
  margin: 14px 12px 8px !important;
  overflow: hidden;
  border: 1px solid var(--eg-border) !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, #087f59, #003528) !important;
  box-shadow: inset 0 0 28px rgba(0, 255, 169, .22), 0 7px 20px rgba(0,0,0,.38), 0 0 10px rgba(247,220,104,.08) !important;
}

.hero-slide,
.hero-slide img {
  border-radius: 14px !important;
}

.notice-bar {
  margin-top: 16px !important;
}

.notice-main,
.message-button {
  color: var(--eg-text) !important;
  background: linear-gradient(145deg, rgba(5, 112, 78, .98), rgba(0, 55, 41, .99)) !important;
  border: 1px solid var(--eg-border) !important;
  box-shadow: inset 0 0 13px rgba(0, 199, 131, .1), 0 4px 12px rgba(0,0,0,.3) !important;
}

.notice-main {
  border-radius: 11px !important;
}

.message-button {
  border-radius: 10px !important;
}

.notice-item {
  color: var(--eg-text) !important;
}

.source-home-games .category-bar {
  background: linear-gradient(180deg, rgba(0, 112, 78, .3), rgba(0, 54, 41, .12));
}

.source-home-games .provider-tab,
.category-tab {
  color: var(--eg-muted) !important;
}

.source-home-games .provider-tab .tab-icon-wrapper,
.source-home-games .provider-tab .provider-logo-box,
.tab-icon-wrapper {
  background-color: #00533b !important;
  background-image: linear-gradient(145deg, #087654, #003829) !important;
  border: 1px solid var(--eg-border) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 12px rgba(0, 212, 140, .08), 0 3px 9px rgba(0,0,0,.26) !important;
}

.source-home-games .provider-tab.active,
.category-tab.active {
  color: var(--eg-gold) !important;
  text-shadow: 0 0 10px rgba(243, 214, 106, .22);
}

.source-home-games .provider-tab.active .tab-icon-wrapper,
.source-home-games .provider-tab.active .provider-logo-box,
.category-tab.active .tab-icon-wrapper {
  background-color: #087957 !important;
  background-image: linear-gradient(145deg, #0a9366, #004a36) !important;
  border-color: var(--eg-gold-light) !important;
  box-shadow: inset 0 0 15px rgba(243, 214, 106, .12), 0 0 13px rgba(243, 214, 106, .2) !important;
}

.source-home-games .provider-tab .provider-logo-official.provider-logo-light,
.source-home-games .category-brand-light {
  background: #fff8d9 !important;
}

.source-home-games .provider-logo-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--eg-gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.35px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

.source-home-games .category-header,
.section-heading {
  background: linear-gradient(90deg, rgba(1, 74, 52, .72), rgba(0, 42, 31, .28)) !important;
  border: 1px solid rgba(243, 214, 106, .24) !important;
}

.source-home-games .category-name,
.source-home-games .section-title,
.source-home-games .vendor-name,
.game-section h2 {
  color: var(--eg-gold-light) !important;
}

.source-home-games .arrow-btn,
.source-home-games .todos,
.source-home-games .mais,
.source-home-games .section-actions button {
  color: var(--eg-text) !important;
  background: linear-gradient(145deg, #0b7d58, #003d2e) !important;
  border: 1px solid var(--eg-border) !important;
  border-radius: 9px !important;
  box-shadow: 0 3px 8px rgba(0,0,0,.25) !important;
}

.source-home-games .home-game-cover,
.game-card,
.game-detail-card {
  background-color: #004331 !important;
  border: 1px solid rgba(216, 179, 58, .94) !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.025) !important;
}

.source-home-games .home-game-cover > .fav-icon,
.source-home-games .home-game-cover > .heart {
  filter: brightness(0) saturate(100%) invert(88%) sepia(75%) saturate(570%) hue-rotate(345deg) brightness(103%) contrast(94%) drop-shadow(0 1px 2px rgba(0, 0, 0, .72)) !important;
}

.source-home-games .game-provider-name {
  color: var(--eg-gold-light) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.source-home-games .game-provider-logo {
  background: transparent !important;
}

.source-home-games .home-game-page .game-card {
  width: 25% !important;
  border: 0 !important;
  box-shadow: none !important;
}

.home-game-cover .game-provider-footer {
  background: linear-gradient(0deg, rgba(0, 30, 22, .98), rgba(0, 51, 37, .7) 72%, transparent) !important;
}

.source-home-footer .share-section,
.source-home-footer .footer-brand-row {
  background: linear-gradient(180deg, rgba(0, 78, 55, .46), rgba(0, 38, 29, .18)) !important;
  border-top: 1px solid var(--eg-border-soft) !important;
  border-bottom: 1px solid rgba(243, 214, 106, .16) !important;
}

.source-home-footer .download-btn {
  color: #08251c !important;
  background: var(--eg-gold-gradient) !important;
  border: 1px solid var(--eg-gold-light) !important;
}

.source-home-footer .footer-text,
.source-home-footer .footer-bottom {
  color: var(--eg-muted) !important;
}

/* Fixed navigation */
.bottom-nav {
  background-color: rgba(0, 78, 55, .98) !important;
  background-image: linear-gradient(180deg, rgba(9, 111, 77, .98), rgba(0, 57, 43, .99)) !important;
  border-top: 1.5px solid var(--eg-border) !important;
  box-shadow: 0 -8px 26px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.08), 0 -1px 10px rgba(247,220,104,.1) !important;
  backdrop-filter: blur(14px);
}

.bottom-nav button,
.bottom-nav button em {
  color: var(--eg-text) !important;
  text-shadow: 0 2px 3px rgba(0,0,0,.5);
}

.bottom-nav button.active,
.bottom-nav button.active em {
  color: var(--eg-gold) !important;
}

.bottom-nav button.active span:not(.commission span) {
  border-radius: 12px;
  background: var(--eg-gold-gradient) !important;
  border: 1px solid #fff2a8;
  box-shadow: 0 4px 13px rgba(0,0,0,.36), 0 0 14px rgba(243,214,106,.22);
}

.bottom-nav button.active::before {
  filter: sepia(1) saturate(1.3) hue-rotate(348deg) brightness(1.08);
}

.bottom-nav .commission span {
  border-radius: 50%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.38));
}

/* Shared inner pages and forms */
.inner-page,
.source-profile-live,
.source-settings-live,
.source-account-live,
.source-deposit-live,
.source-withdraw-live,
.source-vip-live,
.source-original-promo.sign-in-page {
  color: var(--eg-text) !important;
  background-color: var(--eg-bg) !important;
  background-image:
    radial-gradient(circle at 78% 0, rgba(0, 210, 140, .18), transparent 31%),
    linear-gradient(180deg, #003e2d, #001d17) !important;
}

.inner-header,
.source-account-live .u-navbar__content,
.source-settings-live .u-navbar__content,
.source-deposit-live .deposit-header,
.source-original-promo .u-navbar__content {
  color: var(--eg-text) !important;
  background: linear-gradient(180deg, rgba(0, 69, 49, .98), rgba(0, 39, 29, .98)) !important;
  border-bottom: 1px solid var(--eg-border-soft) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.28) !important;
}

.inner-header h1,
.source-original-promo .u-navbar__content__title,
.source-original-promo .page-title,
.source-original-promo .modal-title {
  color: var(--eg-gold-light) !important;
}

.api-form,
.api-records,
.api-payment-result,
.api-rich-content {
  color: var(--eg-text) !important;
}

.api-form input,
.api-form select,
.api-form textarea,
.source-account-live .source-account-input,
.source-account-live select,
.source-deposit-live .amount-input,
.source-settings-live .settings-mask-control,
.source-settings-dialog .modal-input,
.source-settings-dialog .settings-secret-control,
.source-original-promo input,
.source-original-promo select,
.source-original-promo textarea {
  color: var(--eg-text) !important;
  -webkit-text-fill-color: var(--eg-text) !important;
  background-color: rgba(0, 40, 30, .9) !important;
  border: 1px solid rgba(243, 214, 106, .58) !important;
  border-radius: 9px !important;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.24) !important;
}

.api-form input::placeholder,
.api-form textarea::placeholder,
.source-original-promo input::placeholder,
.source-original-promo textarea::placeholder {
  color: #91aa9d !important;
  -webkit-text-fill-color: #91aa9d !important;
  opacity: 1;
}

.api-form button,
.api-action,
.gold-submit,
.auth-submit,
.source-account-live .source-account-submit,
.source-deposit-live .submit-button,
.source-original-promo .primary-button,
.source-original-promo button[class*="confirm"]:not(.new-dialog-cancel) {
  color: #09261d !important;
  background: var(--eg-gold-gradient) !important;
  border: 1px solid #fff0a1 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 5px 13px rgba(0,0,0,.3) !important;
  font-weight: 700 !important;
}

.api-form .api-secondary,
.source-account-live .source-account-preset,
.source-deposit-live .amount-option,
.source-original-promo .secondary-button {
  color: var(--eg-text) !important;
  background: linear-gradient(145deg, #087653, #00382a) !important;
  border: 1px solid var(--eg-border-soft) !important;
}

.source-deposit-live .deposit-customer-fields {
  display: grid;
  gap: 12px;
  margin: 16px 0 6px;
}

.source-deposit-live .deposit-customer-fields[hidden] {
  display: none !important;
}

.source-deposit-live .deposit-customer-field {
  display: block;
}

.source-deposit-live .deposit-customer-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font: inherit;
}

.source-deposit-live .payment-code-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.source-deposit-live .payment-code-panel label,
.source-deposit-live .payment-code-panel span {
  display: block;
}

.source-deposit-live .payment-code-panel textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 92px;
  margin-top: 6px;
  padding: 10px;
  resize: vertical;
  overflow-wrap: anywhere;
}

.source-deposit-live .payment-code-panel button {
  min-height: 42px;
  border-radius: 9px;
}

.api-form button:disabled,
.api-action:disabled,
.source-original-promo button:disabled {
  filter: saturate(.35);
  opacity: .58 !important;
}

.api-auth-link,
a,
.source-account-live .source-account-bank {
  color: var(--eg-gold) !important;
}

.api-note,
.api-record small,
.api-empty,
.api-loading,
.load-more,
.empty-state,
.source-deposit-live .source-deposit-units {
  color: var(--eg-muted) !important;
}

.api-record,
.api-rich-content:not(.source-activity-content) td {
  border-color: var(--eg-border-soft) !important;
}

.api-error,
.registration-login-error,
.source-original-promo .error {
  color: #ffaaa2 !important;
}

.activity-card,
.sign-bet-card,
.sign-reward-container,
.source-original-promo .card,
.source-original-promo [class*="card"]:not(.game-card) {
  color: var(--eg-text);
  background-color: rgba(0, 57, 41, .9) !important;
  border-color: var(--eg-border-soft) !important;
  box-shadow: var(--eg-shadow) !important;
}

.activity-card > div {
  background: linear-gradient(145deg, rgba(4, 83, 58, .92), rgba(0, 42, 31, .96));
  border-top: 1px solid var(--eg-border-soft);
}

.activity-card > div > button:not(.received) {
  color: #09261d !important;
  background: var(--eg-gold-gradient) !important;
  border: 1px solid var(--eg-gold-light) !important;
}

.record-tabs,
.source-account-tabs {
  background: rgba(0, 38, 29, .94) !important;
  border-bottom: 1px solid var(--eg-border-soft);
}

.record-tabs button,
.source-account-tabs button {
  color: var(--eg-muted) !important;
}

.record-tabs button.active,
.source-account-tabs [aria-selected="true"] {
  color: var(--eg-gold-light) !important;
  border-color: var(--eg-gold) !important;
}

.source-account-tabs [aria-selected="true"]::after {
  background: var(--eg-gold) !important;
}

.switch.active,
.source-profile-live .switch.active {
  background: var(--eg-gold) !important;
}

.row-chevron,
.source-profile-live .profile-arrow {
  color: var(--eg-gold) !important;
}

/* Profile: account details and the selected wallet share one compact card. */
.source-profile-live {
  box-sizing: border-box;
  padding: 10px 12px 118px;
}

.source-profile-live .profile-hero.d_m_user_layout {
  display: block !important;
  margin: 8px 0 14px;
  padding: 14px;
  color: var(--eg-text);
  background:
    linear-gradient(135deg, rgba(11, 103, 75, .92), rgba(0, 37, 29, .97)),
    var(--img-images-mines-personal_bg-png, url(assets/original/static/images/mines/personal_bg.png)) center/cover no-repeat !important;
  border: 1px solid rgba(243, 214, 106, .58);
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3), inset 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}

.source-profile-live .profile-utility-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(243, 214, 106, .28);
}

.source-profile-live .profile-utility-row .top-btn {
  display: grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 8px;
  color: var(--eg-text);
  background: rgba(0, 35, 27, .58);
  border: 1px solid rgba(243, 214, 106, .26);
  border-radius: 10px;
}

.source-profile-live .profile-utility-row .top-icon,
.source-profile-live .profile-utility-row uni-image.top-icon {
  display: block;
  width: 22px !important;
  height: 22px !important;
}

.source-profile-live .profile-utility-row .top-label {
  font-size: 12px;
  white-space: nowrap;
}

.source-profile-live .profile-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(210px, .95fr);
  gap: 12px;
  padding: 14px 0;
}

.source-profile-live .profile-identity,
.source-profile-live .profile-wallet-card {
  min-width: 0;
  padding: 14px;
  background: rgba(0, 31, 24, .7);
  border: 1px solid rgba(243, 214, 106, .24);
  border-radius: 14px;
}

.source-profile-live .profile-identity-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}

.source-profile-live .profile-identity .avatar {
  flex: 0 0 70px;
  width: 70px !important;
  height: 70px !important;
  margin: 0 !important;
  padding: 3px;
  background: linear-gradient(145deg, rgba(0, 79, 57, .96), rgba(0, 35, 27, .98));
  border: 1px solid rgba(243, 214, 106, .72);
  border-radius: 16px;
  box-shadow: 0 5px 14px rgba(0,0,0,.3);
}

.source-profile-live .profile-identity .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.source-drawer-archive .drawer-avatar {
  box-sizing: border-box;
  object-fit: contain !important;
  padding: 3px;
  background: linear-gradient(145deg, rgba(0, 79, 57, .96), rgba(0, 35, 27, .98));
  border: 1px solid rgba(243, 214, 106, .72);
  border-radius: 14px !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.3);
}

.source-profile-live .profile-name-block {
  min-width: 0;
}

.source-profile-live .profile-name-block .username {
  max-width: 100%;
  margin: 0 0 6px !important;
  color: var(--eg-gold-light);
  font-size: 19px !important;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-profile-live .profile-name-block .id_row {
  justify-content: flex-start;
  color: var(--eg-muted) !important;
  font-size: 12px !important;
}

.source-profile-live .profile-copy {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 5px;
  padding: 0;
  color: var(--eg-gold);
  background: rgba(255,255,255,.06);
  border: 0;
  border-radius: 8px;
}

.source-profile-live .profile-details {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(243, 214, 106, .2);
}

.source-profile-live .profile-detail-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 23px;
}

.source-profile-live .profile-contact-row {
  width: 100%;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  padding: 4px 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.source-profile-live .profile-contact-row:not(:disabled):hover,
.source-profile-live .profile-contact-row:not(:disabled):focus-visible {
  background: rgba(243, 214, 106, .08);
  outline: 1px solid rgba(243, 214, 106, .35);
  outline-offset: 2px;
}

.source-profile-live .profile-contact-row:disabled {
  cursor: default;
  opacity: 1;
}

.source-profile-live .profile-contact-action {
  min-width: 45px;
  padding: 3px 7px;
  color: #08261c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: var(--eg-gold-gradient);
  border: 1px solid #fff1a5;
  border-radius: 999px;
  white-space: nowrap;
}

.source-profile-live .profile-contact-row:disabled .profile-contact-action {
  color: var(--eg-muted);
  background: rgba(255,255,255,.06);
  border-color: rgba(243, 214, 106, .22);
}

.source-profile-live .profile-detail-label,
.source-profile-live .profile-wallet-stat-label,
.source-profile-live .profile-balance-label {
  color: var(--eg-muted);
  font-size: 11px;
}

.source-profile-live .profile-detail-value {
  color: var(--eg-text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.profile-contact-overlay[hidden] {
  display: none !important;
}

.profile-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 18px;
  background: rgba(0, 15, 12, .8);
  backdrop-filter: blur(5px);
}

.profile-contact-dialog {
  position: relative;
  width: min(410px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 25px 20px 20px;
  color: var(--eg-text);
  background: linear-gradient(155deg, #124f3c, #062c23 62%, #041f19);
  border: 1px solid rgba(243, 214, 106, .78);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.06);
}

.profile-contact-dialog h2 {
  margin: 0 36px 7px 0;
  color: var(--eg-gold-light);
  font-size: 20px;
}

.profile-contact-note {
  margin: 0 0 18px;
  color: var(--eg-muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--eg-gold-light);
  font-size: 25px;
  line-height: 1;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(243, 214, 106, .38);
  border-radius: 50%;
}

.profile-contact-field {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: var(--eg-gold-light);
  font-size: 12px;
  font-weight: 700;
}

.profile-contact-field input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  padding: 0 13px;
  color: #fff;
  background: rgba(0, 25, 20, .7);
  border: 1px solid rgba(243, 214, 106, .66);
  border-radius: 12px;
  outline: 0;
}

.profile-contact-field input:focus {
  border-color: #fff0a0;
  box-shadow: 0 0 0 3px rgba(243, 214, 106, .13);
}

.profile-contact-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.profile-contact-code button {
  min-width: 104px;
  padding: 0 12px;
  color: #08261c;
  font-size: 12px;
  font-weight: 800;
  background: var(--eg-gold-gradient);
  border: 1px solid #fff1a5;
  border-radius: 12px;
}

.profile-contact-code button:disabled {
  opacity: .58;
}

.profile-contact-dialog .api-error {
  min-height: 18px;
  margin: 9px 0 0;
  color: #ff9b91;
  font-size: 12px;
}

.profile-contact-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  color: #08261c;
  font-size: 15px;
  font-weight: 900;
  background: var(--eg-gold-gradient);
  border: 1px solid #fff1a5;
  border-radius: 14px;
}

.source-profile-live .profile-wallet-card {
  position: relative;
  background: linear-gradient(145deg, rgba(0, 84, 59, .86), rgba(0, 37, 29, .96));
  border-color: rgba(243, 214, 106, .52);
}

.source-profile-live .profile-wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.source-profile-live .profile-wallet-title {
  color: var(--eg-gold-light);
  font-size: 12px;
  font-weight: 700;
}

.source-profile-live .profile-wallet-code {
  padding: 4px 9px;
  color: #08261c;
  background: var(--eg-gold-gradient);
  border: 1px solid #fff1a5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.source-profile-live .profile-balance-label {
  display: block;
  margin-top: 16px;
}

.source-profile-live .profile-balance-value {
  display: block;
  min-height: 34px;
  margin: 2px 0 14px;
  color: #fff4a4;
  font-size: clamp(23px, 5vw, 31px);
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.source-profile-live .profile-wallet-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.source-profile-live .profile-wallet-stat {
  min-width: 0;
  padding: 8px;
  background: rgba(0, 25, 19, .56);
  border-radius: 9px;
}

.source-profile-live .profile-wallet-stat-label,
.source-profile-live .profile-wallet-stat-value {
  display: block;
}

.source-profile-live .profile-wallet-stat-value {
  margin-top: 3px;
  color: var(--eg-text);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.source-profile-live .profile-money-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px !important;
}

.source-profile-live .profile-money-actions .btn_item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 46px;
  margin: 0 !important;
  padding: 9px 12px !important;
  color: #09261d;
  background: linear-gradient(180deg, #fff8bf, #e6bd4b 58%, #ba7415) !important;
  border: 1px solid #fff0a1;
  border-radius: 12px !important;
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 5px 13px rgba(0,0,0,.25) !important;
  font-size: 14px !important;
  font-weight: 750;
}

.source-profile-live .profile-money-actions .btn_item:nth-child(2) {
  background: linear-gradient(180deg, #cdf7d8, #4fc77a 58%, #148246) !important;
  border-color: #bff2ca;
}

.source-profile-live .profile-money-actions .profile-money-icon {
  width: 20px !important;
  height: 20px !important;
}

.source-profile-live .d_m_vip {
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: linear-gradient(145deg, rgba(0, 64, 47, .94), rgba(0, 32, 25, .98)) !important;
  border: 1px solid rgba(243, 214, 106, .38);
  border-radius: 16px !important;
  box-shadow: var(--eg-shadow);
  overflow: hidden;
}

.source-profile-live .d_m_vip .vi_top {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: auto !important;
  min-height: 112px;
  padding: 12px 14px !important;
  color: var(--eg-text);
  background: transparent;
  border: 0;
}

.source-profile-live .d_m_vip .v_t_toptext {
  position: static !important;
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: var(--eg-gold-light);
  font-size: 12px !important;
  text-align: right;
}

.source-profile-live .d_m_vip .v_t_fl,
.source-profile-live .d_m_vip .v_t_fr {
  margin: 0 !important;
  padding: 0 !important;
}

.source-profile-live .d_m_vip .v_t_fl {
  color: var(--eg-gold-light);
  font-weight: 800;
  text-align: center;
}

.source-profile-live .d_m_list {
  margin: 0 0 14px !important;
  padding: 0 12px !important;
  background: rgba(0, 54, 40, .8) !important;
  border: 1px solid rgba(243, 214, 106, .2);
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.source-profile-live .d_m_list .li_items {
  min-height: 54px;
  height: auto !important;
  border-bottom-color: rgba(243, 214, 106, .22) !important;
}

.source-profile-live .profile-status:empty {
  display: none;
}

@media (max-width: 520px) {
  .source-profile-live {
    padding-inline: 9px;
  }

  .source-profile-live .profile-hero.d_m_user_layout {
    padding: 11px;
    border-radius: 15px !important;
  }

  .source-profile-live .profile-utility-row {
    justify-content: stretch;
  }

  .source-profile-live .profile-utility-row .top-btn {
    grid-template-columns: 20px minmax(0, auto);
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 5px;
  }

  .source-profile-live .profile-main-grid {
    grid-template-columns: 1fr;
    padding: 11px 0;
  }

  .source-profile-live .profile-identity,
  .source-profile-live .profile-wallet-card {
    padding: 12px;
  }

  .source-profile-live .profile-wallet-breakdown {
    gap: 6px;
  }
}

/* Authentication popup from the archived source */
.source-auth-archive {
  background: rgba(0, 18, 13, .84) !important;
  backdrop-filter: blur(6px);
}

.source-auth-archive .d_login_popup {
  background: linear-gradient(155deg, #08704f, #003427 58%, #001e18) !important;
  border: 1px solid var(--eg-border) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.68), inset 0 0 30px rgba(0,201,134,.08) !important;
}

.source-auth-archive .name_title {
  background: linear-gradient(90deg, #006848 0%, #0a8d61 50%, #006848 100%) !important;
  border-bottom-color: var(--eg-border-soft) !important;
}

.source-auth-archive .name_title_text {
  color: var(--eg-muted) !important;
}

.source-auth-archive .name_title_text_active {
  color: var(--eg-gold-light) !important;
}

.source-auth-archive .name_title_text_active::before {
  border-bottom-color: #00251c !important;
}

.source-auth-archive .login_form {
  background: #00251c !important;
}

.source-auth-archive .auth-input,
.source-auth-archive .auth-api-extra select,
.source-auth-archive .auth-api-extra input {
  background: rgba(0, 36, 27, .94) !important;
  border: 1px solid rgba(243, 214, 106, .54) !important;
  border-radius: 10px !important;
}

.source-auth-archive .auth-submit {
  border-radius: 11px !important;
}

.source-auth-archive .auth-agreement > input {
  accent-color: var(--eg-gold) !important;
}

.source-auth-archive .auth-wallet-field {
  margin-top: 14px !important;
  color: #dcebe2 !important;
  font-size: 13px !important;
}

.source-auth-archive .auth-wallet-field > span {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}

.source-auth-archive .auth-wallet-field select {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 0 !important;
  padding: 0 38px 0 13px !important;
  color: #fff7c5 !important;
  font-size: 14px !important;
  font-weight: 650;
  cursor: pointer;
}

.source-auth-archive .auth-wallet-field select:focus-visible {
  border-color: #fff0a1 !important;
  box-shadow: 0 0 0 3px rgba(243, 214, 106, .18) !important;
}

.source-auth-archive .auth-wallet-field small {
  margin-top: 6px !important;
  color: rgba(220, 235, 226, .78) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

/* Remaining account, utility and record routes use the same palette. */
.source-original-promo[class*="-live"],
.source-original-promo.source-activity-page,
.source-original-promo.source-records,
.source-original-promo.source-campaigns {
  color: var(--eg-text) !important;
  background-color: var(--eg-bg) !important;
}

.source-original-promo .d_bgColor,
.source-original-promo .border_shadow,
.source-original-promo :is(.li_items, .rows, .d_a_tab, .d_a_list, .s_a_tab, .s_a_play, .support-card, .rp-card, .limit-card, .bind_form, .tr_li_items, .modal-box) {
  color: var(--eg-text) !important;
  background-color: rgba(0, 55, 40, .9) !important;
  border-color: var(--eg-border-soft) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 5px 14px rgba(0,0,0,.3) !important;
}

.source-original-promo :is(.u-button, .submit-button > button, .action-btn, .receive-btn, .claim-btn, .chat-button, .rp-btn, .limit-btn, .resgatar-btn, .receber-btn, .sorteio-btn, .source-payment-refresh) {
  color: #09261d !important;
  background: var(--eg-gold-gradient) !important;
  border: 1px solid #fff0a1 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 5px 13px rgba(0,0,0,.3) !important;
  font-weight: 700 !important;
}

.source-original-promo :is(.tab-item, [role="tab"], .category-tabs button) {
  color: var(--eg-muted) !important;
}

.source-original-promo :is(.tab-item.active, [role="tab"][aria-selected="true"], .category-tabs button.active) {
  color: var(--eg-gold-light) !important;
  border-color: var(--eg-gold) !important;
}

.source-original-promo :is(.tab-item.active, [role="tab"][aria-selected="true"])::after {
  background-color: var(--eg-gold) !important;
}

.source-bind-live :is(.bind_input, .u-input),
.source-fundpin-live .u-code-input,
.source-bank-picker .u-picker,
.source-bank-picker .source-bank-wheel {
  color: var(--eg-text) !important;
  background: #003426 !important;
  border-color: var(--eg-border-soft) !important;
}

.source-bank-picker .source-bank-wheel-indicator {
  border-color: var(--eg-border) !important;
  background: rgba(0, 113, 77, .28) !important;
}

.source-bank-picker .u-toolbar,
.source-bank-picker .source-bank-options {
  color: var(--eg-text) !important;
  background: #00271f !important;
}

.source-bank-picker .u-toolbar__wrapper__confirm,
.source-fundpin-live .u-code-input__item,
.source-withdraw-live .source-withdraw-bank {
  color: var(--eg-gold-light) !important;
  border-color: var(--eg-border) !important;
}

.source-framebox-live .uni-page-head,
.source-sidebar-live .uni-page-head {
  color: var(--eg-gold-light) !important;
  background: linear-gradient(180deg, #004832, #00291f) !important;
  border-bottom: 1px solid var(--eg-border) !important;
}

.source-framebox-live .uni-btn-icon,
.source-sidebar-live .uni-btn-icon {
  color: var(--eg-gold-light) !important;
}

.source-sidebar-live :is(.sidebar, .content),
.source-notice-live [data-original-notice-body],
.source-history-live .three_list,
.source-records-live .three_list {
  color: var(--eg-text) !important;
  background: rgba(0, 49, 36, .9) !important;
  border-color: var(--eg-border-soft) !important;
}

.source-game-list-live,
.source-game-detail-live {
  background-color: var(--eg-bg) !important;
  background-image: linear-gradient(180deg, #003d2c, #001d17) !important;
}

.source-game-list-live .legacy-tab.active,
.source-game-detail-live .active {
  color: var(--eg-gold-light) !important;
  border-color: var(--eg-gold) !important;
}

.source-game-list-live .legacy-game-card,
.source-game-detail-live .game-detail-card {
  background: #003426 !important;
  border: 1px solid var(--eg-border-soft) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.32) !important;
}

/* Sidebar, dialogs and system popups */
.sidebar-shade,
.dialog-shade,
.platform-notice-overlay,
.registration-login-popup {
  background: rgba(0, 13, 10, .76) !important;
  backdrop-filter: blur(5px);
}

.sidebar-panel,
.sidebar-panel.open {
  color: var(--eg-text) !important;
  background: linear-gradient(180deg, #00503a, #00281f 62%, #001b16) !important;
  border-right: 1px solid var(--eg-border) !important;
  box-shadow: 12px 0 28px rgba(0,0,0,.46) !important;
}

.platform-notice-card,
.registration-login-card,
.source-profile-dialog .new-dialog,
.source-settings-dialog .modal-box,
.dialog-shade > * {
  color: var(--eg-text) !important;
  background: linear-gradient(155deg, #08704f, #003427 58%, #001e18) !important;
  border: 1px solid var(--eg-border) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.65), inset 0 0 28px rgba(0,201,134,.07) !important;
}

.platform-notice-title,
.registration-login-card h2,
.registration-login-amount {
  color: var(--eg-gold-light) !important;
}

.platform-notice-confirm,
.registration-login-popup .registration-login-claim,
.source-profile-dialog .new-dialog-confirm {
  color: #09261d !important;
  background: var(--eg-gold-gradient) !important;
  border: 1px solid #fff0a1 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 5px 13px rgba(0,0,0,.3) !important;
}

.toast {
  color: var(--eg-text) !important;
  background: rgba(0, 45, 33, .96) !important;
  border: 1px solid var(--eg-border) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.42) !important;
}

/* Promotion pages keep their artwork but share the green/gold surfaces. */
.source-original-promo.sign-in-page .sign-icon-wrapper,
.source-original-promo.sign-in-page .sign-reward-list article,
.source-original-promo.sign-in-page .sign-reward-container > header,
.source-original-promo.sign-in-page .sign-fixed-footer {
  background: #003426 !important;
  border-color: var(--eg-border-soft) !important;
}

.source-original-promo.sign-in-page .sign-level-item.active .sign-icon-wrapper,
.source-original-promo.sign-in-page .sign-fixed-footer button {
  color: #09261d !important;
  background: var(--eg-gold-gradient) !important;
  border: 1px solid var(--eg-gold-light) !important;
}

.source-original-promo.sign-in-page .sign-progress-bg i,
.source-original-promo.sign-in-page .sign-mark-item > span i.active {
  background: var(--eg-gold) !important;
}

.source-original-promo.sign-in-page .sign-current-level strong,
.source-original-promo.sign-in-page .sign-reward-amount b {
  color: var(--eg-gold-light) !important;
}

@media (max-width: 360px) {
  .hero { margin-left: 8px !important; margin-right: 8px !important; }
  .source-home-head .api-account-actions { gap: 4px; }
  .source-home-head .api-account-actions .api-action { width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* UI geometry: denser, larger mobile controls and hierarchy from the reference. */
body {
  padding-top: 0 !important;
  transition: none !important;
}

html.language-bar-collapsed > body {
  padding-top: 0 !important;
  transition: none !important;
}

html.language-bar-collapsed body > .language-bar {
  transform: translateX(-50%) translateY(-110%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.app-shell,
.page-outlet,
#pageOutlet:has(>.notice-center-page) {
  background-image:
    radial-gradient(circle at 82% 4%, rgba(0, 218, 144, .25), transparent 34%),
    radial-gradient(circle at 8% 47%, rgba(0, 148, 97, .16), transparent 30%),
    linear-gradient(180deg, #00523b 0%, #00442f 52%, #002d23 100%),
    url("assets/1f02d5ffafe2b641.png") !important;
  background-position: center top, center top, center top, center top !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% auto !important;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat-y !important;
}

.source-original-promo .u-navbar--fixed,
.inner-header,
.source-record-header,
.source-original-promo .uni-page-head,
html .source-game-detail-live.game-detail-overlay {
  top: var(--language-bar-height) !important;
}

.language-toggle {
  display: inline-flex !important;
  color: transparent !important;
  background: transparent !important;
  border-color: transparent !important;
}

.language-bar-close {
  display: grid !important;
}

.notice-bar .language-bar,
html.language-bar-collapsed .notice-bar .language-bar {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: flex !important;
  flex: 0 0 88px;
  width: 88px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 5px 0 24px !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  color: var(--eg-gold-light) !important;
  background: linear-gradient(145deg, rgba(0, 79, 56, .96), rgba(0, 37, 28, .98)) !important;
  border: 1px solid var(--eg-border) !important;
  border-radius: 11px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3) !important;
}

.notice-bar .language-bar::before {
  content: "🌐";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

.notice-bar .language-bar label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.notice-bar .language-bar select {
  width: 100% !important;
  max-width: none !important;
  min-height: 30px !important;
  padding: 0 2px !important;
  appearance: none;
  color: var(--eg-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  text-align: center;
  text-overflow: ellipsis;
}

.topbar,
.source-home-head {
  height: 64px !important;
  padding: 7px 10px !important;
  gap: 8px !important;
  background: linear-gradient(180deg, rgba(0, 57, 42, .99), rgba(0, 35, 27, .99)) !important;
}

.menu-button {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;
  border-radius: 9px !important;
}

.menu-button img {
  width: 36px !important;
  height: 36px !important;
}

.brand {
  width: 128px !important;
  height: 40px !important;
  flex-basis: 128px !important;
  margin-left: 3px !important;
}

.source-home-head .api-account-actions {
  gap: 6px !important;
}

.source-home-head .api-account-actions .api-action {
  width: 62px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 10px !important;
  line-height: 1.05 !important;
}

.service {
  width: 34px !important;
  height: 34px !important;
  flex-basis: 34px !important;
  margin-left: 2px !important;
}

#homeView .hero {
  aspect-ratio: 2.62 / 1 !important;
  min-height: 126px;
  margin: 14px 12px 8px !important;
  border-width: 1px !important;
  border-radius: 15px !important;
}

#homeView .hero-track,
#homeView .hero-slide {
  width: 100% !important;
  min-width: 100% !important;
}

#homeView .hero-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.hero:has(.hero-track:empty)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(58, 255, 181, .15) 42%, rgba(243, 214, 106, .12) 52%, transparent 72%);
  animation: eg-hero-shimmer 2.2s ease-in-out infinite;
}

@keyframes eg-hero-shimmer {
  0%, 100% { transform: translateX(-45%); opacity: .35; }
  50% { transform: translateX(45%); opacity: 1; }
}

.notice-bar {
  height: 46px !important;
  margin: 16px 10px 10px !important;
  padding: 0 !important;
  gap: 7px !important;
}

.notice-main {
  height: 44px !important;
  padding: 0 11px !important;
  background: linear-gradient(145deg, rgba(0, 77, 55, .98), rgba(0, 43, 33, .99)) !important;
}

.message-button {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  flex-basis: 44px !important;
  background: linear-gradient(145deg, rgba(0, 77, 55, .98), rgba(0, 43, 33, .99)) !important;
}

.source-home-games.container {
  min-height: 0 !important;
  background: linear-gradient(180deg, rgba(0, 77, 54, .82), rgba(0, 55, 40, .92)) !important;
}

.source-home-games .category-bar {
  padding: 13px 12px 15px !important;
  background: linear-gradient(180deg, rgba(0, 70, 50, .42), rgba(0, 45, 34, .14)) !important;
  border-top: 1px solid rgba(247, 220, 104, .18) !important;
  border-bottom: 1px solid rgba(247, 220, 104, .13) !important;
}

.source-home-games .provider-tab,
.category-tab {
  margin-right: 16px !important;
}

.source-home-games .provider-tab .tab-name,
.category-tab .tab-name {
  max-width: 66px !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 16px !important;
}

.source-home-games .provider-tab .tab-icon-wrapper,
.source-home-games .provider-tab .provider-logo-box,
.tab-icon-wrapper {
  width: 48px !important;
  height: 48px !important;
  padding: 5px !important;
  background-color: #00382a !important;
  background-image: linear-gradient(145deg, #075f47, #002b22) !important;
}

.source-home-games .category-header,
.source-home-games .section-heading {
  min-height: 40px !important;
  margin-bottom: 0 !important;
  padding: 0 4px !important;
  background: transparent !important;
  border: 0 !important;
}

.source-home-games .section-actions,
.source-home-games .header-actions {
  gap: 7px !important;
}

.source-home-games .section-actions button,
.source-home-games .header-actions button {
  min-height: 36px !important;
  padding: 7px 11px !important;
  font-size: 12px !important;
}

.source-home-games .game-sections,
.source-home-games .content-scroll {
  padding: 4px 10px 20px !important;
}

.source-home-games .category-section + .category-section {
  padding-top: 12px !important;
  border-top: 1px solid rgba(247, 220, 104, .12) !important;
}

.source-home-games .game-row,
.source-home-games .home-game-page,
.source-home-games .game-grid {
  gap: 0 !important;
}

.source-home-games .game-card {
  padding: 0 4px 8px !important;
  background: transparent !important;
  border-radius: 10px !important;
}

.source-home-games .home-game-cover {
  border: 0 !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: none !important;
}

/* Remote thumbnails contain a pale anti-aliased top rim. Crop that source rim. */
.source-home-games .home-game-cover > img.game-img {
  top: -6px !important;
  height: calc(100% + 6px) !important;
  border-radius: 0 !important;
}

/* Keep the lobby catalogue compact: four smaller covers per row. */
.source-home-games .home-game-cover > .fav-icon,
.source-home-games .home-game-cover > .heart {
  top: 3px !important;
  right: 3px !important;
  width: 20px !important;
  height: 20px !important;
}

.source-home-games .home-game-cover .game-provider-footer {
  height: 20% !important;
  min-height: 22px !important;
  padding: 1px 4px !important;
}

.source-home-games .home-game-cover .game-provider-footer > .game-provider-logo {
  max-width: 96px !important;
  max-height: 28px !important;
}

.source-home-games .game-provider-name {
  font-size: 9px !important;
}

.source-home-games .home-game-cover,
.game-card,
.game-detail-card {
  border-radius: 11px !important;
}

/* Final override: the legacy grouped rule above must not restore the pale top rim. */
.source-home-games .home-game-page .home-game-cover {
  border: 0 !important;
  border-radius: 10px !important;
  background: #003c2d !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .34) !important;
  overflow: hidden !important;
}

.floating-actions {
  left: calc(50% + min(calc(50vw - 34px), 211px)) !important;
  width: 58px !important;
  height: 58px !important;
}

.floating-actions button,
.floating-actions img {
  width: 58px !important;
  height: 58px !important;
}

.floating-actions .gift-float {
  transform: translateY(-66px) !important;
}

/* Match every fixed-width user module to the wider reference shell. */
.page-outlet.game-details-host,
.source-original-promo.sign-in-page .sign-fixed-footer,
.app-banner {
  width: min(100%, var(--shell)) !important;
  max-width: var(--shell) !important;
}

.bottom-nav {
  width: min(100%, var(--shell)) !important;
  height: 68px !important;
  padding: 3px 6px 4px !important;
  align-items: flex-end !important;
  background-color: rgba(0, 61, 46, .99) !important;
  background-image: linear-gradient(180deg, rgba(0, 73, 53, .99), rgba(0, 43, 34, .99)) !important;
}

.bottom-nav button {
  height: 62px !important;
  padding-bottom: 4px !important;
}

.bottom-nav button span,
.bottom-nav button:not(.commission) span {
  width: 31px !important;
  height: 31px !important;
  margin-bottom: 4px !important;
}

.bottom-nav button img {
  width: 29px !important;
  height: 29px !important;
}

.bottom-nav button em {
  font-size: 10px !important;
  line-height: 13px !important;
}

.bottom-nav button.active::before {
  bottom: 34px !important;
}

.bottom-nav button.active span:not(.commission span) {
  width: 54px !important;
  height: 47px !important;
  margin-bottom: 0 !important;
  transform: translateY(-10px) !important;
}

.bottom-nav .commission span {
  width: 58px !important;
  height: 54px !important;
  margin-top: -20px !important;
  margin-bottom: 4px !important;
}

.bottom-nav .commission img {
  width: 56px !important;
  height: 52px !important;
}

.inner-header {
  height: 60px !important;
  grid-template-columns: 54px 1fr 54px !important;
}

.inner-header h1 {
  font-size: 18px !important;
  font-weight: 700 !important;
}

.api-form {
  padding: 20px 16px 28px !important;
  gap: 15px !important;
}

.api-form input,
.api-form select,
.api-form textarea {
  min-height: 50px !important;
  padding: 12px 14px !important;
  border-radius: 11px !important;
}

.activity-card {
  border-radius: 13px !important;
}

.activity-card > div {
  min-height: 60px !important;
  padding: 10px 12px !important;
}

.platform-notice-card,
.registration-login-card,
.source-auth-archive .d_login_popup {
  border-radius: 18px !important;
}

.source-auth-archive .name_title {
  height: 92px !important;
  border-radius: 16px 16px 0 0 !important;
}

.source-auth-archive .login_form {
  margin-top: -13px !important;
  padding-top: 25px !important;
  border-radius: 16px 16px 0 0 !important;
}

/* Touch-friendly authentication fields: larger target, clearer grouping and focus. */
.source-auth-archive .d_login_popup {
  width: min(430px, calc(100vw - 24px)) !important;
  max-height: min(86vh, 760px) !important;
  padding: 18px 16px 20px !important;
}

.source-auth-archive .login_form {
  padding: 28px 18px 4px !important;
}

.source-auth-archive .input-group {
  margin-top: 14px !important;
}

.source-auth-archive .login_form > .input-group:first-child {
  margin-top: 0 !important;
}

.source-auth-archive .input-group .auth-input {
  width: 100% !important;
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 14px !important;
  border: 1.5px solid rgba(243, 214, 106, .78) !important;
  border-radius: 12px !important;
  background: rgba(0, 38, 29, .96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.source-auth-archive .input-group .auth-input:focus-within {
  border-color: #fff0a1 !important;
  background: rgba(0, 52, 39, .98) !important;
  box-shadow: 0 0 0 3px rgba(243, 214, 106, .18), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

.source-auth-archive .auth-input input {
  min-height: 56px !important;
  padding: 0 10px !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
}

.source-auth-archive .auth-input input::placeholder {
  color: rgba(224, 238, 230, .76) !important;
  opacity: 1;
}

.source-auth-archive .auth-input .uicon {
  flex: 0 0 auto;
  font-size: 21px !important;
}

.source-auth-archive .auth-eye {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-right: -8px;
  border-radius: 10px;
}

.source-auth-archive .auth-eye:focus-visible {
  outline-color: #fff0a1 !important;
}

.source-auth-archive .auth-submit {
  min-height: 56px !important;
  height: 56px !important;
  margin-top: 18px !important;
  font-size: 16px !important;
}

/* Drawer grouping: keep the account, feature and contact areas visually distinct. */
.source-drawer-archive .guest-buttons {
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--eg-border-soft) !important;
}

.source-drawer-archive .user-balance-wrapper {
  margin-top: 18px !important;
}

.source-drawer-archive .menu-grid {
  position: relative;
  margin: 2px 0 16px !important;
  padding: 18px 4px 20px !important;
  row-gap: 18px !important;
  border-top: 1px solid var(--eg-border-soft) !important;
  border-bottom: 1px solid var(--eg-border-soft) !important;
  background:
    linear-gradient(to bottom,
      transparent 32.8%, rgba(243, 214, 106, .16) 33%, transparent 33.2%,
      transparent 66%, rgba(243, 214, 106, .16) 66.2%, transparent 66.4%);
}

.source-drawer-archive .menu-item {
  min-height: 82px;
  padding: 3px 2px 8px !important;
}

/* Account utilities replace the old activity grid in the side drawer. */
.source-drawer-archive .drawer-account-list {
  display: flex;
  flex-direction: column;
  margin: 2px 0 16px;
  padding: 0 2px;
  border-top: 1px solid var(--eg-border-soft);
  border-bottom: 1px solid var(--eg-border-soft);
  background: rgba(0, 38, 29, .34);
}

.source-drawer-archive .drawer-account-row {
  display: flex !important;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 7px 10px !important;
  color: #fff !important;
  text-align: left;
  border-bottom: 1px solid rgba(243, 214, 106, .16) !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: background-color .16s ease, transform .16s ease;
}

.source-drawer-archive .drawer-account-row:last-child {
  border-bottom: 0 !important;
}

.source-drawer-archive .drawer-account-row:active {
  background: rgba(243, 214, 106, .1) !important;
  transform: translateX(2px);
}

.source-drawer-archive .drawer-account-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-right: 12px;
  overflow: hidden;
  border: 1px solid #f7dc68;
  border-radius: 11px;
  background: linear-gradient(145deg, #0a6b4d, #003326);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 3px 9px rgba(0, 0, 0, .3);
}

.source-drawer-archive .drawer-account-icon img {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(91%) sepia(59%) saturate(731%) hue-rotate(341deg) brightness(105%) contrast(96%) drop-shadow(0 1px 2px rgba(0, 0, 0, .42));
}

.source-drawer-archive .drawer-account-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.source-drawer-archive .sidebar-footer {
  padding-top: 2px !important;
}

.source-drawer-archive .sidebar-service-card,
.source-drawer-archive .sidebar-share-card {
  overflow: hidden;
  border: 1px solid var(--eg-border) !important;
  border-radius: 10px !important;
}

.source-drawer-archive .sidebar-share-card {
  margin-top: 10px !important;
}

.source-drawer-archive .sidebar-service-icon {
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .28));
}

body:has(.source-drawer-archive.open) > .language-toggle {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 360px) {
  .brand { width: 104px !important; flex-basis: 104px !important; }
  .source-home-head .api-account-actions .api-action { width: 50px !important; font-size: 11px !important; }
  .service { margin-left: 4px !important; }
  .notice-bar .language-bar { flex-basis: 76px; width: 76px !important; }
  #homeView .hero { margin-left: 10px !important; margin-right: 10px !important; }
  .source-auth-archive .d_login_popup { width: calc(100vw - 16px) !important; padding-inline: 10px !important; }
  .source-auth-archive .login_form { padding-inline: 10px !important; }
  .source-auth-archive .input-group .auth-input { min-height: 54px !important; height: 54px !important; padding-inline: 11px !important; }
  .source-auth-archive .auth-input input { min-height: 52px !important; }
}

/* Preserve true mobile proportions while widening desktop/device previews. */
@media (max-width: 480px) {
  .app-shell { padding-bottom: 72px !important; }
  .topbar,
  .source-home-head { height: 64px !important; padding: 7px 10px !important; gap: 8px !important; }
  .menu-button { width: 38px !important; height: 38px !important; flex-basis: 38px !important; }
  .menu-button img { width: 36px !important; height: 36px !important; }
  .brand { width: 128px !important; height: 40px !important; flex-basis: 128px !important; margin-left: 3px !important; }
  .source-home-head .api-account-actions .api-action { width: 62px !important; height: 34px !important; min-height: 34px !important; }
  .service { width: 34px !important; height: 34px !important; flex-basis: 34px !important; margin-left: 2px !important; }
  #homeView .hero { margin: 16px 12px 8px !important; border-radius: 15px !important; }
  .notice-bar { height: 46px !important; margin: 16px 10px 10px !important; gap: 7px !important; }
  .notice-main { height: 44px !important; padding: 0 11px !important; }
  .message-button { width: 44px !important; height: 44px !important; flex-basis: 44px !important; }
  .notice-bar .language-bar,
  html.language-bar-collapsed .notice-bar .language-bar { height: 44px !important; }
  .source-home-games .category-bar { padding: 13px 12px 15px !important; }
  .source-home-games .provider-tab,
  .category-tab { margin-right: 16px !important; }
  .source-home-games .provider-tab .tab-name,
  .category-tab .tab-name { max-width: 66px !important; margin-top: 6px !important; font-size: 12px !important; line-height: 16px !important; }
  .source-home-games .provider-tab .tab-icon-wrapper,
  .source-home-games .provider-tab .provider-logo-box,
  .tab-icon-wrapper { width: 48px !important; height: 48px !important; padding: 5px !important; }
  .source-home-games .category-header,
  .source-home-games .section-heading { min-height: 40px !important; margin-bottom: 0 !important; padding: 0 4px !important; }
  .source-home-games .section-actions button,
  .source-home-games .header-actions button { min-height: 36px !important; padding: 7px 11px !important; font-size: 12px !important; }
  .source-home-games .game-sections,
  .source-home-games .content-scroll { padding: 4px 10px 20px !important; }
  .source-home-games .game-card { padding: 0 4px 8px !important; }
  .floating-actions { left: calc(100% - 34px) !important; width: 58px !important; height: 58px !important; }
  .floating-actions button,
  .floating-actions img { width: 58px !important; height: 58px !important; }
  .floating-actions .gift-float { transform: translateY(-66px) !important; }
  .bottom-nav { height: 68px !important; padding: 3px 6px 4px !important; }
  .bottom-nav button { height: 62px !important; padding-bottom: 4px !important; }
  .bottom-nav button span,
  .bottom-nav button:not(.commission) span { width: 31px !important; height: 31px !important; margin-bottom: 4px !important; }
  .bottom-nav button img { width: 29px !important; height: 29px !important; }
  .bottom-nav button em { font-size: 10px !important; line-height: 13px !important; }
  .bottom-nav button.active span:not(.commission span) { width: 54px !important; height: 47px !important; transform: translateY(-10px) !important; }
  .bottom-nav .commission span { width: 58px !important; height: 54px !important; margin-top: -20px !important; }
  .bottom-nav .commission img { width: 56px !important; height: 52px !important; }
}

/* Keep the home menu control aligned with the left content edge and the logo. */
.source-home-head .menu-button {
  margin-left: 0 !important;
  margin-right: 2px !important;
  align-self: center !important;
  transform: translateY(1px);
}

.source-home-head .menu-button img {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  margin: auto !important;
  object-fit: contain !important;
}

@media (max-width: 360px) {
  .brand { width: 104px !important; flex-basis: 104px !important; }
  .source-home-head .api-account-actions .api-action { width: 50px !important; font-size: 11px !important; }
  .notice-bar .language-bar { flex-basis: 76px; width: 76px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero:has(.hero-track:empty)::before { animation: none; }
}

/* Header wallet action: balance trigger with deposit and withdrawal shortcuts. */
.source-home-head .home-wallet-actions {
  position: relative;
  z-index: 24;
  flex: 0 0 auto;
}

.source-home-head .home-wallet-actions[hidden],
.source-home-head .home-wallet-menu[hidden] {
  display: none !important;
}

.source-home-head .home-deposit-button {
  width: 132px !important;
  min-width: 132px !important;
  height: 42px !important;
  padding: 4px 10px 4px 6px !important;
  gap: 7px !important;
  justify-content: flex-start !important;
  border-radius: 12px !important;
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.source-home-head .home-deposit-button:hover {
  filter: brightness(1.05);
}

.source-home-head .home-deposit-button:active {
  transform: translateY(1px) scale(.985);
}

.source-home-head .home-deposit-button:focus-visible {
  outline: 2px solid #fff5b4;
  outline-offset: 2px;
}

.source-home-head .home-deposit-icon {
  box-sizing: border-box;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px;
  padding: 5px;
  border: 1px solid rgba(255, 244, 164, .72);
  border-radius: 9px;
  background: linear-gradient(180deg, #07503a, #002f24);
  object-fit: contain;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 3px rgba(0,0,0,.2);
}

.source-home-head .home-deposit-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  text-align: left;
}

.source-home-head .home-deposit-copy strong,
.source-home-head .home-deposit-copy small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-home-head .home-deposit-copy strong {
  font-size: 13px;
  font-weight: 850;
  line-height: 15px;
}

.source-home-head .home-deposit-copy small {
  margin-top: 2px;
  color: #16452f;
  font-size: 10px;
  font-weight: 750;
  line-height: 11px;
}

.source-home-head .home-wallet-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 158px;
  padding: 6px;
  border: 1px solid #f0d45c;
  border-radius: 14px;
  background: linear-gradient(180deg, #174f3a, #083526);
  box-shadow: 0 12px 28px rgba(0, 18, 12, .48), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.source-home-head .home-wallet-menu::before {
  position: absolute;
  top: -6px;
  right: 30px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #f0d45c;
  border-left: 1px solid #f0d45c;
  background: #174f3a;
  content: "";
  transform: rotate(45deg);
}

.source-home-head .home-wallet-menu button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff6bf;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.source-home-head .home-wallet-menu button + button {
  margin-top: 3px;
  border-top: 1px solid rgba(240, 212, 92, .22);
}

.source-home-head .home-wallet-menu button:hover,
.source-home-head .home-wallet-menu button:focus-visible {
  outline: none;
  background: linear-gradient(180deg, rgba(91, 196, 122, .44), rgba(20, 123, 70, .38));
  color: #fff;
}

.source-home-head .home-wallet-menu button:active {
  transform: scale(.985);
}

.source-home-head .home-wallet-menu img {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 5px;
  border: 1px solid rgba(255, 239, 139, .55);
  border-radius: 9px;
  background: linear-gradient(180deg, #fff3a3, #d79b27);
  object-fit: contain;
}

.source-home-head .home-wallet-menu button:first-child img {
  background: linear-gradient(180deg, #0a6448, #063d2e);
}

@media (max-width: 480px) {
  .source-home-head .home-deposit-button {
    width: 108px !important;
    min-width: 108px !important;
    height: 40px !important;
    padding: 4px 6px 4px 5px !important;
    gap: 4px !important;
  }
  .source-home-head .home-deposit-icon {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px;
    padding: 4px;
    border-radius: 7px;
  }
  .source-home-head .home-deposit-copy strong { font-size: 11px; }
  .source-home-head .home-deposit-copy small { font-size: 9px; }
}

@media (max-width: 360px) {
  .source-home-head { gap: 6px !important; padding-inline: 7px !important; }
  .source-home-head .home-deposit-button {
    width: 96px !important;
    min-width: 96px !important;
  }
  .source-home-head .home-deposit-copy strong { font-size: 11px; }
}

@media (max-width: 330px) {
  .source-home-head .brand { width: 90px !important; flex-basis: 90px !important; }
  .source-home-head .home-deposit-button { width: 90px !important; min-width: 90px !important; }
  .source-home-head .home-deposit-copy small { display: none; }
}

/* Profile sound control: a compact, unmistakable toggle instead of the
   legacy white uni-app switch block. */
.source-profile-live .profile-sound-row {
  cursor: pointer;
}

.source-profile-live .profile-sound-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #fff1a2;
  outline-offset: -3px;
}

.source-profile-live .profile-sound-row .li_right {
  flex: 0 0 auto;
  padding-right: 2px;
}

.source-profile-live .profile-sound-switch {
  position: relative;
  display: inline-flex !important;
  box-sizing: border-box;
  width: 50px !important;
  height: 28px !important;
  flex: 0 0 50px;
  align-items: center;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(240, 212, 92, .78);
  border-radius: 999px;
  background: linear-gradient(180deg, #163c2d, #08271d) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.source-profile-live .profile-sound-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 75% 50%, rgba(240, 212, 92, .18) 0 2px, transparent 3px);
  pointer-events: none;
}

.source-profile-live .profile-sound-thumb {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 1px solid #fff3a3;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff6bd 0%, #f1d35d 52%, #c98a19 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .52), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateX(0);
  transition: transform .22s cubic-bezier(.25, .8, .25, 1), background .2s ease;
}

.source-profile-live [data-sound][aria-pressed="true"] .profile-sound-switch,
.source-profile-live .profile-sound-switch.active {
  border-color: #fff08a;
  background: linear-gradient(180deg, #39d487, #098755) !important;
  box-shadow: inset 0 2px 5px rgba(0, 63, 37, .42), 0 0 0 2px rgba(240, 212, 92, .12), 0 0 10px rgba(57, 212, 135, .28);
}

.source-profile-live [data-sound][aria-pressed="true"] .profile-sound-track,
.source-profile-live .profile-sound-switch.active .profile-sound-track {
  background: radial-gradient(circle at 25% 50%, rgba(255, 255, 255, .42) 0 2px, transparent 3px);
}

.source-profile-live [data-sound][aria-pressed="true"] .profile-sound-thumb,
.source-profile-live .profile-sound-switch.active .profile-sound-thumb {
  background: linear-gradient(180deg, #ffffff, #fff3a8);
  transform: translateX(22px);
}

.source-profile-live .profile-sound-row:active .profile-sound-switch {
  transform: scale(.96);
}
