/* Atelier de Cradopaud (14/11/2026) : client/js/cradopo.js. Préfixe cr-. */
.cradopo-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(3, 6, 18, .62); animation: bg-fondu .2s ease-out; }
.cr-box { position: relative; width: min(1100px, calc(100vw - 20px)); max-height: calc(100vh - 20px); display: flex; flex-direction: column; gap: 8px; overflow: hidden; animation: pop .24s cubic-bezier(.2,1.25,.4,1); }
.cr-tete { display: flex; align-items: center; gap: 12px; flex: none; }
.cr-portrait { width: 72px; height: 72px; flex: none; }
.cr-titre-z { flex: 1; min-width: 0; }
.cr-titre { margin: 0; }
.cr-phrase { margin: 4px 0 0; font-size: 18px; }
.cr-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cr-poke { font-size: 20px; display: flex; align-items: center; gap: 6px; }
.cr-fermer { align-self: flex-start; }
.cr-corps { display: grid; grid-template-columns: 340px 1fr; gap: 10px; min-height: 0; flex: 1; }
/* Liste de mes objets (à gauche) */
.cr-liste { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 220px); }
.cr-liste-t { color: #8fd0ff; }
.cr-filtres { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 6px; }
.btn.mini.cr-filtre { font-size: 14px; padding: 0 6px 0 10px; border-width: 8px; }
.btn.mini.cr-filtre.on { border-image-source: url('assets/ui/cadres/cadre1_yellow_fin.png'); color: var(--gold); }
.cr-filtre.r-commun { color: #9fe39a; } .cr-filtre.r-peu { color: #7fc4ff; } .cr-filtre.r-rare { color: #d79bff; } .cr-filtre.r-tres { color: #ffd35c; }
.cr-scroll { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 4px; min-height: 120px; }
.cradopo-modal .btn.cr-it { justify-content: flex-start; gap: 8px; padding: 2px 8px 2px 18px; text-align: left; border-width: 8px; }
.cr-it .cr-ic { width: 40px; height: 40px; flex: none; }
.cr-it-n { flex: 1; line-height: 1.05; font-size: 18px; }
.cr-it-n small { display: block; font-size: 14px; margin-top: 2px; }
.cr-it-q { display: flex; flex-direction: column; align-items: flex-end; font-size: 20px; line-height: 1; }
.cr-it-q small { font-size: 12px; }
.cradopo-modal .btn.cr-it.sel { border-image-source: url('assets/ui/cadres/cadre1_yellow_fin.png'); filter: brightness(1.15); }
/* (14/11, Kiko) pas assez d'exemplaires : objet grisé, nombre en rouge, mais toujours cliquable */
.cradopo-modal .btn.cr-it.manque .cr-ic, .cradopo-modal .btn.cr-it.manque .cr-it-n { filter: grayscale(.85) brightness(.6); }
.cr-vide { text-align: center; padding: 16px; }
img.cr-ic { image-rendering: pixelated; object-fit: contain; }
/* Panneau principal */
.cr-main { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 0; }
.cr-duo { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: stretch; gap: 6px; }
.cr-carte { text-align: center; padding: 10px 8px; background: rgba(5, 10, 30, .6); border: 2px solid rgba(255, 255, 255, .12); border-radius: 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cr-carte-t { font-size: 15px; color: var(--dim); }
.cr-grand { width: 112px; height: 112px; display: grid; place-items: center; position: relative; background: radial-gradient(circle, rgba(159, 227, 154, .22), transparent 66%); }
.cr-grand .cr-ic { width: 96px; height: 96px; }
.cr-grand.ombre { background: radial-gradient(circle, color-mix(in srgb, var(--rc) 45%, transparent), transparent 66%); animation: cr-pulse 2.2s ease-in-out infinite; }
@keyframes cr-pulse { 50% { transform: scale(1.06); } }
.cr-ic.silhouette { filter: brightness(0) drop-shadow(0 0 6px var(--rc)) drop-shadow(0 0 2px #fff); opacity: .9; }
.cr-mystere { font-size: 64px; color: #000; text-shadow: 0 0 8px var(--rc), 0 0 2px #fff; }
.cr-pt { position: absolute; font-size: 36px; color: #fff; text-shadow: 0 0 8px var(--rc), 0 3px 0 #000; }
.cr-mystere + .cr-pt { display: none; }
.cr-nom { font-size: 24px; line-height: 1.1; }
.cr-rar { font-size: 14px; padding: 0 6px; border: 2px solid var(--rc); color: var(--rc); border-radius: 3px; background: rgba(0, 0, 0, .35); }
.cr-eff { font-size: 16px; line-height: 1.2; }
.cr-eff.cr-hasard { color: #ffd35c; }
.cr-ex { display: block; margin-top: 3px; color: #cfd6e6; }
.cr-fleche { display: grid; place-items: center; }
.cr-fleche .pxi { filter: drop-shadow(0 0 6px rgba(255, 211, 92, .8)); animation: cr-fleche 1s ease-in-out infinite; }
@keyframes cr-fleche { 50% { transform: translateX(5px); } }
.cr-carte.terne { filter: grayscale(.6) brightness(.7); }
.cr-carte.apres.fond { animation: cr-tremble .45s linear; }
@keyframes cr-tremble { 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
.cr-flash { position: absolute; inset: -20px; background: radial-gradient(circle, #fff 0 25%, transparent 60%); animation: cr-flash .7s ease-out forwards; pointer-events: none; }
@keyframes cr-flash { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
.cr-cout { display: flex; gap: 24px; align-items: center; justify-content: center; padding: 8px; background: rgba(0, 0, 0, .3); border: 2px solid rgba(255, 211, 92, .35); border-radius: 6px; }
.cr-cout.manque { border-color: rgba(255, 107, 107, .55); }
.cr-c { display: flex; align-items: center; gap: 8px; font-size: 24px; }
.cr-c .cr-ic.mini { width: 36px; height: 36px; }
.cr-barre { width: 180px; height: 14px; background: #0a1233; border: 2px solid #31508f; position: relative; }
.cr-barre i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#b6f0b0, #4fbf5a); }
.cr-cout.manque .cr-barre i { background: linear-gradient(#ffb0a0, #d9534f); }
.cr-bas { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cr-regle { font-size: 14px; }
.cr-vol { position: absolute; z-index: 5; width: 32px; height: 32px; image-rendering: pixelated; pointer-events: none; animation: cr-vol .5s cubic-bezier(.4, -.4, .6, 1) both; }
@keyframes cr-vol { to { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(200deg); opacity: .2; } }
.cr-gagne { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(3, 6, 18, .55); animation: bg-fondu .2s; }
.cr-gagne-b { position: relative; width: 360px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: pop .3s cubic-bezier(.2,1.4,.4,1); overflow: hidden; }
.cr-gagne-b .cr-ic.grand { width: 96px; height: 96px; position: relative; z-index: 1; animation: bg-sort .6s cubic-bezier(.2, 1.6, .4, 1); }
.cr-gagne-t { color: var(--dim); position: relative; }
.cr-rayons { position: absolute; left: 50%; top: 58px; width: 260px; height: 260px; margin: -130px 0 0 -130px; background: repeating-conic-gradient(rgba(255, 211, 92, .25) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: cr-rayons 6s linear infinite; }
@keyframes cr-rayons { to { transform: rotate(360deg); } }
/* Objets uniques */
.cr-uniques { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 200px); }
.cr-u-grille { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; padding: 8px 4px 4px; }
.cr-u { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; background: rgba(10, 16, 40, .8); border: 2px solid rgba(255, 122, 217, .55); border-radius: 5px; box-shadow: 0 0 10px rgba(255, 122, 217, .2) inset; }
.cr-u.possede { border-color: var(--ok); box-shadow: 0 0 10px rgba(110, 226, 122, .25) inset; }
.cr-u.absent { opacity: .75; }
.cr-u-tag { position: absolute; top: -10px; left: 10px; font-size: 12px; padding: 0 6px; background: #1d5a2a; border: 2px solid var(--ok); color: #d4ffd8; }
.cr-u-haut { display: flex; align-items: center; gap: 8px; }
.cr-u-obj { width: 52px; height: 52px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 122, 217, .4), transparent 68%); }
.cr-u-cadre { margin-left: auto; width: 58px; height: 58px; border: 3px solid #cfe0ff; background: #0b1636; box-shadow: 0 0 0 2px #000; display: grid; place-items: center; }
.cr-u-cadre img { width: 100%; height: 100%; image-rendering: pixelated; }
.cr-u-cadre.non { border-color: #4a5578; }
.cr-u-cadre.non img { filter: grayscale(1) brightness(.4) contrast(1.2); }
.cr-u-cadre b { font-size: 28px; color: #6c7aa6; font-weight: normal; }
.cr-u-nom { font-size: 19px; line-height: 1.05; }
.cr-u-nom .muted { font-size: 15px; }
.cr-u-rar { align-self: flex-start; font-size: 12px; padding: 0 5px; border: 2px solid #ff7ad9; color: #ff7ad9; border-radius: 3px; background: rgba(60, 10, 40, .5); }
.cr-u-eff { font-size: 15px; line-height: 1.2; color: #d6e2ff; flex: 1; }
.cr-u-farm { font-size: 14px; color: #b9c8ec; }
.cr-u-prix { font-size: 13px; color: #b9c8ec; } /* (19/11) le prix chez Kecleon, sur chaque carte */
.cr-u-b { display: block; height: 10px; margin-top: 3px; background: #0a1233; border: 2px solid #31508f; position: relative; }
.cr-u-b i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffc1ee, #d94fae); }
.cr-u-farm.fini .cr-u-b i { background: linear-gradient(#b6f0b0, #4fbf5a); }
.cr-u-note { font-size: 14px; margin: 6px 4px 0; }
/* Téléphone */
@media (max-width: 820px) and (min-height: 561px) {
  .cr-tete { flex-wrap: wrap; } .cr-portrait { width: 48px; height: 48px; } .cr-phrase { font-size: 14px; }
  .cr-corps { grid-template-columns: 1fr; } .cr-liste { max-height: 220px; }
  .cr-duo { grid-template-columns: 1fr 40px 1fr; } .cr-grand { width: 72px; height: 72px; } .cr-grand .cr-ic { width: 60px; height: 60px; } .cr-nom { font-size: 18px; } .cr-eff { font-size: 13px; }
  .cr-regle { display: none; }
}
@media (max-height: 560px) {
  .cr-box { gap: 4px; } .cr-tete { gap: 6px; } .cr-portrait { width: 36px; height: 36px; } .cr-titre { font-size: 20px; } .cr-phrase { font-size: 12px; margin-top: 0; }
  .cr-onglets .btn { font-size: 15px; } .cr-poke { font-size: 14px; }
  .cr-corps { grid-template-columns: 220px 1fr; gap: 6px; } .cr-liste { max-height: calc(100vh - 110px); }
  .cr-filtres { display: none; } .cr-it .cr-ic { width: 26px; height: 26px; } .cr-it-n { font-size: 13px; } .cr-it-n small { font-size: 11px; } .cr-it-q { font-size: 14px; }
  .cr-duo { grid-template-columns: 1fr 40px 1fr; } .cr-carte { padding: 4px; gap: 2px; } .cr-grand { width: 56px; height: 56px; } .cr-grand .cr-ic { width: 44px; height: 44px; }
  .cr-mystere { font-size: 36px; } .cr-pt { font-size: 22px; } .cr-nom { font-size: 15px; } .cr-eff { font-size: 11px; } .cr-carte-t { font-size: 11px; }
  .cr-cout { gap: 10px; padding: 4px; } .cr-c { font-size: 15px; } .cr-c .cr-ic.mini { width: 24px; height: 24px; } .cr-barre { width: 90px; }
  .cr-regle { display: none; } .cr-uniques { max-height: calc(100vh - 90px); } .cr-u-grille { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .cr-u-eff { font-size: 12px; } .cr-u-nom { font-size: 15px; }
}
.cr-box .bad { color: var(--bad); } .cr-box .ok { color: var(--ok); }
@media (max-height: 560px) { /* (téléphone couché) en-tête sur une ligne, boutons plus petits, la fenêtre défile s'il le faut */
  .cr-box { overflow: auto; }
  .cr-tete.box { padding: 0 6px; border-width: 10px; }
  .cr-droite { flex-direction: row; align-items: center; gap: 8px; }
  .cr-tete .btn { font-size: 14px; padding: 0 8px 0 14px; border-width: 8px; }
  .cr-phrase { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .cr-liste.box, .cr-main.box, .cr-uniques.box { border-width: 10px; padding: 2px 6px; }
  .cr-main { gap: 4px; }
  .cr-bas .btn { font-size: 15px; }
  .cr-u-grille { gap: 6px; padding-top: 6px; }
}
/* (14/11) Boutique Kecleon : les objets du jour (2 communs, 2 épiques, 5 % de chances de légendaire chacun) */
/* (5/12, bug Discord : vente chez Kecleon qui plante sur iPad) L'ombre des fenêtres est un filtre (drop-shadow) : sur la grande
   fenêtre de Kecleon, haute de plusieurs milliers de pixels avec beaucoup d'objets à vendre, Safari gardait une image géante de
   toute la fenêtre (rien ne s'affichait), et une centaine de cartes ombrées faisaient planter l'onglet après quelques ventes
   (essai WebKit iPad : plantage à la 4e vente, 20 ventes sans souci sans ces filtres). Ni la fenêtre ni ses cartes n'en ont donc :
   sur le fond sombre de la fenêtre, l'ombre des cartes ne se voyait presque pas. */
.box.pc-shop, .pc-shop .box { filter: none; }
.pc-shop .shop-carte.shop-jour { position: relative; padding-top: 20px; border-image-source: url('assets/ui/cadres/cadre1_yellow_translucide.png'); }
.pc-shop .shop-jour-t { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--gold); text-shadow: 0 2px 0 #000; }
.pc-shop .shop-carte.shop-leg { border-image-source: url('assets/ui/cadres/cadre1_pink_translucide.png'); animation: shop-leg 2s ease-in-out infinite; }
.pc-shop .shop-carte.shop-leg .shop-jour-t { color: #ff8a5c; }
@keyframes shop-leg { 50% { filter: drop-shadow(0 0 10px rgba(255, 138, 92, .8)); } }
/* (14/11) Téléphone couché : le café et l'atelier de Cradopaud sont dans le menu principal ; des tuiles un peu plus
   étroites (9 à 10 par rangée) pour que tout tienne encore sans défiler */
@media (orientation: landscape) and (max-height: 500px) {
  body.is-touch .hub-mini .menu.cm { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 3px; }
  body.is-touch .hub-mini .cm .tuile { min-height: 48px; font-size: 12px; }
}
/* (14/11) PC : « Plus… » déplié tenait à peine (cadeau, Soutenir…) ; avec le café et l'atelier dans le menu principal, ses
   tuiles deviennent plus basses pour que tout reste à l'écran */
body:not(.is-touch) .hub-mini .cm .cm-reste .tuile { padding: 1px 2px; font-size: 13px; min-height: 0; }
body:not(.is-touch) .hub-mini .cm .cm-reste .tuile .ico { width: 24px; height: 24px; font-size: 20px; }
body:not(.is-touch) .hub-mini .cm .cm-reste .tuile .ico .pxi { --k: 1.5px; }
body:not(.is-touch) .hub-mini .cm .cm-reste .tuile .t-bientot { font-size: 11px; }
/* (14/11 soir, captures de Kiko) le corps de l'atelier a une hauteur fixe : la liste défile DANS son cadre, et le compteur et
   le bouton « Améliorer » restent juste sous les deux cartes (plus de grand vide au milieu) */
.cr-corps { flex: none; height: min(480px, calc(100vh - 200px)); }
.cr-liste { max-height: none; height: 100%; overflow: hidden; }
.cr-scroll { min-height: 0; }
.cr-main { justify-content: flex-start; gap: 10px; overflow: auto; }
.cr-bas { margin-top: 2px; }
@media (max-width: 820px) and (min-height: 561px) { /* téléphone debout : la liste au-dessus (hauteur fixe), le panneau dessous */
  .cr-box { overflow: auto; }
  .cr-corps { height: auto; }
  .cr-liste { height: 210px; }
  .cr-main { overflow: visible; }
}
@media (max-height: 560px) { /* téléphone couché */
  .cr-corps { height: calc(100vh - 118px); }
  .cr-main { gap: 4px; }
}
@media (max-width: 820px) and (min-height: 561px) { /* téléphone debout : en-tête compact, rien ne dépasse en largeur */
  .cr-box { overflow-x: hidden; }
  .cr-tete.box { flex-wrap: wrap; padding: 2px 6px; border-width: 10px; }
  .cr-titre { font-size: 22px; }
  .cr-droite { order: 3; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .cr-tete .btn { font-size: 15px; padding: 0 8px 0 14px; border-width: 8px; }
  .cr-fermer { position: absolute; top: 0; right: 0; }
  .cr-titre-z { padding-right: 70px; }
  .cr-filtres { display: none; }
  .cr-liste.box, .cr-main.box { border-width: 10px; padding: 2px 6px; }
  .cr-liste { height: 230px; }
  .cr-duo { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); }
  .cr-carte { min-width: 0; }
  .cr-cout { gap: 8px; } .cr-barre { width: 70px; } .cr-c { font-size: 16px; }
  .cr-bas { justify-content: center; }
}
/* (15/11) Boutique Kecleon refaite : pack de 10 gelées (la gelée change de couleur), dé de relance, ristournes, objets uniques « Bientôt » */
.pc-shop .kec-pack { position: relative; display: inline-block; width: 48px; height: 48px; }
.pc-shop .kec-pack img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; animation: kec-pack 4s steps(1) infinite; animation-delay: calc(var(--k) * 1s); }
.pc-shop .kec-pack b { right: 0; bottom: 0; }
@keyframes kec-pack { 0% { opacity: 1; } 25% { opacity: 0; } }
.shop-relance { align-items: center; gap: 10px; margin: 4px 0 8px; flex-wrap: wrap; }
.btn.kec-de { gap: 6px; padding: 0 12px 0 18px; font-size: 22px; }
.btn.kec-de .kec-de-img { width: 32px; height: 32px; image-rendering: pixelated; }
.btn.kec-de.vide { filter: grayscale(.8) brightness(.7); }
.btn.kec-de.roule .kec-de-img { animation: kec-roule .5s linear; }
@keyframes kec-roule { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(270deg) scale(1.3); } 100% { transform: rotate(540deg) scale(1); } }
.kec-niv { font-size: 15px; }
.pc-shop .shop-carte.kec-neuf { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.kec-remise { font-size: 14px; } .kec-remise s { color: var(--dim); } .kec-remise b { color: #6ee27a; font-weight: normal; }
.pc-shop .shop-carte.shop-unique { position: relative; padding-top: 20px; border-image-source: url('assets/ui/cadres/cadre1_pink_translucide.png'); }
.pc-shop .shop-unique .shop-jour-t { color: #ff7ad9; }
.kec-u-haut { display: flex; align-items: center; gap: 8px; }
.kec-u-obj { width: 44px; height: 44px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 122, 217, .4), transparent 68%); }
.kec-u-cadre { width: 48px; height: 48px; border: 3px solid #cfe0ff; background: #0b1636; box-shadow: 0 0 0 2px #000; }
.kec-u-cadre img { width: 100%; height: 100%; image-rendering: pixelated; }
.kec-u-cadre.non { border-color: #4a5578; } .kec-u-cadre.non img { filter: grayscale(1) brightness(.4) contrast(1.2); }
/* (15/11) PC : la Boutique Kecleon rejoint le café et l'atelier dans le menu principal ; tuiles de lieu un peu plus basses */
body:not(.is-touch) .hub-mini .cm .cm-lieu .tuile { min-height: 0; padding-top: 0; padding-bottom: 0; }
body:not(.is-touch) .hub-mini .cm .cm-lieu .tuile .ico { width: 26px; height: 26px; }
body:not(.is-touch) .hub-mini .cm .tuile { line-height: 1.05; }
body:not(.is-touch) .hub-mini .cm .cm-lieu .tuile { font-size: 15px; }
body:not(.is-touch) .hub-mini .cm .cm-grille { gap: 3px; }
body:not(.is-touch) .hub-mini .cm .cm-partir { padding-top: 0; padding-bottom: 0; }
body:not(.is-touch) .hub-mini .cm .cm-partir { min-height: 50px; }
/* (15/11) Objets uniques : onglets par catégorie, couleur de bord selon la catégorie */
.cr-u-onglets { gap: 4px; flex-wrap: wrap; margin-bottom: 4px; flex: none; }
.btn.mini.cr-u-onglet { font-size: 15px; padding: 0 8px 0 14px; border-width: 8px; }
.btn.mini.cr-u-onglet.on { border-image-source: url('assets/ui/cadres/cadre1_yellow_fin.png'); color: var(--gold); }
.cr-u.cat-mega:not(.possede) { border-color: rgba(127, 196, 255, .6); } .cr-u.cat-mega .cr-u-rar { border-color: #7fc4ff; color: #7fc4ff; background: rgba(10, 40, 70, .5); }
.cr-u.cat-objet:not(.possede) { border-color: rgba(255, 211, 92, .55); } .cr-u.cat-objet .cr-u-rar { border-color: var(--gold); color: var(--gold); background: rgba(60, 40, 0, .5); }
/* (15/11) objets uniques : Réclamer, Obtenu, fenêtre « Tu obtiens » partout */
.cr-u-reclamer { align-self: center; font-size: 16px; animation: cr-pulse 1.4s ease-in-out infinite; }
.cr-u-obtenu { align-self: flex-start; font-size: 13px; color: var(--ok); }
.cr-u-obj.grand { width: 96px; height: 96px; position: relative; z-index: 1; animation: bg-sort .6s cubic-bezier(.2, 1.6, .4, 1); }
.modal.cr-gagne-global { position: fixed; z-index: 70; }
/* (15/11) Plaque d'Arceus : choix du type (fenêtre d'objet d'Arceus) */
.plaque-choix { margin: 6px 0 8px; padding: 6px; border: 2px solid rgba(255, 122, 217, .55); border-radius: 5px; background: rgba(60, 10, 40, .35); }
.plaque-choix b { color: #ff7ad9; font-weight: normal; font-size: 16px; }
.plaque-types { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.plaque-t { padding: 2px; margin: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; font-family: inherit; opacity: .75; transition: transform .12s, opacity .12s; }
.plaque-t:hover, .plaque-t:focus-visible { opacity: 1; transform: translateY(-1px); outline: none; }
.plaque-t .type { pointer-events: none; font-size: 15px; }
.plaque-t.on { opacity: 1; border-color: #ffd34d; box-shadow: 0 0 6px #ffd34d; animation: plaque-on .3s ease-out; }
@keyframes plaque-on { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* (15/11) fiche du Pokémon : stat augmentée par un objet tenu (objet unique compris) */
.stat-bonus { flex: none; margin-left: 4px; padding: 0 4px; font-size: 13px; color: #6ee27a; border: 1px solid rgba(110, 226, 122, .6); border-radius: 3px; background: rgba(10, 50, 20, .55); white-space: nowrap; }
/* (15/11, Kiko) Pack de 15 gelées : ouverture animée (client/js/pack-gelees.js), sur le modèle du cadeau du jour */
.kec-ouv-modal { z-index: 46; }
.kec-ouv-box { width: min(620px, 96vw); }
.kec-ouv-scene { min-height: 132px; }
.kec-ouv-paquet { position: relative; display: block; width: 72px; height: 72px; }
.kec-ouv-paquet img { position: absolute; width: 44px; height: 44px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.6)); }
.kec-ouv-p0 { left: 0; top: 0; } .kec-ouv-p1 { right: 0; top: 4px; } .kec-ouv-p2 { left: 4px; bottom: 0; } .kec-ouv-p3 { right: 2px; bottom: 2px; }
.kec-ouv-modal .cad-paquet.ouvert .cad-boite { animation: kecOuvPaquet .5s ease-in forwards; }
@keyframes kecOuvPaquet { 0% { transform: scale(1); } 35% { transform: scale(1.4); filter: brightness(3); } 100% { transform: scale(0); opacity: 0; } }
.kec-ouv-pluie { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 40px; max-width: 480px; margin: 0 auto 8px; }
.kec-ouv-pluie:empty { min-height: 0; }
.kec-ouv-g { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%);
  animation: kecOuvG .45s cubic-bezier(.2,1.7,.4,1) both; }
.kec-ouv-g img { width: 28px; height: 28px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
@keyframes kecOuvG { 0% { opacity: 0; transform: translateY(-46px) scale(.3) rotate(var(--r)); } 70% { opacity: 1; transform: translateY(3px) scale(1.15); } 100% { transform: none; } }
.kec-ouv-totaux { justify-content: center; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.kec-ouv-tot { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; font-size: 20px; color: var(--txt); opacity: .45;
  background: rgba(7,13,36,.75); box-shadow: inset 0 0 0 2px var(--c), 0 2px 0 #000; }
.kec-ouv-tot b { font-weight: normal; color: var(--c); font-size: 24px; min-width: 2ch; }
.kec-ouv-tot span { font-size: 16px; color: var(--dim); }
.kec-ouv-tot.vu { opacity: 1; }
.kec-ouv-tot.pop { animation: kecOuvTot .3s cubic-bezier(.2,1.8,.4,1); }
@keyframes kecOuvTot { 0% { transform: scale(1.3); } 100% { transform: none; } }
.kec-ouv-modal.fini .kec-ouv-box { box-shadow: 0 0 50px rgba(255,211,92,.5); }
@media (max-height: 520px) { .kec-ouv-scene { min-height: 90px; } .kec-ouv-g { width: 28px; height: 28px; } .kec-ouv-g img { width: 22px; height: 22px; } .kec-ouv-tot { font-size: 16px; } }
/* (15/11, Kiko) barre de stat en 3 parts : gelées (couleur de la gelée), Gelées Dorées (doré), équipement (vert clair) */
.stat-bar.stat-3 > i, .stat-bar.stat-3 > .bar-or, .stat-bar.stat-3 > .bar-eq { position: absolute; top: 0; bottom: 0; left: 0; right: auto; transform: none; transition: width .35s steps(6), left .35s steps(6); }
.stat-bar.stat-3 > .bar-or { top: 0; bottom: 0; box-shadow: none; }
.stat-bar.stat-3 > .bar-eq { background: linear-gradient(180deg, #d4ffd0 0 34%, #7cf07e 34% 70%, #3cb54a 70%); box-shadow: inset 1px 0 0 rgba(0, 0, 0, .45); }
.stat-bar.stat-3 > .bar-150 { position: absolute; top: -1px; bottom: -1px; width: 1px; margin-left: -1px; background: rgba(255, 255, 255, .55); text-decoration: none; }
.stat-fin { white-space: nowrap; }
.stat-fin .eq-t, .stat-detail .eq-t { color: #7cf07e; font-weight: normal; }
.stat-detail { margin-left: 4px; font-size: 14px; }
.gel-2l .stat-num.stat-fin { width: auto; min-width: 58px; }
.stat-autres { flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0 2px; }
.stat-autres .stat-bonus { margin-left: 0; font-size: 14px; }
.stat-num.w-eq { width: 112px !important; min-width: 0 !important; text-align: right; white-space: nowrap; }
.fi-stat .stat-bonus, .gel-2l .stat-bonus { width: 62px; text-align: center; box-sizing: border-box; }
.stat-bonus.vide { visibility: hidden; }
@media (max-width: 520px) { .stat-num.w-eq { width: 92px !important; } .stat-detail { font-size: 12px; margin-left: 2px; } .fi-stat .stat-bonus, .gel-2l .stat-bonus { width: 52px; font-size: 12px; padding: 0 2px; } }
@media (max-width: 520px) { .gel-row.fi-stat:has(.w-eq), .gel-row.gel-2l:has(.w-eq) { flex-wrap: wrap; row-gap: 3px; } .gel-row.gel-2l:has(.w-eq) > .gel-sous { order: 6; } .gel-row.fi-stat:has(.w-eq) > .stat-bar, .gel-row.gel-2l:has(.w-eq) > .stat-bar { order: 5; flex: 1 1 100%; } .gel-row:has(.w-eq) > .stat-num.w-eq { margin-left: auto; } }
@media (max-width: 520px) { .gel-2l .gel-sous { flex-wrap: wrap; padding-left: 0; row-gap: 4px; } .gel-2l .gel-info { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 0 8px; } .gel-2l .gel-btns { flex-wrap: wrap; } }
@media (max-width: 520px) { .gel-2l .gel-btns { flex: 1 1 100%; gap: 4px; } .gel-2l .gel-btn { font-size: 14px; padding: 2px 6px !important; } .gel-2l .gel-or-btn .gel-or-tx { font-size: 12px; } }
@media (max-width: 520px) { .gel-row:has(.w-eq) > .stat-num.w-eq { width: auto !important; } .gel-row:has(.w-eq) { column-gap: 6px; } .gel-row.fi-stat:has(.w-eq) > span:nth-of-type(1) { width: auto !important; } }

/* (18/11) Météorite de Deoxys : choix de la forme (fenêtre de l'objet tenu) */
.forme-choix { gap: 6px; }
.forme-t { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1 1 150px; padding: 5px 6px; border: 2px solid color-mix(in srgb, var(--pc) 55%, transparent); background: color-mix(in srgb, var(--pc) 14%, rgba(10, 12, 30, .7)); color: #eef; }
.forme-t img { width: 40px; height: 40px; image-rendering: pixelated; border: 2px solid var(--pc); border-radius: 4px; }
.forme-t .forme-n { color: var(--pc); font-size: 17px; }
.forme-t .forme-r { font-size: 14px; color: #cfd6f5; text-align: center; line-height: 1.15; }
/* (18/11) couleur de la fleur de Flabébé, Floette et Florges (fiche du Pokémon) */
.fi-fleurs { align-items: center; gap: 6px; margin: 2px 0 8px; flex-wrap: wrap; }
.fi-fleurs .fl-t { color: #ffb3e6; font-size: 16px; margin-right: 2px; }
.fleur-btn { width: 30px; height: 30px; padding: 0; margin: 0; border: 2px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(10, 12, 30, .6); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .12s, box-shadow .12s; }
.fleur-btn .fl-p { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #ffe46b 0 24%, var(--fc) 27% 100%); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); pointer-events: none; }
.fleur-btn:hover, .fleur-btn:focus-visible { transform: translateY(-2px) scale(1.08); outline: none; }
.fleur-btn.on { border-color: #ffd34d; box-shadow: 0 0 7px #ffd34d; animation: plaque-on .3s ease-out; }
/* (20/11, joueurs) Apparence d'un Pokémon qui tient un objet de forme (Méga, Météorite, Partition, Plaque) : deux boutons
   avec le portrait de chaque apparence ; celle choisie est dorée */
.fi-apparence { align-items: center; gap: 6px; margin: 2px 0 8px; flex-wrap: wrap; }
.fi-apparence .app-t { color: #ffd77a; font-size: 16px; margin-right: 2px; }
.app-btn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; margin: 0; border: 2px solid rgba(255, 255, 255, .25); border-radius: 10px; background: rgba(10, 12, 30, .6); color: #e8ecff; font: inherit; font-size: 16px; cursor: pointer; opacity: .72; transition: transform .12s, opacity .12s, border-color .12s; }
.app-btn img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 6px; background: rgba(255, 255, 255, .06); pointer-events: none; }
.app-btn:hover, .app-btn:focus-visible { transform: translateY(-2px); opacity: 1; outline: none; }
.app-btn.on { opacity: 1; color: #ffe9a8; border-color: #ffd34d; box-shadow: 0 0 7px #ffd34d; animation: plaque-on .3s ease-out; }
.fi-apparence .app-aide { flex-basis: 100%; font-size: 14px; }
.stat-bonus.malus { color: #ff8f8f; border-color: rgba(255, 120, 120, .6); background: rgba(60, 12, 12, .55); }
.eq-malus { color: #ff8f8f; }
/* (18/11 soir, Kiko) ristourne de Kecleon bien visible : l'ancien prix barré et le nouveau DANS le bouton d'achat, et une
   étiquette « −40 % » dans le coin de la carte */
.pc-shop .shop-carte.shop-promo { position: relative; }
.pc-shop .kec-promo-tag { position: absolute; top: -8px; right: -6px; z-index: 2; padding: 1px 7px; font-size: 15px; color: #fff; background: linear-gradient(#ff6b5e, #c8262f); border: 2px solid #ffd35c; border-radius: 4px; box-shadow: 0 2px 0 #000, 0 0 8px rgba(255, 107, 94, .6); transform: rotate(6deg); text-shadow: 0 1px 0 #000; animation: kec-promo 1.6s ease-in-out infinite; }
@keyframes kec-promo { 50% { transform: rotate(6deg) scale(1.08); } }
.pc-shop .btn.kec-promo-btn { gap: 6px; }
.pc-shop .btn.kec-promo-btn .kec-ancien { color: #ff9a8f; font-size: .8em; text-decoration-thickness: 2px; text-decoration-color: #ff5a4a; }
.pc-shop .btn.kec-promo-btn .kec-nouveau { color: #9fffaa; font-weight: normal; text-shadow: 0 0 6px rgba(110, 226, 122, .6), 0 2px 0 #000; }
.pc-shop .btn.kec-promo-btn:disabled .kec-nouveau { color: #b9e8be; }
/* (26/11/2026, Kiko) Atelier de Cradopaud en 3 onglets : Objets uniques, Fusion d'objets, Fusion de CT (client/js/cradopo-ct.js).
   Recherche et tri dans chaque onglet (client/js/cradopo-cherche.js). Préfixes cr- (commun) et crc- (onglet CT). */
.cr-onglets { flex-wrap: nowrap; gap: 4px; }
.cr-onglet .pxi { margin-right: 2px; vertical-align: -3px; }
.cr-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; flex: none; }
.cr-outils .cr-cherche { flex: 1 1 180px; }
.cr-outils .cr-cherche .field { font-size: 17px; padding-top: 2px; padding-bottom: 2px; }
.cr-cherche.rien .field { box-shadow: 0 0 0 2px rgba(255, 107, 107, .6) inset; }
.cr-tris { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: 14px; }
.btn.mini.cr-tri { font-size: 14px; padding: 0 6px 0 10px; border-width: 8px; }
.btn.mini.cr-tri.on { border-image-source: url('assets/ui/cadres/cadre1_yellow_fin.png'); color: var(--gold); }
.cr-cache { display: none !important; }
.cr-rien { text-align: center; padding: 12px; grid-column: 1 / -1; }
.cr-u-outils { margin: 2px 0 0; }
.cr-u-outils .cr-cherche { flex: 0 1 320px; }
/* ---- Onglet CT : la liste ---- */
.cradopo-modal .btn.crc-it { position: relative; }
.cradopo-modal .btn.crc-it::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 4px; background: var(--tc); border-radius: 2px; opacity: .85; }
.crc-it .ct-disque { width: 40px; height: 40px; }
.crc-it .cr-it-n small { display: flex; gap: 2px; margin-top: 3px; }
.crc-it .ct-type, .crc-it .ct-rar { font-size: 12px; padding: 0 4px; }
.crc-it.groupe:not(.sel) { filter: brightness(1.08); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 45%, transparent) inset; }
.crc-it.haut .ct-disque { filter: drop-shadow(0 0 4px #ffcb3d); }
.crc-pret { color: #9fffaa; text-shadow: 0 0 6px rgba(110, 226, 122, .7); animation: crc-pret 1.2s ease-in-out infinite; }
@keyframes crc-pret { 50% { opacity: .55; } }
/* ---- Onglet CT : la cuve ---- */
.crc-main { gap: 8px; }
.crc-regle-t { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; font-size: 18px; }
.crc-regle-t .ct-disque { width: 24px; height: 24px; }
.crc-cuve-z { display: grid; grid-template-columns: 1fr 56px auto; align-items: center; gap: 8px; padding: 8px 12px; background: radial-gradient(ellipse at 80% 50%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 65%), rgba(5, 10, 30, .6); border: 2px solid rgba(255, 255, 255, .12); border-radius: 6px; }
.crc-fentes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.crc-fente { width: 54px; height: 54px; display: grid; place-items: center; border: 2px dashed rgba(255, 255, 255, .25); border-radius: 6px; background: rgba(0, 0, 0, .3); transition: opacity .2s; }
.crc-fente i { font-style: normal; color: rgba(255, 255, 255, .25); font-size: 20px; }
.crc-fente.pleine { border-style: solid; border-color: var(--tc); box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 55%, transparent) inset; animation: crc-fente .3s cubic-bezier(.2, 1.6, .4, 1); }
.crc-fente .ct-disque { width: 40px; height: 40px; }
.crc-fente.videe { opacity: .25; }
@keyframes crc-fente { 0% { transform: scale(.7); } 100% { transform: none; } }
.crc-cuve { position: relative; width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rc) 55%, #2a1440) 0, #170a26 62%, #07030e 100%);
  box-shadow: 0 0 0 4px #101018, 0 0 0 7px #6a4b2a, 0 0 18px color-mix(in srgb, var(--rc) 60%, transparent), inset 0 -10px 18px rgba(0, 0, 0, .6); }
.crc-cuve.terne { filter: grayscale(.65) brightness(.75); }
.crc-res { position: relative; z-index: 1; display: grid; place-items: center; animation: cr-pulse 2.2s ease-in-out infinite; }
.crc-res .ct-disque.gros { width: 64px; height: 64px; }
.crc-res .ct-disque.silhouette { filter: brightness(0) drop-shadow(0 0 6px var(--rc)) drop-shadow(0 0 2px #fff); opacity: .9; }
.crc-res .cr-pt { font-size: 32px; }
.crc-bulles i { position: absolute; bottom: -12px; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--rc) 70%, #fff); opacity: .7; animation: crc-bulle 2.4s ease-in infinite; }
.crc-bulles i:nth-child(1) { left: 22%; } .crc-bulles i:nth-child(2) { left: 48%; width: 7px; height: 7px; animation-delay: .7s; }
.crc-bulles i:nth-child(3) { left: 68%; animation-delay: 1.3s; } .crc-bulles i:nth-child(4) { left: 36%; width: 6px; height: 6px; animation-delay: 1.8s; }
@keyframes crc-bulle { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(-120px) scale(1.1); opacity: 0; } }
.crc-cuve.plouf { animation: crc-plouf .28s ease-out; }
@keyframes crc-plouf { 40% { transform: scale(1.08, .94); } 100% { transform: none; } }
.crc-cuve.bout { animation: cr-tremble .45s linear 2; }
.crc-cuve.bout .crc-bulles i { animation-duration: .7s; }
.crc-vol { width: 32px; height: 32px; }
/* ---- Onglet CT : les CT données, et celles qui peuvent sortir ---- */
.crc-donne { background: rgba(0, 0, 0, .25); border: 2px solid rgba(255, 211, 92, .3); border-radius: 6px; padding: 4px 8px; }
.crc-sous { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--dim); }
.crc-sous .btn.mini { font-size: 14px; padding: 0 6px 0 10px; border-width: 8px; }
.crc-lignes { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; max-height: 168px; overflow: auto; }
.crc-l { display: flex; align-items: center; gap: 6px; padding: 1px 4px; border-radius: 4px; font-size: 17px; }
.crc-l.pris { background: rgba(255, 211, 92, .1); }
.crc-l .ct-disque { width: 28px; height: 28px; }
.btn.mini.crc-pm { min-width: 38px; font-size: 20px; padding: 0 6px 0 10px; border-width: 8px; justify-content: center; }
.crc-k { min-width: 1.6ch; text-align: center; font-size: 20px; color: var(--gold); }
.crc-pool { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; }
.btn.mini.crc-p { font-size: 14px; padding: 0 6px 0 10px; border-width: 8px; gap: 4px; }
.btn.mini.crc-p.inconnue { opacity: .72; }
.crc-note { margin: 0; font-size: 15px; color: #8fd0ff; }
.crc-avert { margin: 0; font-size: 15px; color: #ffb36b; }
.crc-max { font-size: 18px; color: #ffcb3d; }
.crc-haut { display: flex; gap: 10px; align-items: center; }
/* ---- Fenêtres de l'onglet CT ---- */
.crc-gagne .cr-rayons { background: repeating-conic-gradient(color-mix(in srgb, var(--rc) 40%, transparent) 0 10deg, transparent 10deg 20deg); }
.crc-gagne .ct-disque.crc-grand { width: 96px; height: 96px; position: relative; z-index: 1; animation: bg-sort .6s cubic-bezier(.2, 1.6, .4, 1), ctTourne 1.6s steps(8) infinite; }
.crc-gagne .cr-gagne-b { box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 55%, transparent); }
.crc-gagne .crc-r-leg { animation: pop .3s cubic-bezier(.2,1.4,.4,1), crc-leg 1.8s ease-in-out infinite .3s; }
@keyframes crc-leg { 50% { box-shadow: 0 0 70px rgba(255, 203, 61, .85); } }
.crc-neuve { position: relative; z-index: 1; font-size: 15px; padding: 0 8px; color: #101018; background: linear-gradient(#b6f0b0, #4fbf5a); border: 2px solid #101018; transform: rotate(-4deg); animation: kec-promo 1.6s ease-in-out infinite; }
.crc-conf-d { display: flex; gap: 4px; justify-content: center; position: relative; z-index: 1; }
.crc-conf-d .ct-disque { width: 36px; height: 36px; }
@media (prefers-reduced-motion: reduce) { .crc-bulles i, .crc-res, .crc-pret, .crc-gagne .ct-disque.crc-grand { animation: none; } }
/* Téléphone debout */
@media (max-width: 820px) and (min-height: 561px) {
  .cr-onglets { flex-wrap: wrap; }
  .cr-onglet .pxi { display: none; }
  .cr-tris > .muted { display: none; }
  .crc-cuve-z { grid-template-columns: 1fr; justify-items: center; padding: 6px; }
  .crc-fleche { transform: rotate(90deg); height: 30px; }
  .crc-fente { width: 44px; height: 44px; } .crc-fente .ct-disque { width: 32px; height: 32px; }
  .crc-cuve { width: 96px; height: 96px; }
  .crc-lignes { max-height: none; }
}
/* Téléphone couché et petits écrans bas */
@media (max-height: 560px) {
  .cr-outils { margin-bottom: 3px; gap: 2px 4px; }
  .cr-outils .cr-cherche .field { font-size: 14px; }
  .cr-tris > .muted { display: none; }
  .btn.mini.cr-tri { font-size: 12px; }
  .cr-onglet .pxi { display: none; }
  .crc-it .ct-disque { width: 26px; height: 26px; }
  .crc-it .cr-it-n small { display: none; }
  .crc-regle-t { font-size: 14px; }
  .crc-cuve-z { padding: 4px 6px; grid-template-columns: 1fr 30px auto; }
  .crc-fente { width: 36px; height: 36px; } .crc-fente .ct-disque { width: 26px; height: 26px; }
  .crc-cuve { width: 74px; height: 74px; } .crc-res .ct-disque.gros { width: 40px; height: 40px; } .crc-res .cr-pt { font-size: 20px; }
  .crc-l { font-size: 13px; } .crc-l .ct-disque { width: 20px; height: 20px; } .btn.mini.crc-pm { min-width: 30px; font-size: 16px; }
  .crc-lignes { max-height: 96px; }
  .crc-pool { font-size: 12px; } .btn.mini.crc-p { font-size: 12px; }
}
/* Grands écrans : la cuve et les fentes un peu plus grandes */
@media (min-width: 1600px) and (min-height: 900px) {
  .crc-cuve { width: 150px; height: 150px; } .crc-res .ct-disque.gros { width: 80px; height: 80px; }
  .crc-fente { width: 62px; height: 62px; } .crc-fente .ct-disque { width: 48px; height: 48px; }
}
/* (26/11) téléphone : les tris sur une seule ligne (elle glisse au doigt), la liste garde la place ; textes de l'onglet CT plus petits */
.crc-main p { font-size: 16px; margin: 4px 0; }
@media (max-width: 820px) and (min-height: 561px) {
  .cr-tris { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .cr-tris::-webkit-scrollbar { display: none; }
  .btn.mini.cr-tri { flex: none; }
  .crc-corps .cr-liste { height: 300px; }
  .cr-outils .cr-cherche .field { font-size: 15px; }
}
@media (max-height: 560px) {
  .cr-outils { gap: 2px; }
  .cr-outils .cr-cherche { flex: 1 1 100%; }
  .cr-tris { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; min-width: 0; }
  .cr-tris::-webkit-scrollbar { display: none; }
  .btn.mini.cr-tri { flex: none; padding: 0 4px 0 8px; }
  .crc-main p { font-size: 13px; }
}
/* (26/11 soir, Kiko) tri « Type » : petits onglets de types (ceux que j'ai) ; prix de la fusion en Poké */
.crc-types { display: flex; flex-wrap: wrap; gap: 3px; margin: -2px 0 6px; flex: none; }
.btn.mini.crc-ft { font-size: 13px; padding: 0 6px 0 8px; border-width: 8px; gap: 3px; }
.btn.mini.crc-ft .ct-disque { width: 18px; height: 18px; }
.btn.mini.crc-ft b { font-weight: normal; color: var(--dim); font-size: 12px; }
.btn.mini.crc-ft.on { border-image-source: url('assets/ui/cadres/cadre1_yellow_fin.png'); color: var(--gold); box-shadow: 0 2px 0 var(--tc, var(--gold)); animation: plaque-on .3s ease-out; }
.crc-prix { font-size: 22px; margin-left: auto; }
.crc-regle-t .pxi { vertical-align: -2px; }
@media (max-width: 820px) and (min-height: 561px) {
  .crc-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .crc-types::-webkit-scrollbar { display: none; }
  .btn.mini.crc-ft { flex: none; }
}
@media (max-height: 560px) {
  .crc-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 3px; }
  .crc-types::-webkit-scrollbar { display: none; }
  .btn.mini.crc-ft { flex: none; font-size: 11px; }
  .crc-prix { font-size: 15px; }
}
/* (26/11 soir, Kiko) les types sur UNE ligne qui glisse sur le côté (doigt, souris, molette, manette), avec un fondu au bord
   quand d'autres types sont cachés de ce côté */
.crc-types { position: relative; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px 2px 4px; cursor: grab; touch-action: pan-x; overscroll-behavior-x: contain; }
.crc-types::-webkit-scrollbar { display: none; }
.crc-types .btn.mini.crc-ft { flex: none; }
.crc-types.tire { cursor: grabbing; user-select: none; }
.crc-types.tire .crc-ft { pointer-events: none; }
.crc-types.plus-d { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.crc-types.plus-g { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
.crc-types.plus-g.plus-d { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
/* (26/11 soir) la fenetre ne rejoue plus son ouverture a chaque redessin ; changement d'onglet : petit fondu */
.cr-box.redessin { animation: none; }
.cr-box.change > .cr-corps, .cr-box.change > .cr-uniques { animation: bg-fondu .18s ease-out; }
/* (26/11 soir, Kiko) case « Prêtes » (cochée : mes CT ; décochée : toutes les CT du jeu), devant les tris ; CT que je n'ai pas en gris */
.crc-tris-z { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; min-width: 0; max-width: 100%; }
.btn.mini.crc-mien { flex: none; gap: 4px; }
.crc-case { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 2px solid currentColor; background: rgba(0, 0, 0, .4); font-style: normal; }
.crc-case .pxi { --k: 1px; }
.btn.mini.crc-mien:not(.on) { color: var(--dim); }
.cradopo-modal .btn.crc-it.absente .ct-disque, .cradopo-modal .btn.crc-it.absente .cr-it-n { filter: grayscale(.9) brightness(.6); }
.cradopo-modal .btn.crc-it.absente::before { opacity: .35; }
.crc-aucune { margin: 4px 0; font-size: 15px; }
@media (max-height: 560px), (max-width: 820px) and (min-height: 561px) { .crc-tris-z .cr-tris { overflow-x: auto; flex-wrap: nowrap; } }
/* (26/11 soir) écrans pas très hauts (PC 1280×720…) : la cuve plus compacte, le bouton Fusionner reste visible */
@media (max-height: 800px) and (min-height: 561px) {
  .crc-main { gap: 5px; }
  .crc-cuve-z { padding: 4px 10px; }
  .crc-cuve { width: 100px; height: 100px; }
  .crc-fente { width: 48px; height: 48px; } .crc-fente .ct-disque { width: 34px; height: 34px; }
  .crc-lignes { max-height: 120px; }
  .crc-avert, .crc-note { font-size: 14px; }
}
/* (26/11 soir, Kiko) barre de tri cadrée : « Trier : » en haut à gauche, puis une seule ligne de boutons (Prêtes d'abord pour les CT) */
.cr-outils .cr-tris { display: flex; flex-direction: column; align-items: stretch; gap: 2px; flex: 1 1 100%; min-width: 0; overflow: visible; }
.cr-u-outils .cr-tris { flex: 1 1 320px; }
.cr-tris > .cr-tris-l { display: block !important; font-size: 13px; line-height: 1; }
.cr-tris-b { display: flex; flex-wrap: nowrap; align-items: center; gap: 3px; overflow-x: auto; scrollbar-width: none; padding: 1px 1px 3px; }
.cr-tris-b::-webkit-scrollbar { display: none; }
.cr-tris-b .btn.mini { flex: none; }
.cr-tris-b .crc-mien { margin-right: 6px; }
@media (max-height: 560px) { .cr-tris > .cr-tris-l { font-size: 11px; } }
/* (26/11 soir) la ligne des tris glisse comme celle des types (fondu au bord, souris qu'on tire) */
.cr-tris-b { position: relative; cursor: grab; touch-action: pan-x; overscroll-behavior-x: contain; }
.cr-tris-b.tire { cursor: grabbing; user-select: none; } .cr-tris-b.tire .btn { pointer-events: none; }
.cr-tris-b.plus-d { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.cr-tris-b.plus-g { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
.cr-tris-b.plus-g.plus-d { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
/* (26/11 soir) au PC, la ligne de tri tient en entier dans la liste (boutons de taille normale, un peu moins de marge ; sinon la ligne glisse) */
.cr-liste .cr-tris-b { gap: 2px; }
.cr-liste .cr-tris-b .btn.mini.cr-tri { padding: 0 4px 0 8px; }
.cr-liste .cr-tris-b .crc-mien { margin-right: 4px; }
/* (26/11 soir) Kecleon : « Tu as déjà tout acheté ! » quand il a tous les objets uniques */
.pc-shop .shop-unique.kec-tout { display: flex; align-items: center; gap: 10px; }
.kec-tout-ico { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 0 6px #ff7ad9); animation: kecToutBrille 2.4s ease-in-out infinite; }
@keyframes kecToutBrille { 50% { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 0 10px #ffd35c); } }
@media (prefers-reduced-motion: reduce) { .kec-tout-ico { animation: none; } }
/* (2/12, bug Discord de Redalia) Téléphone couché, onglet « Objets uniques » : la liste ne gardait que 9 % de l'écran sous les
   filtres, la recherche, le tri et la règle. Tout le cadre défile d'un bloc, la liste prend sa vraie hauteur. */
@media (max-height: 560px), (max-width: 600px) {
  .cr-uniques { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .cr-uniques > .cr-u-grille { flex: none; overflow: visible; }
  .cr-uniques > .cr-u-onglets, .cr-uniques > .cr-u-outils { flex: none; }
}
