/* MATADEWATOTO V9.1 - final overrides loaded AFTER all page CSS.
   Uses the same Setting Tema Pro variables as mobile.css/theme runtime.
   This file does not modify game settlement or betting calculations. */
.mobile-shell {
  --mdt-border: var(--st-theme-stroke, #54d8d2);
  --mdt-highlight: var(--st-theme-accent, #50e1d8);
  --mdt-halo: var(--st-theme-glow, #12beb8);
  --mdt-ink: #102b30;
  --mdt-card-bg: #10262a;
  --mdt-card-top: #17343a;
  --mdt-soft: color-mix(in srgb,var(--mdt-highlight) 35%,transparent);
  --mdt-pale: color-mix(in srgb,var(--mdt-highlight) 48%,white);
}

/* Login/Daftar: the previous yellow moving BORDER survives from V4.6,
   so replace its conic colors, not the animation, button or clipping mask. */
.mobile-shell .guest-login__actions > .gold-button--login {
  border-color: var(--mdt-border);
  background: linear-gradient(180deg, var(--mdt-pale), var(--mdt-highlight) 55%,
    color-mix(in srgb,var(--mdt-highlight) 72%,#0a3439));
  color: var(--mdt-ink);
  text-shadow:none;
  box-shadow:0 1px 5px #0008, inset 0 1px 3px #fff9,
    0 0 11px color-mix(in srgb,var(--mdt-halo) 33%,transparent);
}
.mobile-shell .guest-login__actions > .gold-button--login::before {
  border-color: transparent;
  background: conic-gradient(from var(--st-v45-border-angle),
    #d7ffff 0deg,
    var(--mdt-highlight) 56deg,
    color-mix(in srgb,var(--mdt-halo) 72%,#06282d) 118deg,
    var(--mdt-border) 184deg,
    #ffffff 239deg,
    var(--mdt-pale) 250deg,
    var(--mdt-halo) 313deg,
    #d7ffff 360deg);
}
.mobile-shell .login-field { border-color:var(--mdt-border); }
.mobile-shell .login-field:focus-within { box-shadow:0 0 0 2px var(--mdt-soft); }
.mobile-shell .login-field__reveal { color:var(--mdt-highlight); }

/* Login popup + right side drawer: remove leftover gold text and chevrons. */
.mobile-shell .mobile-drawer--member { background:#10272b;color:#eaf8f8;scrollbar-color:#35777a #10272b; }
.mobile-shell .mobile-drawer--member .drawer-member__info strong,
.mobile-shell .drawer-member strong { color:var(--mdt-pale); }
.mobile-shell .mobile-drawer--member .mobile-drawer__top button { color:var(--mdt-highlight); }
.mobile-shell .member-drawer-nav .member-drawer-nav__item:hover,
.mobile-shell .member-drawer-nav .member-drawer-nav__item:focus-visible { background:#194347; }
.mobile-shell .member-drawer-nav .drawer-history-toggle.is-expanded {
  background:linear-gradient(95deg,color-mix(in srgb,var(--mdt-highlight) 34%,#08292d),#173439 72%);
}
.mobile-shell .drawer-history-chevron { border-color:var(--mdt-highlight);
  filter:drop-shadow(0 0 5px var(--mdt-halo)); }
.mobile-shell .drawer-history-links { background:#0e2529; }
.mobile-shell .drawer-history-links a:hover,
.mobile-shell .drawer-history-links button:hover { background:#18363b; }

/* Togel results: digits are CSS-generated yellow circles in togel-results.css,
   independent of any uploaded icon. Retheme home slider and full list. */
.mobile-shell .tg-result-card { color:#e9f6f5; }
.mobile-shell .tg-result-card__top h3 { color:var(--mdt-pale); }
.mobile-shell .tg-result-card .tg-digit {
  color:#052c30;
  background:linear-gradient(155deg,#eaffff 0%,
    color-mix(in srgb,var(--mdt-highlight) 52%,white) 19%,
    var(--mdt-highlight) 68%,color-mix(in srgb,var(--mdt-halo) 77%,#084047) 100%);
  box-shadow:inset 0 1px 1px #efffff9c,0 2px 4px #0009;
}
.mobile-shell .tg-result-card--home {
  border-color:var(--mdt-border);
  background:var(--mdt-card-bg);
  box-shadow:0 0 0 1px var(--mdt-soft),0 3px 11px #000a;
}
.mobile-shell .tg-result-card--home .tg-result-card__top {
  background:#143035;
  border-bottom:1px solid #31585e;
}
.mobile-shell .tg-result-card--home .tg-result-card__body { background:var(--mdt-card-bg); }
.mobile-shell .tg-result-card--home .tg-result-card__schedule {
  background:#132b30;
  border-top-color:#2e5459;
}
.mobile-shell .tg-result-card--home .tg-result-card__action {
  border-top-color:#31555b;
  background:linear-gradient(180deg,#122b31,#0a2025);
}
.mobile-shell .tg-result-card__button,
.mobile-shell .tg-wap-toggle {
  border-color:var(--mdt-border);
  color:var(--mdt-ink);
  background:linear-gradient(180deg,var(--mdt-pale),var(--mdt-highlight) 57%,
    color-mix(in srgb,var(--mdt-highlight) 82%,#13454a));
  text-shadow:none;
  box-shadow:inset 0 1px 1px #ffffff7d,0 3px 6px #0007;
}
.mobile-shell .tg-result-card__play { border-left-color:var(--mdt-ink); }
.mobile-shell .tg-home-section .card-carousel__arrow { color:var(--mdt-highlight);
  text-shadow:0 0 7px var(--mdt-halo); }
.mobile-shell .tg-page__heading h1,
.mobile-shell .tg-page__heading p,
.mobile-shell .tg-page__sync { color:var(--mdt-pale); }
.mobile-shell .tg-page__heading-line { background:var(--mdt-highlight); }
.mobile-shell .tg-page__heading small,
.mobile-shell .tg-page__disclaimer { color:#a9d9d7; }
.mobile-shell .tg-filters__search {
  color:var(--mdt-highlight);
  border-color:var(--mdt-border);
  background:#092125e8;
}
.mobile-shell .tg-filters__search input::placeholder { color:#8bb4b6; }
.mobile-shell .tg-page .tg-result-card--market {
  border-color:var(--mdt-border);
  background:radial-gradient(ellipse at 51% 102%,#087a8270 0%,transparent 49%),
    radial-gradient(ellipse at 60% 67%,#1c596070,transparent 55%),
    linear-gradient(180deg,#071619,#142a2e 78%,#082024);
  box-shadow:inset 0 0 0 1px var(--mdt-soft),0 3px 9px #000a;
}
.mobile-shell .tg-page .tg-result-card--market::before,
.mobile-shell .tg-page .tg-result-card--market::after { border-bottom-color:var(--mdt-soft); }
.mobile-shell .tg-empty-sync { border-color:var(--mdt-border);background:#0d2529;color:#cbf3ef; }
.mobile-shell .tg-result-card__waiting { color:#abdad9; }

/* Common older Togel betting controls: color chrome only, not rate/math. */
.mobile-shell .tgb-marketbar select,
.mobile-shell .tgb-number-cell,
.mobile-shell .tgb-engine-tabs button.is-active,
.mobile-shell .tgb-game-parent { border-color:var(--mdt-border); }
.mobile-shell .tgb-engine-tabs button.is-active,
.mobile-shell .tgb-game-parent {
  background:linear-gradient(180deg,var(--mdt-pale),var(--mdt-highlight));
  color:var(--mdt-ink);
}
.mobile-shell .tgb-number-cell { color:#e8ffff;background:#123037; }

@media (prefers-reduced-motion:reduce) {
 .mobile-shell .guest-login__actions > .gold-button--login::before { animation:none !important; }
}

/* Optional independently uploaded eye open/closed artwork in password inputs. */
.mobile-shell .login-field__reveal .mdt-eye-custom{width:23px;height:23px;object-fit:contain}
.mobile-shell .login-field__reveal.has-mdt-eye-hidden>.eye-off,
.mobile-shell .login-field__reveal.has-mdt-eye-shown>.eye-on{display:none!important}
.mobile-shell .login-field__reveal .st-eye-hidden{display:none!important}
.mobile-shell .login-field__reveal .st-eye-shown{display:none!important}
.mobile-shell .login-field__reveal[aria-pressed="false"] .st-eye-hidden{display:block!important}
.mobile-shell .login-field__reveal[aria-pressed="true"] .st-eye-shown{display:block!important}
