/* feature:gdi-arial-bootstrap | Work-ID 20260925-arial-gdi-text-6c3e
 * Grand Fantasia-inspired role-based typography, not a universal black stroke.
 * Browser Arial is GDI-like but HTML does not invoke Win32 GDI.
 * Assign the foreground according to the ACTUAL PNG/UV background.
 */
:root{
  --poke-gdi-font:Arial,sans-serif;
  --poke-text-dark:#f4f4f5;
  --poke-text-dark-muted:#bfc0c8;
  --poke-text-light:#27272e;
  --poke-text-light-muted:#474750;
  --poke-gdi-outline:
    -1px -1px 0 #000,
     0px -1px 0 #000,
     1px -1px 0 #000,
    -1px  0px 0 #000,
     1px  0px 0 #000,
    -1px  1px 0 #000,
     0px  1px 0 #000,
     1px  1px 0 #000;
  --ch-text-muted:#a9a9b4;
}
/* Arial everywhere; real authored normal/semibold/bold weights survive.
 * The old universal 700+outline rule is deliberately removed. */
:root,body,body *{
  font-family:var(--poke-gdi-font)!important;
  font-synthesis:none!important;
  text-rendering:auto!important;
}
body,body *{text-shadow:none!important}
body i.fa-solid,body i.fa-solid::before{
  font-weight:inherit!important;
  text-shadow:none!important;
}
body svg text,body svg tspan{
  font-family:var(--poke-gdi-font)!important;
  font-synthesis:none!important;
  text-shadow:none!important;
  stroke:none!important;
}
/* FontStyle=1: short headers / titles on dark or visually variable art. */
body :is(.gf-text-outlined,.brand,.hud-brand,.premium-panel-heading>strong,
  .modal-header h2,.battle-head h2,.map-toolbar h2,.map-loading,
  .main-menu-entry,.info-move-name,.info-namecard h2,.info-name-row strong,
  .chat-rail>span:first-child){
  font-weight:700!important;
  text-shadow:var(--poke-gdi-outline)!important;
}
/* FontStyle=0: long-form copy, lists, chat, technical details, inputs. */
body :is(p,small,label,dt,dd,li,td,th,input,textarea,select,option,
  .chat-messages,.chat-line,.chat-caption,.forecast-row,.bag-list-item,
  .info-move-desc,.info-move-detail,.battle-message,.battle-log,
  .field-talk-text,.center-heal-caption,.relearn-textbox,.toast,
  .gm-log-row,.gf-text-plain){text-shadow:none!important}
body input::placeholder,body textarea::placeholder{
  font-family:var(--poke-gdi-font)!important;
  text-shadow:none!important;
  opacity:1;
}
/* Formerly cream FRLG dialogue is now a DARK physical PNG inset. */
#battle-dialog :is(.battle-message,.battle-message-text,.battle-log,
  .battle-menu,.battle-inspect,.battle-prompt){
  color:var(--poke-text-dark)!important;
  text-shadow:none!important;
}
#modal .town-map-info{
  color:var(--poke-text-dark)!important;
  text-shadow:none!important;
}
#modal .town-map-info .town-map-services{color:#9cc0ff!important}
#modal .town-map-info small{color:var(--poke-text-dark-muted)!important}
#modal[data-view] .relearn-textbox{
  color:var(--poke-text-dark)!important;
  text-shadow:none!important;
}
#modal[data-view="menu"] .main-menu-entry.selected{
  color:var(--poke-text-dark)!important;
}
/* Actual pale/cream surfaces keep dark, clean text. */
#game :is(.field-talk-message,.center-heal-caption),
#battle-dialog :is(.trainer-result,.trainer-result-who,.trainer-result-team li),
#modal :is(.evolution-box,.relearn-forget-button,.surf-warning){
  color:var(--poke-text-light)!important;
  text-shadow:none!important;
}
#game :is(.field-talk-text,.field-talk-option){
  color:var(--poke-text-light)!important;
  text-shadow:none!important;
}
#game .field-talk .talk-red{color:#ad1728!important}
#game .field-talk .talk-blue{color:#194a9e!important}
#modal .surf-warning{color:#793300!important}
#modal .relearn-forget-button{color:#292000!important}
/* Pokémon type colors are semantic; switch foreground on pale ones. */
body .type-chip{
  color:#fff!important;
  font-weight:700!important;
  text-shadow:var(--poke-gdi-outline)!important;
}
body .type-chip:is(.type-4,.type-5,.type-6,.type-13,.type-15,.type-18){
  color:#19191f!important;
  text-shadow:none!important;
}
body .town-map-icon.gym.earned{
  color:#302300!important;
  text-shadow:none!important;
}
/* Explicit role hooks for future PNG/UV surfaces. */
body :is(.gf-text-on-light,[data-text-surface="light"]){
  color:var(--poke-text-light)!important;
  text-shadow:none!important;
}
body :is(.gf-text-on-dark,[data-text-surface="dark"]){
  color:var(--poke-text-dark)!important;
  text-shadow:none!important;
}
