/* Téléporteurs (client/js/teleport.js) : choix de la destination et éclair d'arrivée. Style « Fanzine » : chargé après
   hud-fanzine.css, dont il reprend les jetons (encres rose, bleu, jaune, décalage de calage, coins droits). */

.tele-choix { display: grid; gap: 12px; }
.tele-intro { margin: 0; color: var(--ink-soft, var(--text-soft)); }
.tele-liste { display: grid; gap: 8px; max-height: min(56vh, 460px); overflow: auto; padding: 2px 6px 6px 2px; }
.tele-dest { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 12px; text-align: left; cursor: pointer;
  background: var(--paper-2, var(--surface-raised)); color: inherit; border: 2px solid var(--ink, var(--outline)); border-radius: 0; font: inherit;
  box-shadow: 3px 3px 0 var(--blue, #5b8cff); transition: transform 0.08s, box-shadow 0.08s; }
.tele-choix.ami .tele-dest { box-shadow: 3px 3px 0 var(--pink, #ff5fae); }
.tele-dest:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--yellow, #ffd84a); }
.tele-dest:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--yellow, #ffd84a); }
.tele-dest:focus-visible { outline: 3px solid var(--yellow, #ffd84a); outline-offset: 2px; }
.tele-dest-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font: 800 18px/1 var(--font-titre, inherit);
  background: var(--blue, #5b8cff); color: #fff; border: 2px solid var(--ink, var(--outline)); }
.tele-choix.ami .tele-dest-ico { background: var(--pink, #ff5fae); color: #14121b; }
.tele-dest-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.tele-dest-txt strong { font: 800 16px/1.15 var(--font-titre, inherit); overflow-wrap: anywhere; }
.tele-dest-txt small { font: 400 11.5px/1.3 var(--mono, monospace); color: var(--muted, #9c95a8); overflow-wrap: anywhere; }
.tele-dest-nb { flex: none; padding: 3px 6px; font: 500 11px/1 var(--mono, monospace); background: var(--yellow, #ffd84a); color: #14121b; border: 1.5px solid var(--ink, var(--outline)); }

/* réglage de la destination : groupes par ami, choix actuel, « Choisir à chaque fois » */
.tele-groupes { display: grid; gap: 14px; max-height: min(50vh, 420px); overflow: auto; padding: 2px 6px 6px 2px; }
.tele-groupes .tele-liste { max-height: none; overflow: visible; padding: 0; }
.tele-ami { display: grid; gap: 6px; }
.tele-ami-nom { margin: 0; display: flex; align-items: baseline; gap: 8px; font: 800 15px/1.2 var(--font-titre, inherit); }
.tele-ami-nom small { font: 500 10.5px/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted, #9c95a8); }
.tele-dest.on { border-color: var(--yellow, #ffd84a); box-shadow: 3px 3px 0 var(--yellow, #ffd84a); }
.tele-chaque { border-style: dashed; box-shadow: none; }
.tele-chaque .tele-dest-ico { background: var(--paper, transparent); color: inherit; }
.tele-vide { margin: 0; padding: 10px 12px; border: 1.5px dashed var(--line, rgba(255, 255, 255, 0.16)); color: var(--ink-soft, var(--text-soft)); }

/* arrivée : un éclair de trame qui s'efface (aucun si les animations sont réduites, voir teleport.js) */
.tele-flash { position: fixed; inset: 0; z-index: 40; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 55%, rgba(143, 227, 234, 0.85), rgba(91, 140, 255, 0.35) 38%, transparent 70%);
  animation: tele-flash 0.9s ease-out forwards; }
.tele-flash.ami { background: radial-gradient(circle at 50% 55%, rgba(255, 166, 207, 0.85), rgba(255, 95, 174, 0.35) 38%, transparent 70%); }
@keyframes tele-flash { 0% { opacity: 1; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.3); } }

/* Administration › Téléporter (client/js/admin.js tpBody) et choix d'une case dans la salle (main.js startTeleportPick) */
.tp-admin h4 { margin: 14px 0 6px; }
.tp-joueurs { list-style: none; margin: 6px 0 0; padding: 2px 6px 6px 2px; display: grid; gap: 6px; max-height: min(36vh, 300px); overflow: auto; }
.tp-joueurs li { display: flex; align-items: stretch; gap: 6px; }
.tp-joueur { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--paper-2, var(--surface-raised)); border: 2px solid var(--ink, var(--outline)); border-radius: 0; box-shadow: 3px 3px 0 var(--blue, #5b8cff); }
.tp-joueur.on { box-shadow: 3px 3px 0 var(--pink, #ff5fae); border-color: var(--pink, #ff5fae); }
.tp-joueur:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; border-style: dashed; }
.tp-joueur:focus-visible { outline: 3px solid var(--yellow, #ffd84a); outline-offset: 2px; }
.tp-coche { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font: 800 15px/1 var(--font-titre, inherit); border: 2px solid var(--ink, var(--outline)); background: var(--paper, transparent); }
.tp-joueur.on .tp-coche { background: var(--pink, #ff5fae); color: #14121b; }
.tp-joueur-txt { min-width: 0; display: grid; gap: 2px; }
.tp-joueur-txt strong { font: 800 15px/1.15 var(--font-titre, inherit); overflow-wrap: anywhere; }
.tp-joueur-txt small { font: 400 11px/1.3 var(--mono, monospace); color: var(--muted, #9c95a8); overflow-wrap: anywhere; }
.tp-aller { flex: none; align-self: center; }
.tp-sous { margin: 10px 0 6px; font: 500 10.5px/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted, #9c95a8); }
.tp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 0 6px 6px 0; }
.tp-dest { min-height: 48px; }
.tp-ici { box-shadow: 3px 3px 0 var(--yellow, #ffd84a); }
.tp-chambre { box-shadow: 3px 3px 0 var(--pink, #ff5fae); }
.tp-chambre .tele-dest-ico { background: var(--pink, #ff5fae); color: #14121b; }
.tp-ici .tele-dest-ico { background: var(--yellow, #ffd84a); color: #14121b; }
.tp-go { width: 100%; min-height: 46px; }

.tp-pick { position: fixed; z-index: 45; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 64px); transform: translateX(-50%); width: min(440px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #14121b; background: var(--yellow, #ffd84a);
  border: 2px solid var(--ink, #14121b); box-shadow: 4px 4px 0 var(--pink, #ff5fae); }
.tp-pick-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font: 800 20px/1 var(--font-titre, inherit); background: var(--blue, #5b8cff); color: #fff; border: 2px solid #14121b; }
.tp-pick-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.tp-pick-txt strong { font: 800 16px/1.1 var(--font-titre, inherit); }
.tp-pick-txt small { font: 400 11.5px/1.3 var(--mono, monospace); overflow-wrap: anywhere; }
body.tp-picking #stage { cursor: crosshair; }
@media (max-width: 560px) {
  .tp-grille { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tp-grille .tp-dest { gap: 6px; padding: 6px 8px; min-height: 44px; }
  .tp-grille .tele-dest-ico, .tp-grille .tele-dest-nb { display: none; }
  .tp-grille .tele-dest-txt strong { font-size: 13.5px; overflow-wrap: normal; hyphens: auto; }
  .tp-grille .tele-dest-txt small { font-size: 10.5px; }
}

/* Administration › Salles : une fiche par lieu, état en quatre boutons (Disponible, Bientôt disponible, En travaux, Fermée) */
.adm-salles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 0 6px 6px 0; }
.adm-salle { display: grid; gap: 8px; padding: 10px 12px; background: var(--paper-2, var(--surface-raised)); border: 2px solid var(--ink, var(--outline)); box-shadow: 3px 3px 0 var(--blue, #5b8cff); }
.adm-salle.soon { box-shadow: 3px 3px 0 var(--yellow, #ffd84a); }
.adm-salle.works { box-shadow: 3px 3px 0 var(--yellow, #ffd84a); border-style: dashed; }
.adm-salle.closed { box-shadow: 3px 3px 0 var(--pink, #ff5fae); }
.adm-salle-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.adm-salle-tete strong { flex: 1 1 auto; min-width: 0; font: 800 16px/1.15 var(--font-titre, inherit); overflow-wrap: anywhere; }
.adm-salle-tete small { flex-basis: 100%; font: 400 11px/1.3 var(--mono, monospace); color: var(--muted, #9c95a8); }
.adm-etat { flex: none; padding: 3px 6px; font: 500 10.5px/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: 0.04em; border: 1.5px solid var(--ink, var(--outline)); background: var(--blue, #5b8cff); color: #fff; white-space: nowrap; }
.adm-etat.soon, .adm-etat.works { background: var(--yellow, #ffd84a); color: #14121b; }
.adm-etat.closed { background: var(--pink, #ff5fae); color: #14121b; }
.adm-etats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.adm-etat-btn { min-height: 36px; padding: 6px 8px; cursor: pointer; font: 700 13px/1.1 var(--font, inherit); color: inherit; text-align: center;
  background: var(--paper, transparent); border: 2px solid var(--ink, var(--outline)); border-radius: 0; transition: transform 0.08s, box-shadow 0.08s; }
.adm-etat-btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--yellow, #ffd84a); }
.adm-etat-btn:focus-visible { outline: 3px solid var(--yellow, #ffd84a); outline-offset: 2px; }
.adm-etat-btn:disabled { cursor: default; opacity: 0.6; }
.adm-etat-btn.on { opacity: 1; box-shadow: 2px 2px 0 var(--ink, var(--outline)); }
.adm-etat-btn.open.on { background: var(--blue, #5b8cff); color: #fff; }
.adm-etat-btn.soon.on, .adm-etat-btn.works.on { background: var(--yellow, #ffd84a); color: #14121b; }
.adm-etat-btn.closed.on { background: var(--pink, #ff5fae); color: #14121b; }
.adm-salle-par, .adm-salle-fixe { margin: 0; }
.adm-salle-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 11px/1 var(--mono, monospace); text-transform: uppercase; }
.adm-salle-cap .adm-num { width: 70px; }
html[data-theme] .nc-pill.soon.ferme { background: var(--pink); color: #14121b; }
