/* (19/11/2026) Zarbi : collection des 28 lettres (fiche du Pokémon) et annonce « Nouvelle lettre ! ».
   Couleurs des Ruines du Temps : pierre bleu nuit, runes cyan qui luisent, or pour les lettres rares (« ! » et « ? »). */
.zb-bloc { margin: 2px 0 10px; padding: 8px 10px 10px; border: 2px solid rgba(110, 200, 255, .35); border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 30, 58, .85), rgba(8, 14, 32, .85)); box-shadow: inset 0 0 18px rgba(80, 180, 255, .12); }
.zb-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.zb-t { color: #9fe3ff; font-size: 18px; text-shadow: 0 0 6px rgba(120, 220, 255, .6), 0 2px 0 #000; }
.zb-n { font-size: 16px; color: #cfe8ff; } .zb-n b { color: #fff; font-size: 20px; }
.zb-n.zb-fini { color: var(--gold); animation: zb-luit 1.6s ease-in-out infinite; }
.zb-barre { height: 7px; margin: 5px 0 8px; border-radius: 4px; background: rgba(0, 0, 0, .5); overflow: hidden; box-shadow: inset 0 1px 0 rgba(0, 0, 0, .6); }
.zb-barre i { display: block; height: 100%; background: linear-gradient(90deg, #4fb6ff, #9ff2ff); box-shadow: 0 0 8px #7fdcff; transition: width .5s ease-out; }
.zb-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 5px; }
.zb-l { position: relative; aspect-ratio: 1; min-height: 42px; padding: 0; margin: 0; cursor: pointer; border: 2px solid rgba(140, 200, 255, .3); border-radius: 6px;
  background: radial-gradient(circle at 50% 40%, rgba(70, 120, 190, .45), rgba(10, 16, 34, .9) 70%); transition: transform .12s, box-shadow .12s, border-color .12s; overflow: hidden; }
.zb-l img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; pointer-events: none; }
.zb-l .zb-c { position: absolute; right: 2px; bottom: 0; font-size: 13px; line-height: 1; color: #dff4ff; text-shadow: 0 1px 0 #000, 0 0 4px #000; pointer-events: none; }
.zb-l:hover:not(:disabled), .zb-l:focus-visible { transform: translateY(-2px) scale(1.06); border-color: #9fe3ff; box-shadow: 0 0 10px rgba(120, 220, 255, .55); outline: none; }
.zb-l.on { border-color: #fff; box-shadow: 0 0 0 2px #4fb6ff, 0 0 14px rgba(120, 220, 255, .9); animation: zb-porte 1.8s ease-in-out infinite; }
.zb-l.zb-rare:not(.zb-off) { border-color: rgba(255, 211, 92, .7); }
.zb-l.zb-rare.on { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(255, 211, 92, .9); }
.zb-l.zb-off { cursor: default; border-style: dashed; border-color: rgba(140, 170, 210, .2); background: rgba(6, 10, 22, .8); }
.zb-l.zb-off img { display: none; }
.zb-l.zb-off .zb-c { inset: 0; right: auto; bottom: auto; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 22px;
  color: rgba(150, 185, 230, .28); text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(160, 200, 255, .15); }
.zb-aide { font-size: 14px; margin-top: 6px; }
.nv.zb-nv { color: #9fe3ff; text-shadow: 0 0 6px rgba(120, 220, 255, .8), 0 2px 0 #000; }
@keyframes zb-luit { 50% { text-shadow: 0 0 10px rgba(255, 211, 92, .9), 0 2px 0 #000; } }
@keyframes zb-porte { 50% { box-shadow: 0 0 0 2px #4fb6ff, 0 0 20px rgba(120, 220, 255, 1); } }

/* Annonce « Nouvelle lettre ! » : la lettre arrive en tournant, des runes s'envolent tout autour */
.zb-annonce { position: fixed; left: 50%; top: 22%; z-index: 9000; transform: translateX(-50%); pointer-events: auto; cursor: pointer; animation: zb-entre .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.zb-annonce.zb-sort { animation: zb-sort .38s ease-in both; }
.zb-an-in { min-width: 230px; padding: 12px 22px 12px; text-align: center; border: 3px solid #7fdcff; border-radius: 10px;
  background: radial-gradient(circle at 50% 35%, rgba(40, 80, 140, .96), rgba(8, 14, 34, .97) 75%); box-shadow: 0 0 26px rgba(100, 200, 255, .6), 0 6px 0 rgba(0, 0, 0, .5); }
.zb-annonce.zb-rare .zb-an-in { border-color: var(--gold); box-shadow: 0 0 30px rgba(255, 211, 92, .7), 0 6px 0 rgba(0, 0, 0, .5); }
.zb-an-k { color: #9fe3ff; font-size: 22px; letter-spacing: 1px; text-shadow: 0 0 8px rgba(120, 220, 255, .9), 0 2px 0 #000; }
.zb-annonce.zb-rare .zb-an-k { color: var(--gold); text-shadow: 0 0 8px rgba(255, 211, 92, .9), 0 2px 0 #000; }
.zb-an-img { position: relative; width: 96px; height: 96px; margin: 6px auto 4px; }
.zb-an-img img { position: relative; width: 96px; height: 96px; image-rendering: pixelated; border-radius: 8px; animation: zb-tourne .7s cubic-bezier(.2, 1.3, .4, 1) .1s both; }
.zb-rune { position: absolute; left: 50%; top: 50%; font-style: normal; font-size: 16px; color: #aeeaff; text-shadow: 0 0 6px #4fb6ff; opacity: 0;
  animation: zb-rune 1.4s ease-out calc(.25s + var(--d)) both; }
.zb-an-nom { font-size: 26px; color: #fff; text-shadow: 0 2px 0 #000; }
.zb-an-n { font-size: 16px; color: #cfe8ff; }
@keyframes zb-entre { from { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(.6); } }
@keyframes zb-sort { to { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(.9); } }
@keyframes zb-tourne { from { opacity: 0; transform: rotateY(540deg) scale(.3); filter: brightness(3); } 70% { filter: brightness(1.6); } }
@keyframes zb-rune { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-10px); }
  25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-78px); } }
@media (prefers-reduced-motion: reduce) { .zb-annonce, .zb-an-img img, .zb-rune, .zb-l.on, .zb-n.zb-fini { animation: none !important; } .zb-rune { display: none; } }
