@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

/* Le thème est posé par js/theme.js avant le premier rendu. */
:root {
  color-scheme: light;
  --brand: var(--accent);
  --brand-ink: var(--accent-ink);
  --brand-soft: var(--accent-soft);
  --on-brand: #fff;
  --hunter: var(--brand);
  --hunter-ink: var(--brand-ink);
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .2);
  --pane: rgba(255, 255, 255, .55);
  --pane-edge: rgba(255, 255, 255, .95);
  --thumb: #fff;
  --sep: rgba(60, 60, 67, .12);
  --link: var(--accent-ink);
  --line: rgba(0, 0, 0, .05);
  --edge: rgba(255, 255, 255, .95);
  --glass: rgba(255, 255, 255, .58);
  --glass-thick: rgba(255, 255, 255, .72);
  --shadow: rgba(0, 0, 0, .08);
  --veil: rgba(245, 245, 247, .6);
  /* Nouvelle partie et Salon : voile sur la photo floutée, cartes de verre posées dessus */
  --tint: rgba(245, 245, 247, .22);
  --card-glass: rgba(255, 255, 255, .7);
  --tray: #d6d4cf;
  --tray-glass: rgba(214, 212, 207, .78);
  --key: #fff;
  /* Teintes de carte reprises de Plans : verdure et eau sont des repères, pas une identité. */
  --map-land: #f3f1ec;
  --map-block: #e9e6df;
  --map-park: #cfe8bf;
  --map-water: #a9d6f5;
  --map-shore: #93c6ec;
  --map-road: #fff;
  --map-major: #fbe3a1;
  --map-casing: #dcd7cc;
  --map-path: #bfb8aa;
  --map-label: #6b675f;
  /* Plan de l'accueil, de jour : un bourg clair au milieu des champs, de l'eau bien bleue, des arbres bien verts */
  --il-rim: rgba(255, 255, 255, .9);
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --kb: 0px;
  /* Mêmes formes partout : les feuilles flottent à .5rem des bords et, en bas, leurs coins suivent ceux de l'écran */
  --r-sheet: 2.5rem;
  --r-card: 1.375rem;
  --corner: max(2.25rem, calc(var(--bottom) * 1.6));
  --sheet-gap: max(.5rem, calc(var(--bottom) - 1.625rem));
  --sheet-pad: max(1rem, calc(var(--bottom) - .5rem));
  /* La police du téléphone d'abord (SF Pro sur iPhone), Inter ailleurs. */
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --danger: #ff5c50;
  --fill: rgba(255, 255, 255, .09);
  --fill-2: rgba(255, 255, 255, .18);
  --pane: rgba(255, 255, 255, .08);
  --pane-edge: rgba(255, 255, 255, .16);
  --thumb: #5a5b61;
  --sep: rgba(255, 255, 255, .11);
  --link: var(--accent-ink);
  --line: rgba(255, 255, 255, .08);
  --edge: rgba(255, 255, 255, .14);
  --shadow: rgba(0, 0, 0, .45);
  --tint: rgba(0, 0, 0, .46);
  --card-glass: rgba(36, 36, 40, .62);
  --tray: #1b1c20;
  --tray-glass: rgba(27, 28, 32, .78);
  --key: #46474d;
  --map-land: #242527;
  --map-block: #2c2d30;
  --map-park: #27402f;
  --map-water: #1a3347;
  --map-shore: #24465f;
  --map-road: #47494d;
  --map-major: #6a6558;
  --map-casing: #1b1c1e;
  --map-path: #5a5c61;
  --map-label: #a8a49b;
  /* Le même plan, de nuit */
  --il-rim: rgba(255, 255, 255, .22);
}

