/* =====================================================================
   LE CAMP EN ONGLETS (chargé après hub.css et totem.css)
   Barre fixe en haut (totem + foulard en miniature, timbres, prénom, totem),
   cinq onglets de même gabarit : Les jeux · Le Local · Mon scout · Tombola · Carnet (le classement est une page du carnet)
   (une rangée sur ordinateur, deux rangées 3 + 2 sur téléphone, chaque rangée remplie : rien ne défile, rien ne bouge).
   La tombola a sa feuille : hub/onglets-plus.css.
   Fiches compactes, quatre par rangée, avec les vraies captures des jeux.
   Rien ne bouge quand un texte change, et les fiches ne bougent pas au survol.
   ===================================================================== */

/* ---- barre du haut ---- */
.sheet .tete{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:10px 16px}
.tete h1{font-size:clamp(28px,4.4vw,44px);white-space:nowrap}
.barreId{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sheet .salut{position:relative;display:flex;align-items:center;gap:8px;width:250px;height:52px;padding:0 10px 0 5px;margin:0;
  background:var(--grain),var(--paper-lt);background-blend-mode:multiply,normal;border:2px solid var(--c-ink);border-radius:10px 12px 9px 13px/12px 9px 13px 10px;box-shadow:2px 3px 0 var(--ink-dk)}
.miniF{flex:none;width:42px;height:42px;padding:0;border:0;background:none;border-radius:50%}
.miniF svg{width:100%;height:100%;display:block}
.sheet .salutTxt{display:flex;flex-direction:column;align-items:flex-start;gap:0;height:auto;line-height:1.1;min-width:0;color:var(--c-ink);font-size:14px}
.salutK{font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--t2)}
#salutPre,#salutPost{display:none}
.sheet .salutTxt b{font-family:var(--font-display);font-weight:400;font-size:21px;color:#8a4318;-webkit-text-stroke:0;text-shadow:none;max-width:186px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet .salutAide{display:none}
/* le champ du nom s'ouvre sous la barre, calé à droite (il ne sort pas de la feuille) */
.barreId{position:relative}
.sheet .salut{position:static}
.sheet .nomForm{top:58px;right:0;left:auto;transform:none}
.timbresB{display:flex;flex-direction:column;justify-content:center;width:104px;height:52px;padding:0 10px;line-height:1.1;
  background:var(--grain),var(--paper-lt);background-blend-mode:multiply,normal;border:2px solid var(--c-ink);border-radius:10px 12px 9px 13px/12px 9px 13px 10px;box-shadow:2px 3px 0 var(--ink-dk)}
.timbresB small{font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--t2)}
.timbresB b{font-family:var(--font-display);font-weight:400;font-size:22px;color:var(--c-vert);font-variant-numeric:tabular-nums}
/* le compte à rebours du prochain timbre (1 par 30 min de jeu) : une ligne de hauteur fixe, rien ne bouge quand le chiffre change */
.timbresB .tbTemps{display:block;height:12px;font-style:normal;font-size:10px;line-height:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--t2);font-variant-numeric:tabular-nums}
.sheet .salutBtns{display:flex;flex-direction:column;gap:6px}
.salutBtns .ghost.small{height:52px;width:104px;padding:0 8px;font-size:13px;line-height:1.15;white-space:normal;text-align:center}

/* ---- onglets ---- */
.onglets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.onglet{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;height:42px;padding:0 6px;background:rgba(255,248,226,.55);border:2px solid var(--c-ink);border-radius:10px 12px 9px 13px/12px 9px 13px 10px;box-shadow:2px 3px 0 rgba(30,18,8,.5);
  font-family:var(--font-display);font-size:18px;color:var(--c-ink);letter-spacing:.01em;white-space:nowrap}
