/* =====================================================================
   MOBILE-PANELS.CSS — Lisibilité sur téléphone : panneaux, fenêtres et petits textes

   css/mobile.css agrandit déjà le décor des écrans (bandeau du haut, menus,
   barre du bas, contenu des vues). Ce fichier complète le travail pour
   ce qui n'était pas encore agrandi et restait illisible (≈ 5 px à l'écran) :
     1. Panneaux latéraux (Quêtes...) et panneau des Paramètres / Courrier
     2. Fenêtre de profil
     3. Fenêtres d'achat / résultat / taux de tirage (boutique, tirage)
     4. Textes trop petits des écrans (bandeau, pastilles, boutique, casino...)

   Même méthode que mobile.css : la propriété CSS "zoom" (qui, contrairement
   à transform, fait recalculer la mise en page) et les coefficients calculés
   par js/scale.js. Sur ordinateur / grande tablette, --ui-boost vaut 1 et
   --panel-boost aussi : RIEN ne change (tout est dans html.is-touch).

   Pour revenir à l'ancien rendu : retire la ligne <link> de ce fichier dans
   index.html.

   Repère de lecture : taille à l'écran ≈ taille CSS x échelle du cadre (~0,43
   sur un téléphone) x zoom. Objectif : au moins ~9 px à l'écran pour les
   petits textes, ~11 px et plus pour les textes importants.
   ===================================================================== */

/* Coefficients propres aux panneaux (dérivés de --ui-boost posé par scale.js) */
html.is-touch {
  --panel-boost: var(--ui-boost, 1);
  /* Les fenêtres centrées ne doivent pas dépasser la hauteur de l'écran : on plafonne */
  --modal-boost: min(var(--ui-boost, 1), 1.5);
}

/* ---------------------------------------------------------------------
   1. PANNEAUX LATÉRAUX (Quêtes, Cadeaux...) ET PANNEAU DU HAUT (Paramètres...)
   Positionnés en JS (side-flyout.js / top-flyout.js), qui tiennent compte du zoom.
   Max-height : comme le panneau est agrandi, on la divise pour que sa hauteur
   visible reste la même (le contenu défile à l'intérieur).
   --------------------------------------------------------------------- */
html.is-touch .side-flyout {
  zoom: var(--panel-boost);
}
html.is-touch .side-flyout-panel {
  max-height: calc(556px / var(--panel-boost));
}
html.is-touch .top-flyout {
  zoom: var(--panel-boost);
  right: calc(18px / var(--panel-boost));
}
html.is-touch .top-flyout-panel {
  max-height: calc(640px / var(--panel-boost));
}

/* Tailles de texte minimales dans les panneaux (en pixels CSS, avant zoom) */
html.is-touch .sf-title            { font-size: 17px; }
html.is-touch .sf-empty            { font-size: 14px; }
html.is-touch .sf-reset-main       { font-size: 14px; }
html.is-touch .sf-reset-sub        { font-size: 13px; }
html.is-touch .sf-quest-title      { font-size: 14px; }
html.is-touch .sf-quest-badge      { font-size: 12px; }
html.is-touch .sf-quest-desc       { font-size: 13px; }
html.is-touch .sf-quest-count      { font-size: 13px; }
html.is-touch .sf-quest-reward     { font-size: 13px; }
html.is-touch .sf-quest-valid      { font-size: 13px; }

html.is-touch .tf-row-title        { font-size: 15px; }
html.is-touch .tf-row-sub          { font-size: 13px; }
html.is-touch .tf-section-label    { font-size: 12px; }
html.is-touch .tf-twitch-main      { font-size: 14px; }
html.is-touch .tf-twitch-sub       { font-size: 13px; }
html.is-touch .tf-code-input       { font-size: 16px; }   /* 16 px mini : évite le zoom automatique d'iOS */
html.is-touch .tf-code-submit      { font-size: 14px; }
html.is-touch .tf-code-msg         { font-size: 13px; }