/* Échelle de texte : interlettrage resserré à mesure que la taille grandit (tables d'Inter). */
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
/* D1 (audit 2026-11-11) : 1 rem = 16 px, comme partout ; seul le texte courant passe à 17 px, la taille d'iOS. */
html { font-size: 100%; }
html, body { height: 100%; background: var(--outer); color: var(--ink); font: 400 1rem/1.4 var(--ui); letter-spacing: -.013em; overflow: hidden; overscroll-behavior: none; touch-action: pan-x pan-y; -webkit-font-smoothing: antialiased; }
body { font-size: 1.0625rem; }
@media (display-mode: standalone) { html { min-height: min(100lvh, calc(100% + env(safe-area-inset-top))); } }
button, input { font: inherit; letter-spacing: inherit; color: inherit; border: 0; background: none; }
a.btn { color: inherit; text-decoration: none; }
/* Pas de zoom dans l'appli : ni double appui ni pincement, sauf sur la carte qui gère ses doigts elle-même. */
a, label, input, select, textarea, [role="button"] { touch-action: manipulation; }
/* Rien ne se sélectionne ni ne s'ouvre à l'appui long (0.9.34), sauf les champs et les pages de doc. */
html:not(.doc-page) body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
button { cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button:focus, .modal:focus { outline: none; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
svg { display: block; }

#app { position: relative; width: 100%; max-width: 480px; height: 100dvh; margin: 0 auto; overflow: hidden; overflow: clip; background: var(--bg); isolation: isolate; }

/* Écrans : on entre et on sort par le même côté */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; will-change: transform; }
/* L'écran qui passe dessous s'assombrit par un voile en fondu (rendu par le système), pas par un filtre sur toute la page. */
.screen::after { content: ""; position: absolute; inset: 0; z-index: 100; background: #000; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.screen.from-right, .screen.to-right { transform: translateX(100%); }
.screen.from-left, .screen.to-left { transform: translateX(-26%); }
.screen.from-left::after, .screen.to-left::after { opacity: .2; }
.screen.fade { opacity: 0; transform: scale(1.03); }
/* Image figée de l'écran d'avant, montrée seulement pendant un glissement de retour */
.screen.shelf { visibility: hidden; transform: translateX(-26%); pointer-events: none; }
.screen.shelf.peek { visibility: visible; }
.screen.shelf::after { opacity: calc(.2 * (1 - var(--p, 0))); transition: none; }

/* Verre : flou, lumière sur l'arête haute. Il ne sert qu'à ce qui flotte ; un verre posé sur un verre devient un simple aplat. */
.glass { position: relative; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 .5px var(--line), 0 4px 16px var(--shadow); }
.glass.thick { background: var(--glass-thick); -webkit-backdrop-filter: blur(32px) saturate(120%); backdrop-filter: blur(32px) saturate(120%); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 .5px var(--line), 0 -4px 28px var(--shadow); }
.glass .glass { background: var(--fill); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, var(--il-rim), transparent 32%, transparent 62%, var(--il-rim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; }
.glass .glass::after { display: none; }

.press { transition: opacity .25s ease; }
/* Comme sur iPhone : rien ne bouge ni ne rapetisse ; l'effet n'arrive qu'après un vrai appui (0,12 s),
   jamais pendant un défilement (iOS lâche l'appui dès que la page défile). */
.press:active { opacity: .55; transition: opacity .08s ease .12s; }

[hidden] { display: none !important; }
/* Présent pour le trousseau (identifiant d'un changement de mot de passe), invisible et hors d'atteinte */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; opacity: 0; pointer-events: none; }
.btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 3rem; padding: 0 1.25rem; font-weight: 600; font-size: 1rem; letter-spacing: -.02em; }
.btn.plain { min-height: 2.75rem; color: var(--ink-2); font-weight: 500; }
.btn.danger { color: var(--danger); }
.btn.primary.danger { color: #fff; }
.link { padding: .25rem; margin: -.25rem; color: var(--link); font-weight: 600; }
/* Zone à toucher agrandie sans bouger le texte (revue du 2026-11-11 : 28 px de haut, 15 px dans les mentions). */
.link { position: relative; }
.link::after { content: ""; position: absolute; inset: -.5rem -.25rem; }
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn[disabled] { opacity: .4; }
/* Salon en attente : un état, pas un bouton grisé (illisible en sombre à 40 %). */
.btn.wait { margin: 0; color: var(--ink-2); background: var(--fill); cursor: default; }
/* Échange lent avec le serveur : le texte s'efface sous une petite roue, le bouton ne reprend plus d'appui */
.btn[aria-busy="true"] { position: relative; pointer-events: none; -webkit-text-fill-color: transparent; }
.btn[aria-busy="true"] > svg { opacity: 0; }
.btn[aria-busy="true"]::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1.15rem; height: 1.15rem; margin: -.575rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.round { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; } /* 44 pt (I14) */
.round svg { width: 1.125rem; height: 1.125rem; }

/* Carte */
.map { position: absolute; inset: 0; overflow: hidden; background: var(--map-land); touch-action: none; cursor: grab; }
.map.static { pointer-events: none; }
.map.static .maplibregl-ctrl { pointer-events: auto; }
/* Vraie carte (MapLibre) : la feuille de style de MapLibre arrive après celle-ci, d'où les sélecteurs à deux classes. */
.map > .gl { position: absolute; inset: 0; }
/* Carte Apple de l'appli : l'élément défile d'une hauteur connue pour que l'appli y range la carte (basemap.js) */
.map.native { overflow: scroll; overscroll-behavior: none; scrollbar-width: none; touch-action: auto; cursor: auto; }
.map.native::-webkit-scrollbar { display: none; }
.map-spacer { width: 1px; pointer-events: none; }
.map > .snap, .map > .routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.map > .routes { overflow: visible; }
.routes .route { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.routes .route.runner { stroke-dasharray: 7 4.9; stroke-linecap: butt; }
.routes .zone { fill: var(--ink); fill-opacity: .05; stroke: var(--ink); stroke-opacity: .7; stroke-width: 2.2; stroke-dasharray: 6.6 4.4; }
/* Sur la photo satellite (0.9.34) : blanc ourlé de sombre, comme la zone sur la carte du jeu */
.map.photo .routes .route { stroke: #fff; filter: drop-shadow(0 0 1.5px rgb(0 0 0 / .7)); }
.map.photo .routes .zone { fill: #fff; fill-opacity: .06; stroke: #fff; stroke-opacity: .9; }
.map > .pins { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.map .maplibregl-ctrl-bottom-right { bottom: calc(var(--sheet-gap) + var(--sheet-pad) + 5.6rem); }
.stage .map .maplibregl-ctrl-bottom-right { bottom: 4.4rem; }
.map > .gl .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 24px; border-radius: 12px; color: var(--ink-2); background: var(--glass-thick); font: 400 .68rem/1.4 var(--ui); }
.map > .gl .maplibregl-ctrl-attrib a { color: inherit; }
.map > .gl .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button { background-color: transparent; }
:root[data-theme="dark"] .map > .gl .maplibregl-ctrl-attrib-button { filter: invert(1); }
.m-land { fill: var(--map-land); }
.m-block { fill: var(--map-block); }
.m-park { fill: var(--map-park); }
.m-water, .m-shore, .m-road, .m-major { fill: none; }
.m-water { stroke: var(--map-water); }
.m-shore { stroke: var(--map-shore); }
.m-road { stroke: var(--map-road); }
.m-major { stroke: var(--map-major); }

/* Pions : le chasseur est plein, le fuyard est cerclé, la dernière position connue est en pointillé */
.pin { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.pin b { position: absolute; left: -1.05rem; top: -1.05rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-size: .78rem; font-weight: 700; letter-spacing: 0; color: var(--on-solid); background: var(--solid); box-shadow: 0 0 0 2.5px var(--surface), 0 6px 14px -4px rgba(0, 0, 0, .4); }
.pin.ghost b { background: var(--glass-thick); border: 2px dashed var(--ink-2); color: var(--ink-2); box-shadow: none; }
.pin i { position: absolute; left: 50%; top: 1.4rem; transform: translateX(-50%); padding: .08rem .45rem; border-radius: .6rem; font: 600 .7rem/1.4 var(--ui); font-style: normal; white-space: nowrap; color: var(--ink); background: var(--glass-thick); }
.pin.me { z-index: 1; }
.pin.me::before { content: ""; position: absolute; left: -1.6rem; top: -1.6rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 2px solid var(--ink); }
.pin .ring { position: absolute; left: -1.05rem; top: -1.05rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; }
.pin i { transition: opacity .2s; }
.pin.quiet i { opacity: 0; }
.pin.pinged .ring { animation: ring 1.5s ease-out 2; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(5); opacity: 0; } }

/* Accueil : le plan en plein écran, fixe, et une feuille de verre qui flotte en bas, décollée des bords */
.home, .welcome { overflow-y: auto; overscroll-behavior: contain; }
.hero { position: sticky; top: 0; flex: none; height: 100dvh; margin-bottom: calc(15rem - 100dvh); overflow: hidden; }
/* Une vraie photo prise au drone, fondue dans le fond vers le bas, sous la feuille ; les pions et le haut de l'écran restent par-dessus */
.scene { position: absolute; inset: 0; overflow: hidden; background: var(--map-land); pointer-events: none; }
.scene .photo { position: absolute; inset: 0 0 auto; width: 100%; height: 72%; object-fit: cover; object-position: 30% 50%; opacity: 0; transition: opacity .6s ease;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.scene.placed .photo { opacity: 1; }
:root[data-theme="dark"] .scene .photo { filter: brightness(.62) saturate(.85); }
.sky { position: absolute; z-index: 1; inset: 0 0 auto; height: calc(var(--top) + 5rem); background: linear-gradient(var(--map-land) 15%, transparent); pointer-events: none; }
.mpin { position: absolute; z-index: 2; left: 0; top: 0; opacity: 0; transition: opacity .5s ease; }
.scene.placed .mpin { opacity: 1; }
.scene.nopins .mpin { opacity: 0; }
.mpin b { position: absolute; left: -1.125rem; top: -1.125rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: #1d1d1f; font: 700 .875rem/1 var(--ui); letter-spacing: 0;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 18px -6px rgba(0, 0, 0, .35); }
.mpin.h b { color: #fff; background: #1d1d1f; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 8px 18px -6px rgba(0, 0, 0, .45); }
.mpin span { position: absolute; left: 50%; top: 1.5rem; display: flex; gap: .3rem; padding: .25rem .55rem; border-radius: 1rem; transform: translateX(-50%); white-space: nowrap; color: var(--ink); font: 600 .75rem/1.2 var(--ui); }
.mpin em { font-style: normal; font-weight: 500; color: var(--ink-2); }
/* Le radar du chasseur, posé à plat sur le sol */
.mpin .sweep, .mpin .pulse { position: absolute; left: -4.5rem; top: -4.5rem; width: 9rem; height: 9rem; border-radius: 50%; }
.mpin .pulse { transform: scaleY(.56); background: radial-gradient(closest-side, rgba(255, 255, 255, .45), transparent); border: 1.5px solid rgba(255, 255, 255, .8); }
.mpin .sweep { background: conic-gradient(rgba(255, 255, 255, 0) 0 72%, rgba(255, 255, 255, .7)); transform: scaleY(.56) rotate(0); animation: sweep 3.4s linear infinite; }
@keyframes sweep { to { transform: scaleY(.56) rotate(360deg); } }
.hero-top { position: absolute; z-index: 2; top: calc(var(--top) + .75rem); left: 1rem; right: 1rem; display: flex; justify-content: flex-end; gap: .5rem; }
.chip-brand { display: flex; align-items: center; gap: .5rem; height: 2.5rem; margin-right: auto; padding: 0 .875rem 0 .3125rem; border-radius: 1.25rem; font-weight: 700; font-size: 1rem; letter-spacing: -.022em; }
.chip-brand .logo { width: 1.875rem; height: 1.875rem; }
/* Feuille posée à .5rem des bords, comme celles d'iOS : en bas, ses coins suivent ceux de l'écran */
.panel { position: relative; z-index: 1; flex: none; margin: auto .5rem var(--sheet-gap); padding: 1.25rem 1rem var(--sheet-pad); border-radius: var(--r-sheet) var(--r-sheet) var(--corner) var(--corner); }
.panel .grip { margin-bottom: .875rem; }
.kicker { margin: 0 .125rem .25rem; text-align: center; color: var(--ink-2); font-size: .8125rem; font-weight: 600; letter-spacing: -.012em; }
.display { text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: .875rem 0; padding: .5625rem 0; border-radius: 1.125rem; background: var(--fill); }
.facts div { display: flex; flex-direction: column; align-items: center; gap: .125rem; color: var(--ink-2); font-size: .6875rem; letter-spacing: .005em; }
.facts div + div { box-shadow: -.5px 0 0 var(--fill-2); }
.facts b { display: flex; align-items: center; gap: .3rem; color: var(--ink); font-size: .9375rem; font-weight: 700; letter-spacing: -.018em; }
.facts svg { width: .875rem; height: .875rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.btn + .tiles { margin-top: .625rem; }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem; min-height: 6.25rem; padding: .75rem .875rem .875rem; color: var(--ink); background: var(--pane); box-shadow: inset 0 1px 0 var(--pane-edge), inset 0 0 0 .5px var(--line), 0 10px 24px -16px var(--shadow); text-align: left; font-size: .9375rem; font-weight: 600; line-height: 1.2; letter-spacing: -.018em; }
.tile small { display: block; margin-top: .15rem; color: var(--ink-2); font-size: .75rem; font-weight: 500; letter-spacing: -.003em; }
.tile i { display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--fill); }
.tile svg { width: 1.0625rem; height: 1.0625rem; }
.tile.hunt i { color: var(--on-solid); background: var(--solid); }
.panel .sub { margin: .375rem .125rem 1.125rem; text-wrap: balance; color: var(--ink-2); font-size: .9375rem; line-height: 1.35; letter-spacing: -.01em; }
.panel .legal { margin-top: 1rem; }
.sect-f.ver { text-align: center; margin-top: 1.5rem; }
.logo { flex: none; width: 2.75rem; height: 2.75rem; }
.panel .actions { display: grid; gap: 1rem; }
.panel .sub[hidden] + .actions { margin-top: 1.125rem; }

/* Bienvenue : formulaire de compte, puis les autres façons d'entrer */
.auth .field { margin-bottom: .625rem; }
.auth .field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.auth .error { min-height: 1.25rem; margin: .125rem .25rem .5rem; color: var(--danger); font-size: .875rem; }
.auth .error:empty { min-height: 0; margin: 0; }
.pw { position: relative; }
.pw .field { padding-right: 3.25rem; }
.eye { position: absolute; top: .375rem; right: .375rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--ink-3); }
.eye svg { width: 1.25rem; height: 1.25rem; }
.eye[aria-pressed="true"] { color: var(--ink-2); }
/* Échelle resserrée : la feuille reste sous la moitié de l'écran et laisse voir la photo */
.welcome .panel { padding: 1.25rem .875rem max(.875rem, calc(var(--bottom) - .5rem)); }
.welcome .panel .sub { margin: .25rem .125rem .875rem; font-size: .875rem; }
.welcome .panel .sub:empty { display: none; }
.welcome .display { margin-bottom: .75rem; }
.welcome .display:has(+ .sub:not(:empty)) { margin-bottom: 0; }
.welcome .field { min-height: 2.75rem; margin-bottom: .5rem; padding: 0 1rem; font-size: 1rem; }
.welcome .pw .field { padding-right: 2.75rem; }
/* Code reçu par e-mail à l'inscription (audit I3) */
.modal .field.code { text-align: center; font-size: 1.5rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.modal .field.code::placeholder { font-size: 1rem; letter-spacing: normal; text-transform: none; }
.welcome .eye { top: .125rem; right: .125rem; }
.welcome .eye svg { width: 1.125rem; height: 1.125rem; }
.welcome .btn { min-height: 2.75rem; border-radius: var(--r-card); font-size: .9375rem; }
.welcome .or { margin: .5rem 0; font-size: .75rem; }
.welcome .forgot { margin-top: .5rem; font-size: .875rem; }
.welcome .swap { margin-top: .625rem; font-size: .875rem; }
/* E-mail et mot de passe d'un seul bloc, séparés d'un filet, comme les réglages d'iOS */
.pair { margin-bottom: .5rem; }
.welcome .pair .field { margin: 0; }
.pair > .field { border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: inset 0 -.5px 0 var(--sep); }
.welcome .pair .pw .field { border-radius: 0 0 var(--r-card) var(--r-card); }
.pair .field:focus { position: relative; z-index: 1; }
/* Apple et Google côte à côte, même taille : Apple garde la place de tête */
.duo { display: flex; gap: .5rem; }
.duo > * { flex: 1; min-width: 0; }
.duo [hidden] { display: none; }
/* Site : « Continuer avec Apple » et « Continuer avec Google » ne tiennent pas en demi-largeur, ils s'empilent */
.duo.col { flex-direction: column; align-items: center; }
.duo.col > * { flex: none; width: 100%; max-width: 400px; }
.welcome .legal { margin-top: .625rem; font-size: .6875rem; line-height: 1.4; }
.legal a { color: var(--link); font-weight: 500; text-decoration: none; }
.forgot { display: block; margin: .9rem auto 0; font-size: .9375rem; }
.forgot[hidden] { display: none; }
.or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--ink-3); font-size: .8125rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
/* Case du bouton « Continuer avec Google » du site, dans les fenêtres (confirmation, relier Google) */
.gsi { display: flex; justify-content: center; min-height: 2.75rem; }
.gsi > .btn { flex: 1; }
.gsi[hidden] { display: none; }
.swap { margin-top: .75rem; text-align: center; color: var(--ink-2); font-size: .9375rem; }
.legal { margin-top: 1rem; text-align: center; color: var(--ink-3); font-size: .75rem; line-height: 1.45; text-wrap: balance; }

/* Le plan : des aplats sans contour */

/* Barre du haut : vide au départ, elle prend le petit titre et le verre quand le grand titre passe dessous */
.bar { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; gap: .5rem; padding: calc(var(--top) + .5rem) 1rem .5rem; transition: background-color .25s, box-shadow .25s; }
.bar .title { grid-column: 2; overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; opacity: 0; transform: translateY(.3rem); transition: opacity .2s, transform .25s cubic-bezier(.22, 1, .36, 1); }
.bar.stuck { box-shadow: 0 .5px 0 var(--sep); }
.bar.stuck .title { opacity: 1; transform: none; }
.scroll { position: relative; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--top) + 3.75rem) 1rem 1.5rem; }
.large { text-wrap: balance; }
.lede { margin: -1rem .25rem 1.5rem; color: var(--ink-2); }
.foot { position: relative; padding: .75rem 1rem calc(var(--sheet-gap) + var(--sheet-pad)); } /* même hauteur que le panneau de l'accueil */

/* Listes groupées : un titre de section, une carte pleine, une note dessous */
.sect { position: relative; margin-bottom: 1.75rem; }
.sect-h, .sheet h3 { display: flex; gap: .4rem; line-height: 1.3; }
.sect-h span, .sheet h3 span { color: var(--ink-3); font-weight: 500; }
.sect-h span, .sheet h3 span { font-variant-numeric: tabular-nums; }
.sect-f { font-size: .8125rem; line-height: 1.38; letter-spacing: -.003em; color: var(--ink-2); }
.card { position: relative; overflow: hidden; background: var(--surface); }
.cell { position: relative; display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 2.75rem; padding: .7rem 1rem; text-align: left; }
.cell + .cell::before { content: ""; position: absolute; top: 0; right: 0; left: 1rem; border-top: .5px solid var(--sep); }
.cell .txt { flex: 1; min-width: 0; }
/* Ligne centrée au milieu d’écrans centrés : la marge de gauche équilibre la commande de droite */
.cell.mid .txt { text-wrap: balance; }
.cell small { display: block; margin-top: .1rem; font-size: .9375rem; line-height: 1.33; letter-spacing: -.009em; color: var(--ink-2); }
.cell > svg { flex: none; width: .9rem; height: .9rem; color: var(--ink-3); }
a.cell { color: inherit; text-decoration: none; }
button.cell, a.cell { transition: background-color .3s ease; }
button.cell:active, a.cell:active { background: var(--fill); opacity: 1; transition: background-color .1s ease .12s; }
.cell.on small { color: var(--ok); font-weight: 500; }

/* Sélecteur et interrupteur */
.seg { position: relative; display: flex; padding: .1875rem; border-radius: 1.25rem; background: var(--fill); }
.seg button { position: relative; z-index: 1; flex: 1; min-height: 2.25rem; border-radius: 1.0625rem; font-weight: 500; font-size: .9375rem; letter-spacing: -.009em; color: var(--ink-2); transition: color .2s; }
.seg button[aria-pressed="true"] { font-weight: 600; }
.seg .thumb { position: absolute; top: .1875rem; bottom: .1875rem; left: 0; border-radius: 1.0625rem; } /* placée et animée par un ressort (ui.js) */
.switch { position: relative; flex: none; width: 3.1875rem; height: 1.9375rem; border-radius: 1rem; background: var(--fill-2); transition: background .25s; }
.switch::after { content: ""; position: absolute; left: .125rem; top: .125rem; width: 1.6875rem; height: 1.6875rem; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .06); transition: transform .34s cubic-bezier(.3, 1.3, .5, 1); }
.switch[aria-checked="true"]::after { transform: translateX(1.25rem); }
.lock-note { display: flex; align-items: center; justify-content: center; gap: .375rem; margin-top: 0; }
.lock-note svg { width: .9375rem; height: .9375rem; flex: none; }

/* Nouvelle partie et Salon : la photo de l'accueil, floutée et voilée ; le verre des cartes n'a plus rien à flouter, un aplat translucide suffit */
.backdrop { position: absolute; inset: 0; overflow: hidden; background: var(--map-land); pointer-events: none; }
.backdrop img { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(16px) saturate(1.3); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: var(--tint); }
:root[data-theme="dark"] .backdrop img { filter: blur(16px) saturate(1.1) brightness(.8); }
.veiled .card, .veiled .mode, .veiled .team, .veiled .alert { background: var(--card-glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 .5px var(--line), 0 10px 28px -18px var(--shadow); }
.veiled .seg { background: var(--card-glass); box-shadow: inset 0 0 0 .5px var(--line); }
.veiled .sect-f { color: var(--ink); opacity: .72; }

/* Nouvelle partie : trois rythmes en grandes cartes, le choix est cerclé d'encre */
.modes { display: grid; gap: .625rem; margin-bottom: 1.25rem; }
.mode { position: relative; display: block; width: 100%; padding: .875rem 1rem 1rem; border-radius: var(--r-card); text-align: center; }
.mode-top { display: flex; align-items: center; justify-content: center; padding: 0 2rem; font-size: 1.1875rem; font-weight: 700; line-height: 1.25; letter-spacing: -.022em; }
.mode small { display: block; margin: .125rem 0 0; color: var(--ink-2); font-size: .875rem; line-height: 1.35; letter-spacing: -.006em; }
.tick { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: transparent; box-shadow: inset 0 0 0 1.5px var(--fill-2); transition: background-color .2s, color .2s; }
.tick svg { width: .875rem; height: .875rem; stroke-width: 2.6; }
.veiled .mode[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink), 0 12px 30px -18px var(--shadow); }
.mode[aria-pressed="true"] .tick { color: var(--on-solid); background: var(--solid); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: .3125rem; }
.mode .chips { justify-content: center; margin-top: .75rem; }
.mode .tick { position: absolute; top: .875rem; right: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .1875rem .5625rem; border-radius: 1rem; background: var(--fill); color: var(--ink); font: 500 .8125rem/1.4 var(--ui); letter-spacing: -.005em; white-space: nowrap; }
[data-custom] > svg { transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
[data-custom][aria-expanded="true"] > svg { transform: rotate(90deg); }

/* Rejoindre : le code dans quatre cases, un clavier AZERTY posé en bas comme celui du téléphone */
.slots { position: relative; display: flex; justify-content: center; gap: .625rem; margin: .5rem 0 1rem; }
.slots.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
.slots[aria-busy="true"] .slot { animation: slot-wait .8s ease-in-out infinite alternate; }
@keyframes slot-wait { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .slots[aria-busy="true"] .slot { animation: none; opacity: .6; } }
@keyframes shake { 20%, 60% { transform: translateX(-.5rem); } 40%, 80% { transform: translateX(.5rem); } }
.slot { display: grid; place-items: center; width: 3.75rem; height: 4.5rem; letter-spacing: 0; transition: box-shadow .2s; }
.veiled .slot { background: var(--card-glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 .5px var(--line), 0 10px 28px -18px var(--shadow); }
.veiled .lede { color: var(--ink); opacity: .72; }
.keys { position: relative; display: grid; gap: .6875rem; padding: .5rem .1875rem calc(var(--bottom) + .75rem); background: var(--tray); }
.keys .r { display: flex; justify-content: center; gap: .375rem; }
.key { flex: 0 0 calc((100% - 3.375rem) / 10); height: 2.75rem; border-radius: .5rem; background: var(--key); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); font-size: 1.375rem; letter-spacing: 0; transition: background-color .15s; }
.key:active { background: var(--fill-2); transition-duration: 0s; }
.key.del { flex-basis: calc((100% - 3.375rem) / 10 * 2 + .375rem); display: grid; place-items: center; }
.key svg { width: 1.4rem; height: 1.4rem; }
.veiled .keys { background: var(--tray-glass); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 .5px 0 var(--edge); }
.helper, .error { position: relative; min-height: 1.4rem; margin-bottom: 1rem; text-align: center; color: var(--ink-2); font-size: .9375rem; letter-spacing: -.009em; }

/* Salon : le code est la seule chose à transmettre, il prend la place, avec son QR */
.code-card { padding: 1rem 1rem 1rem; text-align: center; }
.code-h { color: var(--ink-2); font-size: .8125rem; font-weight: 600; letter-spacing: -.005em; }
.code-card .qr { width: 8.75rem; height: 8.75rem; margin: .5rem auto .25rem; padding: .5rem; border-radius: 1.125rem; }
.code-card .qr:empty { background: var(--fill); box-shadow: none; }
.rules { justify-content: center; width: 100%; margin-top: .75rem; padding: 0 .125rem; text-align: center; }
.veiled .rules .chip { background: var(--card-glass); box-shadow: inset 0 0 0 .5px var(--line); }
.rules .chip.strong { font-weight: 700; }
.rules .chip.more { color: var(--ink-2); }
.rules .chip svg { width: .8125rem; height: .8125rem; }
/* Les deux camps côte à côte : on touche la colonne d'en face pour y passer */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin-bottom: 1.25rem; }
.team { display: flex; flex-direction: column; min-width: 0; padding: .875rem .5rem .5rem; cursor: pointer; transition: box-shadow .2s; }
.veiled .team.mine { cursor: default; box-shadow: inset 0 0 0 2px var(--ink), 0 12px 30px -18px var(--shadow); }
.team-h { display: flex; margin-bottom: .75rem; }
.team-h span { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.team-list { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: .625rem 0; margin-bottom: .75rem; }
.team .empty { grid-column: 1 / -1; padding: 1rem 0; text-align: center; }
.mate { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3125rem; min-width: 0; padding: .125rem .125rem .25rem; border-radius: .875rem; }
.mate .avatar { width: 3rem; height: 3rem; }
/* Nom entier sur deux lignes, coupé à l'espace ou au tiret. Un mot plus large que la case (.hy, posé par rooms.js) se coupe
   entre deux syllabes avec un tiret, pas « Bartholom / é ». Pas de césure partout : Safari couperait « Zoe-Anas-tasia ». */
.mate .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden; text-align: center; line-height: 1.2; font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; }
.mate .name.hy { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.mate small { margin-top: -.3125rem; color: var(--ink-2); font-size: .6875rem; font-weight: 500; letter-spacing: 0; }
/* Point de position sur l'avatar : vert reçue, gris en attente, cerclé hors ligne */
.mate .dot { position: absolute; width: .75rem; height: .75rem; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 2px var(--surface); }
.mate .dot.ok { background: var(--ok); }
.mate .dot.away { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-3), 0 0 0 2px var(--surface); }
.team-f { display: flex; align-items: center; justify-content: center; gap: .3rem; min-height: 2.5rem; border-radius: 1.125rem; color: var(--ink-2); font-size: .875rem; font-weight: 600; letter-spacing: -.01em; }
.team-f svg { width: .9375rem; height: .9375rem; stroke-width: 2.6; }
.team-f.btn { padding: 0 .5rem; color: var(--ink); background: var(--fill); }
/* Bandeau d'état en tête du salon ; rouge et avec un bouton quand la position est refusée */
.alert { display: flex; align-items: center; gap: .75rem; margin: -.75rem 0 1.25rem; padding: .75rem 1rem; border-radius: var(--r-card); }
.alert .notice { flex: 1; margin: 0; color: var(--ink-2); font-size: .875rem; font-weight: 500; }
.alert.bad .notice { color: var(--ink); font-weight: 600; }
.alert.bad::before { content: ""; flex: none; width: .625rem; height: .625rem; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 20%, transparent); }
.alert .btn { flex: none; width: auto; min-height: 2.25rem; padding: 0 .875rem; border-radius: 1.125rem; color: var(--on-solid); background: var(--solid); font-size: .875rem; }
.code-card .code { display: block; margin: 0 auto; padding: 0 .75rem 0 .83rem; border-radius: 1rem; color: inherit; font: 700 3.5rem/1.1 var(--ui); letter-spacing: .08em; -webkit-user-select: none; user-select: none; transition: background-color .15s ease; }
.code-card .code:active { background: var(--fill); }
.code-card p { margin: .25rem 0 1rem; color: var(--ink-2); font-size: .9375rem; letter-spacing: -.009em; }
.code-card .btn { min-height: 2.75rem; background: var(--fill); font-size: .9375rem; }
.avatar { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-size: .78rem; font-weight: 700; letter-spacing: 0; color: var(--ink); background: var(--fill-2); }
.avatar.hunter { color: var(--on-solid); background: var(--solid); }
.empty { padding: .8rem 1rem; color: var(--ink-3); font-size: .9375rem; }
.tag { flex: none; padding: .1rem .5rem; border-radius: .7rem; font: 500 .75rem/1.45 var(--ui); font-style: normal; letter-spacing: 0; color: var(--ink-2); background: var(--fill); }
.tag.me { color: var(--ink); background: var(--fill-2); font-weight: 600; }
/* 0.9.41 : badge du mode développeur, à côté du nom */
.tag.dev { color: #fff; background: #5856d6; font: 700 .625rem/1.6 var(--ui); letter-spacing: .06em; padding: 0 .4rem; border-radius: .35rem; }
.mate .tag.dev { margin-top: -.125rem; }
.ot-steps { display: grid; gap: .6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.ot-steps li { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; letter-spacing: -.009em; }
.ot-steps b { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: var(--on-solid); background: var(--solid); font-size: .8125rem; font-weight: 600; }
.modal .ot-state { margin-bottom: 1rem; font-size: .875rem; }
.ot-state.on { color: var(--ok); font-weight: 500; }

/* Joueurs : même ligne dans le salon, la feuille et la fin */
.player { position: relative; display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.25rem; padding: .5rem 0; text-align: left; font-weight: 500; }
.card .player { padding: .5rem 1rem; }
.player + .player::before { content: ""; position: absolute; top: 0; right: 0; left: 2.85rem; border-top: .5px solid var(--sep); }
.card .player + .player::before { left: 3.85rem; }
.player span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.player span small { display: block; color: var(--ink-2); font-size: .8125rem; font-weight: 400; line-height: 1.3; letter-spacing: -.003em; }
.player strong { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Fin de partie : joueur à ouvrir et bouton Ajouter au bout de la ligne */
.player .who { display: flex; flex: 1; align-items: center; gap: .75rem; min-width: 0; margin: -.5rem 0; padding: .5rem 0; text-align: left; color: inherit; font: inherit; }
.player .add { display: flex; flex: none; min-width: 0; }
.player .add:empty { display: none; }
button.player { transition: background-color .3s ease; }
button.player:active { background: var(--fill); opacity: 1; transition: background-color .1s ease .12s; }

/* Compte à rebours : l'anneau se vide avec l'avance */
.head-start { align-items: center; justify-content: center; text-align: center; padding: 1.5rem; background: var(--bg); }
.head-start h1 { position: relative; }
.dial-clock { position: relative; display: grid; place-items: center; width: min(76vw, 18rem); aspect-ratio: 1; margin: 2rem 0; }
.dial-clock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-clock circle { fill: none; stroke-width: 1.8; }
.dial-clock .track { stroke: var(--fill-2); }
.dial-clock::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 .5px var(--line), 0 24px 48px -28px var(--shadow); }
.dial-clock .prog { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1s linear; }
.clock { position: relative; font-size: min(16vw, 4.25rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.head-start p { position: relative; max-width: 18rem; color: var(--ink-2); text-wrap: balance; }
.head-start h1 + p { margin-top: .5rem; }
.head-start p + .btn { margin-top: 2rem; max-width: 20rem; }
.head-start .menu { position: absolute; z-index: 2; top: calc(var(--top) + .5rem); right: 1rem; }
.head-start .role { display: inline-flex; align-items: center; gap: .4375rem; margin-bottom: .875rem; padding: .3125rem .75rem .3125rem .5rem; border-radius: 1rem; color: var(--ink); box-shadow: inset 0 0 0 .5px var(--line); font-size: .875rem; font-weight: 600; letter-spacing: -.01em; }
.role i { width: .875rem; height: .875rem; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.role.hunter i { background: var(--solid); box-shadow: none; }
.veiled.head-start p:not(.role) { color: var(--ink); opacity: .72; }

/* Jeu */
.hud { position: absolute; z-index: 5; left: .75rem; right: .75rem; top: calc(var(--top) + .5rem); display: flex; gap: .5rem; align-items: stretch; }
.hud .timers { flex: 1; display: flex; align-items: center; justify-content: space-around; }
.timers div { flex: 1; line-height: 1.15; text-align: center; }
.timers strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Écran de 320 px : « En direct » tient sur une ligne. */
.timers .soon strong { display: inline-block; border-radius: .45rem; }

.compass-view { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--top) + max(8.6rem, 5.5rem + var(--notice-h, 0px))); }
.compass-view .veil { position: absolute; inset: 0; background: var(--veil); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* Sur un écran court (iPhone SE), la boussole rétrécit pour laisser sous elle la ligne des fuyards et « Activer la boussole » au-dessus de la feuille. */
.compass { position: relative; width: min(84vw, 21.5rem, 46dvh, 100dvh - var(--top) - max(8.6rem, 5.5rem + var(--notice-h, 0px)) - var(--sheet-gap) - var(--sheet-pad) - 12.2rem); aspect-ratio: 1; border-radius: 50%; color: var(--ink); container-type: inline-size; }
.compass .center { position: absolute; inset: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; text-align: center; }
.compass .center strong { line-height: 1; font-variant-numeric: tabular-nums; }
.compass .center span { font-size: .8125rem; color: var(--ink-2); line-height: 1.3; letter-spacing: -.003em; margin-top: .3rem; max-width: 7.2rem; }
.threat { position: relative; margin-top: 1.25rem; font-weight: 500; color: var(--ink-2); text-align: center; }
.pill { display: flex; flex: none; align-items: center; gap: .4rem; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 1.375rem; font-weight: 600; font-size: .9375rem; }

/* Feuille à crans */
/* Le cadre coupe la feuille au-dessus du bas de l'écran, avec les coins de l'écran ; la feuille glisse dedans */
.sheet-wrap { position: absolute; z-index: 6; inset: 0 .5rem var(--sheet-gap); border-radius: 0 0 var(--corner) var(--corner); overflow: hidden; pointer-events: none; } /* pas de clip-path : il couperait le flou du verre */
.sheet { position: absolute; left: 0; right: 0; top: 0; height: 100%; padding: .5rem 1rem var(--sheet-pad); border-radius: var(--r-sheet) var(--r-sheet) var(--corner) var(--corner); pointer-events: auto; will-change: transform; touch-action: none; }
.grip { width: 2.25rem; height: .3125rem; margin: 0 auto .75rem; border-radius: 1rem; background: var(--fill-2); }
.quick { display: flex; gap: .5rem; margin-bottom: 1rem; }
.quick .btn { min-height: 3.25rem; }
.quick .round { width: 3.25rem; height: 3.25rem; }
.north { position: absolute; z-index: 5; right: .75rem; top: calc(var(--top) + 5rem); width: 2.75rem; height: 2.75rem; animation: north-in .25s cubic-bezier(.22, 1, .36, 1); }
.north[hidden] { display: none; }
.notice:not([hidden]) ~ .north { top: calc(var(--top) + 8.4rem); }
.north svg { width: 1.6rem; height: 1.6rem; transform: rotate(var(--turn, 0deg)); }
@keyframes north-in { from { opacity: 0; transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) { .north { animation: none; } }
.sheet h3:first-child { margin-top: .25rem; }
.sheet-list { max-height: calc(78dvh - 6.6rem); overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; opacity: var(--open, 1); transition: opacity .2s; }
.sheet[data-shut] .sheet-list { pointer-events: none; }
.power { display: flex; align-items: center; width: 100%; margin: .4rem 0 .25rem; padding: .8rem 1rem; border-radius: var(--r-card); text-align: left; background: var(--fill); }
.power div { flex: 1; }
.power strong { display: block; font-weight: 600; }
.power small { color: var(--ink-2); font-size: .875rem; }
.power em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.power[disabled] { opacity: .45; }

/* Vague de ping */
.wave { position: absolute; z-index: 4; left: 50%; top: 42%; width: 120vmax; height: 120vmax; margin: -60vmax; border-radius: 50%; border: 2px solid var(--ink); pointer-events: none; animation: wave 1.2s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes wave { from { transform: scale(.02); opacity: .7; } to { transform: scale(1); opacity: 0; } }
/* Capturé : plein écran nuit (le plein bleu faisait trop « gamin », choix de Tom le 2026-11-14), la suite en jaune. */
.caught-card { position: fixed; inset: 0; z-index: 950; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: 1.5rem; background: radial-gradient(90% 55% at 50% 45%, #1a2252 0%, #0b0d14 70%); color: #fff; text-align: center; animation: caught-in .28s cubic-bezier(.2, .8, .3, 1) both, caught-out .3s ease 2.5s forwards; }
.caught-card b { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: min(20vw, 6rem); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.caught-card span { font-size: 1.25rem; font-weight: 500; color: rgba(255, 255, 255, .62); }
.caught-card em { margin-top: 2rem; color: var(--runner); font-style: normal; font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.caught-card em::after { content: " →"; }
@keyframes caught-in { from { opacity: 0; transform: scale(1.06); } }
@keyframes caught-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caught-card { animation: caught-out .3s ease 2.5s forwards; } }
.toast { position: absolute; z-index: 9; left: 1rem; right: 1rem; top: calc(var(--top) + 4.75rem); display: flex; align-items: center; transform-origin: top center; }
.toast span { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink); }
@keyframes drop { from { opacity: 0; transform: translateY(-1.4rem) scale(.9); filter: blur(6px); } }

/* Feuilles modales */
.scrim { position: absolute; z-index: 20; inset: 0; opacity: 0; transition: opacity .3s; }
.scrim.in { opacity: 1; }
.modal { --corner: max(2.25rem, calc(var(--bottom) * 1.6 - var(--kb) * 10)); position: absolute; z-index: 21; padding: 1.5rem 1.25rem max(1rem, calc(var(--bottom) - .5rem - var(--kb) * 10)); transform: translateY(115%); transition: transform .46s cubic-bezier(.22, 1.12, .36, 1); }
.modal.in { transform: none; }
/* Clavier ouvert : la fenêtre ne passe jamais sous l'heure et défile si elle est trop haute (0.9.26) */
.modal { max-height: calc(100dvh - var(--kb, 0px) - var(--top) - 1rem); overflow-y: auto; overscroll-behavior: contain; }
/* 0.9.41 : pas de barre de défilement qui mange le coin arrondi, et une poignée qui dit qu'on peut glisser la fenêtre vers le bas. */
.modal { scrollbar-width: none; }
.modal::-webkit-scrollbar { display: none; }
.modal::before { content: ""; position: absolute; top: .5rem; left: 50%; width: 2.25rem; height: .3125rem; margin-left: -1.125rem; border-radius: 99px; background: var(--ink-3); opacity: .45; pointer-events: none; }
html[data-kb] .modal { padding-top: 1.125rem; }
html[data-kb] .modal p { margin-bottom: .875rem; }
.modal h2 { font-size: 1.375rem; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; margin-bottom: .4rem; text-align: left; }
.modal p { color: var(--ink-2); text-align: left; text-wrap: pretty; font-size: .9375rem; letter-spacing: -.009em; margin-bottom: 1.25rem; }
.reasons { margin-bottom: .75rem; border-radius: var(--r-card); background: var(--fill); overflow: hidden; }
.reasons :is(button, a) { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.875rem; padding: .5rem 1rem; text-align: left; font-size: 1.0625rem; letter-spacing: -.013em; color: var(--ink); }
.reasons :is(button, a) + :is(button, a) { box-shadow: inset 0 .5px 0 var(--sep); }
.reasons button svg { width: 1.125rem; height: 1.125rem; flex: none; color: var(--brand); visibility: hidden; }
.reasons button[aria-checked="true"] { font-weight: 600; }
.reasons button[aria-checked="true"] svg { visibility: visible; }
.modal .tips { margin: .25rem 0 1.25rem; padding-left: 1.125rem; color: var(--ink-2); font-size: .9375rem; line-height: 1.4; }
.modal .tips li + li { margin-top: .5rem; }
.modal .hint { margin: -.25rem 0 .75rem; font-weight: 600; color: var(--danger); }
textarea.field.note { min-height: 5.5rem; padding: .875rem 1rem; line-height: 1.35; resize: none; }
.checkline { cursor: pointer; display: flex; align-items: center; gap: .625rem; min-height: 2.75rem; margin-bottom: .5rem; font-size: .9375rem; color: var(--ink); }
/* Case dessinée (audit D9) : ronde comme les coches d'iOS, cobalt une fois cochée. */
.checkline input { -webkit-appearance: none; appearance: none; flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); background: transparent; transition: background-color .15s, box-shadow .15s; }
.checkline input::after { content: ""; width: .375rem; height: .7rem; margin-top: -.15rem; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(0); transition: transform .15s; }
.checkline input:checked { background: var(--accent); box-shadow: none; }
.checkline input:checked::after { transform: rotate(45deg) scale(1); }
.checkline input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal .seg { margin-bottom: 1.25rem; }
.modal .stack { display: grid; gap: .5rem; }
.modal a.btn { text-decoration: none; }
.modal h2 + .stack { margin-top: 1.25rem; }
.modal .error { min-height: 1.4rem; margin-bottom: .6rem; text-align: left; color: var(--danger); }
.modal .error:empty { min-height: 0; margin: 0; } /* pas de vide réservé tant qu'il n'y a pas d'erreur */
.stack .btn.plain { margin-top: -.125rem; }
.qr { width: 13.5rem; height: 13.5rem; margin: .25rem auto 1rem; padding: .8rem; border-radius: 1.5rem; background: #fff; box-shadow: 0 0 0 .5px var(--line); }
.qr svg { width: 100%; height: 100%; }
.qr[hidden] { display: none; }
.scanner { position: relative; height: 15rem; margin-bottom: 1rem; border-radius: 1.5rem; overflow: hidden; background: radial-gradient(circle at 50% 30%, #3a3a3c, #0d0d0e); }
.scanner::before { content: ""; position: absolute; inset: 2.1rem 4.8rem; border-radius: 1.2rem; box-shadow: 0 0 0 2px #fff, 0 0 0 999px rgba(0, 0, 0, .45); }
.scanner::after { content: ""; position: absolute; left: 4.8rem; right: 4.8rem; top: 2.1rem; height: 2px; background: #fff; animation: scan 1.7s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(10.6rem); } }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Caméra d'iOS (build 12) : rangée dans cette case qui défile d'une hauteur connue, sous le cadre de visée. */
.scan-native { position: absolute; inset: 0; overflow: scroll; overscroll-behavior: none; scrollbar-width: none; }
.scan-native::-webkit-scrollbar { display: none; }
.scanner::before, .scanner::after { z-index: 1; }
.scanner:not(.live)::after { display: none; }
.scanner span { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .75); font-size: .875rem; }
.scanner.live span { display: none; }
.field { display: block; width: 100%; min-height: 3.25rem; margin-bottom: .75rem; padding: 0 1rem; border-radius: var(--r-card); background: var(--fill); color: var(--ink); font: 400 1.0625rem/1.2 var(--ui); letter-spacing: -.013em; }
.field::placeholder { color: var(--ink-3); }
.flabel { display: block; }
.flabel > span { display: block; margin: 0 .25rem .3125rem; color: var(--ink-2); font-size: .8125rem; font-weight: 600; letter-spacing: -.003em; }
/* Dans une fenêtre, tout part de la gauche comme le reste de l'appli (0.9.26) ; le code et le QR restent centrés */
.modal .field { text-align: left; }
.field.code { text-align: center; font-size: 1.5rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.modal .catch-key { text-align: center; margin-bottom: 1.25rem; color: var(--ink); font-size: 2rem; font-weight: 700; letter-spacing: .14em; padding-left: .14em; }

/* Fin de partie */
/* Tout l'écran défile (0.9.28) : la carte part vers le haut avec le reste au lieu de garder la moitié de l'écran.
   Le haut s'efface sous l'heure et la batterie. */
.screen.end { overflow-y: auto; overscroll-behavior-y: contain; }
.end::before { content: ""; position: sticky; top: 0; z-index: 5; display: block; flex: none; height: var(--top); margin-bottom: calc(-1 * var(--top)); background: linear-gradient(180deg, var(--bg) 55%, transparent); pointer-events: none; }
.end .stage { position: relative; flex: none; height: 48%; margin: calc(var(--top) + .5rem) .5rem 0; border-radius: var(--r-sheet); overflow: hidden; clip-path: inset(0 round var(--r-sheet)); isolation: isolate; }
.end .stage::after { content: ""; position: absolute; z-index: 4; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px var(--line), inset 0 1px 0 var(--edge); pointer-events: none; }
.end .body { position: relative; flex: none; padding: 1.5rem 1rem .5rem; }
.veiled .sub { color: var(--ink); opacity: .72; }
.end .large { margin-bottom: .4rem; }
.end .sub { text-wrap: balance; color: var(--ink-2); }
.scrub { position: absolute; z-index: 3; left: .5rem; right: .5rem; bottom: .5rem; display: flex; align-items: center; gap: .6rem; padding: .3rem 1rem .3rem .3rem; border-radius: 1.6rem; }
/* I1 : l'image de la carte d'Apple porte sa mention en bas à gauche ; la barre passe au-dessus. */
.stage:has(.snap:not([hidden])) .scrub { bottom: 2.1rem; }
.scrub .round { width: 2.75rem; height: 2.75rem; }
.scrub input { flex: 1; min-width: 0; accent-color: var(--ink); height: 2rem; touch-action: none; }
.scrub time { font-size: .875rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; min-width: 2.7rem; white-space: nowrap; text-align: right; }
.end .stack { display: grid; gap: .5rem; padding-bottom: .75rem; }
.end .wipe { padding-bottom: calc(var(--bottom) + .75rem); text-align: center; color: var(--ink); opacity: .6; font-size: .8125rem; }

/* Bandeaux d'état et notes */
.notice { position: relative; margin: .6rem 1rem 0; text-align: center; text-wrap: balance; color: var(--ink-2); font-size: .8125rem; line-height: 1.38; }
.notice[hidden] { display: none; }
.head-start .notice { margin: 1rem 0 0; text-align: center; }
.hud ~ .notice { position: absolute; z-index: 5; left: .75rem; right: .75rem; top: calc(var(--top) + 5.75rem); margin: 0; padding: .6rem 1rem; border-radius: var(--r-card); font-size: .875rem; font-weight: 500; text-align: center; }
.map-note { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(var(--sheet-gap) + var(--sheet-pad) + 6.2rem); text-align: center; color: var(--ink-2); font-size: .8rem; pointer-events: none; }
.map-note[hidden] { display: none; }
.map-note button { pointer-events: auto; font-size: inherit; }
.stage .map-note { z-index: 2; bottom: 4.5rem; }

/* Aide, Confidentialité, Conditions : dans le jeu, une page posée par-dessus ; sur le site, la même mise en page seule */
.cover { z-index: 30; box-shadow: -12px 0 32px -18px var(--shadow); }
.cover:focus { outline: none; }
.cover .scroll { padding-bottom: calc(var(--bottom) + 2rem); }
/* Liens dans une phrase : exception « inline » de WCAG 2.5.8 (pas de zone de 24 px, sinon deux liens de lignes voisines se chevauchent). */
.legal .link { padding: 0; margin: 0; font-weight: 500; }
/* Dans une phrase sur plusieurs lignes serrées, agrandir en hauteur ferait voler l’appui du lien voisin. */
.legal .link::after { inset: 0 -.125rem; }
.legal .link:only-child::after { inset: -.5rem -.125rem; }
.doc .large { margin-bottom: .5rem; }
.doc .lead { margin: 0 .25rem 1.75rem; text-align: start; text-wrap: balance; font-size: .9375rem; line-height: 1.42; letter-spacing: -.009em; color: var(--ink-2); }
.doc a { color: var(--link); font-weight: 500; text-decoration: none; }
.doc strong { font-weight: 600; }
.doc .card.text { padding: .875rem 1rem; font-size: 1rem; line-height: 1.45; letter-spacing: -.011em; }
.doc .card.text p + p { margin-top: .625rem; }
.doc .rows { list-style: none; padding: 0; }
.doc .rows li { position: relative; padding: .75rem 1rem .75rem 2.125rem; font-size: .9375rem; line-height: 1.42; letter-spacing: -.009em; }
.doc .rows li::before { content: ""; position: absolute; left: 1rem; top: 1.28rem; width: .375rem; height: .375rem; border-radius: 50%; background: var(--brand); }
.doc .rows li + li::after { content: ""; position: absolute; top: 0; right: 0; left: 2.125rem; border-top: .5px solid var(--sep); }
.doc details { position: relative; }
.doc details + details::before { content: ""; position: absolute; top: 0; right: 0; left: 1rem; border-top: .5px solid var(--sep); }
.doc summary { position: relative; display: flex; align-items: center; min-height: 2.75rem; padding: .75rem 2.75rem .75rem 1rem; list-style: none; cursor: pointer; font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: -.015em; -webkit-user-select: none; user-select: none; transition: background-color .2s; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary:active { background: var(--fill); transition: background-color .1s ease .12s; }
.doc summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: var(--r-card); }
.doc summary::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.3rem; border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.doc details[open] summary::after { transform: rotate(45deg); margin-top: -.45rem; }
.doc details p { padding: 0 1rem .875rem; font-size: .9375rem; line-height: 1.42; letter-spacing: -.009em; color: var(--ink-2); }
.doc details[open] p { animation: unfold .32s cubic-bezier(.22, 1, .36, 1); }
@keyframes unfold { from { opacity: 0; transform: translateY(-.375rem); } }
.doc-nav { display: grid; gap: 1rem; margin-top: 2.25rem; }
.doc-nav .legal { margin-top: 0; font-size: .8125rem; }
html.doc-page, html.doc-page body { height: auto; min-height: 100%; overflow: visible; background: var(--bg); touch-action: auto; }
.doc-page .doc { max-width: 40rem; margin: 0 auto; padding: calc(var(--top) + 2.5rem) 1rem calc(var(--bottom) + 2.5rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .screen.from-right, .screen.to-left, .screen.from-left, .screen.to-right { transform: none; opacity: 0; }
  .screen.from-left::after, .screen.to-left::after { opacity: 0; }
  .scanner::after { display: none; }
  .mpin .sweep { animation: none; opacity: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass.thick, .bar.stuck, .hud ~ .notice { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass .glass { background: var(--fill); }
  .veiled .card, .veiled .mode, .veiled .team, .veiled .alert, .veiled .rules .chip, .veiled .slot, .head-start .role, .dial-clock::before { background: var(--surface); }
  .veiled .keys { background: var(--tray); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .veiled .seg { background: var(--fill); }
}
@media (min-width: 481px) and (max-width: 699px) {
  #app { box-shadow: 0 0 0 1px var(--line); }
}
/* iPad et Mac : le fond, la carte et les barres prennent tout l'écran ; ce qu'on lit et touche reste dans une colonne
   centrée de 42rem, la largeur de lecture d'Apple sur iPad (0.9.55, 36rem avant : l'écran paraissait vide). */
@media (min-width: 700px) {
  #app { max-width: none; --col: 42rem; --gut: max(.5rem, calc((100% - var(--col)) / 2)); }
  .panel { width: min(calc(100% - 1rem), var(--col)); margin-left: auto; margin-right: auto; }
  .scroll, .foot { padding-left: max(1rem, calc((100% - var(--col) + 2rem) / 2)); padding-right: max(1rem, calc((100% - var(--col) + 2rem) / 2)); }
  .sheet-wrap, .modal, .zone-panel, .scrub, .rp-panel { left: var(--gut); right: var(--gut); }
  .hud, .hud ~ .notice, .hud ~ .notice[data-net] { left: max(.75rem, calc((100% - 46rem) / 2)); right: max(.75rem, calc((100% - 46rem) / 2)); }
  .toast { left: max(1rem, calc((100% - 30rem) / 2)); right: max(1rem, calc((100% - 30rem) / 2)); }
  .end .stage, .end .body { width: min(calc(100% - 1rem), var(--col)); margin-left: auto; margin-right: auto; }
}
/* Pages chargées (salon, nouvelle partie, fin de partie) : deux colonnes côte à côte dès l'iPad mini. Sur téléphone,
   les deux colonnes se suivent dans le même ordre qu'avant. */
@media (min-width: 740px) {
  .scroll.two { padding-left: max(1.5rem, calc((100% - 60rem) / 2)); padding-right: max(1.5rem, calc((100% - 60rem) / 2)); }
  .two .cols, .two .detail:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem; align-items: start; }
  .two .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two .mode { display: flex; flex-direction: column; }
  .two .mode .chips { margin-top: auto; padding-top: .75rem; }
  .end .stage { width: min(calc(100% - 3rem), 60rem); }
  .end .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem; align-items: start; width: min(calc(100% - 3rem), 60rem); padding-left: 0; padding-right: 0; }
  .end .body > :not(.sect) { grid-column: 1 / -1; }
  .end .body > .stack { width: min(100%, 40rem); justify-self: center; }
  /* Accueil sur iPad : la feuille à l'échelle de l'écran, pas une carte de téléphone perdue sous la photo. */
  .home .panel { width: min(calc(100% - 3rem), 48rem); padding: 2rem 2rem var(--sheet-pad); }
  .home .panel .display { font-size: 2.75rem; }
  .home .panel .sub { font-size: 1.0625rem; }
  .home .pals { margin-left: -2rem; margin-right: -2rem; padding-left: 2rem; padding-right: 2rem; gap: 1.25rem; }
  .home .pal, .home .pal .ring { width: 4.5rem; }
  .home .pal .ring { height: 4.5rem; }
  .home .pal .nm { font-size: .875rem; }
  .home .actions { gap: 1.25rem; }
  .home .actions .btn, .home .code-field { min-height: 4rem; font-size: 1.125rem; }
}
.modal[data-busy] [data-close] { opacity: .4; pointer-events: none; }

/* Zone de jeu : la carte glisse sous un cercle fixe ; le dehors est voilé */
.zone-pick .map { z-index: 0; }
.zone-steps { grid-column: 2; justify-self: center; width: min(100%, 13.5rem); border-radius: 1.4375rem; }
.zone-steps .seg { background: none; }
.zone-ring { position: absolute; z-index: 1; left: 0; top: 0; width: 0; height: 0; pointer-events: none; --d: 0px; }
.zone-ring i { position: absolute; left: calc(var(--d) / -2); top: calc(var(--d) / -2); width: var(--d); height: var(--d); border-radius: 50%; border: 2.5px solid var(--ink); box-shadow: 0 0 0 200vmax var(--zone-out); transition: width .25s, height .25s, left .25s, top .25s; }
.zone-ring::after { content: ""; position: absolute; left: -.3rem; top: -.3rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2.5px var(--surface); }
:root { --zone-out: rgba(29, 29, 31, .16); }
.zone-panel { position: absolute; z-index: 2; left: .5rem; right: .5rem; bottom: var(--sheet-gap); display: grid; gap: .75rem; padding: 1.25rem 1rem var(--sheet-pad); border-radius: var(--r-sheet) var(--r-sheet) var(--corner) var(--corner); }
.zone-panel .large { margin: 0; }
.zone-panel .sub { margin: -.375rem 0 .25rem; text-align: left; text-wrap: pretty; color: var(--ink-2); font-size: .9375rem; line-height: 1.35; }
.zone-panel.see .large, .zone-panel.see .sub { text-align: center; text-wrap: balance; }
.zone-acts { display: flex; gap: .625rem; }
.zone-acts .round { width: 3.25rem; height: 3.25rem; }
.zone-acts .btn { flex: 1; }
.zone-panel .btn.plain { margin-top: -.25rem; }
@media (prefers-reduced-motion: reduce) { .zone-ring i { transition: none; } }
/* Zone dessinée (0.9.64) : tracé SVG et coins à glisser, au-dessus de la carte. */
.zone-draft { position: absolute; z-index: 1; inset: 0; pointer-events: none; overflow: hidden; }
.zone-draft svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.zone-draft .fill { fill: var(--accent); fill-opacity: .14; }
.zone-draft .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.zone-draft.bad .fill { fill: var(--pop-bad); fill-opacity: .12; }
.zone-draft.bad .line { stroke: var(--pop-bad); stroke-dasharray: 7 5; }
.zone-pt { --s: calc(1.625rem * var(--k, 1)); position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); padding: 0; border-radius: 50%; background: var(--surface); border: max(2px, calc(3px * var(--k, 1))) solid var(--accent); box-shadow: 0 2px 6px var(--shadow); pointer-events: auto; touch-action: none; cursor: grab; transition: scale .15s, box-shadow .15s; }
.zone-pt::before { content: ""; position: absolute; inset: calc((var(--s) - 2.875rem) / 2); border-radius: 50%; } /* doigt : 46 px de prise, quelle que soit la taille du point */
.zone-pt.drag { scale: 1.3; cursor: grabbing; box-shadow: 0 6px 14px var(--shadow); }
.zone-draft.bad .zone-pt { border-color: var(--pop-bad); }
.zone-state { margin: -.25rem 0 0; font-size: .9375rem; font-weight: 600; letter-spacing: -.009em; color: var(--ink); font-variant-numeric: tabular-nums; }
.zone-state.bad { color: var(--pop-bad); }
@media (prefers-reduced-motion: reduce) { .zone-pt { transition: none; } }

/* Profil, Compte, Amis (0.9.11) */
.cover ~ .scrim { z-index: 31; }
.cover ~ .modal { z-index: 32; }
.avatar.pic { position: relative; overflow: hidden; padding: 0; background: var(--fill-2); }
.avatar.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.tiny { width: 2.5rem; height: 2.5rem; }
.avatar.big { width: 5.5rem; height: 5.5rem; }
.avatar.huge { width: 7rem; height: 7rem; }
.me-btn { padding: 0; overflow: hidden; }
.me-btn .avatar { width: 100%; height: 100%; background: transparent; }
.me-btn .avatar.pic { background: var(--fill-2); }
.friends-btn { position: relative; }
.badge { position: absolute; top: -.2rem; right: -.2rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: .6rem; display: grid; place-items: center; font: 700 .6875rem/1 var(--ui); letter-spacing: 0; box-shadow: 0 0 0 2px var(--surface); }
.badge[hidden] { display: none; }

/* Écran du profil */
.profile .scroll { text-align: center; }
.me-face { position: relative; display: block; margin: 0 auto 1.5rem; border-radius: 50%; }
.me-face .avatar { margin: 0 auto; }
.me-face .cam { position: absolute; right: -.1rem; bottom: .1rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg, var(--surface)); }
.me-face .cam svg { width: 1.05rem; height: 1.05rem; }
.profile-fields { margin-bottom: 1.25rem; }
.profile .field { text-align: center; }
.handle-field { display: flex; align-items: center; gap: .15rem; padding: 0 1rem; }
.handle-field span { flex: none; color: var(--ink-3); font-weight: 500; }
.handle-field input { flex: 1; min-width: 0; height: 3.25rem; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; outline: none; }
.profile .handle-field { justify-content: center; }
.profile .handle-field input { flex: 0 1 auto; width: 12ch; max-width: 100%; text-align: left; }
@supports (field-sizing: content) { .profile .handle-field input { field-sizing: content; width: auto !important; min-width: 2ch; } }
.handle-state { min-height: 1.2rem; margin: -.4rem 0 0; font-size: .8125rem; font-weight: 500; text-align: center; color: var(--ink-2); }
.modal .handle-state { margin: -.4rem 0 .4rem; text-align: left; }
.handle-state.ok { color: var(--ok); }
.handle-state.bad { color: var(--danger); }
.modal .note { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
/* Écran « Regarde tes e-mails » (0.9.13) */
.sent-ic { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: .25rem 0 .9rem; border-radius: 50%; color: var(--ink); background: var(--fill); }
.sent-ic svg { width: 1.65rem; height: 1.65rem; }
.modal p b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.look-face { display: grid; place-items: center; margin: .25rem 0 1rem; }
.modal [data-slot] .stack { margin-bottom: 1.25rem; }
.btn.glass { background: var(--glass-thick); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 0 0 .5px var(--line); }

/* Page Compte */
.me-card { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-bottom: 1.5rem; padding: 1.25rem 1rem 1.1rem; text-align: center; }
.me-card .txt b { display: block; font-size: 1.375rem; font-weight: 700; letter-spacing: -.025em; }
.me-card small { display: block; color: var(--ink-2); font-size: .9375rem; }
.account-page .sect { margin-bottom: 1.5rem; }
.account-page .stack, .friends-page .share-me { display: grid; gap: .5rem; margin-top: .5rem; }
.modal .fields { margin-bottom: .25rem; }
.modal .fields .field { margin-bottom: .5rem; }
.modal .gsi { display: flex; justify-content: center; min-height: 2.75rem; margin-bottom: .5rem; }

/* Carte de profil */
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 1.25rem; }
.profile-card .avatar { margin-bottom: .75rem; }
.modal .profile-card h2 { margin-bottom: .1rem; }
.modal .profile-card .at { margin: 0; font-weight: 500; color: var(--ink-2); }
.modal .profile-card .meta { margin: .35rem 0 0; font-size: .8125rem; color: var(--ink-3); }
.modal .profile-card h2, .modal .profile-card p { text-align: center; }
.modal .state { display: flex; align-items: center; justify-content: center; gap: .3rem; margin: 0 0 .25rem; font-weight: 600; color: var(--ink); }
.modal .state svg { width: 1rem; height: 1rem; color: var(--ok); stroke-width: 2.6; }

/* Liste d'amis */
.find { display: flex; gap: .5rem; margin-bottom: .75rem; }
.find .field { flex: 1; min-width: 0; margin: 0; }
.find .btn { flex: none; width: auto; min-height: 3.25rem; padding: 0 1.1rem; border-radius: var(--r-card); }
.friends-page [data-found] .card { margin-bottom: 1.5rem; }
.friends-page .sect { margin-bottom: 1.25rem; }
.friend { position: relative; display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem .55rem .9rem; }
.friend + .friend::before { content: ""; position: absolute; top: 0; right: 0; left: 3.9rem; border-top: .5px solid var(--sep); }
.friend .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; text-align: left; color: inherit; }
.friend .who .avatar { width: 2.4rem; height: 2.4rem; }
.friend .txt { min-width: 0; }
.friend .txt b, .friend .txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend .txt b { font-weight: 600; font-size: 1rem; letter-spacing: -.015em; }
.friend .txt small { margin-top: .05rem; font-size: .875rem; color: var(--ink-2); }
.friend .acts { flex: none; display: flex; align-items: center; gap: .375rem; }
.mini { display: inline-grid; place-items: center; min-height: 2rem; padding: 0 .8rem; border-radius: 1rem; font: 600 .875rem/1 var(--ui); letter-spacing: -.01em; color: var(--ink); background: var(--fill); }
.mini.paste { display: grid; width: max-content; min-height: 2.75rem; margin: 1rem auto 0; padding: 0 1.25rem; border-radius: 1.375rem; }
.mini.icon { width: 2rem; padding: 0; }
.mini svg { width: .9rem; height: .9rem; }
.mini[disabled] { opacity: .55; }
.mini[aria-busy="true"] { pointer-events: none; opacity: .55; }
.status-dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .35rem; border-radius: 50%; vertical-align: .08em; background: var(--ink-3); }
.status-dot.online { background: var(--ok); }
.status-dot.lobby { background: #f5a524; }
.status-dot.game { background: var(--danger); }
.status-dot.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.friends-page .empty { text-align: center; text-wrap: balance; }
.modal .list { max-height: 50vh; overflow-y: auto; margin-bottom: 1rem; background: var(--fill); }
.modal .list .friend + .friend::before { border-color: var(--line); }

/* Bandeau « Kai t’invite » sur l'accueil */
.invite-banner { display: flex; align-items: center; gap: .65rem; margin: -.25rem 0 1rem; padding: .6rem .6rem .6rem .75rem; background: var(--fill); }
.invite-banner[hidden] { display: none; }
.invite-banner .txt { flex: 1; min-width: 0; text-align: left; }
.invite-banner .txt b, .invite-banner small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-banner b { font-size: .9375rem; font-weight: 600; }
.team-note { white-space: pre-line; }
.invite-banner small { font-size: .8125rem; color: var(--ink-2); }
/* Maintenance (0.9.98) : bandeau qui se déplie en direct, rayures de chantier qui défilent sur le bord */
.maint-band { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-.5rem) scale(.97); transition: grid-template-rows .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, transform .55s cubic-bezier(.22, 1.12, .36, 1), margin-bottom .5s cubic-bezier(.22, 1, .36, 1); }
.maint-band.on { grid-template-rows: 1fr; opacity: 1; transform: none; margin-bottom: 1rem; }
.maint-band > div { min-height: 0; overflow: hidden; }
.maint-card { position: relative; display: flex; align-items: center; gap: .75rem; padding: .75rem .875rem .75rem 1.25rem; border-radius: 1rem; background: var(--runner-soft); overflow: hidden; text-align: left; }
.maint-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .375rem; background: linear-gradient(-45deg, var(--runner) 25%, #111214 25% 50%, var(--runner) 50% 75%, #111214 75%) 0 0 / .75rem .75rem; animation: hazard 1.4s linear infinite; }
@keyframes hazard { to { background-position: 0 .75rem; } }
.maint-ic { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--runner); color: var(--on-runner); }
.maint-ic svg { width: 1.125rem; height: 1.125rem; }
.maint-band.on .maint-ic svg { animation: wrench .9s cubic-bezier(.36, .07, .19, .97) .35s both; transform-origin: 30% 70%; }
@keyframes wrench { 0%, 100% { transform: none; } 30% { transform: rotate(-24deg); } 60% { transform: rotate(10deg); } }
.maint-card .txt { flex: 1; min-width: 0; }
.maint-card b { display: block; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.125rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.maint-card small { display: block; margin-top: .15rem; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.maint-card.shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
.actions .btn.off, .actions .btn.off:active { opacity: .42; transform: none; }
.btn.wait svg { width: 1.05rem; height: 1.05rem; margin-right: .4rem; vertical-align: -.15rem; }
/* Annonce et message de l'équipe (0.9.98) : pastille qui surgit avec deux ondes, puis le texte monte */
.team-msg { margin-bottom: 1.25rem; }
.note-ic { position: relative; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: .9rem; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); }
.team-msg.me .note-ic { background: var(--runner); color: var(--on-runner); }
.note-ic svg { width: 1.5rem; height: 1.5rem; }
.note-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.team-msg.me .note-ic::after { border-color: var(--runner); }
.modal .note-k { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; letter-spacing: .005em; margin-bottom: .5rem; }
.modal .note-t { margin: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.42; white-space: pre-line; overflow-wrap: anywhere; }
.modal.in .note-ic { animation: note-pop .62s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
.modal.in .note-ic::after { animation: note-halo 1.5s cubic-bezier(.22, 1, .36, 1) .4s 2; }
.modal.in .note-k { animation: note-rise .5s cubic-bezier(.22, 1, .36, 1) .16s both; }
.modal.in .note-t { animation: note-rise .5s cubic-bezier(.22, 1, .36, 1) .24s both; }
.modal.in .note-ic svg { animation: note-tilt .7s cubic-bezier(.36, .07, .19, .97) .55s both; }
@keyframes note-pop { from { opacity: 0; transform: scale(.4) rotate(-18deg); } }
@keyframes note-halo { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes note-rise { from { opacity: 0; transform: translateY(.6rem); filter: blur(4px); } }
@keyframes note-tilt { 0%, 100% { transform: none; } 25% { transform: rotate(-12deg); } 55% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .maint-band { transform: none; transition: grid-template-rows .01s, opacity .25s ease, margin-bottom .01s; }
  .maint-card::before, .maint-band.on .maint-ic svg, .maint-card.shake { animation: none; }
  .modal.in .note-ic, .modal.in .note-ic::after, .modal.in .note-ic svg { animation: none; }
  .modal.in .note-k, .modal.in .note-t { animation: note-fade .3s ease both; }
  @keyframes note-fade { from { opacity: 0; } }
}

.pin b[data-id] { pointer-events: auto; cursor: pointer; }

/* ---------- DA 0.9.16 « Émeraude » : façon Réglages et Instagram, alignée à gauche ---------- */
.btn { border-radius: 1rem; }
.btn.primary { font-weight: 700; }
.mini.solid, .alert .btn { color: var(--on-accent); background: var(--accent); }
.badge { color: var(--on-accent); background: var(--accent); }
.switch[aria-checked="true"] { background: var(--accent); }
.mode[aria-pressed="true"] .tick { color: var(--on-accent); background: var(--accent); }
.slot.on, .veiled .slot.on { box-shadow: inset 0 0 0 2px var(--accent); }
.me-face .cam { color: var(--on-accent); background: var(--accent); }
.handle-field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
/* Titres et listes à gauche, comme les applis du système ; les fenêtres restent centrées. */
.large { text-align: left; margin: 0 .25rem 1.25rem; }
.sect-h { justify-content: flex-start; text-align: left; }
.sheet h3 { justify-content: flex-start; text-align: left; }
.sect-f { margin: .45rem 1rem 0; text-align: center; text-wrap: balance; }
/* Lignes à icône : carré de couleur, libellé, valeur grise, chevron */
.cell.ios { min-height: 3.125rem; padding: .45rem 1rem; gap: .75rem; font-size: 1.0625rem; }
.cell .ico { flex: none; display: grid; place-items: center; }
.cell.ios .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .val { flex: 0 1 auto; min-width: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 1rem; }
.cell.ios .val { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; text-align: right; line-height: 1.25; } /* « 1 min 30, puis plus serrés » sur deux lignes au lieu de « pui… » */
.cell.ios .val + svg, .cell.ios .txt + svg { margin-left: -.35rem; }
.cell.danger .txt { color: var(--danger); font-weight: 500; }
.cell.mid .txt { text-align: center; }
.account-page .btn.plain.danger { font-size: .9375rem; }
.modal .card.icons { text-align: left; }
.modal .card.icons .cell { font-size: 1rem; }

/* Accueil 0.9.16 : « Salut Maya » à gauche, rangée des amis façon stories, champ du code + Rejoindre */
.home .display { text-align: left; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; text-wrap: pretty; }
.home .panel .sub { text-align: left; margin-top: .125rem; text-wrap: pretty; }
.pals { display: flex; gap: 1rem; margin: 0 -1rem 1.125rem; padding: .3125rem 1rem; overflow-x: auto; scrollbar-width: none; }
.pals::-webkit-scrollbar { display: none; }
.pal { display: grid; justify-items: center; gap: .4375rem; flex: none; width: 3.625rem; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; }
.pal .ring { display: grid; place-items: center; width: 3.625rem; height: 3.625rem; }
.pal.off .ring { box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4px var(--fill-2); }
.pal .avatar { width: 100%; height: 100%; }
.pal .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; letter-spacing: 0; }
.pal.add .ring { box-shadow: none; border: 1.5px dashed var(--ink-3, rgba(60,60,67,.3)); color: var(--ink-2); }
.pal.add .ring svg { width: 1.5rem; height: 1.5rem; }
.pal.add .nm { color: var(--ink-2); }
.panel .sub[hidden] + .pals { margin-top: 1rem; }
.home .btn.primary svg { width: 1.125rem; height: 1.125rem; margin-right: .375rem; }
.code-row { display: flex; gap: .5rem; }
.code-field { flex: 1; display: flex; align-items: center; gap: .5rem; min-height: 3.25rem; padding: 0 1rem; border: 0; border-radius: .875rem; background: var(--fill); color: var(--ink-2); font: inherit; font-size: 1rem; text-align: left; }
.code-field svg { width: 1.125rem; height: 1.125rem; opacity: .7; }
.code-row .btn { flex: none; width: auto; min-height: 3.25rem; padding: 0 1.125rem; border-radius: .875rem; background: var(--fill); box-shadow: none; color: var(--ink); }
/* Créer : modes et lignes alignés à gauche comme le reste, mode choisi entouré d'émeraude */
.mode { text-align: left; }
.mode-top { justify-content: flex-start; padding: 0 2rem 0 0; }
.mode .chips { justify-content: flex-start; }
.veiled .mode[aria-pressed="true"], .mode[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.cell.mid.chev { padding-left: 1rem; }
.cell.mid.chev .txt { text-align: left; }
/* Bienvenue : même titre que l'accueil, à gauche et en 800 */
.welcome .display { text-align: left; font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; margin-left: .25rem; }
.welcome .panel .sub { text-align: left; margin-left: .25rem; }

/* ---------- DA 0.9.17 : fond uni sur tous les écrans (plus de photo floutée), lignes à icône ---------- */
.mode, .team, .alert { background: var(--surface); }
.team.mine { cursor: default; box-shadow: inset 0 0 0 2px var(--accent); }
.team-h { justify-content: flex-start; align-items: center; gap: .45rem; padding: 0 .5rem; }
.team-h span { margin-left: auto; }
.camp-dot { flex: none; width: .625rem; height: .625rem; border-radius: 50%; }
.camp-dot.runner { background: var(--runner); }
.camp-dot.hunter { background: var(--hunter); }
.team.mine .team-f { color: var(--accent-ink); }
/* Salon : code et QR côte à côte, deux petits boutons dessous */
.code-card { padding: 1rem 1rem .875rem; text-align: left; }
.code-top { display: flex; align-items: center; gap: 1rem; }
.code-txt { flex: 1; min-width: 0; }
.code-card .code-h { margin: 0; }
.code-card .code { margin: .125rem 0 0 -.5rem; padding: 0 .5rem; font-size: 2.75rem; font-weight: 800; letter-spacing: .06em; }
.code-card .qr { flex: none; width: 6.5rem; height: 6.5rem; margin: 0; padding: .375rem; border-radius: 10px; }
.code-acts { display: flex; gap: .5rem; margin-top: .875rem; }
.code-acts .mini { flex: 1; display: inline-flex; gap: .375rem; min-height: 2.5rem; border-radius: .75rem; font-size: .9375rem; }
.code-acts .mini svg { width: 1.0625rem; height: 1.0625rem; }
.lobby .teams { margin-bottom: 0; }
/* Au sort : tout le monde dans un seul bloc ; le nombre de chasseurs en − / + dessous */
.team.rand { margin-bottom: .625rem; padding: .75rem .5rem 0; cursor: default; }
.sect > .seg, [data-rules-box] > .seg, [data-ping-body] > .card { margin-bottom: .75rem; }
.team.rand .team-list { grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr)); }
[data-hunt-box] > .card { margin-top: .625rem; }
[data-hunt-box] .sect-f { margin-top: .5rem; }
.cell.count .txt { flex: none; }
.cell.count .val { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.hunt-step { display: flex; flex: none; padding: .125rem; border-radius: .625rem; background: var(--fill); }
.hunt-step button { display: grid; place-items: center; width: 2.5rem; height: 2rem; border-radius: .5rem; color: var(--ink); }
.hunt-step button + button { box-shadow: inset 1px 0 0 var(--line); }
.hunt-step button svg { width: 1rem; height: 1rem; stroke-width: 2.4; }
.hunt-step button:disabled { color: var(--ink-3); }
/* Avance : pastille et anneau à la couleur du camp, quelques chiffres dessous */
.head-start .role, .dial-clock::before { background: var(--surface); }
.as-runner .role { background: var(--runner-soft); box-shadow: none; }
.as-hunter .role { color: var(--accent-ink); background: var(--accent-soft); box-shadow: none; }
.as-runner .role i { background: var(--runner); box-shadow: none; }
.as-hunter .role i { background: var(--accent); box-shadow: none; }
.as-runner .dial-clock .prog { stroke: var(--runner); }
.as-hunter .dial-clock .prog { stroke: var(--accent); }
.hs-facts { flex: none; width: 100%; max-width: 22rem; margin-top: 1.75rem; padding: .875rem .25rem; }
.hs-facts b { font-size: 1.125rem; }
.hs-facts small { font-size: .75rem; }
/* Menu de la partie : une liste à icônes au lieu de boutons empilés */
.menu-list { margin: 1rem 0 .5rem; }
/* Pouvoirs : carré de couleur, texte à gauche, nombre restant en pastille */
.power { padding-left: .875rem; gap: .75rem; }
.power div { text-align: left; }
.power .ico { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; color: #fff; background: var(--c); }
.power .ico svg { width: 1.15rem; height: 1.15rem; }
.power em { padding: .2rem .6rem; border-radius: 1rem; color: var(--accent-ink); background: var(--accent-soft); font-size: .875rem; }
/* Fin : résumé à gauche et trois chiffres de la partie */
.end .sub { max-width: none; margin: 0 .25rem 1.25rem; text-align: left; }
.end-facts { flex: none; margin-bottom: 1.75rem; padding: .875rem .25rem; }
.counts { flex: 1; display: flex; justify-content: space-around; text-align: center; min-width: 0; }
.counts b { display: block; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.75rem; line-height: 1.05; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.counts small { display: block; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
/* Sur l'écran d'avance, la carte des chiffres garde sa hauteur (elle remplissait l'écran de l'iPad). */
.head-start .counts { flex: none; }
.end .btn.light { background: var(--surface); }
.join-lede { margin: -.75rem .25rem 1.5rem; color: var(--ink-2); font-size: .9375rem; text-wrap: pretty; }

/* DA 0.9.18 — la carte en jeu : couleurs des camps sur les pions, minuteurs à icône, joueurs en cartes */
.timers span { display: flex; align-items: center; justify-content: center; gap: .3rem; }
.timers span svg { flex: none; width: .875rem; height: .875rem; stroke-width: 2.4; color: var(--ink-3); }
.timers span em { font-style: normal; }
.playing-hunter .t-ping span svg { color: var(--accent); }
.playing-runner .t-ping span svg { color: var(--runner); }
.pin.me::before { background: var(--accent-soft); border-color: var(--accent); opacity: 1; }
.pin.runner.me::before { background: var(--runner-soft); border-color: var(--runner); }
.pin .ring { border-color: var(--accent); }
.pin.runner .ring { border-color: var(--runner); }
.sheet h3 { align-items: center; margin: 1.25rem .25rem .5rem; }
.sheet .card .player { min-height: 3rem; }
/* Style « papier » de la carte en jeu : fond chaud à grain léger, cartes blanches qui flottent, gros chiffres */
.sheet.glass.thick { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -6px 30px rgba(0, 0, 0, .14); }
.sheet.glass::after, .hud .glass::after { display: none; }
.sheet .card, .sheet .power { background: var(--paper-card); box-shadow: var(--lift); }
.sheet h3 span { font-size: .8125rem; }
.hud .timers.glass, .hud .round.glass, .sheet .quick .round.glass, .north.glass { background: var(--paper-card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--lift); }
/* DA 0.9.19 — le papier partout : fond chaud à grain sur tous les écrans, feuilles et fenêtres en papier, cartes blanches qui flottent */
:root { --bg: var(--paper); --outer: var(--paper); --surface: var(--paper-card); }
#app, .screen, html.doc-page body { background-image: var(--grain); }
.panel.glass.thick, .modal.glass.thick { background: var(--paper) var(--grain); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -6px 30px rgba(0, 0, 0, .14); }
.panel.glass::after, .modal.glass::after { display: none; }
.card { box-shadow: var(--lift); }
.panel .code-field, .panel [data-join]:not(.mini) { background: var(--paper-card); box-shadow: var(--lift); }
@media (prefers-reduced-transparency: reduce) { .panel.glass.thick, .modal.glass.thick { background: var(--paper); } }
.bar.stuck { background: var(--paper) var(--grain); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-transparency: reduce) { .bar.stuck { background: var(--paper); } }

/* Partie d'essai : viseur du faux GPS, boîte à outils, joueurs simulés */
/* Hors de .map : dans l'appli, la carte Apple se pose par-dessus le contenu de .map et cachait la croix. */
.aim { position: absolute; z-index: 2; left: 50%; top: 50%; pointer-events: none;
  border-radius: 50%; border: 2px solid #fff; }
.aim::before, .aim::after { content: ""; position: absolute; background: #fff; border-radius: 1px; box-shadow: 0 0 0 1px rgb(0 0 0 / .45); }
.aim::before { left: 50%; }
.aim::after { top: 50%; }
.aim[hidden] { display: none; }
.tools .sect-h { margin-top: 1.25rem; }
.tools .sect-h span, .tools .cell .val { color: var(--ink-2); font-weight: 400; }
.cell[aria-checked="true"] .switch { background: var(--accent); }
.cell[aria-checked="true"] .switch::after { transform: translateX(1.25rem); }
.bot-list { padding: 0; }
.bot-row { display: grid; gap: .5rem; padding: .75rem 1rem; text-align: left; }
.bot-row + .bot-row { border-top: .5px solid var(--sep); }
.bot-head { display: grid; gap: .125rem; }
.bot-head strong { font: 600 1rem/1.25 var(--ui); color: var(--ink); }
.bot-head span, .bot-key { font: 400 .8125rem/1.3 var(--ui); color: var(--ink-2); }
.bot-key b { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--ink); }
.bot-acts { display: flex; flex-wrap: wrap; gap: .375rem; }
/* « Fermer » reste en bas de la feuille d'essai ; la liste passe dessous en fondu : on voit qu'il y a une suite. */
.modal.tools { padding-bottom: 0; }
.tools-foot { position: sticky; bottom: 0; z-index: 1; margin: 0 -1.25rem; padding: 2rem 1.25rem max(1.25rem, calc(var(--bottom) + .5rem)); background: linear-gradient(to bottom, transparent, var(--paper) 2rem); }
.tools .cell.ios small { font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; }
.practice-add + .sect-f { margin-top: .5rem; }
.hs-skip { flex: none; display: inline-flex; gap: .4rem; align-items: center; margin-top: 1rem; padding: 0 1.25rem; min-height: 2.75rem; }
.hs-skip svg { width: 1rem; height: 1rem; }

/* Replay plein écran : la carte prend tout l'écran, le minuteur en haut, la lecture et la frise dans une carte en bas */
.end .stage .full { position: absolute; z-index: 5; top: .5rem; right: .5rem; width: 2.75rem; height: 2.75rem; background: var(--paper-card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--lift); }
.end .stage .full[hidden] { display: none; }
.end .stage .full svg { width: 1.15rem; height: 1.15rem; }
.cover.replay-full { --c-ping: var(--accent); --c-catch: var(--danger); --c-power: #7a5af5; --c-zone: #f08a00; background: var(--map-land); box-shadow: none; transition: opacity .32s ease, transform .42s cubic-bezier(.22, 1, .36, 1); }
:root[data-theme="dark"] .cover.replay-full { --c-power: #a48bff; --c-zone: #ffa53a; }
.cover.replay-full.from-right, .cover.replay-full.to-right { transform: scale(.96); opacity: 0; }
.replay-full .map > .marks { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.replay-full .map > .pins { z-index: 2; }
.replay-full .map .maplibregl-ctrl-bottom-right { bottom: calc(var(--rp-panel, 9.5rem) + .5rem); }
.replay-full .pin b { transition: background-color .25s, color .25s; }
.replay-full .pin i { top: 1.35rem; background: var(--paper-card); box-shadow: var(--lift); }
.replay-full .pin.ghost { opacity: .55; }
.rp-top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: calc(var(--top) + .5rem) .75rem 0; pointer-events: none; }
.rp-top > *, .rp-side > * { pointer-events: auto; }
.rp-top .round { width: 2.75rem; height: 2.75rem; }
.rp-top .glass { background: var(--paper-card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--lift); }
.rp-side { display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.rp-side [hidden] { display: none; }
.rp-north svg { width: 1.6rem; height: 1.6rem; transform: rotate(var(--turn, 0deg)); }
.rp-clock { display: flex; flex-direction: column; align-items: center; min-width: 7.5rem; padding: .35rem 1rem .4rem; border-radius: 1.4rem; pointer-events: none; }
.rp-clock time { font-size: 1.5rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.rp-clock small { font-size: .72rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rp-panel { position: absolute; z-index: 3; left: .5rem; right: .5rem; bottom: calc(var(--bottom) + .5rem); padding: .9rem 1.1rem .65rem; border-radius: 1.75rem; background: var(--paper-card); box-shadow: var(--lift), 0 0 0 .5px var(--line); }
/* iPad et Mac : le lecteur du replay et le choix de zone restent dans la colonne centrale (leurs règles, plus bas que celle de la colonne, l’écrasaient). */
@media (min-width: 700px) { .rp-panel, .zone-panel { left: var(--gut); right: var(--gut); } }
.rp-cap { display: flex; align-items: center; gap: .5rem; min-height: 2.6em; margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.rp-cap::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink-3); }
.rp-cap.k-ping::before, .rp-cap.k-go::before { background: var(--c-ping); }
.rp-cap.k-catch::before { background: var(--c-catch); }
.rp-cap.k-power::before { background: var(--c-power); }
.rp-cap.k-zone::before { background: var(--c-zone); }
.rp-cap span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-cap small { display: none; }
/* Démo de l’accueil : un titre et sa phrase d’explication, sur une hauteur fixe (la carte ne saute pas). */
.rp-demo .rp-cap { display: grid; grid-template-columns: .55rem 1fr; column-gap: .5rem; align-content: start; min-height: 4.6em; }
.rp-demo .rp-cap::before { margin-top: .4em; }
.rp-demo .rp-cap small { display: block; grid-column: 2; margin-top: .15rem; font-size: .875rem; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.rp-line { position: relative; margin: .4rem 0 .1rem; }
.rp-line input { display: block; width: 100%; height: 2.25rem; margin: 0; accent-color: var(--ink); touch-action: none; }
.rp-ticks { position: absolute; left: .45rem; right: .45rem; top: 0; height: .5rem; pointer-events: none; }
.rp-ticks i { position: absolute; top: 0; width: 3px; height: .5rem; margin-left: -1.5px; border-radius: 2px; background: var(--ink-3); }
.rp-ticks i.k-ping, .rp-ticks i.k-go { background: var(--c-ping); }
.rp-ticks i.k-catch { width: 5px; margin-left: -2.5px; background: var(--c-catch); }
.rp-ticks i.k-power { background: var(--c-power); }
.rp-ticks i.k-zone { background: var(--c-zone); }
.rp-ctl { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: .75rem; }
.rp-ctl button { display: grid; place-items: center; color: var(--ink); }
.rp-play { width: 3.25rem; height: 3.25rem; border-radius: 50%; color: var(--paper-card) !important; background: var(--ink); }
.rp-play svg { width: 1.35rem; height: 1.35rem; }
.rp-skip { width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.rp-skip svg { width: 1.4rem; height: 1.4rem; }
.rp-speed { justify-self: start; min-width: 2.75rem; height: 2.75rem; padding: 0 .6rem; border-radius: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--fill); }
.rp-count { justify-self: end; font-size: .8rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mark { position: absolute; left: 0; top: 0; width: 0; height: 0; --k: 0; }
.mark span { position: absolute; left: -1.5rem; top: -1.5rem; width: 3rem; height: 3rem; border-radius: 50%; border: 2.5px solid var(--c-ping); background: color-mix(in srgb, var(--c-ping) 14%, transparent); transform: scale(calc(.5 + var(--k) * 1.3)); opacity: calc(1 - var(--k)); }
.mark.k-power span { border-color: var(--c-power); background: color-mix(in srgb, var(--c-power) 14%, transparent); border-style: dashed; }
.mark.k-zone span { border-color: var(--c-zone); background: color-mix(in srgb, var(--c-zone) 14%, transparent); }
.mark b { position: absolute; left: -.8rem; top: -.8rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: #fff; background: var(--c-catch); box-shadow: 0 0 0 2px var(--paper-card), 0 4px 10px -3px rgba(0, 0, 0, .4); }
.mark b svg { width: .9rem; height: .9rem; stroke-width: 3; }
@media (prefers-reduced-motion: reduce) { .cover.replay-full { transition: opacity .2s ease; } .cover.replay-full.from-right, .cover.replay-full.to-right { transform: none; } }

/* DA 0.9.35 « Dossard » — l'identité d'une course entre potes : cobalt pour les chasseurs, jaune pour les fuyards,
   avatars en dossards épinglés (deux trous en haut), titres et boutons en Barlow Condensed italique en capitales,
   fond gris clair uni sans grain. La carte, ses pions ronds et l'appli native ne changent pas, seules leurs couleurs. */
:root {
  --accent: #2b44ff; --on-accent: #fff; --accent-ink: #2238e0; --accent-soft: rgba(43, 68, 255, .12);
  --runner: #ffd21f; --on-runner: #111214; --runner-ink: #7a5d00; --runner-soft: rgba(255, 210, 31, .28);
  --ok: #137a45; --danger: #c4281f; /* contrastes 4,5:1 sur le gris du fond (I14, 0.9.47) */
  --ink: #111214; --ink-2: rgba(17, 18, 20, .7); --ink-3: rgba(17, 18, 20, .6);
  --solid: #111214; --on-solid: #fff;
  --paper: #f3f3f0; --paper-card: #fff; --grain: none;
  --lift: 0 1px 2px rgba(17, 18, 20, .06), 0 10px 26px -14px rgba(17, 18, 20, .3);
  --hole: rgba(17, 18, 20, .16);
  --hero: #1524a8; --hero-deep: #101c86; /* cobalt profond (2026-11-15) : plus foncé que --accent, qui reste vif pour les boutons */
  --bib: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
}
.sheet.glass.thick { background: var(--paper); }

/* Titres : capitales italiques serrées, comme sur un maillot */
.large, .display, .modal h2, .head-start h1, .zone-panel .large {
  font-family: var(--bib); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: -.005em;
}
.large { font-size: 2.125rem; }
.zone-panel .large { font-size: 1.75rem; }
.display { font-size: 2.125rem; text-align: left; margin: 0 .125rem; }
.panel .sub { text-align: left; }
.modal h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.head-start h1 { font-size: 2.25rem; }
.sheet h3, .sect-h, .code-card .code-h { font-size: .65625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }

/* Boutons : grosses étiquettes de départ. Apple et Google gardent leur police (règles des deux marques). */
.btn:not(.plain):not(.team-f):not(.duo .btn) { min-height: 3.125rem; border-radius: 14px; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em; }
.foot .btn:not(.plain):not(.team-f):not(.duo .btn) { border-radius: 999px; } /* bouton du bas : capsule, qui suit la courbe de l'écran mieux qu'un petit coin */
.btn:not(.plain):not(.team-f):not(.duo .btn) svg { width: 1.25rem; height: 1.25rem; stroke-width: 2.6; }
.btn.primary { color: var(--on-accent); background: var(--accent); box-shadow: 0 10px 22px -14px var(--accent); }
.btn.primary.danger { background: var(--danger); box-shadow: none; }
.btn.light { background: var(--paper-card); box-shadow: var(--lift); }
.code-acts .mini { border-radius: 10px; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .02em; }
.code-row .code-field { border-radius: 14px; }

/* Avatars ronds partout (0.9.47) : photo ou initiale en Barlow ; plus de trous de dossard, ils tombaient sur le bord du rond. */
.avatar { --ho: 18%; --hr: 1.5px; position: relative; border-radius: 50%; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1rem; color: var(--ink); background: var(--paper-card); box-shadow: inset 0 0 0 1.5px var(--sep); }
.avatar.pic img { border-radius: inherit; }
.avatar.pic { box-shadow: none; }
.avatar.tiny { font-size: 1.125rem; }
.avatar.big, .avatar.huge { --hr: 3px; --ho: 14%; }
.avatar.big { font-size: 2.75rem; }
.avatar.huge { font-size: 3.5rem; box-shadow: 0 12px 30px -16px var(--shadow), inset 0 0 0 1.5px var(--sep); }
.avatar.hunter, .mate .avatar.hunter, .sheet .avatar.hunter, .avatar.emoji.hunter, .mate .avatar.emoji.hunter, .sheet .avatar.emoji.hunter { color: #fff; background: var(--accent); box-shadow: none; }
.avatar.runner, .avatar.runner:not(.pic):not(.emoji), .mate .avatar.runner, .sheet .avatar.runner, .avatar.emoji.runner, .sheet .avatar.emoji.runner { color: var(--on-runner); background: var(--runner); box-shadow: none; }
.mate .avatar { font-size: 1.375rem; color: var(--ink); background: var(--paper-card); box-shadow: var(--lift); }
.mate .dot { left: calc(50% + 1.05rem); top: -.125rem; }
/* 0.9.41 : sans photo, les initiales sont sur une couleur propre au compte (pas le cobalt ni le jaune, réservés aux camps). */
.avatar.h0 { --h: 4; } .avatar.h1 { --h: 24; } .avatar.h2 { --h: 92; } .avatar.h3 { --h: 148; }
.avatar.h4 { --h: 178; } .avatar.h5 { --h: 262; } .avatar.h6 { --h: 298; } .avatar.h7 { --h: 334; }
.avatar.tint:not(.pic):not(.emoji):not(.hunter):not(.runner) { color: hsl(var(--h) 60% 28%); background: hsl(var(--h) 70% 88%); box-shadow: inset 0 0 0 1.5px hsl(var(--h) 40% 76%); }
:root[data-theme="dark"] .avatar.tint:not(.pic):not(.emoji):not(.hunter):not(.runner) { color: hsl(var(--h) 85% 84%); background: hsl(var(--h) 32% 27%); box-shadow: inset 0 0 0 1.5px hsl(var(--h) 30% 36%); }
.me-btn .avatar.tint:not(.pic) { box-shadow: none; }
/* Deux initiales (« KL ») : un peu plus petites pour tenir dans le dossard ou le pion. */
.avatar.two { font-size: .875rem; letter-spacing: -.02em; }
.avatar.tiny.two { font-size: .95rem; }
.mate .avatar.two { font-size: 1.125rem; }
.avatar.big.two { font-size: 2.25rem; }
.avatar.huge.two { font-size: 2.875rem; }
.pin b.two { font-size: .68rem; letter-spacing: -.02em; }
.cell .ico[style*="--runner"], .power .ico[style*="--runner"] { color: var(--on-runner); }

/* Amis de l'accueil : petits dossards blancs ; en ligne, un liseré cobalt */
/* 0.9.40 : plus de gris pour les amis hors ligne ; ceux en ligne gardent le liseré et prennent une pastille verte.
   Même forme que le bouton du profil en haut : le cadre et l'avatar ont les mêmes coins. */
/* 0.9.40 : ici seulement, photos rondes sans les trous du dossard ; liseré pour tout le monde et
   pastille de statut aux couleurs de la page Amis. Les icônes du haut gardent leurs coins arrondis. */
.pal .ring { position: relative; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--accent); }
.pal .avatar { border-radius: 50%; font-size: 1.625rem; }
.pal .avatar::after { display: none; }
.pal:not(.add) .ring::after { content: ""; position: absolute; z-index: 2; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; background: #a1a1a6; box-shadow: 0 0 0 2.5px var(--paper); }
.pal.st-online .ring::after { background: var(--ok); }
.pal.st-lobby .ring::after { background: #f5a524; }
.pal.st-game .ring::after { background: var(--danger); }
.pal.add .ring { border-radius: 50%; }

/* Salon : le code est un dossard à quatre épingles */
.code-card { position: relative; }
.code-card::before { content: ""; position: absolute; inset: 12px; pointer-events: none; /* suit l'arrondi de 28 px */
  background: radial-gradient(circle at 3.5px 3.5px, var(--hole) 3px, transparent 3.6px) 0 0 / 8px 8px no-repeat,
    radial-gradient(circle at 3.5px 3.5px, var(--hole) 3px, transparent 3.6px) 100% 0 / 8px 8px no-repeat,
    radial-gradient(circle at 3.5px 3.5px, var(--hole) 3px, transparent 3.6px) 0 100% / 8px 8px no-repeat,
    radial-gradient(circle at 3.5px 3.5px, var(--hole) 3px, transparent 3.6px) 100% 100% / 8px 8px no-repeat; }
.code-card { padding: 1.25rem 1.125rem 1.125rem; }
.code-card .code { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 4rem; line-height: .95; letter-spacing: .02em; }
.team-h { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0; }
.team-h span { font-family: var(--ui); font-style: normal; font-size: .875rem; }
.team { border-radius: 24px; } /* arrondis emboîtés : extérieur = intérieur + marge */
.team.mine { box-shadow: inset 0 0 0 2px var(--accent), var(--lift); cursor: default; }
.slot { border-radius: 12px; background: var(--paper-card); box-shadow: var(--lift); font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 2.5rem; }
.card, .mode, .tile { border-radius: 16px; }
.mode, .card.code-card { border-radius: 28px; } /* pastilles et boutons à 16-18 px du bord */
.modes ~ .cols .card { border-radius: 28px; } /* même arrondi que les modes juste au-dessus */

/* En jeu : deux cases de chrono, noir mat (blanc la nuit) ; la case du ping passe au cobalt quand il approche */
.hud .timers, .hud .timers.glass { gap: .5rem; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.hud .timers > div { padding: .5rem .5rem .55rem; border-radius: 12px; color: #fff; background: #111214; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .6); transition: background .2s; }
:root[data-theme="dark"] .hud .timers > div { color: #111214; background: #f4f5f7; }
.timers span { font-size: .65625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: inherit; opacity: .62; }
.timers span svg { color: inherit; }
.timers strong { font-family: var(--bib); font-style: italic; font-size: 2.125rem; font-weight: 800; line-height: 1; letter-spacing: 0; }
@media (max-width: 359px) { .timers strong { font-size: 1.75rem; } }
/* Étiquette toujours sur une ligne : avec un bouton de plus (essai, dev) ou un petit écran, l'icône et l'espacement cèdent la place. */
.timers span { white-space: nowrap; }
.timers span em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hud:has(> .round:not([hidden]) ~ .round:not([hidden])) .timers span { letter-spacing: .03em; }
.hud:has(> .round:not([hidden]) ~ .round:not([hidden])) .timers span svg { display: none; }
@media (max-width: 359px) { .timers span { letter-spacing: .03em; } .timers span svg { display: none; } }
.hud .timers > .soon, :root[data-theme="dark"] .hud .timers > .soon { color: #fff; background: var(--accent); }
.playing-runner .hud .timers > .soon, :root[data-theme="dark"] .playing-runner .hud .timers > .soon { color: var(--on-runner); background: var(--runner); }
.timers .soon strong, .playing-runner .timers .soon strong { margin: 0; padding: 0; color: inherit; background: none; }
.hud .round, .hud .round.glass { border-radius: 12px; width: 2.75rem; height: 2.75rem; }
.catch-key { font-family: var(--bib); font-style: italic; font-weight: 800; }

/* Carte : pions toujours ronds (ceux de l'appli sont dessinés en natif), seules les couleurs suivent */
.pin.hunter b { color: #fff; background: var(--accent); }
.pin.runner b { color: var(--on-runner); background: var(--runner); box-shadow: 0 0 0 2.5px var(--paper-card), 0 6px 14px -4px rgba(0, 0, 0, .4); }
.pin.runner.ghost b { color: var(--runner-ink); background: var(--glass-thick); border: 2px dashed var(--runner); box-shadow: none; }
/* Pion avec photo : la photo dans un anneau de la couleur du camp (pointillé et pâlie pour une position ancienne) */
.pin b.pic { padding: 0; overflow: hidden; background: var(--fill-2); border: 2.5px solid var(--accent); }
.pin.runner b.pic { border-color: var(--runner); }
.pin.runner.ghost b.pic { border: 2px dashed var(--runner); }
.pin b.pic img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; pointer-events: none; }
.pin.ghost b.pic img { opacity: .55; filter: grayscale(.5); }

/* Accueil et bienvenue : haut cobalt, rayures, filigrane et grand dossard ; la feuille en dessous est unie */
.home, .welcome { background: var(--paper); }
.hero { background: var(--hero); }
.scene.dossard { background: var(--hero); }
.dossard .stripe { position: absolute; left: 0; right: 0; top: calc(var(--floor, 70%) - 2.75rem); height: 5.5rem;
  background: repeating-linear-gradient(-60deg, rgba(255, 255, 255, .14) 0 14px, transparent 14px 26px); }
.dossard .wm { position: absolute; right: -1.5rem; top: calc(var(--top) + 2.5rem); color: rgba(255, 255, 255, .1); font: italic 800 20.625rem/.8 var(--bib); letter-spacing: -.02em; white-space: nowrap; }
.bigbib { position: absolute; left: 50%; top: 0; width: 13.5rem; padding: 1.125rem 1rem .875rem; border-radius: 12px; text-align: center; color: #111214; background: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06), 0 24px 40px -18px rgba(0, 0, 0, .55); transform-origin: 50% 0; opacity: 0; transition: opacity .3s ease; }
.scene.placed .bigbib { opacity: 1; }
.scene.nobib .bigbib { opacity: 0; }
.bigbib::before { content: ""; position: absolute; inset: 9px; pointer-events: none;
  --h: color-mix(in srgb, var(--hero) 82%, #000);
  background: radial-gradient(circle at 4px 4px, var(--h) 3.5px, transparent 4.1px) 0 0 / 9px 9px no-repeat,
    radial-gradient(circle at 4px 4px, var(--h) 3.5px, transparent 4.1px) 100% 0 / 9px 9px no-repeat,
    radial-gradient(circle at 4px 4px, var(--h) 3.5px, transparent 4.1px) 0 100% / 9px 9px no-repeat,
    radial-gradient(circle at 4px 4px, var(--h) 3.5px, transparent 4.1px) 100% 100% / 9px 9px no-repeat; }
.bigbib small { display: block; color: rgba(17, 18, 20, .56); font: 800 .6875rem/1 var(--ui); text-transform: uppercase; letter-spacing: .14em; }
.bigbib b { display: block; margin: .25rem 0 .125rem; font: italic 800 7rem/.85 var(--bib); letter-spacing: -.01em; }
.bigbib.long b { font-size: 5.5rem; line-height: 1; }
.bigbib span { display: block; min-height: 1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .8125rem/1.2 var(--ui); letter-spacing: .02em; text-transform: uppercase; }
.bigbib span:empty { display: none; }
.hero-top .chip-brand, .hero-top .chip-brand.glass { height: 2.5rem; padding: 0; color: #fff; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font: italic 800 1.75rem/1 var(--bib); text-transform: uppercase; letter-spacing: .01em; }
.hero-top .chip-brand::after { display: none; }
.hero-top .chip-brand .logo { display: none; }
.hero-top .round, .hero-top .round.glass { border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-top .round::after { display: none; }
/* 0.9.42 : sur l'accueil, Amis puis la photo tout à droite, tous deux ronds ; Apparence passe dans le menu du compte.
   La photo garde un fin liseré blanc ; en mode développeur, une pastille DEV dépasse en bas. */
.hero-top .round.friends-btn, .hero-top .round.me-btn { border-radius: 50%; }
.hero-top .round.me-btn { position: relative; overflow: visible; background: none; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6); }
.hero-top .me-btn .avatar, .hero-top .me-btn .avatar.pic img { border-radius: 50%; }
.hero-top .me-btn .avatar::after { display: none; }
.hero-top .me-btn .tag.dev { position: absolute; left: 50%; bottom: -.45rem; transform: translateX(-50%); font-style: normal; font-size: .5625rem; line-height: 1.5; padding: 0 .3rem; box-shadow: 0 0 0 2px var(--hero); pointer-events: none; }
.panel.glass.thick { background: var(--paper); box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); }
.logo .tile { fill: var(--accent); }
.logo .mark { fill: #fff; }
@media (prefers-reduced-motion: reduce) { .bigbib { transition: none; } }

/* Compte à rebours de l'avance : chiffres de dossard. */
.dial-clock .clock { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: min(24vw, 6rem); letter-spacing: 0; padding-right: .06em; }
/* 3, 2, 1 (0.9.41) : le chiffre prend tout le cadran et rebondit à chaque seconde. */
.dial-clock .clock.count { font-size: min(52vw, 12rem); line-height: 1; }
.as-runner .dial-clock .clock.count { color: var(--ink); }
.as-hunter .dial-clock .clock.count { color: var(--accent); }
.dial-clock .clock.pop { animation: count-pop .9s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes count-pop { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(1); } 85% { opacity: 1; transform: scale(.96); } 100% { opacity: .2; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .dial-clock .clock.pop { animation: none; } }
/* Chiffres du profil et de la fin de partie : chiffres de dossard. */
.compass .center strong { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: min(3.25rem, 17cqw); letter-spacing: 0; padding-right: .05em; }
/* Pastille « Tu es fuyard » : texte foncé sur jaune en clair (le jaune pur sur jaune pâle ne se lit pas). */
.as-runner .role { color: var(--runner-ink); }

/* Accueil et bienvenue : une silhouette avec sa lampe sur une route de nuit (Josh Hild, Unsplash), en couleurs naturelles. Le cobalt reste
   uni en haut (logo et heure lisibles) et sous les rayures, juste au-dessus de la feuille : la photo est encadrée par la marque. */
.scene.dossard .photo { z-index: 0; height: calc(var(--floor, 72%) + 2rem); object-fit: cover; object-position: 50% 70%; filter: saturate(1.15) contrast(1.05); -webkit-mask-image: none; mask-image: none; }
/* Écran en largeur (iPad couché, ordinateur) : la bande est trop basse pour toute la photo, on garde la silhouette et sa lampe. */
@media (min-aspect-ratio: 1/1) { .scene.dossard .photo { object-position: 50% 50%; } }
.scene.dossard::after { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: calc(var(--floor, 72%) + 2rem); pointer-events: none;
  background: linear-gradient(var(--hero) calc(var(--top) + 3.25rem), color-mix(in srgb, var(--hero) 0%, transparent) calc(var(--top) + 9rem),
    color-mix(in srgb, var(--hero) 0%, transparent) calc(100% - 10.5rem), var(--hero) calc(100% - 4.75rem)); }
.scene.dossard .stripe, .scene.dossard .bigbib { z-index: 2; }
.scene.dossard .wm { display: none; }
/* 0.9.37 : plus de grand dossard au centre de l'accueil, la photo de la ville suffit. */
.scene.dossard .bigbib { display: none; }
:root[data-theme="dark"] .scene.dossard .photo { filter: brightness(.9) saturate(1.1); }

/* Recadrage de la photo de profil : la photo en grand, le carré gardé au milieu (arrondi comme les avatars),
   tout le reste sous un voile gris qui s'allège pendant qu'on la déplace pour voir où on va. */
/* Au-dessus de tout, même d'une fenêtre ouverte sur une page (Compte → Photo). */
.cover.crop { z-index: 40; background: var(--paper); }
.crop-top { display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; gap: .5rem; padding: calc(var(--top) + .5rem) 1rem .5rem; position: relative; z-index: 2; }
.crop-top .round { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.crop-top .round svg { width: 1.2rem; height: 1.2rem; }
.crop-title { margin: 0; text-align: center; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.crop-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; background: #17171a; }
.crop-stage.moving { cursor: grabbing; }
.crop-img { position: absolute; max-width: none; transform-origin: 50% 50%; will-change: transform; pointer-events: none; -webkit-user-drag: none; }
.crop-frame { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 22%; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .92), 0 0 0 100vmax rgba(18, 18, 22, .62); transition: box-shadow .25s ease; }
.crop-stage.moving .crop-frame { box-shadow: 0 0 0 2px rgba(255, 255, 255, .92), 0 0 0 100vmax rgba(18, 18, 22, .38); }
.crop-stage:focus-visible .crop-frame { box-shadow: 0 0 0 3px var(--accent), 0 0 0 100vmax rgba(18, 18, 22, .62); }
/* Les tiers apparaissent seulement pendant le geste, pour aider à centrer un visage. */
.crop-frame i { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .2s ease; overflow: hidden; }
.crop-frame i::before, .crop-frame i::after { content: ""; position: absolute; background: rgba(255, 255, 255, .45); }
.crop-frame i:first-child::before { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.crop-frame i:first-child::after { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.crop-frame i:last-child::before { top: 33.33%; left: 0; right: 0; height: 1px; }
.crop-frame i:last-child::after { top: 66.66%; left: 0; right: 0; height: 1px; }
.crop-stage.moving .crop-frame i { opacity: 1; }
.crop-foot { display: grid; gap: .9rem; padding: 1rem 1.25rem calc(var(--bottom) + 1rem); position: relative; z-index: 2; background: var(--paper); }
.crop-hint { margin: 0; text-align: center; font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.crop-zoom { display: grid; grid-template-columns: 1.25rem 1fr 1.25rem; align-items: center; gap: .75rem; color: var(--ink-2); }
.crop-zoom svg { width: 1.1rem; height: 1.1rem; display: block; }
.crop-zoom input { width: 100%; accent-color: var(--accent); margin: 0; height: 2rem; }
@media (prefers-reduced-motion: reduce) { .crop-frame, .crop-frame i { transition: none; } }

/* Comptes gardés sur ce téléphone (page Compte et écran de connexion) : la photo prend la place du carré d'icône. */
.cell.acct .avatar { width: 1.875rem; height: 1.875rem; font-size: .8125rem; }
.welcome .saved:empty { display: none; }
.welcome .saved .card { background: var(--paper-card, var(--surface)); }
.welcome .saved .or { margin: .625rem 0 .5rem; }

/* Bandeau réseau (0.9.41) : orange quand la connexion traîne, rouge quand plus rien ne passe. Un titre en Barlow,
   puis ce que ça change pour la partie. Couleur pleine, de jour comme de nuit : on doit le voir d'un coup d'œil. */
.notice[data-net], .hud ~ .notice[data-net], .alert .notice[data-net] {
  display: grid; gap: .1rem; margin-inline: 0; border-radius: var(--r-card);
  text-align: left; text-wrap: pretty; font-size: .8125rem; font-weight: 500; line-height: 1.35;
}
.head-start .notice[data-net] { margin: 1rem 0 0; }
.hud ~ .notice[data-net] { left: .75rem; right: .75rem; }
@media (min-width: 700px) { .hud ~ .notice[data-net] { left: max(.75rem, calc((100% - 46rem) / 2)); right: max(.75rem, calc((100% - 46rem) / 2)); } }
.notice[data-net] b { font-family: var(--bib); font-size: 1.0625rem; font-style: italic; font-weight: 800; letter-spacing: .02em; line-height: 1.1; text-transform: uppercase; }
.notice[data-net]::before {
  content: ""; position: absolute;
  --net-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='15' width='4' height='6' rx='1'/%3E%3Crect x='10' y='10' width='4' height='11' rx='1' opacity='.35'/%3E%3Crect x='17' y='4' width='4' height='17' rx='1' opacity='.35'/%3E%3C/svg%3E");
}
.notice[data-net="off"]::before {
  --net-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M2 8.5a15 15 0 0 1 20 0M5.5 12.5a10 10 0 0 1 13 0M9 16.4a5 5 0 0 1 6 0M12 20h.01M3 3l18 18'/%3E%3C/svg%3E");
}
.alert:has(.notice[data-net])::before { display: none; }

/* Appli trop ancienne pour le serveur (I17) : écran fixe, rien dessous ne répond. */
.update-gate { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: max(2rem, env(safe-area-inset-top)) 1.5rem max(2rem, env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink); text-align: center; }
.update-gate h1 { font-size: 1.75rem; letter-spacing: -.03em; }
.update-gate p { color: var(--ink-2); line-height: 1.45; }
.update-gate .btn { margin-top: .5rem; text-decoration: none; }

/* Pas de réseau (I15) : bandeau en haut, au-dessus de l'écran, hors partie. */
.net-bar { position: fixed; z-index: 900; left: 1rem; right: 1rem; top: calc(env(safe-area-inset-top) + .5rem); display: flex; align-items: center; font-weight: 600; }
/* Écran avec une barre du haut (Retour) : le bandeau passe dessous, le bouton reste touchable. */
body:has(.screen > .bar) .net-bar { top: calc(var(--top) + 4rem); }
body:has(.net-bar) .screen > .bar ~ .scroll { margin-top: 4.25rem; } /* le titre passe sous le bandeau */
.net-bar span::before { content: ""; width: .55rem; height: .55rem; margin-right: .6rem; border-radius: 50%; background: var(--danger); vertical-align: .05em; }
.net-bar button { min-height: 2.75rem; padding: 0 1rem; border-radius: 12px; font-weight: 700; color: var(--on-solid); background: var(--solid); }
.net-bar[data-net="slow"] { padding: .7rem 1.1rem; -webkit-backdrop-filter: none; backdrop-filter: none; /* orange fixe, comme le bandeau du salon */ }
.net-bar[data-net="slow"] span::before { background: currentColor; }
.net-bar button[aria-busy="true"] { opacity: .5; pointer-events: none; }

/* Nous contacter (0.9.47) : sujets en liens mailto, avec le chevron visible. */
.reasons.topics a { text-decoration: none; }
.reasons.topics a svg { width: 1rem; height: 1rem; flex: none; color: var(--ink-3); }
.modal p.fine { margin: -.25rem 0 1rem; font-size: .8125rem; }
/* Appareils connectés (0.9.47) : carré d'icône comme les lignes de réglages. */
.devices .ico { flex: none; display: grid; place-items: center; }
.devices .friend + .friend::before { left: 4.05rem; }
.mini.danger { color: var(--danger, #ff3b30); }
.devices .friend .txt b, .devices .friend .txt small { white-space: normal; overflow: visible; }
.devices .friend .acts .mini.round { width: 2.25rem; min-height: 2.25rem; padding: 0; border-radius: 50%; }
.devices .friend .acts .mini.round svg { width: 1.1rem; height: 1.1rem; }

/* Page Compte, version A « Dossard » (0.9.53, choisie sur maquette) : en-tête cobalt rayé comme l'accueil,
   carte du joueur avec son dossard numéroté (ordre de création du compte), chiffres en cases noires comme les minuteurs,
   icônes cobalt sans carré de couleur, titres de section en Barlow avec un petit drapeau rayé. */
.account-page .scroll {
  background:
    repeating-linear-gradient(-55deg, rgba(255, 255, 255, .13) 0 14px, transparent 14px 30px) 0 calc(var(--top) + 8.9rem) / 100% 3.4rem no-repeat local,
    linear-gradient(var(--hero), var(--hero)) 0 0 / 100% calc(var(--top) + 12.3rem) no-repeat local,
    linear-gradient(var(--paper), var(--paper)) local;
}
/* Ce que l'élasticité découvre : cobalt en haut (sous la frise), papier en bas. */
.account-page { background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, .08) 0 14px, transparent 14px 30px) 0 0 / 100% 50% no-repeat, linear-gradient(var(--hero) 50%, var(--paper) 50%); }
.account-page .scroll > .large { color: #fff; margin-bottom: 1rem; }
/* Frise de ta course : posée juste au-dessus du titre, cachée au repos, elle descend et apparaît quand on tire l'en-tête vers le bas. */
.frise { visibility: hidden; position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(100% - var(--top) - 3.75rem); height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; padding: 0 1.5rem 1.75rem; color: rgba(255, 255, 255, .8); pointer-events: none; }
.frise > * { opacity: var(--pull, 0); }
.frise-q { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.375rem; line-height: 1; text-transform: uppercase; color: #ffd21f; }
.frise-l { position: relative; display: grid; gap: .875rem; margin: 0; padding: 0 0 0 1.375rem; list-style: none; }
.frise-l li { position: relative; font-size: .9375rem; line-height: 1.25; }
.frise-l li::before { content: ""; position: absolute; left: -1.375rem; top: .3rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--hero); box-shadow: 0 0 0 2px #fff; }
/* Trait pointillé d'un point au suivant : il s'arrête au dernier. */
.frise-l li:not(:last-child)::after { content: ""; position: absolute; left: calc(-1.025rem - 1px); top: 1.2rem; bottom: -1.05rem; width: 2px; background: repeating-linear-gradient(rgba(255, 255, 255, .6) 0 6px, transparent 6px 11px); }
.frise-l li:last-child::before { background: #ffd21f; box-shadow: 0 0 0 2px #ffd21f, 0 0 0 6px rgba(255, 210, 31, .25); }
.frise-l b { display: block; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.125rem; line-height: 1.1; text-transform: uppercase; color: #fff; }
.account-page .bar:not(.stuck) .round { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.prof { position: relative; margin: 0 0 1.75rem; padding: 1.125rem 1.125rem 1rem; border-radius: 28px; background: var(--paper-card); box-shadow: var(--lift), 0 14px 30px -18px rgba(0, 0, 0, .55); }
.prof-top { display: flex; align-items: center; gap: 1rem; }
.prof-bib { position: relative; flex: none; display: grid; justify-items: center; gap: .2rem; border-radius: 12px; background: #fff; transform: rotate(-5deg); box-shadow: 0 0 0 2px var(--accent), 0 8px 16px -8px rgba(0, 0, 0, .55); }
.prof-bib::before, .prof-bib::after { content: ""; position: absolute; border-radius: 50%; background: rgba(17, 18, 20, .18); }

.prof-bib .avatar.big { border-radius: 50%; }
.prof-bib .avatar::after { display: none; }
.prof-bib small { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: .875rem; line-height: 1; letter-spacing: .04em; color: #2b44ff; white-space: nowrap; }
.prof-who { min-width: 0; }
.prof-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.875rem; line-height: 1.15; text-transform: uppercase; } /* .95 rognait les jambages */
.prof-at { margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: .9375rem; }
.prof .counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .375rem; margin-top: 1rem; }
.prof .counts span { min-width: 0; padding: .5rem .625rem .45rem; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); } /* gris léger : le noir pesait trop en thème clair (Tom, 2026-11-14) */
.prof .counts b { display: block; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.prof .counts small { display: block; margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.prof-acts { display: flex; gap: .5rem; margin-top: .75rem; }
.prof-acts .mini { flex: 1; min-height: 2.75rem; border-radius: 12px; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); background: none; box-shadow: inset 0 0 0 1.5px var(--sep); }
.prof-acts .mini.solid { color: var(--on-accent); background: var(--accent); box-shadow: none; }
.account-page .sect-h { display: flex; align-items: center; gap: .5rem; margin: 0 .125rem .625rem; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.375rem; line-height: 1; letter-spacing: 0; text-transform: uppercase; color: var(--ink); }
.account-page .sect-h::before { content: ""; flex: none; width: .875rem; height: 1.125rem; border-radius: 2px; background: repeating-linear-gradient(-55deg, var(--accent) 0 3px, transparent 3px 6px); }
.account-page .card.icons { border-radius: 18px; background: var(--paper-card); box-shadow: var(--lift); }
.account-page .cell .ico { width: 1.375rem; height: 1.375rem; border-radius: 0; color: var(--accent-ink); background: none; box-shadow: none; }
.account-page .cell .ico svg { width: 1.25rem; height: 1.25rem; }
.account-page .cell .ico.brand { color: var(--ink); }
.account-page .cell .ico.g { color: #4285f4; background: none; box-shadow: none; font: 800 1.125rem/1 var(--ui); }
.account-page .card.icons .cell + .cell::before { left: 3.125rem; }
.account-page .val.tag { flex: none; max-width: none; padding: .3rem .45rem .22rem; border-radius: 6px; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: .875rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: #111214; background: var(--runner); }
.account-page .val.tag.off { color: var(--ink-2); background: none; box-shadow: inset 0 0 0 1.5px var(--sep); }
.account-page .btn.out { width: 100%; margin: .25rem 0 .75rem; color: var(--danger); }
.account-page .btn.plain.danger { width: 100%; margin-top: 0; }

/* Photo de profil en grand (0.9.55) : appui long sur une photo, comme sur Instagram (peek.js). Le rond part de la petite
   photo et grandit au centre, le fond se floute ; elle reste quand on lâche, un toucher n'importe où la referme. */
.avatar.pic img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.photo-peek { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color .28s ease, -webkit-backdrop-filter .28s ease, backdrop-filter .28s ease; }
.photo-peek:not(.on) { pointer-events: none; }
.photo-peek.on { background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.photo-peek img { display: block; border-radius: 50%; object-fit: cover; background: var(--fill-2); transform: var(--from); box-shadow: 0 0 0 0 transparent; transition: transform .34s cubic-bezier(.22, 1, .36, 1), box-shadow .34s ease; }
.photo-peek.on img { transform: none; box-shadow: 0 28px 70px -24px rgba(0, 0, 0, .7), 0 0 0 .5px rgba(255, 255, 255, .12); }
@media (prefers-reduced-motion: reduce) {
  .photo-peek img { transform: none; opacity: 0; transition: opacity .15s ease; }
  .photo-peek.on img { opacity: 1; }
}

/* Toute l'appli à la DA Dossard (retours du 2026-11-10, sur le build 14) : ce qu'avait déjà la page Compte
   vaut partout — icônes cobalt sans carré de couleur, titres de section en Barlow avec le petit drapeau rayé,
   cartes blanches (marine en sombre) relevées. Rouge pour ce qui arrête ou supprime, jaune foncé pour les fuyards. */
.cell .ico { width: 1.375rem; height: 1.375rem; border-radius: 0; color: var(--accent-ink); background: none; box-shadow: none; }
.cell .ico svg { width: 1.25rem; height: 1.25rem; }
.cell .ico[style*="--danger"], .cell.danger .ico { color: var(--danger); }
.cell .ico[style*="--runner"] { color: var(--runner-ink); }
.cell .ico[style*="#8e8e93"] { color: var(--ink-2); }
.cell .ico.brand { color: var(--ink); }
.cell .ico.g { color: #4285f4; background: none; box-shadow: none; font: 800 1.125rem/1 var(--ui); }
:root[data-theme="dark"] .cell .ico[style*="#000"] { color: var(--ink); background: none; }
.card.icons .cell + .cell::before { left: 3.125rem; }
.card.icons { border-radius: 18px; background: var(--paper-card); box-shadow: var(--lift); }
.modal .card.icons { background: var(--paper-card); }
.sect-h { display: flex; align-items: center; gap: .5rem; margin: 0 .125rem .625rem; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.25rem; line-height: 1; letter-spacing: 0; text-transform: uppercase; color: var(--ink); }
.sect-h::before { content: ""; flex: none; width: .8125rem; height: 1rem; border-radius: 2px; background: repeating-linear-gradient(-55deg, var(--accent) 0 3px, transparent 3px 6px); }
.sect-h span { font-family: var(--ui); font-style: normal; font-weight: 600; font-size: .8125rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.modal .sect-h { font-size: 1.125rem; margin-top: 1rem; }
.val.tag { flex: none; max-width: none; padding: .3rem .45rem .22rem; border-radius: 6px; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: .875rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: #111214; background: var(--runner); }
.val.tag.off { color: var(--ink-2); background: none; box-shadow: inset 0 0 0 1.5px var(--sep); }

/* Fenêtres du bas posées sur le bord de l'écran : plus de bande où la page dessous se voit (2026-11-10).
   Coins du bas laissés à l'écran lui-même ; le contenu reste au-dessus de la barre d'accueil. */
.modal { left: 0; right: 0; bottom: var(--kb, 0px); padding-bottom: max(1.25rem, calc(var(--bottom) + .5rem - var(--kb) * 10)); border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
html[data-kb] .modal { padding-bottom: 1rem; }
/* Fenêtres d'outils (essai, développeur) : elles s'arrêtent sous les boutons de la carte, qui ne dépassent plus derrière leurs coins. */
.modal.tools { max-height: calc(100dvh - var(--kb, 0px) - var(--top) - 4.75rem); }
@media (min-width: 700px) { .modal { left: var(--gut); right: var(--gut); } }
:root[data-theme="dark"] .modal.glass.thick { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 -10px 40px rgba(0, 0, 0, .55); }
.scrim { background: rgba(4, 8, 24, .45); }

/* Appareils connectés : même liste que le reste, l'appareil utilisé marqué d'une étiquette jaune. */
.devices .ico { width: 1.75rem; height: 2.4rem; border-radius: 0; color: var(--accent-ink); background: none; }
.devices .ico svg { width: 1.375rem; height: 1.375rem; }
.devices .ico.off { color: var(--ink-2); }
.devices .me-tag { display: inline-block; vertical-align: .12em; margin: 0 0 0 .35rem; padding: .25rem .4rem .17rem; border-radius: 5px; font-family: var(--bib); font-style: italic; font-weight: 800; font-size: .75rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: #111214; background: var(--runner); }

/* Dossard de la page Compte : la photo prend presque tout le dossard, et en sombre le dossard est marine, pas blanc. */
.prof-bib { width: 5.75rem; padding: .62rem .3rem .32rem; }
.prof-bib .avatar.big { width: 5rem; height: 5rem; font-size: 2.5rem; }
.prof-bib .avatar.big.two { font-size: 2rem; }
.prof-bib::before, .prof-bib::after { top: .22rem; width: .32rem; height: .32rem; }
.prof-bib::before { left: .45rem; } .prof-bib::after { right: .45rem; }
:root[data-theme="dark"] .prof-bib { background: #222f63; box-shadow: 0 0 0 2px var(--accent), 0 8px 16px -8px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .prof-bib::before, :root[data-theme="dark"] .prof-bib::after { background: rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .prof-bib small { color: #c3cbff; }

/* Sélecteurs à plusieurs choix, façon iOS 26 : la pastille (cobalt, texte blanc) se soulève en lentille de verre quand
   on la touche ou qu'elle file d'une case à l'autre, puis se repose pleine (ui.js). */
.seg { touch-action: pan-y; -webkit-user-select: none; user-select: none; --lens: rgba(255, 255, 255, .66); --lens-rim: rgba(43, 68, 255, .3); --lens-drop: rgba(20, 30, 90, .22); }
:root[data-theme="dark"] .seg { --lens: rgba(255, 255, 255, .13); --lens-rim: rgba(141, 155, 255, .5); --lens-drop: rgba(0, 0, 0, .6); }
.seg .thumb { background: var(--accent); box-shadow: 0 6px 14px -8px var(--accent); transform-origin: center; will-change: transform;
  transition: background-color .22s, box-shadow .22s, scale .45s cubic-bezier(.3, 1.6, .45, 1); }
.seg.held .thumb, .seg .thumb.lift { background: var(--lens); -webkit-backdrop-filter: blur(4px) saturate(180%); backdrop-filter: blur(4px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--lens-rim), inset 0 1.5px 1px var(--edge), inset 0 -8px 14px -10px var(--accent), 0 10px 22px -8px var(--lens-drop); }
.seg.held .thumb { scale: 1.1 1.22; }
.seg button { transition: color .15s, scale .35s cubic-bezier(.3, 1.6, .45, 1); }
.seg button[aria-pressed="true"] { color: var(--on-accent); }
.seg.held button[aria-pressed="true"], .seg:has(> .thumb.lift) button[aria-pressed="true"] { color: var(--accent-ink); }
.seg.held:not(.dragging) button[aria-pressed="true"] { scale: 1.06; }
.seg.dragging button[aria-pressed="true"]:not(.over) { color: var(--ink-2); }
.seg.dragging button.over { color: var(--accent-ink); scale: 1.06; }
@media (prefers-reduced-transparency: reduce) { .seg.held .thumb, .seg .thumb.lift { background: var(--paper-card); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Joueurs de la fenêtre développeur : même carte papier que les listes, boutons en pastilles grises. */
.modal .bot-list { border-radius: 18px; background: var(--paper-card); box-shadow: var(--lift); }
.modal .bot-list .mini { background: var(--fill); }
.bot-head strong { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .01em; }
.mode-top { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 1.375rem; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }

/* Mode personnalisé (2026-11-10) : valeur libre au − / +, gros chiffre façon dossard. */
.stepper { display: grid; grid-template-columns: 3.25rem 1fr 3.25rem; align-items: center; gap: .5rem; padding: .5rem; border-radius: 18px; background: var(--paper-card); box-shadow: var(--lift); }
.stepper output { text-align: center; font: 600 1rem/1 var(--ui); color: var(--ink-2); }
.stepper output b { font-family: var(--bib); font-style: italic; font-weight: 800; font-size: 2.125rem; letter-spacing: .01em; color: var(--ink); }
.step-btn { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 10px; color: var(--accent-ink); background: var(--fill); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.step-btn svg { width: 1.375rem; height: 1.375rem; stroke-width: 2.6; }
.step-btn:disabled { color: var(--ink-3); opacity: .5; }
.ping-own { display: grid; gap: .625rem; margin-top: .875rem; }
.ping-own[hidden] { display: none; }
.ping-own .own-l { margin: 0 .125rem; font: 600 .9375rem/1.2 var(--ui); color: var(--ink-2); }
.seg[data-seg="pace"] button { font-size: .9375rem; }

/* Viseur de la partie d'essai, plus discret (2026-11-10) : petit rond de 22 px, point au centre,
   quatre traits courts dehors, au lieu du rond de 56 px barré de part en part. */
.aim { width: 1.375rem; height: 1.375rem; margin: -.6875rem 0 0 -.6875rem; border-width: 1.5px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(0 0 0 / .35), 0 1px 4px rgb(0 0 0 / .3);
  background: radial-gradient(circle, #fff 0 2px, rgb(0 0 0 / .4) 2px 3px, transparent 3px); }
.aim::before { top: -.4375rem; bottom: -.4375rem; width: 1.5px; margin-left: -.75px;
  -webkit-mask: linear-gradient(#000 0 .3125rem, transparent 0 calc(100% - .3125rem), #000 0); mask: linear-gradient(#000 0 .3125rem, transparent 0 calc(100% - .3125rem), #000 0); }
.aim::after { left: -.4375rem; right: -.4375rem; height: 1.5px; margin-top: -.75px;
  -webkit-mask: linear-gradient(90deg, #000 0 .3125rem, transparent 0 calc(100% - .3125rem), #000 0); mask: linear-gradient(90deg, #000 0 .3125rem, transparent 0 calc(100% - .3125rem), #000 0); }

/* Popups en Dossard (0.9.64) : toasts, bandeau réseau, bandeau de partie et bandeau du
   salon passent de la pilule en verre à une carte pleine, comme le reste de l'appli : une pastille carrée de couleur
   avec son signe, un texte franc, le titre en Barlow quand il y en a un. Bleu pour une info, coché pour ce qui a marché,
   orange pour une alerte de jeu, rouge pour une erreur. Elles descendent du haut et y remontent, sans rebond. */
:root {
  --pop-warn: #ff9f0a; --on-pop-warn: #1c1204; --pop-bad: #d63027;
  --g-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --g-bang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 5.5v8.5M12 18.6v.01'/%3E%3C/svg%3E");
  --g-join: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='9.5' cy='8' r='3.6'/%3E%3Cpath d='M3 20a6.5 6.5 0 0113 0M19 8v6M16 11h6'/%3E%3C/svg%3E");
  --g-leave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='9.5' cy='8' r='3.6'/%3E%3Cpath d='M3 20a6.5 6.5 0 0113 0M16 11h6'/%3E%3C/svg%3E");
  --g-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 10.5v8M12 5.6v.01'/%3E%3C/svg%3E");
  --g-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M2 8.5a15 15 0 0 1 20 0M5.5 12.5a10 10 0 0 1 13 0M9 16.4a5 5 0 0 1 6 0M12 20h.01M3 3l18 18'/%3E%3C/svg%3E");
  --g-slow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='15' width='4' height='6' rx='1'/%3E%3Crect x='10' y='10' width='4' height='11' rx='1' opacity='.35'/%3E%3Crect x='17' y='4' width='4' height='17' rx='1' opacity='.35'/%3E%3C/svg%3E");
}

/* La carte commune */
.toast, .net-bar, .hud ~ .notice, .notice[data-net], .hud ~ .notice[data-net], .alert .notice[data-net] {
  color: var(--ink); background: var(--paper-card); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: var(--lift), 0 0 0 .5px var(--hole);
}
/* La pastille : un carré arrondi plein, le signe découpé dedans (blanc, ou encre sur l'orange). */
.toast > span, .net-bar .ic { position: relative; flex: none; width: 2.25rem; height: 2.25rem; border-radius: .7rem; background: var(--tone, var(--accent)); color: var(--on-tone, #fff); }
.toast > span::after, .net-bar .ic::after {
  content: ""; position: absolute; inset: .45rem; background: currentColor;
  -webkit-mask: var(--glyph, var(--g-info)) center / contain no-repeat; mask: var(--glyph, var(--g-info)) center / contain no-repeat;
}
[data-kind="ok"] { --glyph: var(--g-ok); }
[data-kind="warn"] { --tone: var(--pop-warn); --on-tone: var(--on-pop-warn); --glyph: var(--g-bang); }
[data-kind="bad"] { --tone: var(--pop-bad); --glyph: var(--g-bang); }
.toast[data-who="join"] { --glyph: var(--g-join); }
.toast[data-who="leave"] { --glyph: var(--g-leave); }
.net-bar[data-net="off"] { --tone: var(--pop-bad); --glyph: var(--g-off); }
:root { --pop-warn-ink: #b25e00; }
:root[data-theme="dark"] { --pop-warn-ink: #ff9f0a; --pop-bad: #e5483d; --paper: #0e1733; --paper-card: #18244a; --surface: #18244a; --glass: rgba(24, 36, 74, .62); --glass-thick: rgba(18, 28, 60, .74); --veil: rgba(6, 11, 30, .55); --lift: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 30px -14px rgba(2, 6, 24, .85); --hole: rgba(2, 6, 24, .5); --hero: #13208c; --hero-deep: #0e1870; --accent: #5266fa; --accent-ink: #8d9bff; --accent-soft: rgba(82, 102, 250, .2); --runner: #ffd21f; --runner-ink: #ffd21f; --runner-soft: rgba(255, 210, 31, .2); --ok: #3ed68f; --ink: #f4f5f7; --ink-2: rgba(244, 245, 247, .72); --ink-3: rgba(244, 245, 247, .56); --solid: #f4f5f7; --on-solid: #111214; --bg: var(--paper); --outer: var(--paper); --zone-out: rgba(0, 0, 0, .42); }
.net-bar[data-net="slow"] { --tone: var(--pop-warn); --on-tone: var(--on-pop-warn); --glyph: var(--g-slow); }

/* Toast */
.toast { gap: .75rem; padding: .5rem 1rem .5rem .5rem; border-radius: 1.125rem; font-weight: 600; font-size: .9375rem; line-height: 1.3; letter-spacing: -.01em;
  animation: pop-in .42s cubic-bezier(.2, .9, .3, 1); transition: opacity .26s ease, transform .26s cubic-bezier(.4, 0, .9, .6); }
.toast p { margin: 0; text-wrap: pretty; }
.toast { touch-action: none; -webkit-user-select: none; user-select: none; } /* se chasse d'un glissé vers le haut */
.toast.out, .net-bar.out { opacity: 0; transform: translateY(-.9rem) scale(.96); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-.9rem) scale(.96); } }

/* Bandeau réseau hors partie */
.net-bar { justify-content: flex-start; gap: .75rem; padding: .5rem; border-radius: 1.25rem; font-size: .9375rem; color: var(--ink);
  animation: pop-in .42s cubic-bezier(.2, .9, .3, 1); transition: opacity .26s ease, transform .26s cubic-bezier(.4, 0, .9, .6); }
.net-bar[data-net="slow"] { padding: .5rem 1rem .5rem .5rem; color: var(--ink); background: var(--paper-card); }
.net-bar p { flex: 1; min-width: 0; margin: 0; }
.net-bar b { display: block; font-family: var(--bib); font-size: 1.1875rem; font-style: italic; font-weight: 800; line-height: 1; letter-spacing: .005em; text-transform: uppercase; }
.net-bar small { display: block; margin-top: .15rem; color: var(--ink-2); font-size: .8125rem; font-weight: 500; line-height: 1.25; }
.net-bar span::before { display: none; }
.net-bar button { flex: none; min-height: 2.75rem; padding: 0 1rem; border-radius: .875rem; color: var(--on-accent); background: var(--accent);
  font-family: var(--bib); font-size: 1.0625rem; font-style: italic; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
@media (min-width: 700px) { .net-bar { left: max(1rem, calc((100% - 30rem) / 2)); right: max(1rem, calc((100% - 30rem) / 2)); } }

/* Bandeaux réseau de la partie et du salon : même carte, la pastille dessinée par ::before (fond) et ::after (signe). */
.notice[data-net], .hud ~ .notice[data-net], .alert .notice[data-net], .notice[data-net="off"], .hud ~ .notice[data-net="off"], .alert .notice[data-net="off"] {
  min-height: 3.25rem; padding: .55rem .9rem .6rem 3.5rem; color: var(--ink); background: var(--paper-card); align-content: center;
  --tone: var(--pop-warn); --on-tone: var(--on-pop-warn); --glyph: var(--g-slow);
}
.notice[data-net="off"], .hud ~ .notice[data-net="off"], .alert .notice[data-net="off"] { --tone: var(--pop-bad); --on-tone: #fff; --glyph: var(--g-off); }
.notice[data-net]::before {
  left: .5rem; top: 50%; width: 2.25rem; height: 2.25rem; margin-top: -1.125rem; border-radius: .7rem;
  background: var(--tone); -webkit-mask: none; mask: none;
}
.notice[data-net]::after {
  content: ""; position: absolute; left: .95rem; top: 50%; width: 1.35rem; height: 1.35rem; margin-top: -.675rem; background: var(--on-tone);
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.notice[data-net] { color: var(--ink-2); }
.notice[data-net] b { color: var(--ink); }

/* Bandeau d'état de la partie (sans réseau en cause) : carte pleine plutôt que verre. */
.hud ~ .notice { box-shadow: var(--lift), 0 0 0 .5px var(--hole); }

/* Bandeau du salon (position refusée…) : la pastille rouge carrée au lieu du point. */
.alert.bad::before { width: 2.25rem; height: 2.25rem; border-radius: .7rem; box-shadow: none; background: var(--pop-bad);
  -webkit-mask: none; mask: none; }
.alert.bad { position: relative; border-radius: 26px; }
.alert.bad::after { content: ""; position: absolute; left: 1.45rem; top: 50%; width: 1.35rem; height: 1.35rem; margin-top: -.675rem; background: #fff;
  -webkit-mask: var(--g-bang) center / contain no-repeat; mask: var(--g-bang) center / contain no-repeat; }
.alert:has(.notice[data-net])::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .toast, .net-bar { animation: fade-in .2s ease; transition: opacity .2s ease; }
  .toast.out, .net-bar.out { transform: none; }
}
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-contrast: more) {
  .toast, .net-bar, .hud ~ .notice, .notice[data-net] { box-shadow: 0 0 0 1.5px var(--ink); }
}
.alert .notice { text-align: left; text-wrap: pretty; }
/* Salon sans réseau : le bandeau entier est la carte, sans carte dedans ; Réessayer comme celui du bandeau du haut. */
.alert:has(.notice[data-net]) { padding: .5rem .5rem .5rem 0; background: var(--paper-card); box-shadow: var(--lift), 0 0 0 .5px var(--hole); }
.alert .notice[data-net] { flex: 1; min-height: 0; padding-block: .2rem; background: none; box-shadow: none; }
.alert .btn { min-height: 2.75rem; padding: 0 1rem; border-radius: .875rem; font-size: 1.0625rem; }

/* Prépare ton téléphone (prep.js) : une étape par autorisation, ce qu'elle apporte, et où la régler si iOS ne peut plus demander. */
.modal .prep { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .875rem; }
.prep-step { display: flex; gap: .75rem; align-items: flex-start; text-align: left; }
.prep-ico { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .625rem; color: #fff; background: var(--accent); }
.prep-ico svg { width: 1.25rem; height: 1.25rem; }
.prep-step.settings .prep-ico { background: var(--danger); }
.prep-step.ok .prep-ico { background: var(--fill); color: var(--ok); }
.prep-step b { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; font-size: 1rem; font-weight: 600; letter-spacing: -.012em; color: var(--ink); line-height: 1.3; padding-top: .1rem; }
.prep-step b em { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--ok); }
.prep-step.ok b { padding-top: .5rem; }
.modal .prep-step p { margin: .2rem 0 0; font-size: .875rem; line-height: 1.4; }
.modal .prep-step p.prep-how { margin-top: .4rem; color: var(--ink); font-weight: 600; }
/* Rangées « À régler sur ton téléphone » du salon : l'action à faire, écrite en clair. */
.cell .fix-tag { flex: none; margin-left: auto; padding: .2rem .55rem; border-radius: 99px; font-size: .8125rem; font-weight: 600; color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.cell .fix-tag.soft { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* Alerte de proximité du fuyard (audit I12, 2026-11-11) : trois cercles, 250, 100 et 50 m, qui se remplissent quand un
   chasseur approche. Couleur des chasseurs (cobalt) puis rouge à 50 m. Pas de direction, pas de distance exacte. */
.prox { --prox: var(--accent); }
.prox[data-level="3"] { --prox: var(--danger); }
.prox svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.prox .ring { fill: var(--prox); fill-opacity: 0; stroke: var(--ink); stroke-opacity: .16; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; transition: fill-opacity .45s ease, stroke-opacity .45s ease, stroke .45s ease; }
.prox[data-level="1"] .r1, .prox[data-level="2"] :is(.r1, .r2), .prox[data-level="3"] .ring { fill-opacity: .13; stroke: var(--prox); stroke-opacity: .75; stroke-width: 1.6; }
.prox[data-level="1"] .r1 { animation: prox-beat 2.6s ease-in-out infinite; }
.prox[data-level="2"] .r2 { animation: prox-beat 1.7s ease-in-out infinite; }
.prox[data-level="3"] .r3 { animation: prox-beat 1s ease-in-out infinite; fill-opacity: .3; }
@keyframes prox-beat { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.06); } }
.prox .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.prox .lt { font-size: .8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: .1rem; }
.prox .lt[hidden] { display: none; }
.prox[data-level="3"] .center strong { color: var(--danger); }
.prox[data-level="none"] .center strong { color: var(--ink-3); }
.prox-line { position: relative; margin-top: 1.25rem; padding: 0 1.5rem; font-weight: 600; font-size: 1.0625rem; color: var(--ink); text-align: center; text-wrap: balance; }
.prox-view .threat { margin-top: .4rem; }
@media (prefers-reduced-motion: reduce) { .prox .ring { animation: none !important; transition: none; } }
/* Règles du salon : une couleur par réglage, pour les repérer d'un coup d'œil (Tom, 2026-11-12). Contraste 3:1 au moins. */
:root { --ic-orange: #c25e00; --ic-teal: #00798c; --ic-green: #1f7a3a; --ic-purple: #8a3fb8; --ic-red: #c4281f; }
:root[data-theme="dark"] { --ic-orange: #ff9f0a; --ic-teal: #5ac8fa; --ic-green: #3ed68f; --ic-purple: #bf5af2; --ic-red: #ff5c50; }
[data-rules-box] .cell .ico { color: var(--c); }
