/* (2/12/2026) Fenêtre « Soutenir le jeu » qui s'ouvre une seule fois (js/soutien-fenetre.js) : Pikachu content et le titre
   en haut, la lettre de Kyoto, « Soutenir » (cadre jaune qui pulse) en bas à gauche, « Fermer » en bas à droite. */
.sou-modal { z-index: 45; background: radial-gradient(ellipse at 50% 35%, rgba(90, 70, 20, .38), rgba(3, 6, 20, .84)); animation: sou-fond .3s ease-out; }
.sou-modal.sortie { animation: sou-fond-sortie .24s ease-in forwards; }
.sou-box { width: min(620px, 94vw); max-height: calc(94vh / var(--ui, 1)); display: flex; flex-direction: column; padding: 10px 14px 10px;
  border-image-source: url('assets/ui/cadres/cadre1_yellow_translucide.png'); animation: sou-entree .45s cubic-bezier(.2, 1.4, .4, 1); }
.sou-modal.sortie .sou-box { animation: sou-sortie .24s ease-in forwards; }
.sou-haut { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; border-bottom: 2px solid rgba(255, 211, 92, .35); flex: none; }
.sou-pika { position: relative; flex: none; width: 80px; height: 80px; border: 3px solid #c99a2e; border-radius: 8px; background: #fff3c0; box-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 0 18px rgba(255, 211, 92, .35);
  animation: sou-saute .6s steps(4, end) .3s 2; }
.sou-pika img { display: block; width: 100%; height: 100%; image-rendering: pixelated; border-radius: 5px; }
.sou-coeur { position: absolute; width: 14px; height: 14px; opacity: 0; pointer-events: none; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h2v1h1V0h2v1h1v3H6v1H5v1H4v1H3V6H2V5H1V4H0V1h1z' fill='%23ff6b8e'/%3E%3Cpath d='M1 1h1v1H1z' fill='%23ffd0dc'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: sou-coeur 2.6s ease-out infinite; }
.sou-coeur.c1 { right: -8px; top: 4px; animation-delay: .5s; }
.sou-coeur.c2 { left: -7px; top: 14px; animation-delay: 1.4s; scale: .8; }
.sou-coeur.c3 { right: 6px; top: -9px; animation-delay: 2.1s; scale: .7; }
.box .sou-titre { margin: 0; font-size: 38px; line-height: 1; color: var(--gold); text-shadow: 0 3px 0 #6b3b00; }
.sou-lettre { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 8px 0; padding: 4px 12px 4px 14px; font-size: 20px; line-height: 1.22;
  background: linear-gradient(180deg, rgba(255, 243, 192, .07), rgba(255, 243, 192, .03)); border-left: 3px solid rgba(255, 211, 92, .55); border-radius: 0 6px 6px 0; }
.sou-lettre p { margin: 7px 0; animation: sou-ligne .4s ease-out backwards; }
.sou-lettre p:nth-child(1) { animation-delay: .15s; } .sou-lettre p:nth-child(2) { animation-delay: .22s; } .sou-lettre p:nth-child(3) { animation-delay: .29s; }
.sou-lettre p:nth-child(4) { animation-delay: .36s; } .sou-lettre p:nth-child(5) { animation-delay: .43s; } .sou-lettre p:nth-child(6) { animation-delay: .5s; }
.sou-lettre p:nth-child(7) { animation-delay: .57s; } .sou-lettre p:nth-child(8) { animation-delay: .64s; }
.sou-lettre .sou-bonjour { font-size: 24px; color: #8fd0ff; }
.sou-lettre .sou-fort { color: #ffe27a; padding: 4px 8px; background: rgba(255, 211, 92, .1); border-radius: 5px; }
.sou-lettre .sou-signe { display: flex; flex-direction: column; align-items: flex-end; margin-top: 10px; }
.sou-signe b { font-size: 28px; line-height: 1; color: var(--gold); text-shadow: 0 2px 0 #6b3b00; font-weight: normal; }
.sou-btns { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex: none; padding: 4px 4px 2px; }
.sou-btns .btn { font-size: 22px; min-width: 150px; }
/* le cadre jaune : « on peut cliquer » */
.sou-don { box-shadow: 0 0 0 3px #ffd35c, 0 0 14px rgba(255, 211, 92, .55); border-radius: 4px; animation: sou-cadre 1.5s ease-in-out infinite; }
.sou-don:hover, .sou-don.focus, .sou-don:focus-visible { box-shadow: 0 0 0 4px #fff0a8, 0 0 22px rgba(255, 226, 122, .85); }
.sou-ico { width: 16px; height: 16px; flex: none; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h2v1h1V0h2v1h1v3H6v1H5v1H4v1H3V6H2V5H1V4H0V1h1z' fill='%23ff6b8e'/%3E%3Cpath d='M1 1h1v1H1z' fill='%23ffd0dc'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes sou-fond { from { opacity: 0; } to { opacity: 1; } }
@keyframes sou-fond-sortie { to { opacity: 0; } }
@keyframes sou-entree { from { translate: 0 26px; scale: .9; opacity: 0; } to { translate: 0 0; scale: 1; opacity: 1; } }
@keyframes sou-sortie { to { translate: 0 14px; scale: .96; opacity: 0; } }
@keyframes sou-saute { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes sou-coeur { 0% { opacity: 0; translate: 0 6px; } 15% { opacity: 1; } 60% { opacity: .9; } 100% { opacity: 0; translate: 0 -22px; } }
@keyframes sou-ligne { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes sou-cadre { 0%, 100% { box-shadow: 0 0 0 3px #ffd35c, 0 0 10px rgba(255, 211, 92, .4); } 50% { box-shadow: 0 0 0 3px #fff0a8, 0 0 20px rgba(255, 226, 122, .8); } }
/* Téléphone : la lettre défile, les deux boutons restent en bas */
body.is-touch .sou-pika { width: 60px; height: 60px; }
body.is-touch .box .sou-titre { font-size: 30px; }
body.is-touch .sou-lettre { font-size: 18px; }
body.is-touch .sou-btns .btn { min-width: 120px; min-height: 40px; }
@media (prefers-reduced-motion: reduce) { .sou-modal, .sou-box, .sou-pika, .sou-coeur, .sou-lettre p, .sou-don { animation: none; } }

/* (4/12, Kiko) choix du moyen de don : Ko-fi ou PayPal */
.don-choix { z-index: 70; }
.don-box { width: min(460px, 94vw); text-align: center; animation: don-entree .22s ease-out; }
.don-box h2 { margin: 0 0 6px; }
.don-liste { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 10px; }
.don-opt { display: flex; align-items: center; gap: 14px; padding: 12px 16px; text-align: left; font-size: 20px; transition: transform .12s; }
.don-opt:hover, .don-opt.focus, .don-opt:focus-visible { transform: translateY(-2px) scale(1.02); }
.don-kofi { box-shadow: 0 0 0 3px #72a4f2, 0 0 14px rgba(114, 164, 242, .5); }
.don-paypal { box-shadow: 0 0 0 3px #ffc439, 0 0 14px rgba(255, 196, 57, .45); }
.don-logo { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: bold; color: #fff; }
.don-logo.kofi { background: #29abe0; }
.don-logo.paypal { background: #003087; font-style: italic; }
.don-txt { display: flex; flex-direction: column; line-height: 1.15; }
.don-txt small { font-size: 14px; opacity: .8; }
.don-bas { justify-content: center; }
@keyframes don-entree { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