/* ---------------------------------------------------------------------
   2. FENÊTRE DE PROFIL (clic sur l'avatar)
   Centrée dans l'écran : on la grossit, et on limite sa hauteur pour qu'elle
   tienne toujours entièrement.
   --------------------------------------------------------------------- */
html.is-touch .profile-modal-panel {
  zoom: var(--modal-boost);
  max-height: calc(840px / var(--modal-boost));
}
html.is-touch .pm-level-pill   { font-size: 14px; }
html.is-touch .pm-rank-pill    { font-size: 14px; }
html.is-touch .pm-xp-text      { font-size: 13px; }
html.is-touch .pm-tab          { font-size: 15px; }
html.is-touch .pm-stat-label   { font-size: 13px; }
html.is-touch .pm-stat-value   { font-size: 18px; }

/* ---------------------------------------------------------------------
   3. FENÊTRES D'ACHAT, DE RÉSULTAT ET DE TAUX DE TIRAGE
   (classe .shop-modal, réutilisée par la boutique et le tirage)
   --------------------------------------------------------------------- */
html.is-touch .shop-modal-panel {
  zoom: var(--modal-boost);
}
html.is-touch .shop-modal-head small  { font-size: 13px; }
html.is-touch .shop-modal-head h3     { font-size: 22px; }
html.is-touch .shop-modal-desc        { font-size: 15px; }
html.is-touch .shop-modal-actions .shop-btn { font-size: 16px; }


/* ---------------------------------------------------------------------
   4. PETITS TEXTES DES ÉCRANS (bandeau, boutique, tirage, inventaire, casino...)
   Ces textes restaient à 4-7 px à l'écran même après l'agrandissement des blocs.
   On leur impose une taille minimale (en pixels CSS, AVANT zoom et réduction du
   cadre) pour qu'ils atteignent environ 8-9 px à l'écran sur un téléphone.
   Plafond : jamais plus de x1,8 la taille d'origine (sinon les boîtes débordent).
   Pour agrandir/réduire un texte précis : modifie son nombre ci-dessous.
   --------------------------------------------------------------------- */
