/* JMIplay 5.28.814 — cross-site mobile, contrast and wallet usability pass.
   Preserves existing dark/light geometry; rules are deliberately scoped. */
.sa-menu a.jmi-wallet-nav .jmi-wallet-leading{
  display:block!important;width:19px!important;height:19px!important;
  min-width:19px!important;flex:0 0 19px!important;color:#40e6ed!important;
  margin:0!important;padding:0!important;filter:drop-shadow(0 0 4px rgba(0,234,255,.25));
}
.sa-menu a.jmi-wallet-nav em{display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  gap:5px 8px!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
.sa-menu a.jmi-wallet-nav .jmi-wallet-label{white-space:nowrap!important;min-width:0;font-size:13px!important}
.sa-menu a.jmi-wallet-nav .jmi-wallet-chip{display:inline-flex;align-items:center;justify-content:center;
  gap:7px;max-width:100%;min-height:28px;box-sizing:border-box;padding:3px 8px 3px 10px;
  border:1px solid rgba(247,200,87,.47);border-radius:9px;
  background:linear-gradient(120deg,rgba(236,175,44,.16),rgba(8,25,34,.45));
  box-shadow:inset 0 1px 0 rgba(255,230,163,.13),0 3px 12px rgba(0,0,0,.14);
  color:#ffd77b;white-space:nowrap}
.sa-menu a.jmi-wallet-nav .jmi-wallet-amount{font:850 14px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace!important;
  letter-spacing:.35px!important;font-variant-numeric:tabular-nums!important;color:inherit!important;
  font-feature-settings:'tnum' 1}
.sa-menu a.jmi-wallet-nav .jmi-wallet-coin{width:16px!important;height:16px!important;flex:0 0 16px!important;
  color:#ffc839!important;filter:none!important}
.sa-menu a.jmi-wallet-nav .jmi-wallet-coin svg{width:16px!important;height:16px!important}
.sa-menu a.jmi-wallet-nav:hover .jmi-wallet-chip,.sa-menu a.jmi-wallet-nav:focus-visible .jmi-wallet-chip{
  border-color:rgba(255,219,128,.78);background:linear-gradient(120deg,rgba(236,175,44,.22),rgba(8,35,41,.6))}
html.theme-light .sa-menu a.jmi-wallet-nav .jmi-wallet-leading{color:#95700c!important;filter:none!important}
html.theme-light .sa-menu a.jmi-wallet-nav .jmi-wallet-chip{color:#785009!important;background:linear-gradient(120deg,#fff2ca,#f8e6b3)!important;
  border-color:#cba34b!important;box-shadow:0 3px 11px rgba(104,76,18,.1)!important}
html.theme-light .sa-menu a.jmi-wallet-nav .jmi-wallet-coin{color:#a7730a!important}
html.theme-light .sa-menu a.jmi-wallet-nav:hover .jmi-wallet-chip{background:#ffedb7!important;border-color:#aa760b!important}
/* Dropdown text mode must remain usable at 320px without forcing horizontal overflow. */
@media(max-width:760px){
  .sa-menu.mode-text-mobile a.jmi-wallet-nav em,.sa-menu.mode-text a.jmi-wallet-nav em{
    flex-wrap:wrap!important;white-space:normal!important;line-height:1.35!important}
  .sa-menu a.jmi-wallet-nav{min-width:0!important}
}
/* Avoid clipped native focus rings and unreadable inputs in light theme. */
html.theme-light :where(input,select,textarea):not([type=checkbox]):not([type=radio]){
  color-scheme:light;
}
html.theme-light :is(.jmi-select-ui,.jmi-select-menu) input::placeholder{color:#6a7280!important;opacity:1}
html.theme-light :is(.mon-player-search,.mon-currency,.pf-stat-selectors) input::placeholder{
  color:#5e6b76!important;opacity:1;
}
/* Prevent breakage caused by excessively long nicknames, IDs and admin help strings. */
:where(.cab-block,.cab-card,.pf-card,.ab-card,.mon-card,.ta-card,.tk-card,.st-card,
       .sa-menu,.mon-players-panel,.mon-player-group,.jlc-pm-msg){min-width:0}
:where(.pf-card,.ab-card,.st-card,.tk-card,.ta-card) :is(p,small,em,.hint){overflow-wrap:anywhere}
/* Harmonize tap and field sizes without overriding intentional icon-only buttons. */
@media(max-width:700px){
  :where(.cab-block,.pf-card,.ab-card,.tk-card,.ta-card,.mon-card) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
    min-width:0;max-width:100%;box-sizing:border-box;
  }
  :where(.mon-players-head,.tr-actions,.cab-actions,.pf-actions){min-width:0}
}
@media(prefers-reduced-motion:reduce){
  .sa-menu a.jmi-wallet-nav .jmi-wallet-chip{transition:none!important}
}

/* Audit: seasonal help CTA was low-contrast on pale yellow in the light theme. */
html.theme-light .jmi-note-more{color:#49350e!important;font-weight:700!important}
html.theme-light .jmi-note-more:focus-visible{outline-color:#75560d!important}
