/* Piloto Club: el tema sigue la preferencia del sistema y cambia en vivo. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --piloto-paper: #171B26;
    --piloto-surface: #FFFFFF;
    --piloto-muted: #4B5261;
    --piloto-border: #8B9098;
    --piloto-hover: #E9E5DC;
    --piloto-negative: #A43645;
    --ink: #171B26;
    --paper: #F6F4ED;
    --card: #FFFFFF;
    --muted: #4B5261;
    --line: #8B9098;
    --rose: #E9E5DC;
    --rose-soft: #FFFFFF;
    --pop-ink: #171B26;
  }
  html, body { background: #F6F4ED; color: #171B26; }
  input, select, textarea { color-scheme: light; }
  a { color: #624096; }
  :is(button, a, input, select, summary):focus-visible { outline-color: #7550B0; }
  #app .app-frame { background: #F6F4ED; color: #171B26; --screen: #F6F4ED; --screen-ink: #171B26; }
  #app .app-header { background: #F6F4ED; color: #171B26; }
  #app .app-main, #app .auth-page, #app .boot { color: #171B26; }
  #app .auth-page, #app .boot { background: #F6F4ED; }
  #app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  #app select, #app textarea { background: #FFFFFF; color: #171B26; }
  #app input::placeholder, #app textarea::placeholder { color: #616675; }
  #app .auth-toggle, #app .privacy-consent a { color: #624096; }
  #app .header-wordmark, #app .auth-brand img[src*="wordmark"] { filter: brightness(0) saturate(100%) invert(9%) sepia(14%) saturate(1226%) hue-rotate(182deg) brightness(92%); }
  #app .button.secondary, #app .button.decision-secondary,
  #app .featured-save, #app .series-list .series-card, #app .series-card,
  #app .series-card:first-child, #app .series-card .series-hero,
  #app .series-list .series-card:first-child .series-hero,
  #app .screen-voting .series-card .series-hero,
  #app .series-card .series-meta, #app .series-card .save-button,
  #app .decision-poster, #app .qr-wrap, .toast { background: #FFFFFF; }
  #app .tabbar { background: #FFFFFF; }
  #app .tabbar button { color: #171B26; }
  #app .tabbar button.active { color: #171B26; }
  #app .decision-secondary { background: #FFFFFF !important; color: #171B26 !important; }
  #app .import-summary, #app .onboarding-history-method,
  #app .history-game-card, #app .feedback-question,
  #app .rating-option { background: #FFFFFF; }
  #app .history-game-choice { background: #E9E5DC; }
  #app .status-chip, #app .session-status,
  #app .rating-option.selected, #app .rating-option[aria-checked="true"] {
    background: #EAF5C9; color: #263416; border-color: #718C2D;
  }
  #app .message { background: #FFF0ED; color: #9A3141; border-color: #D4838D; }
  #app .message.success { background: #EAF5C9; color: #263416; border-color: #718C2D; }
  #app .history-game-back img, #app .decision-friend img { filter: none; }
  #app .club-highlight, #app .history-game-heading .section-label,
  #app .history-game-catalog-label, #app .history-entry-card .section-label,
  #app .loading { color: #526A1E; }
  #app .streaming-platform-link { background: #FFFFFF; color: #171B26; }
  @media (min-width: 1100px) {
    #app .tabbar { background: #F6F4ED; }
    #app .tabbar button { color: #171B26; }
    #app .tabbar button .tab-icon { filter: none; }
  }
}