html.is-touch .pk-chip-slot-label     { font-size: 12px; }   /* était 8.8px d'origine (~4.4 px à l'écran) */
html.is-touch .sl-bet-display small   { font-size: 12px; }   /* était 9px d'origine (~4.5 px à l'écran) */
html.is-touch .sl-marquee small       { font-size: 12.5px; }   /* était 10px d'origine (~5 px à l'écran) */
html.is-touch .svc-chip-box small     { font-size: 15.0px; }   /* était 9px d'origine (~5.1 px à l'écran) */
html.is-touch .pk-community-label     { font-size: 13.0px; }   /* était 10.4px d'origine (~5.2 px à l'écran) */
html.is-touch .bj-payouts             { font-size: 13.6px; }   /* était 10.88px d'origine (~5.4 px à l'écran) */
html.is-touch .pk-payouts             { font-size: 13.6px; }   /* était 10.88px d'origine (~5.4 px à l'écran) */
html.is-touch .bj-plaque              { font-size: 13.8px; }   /* était 11px d'origine (~5.5 px à l'écran) */
html.is-touch .pk-zone-label          { font-size: 13.8px; }   /* était 11px d'origine (~5.5 px à l'écran) */
html.is-touch .svc-banner-text small  { font-size: 15.0px; }   /* était 10px d'origine (~5.6 px à l'écran) */
html.is-touch .gacha-pity small                            { font-size: 20px; white-space: nowrap; }   /* était 18px d'origine (~6.2 px à l'écran) */
html.is-touch .bank-max               { font-size: 15.0px; }   /* était 11px d'origine (~6.2 px à l'écran) */
html.is-touch .inv-detail-label       { font-size: 14.3px; }   /* était 11px d'origine (~6.5 px à l'écran) */
html.is-touch .bj-bet-current         { font-size: 16.4px; }   /* était 13.12px d'origine (~6.5 px à l'écran) */
html.is-touch .bj-bet-current span    { font-size: 16.4px; }   /* était 13.12px d'origine (~6.5 px à l'écran) */
html.is-touch .bj-table-bets-title    { font-size: 16.2px; }   /* était 13px d'origine (~6.5 px à l'écran) */
html.is-touch .pk-table-bets-title    { font-size: 16.2px; }   /* était 13px d'origine (~6.5 px à l'écran) */
html.is-touch .pk-trips-toggle span   { font-size: 16.4px; }   /* était 13.12px d'origine (~6.5 px à l'écran) */
html.is-touch .sl-stop-btn            { font-size: 16.2px; }   /* était 13px d'origine (~6.5 px à l'écran) */
html.is-touch .sl-btn                 { font-size: 16.2px; }   /* était 13px d'origine (~6.5 px à l'écran) */
html.is-touch .gacha-bar-label        { font-size: 24.4px; }   /* était 19px d'origine (~6.6 px à l'écran) */
html.is-touch .sl-paytable th         { font-size: 12.5px; }   /* était 10px d'origine (~6.7 px à l'écran) */
html.is-touch .svc-banner-text span   { font-size: 15.0px; }   /* était 12px d'origine (~6.8 px à l'écran) */
html.is-touch .bank-desc              { font-size: 15.0px; }   /* était 12px d'origine (~6.8 px à l'écran) */
html.is-touch .bank-preview           { font-size: 15.0px; }   /* était 12px d'origine (~6.8 px à l'écran) */
html.is-touch .bank-preview b         { font-size: 15.0px; }   /* était 12px d'origine (~6.8 px à l'écran) */
html.is-touch .bank-cap-text          { font-size: 15.0px; }   /* était 12px d'origine (~6.8 px à l'écran) */
html.is-touch .bank-tx-empty          { font-size: 15.0px; }   /* était 12px d'origine (~6.8 px à l'écran) */
html.is-touch .svc-link               { font-size: 15.0px; }   /* était 12px d'origine (~6.8 px à l'écran) */
html.is-touch .shop-gift-text small   { font-size: 12.2px; }   /* était 10px d'origine (~6.9 px à l'écran) */
html.is-touch .shop-tag               { font-size: 12.2px; }   /* était 10px d'origine (~6.9 px à l'écran) */
html.is-touch .gacha-pull em          { font-size: 12.2px; }   /* était 10px d'origine (~6.9 px à l'écran) */
html.is-touch .event-content small    { font-size: 13.0px; }   /* était 11px d'origine (~7.1 px à l'écran) */
html.is-touch .sl-message             { font-size: 16.9px; }   /* était 14.4px d'origine (~7.2 px à l'écran) */
html.is-touch .gacha-bar-main em      { font-size: 24.4px; }   /* était 21px d'origine (~7.3 px à l'écran) */
html.is-touch .cg-head p              { font-size: 16.2px; }   /* était 14px d'origine (~7.3 px à l'écran) */
html.is-touch .bank-rate              { font-size: 15.0px; }   /* était 13px d'origine (~7.3 px à l'écran) */
html.is-touch .bank-rate em           { font-size: 15.0px; }   /* était 13px d'origine (~7.3 px à l'écran) */
html.is-touch .casino-sign small      { font-size: 19.5px; }   /* était 17px d'origine (~7.4 px à l'écran) */
html.is-touch .bj-bet-btn span        { font-size: 16.9px; }   /* était 15px d'origine (~7.5 px à l'écran) */
html.is-touch .bj-bet-btn             { font-size: 16.9px; }   /* était 15px d'origine (~7.5 px à l'écran) */
html.is-touch .pk-ante-btn            { font-size: 16.9px; }   /* était 15px d'origine (~7.5 px à l'écran) */
html.is-touch .pk-btn                 { font-size: 16.9px; }   /* était 15px d'origine (~7.5 px à l'écran) */
html.is-touch .sl-hint                { font-size: 12.6px; }   /* était 11.2px d'origine (~7.5 px à l'écran) */
html.is-touch .shop-card p                              { font-size: 12px; }   /* était 11px d'origine (~7.6 px à l'écran) */
html.is-touch .shop-cd                { font-size: 12.2px; }   /* était 11px d'origine (~7.6 px à l'écran) */
html.is-touch .bj-message             { font-size: 16.9px; }   /* était 15.2px d'origine (~7.6 px à l'écran) */
html.is-touch .inv-info small         { font-size: 14.3px; }   /* était 13px d'origine (~7.7 px à l'écran) */
html.is-touch .event-content span     { font-size: 13.0px; }   /* était 12px d'origine (~7.8 px à l'écran) */
html.is-touch .event-timer            { font-size: 13.0px; }   /* était 12px d'origine (~7.8 px à l'écran) */
html.is-touch .gacha-slot-inner small { font-size: 19.5px; }   /* était 18px d'origine (~7.8 px à l'écran) */
html.is-touch .rank-me-label          { font-size: 15.3px; }   /* était 14px d'origine (~7.8 px à l'écran) */
html.is-touch .cc-min                 { font-size: 19.5px; }   /* était 18px d'origine (~7.8 px à l'écran) */
html.is-touch .cc-min b               { font-size: 19.5px; }   /* était 18px d'origine (~7.8 px à l'écran) */
html.is-touch .cg-back                { font-size: 16.2px; }   /* était 15px d'origine (~7.8 px à l'écran) */
html.is-touch .mk-view small          { font-size: 12px; }   /* était 10.5px d'origine (~7.9 px à l'écran) */
html.is-touch .bank-go                { font-size: 15.0px; }   /* était 14px d'origine (~7.9 px à l'écran) */
html.is-touch .bj-history-empty       { font-size: 12.6px; }   /* était 12px d'origine (~8.1 px à l'écran) */
html.is-touch .pk-payout-table th     { font-size: 12.6px; }   /* était 12px d'origine (~8.1 px à l'écran) */
html.is-touch .pk-payout-table td     { font-size: 12.6px; }   /* était 12px d'origine (~8.1 px à l'écran) */
html.is-touch .pk-history-empty       { font-size: 12.6px; }   /* était 12px d'origine (~8.1 px à l'écran) */
html.is-touch .cc-desc                { font-size: 19.5px; }   /* était 19px d'origine (~8.2 px à l'écran) */
html.is-touch .bj-rules li            { font-size: 12.5px; }   /* était 12.16px d'origine (~8.2 px à l'écran) */
html.is-touch .bj-rules b             { font-size: 12.5px; }   /* était 12.16px d'origine (~8.2 px à l'écran) */
html.is-touch .bj-lb-val              { font-size: 12.5px; }   /* était 12.16px d'origine (~8.2 px à l'écran) */
html.is-touch .pk-rules li            { font-size: 12.5px; }   /* était 12.16px d'origine (~8.2 px à l'écran) */
html.is-touch .pk-rules b             { font-size: 12.5px; }   /* était 12.16px d'origine (~8.2 px à l'écran) */
html.is-touch .sl-rules li            { font-size: 12.5px; }   /* était 12.16px d'origine (~8.2 px à l'écran) */
html.is-touch .sl-rules b             { font-size: 12.5px; }   /* était 12.16px d'origine (~8.2 px à l'écran) */
html.is-touch .shop-cat-label         { font-size: 12px; }   /* était 11px d'origine (~8.3 px à l'écran) */
html.is-touch .inv-chip               { font-size: 14.4px; }   /* était 14px d'origine (~8.3 px à l'écran) */
html.is-touch .rank-me-trend          { font-size: 15.2px; }   /* était 15px d'origine (~8.3 px à l'écran) */

/* Poker : la ligne des gains (« Ante + Blind... ») sortait coupée sous la barre de mise.
   Sur téléphone elle est masquée : le tableau des gains complet est dans le tiroir « Infos ». */
html.is-touch .pk-payouts { display: none; }
