/* Page d'accueil Feti'a — style « verre dépoli » sur bleu pervenche, scène 3D (three.js) en fond. */
:root {
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, .78);
  --accent: linear-gradient(100deg, #7c3aed, #db2777 60%, #f97316);
  --neon: #f0abfc;
  --bg-top: #0c0a2a;
  --bg-bottom: #2a0f5c;
  --inset: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.landing {
  font: 300 16px/1.45 Outfit, -apple-system, system-ui, sans-serif; color: var(--ink); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-top) 0%, #3b1aa0 50%, #c026d3 62%, var(--bg-bottom) 100%);
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
/* voile : texte lisible sur la gauche, comme sur la maquette */
.veil { position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 5, 32, .62) 0%, rgba(14, 8, 48, .22) 42%, rgba(0, 0, 0, 0) 65%); }

/* cadre arrondi + navigation + pied de page, au-dessus des sections */
.frame { position: fixed; inset: var(--inset); border-radius: 22px; pointer-events: none; z-index: 3;
  box-shadow: 0 0 0 1px rgba(240, 171, 252, .35) inset, 0 0 40px rgba(192, 38, 211, .25) inset, 0 0 0 100vmax rgba(9, 6, 30, .72); }
.nav, .foot { pointer-events: auto; z-index: 5; position: absolute; left: 22px; right: 22px; display: flex; align-items: center; gap: 18px; }
.nav { top: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 500; letter-spacing: .01em; }
.mark { width: 22px; height: 22px; border-radius: 50%; position: relative;
  background: conic-gradient(from 200deg, #22d3ee, #7c3aed, #f472b6, #fb923c, #22d3ee); }
.mark::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #160c3d; }
.links { flex: 1; display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 13px; }
.links a { opacity: .85; transition: opacity .2s; }
.links a:hover, .links a.on { opacity: 1; }
.links a.on { color: var(--neon); font-weight: 500; text-shadow: 0 0 12px rgba(240, 171, 252, .7); }
.links i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.lang { border: 1px solid rgba(255, 255, 255, .55); background: none; color: #fff; border-radius: 14px; padding: 3px 9px;
  font: 400 12px Outfit, sans-serif; cursor: pointer; }
.pill { background: var(--accent); border-radius: 22px; padding: 8px 16px; font-size: 13px; font-weight: 400;
  box-shadow: 0 6px 24px rgba(219, 39, 119, .45); transition: transform .2s; }
.pill:hover { transform: translateY(-1px); }

.foot { bottom: 14px; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.foot .small { flex: 1; }
.foot .small:last-child { text-align: right; }
.scroll { display: flex; align-items: center; gap: 8px; }
.scroll i { width: 14px; height: 22px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 8px; position: relative; }
.scroll i::after { content: ''; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; margin-left: -1px;
  border-radius: 1px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; background: none; padding: 0; cursor: pointer;
  transition: background .3s, transform .3s; }
.dots button.on { background: #fff; transform: scale(1.25); }

/* sections plein écran, défilement aimanté */
/* pointer-events : le cadre décoratif ignore la souris, pas le conteneur des sections (sinon ni molette ni doigt) */
#sections { position: fixed; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; z-index: 2; scroll-behavior: smooth; pointer-events: auto; }
#sections::-webkit-scrollbar { display: none; }
.sec { height: 100vh; height: 100dvh; scroll-snap-align: start; position: relative;
  padding: 0 calc(var(--inset) + 46px); display: flex; flex-direction: column; justify-content: center; max-width: 760px; }
.hero { justify-content: flex-end; padding-bottom: 120px; max-width: none; }

.kicker, .tag { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-soft); margin-bottom: 14px; }
.tag::before { content: ''; width: 18px; height: 1px; background: #fff; margin-right: 4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .25), 0 0 12px #22d3ee; }
h1, h2 { font-weight: 300; letter-spacing: -.01em; margin: 0 0 14px; text-shadow: 0 2px 30px rgba(20, 8, 70, .5); }
h1 { font-size: clamp(38px, 6.2vw, 84px); line-height: 1.02; max-width: 12ch; }
h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; }
h1 em, h2 em { font-style: italic; font-weight: 200; color: var(--neon); text-shadow: 0 0 24px rgba(240, 171, 252, .55); }
.sec p { color: var(--ink-soft); max-width: 46ch; margin: 0 0 22px; font-size: 16px; }

.row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.arrow { font-size: 28px; opacity: .9; }
.chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 26px;
  padding: 5px 14px 5px 6px; font-size: 14px; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .12); }
.faces { display: flex; }
.faces i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; }
.faces i:first-child { margin-left: 0; background: #f7c600; }
.faces i:nth-child(2) { background: #0a5bd6; }
.faces i:nth-child(3) { background: #3ddc84; }

.hero .side-text { position: absolute; right: calc(var(--inset) + 46px); bottom: 170px; max-width: 30ch; font-size: 14px; }
.ctas { position: absolute; right: calc(var(--inset) + 46px); bottom: 110px; display: flex; gap: 10px; }
.btn-white, .btn-ghost { display: inline-flex; align-items: center; gap: 6px; border-radius: 22px; padding: 9px 18px; font-size: 14px;
  font-weight: 400; transition: transform .2s, box-shadow .2s; width: fit-content; }
.btn-white { background: #fff; color: #3b0a75; box-shadow: 0 6px 26px rgba(192, 38, 211, .35); }
.btn-ghost { border: 1px solid rgba(240, 171, 252, .7); background: rgba(60, 20, 120, .35); backdrop-filter: blur(8px); }
.btn-white:hover, .btn-ghost:hover { transform: translateY(-2px); }

.facts, .steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; max-width: 48ch; }
.facts li, .steps li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-soft); }
.facts b { color: #fff; font-weight: 400; }
.steps b { color: #fff; font-weight: 500; font-size: 12px; letter-spacing: .1em; min-width: 22px; }
.stats { display: flex; gap: 34px; }
.stats b { display: block; font-size: 34px; font-weight: 300; }
.stats span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.soon { display: inline-block; border: 1px dashed rgba(255, 255, 255, .8); border-radius: 20px; padding: 6px 14px; font-size: 13px;
  text-transform: uppercase; letter-spacing: .12em; width: fit-content; }

/* apparitions : lettres une à une pour les titres, fondu pour le reste */
.reveal .ch { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px);
  transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s; transition-delay: calc(var(--i) * 22ms); }
.reveal .w { display: inline-block; white-space: nowrap; }
.sec.in .reveal .ch { opacity: 1; transform: none; filter: none; }
.fade { opacity: 0; transform: translateY(14px); transition: opacity .7s .35s, transform .8s .35s cubic-bezier(.2, .7, .2, 1); }
.sec.in .fade { opacity: 1; transform: none; }

@media (max-width: 760px) {
  :root { --inset: 8px; }
  .links { display: none; }
  .nav { justify-content: space-between; left: 14px; right: 14px; top: 12px; }
  .foot { left: 14px; right: 14px; bottom: 10px; }
  .foot .small:first-child, .scroll { display: none; }
  .sec { padding: 70px 26px 70px; justify-content: flex-end; }
  .hero { padding-bottom: 80px; }
  .hero .side-text, .ctas { position: static; margin-top: 10px; }
  .ctas { margin-top: 4px; }
  .veil { background: linear-gradient(0deg, rgba(8, 5, 32, .75) 0%, rgba(14, 8, 48, .25) 55%, rgba(0, 0, 0, 0) 75%); }
  .stats { gap: 20px; }
  .stats b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal .ch, .fade { transition: none; opacity: 1; transform: none; filter: none; }
  #sections { scroll-behavior: auto; }
}

.game-hint { position: fixed; z-index: 4; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  font-size: 13px; letter-spacing: .06em; color: #fff; padding: 5px 12px; border-radius: 14px;
  background: rgba(20, 10, 60, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.game-hint.on { opacity: 1; transition-delay: .6s; }
.stats small { display: block; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }

/* porte secrète : bouton de connexion sous l'écran du jeu */
/* pointer-events : le cadre décoratif ignore la souris ; le bouton de connexion, lui, doit être cliquable */
.secret { pointer-events: auto; position: fixed; z-index: 6; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: pop .5s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(.8); } }
.enter { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(240, 171, 252, .6); border-radius: 26px;
  padding: 8px 18px 8px 8px; font: 400 15px Outfit, sans-serif; color: #fff; cursor: pointer;
  background: rgba(40, 16, 100, .55); backdrop-filter: blur(10px); box-shadow: 0 0 30px rgba(192, 38, 211, .45); }
.enter img { width: 30px; height: 30px; border-radius: 50%; }
.enter img:not([src]) { display: none; }
#dev-enter { padding-left: 18px; }
.secret-err { color: #ff8fab; font-size: 13px; min-height: 1em; }

/* connexion : petit bouton en haut à droite, panneau en verre juste dessous */
.nav-end { display: flex; align-items: center; gap: 8px; }
.login-btn { border-color: rgba(240, 171, 252, .75); box-shadow: 0 0 14px rgba(192, 38, 211, .35); }
.login-btn:hover { background: rgba(240, 171, 252, .15); }
body.in-space .login-btn { display: none; } /* déjà connecté dans l'espace admin */
.secret.login-pop { top: calc(var(--inset) + 52px); right: calc(var(--inset) + 22px); left: auto !important; transform: none; align-items: flex-end;
  padding: 14px; border-radius: 16px; background: rgba(30, 12, 80, .6); backdrop-filter: blur(14px);
  border: 1px solid rgba(240, 171, 252, .35); box-shadow: 0 10px 40px rgba(9, 6, 30, .5); animation: drop .3s cubic-bezier(.2, .9, .3, 1.2); }
.secret.login-pop .secret-err:empty { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.96); } }

/* transfert vers l'espace admin : le texte de l'accueil s'efface, le décor reste */
body.in-space #sections, body.in-space .links, body.in-space .foot .dots, body.in-space .foot .scroll,
body.in-space .game-hint, body.in-space .secret, body.in-space .veil { opacity: 0; pointer-events: none; transition: opacity .6s; }

/* barre du haut dans l'espace : menu au centre, FR · déconnexion · bulle à droite */
.space-nav .links { display: none; }
.space-menu { flex: 1; display: flex; justify-content: center; gap: 6px; }
.space-menu button, .icon-btn { font: 400 14px Outfit, sans-serif; color: #fff; cursor: pointer; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); backdrop-filter: blur(10px); padding: 7px 18px;
  transition: background .25s, box-shadow .25s; }
.space-menu button.on { background: linear-gradient(100deg, rgba(124, 58, 237, .75), rgba(219, 39, 119, .75)); border-color: transparent;
  box-shadow: 0 0 22px rgba(219, 39, 119, .45); }
.icon-btn { padding: 0; width: 34px; height: 34px; font-size: 15px; display: inline-grid; place-items: center; }
.bubble { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  border: 2px solid rgba(240, 171, 252, .85); box-shadow: 0 0 16px rgba(240, 171, 252, .5); background: #2a145e; font-weight: 500; }
.bubble img { width: 100%; height: 100%; object-fit: cover; }

/* panneau central */
.space { position: fixed; inset: 0; z-index: 4; pointer-events: none; display: flex; justify-content: center;
  padding: 92px 24px 70px; overflow-y: auto; }
.panel { pointer-events: auto; width: min(980px, 100%); display: flex; flex-direction: column; gap: 16px; align-items: stretch;
  height: fit-content; }
.panel.in > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.panel.in > *:nth-child(2) { animation-delay: .07s; }
.panel.in > *:nth-child(3) { animation-delay: .14s; }
.panel.in > *:nth-child(4) { animation-delay: .21s; }
.panel.out > * { opacity: 0; transform: translateY(-24px) scale(.98); filter: blur(6px); transition: all .28s ease-in; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(8px); } }
.glass { background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 20px; backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 60px rgba(10, 4, 40, .45), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; }
.hello { align-self: center; padding: 16px 30px; text-align: center; }
.hello small { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }
.hello h2 { margin: 2px 0 0; font-size: 32px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 14px; justify-content: center; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; text-align: left; font: inherit; cursor: pointer;
  transition: transform .25s, background .25s; }
.tile:hover, .race:hover { transform: translateY(-3px); background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); }
.tile b { font-size: 20px; font-weight: 500; }
.tile span { font-size: 13px; color: var(--ink-soft); }

.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head h2 { margin: 0; font-size: 30px; }
.big-btn { border: 0; border-radius: 26px; padding: 14px 26px; font: 500 16px Outfit, sans-serif; color: #fff; cursor: pointer;
  background: linear-gradient(100deg, #7c3aed, #db2777 60%, #f97316); box-shadow: 0 10px 34px rgba(219, 39, 119, .5);
  transition: transform .2s, box-shadow .2s; }
.big-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 40px rgba(219, 39, 119, .65); }
.big-btn.small { padding: 10px 20px; font-size: 14px; }
.new-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; }
.new-form input { flex: 1; min-width: 180px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 5, 40, .35);
  color: #fff; padding: 11px 14px; font: 300 15px Outfit, sans-serif; }
