:root {
  --encre: #2a1f4d; --gris: #6f6490; --carte: #fff;
  --b1: #ffc8dc; --b2: #f59ab9; --c1: #d9c6f5; --c2: #b593e8;
  --vert: #4cc38a; --vert-2: #2e8f63; --rose: #f08aa0; --rose-2: #c9607a; --or: #ffd98a; --or-2: #f0b429; --violet: #9b7bd6;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--encre); font-family: "Nunito", "Varela Round", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.35;
  background: linear-gradient(160deg, #fff4f8 0%, #f3edfc 50%, #fff9ec 100%); min-height: 100dvh; overflow-x: hidden;
}
button { font: inherit; cursor: pointer; border: 0; color: inherit; }
button:active { transform: scale(.96); }

/* ---------- Décor : bulles qui montent, étoiles qui scintillent ---------- */
.decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.decor .bulle { position: absolute; bottom: -80px; border-radius: 50%; opacity: .33; animation: monte linear infinite; }
.decor b { position: absolute; color: #f6c86b; opacity: 0; animation: scintille ease-in-out infinite; }
@keyframes monte { to { transform: translateY(-120dvh) rotate(360deg); } }
@keyframes scintille { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .8; transform: scale(1.1) rotate(90deg); } }

#app { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; min-height: 100dvh; padding: calc(10px + env(safe-area-inset-top)) 10px calc(30px + env(safe-area-inset-bottom)); }
.chargement { text-align: center; color: var(--gris); padding-top: 40vh; }
.entete { position: relative; }
h1 { font-size: 32px; font-weight: 900; margin: 4px 0 12px; text-align: center; letter-spacing: .01em;
  background: linear-gradient(90deg, #f59ab9, #b593e8, #9fc5f5, #ffb36b, #f59ab9); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: arcenciel 8s linear infinite; }
@keyframes arcenciel { to { background-position: 300% 0; } }
h1 span { display: block; font-size: 13px; font-weight: 800; color: var(--gris); -webkit-text-fill-color: var(--gris); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.son { position: absolute; right: 2px; top: 6px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); font-size: 19px; box-shadow: 0 2px 8px rgba(42,31,77,.12); }

/* ---------- Cartes des filles ---------- */
.filles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fille { position: relative; border-radius: 26px; padding: 10px 9px 10px; text-align: center; color: #fff; box-shadow: 0 10px 26px rgba(42,31,77,.18); overflow: hidden; }
.fille.b { background: linear-gradient(160deg, var(--b1), var(--b2)); }
.fille.c { background: linear-gradient(160deg, var(--c1), var(--c2)); }
.fille::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(ellipse at top, rgba(255,255,255,.45), transparent 60%); pointer-events: none; }
.fille.joie { animation: joie .8s cubic-bezier(.2,.9,.3,1.4); }
.fille.aie { animation: secoue .6s; }
.fille.aie::after { content: ""; position: absolute; inset: 0; background: rgba(255,60,90,.35); animation: flash .8s forwards; pointer-events: none; }
@keyframes flash { to { opacity: 0; } }
@keyframes joie { 0% { transform: scale(1); } 30% { transform: scale(1.08) rotate(-2deg); } 60% { transform: scale(1.03) rotate(2deg); } 100% { transform: scale(1); } }
@keyframes secoue { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px) rotate(-2deg); } 40% { transform: translateX(9px) rotate(2deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.tete { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.serie { font-size: 13px; font-weight: 900; background: rgba(255,255,255,.3); border-radius: 999px; padding: 3px 8px; }
.serie:not(.eteinte) { animation: flamme 1.4s ease-in-out infinite; }
.serie.eteinte { opacity: .55; filter: grayscale(1); }
@keyframes flamme { 50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(255,170,60,.8); } }
.trophees { font-size: 13px; font-weight: 900; background: rgba(255,255,255,.3); border-radius: 999px; padding: 3px 8px; color: #fff; }
.avatar { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.92); margin: 2px auto 4px; display: grid; place-items: center; font-size: 40px; box-shadow: 0 4px 12px rgba(0,0,0,.15); position: relative; animation: respire 3s ease-in-out infinite; }
@keyframes respire { 50% { transform: translateY(-3px); } }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.avatar.photo img { opacity: 1; }
.avatar.photo .emoji { visibility: hidden; }
.avatar.photo { width: 84px; height: 84px; border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(255,230,140,.9), 0 6px 16px rgba(0,0,0,.2); }
.avatar .insigne { position: absolute; right: -8px; bottom: -4px; font-size: 22px; background: var(--or); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid #fff; }
.fille .nom { font-size: 20px; font-weight: 900; text-shadow: 0 1px 4px rgba(0,0,0,.12); }
.grade { font-size: 12px; font-weight: 900; opacity: .95; }
.rangbarre { position: relative; height: 18px; border-radius: 999px; background: rgba(255,255,255,.3); overflow: hidden; margin: 4px 4px 2px; }
.rangbarre i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.9)); border-radius: 999px; transition: width .8s; }
.rangbarre span { position: relative; font-size: 10.5px; font-weight: 900; color: var(--encre); line-height: 18px; display: block; }
.supers { font-size: 11px; letter-spacing: 1px; margin: 2px 0 0; }
.supers b { color: rgba(255,255,255,.4); }
.supers b.on { color: #fff3a8; text-shadow: 0 0 6px #ffd84a; }
.fille .pts { font-size: 58px; font-weight: 900; line-height: 1; margin: 2px 0 0; text-shadow: 0 3px 10px rgba(0,0,0,.2); font-variant-numeric: tabular-nums; display: flex; align-items: center; justify-content: center; gap: 2px; }
.fille .pts .et { font-size: 30px; animation: tourne 6s linear infinite; display: inline-block; }
@keyframes tourne { to { transform: rotate(360deg); } }
.num { display: inline-block; }
.num.tic { animation: tic .25s; }
@keyframes tic { 50% { transform: scale(1.35); color: #fff6b0; } }
.auj { font-size: 12px; font-weight: 900; opacity: .95; margin-bottom: 4px; }
.auj.vide { opacity: .75; }
.objectif { background: rgba(255,255,255,.28); border-radius: 14px; padding: 6px 7px; margin: 0 2px 8px; }
.objectif .lbl { font-size: 11.5px; font-weight: 900; display: flex; justify-content: space-between; gap: 4px; }
.objectif .lbl span { font-size: 12px; }
.objectif .barre { height: 12px; border-radius: 999px; background: rgba(255,255,255,.35); overflow: hidden; margin: 4px 0 3px; }
.objectif .barre i { display: block; height: 100%; background: linear-gradient(90deg, #fff6d6, #ffcf7a); border-radius: 999px; box-shadow: 0 0 10px rgba(255,207,51,.8); transition: width .7s cubic-bezier(.2,.9,.3,1.2); }
.objectif .reste { font-size: 11.5px; font-weight: 800; }
.objectif.presque { animation: presque 1s ease-in-out infinite; background: rgba(255,236,170,.45); }
.objectif.presque .barre i { background: linear-gradient(90deg, #ffe27a, #ffb000, #ffe27a); background-size: 200% 100%; animation: brillebarre 1s linear infinite; }
@keyframes presque { 50% { box-shadow: 0 0 0 3px rgba(255,230,120,.8), 0 0 18px rgba(255,200,60,.9); } }
@keyframes brillebarre { to { background-position: 200% 0; } }
.fille .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.fille .btns button { padding: 10px 0; border-radius: 18px; font-size: 38px; line-height: 1; font-weight: 900; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.18); transition: transform .1s, box-shadow .1s; }
.fille .plus { background: linear-gradient(180deg, #8de0b5, var(--vert)); }
.fille .moins { background: linear-gradient(180deg, #f7b4c3, var(--rose)); }
.fille .btns button:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.boutique { position: relative; display: block; width: 100%; margin-top: 8px; padding: 9px; border-radius: 16px; font-weight: 900; font-size: 16px; color: var(--encre); background: rgba(255,255,255,.88); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.boutique.brille { background: linear-gradient(90deg, #fff6d6, #ffe08a, #fff6d6); background-size: 200% 100%; animation: brillebarre 2s linear infinite, sautille 2s ease-in-out infinite; }
@keyframes sautille { 0%, 80%, 100% { transform: translateY(0); } 85% { transform: translateY(-4px); } 90% { transform: translateY(0); } 95% { transform: translateY(-2px); } }
.pastille { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--rose-2); color: #fff; font-size: 12px; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; }

/* Texte qui flotte au-dessus de la carte */
.flot { position: absolute; left: 50%; top: 40%; transform: translate(-50%, 0); font-size: 34px; font-weight: 900; color: #fff; text-shadow: 0 3px 10px rgba(0,0,0,.35); pointer-events: none; animation: flotte 1.4s ease-out forwards; white-space: nowrap; z-index: 3; }
.flot.mal { color: #ffe1e6; }
@keyframes flotte { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 25% { opacity: 1; transform: translate(-50%, -10px) scale(1.3); } 100% { opacity: 0; transform: translate(-50%, -100px) scale(1); } }
.volante { position: fixed; left: 0; top: 0; margin: -16px 0 0 -16px; font-size: 30px; z-index: 60; pointer-events: none; filter: drop-shadow(0 0 8px rgba(255,210,60,.9)); }
.chute { position: fixed; z-index: 60; font-size: 22px; pointer-events: none; filter: grayscale(.6); animation: chute .9s ease-in forwards; }
@keyframes chute { to { transform: translate(var(--dx, 30px), 160px) rotate(200deg); opacity: 0; } }
canvas#particules { position: fixed; inset: 0; width: 100vw; height: 100dvh; pointer-events: none; z-index: 70; }

.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 80; background: #fff; border-radius: 18px; padding: 12px 16px; font-weight: 700; box-shadow: 0 10px 30px rgba(42,31,77,.25); width: min(92vw, 440px); text-align: center; animation: tombe .45s cubic-bezier(.2,.9,.3,1.4); }
.toast.or { background: linear-gradient(90deg, #fff6d6, #ffe7a3); }
.toast.rose { background: linear-gradient(90deg, #ffe4ee, #f3e8ff); }
.toast.part { animation: remonte .4s forwards; }
@keyframes tombe { from { transform: translate(-50%, -80px); opacity: 0; } }
@keyframes remonte { to { transform: translate(-50%, -80px); opacity: 0; } }

/* ---------- Fêtes (grade, palier, trophée, achat) ---------- */
.fete { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(42,31,77,.6); animation: fondu .3s; overflow: hidden; }
.fete.ferme { animation: fondu .25s reverse forwards; }
@keyframes fondu { from { opacity: 0; } }
.rayons { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(rgba(255,230,140,.22) 0 10deg, transparent 10deg 20deg); animation: tourne 18s linear infinite; pointer-events: none; }
.fete .boite { position: relative; background: #fff; border-radius: 30px; padding: 24px 20px 20px; text-align: center; width: min(90vw, 400px); animation: surgit .6s cubic-bezier(.2,.9,.3,1.5); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
@keyframes surgit { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
.fete .grand { font-size: 84px; line-height: 1.1; animation: rebond 1.2s ease-in-out infinite; }
.fete .grand.tourne { animation: rebond 1.2s ease-in-out infinite, none; }
.fete .grand.medaille { animation: medaille 1.6s ease-in-out infinite; }
@keyframes rebond { 50% { transform: translateY(-10px) scale(1.06); } }
@keyframes medaille { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.fete .titre { font-size: 26px; font-weight: 900; margin: 6px 0 4px; background: linear-gradient(90deg, #f59ab9, #b593e8, #f0b429); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fete p { margin: 6px 0; font-weight: 700; color: var(--encre); }
.fete .petit { font-size: 14px; color: var(--gris); }
.fete .cadenas { font-size: 64px; animation: deverrouille .8s ease-out; }
@keyframes deverrouille { 0% { transform: scale(.5) rotate(-30deg); } 60% { transform: scale(1.3) rotate(10deg); } }
.fete .palier-nom { font-weight: 900; font-size: 18px; color: var(--violet); margin-bottom: 8px; }
.fete .items { display: grid; gap: 6px; margin: 8px 0; }
.fete .item { display: flex; align-items: center; gap: 10px; background: #fff7e0; border-radius: 14px; padding: 8px 12px; font-weight: 800; text-align: left; animation: surgit .5s backwards; }
.fete .item:nth-child(2) { animation-delay: .12s; } .fete .item:nth-child(3) { animation-delay: .24s; }
.fete .item span { font-size: 28px; }
.actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.b1 { background: linear-gradient(90deg, #f59ab9, #b593e8); color: #fff; font-weight: 900; padding: 13px 22px; border-radius: 999px; font-size: 17px; box-shadow: 0 5px 0 rgba(120,80,160,.35); }
.b2 { background: #fff1d6; color: #8a5a00; font-weight: 900; padding: 13px 18px; border-radius: 999px; font-size: 16px; box-shadow: 0 5px 0 rgba(200,150,50,.3); }

/* Le cadeau qui s'ouvre */
.cadeau-fete .cadeau { position: relative; font-size: 150px; animation: tremble .18s linear infinite, grossit 1.7s ease-in forwards; }
@keyframes tremble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes grossit { to { font-size: 200px; filter: drop-shadow(0 0 30px #ffe27a); } }
.cadeau-fete .devoile { display: none; position: relative; background: #fff; border-radius: 30px; padding: 24px 20px; text-align: center; width: min(90vw, 400px); }
.cadeau-fete.ouvert .cadeau { display: none; }
.cadeau-fete.ouvert .devoile { display: block; animation: surgit .7s cubic-bezier(.2,.9,.3,1.6); }
.cadeau-fete .devoile .grand { font-size: 110px; }
.cadeau-fete .devoile .b1 { margin-top: 12px; }

/* ---------- Feuilles (motifs, boutique, trophées) ---------- */
.feuille-fond { position: fixed; inset: 0; background: rgba(42,31,77,.5); z-index: 20; display: flex; align-items: flex-end; animation: fondu .2s; }
.feuille-fond.ferme { animation: fondu .2s reverse forwards; }
.feuille { position: relative; background: var(--carte); width: 100%; max-width: 600px; margin: 0 auto; border-radius: 28px 28px 0 0; padding: 10px 14px calc(20px + env(safe-area-inset-bottom)); max-height: 88dvh; overflow-y: auto; animation: glisse .35s cubic-bezier(.2,.9,.3,1.15); }
.poignee { width: 44px; height: 5px; border-radius: 9px; background: #e3ddf2; margin: 0 auto 10px; }
@keyframes glisse { from { transform: translateY(60px); opacity: 0; } }
.feuille h2 { margin: 0 0 2px; font-size: 23px; font-weight: 900; }
.feuille h3 { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); }
.feuille .sous { color: var(--gris); font-weight: 700; margin-bottom: 10px; }
.feuille.bravo h2 { color: var(--vert-2); } .feuille.oups h2 { color: var(--rose-2); }
.motifs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.motifs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 7px; border-radius: 16px; font-size: 12px; line-height: 1.15; font-weight: 800; border: 2px solid transparent; animation: surgit .35s backwards; }
.motifs .ico { font-size: 30px; line-height: 1; }
.motifs .txt { min-height: 28px; display: flex; align-items: center; }
.motifs .val { font-size: 12px; font-weight: 900; border-radius: 999px; padding: 2px 8px; color: #fff; }
.feuille.bravo .motifs button { background: #ecfdf3; } .feuille.bravo .motifs .val { background: var(--vert); }
.feuille.oups .motifs button { background: #fff1f2; } .feuille.oups .motifs .val { background: var(--rose); }
.libre { display: flex; gap: 6px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.libre input { flex: 1 1 100%; font: inherit; font-weight: 700; padding: 11px 13px; border-radius: 14px; border: 2px solid #e9e4f5; }
.libre .choix { display: flex; gap: 5px; flex: 1; }
.libre .choix button { flex: 1; padding: 9px 0; border-radius: 12px; background: #f3f0fa; font-weight: 900; }
.libre .choix button.on { background: var(--or); box-shadow: 0 0 0 2px var(--or-2) inset; }
.libre .ok { padding: 9px 18px; border-radius: 12px; background: var(--violet); color: #fff; font-weight: 900; }
.fermer { display: block; width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px; background: #f3f0fa; color: var(--gris); font-weight: 800; }

/* Boutique */
.cagnotte { font-size: 18px; font-weight: 800; margin: 4px 0; }
.cagnotte b { color: var(--or-2); font-size: 24px; }
.astuce { background: #fff1f7; border-radius: 14px; padding: 8px 12px; font-size: 13px; font-weight: 800; color: var(--rose-2); margin: 6px 0 10px; }
.fleche { text-align: center; font-size: 11px; font-weight: 900; color: var(--violet); margin: 4px 0; letter-spacing: .03em; }
.rayon { border-radius: 20px; padding: 10px; position: relative; overflow: hidden; }
.rayon.bronze { background: linear-gradient(135deg, #ffe9d6, #f6c9a0); }
.rayon.argent { background: linear-gradient(135deg, #f2f4f8, #cfd6e4); }
.rayon.or { background: linear-gradient(135deg, #fff6d0, #ffd96a); }
.rayon.diamant { background: linear-gradient(135deg, #e3f6ff, #a8d8ff, #e8d9ff); }
.rayon.legende { background: linear-gradient(135deg, #ffd6f0, #d9c2ff, #ffe7a3, #b6f0ff); background-size: 300% 300%; animation: legende 6s ease infinite; }
@keyframes legende { 50% { background-position: 100% 100%; } }
.rayon.ouvert::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); animation: reflet 2.5s ease-in-out infinite; pointer-events: none; }
@keyframes reflet { to { left: 130%; } }
.rayon.ferme .items { filter: grayscale(.7); opacity: .6; }
.rayon-tete { display: flex; justify-content: space-between; font-weight: 900; font-size: 17px; margin-bottom: 6px; }
.rayon .prix { background: #fff; border-radius: 999px; padding: 2px 10px; font-size: 15px; }
.rayon .barre { height: 9px; background: rgba(255,255,255,.6); border-radius: 999px; overflow: hidden; }
.rayon .barre i { display: block; height: 100%; background: var(--or-2); border-radius: 999px; }
.rayon .encore { font-size: 12px; font-weight: 900; margin: 3px 0 5px; color: var(--gris); }
.rayon .items { display: grid; gap: 6px; }
.rayon .item { display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(255,255,255,.85); border-radius: 14px; padding: 8px 10px; font-weight: 800; font-size: 14px; }
.rayon .item .ico { font-size: 28px; }
.rayon.ouvert .item { box-shadow: 0 3px 0 rgba(0,0,0,.1); }
.rayon.ouvert .item .ico { animation: rebond 1.4s ease-in-out infinite; }
.rayon .item[disabled] { cursor: default; }
.rayon .item[disabled]:active { transform: none; }

/* Trophées */
.vitrine { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.medaille-c { background: #f5f3fa; border-radius: 16px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; opacity: .55; }
.medaille-c.ok { background: linear-gradient(160deg, #fff6d6, #ffe08a); opacity: 1; box-shadow: 0 3px 0 rgba(200,150,50,.3); }
.medaille-c .ico { font-size: 32px; }
.medaille-c b { font-size: 12.5px; }
.medaille-c small { font-size: 10.5px; color: var(--gris); font-weight: 700; }
.grades { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.grades div { display: flex; align-items: center; gap: 8px; background: #f5f3fa; border-radius: 12px; padding: 6px 10px; font-weight: 800; font-size: 14px; opacity: .5; }
.grades div span { font-size: 22px; }
.grades div small { margin-left: auto; color: var(--gris); font-size: 11px; }
.grades div.ok { opacity: 1; }
.grades div.ici { background: linear-gradient(90deg, #ffe4ee, #efe4ff); box-shadow: 0 0 0 2px var(--b2) inset; }

/* ---------- Journal ---------- */
.journal { margin-top: 18px; }
.journal h3 { font-size: 14px; color: var(--gris); font-weight: 900; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: .1em; }
.journal h3 button { background: #fff; color: var(--violet); font-weight: 900; font-size: 13px; padding: 6px 12px; border-radius: 999px; text-transform: none; letter-spacing: 0; box-shadow: 0 2px 8px rgba(42,31,77,.1); }
.ligne { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.85); border-radius: 14px; padding: 8px 12px; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.ligne .ico { font-size: 22px; }
.ligne .d { font-weight: 900; min-width: 38px; text-align: center; border-radius: 10px; padding: 3px 6px; color: #fff; background: var(--gris); }
.ligne .d.geste { background: var(--vert); } .ligne .d.oups { background: var(--rose); } .ligne .d.achat { background: var(--or-2); }
.ligne .q { color: var(--gris); font-size: 12px; margin-left: auto; white-space: nowrap; font-weight: 700; }
.vide { color: var(--gris); text-align: center; padding: 16px; font-weight: 700; }
.pied { margin-top: 20px; text-align: center; font-size: 12px; color: var(--gris); }
.pied button { background: none; color: var(--gris); text-decoration: underline; font-size: 12px; font-weight: 700; }
.porte { text-align: center; padding-top: 28vh; }
.porte input { font-size: 18px; padding: 12px 14px; border-radius: 14px; border: 2px solid #e9e4f5; width: 70%; font-weight: 700; }
.porte button { margin-top: 10px; padding: 12px 22px; border-radius: 14px; background: var(--violet); color: #fff; font-weight: 900; }
.erreur { color: var(--rose); font-size: 14px; margin-top: 8px; min-height: 18px; font-weight: 700; }

@media (max-width: 360px) { .fille .pts { font-size: 48px; } .motifs { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .decor, .rayons { display: none; } }
