/* Pages du portail, charte « le programme » (#155) : la pile d'affiches de l'accueil, les blocs, les rubriques.
   Une affiche par jeu, plein écran, collée en haut : elle recouvre la précédente. La forme de chaque capture vient de l'objet du jeu. */

/* ---------- la pile : la une puis une affiche par jeu ---------- */
.une,.affiche{position:sticky;top:0;height:100vh;height:100svh;min-height:600px;overflow:hidden;filter:brightness(calc(1 - var(--q,0) * .45))}
.une{background:var(--papier);padding:28px var(--m) 0}
.une h1{--fs:clamp(40px,min(6.5vw,10.4vh),98px);--av:calc((min(100vw,var(--page)) - 2 * var(--m)) * .6);position:relative;max-width:62%;margin-top:clamp(18px,4.6vh,46px);line-height:.98;rotate:-3deg;transform-origin:0 100%}
.une .sous{position:relative;margin-top:clamp(16px,3.2vh,30px);font:800 clamp(18px,1.7vw,25px)/1.25 var(--texte);font-stretch:112%;max-width:22em}
.une .gestes{position:relative;margin-top:clamp(14px,2.6vh,24px)}
.alignement{position:relative;margin-top:clamp(16px,3.4vh,34px)}
.alignement a{display:inline-flex;align-items:baseline;gap:14px;font:400 clamp(24px,min(3vw,4.9vh),45px)/1.16 var(--titre);text-transform:uppercase;transition:color .15s,translate .25s var(--coupe)}
.alignement a i{font:700 13px/1 var(--mono);letter-spacing:.1em;color:var(--rouge)}
.alignement a em{font:700 13px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;opacity:.75}
.alignement a:hover{color:var(--c,var(--rouge));translate:12px 0}
.aussi{position:relative;margin-top:clamp(10px,2vh,20px);max-width:44em;font:600 13px/1.6 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.aussi b{color:var(--rouge);font-weight:800;margin-right:.6em}
.vedette{position:absolute;right:clamp(0px,3.5vw,56px);bottom:0}
.vedette .sh{position:relative}
.une .vedette .sh{--k:6}
.dit{position:absolute;right:86%;top:6%;width:11em;font:400 clamp(15px,1.4vw,20px)/1.15 var(--titre);text-transform:uppercase;color:var(--rouge);rotate:-7deg;text-align:right}

.affiche{--c:var(--rouge);--fond:var(--papier);background:var(--fond)}
.affiche h2{--fs:clamp(34px,5.6vw,84px);white-space:nowrap}
.acc{margin-top:16px;font:800 clamp(19px,1.9vw,27px)/1.2 var(--texte);font-stretch:112%;max-width:17em}
.pf{display:flex;flex-wrap:wrap;gap:4px 16px;margin:14px 0 22px;font:600 12.5px/1.3 var(--mono);letter-spacing:.1em;text-transform:uppercase}
.pf li::before{content:"";display:inline-block;width:8px;height:8px;margin-right:7px;background:var(--c,var(--rouge))}
.affiche .texte{position:absolute;z-index:3}
.affiche .vue{position:absolute;max-width:none}
.affiche .sh{position:absolute;z-index:4}
/* entrée réglée par le défilement (portail.js) : --p va de 0 à 1 pendant que l'affiche recouvre la précédente ; une capture ne change jamais d'échelle.
   Le nom glisse dans la marge seulement (jamais coupé au bord) ; Shangho monte du bas de l'affiche, entier une fois arrivé. */
.affiche h2{translate:calc((1 - var(--p,1)) * -.7 * var(--m)) 0}
.affiche .sh{translate:0 calc((1 - var(--p,1)) * 105%)}

/* A. Shanghoma : la capture au pixel près (1 pour 1), coupée en biais ; la boucle tourne à côté ; le nom déborde dessus */
.affiche.a{--fw:min(40vw,70vh,960px)}
.affiche.a::before{content:"";position:absolute;right:-7%;top:-9vh;width:58%;height:66vh;color:var(--rouge);opacity:.55;background:var(--trame) 0 0/11px 11px;
  -webkit-mask:radial-gradient(ellipse,#000 0 40%,transparent 69%);mask:radial-gradient(ellipse,#000 0 40%,transparent 69%)}
.affiche.a .grand{left:0;top:0;width:min(56%,1520px);height:min(100%,872px);object-fit:none;object-position:50% 50%;clip-path:polygon(0 0,100% 0,60% 100%,0 100%);translate:calc((1 - var(--p,1)) * -10vw) 0}
.affiche.a .film{right:calc(var(--m) - var(--fw) * .104);top:calc(9vh - var(--fw) * .054);width:var(--fw);aspect-ratio:16/9;clip-path:inset(9.6% 10.4%);rotate:4deg}
.affiche.a .texte{right:var(--m);bottom:11vh;width:39%}
.affiche.a h2{--fs:clamp(34px,6.4vw,96px);--av:calc(39vw + 6vw);margin:10px 0 0 -6vw}
.affiche.a .sh{--k:3;left:31%;bottom:0}
/* B. Shanghodrop : aplat orange, trois captures qui tombent en chaîne, trois lampions qui se balancent */
.affiche.b{--c:var(--encre);--fond:#ef7d1a}
.affiche.b::before{content:"";position:absolute;left:0;right:0;bottom:0;height:52%;color:var(--encre);opacity:.2;background:var(--trame) 0 0/12px 12px;-webkit-mask:linear-gradient(to top,#000,transparent);mask:linear-gradient(to top,#000,transparent)}
.affiche.b h2{--fs:clamp(34px,7.7vw,116px);position:absolute;left:var(--m);top:9vh;color:var(--encre)}
.affiche.b .vue{aspect-ratio:16/9;width:35%}
.affiche.b .v1{left:31%;top:27vh;rotate:-7deg}
.affiche.b .v2{left:46%;top:42vh;rotate:5deg;z-index:1}
.affiche.b .v3{left:61%;top:57vh;rotate:-4deg;z-index:2}
.affiche.b .texte{left:var(--m);bottom:8vh;width:27%}
.affiche.b .sh{--k:4;right:3%;top:16vh}
.lampion{position:absolute;z-index:3;--s:4;animation:balance 3.4s ease-in-out infinite alternate;transform-origin:50% 0}
.lampion .ld{display:block}
.affiche.b .l1{left:25%;top:25vh}.affiche.b .l2{left:43%;top:76vh;animation-delay:-1.2s}.affiche.b .l3{left:58.5%;top:22vh;animation-delay:-2.1s}
@keyframes balance{from{rotate:-7deg}to{rotate:7deg}}
.affiche.b .billet{--b:var(--encre);--t:var(--papier)}
/* C. Shanghokite : la boucle dans un losange de cerf-volant, sa queue, le nom qui monte */
.affiche.c{--c:var(--jaune);--fond:#0f7a6d;--d:min(78vh,540px);color:var(--papier)}
.affiche.c .fond{position:absolute;left:0;bottom:0;width:100%;height:46%;object-fit:cover;object-position:50% 100%;opacity:.5;image-rendering:pixelated}
.affiche.c .losange{right:7%;top:calc(48vh - var(--d) / 2);width:var(--d);height:var(--d);object-fit:cover;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.affiche.c .queue{position:absolute;z-index:2;right:calc(7% + var(--d) / 2 - 12px);top:calc(48vh + var(--d) / 2 - 8px);width:230px;height:13vh;fill:none;stroke:var(--papier);stroke-width:3}
.affiche.c .queue path:nth-child(n+2){fill:var(--jaune);stroke:none}
.affiche.c h2{--fs:clamp(34px,6.6vw,100px);position:absolute;z-index:3;left:var(--m);top:27vh;rotate:-9deg;transform-origin:0 100%}
.affiche.c .texte{left:var(--m);bottom:8vh;width:29%}
.affiche.c .sh{--k:3;right:calc(7% + var(--d) / 2 + 210px);bottom:0}
.affiche.c .renvoi:hover,.affiche.e .renvoi:hover{color:var(--jaune)}
/* D. Shanghobros : seul ou à deux, l'affiche est coupée en deux, « 1P » et « 2P » */
.affiche.d{--c:var(--encre);--fond:#e9ad17}
.affiche.d::before{content:"";position:absolute;right:0;top:0;width:50%;height:100%;background:var(--encre)}
.affiche.d .vue{aspect-ratio:16/9;width:min(39%,960px)}
.affiche.d .v1{left:5.5%;top:27vh;rotate:-3deg}
.affiche.d .v2{right:5.5%;top:35vh;rotate:3deg}
.affiche.d h2{--fs:clamp(34px,6.6vw,100px);--av:calc(50vw - var(--m));translate:none}
.affiche.d h2 span{position:absolute;z-index:3;top:9vh}
.affiche.d .n1{right:50%;padding-right:.1em;color:var(--encre);translate:calc((1 - var(--p,1)) * -.7 * var(--m)) 0}
.affiche.d .n2{left:50%;padding-left:.1em;color:#e9ad17;translate:calc((1 - var(--p,1)) * .7 * var(--m)) 0}
.affiche.d .jo{position:absolute;z-index:3;font:400 clamp(26px,3vw,44px)/1 var(--titre)}
.affiche.d .j1{left:calc(5.5% + 6px);top:calc(27vh - 1.2em);color:var(--encre);rotate:-3deg}
.affiche.d .j2{right:calc(5.5% + 6px);top:calc(35vh - 1.2em);color:#e9ad17;rotate:3deg}
.affiche.d .texte{left:var(--m);bottom:6vh;width:34%}
.affiche.d .texte.droite{left:auto;right:var(--m);width:auto;color:var(--papier)}
.affiche.d .texte.droite .renvoi:hover{color:#e9ad17}
.affiche.d .sh{--k:3;left:50%;margin-left:-108px;bottom:0}
.affiche.d .billet{--b:#e9ad17}
/* E. Shanghopoker : la jonque au clair de lune, la boucle dans la lune, halo de trame */
.affiche.e{--c:var(--jaune);--fond:#1b1440;--d:min(76vh,46vw,540px);color:var(--papier)}
.affiche.e .lune{right:8%;top:calc(48vh - var(--d) / 2);width:var(--d);height:var(--d);object-fit:cover;clip-path:circle(50%)}
.affiche.e .halo{position:absolute;right:calc(8% - var(--d) * .12);top:calc(48vh - var(--d) * .62);width:calc(var(--d) * 1.24);height:calc(var(--d) * 1.24);color:var(--jaune);opacity:.5;background:var(--trame) 0 0/10px 10px;
  -webkit-mask:radial-gradient(circle,transparent 0 40%,#000 41% 46%,transparent 68%);mask:radial-gradient(circle,transparent 0 40%,#000 41% 46%,transparent 68%)}
.affiche.e h2{--fs:clamp(38px,6vw,92px);--av:41vw;color:var(--jaune);line-height:.96}
.affiche.e .texte{left:var(--m);bottom:9vh;width:41%}
.affiche.e .rep{margin-bottom:12px}
.affiche.e .sh{--k:3;right:1.5%;bottom:0}

/* ---------- les blocs sous la pile ---------- */
.suite{position:relative;z-index:1;background:var(--papier)}
.prochain{background:var(--papier2)}
.prochain>.chapeau{margin-top:18px}
.prochain h3{margin:clamp(30px,5vh,56px) 0 10px;font:700 14px/1.3 var(--mono);letter-spacing:.14em;color:var(--rouge)}
.prochain li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px clamp(18px,2.4vw,36px);align-items:center;padding:12px 0;max-width:1240px}
.prochain .ecran{width:min(var(--w),27vw);clip-path:polygon(0 0,100% 0,94% 100%,0 100%);rotate:var(--r,-2deg)}
.prochain li:nth-child(even) .ecran{--r:2deg;clip-path:polygon(6% 0,100% 0,100% 100%,0 100%)}
.prochain h4{font-size:clamp(24px,3vw,46px);line-height:1.05}
.prochain li .bientot{justify-self:start}
.prochain li p:last-child{font:500 clamp(15px,1.3vw,18px)/1.3 var(--texte)}
.prochain li:nth-child(even) .bientot{rotate:4deg}
.prochain>.sh{--k:4;position:absolute;right:var(--m);bottom:0}
/* Dernière borne, à côté de Shangho debout : tampon sous le texte, hors de sa place (#161) */
.prochain ul:last-of-type>li:last-child{grid-template-columns:auto minmax(0,1fr)}
.prochain ul:last-of-type>li:last-child .bientot{grid-column:2}

/* feuille de marque, imprimée sur le papier ; lignes en pointillé, rang en rouge, aucune donnée inventée */
.marques{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(30px,6vw,100px);align-items:center}
.marques h2{--fs:clamp(40px,6.2vw,94px);--av:calc((min(100vw,var(--page)) - 2 * var(--m)) * .42)}
.marques .chapeau{margin-top:18px}
.marques .gestes{margin-top:26px}
.marques .sh{--k:3;margin-top:22px}
.feuille{position:relative}
.feuille h3.mono,.feuille>h3{color:var(--rouge)}
.places{width:100%;margin-top:14px;border-collapse:collapse;font:400 clamp(24px,3.1vw,46px)/1.55 var(--titre);text-transform:uppercase}
.places th{font:700 13px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;text-align:left;padding-bottom:8px}
.places td{background:radial-gradient(circle,rgba(20,26,58,.5) 1.3px,transparent 1.8px) 0 100%/9px 5px repeat-x;white-space:nowrap}
.places .libre td{color:rgba(20,26,58,.4)}
.places .rg{color:var(--rouge);width:16%}
.places .libre .rg{color:var(--rouge)}
.places .pts,.places th.pts{text-align:right}
.places .py{width:14%;text-align:right;font:700 15px/1 var(--mono);letter-spacing:.1em}
.places th.py{font-size:13px}
.etat.vide:not(:empty){width:max-content;max-width:100%;margin:22px 0 0 auto;font:400 clamp(15px,1.5vw,21px)/1.1 var(--titre);text-transform:uppercase;color:var(--rouge);rotate:-4deg}
.choix{display:flex;align-items:center;gap:14px;margin-top:12px;font:700 14px/1.2 var(--mono);letter-spacing:.08em;text-transform:uppercase}
.fleche{min-width:40px;min-height:40px;font:400 24px/1 var(--titre);color:var(--rouge);transition:translate .2s var(--coupe)}
.fleche[data-pas="-1"]:hover{translate:-4px 0}
.fleche[data-pas="1"]:hover{translate:4px 0}

/* séances : la liste des clips, l'affiche du clip à côté */
.seances{background:var(--encre);color:var(--papier);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(30px,6vw,100px);align-items:center}
.seances>h2{grid-column:1/-1;color:var(--jaune)}
.seances .chapeau{margin:0 0 clamp(20px,3vh,34px)}
.lignes a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:baseline;padding:8px 0;transition:color .15s,translate .25s var(--coupe)}
.lignes a i{font:700 13px/1 var(--mono);letter-spacing:.1em;color:var(--jaune)}
.lignes a span{font:400 clamp(26px,3.6vw,54px)/1.08 var(--titre);text-transform:uppercase}
.lignes a em{font:700 13px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;opacity:.75}
.lignes a:hover,.lignes a:focus-visible,.lignes a[aria-current]{color:var(--jaune);translate:12px 0}
.seances .gestes{margin-top:26px}
.seances .renvoi:hover{color:var(--jaune)}
.clip{position:relative;justify-self:center;width:min(100%,400px);rotate:4deg}
.clip::before{content:"";position:absolute;left:-11%;right:-11%;top:-9%;bottom:-9%;color:var(--rouge);background:var(--trame) 0 0/11px 11px;rotate:-9deg;
  -webkit-mask:radial-gradient(ellipse,#000 0 45%,transparent 70%);mask:radial-gradient(ellipse,#000 0 45%,transparent 70%)}
.clip img{position:relative;width:100%;aspect-ratio:540/620;object-fit:cover;object-position:50% 0}

/* goodies : quatre photos en une bande coupée en biais */
.goodies{padding-bottom:0}
.goodies .entete{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px clamp(24px,5vw,80px)}
.goodies .entete>div:first-child{flex:1 1 520px;min-width:0}
.goodies .chapeau{margin-top:18px}
.goodies h2{--av:calc((min(100vw,var(--page)) - 2 * var(--m)) * .58)}
.petite{margin-top:14px;font:700 13px/1.3 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--rouge)}
.bande{--s:11vw;display:flex;margin:clamp(30px,5vh,56px) calc(-1 * var(--m)) 0;overflow:hidden}
.bande a{flex:var(--f,1) 1 0;min-width:0;margin-right:calc(var(--s) * -1 + 6px);clip-path:polygon(var(--s) 0,100% 0,calc(100% - var(--s)) 100%,0 100%)}
.bande a:first-child{clip-path:polygon(0 0,100% 0,calc(100% - var(--s)) 100%,0 100%)}
.bande a:last-child{margin-right:0;clip-path:polygon(var(--s) 0,100% 0,100% 100%,0 100%)}
.bande img{width:100%;max-width:none;height:clamp(240px,40vh,400px);object-fit:cover;transition:translate .4s var(--coupe)}
.bande a:hover img{translate:0 -10px}
.legendes{display:flex;flex-wrap:wrap;gap:6px 0;padding:clamp(26px,4vh,44px) 0 clamp(60px,9vh,110px);max-width:1180px;font:500 clamp(16px,1.35vw,19px)/1.6 var(--texte)}
.legendes b{font:400 clamp(19px,1.9vw,27px)/1.2 var(--titre);text-transform:uppercase;margin-right:.4em}
.legendes span+span::before{content:"/";color:var(--rouge);margin:0 .5em}

/* coulisses : chaînes et maison, sur l'aplat jaune */
.coulisses{background:var(--jaune);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(30px,6vw,100px)}
.coulisses h2{--fs:clamp(30px,3.6vw,54px);--av:calc((min(100vw,var(--page)) - 2 * var(--m)) * .45)}
.coulisses .chapeau{margin:16px 0 10px}
.coulisses p{max-width:30em}
.coulisses .gestes{margin-top:20px}

/* ---------- tête des pages intérieures ---------- */
.tete{position:relative;min-height:min(72vh,760px);padding:28px var(--m) clamp(50px,9vh,96px);background:var(--papier);overflow:hidden}
.tete .rep{position:relative;margin-top:clamp(40px,9vh,96px)}
.tete h1{--fs:clamp(44px,8vw,128px);--av:calc((min(100vw,var(--page)) - 2 * var(--m)) * .68);position:relative;max-width:70%;margin-top:14px;line-height:.95;rotate:-3deg;transform-origin:0 100%}
.tete .sous{position:relative;margin-top:clamp(20px,3.4vh,34px);font:800 clamp(18px,1.7vw,24px)/1.3 var(--texte);font-stretch:112%;max-width:26em}
.tete .gestes{position:relative;margin-top:26px}
.tete .vedette .sh{--k:4}
.tete.perdu .rep b{font-size:clamp(60px,9vw,140px)}
.tete.perdu{min-height:100svh}
body:has(.perdu) .ours>.sh{display:none}

/* ---------- rubrique d'un jeu (vidéos, records) : son aplat, son numéro ---------- */
.rayon{--c:var(--rouge);--fond:var(--papier);position:relative;padding:clamp(60px,10vh,110px) var(--m);background:var(--fond);overflow:hidden;
  display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(26px,4vw,64px) clamp(30px,5vw,80px);align-items:start}
.rayon h2{--fs:clamp(36px,5.4vw,84px);--av:calc((min(100vw,var(--page)) - 2 * var(--m)) * .4);margin-top:10px}
.rayon .acc{font-size:clamp(17px,1.5vw,21px)}
.rayon .gestes{margin-top:22px}
.rayon::before{content:"";position:absolute;right:-6%;top:-12%;width:60%;height:80%;color:var(--c);opacity:.35;background:var(--trame) 0 0/11px 11px;pointer-events:none;
  -webkit-mask:radial-gradient(ellipse,#000 0 38%,transparent 68%);mask:radial-gradient(ellipse,#000 0 38%,transparent 68%)}
.rayon.b{--c:var(--encre);--fond:#ef7d1a}
.rayon.c{--c:var(--jaune);--fond:#0f7a6d;color:var(--papier)}
.rayon.d{--c:var(--encre);--fond:#e9ad17}
.rayon.e{--c:var(--jaune);--fond:#1b1440;color:var(--papier)}
.rayon.c .renvoi:hover,.rayon.e .renvoi:hover{color:var(--jaune)}
.rayon.b .renvoi:hover,.rayon.d .renvoi:hover{color:var(--papier)}
.rayon figure{position:relative;margin:0}
.rayon video{width:100%;background:var(--encre)}
.rayon .large{justify-self:end;width:min(100%,960px);rotate:-1.5deg}
.rayon:nth-of-type(even) .large{rotate:1.5deg}
figcaption{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-top:10px;font:400 clamp(17px,1.5vw,22px)/1.15 var(--titre);text-transform:uppercase}
figcaption i{flex:none;font:700 12.5px/1 var(--mono);letter-spacing:.1em;color:var(--c)}
/* Vidéos tenues sous l'enseigne : une démo, ou deux clips debout côte à côte, penchés comme collés sur l'affiche */
.cote{display:flex;gap:clamp(14px,1.6vw,24px);align-items:flex-start;margin-top:clamp(28px,4.4vh,46px)}
.cote figure{flex:1 1 0;min-width:0}
.cote figure:nth-child(1){rotate:-1.6deg}
.cote figure:nth-child(2){rotate:2deg;margin-top:28px}
/* Pellicule : les clips sur une bande de film perforée, tous visibles sur la largeur de la page */
.pellicule{grid-column:1/-1;display:flex;gap:22px;align-items:flex-start;margin:0 calc(-1 * var(--m));padding:34px var(--m) 30px;background:var(--encre);color:var(--papier);
  --trou:repeating-linear-gradient(90deg,#0000 0 12px,#000 12px 26px);
  -webkit-mask:linear-gradient(#000 0 0) 0 0/100% 7px no-repeat,var(--trou) 0 7px/100% 11px no-repeat,linear-gradient(#000 0 0) 0 18px/100% calc(100% - 36px) no-repeat,
    var(--trou) 0 calc(100% - 7px)/100% 11px no-repeat,linear-gradient(#000 0 0) 0 100%/100% 7px no-repeat;
  mask:linear-gradient(#000 0 0) 0 0/100% 7px no-repeat,var(--trou) 0 7px/100% 11px no-repeat,linear-gradient(#000 0 0) 0 18px/100% calc(100% - 36px) no-repeat,
    var(--trou) 0 calc(100% - 7px)/100% 11px no-repeat,linear-gradient(#000 0 0) 0 100%/100% 7px no-repeat}
.pellicule figure{flex:1 1 0;min-width:0;max-width:250px}
.pellicule .h{max-width:none}
.pellicule figcaption i{color:var(--jaune)}
/* Légende à la largeur de sa vidéo : le mot le plus long tient sur une ligne, sans coupure */
.rayon figure{container-type:inline-size}
.rayon figcaption{font-size:min(clamp(17px,1.5vw,22px),calc(100cqi / var(--l,1)))}

/* Lecteur de la charte (portail.js) : billet jaune de lecture, avance en pointillé, temps, son, plein écran ; aucun cadre */
.ecran-v{position:relative}
.ecran-v video{cursor:pointer}
.lecteur{display:flex;align-items:center;gap:10px;margin-top:9px}
.lecteur button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:34px;min-height:34px;color:inherit}
.lecteur i{display:block;width:14px;height:15px;background:currentColor}
.l-lire{padding:0 14px 0 18px;min-width:52px!important;background:var(--jaune);color:var(--encre)!important;-webkit-mask:var(--poincon);mask:var(--poincon);transition:background-color .2s,color .2s}
.l-lire:hover{background:var(--rouge);color:var(--papier)!important}
.l-lire:focus-visible{-webkit-mask:none;mask:none}
.l-lire i{clip-path:polygon(0 0,100% 50%,0 100%)}
.l-lire.pause i{width:13px;background:linear-gradient(90deg,currentColor 0 36%,transparent 36% 64%,currentColor 64%)}
.l-son i{width:17px;clip-path:polygon(0 32%,32% 32%,70% 0,70% 100%,32% 68%,0 68%,0 32%,78% 30%,84% 30%,84% 70%,78% 70%,78% 30%,92% 16%,98% 16%,98% 84%,92% 84%,92% 16%)}
.l-son[aria-pressed="false"] i{clip-path:polygon(0 32%,32% 32%,70% 0,70% 100%,32% 68%,0 68%);opacity:.55}
.l-plein i{width:15px;background:linear-gradient(currentColor 0 0) 0 0/6px 3px,linear-gradient(currentColor 0 0) 0 0/3px 6px,linear-gradient(currentColor 0 0) 100% 0/6px 3px,
  linear-gradient(currentColor 0 0) 100% 0/3px 6px,linear-gradient(currentColor 0 0) 0 100%/6px 3px,linear-gradient(currentColor 0 0) 0 100%/3px 6px,
  linear-gradient(currentColor 0 0) 100% 100%/6px 3px,linear-gradient(currentColor 0 0) 100% 100%/3px 6px;background-repeat:no-repeat}
.lecteur button:not(.l-lire):hover{color:var(--rouge)}
.l-temps{flex:none;min-width:3.4em;font:700 12px/1 var(--mono);letter-spacing:.04em;font-variant-numeric:tabular-nums}
.l-pos{--v:0%;flex:1 1 auto;min-width:30px;height:28px;margin:0;background:none;-webkit-appearance:none;appearance:none;cursor:pointer;color:inherit}
.l-pos::-webkit-slider-runnable-track{height:6px;background:linear-gradient(var(--rouge),var(--rouge)) 0 0/var(--v) 100% no-repeat,radial-gradient(circle,currentColor 1.2px,transparent 1.8px) 0 50%/7px 6px repeat-x}
.l-pos::-moz-range-track{height:6px;background:radial-gradient(circle,currentColor 1.2px,transparent 1.8px) 0 50%/7px 6px repeat-x}
.l-pos::-moz-range-progress{height:6px;background:var(--rouge)}
.l-pos::-webkit-slider-thumb{-webkit-appearance:none;width:9px;height:20px;margin-top:-7px;background:var(--rouge)}
.l-pos::-moz-range-thumb{all:unset;width:9px;height:20px;background:var(--rouge)}
.rayon.a .l-pos::-webkit-slider-runnable-track,.rayon.b .l-pos::-webkit-slider-runnable-track,.rayon.d .l-pos::-webkit-slider-runnable-track{background:linear-gradient(var(--encre),var(--encre)) 0 0/var(--v) 100% no-repeat,radial-gradient(circle,currentColor 1.2px,transparent 1.8px) 0 50%/7px 6px repeat-x}
.pellicule .l-pos::-webkit-slider-runnable-track{background:linear-gradient(var(--jaune),var(--jaune)) 0 0/var(--v) 100% no-repeat,radial-gradient(circle,currentColor 1.2px,transparent 1.8px) 0 50%/7px 6px repeat-x!important}
.pellicule .l-pos::-webkit-slider-thumb{background:var(--jaune)}
.pellicule .l-temps{display:none}

/* Records : une feuille de marque par jeu, sur son aplat ; carnet à souches (bord haut dentelé) avec les deux tableaux côte à côte.
   Sans score : trois places et le tampon ; dès qu'un score est lu, les dix places. */
.tableaux{display:block;padding-top:clamp(50px,8vh,96px);padding-bottom:clamp(56px,9vh,104px)}
.tableaux .enseigne{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px clamp(20px,2.6vw,40px);padding-right:110px}
.tableaux .enseigne .rep{flex-direction:column;gap:2px}
.tableaux h2{--fs:clamp(36px,6vw,92px);--av:calc(min(100vw,var(--page)) - 2 * var(--m) - 300px);margin:0}
.tableaux .enseigne .gestes{margin:0;flex-basis:100%;padding-left:calc(clamp(40px,4.4vw,64px) * 1.15 + clamp(20px,2.6vw,40px))}
.tableaux .fanal{position:absolute;right:10px;top:-10px;transform-origin:50% 0;animation:balance 3.4s ease-in-out infinite alternate}
.tableaux .fanal .ld,.tableaux .fanal .lb{--s:4}
.carnet{position:relative;margin-top:clamp(26px,4vh,44px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px clamp(26px,3.6vw,60px);padding:clamp(30px,3.4vw,48px) clamp(22px,2.8vw,44px) clamp(26px,3vw,40px);
  background:var(--papier);color:var(--encre);rotate:-.8deg;
  -webkit-mask:radial-gradient(circle 9px at 50% 0,#0000 96%,#000) 0 0/28px 100% repeat-x;mask:radial-gradient(circle 9px at 50% 0,#0000 96%,#000) 0 0/28px 100% repeat-x}
.tableaux:nth-of-type(odd) .carnet{rotate:.8deg}
.carnet h3{font-size:clamp(20px,2vw,30px);color:var(--encre)}
.carnet .places{font-size:clamp(18px,1.75vw,27px)}
.carnet .jour{display:flex;align-items:center;min-height:40px;margin-top:12px;color:var(--rouge)}
.table-jeu:not(:has(tbody tr:not(.libre))) tbody tr:nth-child(n+4){display:none}
.carnet .etat.vide:not(:empty){font-size:clamp(18px,1.9vw,27px);margin-top:18px}
.tableaux::before{opacity:.25}
.tableaux.a{--fond:var(--papier2)}

/* Chaînes : chaque chaîne pend à la guirlande de Shanghodrop par sa lanterne ; éteinte et tamponnée « Bientôt » si elle n'existe pas encore */
.programme-chaines{padding-top:0}
.programme-chaines ol{margin:0 calc(-1 * var(--m))}
.chaine{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px clamp(24px,4vw,64px);align-items:start;padding:clamp(54px,8vh,90px) var(--m) clamp(40px,6vh,70px)}
.chaine::before{content:"";position:absolute;left:0;right:0;top:10px;height:48px;background:url(/images/reprises/drop/guirlande.png) 0 0/384px 48px repeat-x;image-rendering:pixelated;opacity:.9}
.chaine:nth-child(even){background:var(--papier2)}
.accroche{position:relative;z-index:1;margin-top:-4px;padding:0 clamp(10px,2vw,30px);transform-origin:50% 0;animation:balance 3.4s ease-in-out infinite alternate}
.chaine:nth-child(2) .accroche{animation-delay:-1.3s}.chaine:nth-child(3) .accroche{animation-delay:-2.2s}
.accroche .ld,.accroche .lb{--s:5;display:block}
.chaine .rep{margin-bottom:6px}
.chaine h2{--fs:clamp(34px,5.4vw,84px);--av:calc((min(100vw,var(--page)) - 2 * var(--m)) * .66);display:inline}
.chaine .rep .bientot{margin-left:.4em;font-size:clamp(20px,2.2vw,32px);letter-spacing:0;align-self:center}
.chaine div>p:not(.gestes):not(.rep){margin-top:14px;max-width:30em;font-size:clamp(17px,1.4vw,20px)}
.chaine .gestes{margin-top:22px}
.chaine .adresse{opacity:.8}
.programme-chaines>.sh{--k:3;position:absolute;right:var(--m);bottom:0}

/* Lecture : à propos (deux colonnes), mentions légales (trois colonnes, comme l'ours d'un programme), confidentialité */
.lecture{padding-top:clamp(40px,7vh,80px);counter-reset:t}
.lecture .dans{max-width:780px}
.lecture.deux .dans,.lecture.trois .dans{max-width:none;display:grid;gap:clamp(30px,4vh,50px) clamp(30px,5vw,90px);align-items:start}
.lecture.deux .dans{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.lecture.trois .dans{grid-template-columns:repeat(3,minmax(0,1fr))}
.lecture.conf .dans{grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr)}
.lecture h2{--fs:clamp(28px,3vw,44px);--av:calc(min(780px,100vw - 2 * var(--m)) - 1.6em);counter-increment:t;margin:clamp(40px,6vh,64px) 0 16px;display:flex;align-items:baseline;gap:.4em}
.lecture.deux h2{--av:calc((min(100vw,var(--page)) - 2 * var(--m) - clamp(30px,5vw,90px)) / 2 * .8)}
.lecture.trois h2{--av:calc((min(100vw,var(--page)) - 2 * var(--m) - 2 * clamp(30px,5vw,90px)) / 3 * .8)}
.lecture h2::before{content:counter(t,decimal-leading-zero);flex:none;font:400 .62em/1 var(--titre);color:var(--rouge)}
.lecture .dans>:first-child,.lecture .dans>div>h2:first-child{margin-top:0}
.lecture p+p{margin-top:14px}
.lecture .chapeau{margin-bottom:18px}
.lecture a:not(.renvoi){text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.lecture a:not(.renvoi):hover{color:var(--rouge)}
.lecture dl{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:10px 24px}
.lecture.trois dl{grid-template-columns:minmax(0,1fr);gap:2px}
.lecture.trois dd+dt{margin-top:12px}
.lecture dt{font:700 13px/1.9 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--rouge)}
.courriel{font:400 clamp(20px,2.2vw,32px)/1.2 var(--titre);overflow-wrap:anywhere}
.courriel a{text-decoration:none!important}
.carres li{position:relative;padding-left:22px}
.carres li+li{margin-top:12px}
.carres li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;background:var(--rouge)}
/* À propos : les jeux de la bande, chacun sa lanterne ; allumée et liée à son site s'il est sorti, éteinte et tamponnée sinon */
.bande-jeux{padding:clamp(26px,3vw,44px) clamp(20px,2.6vw,40px);background:var(--encre);color:var(--papier);rotate:1deg}
.bande-jeux h2{color:var(--jaune)}
.bande-jeux h2::before{color:var(--papier)}
.jeux-liste li{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:2px 16px;padding:8px 0}
.jeux-liste .puce{grid-row:span 2;justify-self:center}
.jeux-liste .nom{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;font:400 clamp(20px,1.9vw,28px)/1.1 var(--titre);text-transform:uppercase}
.jeux-liste li>.mono{font-size:11.5px;letter-spacing:.08em;opacity:.75}
.jeux-liste .site{text-transform:none;color:var(--jaune)}
.jeux-liste .repos .nom>span:first-child{opacity:.62}
.jeux-liste .puce{--s:2}
.jeux-liste a{transition:color .15s}
.jeux-liste a:hover{color:var(--jaune)}
.jeux-liste .bientot{font-size:15px;color:var(--jaune)}
.lecture .gestes{margin-top:30px}

@media (min-width:901px) and (max-height:760px){.affiche .sh{--k:2!important}.une .vedette .sh{--k:4}}

/* ---------- téléphone et tablette : une colonne ---------- */
@media (max-width:900px){
  .une{padding-top:60px}
  .une h1{--fs:clamp(30px,9.4vw,40px);--av:calc(100vw - 2 * var(--m));max-width:none;margin-top:26px;rotate:-2deg}
  .une .sous{font-size:17px;max-width:15em}
  .alignement a{font-size:clamp(24px,7.4vw,31px);gap:9px}
  .alignement a em{display:none}
  .aussi{max-width:58%;font-size:11.5px;line-height:1.5}
  .vedette{right:-6px}
  .une .vedette .sh{--k:2}
  .dit{display:none}
  .pile .affiche h2{--fs:clamp(28px,8.6vw,38px);--av:calc(100vw - 2 * var(--m))}
  .pile .affiche.a h2,.pile .affiche.e h2{--av:calc(100vw - 2 * var(--m))}
  .acc{font-size:18px;margin-top:10px}
  .pf{margin:10px 0 16px;font-size:11.5px;gap:3px 12px}
  .pile .affiche .texte,.pile .affiche.d .texte.droite{left:var(--m);right:var(--m);width:auto;bottom:22px}
  .pile .affiche .sh{--k:2!important;left:auto!important;right:4px!important;top:auto!important;margin:0!important;bottom:calc(22px + var(--ht,300px))!important}
  .pile .affiche.a::before,.pile .affiche.a .grand{display:none}
  .pile .affiche.a .film{right:auto;left:0;top:0;width:100%;height:45%;max-height:540px;object-fit:cover;aspect-ratio:auto;rotate:none;clip-path:polygon(0 0,100% 0,100% 82%,0 100%)}
  .pile .affiche.a h2{--fs:clamp(28px,10.4vw,44px);margin-left:0}
  .pile .affiche.b h2{--fs:clamp(28px,8.4vw,36px);top:66px}
  .pile .affiche.b .vue{width:66%}
  .pile .affiche.b .v1{left:3%;top:128px}.affiche.b .v2{left:26%;top:232px}.affiche.b .v3{display:none}
  .lampion{display:none}
  .pile .affiche.c .losange,.pile .affiche.e .lune{right:auto;left:50%;top:92px;width:min(74vw,540px);height:min(74vw,540px);translate:-50% 0}
  .pile .affiche.c .queue{display:none}
  .pile .affiche.c h2{--fs:clamp(28px,8.6vw,38px);top:62px;rotate:-6deg}
  .pile .affiche.d::before{left:0;top:50%;width:auto;height:50%}
  .pile .affiche.d .vue{width:74%}
  .pile .affiche.d .v1{left:5%;top:70px}.affiche.d .v2{display:none}
  .pile .affiche.d .jo{display:none}
  .pile .affiche.d h2{--fs:clamp(28px,8.8vw,38px);--av:calc(100vw - 2 * var(--m))}
  .pile .affiche.d .n1{top:auto;bottom:50%;left:var(--m);right:auto;padding:0}
  .pile .affiche.d .n2{top:50%;left:var(--m);padding:0}
  .pile .affiche.d .texte{color:var(--papier);bottom:104px}
  .pile .affiche.d .texte.droite{bottom:22px}
  .pile .affiche.d .pf li::before{background:#e9ad17}
  .pile .affiche.d .rep b{color:#e9ad17}
  .pile .affiche.d .sh{bottom:50%!important}
  .pile .affiche.e h2{--fs:clamp(26px,7.5vw,33px);--av:calc(100vw - 2 * var(--m))}
  .pile .affiche.e h2 br{display:none}
  .pile .affiche.e .texte{width:auto}
  .pile .affiche.e .halo{right:auto;left:50%;top:56px;width:92vw;height:92vw;translate:-50% 0}
  .bloc h2{--fs:clamp(26px,8.4vw,36px)}
  .prochain li{grid-template-columns:auto minmax(0,1fr)}
  .prochain .ecran{width:calc(var(--w) / 4);rotate:none}
  .prochain h4{font-size:clamp(17px,5.3vw,22px)}
  .prochain li .bientot{grid-column:2;justify-self:start;font-size:14px}
  .prochain>.sh{--k:2;position:relative;right:auto;margin:20px 0 calc(-1 * clamp(70px,11vh,130px)) auto}
  .marques,.seances,.coulisses,.rayon,.tableaux .duo{grid-template-columns:minmax(0,1fr)}
  .marques h2,.goodies h2,.coulisses h2,.rayon h2{--av:calc(100vw - 2 * var(--m))}
  .marques .sh{display:none}
  .places{font-size:clamp(20px,6.4vw,26px)}
  .lignes a{grid-template-columns:auto minmax(0,1fr);gap:4px 12px}
  .lignes a em{grid-column:2}
  .clip{width:74%}
  .bande{--s:5vw;flex-direction:column}
  .bande a{flex:none;margin:0 0 calc(5px - var(--s));clip-path:polygon(0 var(--s),100% 0,100% calc(100% - var(--s)),0 100%)}
  .bande a:first-child{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--s)),0 100%)}
  .bande a:last-child{margin-bottom:0;clip-path:polygon(0 var(--s),100% 0,100% 100%,0 100%)}
  .bande img{height:auto;aspect-ratio:4/3}
  .legendes{flex-direction:column}
  .legendes span+span::before{content:none}
  .tete{min-height:0;padding-top:60px}
  .tete h1{--fs:clamp(32px,10vw,48px);--av:calc(100vw - 2 * var(--m));max-width:none;rotate:-2deg}
  .tete .rep{margin-top:30px}
  .tete .vedette{position:relative;right:auto;width:max-content;margin:24px -6px calc(-1 * clamp(50px,9vh,96px)) auto}
  .tete .vedette .sh{--k:2}
  .rayon{padding-top:56px;padding-bottom:56px}
  .rayon .large{justify-self:stretch;rotate:none!important}
  .pellicule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
  .pellicule figure{max-width:none}
  .pellicule .h{grid-column:1/-1}
  .pellicule.n1 .v,.pellicule.n3 .v:last-child,.pellicule.n5 .v:last-child{grid-column:1/-1;justify-self:center;width:calc(50% - 7px)}
  .cote figure:nth-child(2){margin-top:18px}
  .rayon:not(.tableaux){row-gap:14px}
  .rayon:not(.tableaux) h2{margin-top:-4px}
  .rayon .large{margin-top:12px}
  .rayon:not(.tableaux) .enseigne{display:contents}
  .rayon:not(.tableaux) .enseigne .gestes{margin-top:0}
  .rayon .large{order:1}.rayon .cote{order:2;margin-top:0}.rayon .pellicule{order:3}
  .lecteur{gap:6px}
  .cote .v .l-temps{display:none}
  .tableaux .carnet{grid-template-columns:minmax(0,1fr);rotate:none!important}
  /* Carnet sur une colonne : un seul tampon, celui des meilleurs scores, quand les deux tables disent la même chose (#161) */
  .carnet:has(.table-jeu:first-child .etat.vide:not(:empty)) .table-jeu+.table-jeu .etat.vide{display:none}
  .tableaux .enseigne{padding-right:56px}
  .tableaux h2{--av:calc(100vw - 2 * var(--m) - 56px)}
  .tableaux .enseigne .gestes{padding-left:0}
  .tableaux .fanal{right:0}
  .tableaux .fanal .ld,.tableaux .fanal .lb{--s:3}
  .chaine{grid-template-columns:auto minmax(0,1fr);gap:14px 16px}
  .accroche{padding:0}
  .accroche .ld,.accroche .lb{--s:3}
  .chaine h2{--av:calc(100vw - 2 * var(--m) - 64px);display:block}
  .programme-chaines>.sh{--k:2;position:relative;right:auto;margin:0 0 calc(-1 * clamp(70px,11vh,130px)) auto}
  .lecture.deux .dans,.lecture.trois .dans,.lecture.conf .dans{grid-template-columns:minmax(0,1fr)}
  .lecture.deux h2,.lecture.trois h2{--av:calc(100vw - 2 * var(--m) - 1.6em)}
  .bande-jeux{rotate:none;margin:0 calc(-1 * var(--m));padding:34px var(--m)}

  .lecture dl{grid-template-columns:minmax(0,1fr);gap:2px}
  .lecture dd+dt{margin-top:12px}
  .pile .affiche .sh{translate:none}
}
