/* Portail Shangho Games : salle d'arcade de nuit (maquette M1 « La salle aux lanternes », adminapi/shangho-games#29).
   Aplats de nuit, lumière des écrans et des lanternes en pixels tramés. Ni tuile arrondie, ni carte, ni pilule, ni liseré, ni cadre, ni ombre. */
:root{--nuit:#0c0820;--nuit2:#110a28;--ciel:#160e36;--sol:#07040f;--creme:#fff4e0;--brume:#c8b8e0;--gris:#a898c8;--or:#ffc830;--eteint:#5a5070}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--nuit);color:var(--creme);font:17px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans CJK JP",sans-serif;-webkit-text-size-adjust:100%}
body{background:var(--nuit);min-height:100vh;display:flex;flex-direction:column}
img{image-rendering:pixelated;display:block}
a{color:inherit;text-underline-offset:5px}
a:focus-visible,summary:focus-visible,video:focus-visible{outline:3px solid var(--or);outline-offset:3px}
.sauter{position:absolute;left:-9999px;top:0;background:var(--or);color:var(--sol);padding:8px 16px;z-index:9}
.sauter:focus{left:16px}
h1{font-size:clamp(30px,5vw,56px);line-height:1.08;font-weight:800;letter-spacing:-.01em}
h2{font-size:clamp(28px,3.2vw,40px);line-height:1.1;font-weight:800}
.dans{max-width:1152px;margin:0 auto}

/* En-tête : logo pixel, rubriques en texte, lanterne des langues */
.haut{max-width:1152px;margin:0 auto;width:100%;display:flex;align-items:center;gap:8px 24px;padding:16px;flex-wrap:wrap;position:relative;z-index:3}
.marque img{width:316px;height:40px}
.haut nav{display:flex;gap:4px 22px;font-weight:600;margin-left:auto;flex-wrap:wrap}
.haut nav a{text-decoration:none;color:var(--brume)}
.haut nav a[aria-current]{color:var(--or)}
.haut nav a:hover{color:var(--creme)}
.langues{position:relative}
.langues summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;color:var(--brume);font-weight:700;letter-spacing:.08em;font-size:15px;padding:4px 0}
.langues summary::-webkit-details-marker{display:none}
.langues summary img{width:13px;height:39px;margin-top:-14px}
.langues[open] summary{color:var(--or)}
.langues ul{list-style:none;position:absolute;right:0;top:calc(100% + 8px);background:var(--sol);padding:12px 0;width:min(560px,calc(100vw - 32px));columns:3 150px;column-gap:0;z-index:5}
.langues li a{display:block;padding:6px 18px;text-decoration:none;color:var(--brume);break-inside:avoid}
.langues li a:hover,.langues li a[aria-current]{color:var(--or)}

/* Salle : colonne des rails publicitaires (regie.css), hauteur suffisante pour un rail */
.salle{position:relative;flex:1;max-width:1152px;width:100%;margin:0 auto;--regie-haut:16px}
.salle>.regie,.allee>.regie{z-index:2}
.allee{position:relative}
.regie-mention{color:var(--gris)}

/* Accueil : corde des lanternes, Shangho, titre */
.entree{background:var(--ciel);margin:0 calc(50% - 50vw);overflow:hidden}
.entree .corde{width:100%;height:auto;aspect-ratio:360/44}
.entree .dans{padding:32px 16px 64px;display:flex;gap:32px;align-items:flex-end}
.entree .hote{width:216px;height:240px;flex:none}
.entree p{color:var(--brume);margin-top:10px;font-size:20px}

/* Un poste par jeu : l'écran et sa flaque de lumière, la lanterne du jeu au-dessus du texte */
.poste{padding:72px 16px 56px;margin:0 calc(50% - 50vw)}
.poste:nth-of-type(even){background:var(--nuit2)}
.poste .dans{display:grid;grid-template-columns:7fr 5fr;gap:40px;align-items:center}
.poste:nth-of-type(even) .dans{grid-template-columns:5fr 7fr}
.poste:nth-of-type(even) .vue{order:2}
.ecran{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--sol)}
.ecran.eteint{display:flex;align-items:center;justify-content:center;color:var(--eteint);font-weight:800;letter-spacing:.3em;text-transform:uppercase;font-size:22px}
.vue .lueur{width:100%;height:auto;aspect-ratio:240/24}
.texte{position:relative;padding-left:96px;min-height:200px}
.texte .lanterne{position:absolute;top:-96px;left:0;width:72px;height:208px}
.genre{font-size:14px;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:var(--or)}
.texte h2{margin:4px 0 10px}
.texte p{font-size:19px}
.texte .plat,.plat{color:var(--gris);font-size:15px;margin-top:10px}
.aller{display:inline-block;margin-top:18px;font-weight:700;font-size:18px}
.aller:hover{color:var(--creme)!important}