.new-form .err { width: 100%; color: #ff9ab8; font-size: 13px; min-height: 1em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.race { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s, background .25s, opacity .25s; }
.race.dim { opacity: .55; }
.race-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.race-top b { font-size: 18px; font-weight: 500; }
.meta { font-size: 13px; color: var(--ink-soft); }
.meta code { font-size: 12px; opacity: .8; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip-btn { border: 1px solid rgba(255, 255, 255, .3); border-radius: 16px; padding: 5px 12px; font: 400 13px Outfit, sans-serif;
  color: #fff; background: rgba(255, 255, 255, .06); cursor: pointer; }
.chip-btn:hover { background: rgba(255, 255, 255, .16); }
.switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; color: var(--ink-soft); }
.switch input { display: none; }
.switch i { width: 36px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .2); position: relative; transition: background .25s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s; }
.switch input:checked + i { background: linear-gradient(90deg, #22d3ee, #a3e635); }
.switch input:checked + i::after { transform: translateX(16px); }
.fold { align-self: flex-start; border: 0; background: none; color: var(--ink-soft); font: 400 14px Outfit, sans-serif; cursor: pointer; padding: 4px 2px; }
.empty { padding: 18px; color: var(--ink-soft); text-align: center; }

.list { padding: 6px 4px; }
.list .row { display: grid; grid-template-columns: 14px minmax(90px, 1.2fr) 2fr 1fr .8fr .8fr; gap: 12px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.list .row:last-child { border-bottom: 0; }
.list .row.empty { display: block; text-align: center; color: var(--ink-soft); }
.where, .when, .n { color: var(--ink-soft); font-size: 13px; }
.led { width: 10px; height: 10px; border-radius: 50%; background: #64748b; }
.led.live { background: #a3e635; box-shadow: 0 0 10px #a3e635; animation: blink 1.6s infinite; }
.led.stale { background: #fbbf24; }
@keyframes blink { 50% { opacity: .45; } }
@media (max-width: 760px) {
  .space { padding: 80px 14px 60px; }
  .space-menu button { padding: 6px 12px; }
  .tiles { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: stretch; }
  .list .row { grid-template-columns: 14px 1fr auto; }
  .list .row .where, .list .row .n, .list .row .batt { grid-column: 2 / -1; }
}

/* barre du haut compacte dans l'espace admin */
.space-nav { gap: 10px; }
.space-nav .logo { white-space: nowrap; }
body.in-space .foot .small:first-child { visibility: hidden; }
@media (max-width: 760px) {
  .space-nav .logo { font-size: 0; gap: 0; } /* sur téléphone : seulement le logo rond */
  .space-nav .lang, .space-nav .icon-btn { padding: 0 8px; }
  .space-menu { gap: 4px; }
}
.list .row b { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.list .row b small { color: var(--ink-soft); font-weight: 300; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

/* réglages d'une course */
.section { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.section h3 { margin: 0; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: #f0d9ff; }
.help { margin: 0; color: var(--ink-soft); font-size: 13px; }
.save-state { font-size: 13px; color: #a3e635; }
.big-input { width: 100%; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 5, 40, .35); color: #fff;
  padding: 12px 14px; font: 300 22px Outfit, sans-serif; }
.boat-pick { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .9; margin: 4px 0; }
.boat-pick select { border-radius: 10px; padding: 6px 10px; background: rgba(10, 5, 40, .35); color: #fff; border: 1px solid rgba(255, 255, 255, .3); font: inherit; }
.time-l { min-width: 64px; font-size: 13px; opacity: .8; }
.big-input.start-input { width: auto; flex: 1; min-width: 220px; color-scheme: dark; } /* heure de départ */
.linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.linkrow .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.linkrow code { background: rgba(10, 5, 40, .4); border-radius: 8px; padding: 5px 10px; font-size: 13px; word-break: break-all; }
.row-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-btns.end { justify-content: flex-end; }
.adv summary { cursor: pointer; color: var(--ink-soft); font-size: 13px; }
.adv label, label.leg { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; }
.adv input, label.leg input { width: 80px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 5, 40, .35); color: #fff; padding: 6px 8px; }
.cat-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { border: 1px solid rgba(255, 255, 255, .3); border-radius: 22px; padding: 10px 22px; font: 400 15px Outfit, sans-serif;
  color: #fff; background: rgba(255, 255, 255, .05); cursor: pointer; transition: all .2s; }
.pick.on { background: linear-gradient(100deg, rgba(34, 211, 238, .6), rgba(124, 58, 237, .6)); border-color: transparent; box-shadow: 0 0 18px rgba(34, 211, 238, .35); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.crew { display: grid; grid-template-columns: 70px 1fr 150px 34px; gap: 8px; align-items: center; margin-bottom: 6px; }
.crew.head-row span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.crew input, .crew select { border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 5, 40, .35); color: #fff;
  padding: 9px 10px; font: 300 15px Outfit, sans-serif; min-width: 0; }
.crew select option { background: #241052; }
.crew .bib { border-left: 5px solid var(--c); font-weight: 500; text-align: center; }
.crew .x { border: 0; background: rgba(255, 255, 255, .08); color: #fff; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tag-pc { font-size: 13px; }
.err { color: #ff9ab8; font-size: 13px; min-height: 0; }
@media (max-width: 760px) {
  .two { grid-template-columns: 1fr; }
  .crew { grid-template-columns: 56px 1fr 34px; }
  .crew select { grid-column: 2 / 3; }
}

/* fenêtre (mot de passe, QR codes) */
.modal-wrap { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(8, 4, 30, .55);
  backdrop-filter: blur(4px); animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: min(460px, 100%); padding: 22px; display: flex; flex-direction: column; gap: 14px; animation: rise .45s cubic-bezier(.2, .8, .2, 1);
  max-height: calc(100vh - 40px); overflow: auto; }
.modal.wide { width: min(1000px, 100%); }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.qr { background: #fff; color: #111; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.qr svg { width: 170px; height: 170px; }
.qr b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.qr span { font-size: 12px; color: #444; }
.qr small { font-size: 10px; color: #666; }
@media print {
  body.landing > *:not(#modal) { display: none !important; }
  .modal-wrap { position: static; background: none; backdrop-filter: none; padding: 0; }
  .modal { box-shadow: none; border: 0; background: none; max-height: none; width: 100%; }
  .modal .sec-head .row-btns { display: none; }
  .modal h3 { color: #000; }
  .qr { border: 1px solid #999; break-inside: avoid; }
}

/* partage spectateurs : QR code + ouvrir / copier */
.share { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qr-mini { width: 112px; height: 112px; background: #fff; border-radius: 12px; padding: 6px; flex: none; }
.qr-mini svg { width: 100%; height: 100%; display: block; }
.share .help { margin-bottom: 8px; }
