/* Pass d'hiver : écran (onglets Chemin / Quêtes) et entrée sur l'accueil. Repris des échantillons validés pass-v2 et accueil-v5 (02/12).
   Tout est préfixé .sv-pass / .pv- / .pn5 pour ne rien toucher ailleurs. */
.sv-pass img, .sv-pass canvas, .pn5 img, .pn5 canvas { image-rendering: pixelated; }
.sv-pass { position: absolute; inset: 0; }
/* haut (05/12) : pastille du titre COMPACTE au centre, entre retour (gauche) et croix (droite) qui gardent 16 px du bord et ne la touchent jamais (padding 72 px de chaque côté) */
.sv.sv-pass > .nb .b-titre { flex: 0 1 auto; max-width: 100%; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; -webkit-box-orient: initial; }
/* scène : bandeau de neige, bulle à gauche, compagnon à droite */
.sv-pass .pv-scene { position: relative; flex: none; height: 98px; overflow: hidden; border-bottom: 2px solid var(--t2); background: var(--jv-fond) 50% 0 / 220px auto repeat var(--co); }
.sv-pass .pv-hiver { position: absolute; left: 0; top: -48px; width: 414px; height: 150px; }
.sv-pass .pv-bulle { position: absolute; left: 84px; right: 112px; top: 6px; z-index: 2; pointer-events: none; }
.sv-pass .pv-bulle::before { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-image: var(--i-bulle) 18 18 23 18 fill / 36px 36px 46px repeat; image-rendering: pixelated; }
.sv-pass .pv-bulle p { position: relative; margin: 0; padding: 4px 12px 10px; min-height: 40px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; font: 700 14px/18px var(--font-ui); color: var(--t); }
.sv-pass .pv-pet { position: absolute; right: -14px; bottom: -4px; width: 130px; height: 130px; z-index: 3; pointer-events: none; }
/* onglets */
.sv-pass .pv-on { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 14px 0; background: var(--c); }
.sv-pass .pv-t { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 2px solid var(--t2); border-radius: 99px; background: var(--p); font: 700 16px/1 "Familjen Grotesk", sans-serif; color: var(--t); box-shadow: inset 0 -3px 0 var(--c), 0 2px 0 #1e0f0a40; cursor: pointer; }
.sv-pass .pv-t.a { background: var(--j); box-shadow: inset 0 -3px 0 var(--jo), 0 2px 0 #1e0f0a40; }
.sv-pass .pv-t:hover { background: var(--jc); }
.sv-pass .pv-t img { width: 24px; height: 24px; }
.sv-pass .pt { position: absolute; right: 10px; top: -5px; width: 16px; height: 16px; box-sizing: border-box; border: 3px solid var(--c); border-radius: 50%; background: #D8402F; }
/* corps qui défile */
.sv-pass .pv-corps { flex: 1; min-height: 0; position: relative; background: var(--c); }
.sv-pass .pv-def { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 8px 14px 22px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: var(--j) var(--co); }
.sv-pass .pv-fin { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: linear-gradient(transparent, var(--c)); pointer-events: none; }
.sv-pass .cn-etiq { flex: none; margin: 2px 0 0; font: 800 13px/16px "Familjen Grotesk", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--d); }
.sv-pass .cn-carte { border: 3px solid var(--t2); border-radius: 16px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; color: var(--t); }
.sv-pass .pv-vide { margin: 4px 2px; font: 400 15px/19px "Familjen Grotesk", sans-serif; color: var(--d); }
/* quêtes */
.sv-pass .pv-quetes { padding: 6px 10px 8px; display: grid; gap: 0; flex: none; }
.sv-pass .pv-q { display: grid; grid-template-columns: 48px 1fr auto; column-gap: 12px; align-items: center; min-height: 52px; padding: 3px 0; }
.sv-pass .pv-q + .pv-q { border-top: 2px solid var(--jc); }
.sv-pass .ic { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--t2); border-radius: 14px; background: #FFF3C4; }
.sv-pass .ic > img { width: 32px; height: 32px; }
.sv-pass .pv-q.fait .ic { background: var(--j); }
.sv-pass .ic .ok { position: absolute; right: -9px; bottom: -9px; width: 28px; height: 28px; border: 2px solid var(--t2); border-radius: 50%; background: var(--p); display: grid; place-items: center; }
.sv-pass .ic .ok img { width: 24px; height: 24px; }
.sv-pass .pv-q .tx { min-width: 0; }
.sv-pass .pv-q .mini { display: block; height: 10px; margin-top: 4px; box-sizing: border-box; border: 2px solid var(--t2); border-radius: 99px; background: #EFE2CE; overflow: hidden; }
.sv-pass .pv-q .mini i { display: block; height: 100%; background: var(--j); box-shadow: inset 0 -2px 0 var(--jo); }
.sv-pass .pv-q b, .sv-pass .sem b { display: block; font: 800 16px/19px "Familjen Grotesk", sans-serif; }
.sv-pass .pv-q small, .sv-pass .sem small { display: block; font: 400 13px/16px "Familjen Grotesk", sans-serif; color: var(--d); }
.sv-pass .xp { display: inline-flex; align-items: center; gap: 3px; padding: 1px 10px 2px 4px; border: 2px solid var(--t2); border-radius: 99px; background: var(--c); font: 800 15px/18px "Familjen Grotesk", sans-serif; white-space: nowrap; }
.sv-pass .xp img { width: 24px; height: 24px; }
.sv-pass .pv-q.fait .xp, .sv-pass .sem.fait .xp { background: var(--j); box-shadow: inset 0 -3px 0 var(--jo); }
.sv-pass .sem { flex: none; padding: 8px 10px 10px; display: grid; grid-template-columns: 48px 1fr auto; column-gap: 12px; align-items: center; row-gap: 6px; }
.sv-pass .sem .ic { background: #FFE3DC; }
.sv-pass .sem .barre { grid-column: 1 / -1; margin: 0; height: 26px; }
.sv-pass .sem .barre span { font-size: 14px; }
/* barre d'XP : pleine / en cours / vide */
.sv-pass .barre { position: relative; height: 30px; box-sizing: border-box; margin: 9px 12px; border: 3px solid var(--t2); border-radius: 99px; background: #EFE2CE; box-shadow: inset 0 3px 0 #D9C7AB, 0 2px 0 #1e0f0a40; overflow: hidden; }
.sv-pass .barre i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--j); box-shadow: inset 0 3px 0 var(--jc), inset 0 -4px 0 var(--jo); border-right: 3px solid var(--t2); }
.sv-pass .barre.pleine i { border-right: 0; }
.sv-pass .barre.vide i { display: none; }
.sv-pass .barre span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-start; padding: 0 0 2px 8px; gap: 4px; font: 800 15px/1 "Familjen Grotesk", sans-serif; color: var(--t); }
.sv-pass .barre span img { width: 24px; height: 24px; }
.sv-pass .barre.vide span { color: var(--d); font-weight: 700; }
/* chemin */
.sv-pass .pv-stick { flex: none; position: sticky; top: -8px; z-index: 5; margin: 0 -14px; padding: 8px 14px 6px; background: var(--c); }
.sv-pass .pv-xpb .barre { margin: 0 0 8px; }
.sv-pass .pv-cols, .sv-pass .palier { display: grid; grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); gap: 8px; align-items: center; }
.sv-pass .pv-cols div { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 2px solid var(--t2); border-radius: 99px; background: var(--p); font: 700 16px/1 "Familjen Grotesk", sans-serif; box-shadow: 0 2px 0 #1e0f0a40; }
.sv-pass .pv-cols div.pa { background: var(--j); box-shadow: inset 0 -3px 0 var(--jo), 0 2px 0 #1e0f0a40; }
.sv-pass .pv-cols img { width: 24px; height: 24px; }
.sv-pass .pv-ch { flex: none; display: grid; gap: 14px; padding-bottom: 6px; }
.sv-pass .ca { position: relative; min-height: 78px; border: 3px solid var(--t2); border-radius: 16px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 6px 9px; text-align: center; box-sizing: border-box; font: inherit; color: var(--t); }
.sv-pass button.ca { cursor: pointer; background: var(--jc); }
.sv-pass button.ca:hover { background: var(--j); }
.sv-pass .ca .z { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; }
.sv-pass .ca .z img.obj { max-width: 96px; max-height: 40px; }
.sv-pass .ca .n { font: 700 14px/16px "Familjen Grotesk", sans-serif; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sv-pass .ca .n.etoiles { color: var(--d); font-weight: 400; }
.sv-pass .ca .px { display: flex; align-items: center; gap: 3px; font: 800 18px/20px "Familjen Grotesk", sans-serif; }
.sv-pass .ca .px img { width: 24px; height: 24px; }
.sv-pass .ca.mien { background: var(--co); }
.sv-pass .ca .b1 { position: absolute; top: 3px; right: 4px; width: 24px; height: 24px; }
.sv-pass .ca .b1 img { width: 24px; height: 24px; }
.sv-pass .nd { position: relative; width: 44px; height: 44px; box-sizing: border-box; border: 3px solid var(--t2); border-radius: 50%; background: var(--p); display: grid; place-items: center; font: 800 18px/1 "Familjen Grotesk", sans-serif; box-shadow: inset 0 -3px 0 var(--c), 0 2px 0 #1e0f0a40; }
.sv-pass .nd.ok { background: var(--j); box-shadow: inset 0 -3px 0 var(--jo), 0 2px 0 #1e0f0a40; }
.sv-pass .nd.ici { box-shadow: 0 2px 0 #1e0f0a40; }
.sv-pass .nd.ici::after { content: ''; position: absolute; inset: -6px; z-index: 2; border-radius: 50%; background: conic-gradient(var(--jo) 0 var(--p, 0%), #CDB997 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px)); }
/* bas fixe */
.sv-pass .pv-bas { flex: none; border-top: 2px solid var(--t2); background: var(--p); padding: 6px 14px 10px; border-radius: 0 0 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.sv-pass .suite { margin: 0; min-height: 18px; line-height: 18px; text-align: center; color: var(--d); font-size: 15px; }
.sv-pass .rang { display: flex; gap: 8px; }
.sv-pass .b { flex: none; min-width: 0; height: 48px; padding: 0 16px 3px; font: 700 18px/1 "Familjen Grotesk", sans-serif; border: 3px solid var(--t2); border-radius: 99px; background: var(--p); box-shadow: inset 0 3px 0 #fff, inset 0 -5px 0 var(--c), 0 3px 0 #1e0f0a40; white-space: nowrap; color: var(--t); cursor: pointer; }
.sv-pass .b:hover { background: var(--jc); }
.sv-pass .b.p { background: var(--j); box-shadow: inset 0 3px 0 var(--jc), inset 0 -5px 0 var(--jo), 0 3px 0 #1e0f0a40; flex: 1; }

/* Entrée du Pass sur l'accueil (échantillon accueil-v5) : guirlande, objet, « Pass d'hiver · palier N », mini-barre, bouton Voir, point rouge */
.sv-home .pn5 { position: relative; flex: none; display: block; box-sizing: border-box; height: 66px; padding: 0; overflow: hidden; background: var(--p); border: 2px solid var(--co); border-radius: 16px; }
.sv-home .pn5 canvas { display: block; width: 100%; height: 8px; }
.sv-home .pn5 .in { display: grid; grid-template-columns: 52px 1fr auto; column-gap: 8px; align-items: center; padding: 4px 8px 0 6px; height: 50px; }
.sv-home .pn5 .ob { width: 52px; height: 42px; display: grid; place-items: center; border: 2px solid var(--t2); border-radius: 12px; background: #FFF3C4; }
.sv-home .pn5 .ob img { width: 48px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.sv-home .pn5 b { display: block; font: 700 15px/17px "Familjen Grotesk", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-home .pn5 .ligne { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.sv-home .pn5 .ligne small { flex: none; font: 700 14px/16px "Familjen Grotesk", sans-serif; color: var(--d); }
.sv-home .pn5 .ligne .mini { flex: 1; margin-top: 0; }
.sv-home .pn5 .mini { display: block; margin-top: 3px; height: 8px; border: 2px solid var(--t2); border-radius: 99px; background: #EFE2CE; overflow: hidden; }
.sv-home .pn5 .mini i { display: block; height: 100%; background: var(--j); }
.sv-home .pn5 .voir { flex: none; height: 38px; padding: 0 14px 3px; font: 700 16px/1 "Familjen Grotesk", sans-serif; color: var(--t); cursor: pointer; border: 3px solid var(--t2); border-radius: 99px; background: var(--j); box-shadow: inset 0 3px 0 var(--jc), inset 0 -4px 0 var(--jo), 0 3px 0 #1e0f0a40; white-space: nowrap; }
.sv-home .pn5 .voir:hover { background: var(--jc); }
.sv-home .pn5 .voir:active { transform: translateY(2px); box-shadow: none; }
.sv-home .pn5 .pt { position: absolute; right: 6px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: #D8402F; border: 2px solid var(--p); z-index: 2; }

.sv-home .pn5 .in > .tx { min-width: 0; }

/* note de fin de saison : au bout de la liste qui défile, pas dans la barre fixe */
.sv-pass .pv-note-fin { margin: 10px 4px 6px; text-align: center; color: var(--d); font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
/* Les deux cases d'un palier ont la même hauteur (nom sur 2 lignes) ; le rond reste centré. */
.sv-pass .palier { align-items: stretch; }
.sv-pass .palier > .nd { align-self: center; }
.sv-pass .rang .b { flex: 1; }
.sv-pass .bientot { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 0 8px; font: 700 15px/18px "Familjen Grotesk", sans-serif; color: var(--d); }
/* 06/12 : coche d'une quête faite entièrement DANS la case de l'icône ; récompense reçue = simple texte, pas de bouton. */
.sv-pass .ic .ok { right: 1px; bottom: 1px; width: 20px; height: 20px; border-width: 2px; }
.sv-pass .ic .ok img { width: 14px; height: 14px; }
.sv-pass .xp.recu { padding: 0 2px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--d); font: 700 14px/18px "Familjen Grotesk", sans-serif; text-align: right; white-space: normal; max-width: 92px; }
.sv-pass .pv-q.fait .xp.recu, .sv-pass .sem.fait .xp.recu { background: none; box-shadow: none; }
/* Titre : plus petit seulement ici, pour que les noms de saison longs tiennent sans coupure. */
.sv.sv-pass > .nb .b-titre { font-size: 16px; padding-left: 12px; padding-right: 12px; }

/* Lot E2 (04/12, REVUE §Pass, §0e) : un seul groupe de pilules à l'écran = les onglets Chemin/Quêtes.
   Palier : texte au-dessus + barre simple ; Gratuit/Pass : en-têtes de colonne en petites capitales ; boutons en rectangle. */
.sv-pass .pv-xpl { margin: 0 2px 4px; font: 700 14px/18px "Familjen Grotesk", sans-serif; color: var(--t); }
.sv-pass .pv-xpb .barre { height: 14px; margin: 0 0 10px; border-width: 2px; border-radius: 4px; box-shadow: inset 0 2px 0 #D9C7AB; }
.sv-pass .pv-xpb .barre i { box-shadow: inset 0 -2px 0 var(--jo); border-right-width: 2px; }
.sv-pass .pv-xpb .barre span { display: none; }
.sv-pass .pv-cols div { height: 22px; border: 0; border-radius: 0; background: none; box-shadow: none; font: 800 13px/1 "Familjen Grotesk", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--d); }
.sv-pass .pv-cols div img { width: 18px; height: 18px; }
.sv-pass .b { border-radius: var(--rayon-bouton, 12px); }
.sv-pass .pv-cols div.pa { background: none; box-shadow: none; color: var(--d); }