.onglet .oIc{flex:none;font-size:17px;line-height:1;font-family:system-ui,'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif}
.onglet .oTx,.onglet .oCt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.onglet .oCt{display:none}
.onglet:hover{background:rgba(255,236,170,.85)}
.onglet[aria-selected="true"]{background:#ffe3a0;box-shadow:3px 4px 0 var(--c-ink)}
.pan{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;min-width:0}
.pan[hidden]{display:none}

/* ---- fiches compactes : quatre par rangée ---- */
.sheet .jeux{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.sheet .jeu{height:auto;grid-template-rows:auto 32px 54px 24px 42px;gap:8px;transition:none}
.sheet .jeu:hover,.sheet .jeu:nth-child(2):hover{transform:none;box-shadow:0 5px 0 var(--brun)}
.sheet .jeu .scene{height:auto;aspect-ratio:15/8}
.sheet .jeu h2{margin-top:-8px;font-size:18px}
.sheet .jeu p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;height:54px;overflow:hidden;padding:0 10px;font-size:13px;line-height:18px;font-weight:600;color:#3a2410}   /* le mini texte du jeu, 3 lignes fixes */
.sheet .jeu .chips{padding:0 10px}
.sheet .jeu .actions{padding:0 10px;justify-content:flex-start}
.sheet .jeu .big{font-size:19px;padding:6px 14px}
.sheet .jeu .demo{position:absolute;top:8px;left:8px;height:22px;line-height:18px;padding:0 9px;font:800 12px/18px inherit;letter-spacing:.06em;text-transform:uppercase;color:var(--c-creme,#fbf1d6);background:#3a2410;border:2px solid var(--c-creme,#fbf1d6);border-radius:7px 9px 6px 10px;box-shadow:0 2px 0 rgba(30,18,8,.5);pointer-events:none}   /* « Démo » : jeu encore peu fourni */
.sheet .jeu .badge{position:absolute;top:8px;right:8px;margin:0;max-width:calc(100% - 16px)}

/* ---- Le Local : bandeau + relevé des timbres ---- */
.releveB{display:grid;gap:8px;padding:12px 16px 14px;background:rgba(255,248,226,.38);border:2px solid var(--ink);border-radius:12px 15px 11px 16px/15px 11px 16px 12px;box-shadow:2px 3px 0 rgba(30,18,8,.4)}
.releveB h2{justify-self:start;height:28px;line-height:23px;padding:0 14px;font-size:19px;color:var(--c-creme);background:linear-gradient(180deg,#C4474D,#A8272D);
  border:2.5px solid var(--c-ink);border-radius:8px 10px 7px 11px/10px 7px 11px 8px;box-shadow:0 3px 0 var(--c-ink);-webkit-text-stroke:1.5px var(--c-ink);paint-order:stroke fill;text-shadow:0 2px 0 var(--c-ink)}
.releve{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:14.5px}
.releve td{height:32px;border-bottom:1.5px dashed rgba(73,53,38,.35)}
.releve td:last-child{text-align:right;font-weight:700;color:var(--c-vert);width:130px}
.releve tr.total td{border-bottom:0}
.releveAide{margin:0;font-size:13px;color:var(--t2)}

/* ---- Mon scout : l'éditeur (hub/monscout.html) posé dans l'onglet ---- */
#scoutFrame,#carnetFrame{display:block;width:100%;height:640px;border:0;background:transparent}
/* le carnet (et son bestiaire) est en color-scheme:light (le hub en dark) : même schéma sur le cadre, sinon Chrome le peint en blanc */
#carnetFrame{color-scheme:light}

/* ---- tablettes, téléphones ---- */
@media (max-width:960px){ .sheet .jeux{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:700px){
  .sheet .tete{padding:10px 12px}
  .barreId{width:100%}
  .sheet .salut{flex:1 1 200px;width:auto}
  .barreId{flex-wrap:nowrap}
  .sheet .salut{flex:1 1 auto;min-width:0}
  .timbresB{width:76px;flex:none;padding:0 8px}
  .salutBtns .ghost.small{width:78px;font-size:12px;padding:0 4px}
  .sheet .nomForm{left:0;right:0;flex-wrap:wrap;white-space:normal}
  .sheet .nomForm .field{flex:1 1 100%}
  .sheet .nomForm .field input{width:100%}
  /* cinq onglets : trois en haut (Jeux, Local, Scout), deux plus larges en bas (Tombola, Carnet) */
  .onglets{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 6px}
  .onglet{grid-column:span 2}
  .onglet:nth-child(n+4){grid-column:span 3}
  .onglet{height:40px;font-size:15px;padding:0 4px;gap:5px}
  .onglet .oIc{font-size:15px}
  .onglet .oLong{display:none}
  .onglet .oCt{display:inline}
  #scoutFrame{height:1180px}
  #carnetFrame{height:1050px}
}
@media (max-width:560px){ .sheet .jeux{grid-template-columns:minmax(0,1fr)} }

/* ---- téléphone : rien ne déborde, le nom tient (20 oct. 2026) ----
   - Parties ouvertes : l'en-tête et la liste restent dans la feuille (état sur 2 lignes fixes à droite) ;
   - Les copains : en-tête sans le petit titre, lignes « Mon code d'ami » / « Changer d'appareil » resserrées ;
   - le nom dans la barre du haut : 2 lignes de hauteur fixe ; hub.js réduit la police (16 → 12 px) si un mot est trop long. */
.camps,.copains{grid-template-columns:minmax(0,1fr)}
.camps>*,.copains>*{min-width:0}
@media (max-width:700px){
  .campsTete{min-width:0;gap:8px}
  .campsTete>div:first-child{flex:none}
  .campsEtat{flex:1 1 0;max-width:none;min-width:0;height:28px;line-height:14px;font-size:11px;text-align:right;white-space:normal;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .copTete .kicker{display:none}
  .copTete h2{white-space:nowrap}
  .copLigne>span{flex:none;width:58px;white-space:normal;font-size:11px;line-height:12px}
  .copLigne b{font-size:15px;letter-spacing:.03em;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .copLigne .ghost.small,.copLigne .mid{padding:0 7px;font-size:11.5px}
  .copAppareil .ghost.small{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .miniF{width:36px;height:36px}
  .sheet .salut{padding:0 8px 0 5px;gap:7px}
  .timbresB{width:62px;padding:0 6px}
  .timbresB small{font-size:9.5px;letter-spacing:.06em}
  .timbresB .tbTemps{font-size:9.5px}
  .timbresB .tbL{display:none}
  .salutBtns .ghost.small{width:66px;font-size:11.5px;padding:0 3px}
  .salutK{font-size:9.5px;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .sheet .salutTxt{height:48px;justify-content:center;flex:1 1 auto;text-align:left}
  .sheet .salutTxt b{max-width:100%;height:34px;font-size:16px;line-height:17px;white-space:normal;overflow-wrap:anywhere;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-pack:center;-webkit-line-clamp:2;text-overflow:clip}
}
/* le pied de page : deux lignes fixes (le jukebox, puis conditions · confidentialité · contact) */
.sheet .pied{height:auto;display:grid;grid-template-rows:18px;line-height:18px}
.pied .piedL1,.pied .piedL2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:620px){ .sheet .pied{grid-template-rows:18px;font-size:11.5px} }