/* Pages de texte et titres */
.titre{background:var(--ciel);margin:0 calc(50% - 50vw);padding:56px 16px 48px}
.titre p{color:var(--brume);font-size:20px;margin-top:8px}
.titre.perdu .dans{display:flex;gap:32px;align-items:center}
.titre.perdu .hote{width:144px;height:160px}
.lecture{padding:48px 16px 72px}
.lecture .dans{max-width:760px}
.lecture h2{font-size:24px;margin:36px 0 12px;color:var(--or)}
.lecture p,.lecture li{font-size:18px;margin-top:10px}
.lecture ul{list-style:none}
.lecture ul li{padding-left:22px;position:relative}
.lecture ul li::before{content:"";position:absolute;left:0;top:.62em;width:8px;height:8px;background:var(--or)}
.lecture ul.jeux li{padding-left:28px}
.lecture ul.jeux li::before{display:none}
.lecture .puce{position:absolute;left:0;top:-6px;width:12px;height:35px}
.lecture dl{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:8px 24px;font-size:18px}
.lecture dt{color:var(--gris)}

/* Vidéos : un rayon par jeu, la grande vidéo puis la bande des clips, côte à côte sans écart */
.rayon{padding:56px 16px;margin:0 calc(50% - 50vw)}
.rayon:nth-of-type(odd){background:var(--nuit2)}
.enseigne{position:relative;padding-left:96px;min-height:150px;margin-bottom:24px}
.enseigne .lanterne{position:absolute;top:-56px;left:0;width:72px;height:208px}
.enseigne h2{margin:2px 0 0}
.enseigne .aller{margin-top:8px}
.rayon figure video{display:block;width:100%;height:auto;background:var(--sol)}
.rayon figcaption{color:var(--brume);font-size:15px;padding:8px 12px 0 0;font-weight:600}
.bande{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin-top:24px;align-items:flex-end;scrollbar-color:var(--eteint) transparent}
.bande figure{flex:none;scroll-snap-align:start}
.bande figure.v{width:216px}
.bande figure.h{width:384px}

/* Chaînes */
.chaines{padding:56px 16px 72px}
.chaine{display:flex;gap:32px;align-items:center;padding:24px 0}
.chaine>img{width:200px;height:200px;flex:none}
.chaine .lanterne{width:72px;height:208px;margin:0 64px}
.chaine h2{margin:4px 0 8px}
.chaine.endormie h2,.chaine.endormie p{color:var(--gris)}

/* Sol de la salle */
.sol{background:var(--sol);padding:40px 16px;margin-top:auto}
.sol .dans{display:flex;gap:16px 28px;align-items:center;flex-wrap:wrap;color:var(--gris)}
.sol img{width:72px;height:80px}
.sol .liens{display:flex;flex-wrap:wrap;gap:4px 20px;flex:1}
.sol a{text-decoration:none}
.sol a:hover{color:var(--creme)}

@media (max-width:1023px){
  .poste .dans,.poste:nth-of-type(even) .dans{grid-template-columns:1fr;gap:0}
  .poste:nth-of-type(even) .vue{order:0}
  .poste{padding:40px 0}
  .texte{padding:28px 16px 0 88px;min-height:0}
  .texte .lanterne{top:-8px;left:16px;width:54px;height:156px}
}
@media (max-width:767px){
  .marque img{width:237px;height:30px}
  .haut nav{width:100%;margin-left:0;justify-content:space-between;order:3}
  .langues{margin-left:auto}
  .entree .dans{gap:12px;padding:20px 16px 40px}
  .entree .hote{width:72px;height:80px}
  .rayon{padding:40px 16px}
  .enseigne{padding-left:72px}
  .enseigne .lanterne{top:-24px;width:54px;height:156px}
  .bande figure.v{width:62vw}
  .bande figure.h{width:80vw}
  .chaine{flex-direction:column;align-items:flex-start}
  .chaine>img{width:120px;height:120px}
  .chaine .lanterne{margin:0}
  .titre.perdu .hote{width:72px;height:80px}
  .lecture dl{grid-template-columns:1fr;gap:2px}
  .lecture dd{margin-bottom:10px}
}
