:root {
  --bg: #0b0d12; --panel: #12151d; --panel2: #171b25; --line: #232838;
  --ink: #e9ecf5; --muted: #8b93a7; --me: #3b5bdb; --you: #232838;
  --accent: #6d8bff; --danger: #ff6b6b; --ok: #45d17a;
  --safe-t: env(safe-area-inset-top); --safe-b: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--ink); overflow: hidden;
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
button { font: inherit; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }

/* ---- voile anti-capture ---- */
#veil {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: none; align-items: center; justify-content: center;
  color: var(--muted); letter-spacing: .3em; text-transform: uppercase; font-size: 14px;
}
#veil.on { display: flex; }

/* ---- filigrane ---- */
#wm {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="150"><text x="8" y="80" transform="rotate(-22 100 75)" fill="%23ffffff" fill-opacity="0.045" font-family="sans-serif" font-size="26">Moi</text></svg>');
}

/* ---- écrans ---- */
.screen { display: none; flex: 1; min-height: 0; flex-direction: column; }
.screen.on { display: flex; }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.pad { padding: calc(24px + var(--safe-t)) 24px calc(24px + var(--safe-b)); }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 17px; margin: 0 0 4px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 13px; }
.spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.field {
  width: 100%; max-width: 460px; background: var(--panel2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px;
  user-select: text; -webkit-user-select: text; -webkit-touch-callout: default;
}
.btn { width: 100%; max-width: 460px; border: 0; border-radius: 12px; padding: 13px 16px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .5; }
.btn.primary { background: var(--me); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.btn.small { width: auto; padding: 7px 11px; font-size: 13px; border-radius: 10px; }

/* ---- barres ---- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + var(--safe-t)) 14px 10px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.bar .title { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#peer-status { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 4px; }
#peer-status.on { color: var(--ok); }
.icon { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; min-width: 40px; height: 40px; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon.send { background: var(--me); color: #fff; border: 0; }

/* ---- onglets ---- */
.tab { display: none; flex: 1; min-height: 0; overflow-y: auto; }
.tab.on { display: block; }
#tabbar { display: flex; border-top: 1px solid var(--line); background: var(--panel); padding-bottom: var(--safe-b); }
#tabbar button { flex: 1; background: none; border: 0; color: var(--muted); padding: 12px 4px; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; }
#tabbar button.on { color: var(--ink); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.badge:empty { display: none; }

/* ---- listes ---- */
.list { display: flex; flex-direction: column; }
.section-title { padding: 16px 16px 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0;
  color: var(--ink); text-align: left; width: 100%;
}
.row-item.tap { cursor: pointer; }
.row-item.stack { flex-direction: column; align-items: stretch; }
.row-item.stack .actions { justify-content: flex-start; }
.row-item.tap:active { background: var(--panel2); }
.who-line { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.uname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.dot.on { background: var(--ok); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.meta-right { display: flex; align-items: center; gap: 6px; flex: none; }
.empty { padding: 12px 16px; }
.searchbar { padding: 12px 16px 0; }
.searchbar .field { max-width: none; }

/* ---- moi ---- */
.cards { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card .field, .card .btn { max-width: none; }
.big-name { font-size: 20px; font-weight: 700; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.switch-row input { width: 22px; height: 22px; }
.lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }
.state { background: var(--panel2); border-radius: 12px; padding: 10px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.btn-row { display: flex; gap: 8px; }
.cards > .btn { max-width: none; }

/* ---- fil ---- */
#log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; }
.row.me { justify-content: flex-end; }
.row.you { justify-content: flex-start; }
.bubble { max-width: 78%; background: var(--you); border-radius: 16px; padding: 8px 11px; }
.row.me .bubble { background: var(--me); }
.who { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.row.me .who { color: #cdd7ff; }
.txt { white-space: pre-wrap; word-break: break-word; user-select: text; -webkit-user-select: text; }
.meta { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.row.me .meta { color: #cdd7ff; justify-content: flex-end; }
.link { background: none; border: 0; color: inherit; text-decoration: underline; font-size: 11px; cursor: pointer; padding: 0; }
.media img, .media video { max-width: 100%; border-radius: 10px; display: block; }
.chip { display: inline-block; background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer; text-decoration: none; }

/* ---- composer ---- */
#composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--safe-b)); background: var(--panel); border-top: 1px solid var(--line); }
#text { flex: 1; resize: none; max-height: 140px; background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; font: inherit; user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }

/* ---- menu ---- */
#menu { position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,.5); display: none; align-items: flex-end; }
#menu.on { display: flex; }
.sheet { width: 100%; background: var(--panel); border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.sheet .btn { max-width: none; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet select { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; }

/* ---- toast ---- */
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--safe-b)); z-index: 1100; background: #000; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90%; text-align: center; }
#toast.show { opacity: .95; }
#toast.bad { background: #7a1f1f; }
[hidden] { display: none !important; }

.flame { font-size: 13px; font-weight: 700; flex: none; }
.icon.recording { background: #e5484d; color: #fff; border: 0; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.media audio { width: 240px; max-width: 100%; display: block; }

.webbar { display: flex; gap: 8px; padding: 10px 12px; }
.web-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px 8px; }
.web-mem { padding: 0 12px 8px; font-size: 13px; }
#web-view { flex: 1; min-height: 0; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
#web-view iframe { width: 100%; flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.web-block { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 20px; }
#tab-web.on { display: flex; flex-direction: column; }

.row.center { justify-content: center; }
.game { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; max-width: 320px; }
.game-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.game-status { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.board { display: grid; gap: 4px; }
.board.ttt { grid-template-columns: repeat(3, 1fr); }
.board.c4 { grid-template-columns: repeat(7, 1fr); background: #1b3a8a; padding: 6px; border-radius: 10px; gap: 3px; }
.board .cell { aspect-ratio: 1; border: 0; border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 22px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.board.ttt .cell { border: 1px solid var(--line); }
.board .cell:disabled { cursor: default; }
.board .cell.last { outline: 2px solid var(--me); }
.board.ttt .cell.p1 { color: #4c86ff; }
.board.ttt .cell.p2 { color: #e5a23d; }
.board.c4 .cell { background: #12245e; border-radius: 50%; }
.board.c4 .disc { width: 78%; aspect-ratio: 1; border-radius: 50%; background: #0d1836; display: block; }
.board.c4 .disc.p1 { background: #e5484d; }
.board.c4 .disc.p2 { background: #f5c542; }
.game-pick { display: none; gap: 8px; padding: 8px 12px; }
.game-pick.on { display: flex; }

.newgroup { margin: 0 0 8px; align-self: flex-start; }
.gc-card { max-height: 80vh; }
.gc-list { max-height: 42vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; margin: 4px 0; }
.gc-row { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--ink); cursor: pointer; text-align: left; }
.gc-row.on { border-color: var(--me); }
.gc-row .uname { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.gc-row > .nm { min-width: 0; flex: 0 1 auto; }
.gc-check { color: var(--me); font-weight: 800; width: 16px; }

.call-in { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-start; justify-content: center; z-index: 60; padding-top: 12vh; }
.call-in-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; width: 92%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.call-in-title { font-weight: 700; font-size: 17px; }
.call-in .btn-row { justify-content: center; }
.call-ov { position: fixed; inset: 0; background: #000; z-index: 70; display: flex; align-items: center; justify-content: center; }
.call-remote { width: 100%; height: 100%; object-fit: contain; background: #000; }
.call-ov.audio .call-remote { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.call-local { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 96px; max-width: 30vw; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: #111; object-fit: cover; }
.call-ov.audio .call-local { display: none; }
.call-title { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.call-status { position: absolute; top: calc(40px + env(safe-area-inset-top)); left: 16px; color: #d7dbe8; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.call-controls { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; gap: 18px; justify-content: center; }
.call-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; cursor: pointer; }
.call-btn.off { background: rgba(255,255,255,.4); }
.call-btn.hang { background: #e5484d; transform: rotate(135deg); }

.lock-ov { position: fixed; inset: 0; background: var(--bg); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lock-card { width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lock-title { font-size: 20px; font-weight: 700; }
.lock-sub { min-height: 16px; text-align: center; }
.lock-dots { display: flex; gap: 22px; margin: 10px 0 18px; }
.lock-dot { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #e8eaf2; transition: background .12s; }
.lock-dot.on { background: #e8eaf2; }
.lock-dot.pop { animation: lk-pop .18s ease-out; }
@keyframes lk-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.lock-dots.shake { animation: lk-shake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes lk-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-11px); } 40%, 60% { transform: translateX(11px); } }
.lock-dots.ok .lock-dot { background: #47e891; border-color: #47e891; }
.lock-pad { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px 26px; }
.lock-key { width: 78px; height: 78px; border-radius: 50%; border: 0; background: rgba(255,255,255,.13); color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; -webkit-tap-highlight-color: transparent; transition: background .35s; }
.lock-key.down { background: rgba(255,255,255,.42); transition: none; }
.lk-d { font-size: 34px; font-weight: 400; line-height: 1; }
.lk-l { font-size: 10px; font-weight: 600; letter-spacing: 2px; line-height: 1; margin-top: 3px; min-height: 10px; }
.lock-key.back { background: transparent; font-size: 16px; }
.lock-key.back.down { background: transparent; opacity: .5; }
.lk-txt { font-size: 16px; }
.lock-user { display: none; flex-direction: column; gap: 10px; width: 100%; }

/* ---- fond d'écran perso ---- */
#wallpaper { position: fixed; inset: 0; z-index: 0; display: none; background: #000; pointer-events: none; }
#wallpaper.on { display: block; }
#wallpaper img, #wallpaper video { width: 100%; height: 100%; object-fit: cover; display: block; }
#wallpaper .wp-dim { position: absolute; inset: 0; background: #000; }
#app { z-index: 1; }
body.has-wp { background: #000; }
body.has-wp .bar, body.has-wp #tabbar, body.has-wp #composer { background: rgba(18,21,29,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.has-wp .card { background: rgba(18,21,29,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.range { width: 100%; accent-color: var(--accent); }

/* ---- fenêtres (nouveau groupe, première ouverture) ---- */
.firstrun { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--safe-t)) 14px calc(16px + var(--safe-b)); }
.firstrun-card { width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.firstrun-title { font-size: 18px; font-weight: 700; }
.firstrun-text { color: var(--muted); font-size: 14px; margin: 0; }
.firstrun .field, .firstrun .btn { max-width: none; }
.firstrun .btn-row .btn { flex: 1; }

/* fond perso : pas de filigrane « Moi » par-dessus */
body.has-wp #wm { display: none; }

/* « Vu par @… » sous ton dernier message */
.row.with-seen { flex-direction: column; align-items: flex-end; }
.seen { font-size: 11px; color: var(--muted); margin: 3px 6px 0; }

/* =================== style du pseudo (à la Discord) =================== */
@font-face { font-family: 'Brume bangers'; src: url('fonts/bangers.woff2') format('woff2'); font-display: swap; }
.ff-bangers { font-family: 'Brume bangers', system-ui, sans-serif; font-weight: 400; letter-spacing: .05em; }
@font-face { font-family: 'Brume biorhyme'; src: url('fonts/biorhyme.woff2') format('woff2'); font-display: swap; }
.ff-biorhyme { font-family: 'Brume biorhyme', system-ui, sans-serif; font-weight: 700;  }
@font-face { font-family: 'Brume cherry-bomb-one'; src: url('fonts/cherry-bomb-one.woff2') format('woff2'); font-display: swap; }
.ff-cherry-bomb-one { font-family: 'Brume cherry-bomb-one', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume chicle'; src: url('fonts/chicle.woff2') format('woff2'); font-display: swap; }
.ff-chicle { font-family: 'Brume chicle', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume creepster'; src: url('fonts/creepster.woff2') format('woff2'); font-display: swap; }
.ff-creepster { font-family: 'Brume creepster', system-ui, sans-serif; font-weight: 400; letter-spacing: .04em; }
@font-face { font-family: 'Brume museomoderno'; src: url('fonts/museomoderno.woff2') format('woff2'); font-display: swap; }
.ff-museomoderno { font-family: 'Brume museomoderno', system-ui, sans-serif; font-weight: 700;  }
@font-face { font-family: 'Brume pirata-one'; src: url('fonts/pirata-one.woff2') format('woff2'); font-display: swap; }
.ff-pirata-one { font-family: 'Brume pirata-one', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume pixelify-sans'; src: url('fonts/pixelify-sans.woff2') format('woff2'); font-display: swap; }
.ff-pixelify-sans { font-family: 'Brume pixelify-sans', system-ui, sans-serif; font-weight: 700; letter-spacing: .02em; }
@font-face { font-family: 'Brume rubik-glitch'; src: url('fonts/rubik-glitch.woff2') format('woff2'); font-display: swap; }
.ff-rubik-glitch { font-family: 'Brume rubik-glitch', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume sacramento'; src: url('fonts/sacramento.woff2') format('woff2'); font-display: swap; }
.ff-sacramento { font-family: 'Brume sacramento', system-ui, sans-serif; font-weight: 400; font-size: 1.25em; }
@font-face { font-family: 'Brume special-elite'; src: url('fonts/special-elite.woff2') format('woff2'); font-display: swap; }
.ff-special-elite { font-family: 'Brume special-elite', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume zilla-slab'; src: url('fonts/zilla-slab.woff2') format('woff2'); font-display: swap; }
.ff-zilla-slab { font-family: 'Brume zilla-slab', system-ui, sans-serif; font-weight: 700;  }

/* =================== v2.33 : 28 polices en plus (Google Fonts via @fontsource, licence OFL, sous-ensemble latin) =================== */
/* taille relative par police : toutes paraissent de la même taille ; la hauteur de ligne reste la même */
@font-face { font-family: 'Brume lilita-one'; src: url('fonts/lilita-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-lilita-one { font-family: 'Brume lilita-one', system-ui, sans-serif; font-weight: 400; font-size: 1.05em; line-height: 1.143; }
@font-face { font-family: 'Brume titan-one'; src: url('fonts/titan-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-titan-one { font-family: 'Brume titan-one', system-ui, sans-serif; font-weight: 400; }
@font-face { font-family: 'Brume bagel-fat-one'; src: url('fonts/bagel-fat-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-bagel-fat-one { font-family: 'Brume bagel-fat-one', system-ui, sans-serif; font-weight: 400; }
@font-face { font-family: 'Brume rubik-bubbles'; src: url('fonts/rubik-bubbles.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-rubik-bubbles { font-family: 'Brume rubik-bubbles', system-ui, sans-serif; font-weight: 400; }
@font-face { font-family: 'Brume modak'; src: url('fonts/modak.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-modak { font-family: 'Brume modak', system-ui, sans-serif; font-weight: 400; font-size: 1.05em; line-height: 1.143; }
@font-face { font-family: 'Brume bebas-neue'; src: url('fonts/bebas-neue.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-bebas-neue { font-family: 'Brume bebas-neue', system-ui, sans-serif; font-weight: 400; font-size: 1.1em; line-height: 1.091; letter-spacing: .02em; }
@font-face { font-family: 'Brume unbounded'; src: url('fonts/unbounded.woff2') format('woff2'); font-weight: 800; font-display: swap; }
.ff-unbounded { font-family: 'Brume unbounded', system-ui, sans-serif; font-weight: 800; font-size: 0.95em; line-height: 1.263; }
@font-face { font-family: 'Brume zen-dots'; src: url('fonts/zen-dots.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-zen-dots { font-family: 'Brume zen-dots', system-ui, sans-serif; font-weight: 400; }
@font-face { font-family: 'Brume tilt-neon'; src: url('fonts/tilt-neon.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-tilt-neon { font-family: 'Brume tilt-neon', system-ui, sans-serif; font-weight: 400; font-size: 1.05em; line-height: 1.143; }
@font-face { font-family: 'Brume bungee-inline'; src: url('fonts/bungee-inline.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-bungee-inline { font-family: 'Brume bungee-inline', system-ui, sans-serif; font-weight: 400; font-size: 0.88em; line-height: 1.364; }
@font-face { font-family: 'Brume limelight'; src: url('fonts/limelight.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-limelight { font-family: 'Brume limelight', system-ui, sans-serif; font-weight: 400; }
@font-face { font-family: 'Brume fascinate'; src: url('fonts/fascinate.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-fascinate { font-family: 'Brume fascinate', system-ui, sans-serif; font-weight: 400; font-size: 1.05em; line-height: 1.143; }
@font-face { font-family: 'Brume rye'; src: url('fonts/rye.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-rye { font-family: 'Brume rye', system-ui, sans-serif; font-weight: 400; font-size: 0.95em; line-height: 1.263; }
@font-face { font-family: 'Brume dancing-script'; src: url('fonts/dancing-script.woff2') format('woff2'); font-weight: 700; font-display: swap; }
.ff-dancing-script { font-family: 'Brume dancing-script', system-ui, sans-serif; font-weight: 700; font-size: 1.3em; line-height: 0.923; }
@font-face { font-family: 'Brume parisienne'; src: url('fonts/parisienne.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-parisienne { font-family: 'Brume parisienne', system-ui, sans-serif; font-weight: 400; font-size: 1.25em; line-height: 0.96; }
@font-face { font-family: 'Brume cookie'; src: url('fonts/cookie.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-cookie { font-family: 'Brume cookie', system-ui, sans-serif; font-weight: 400; font-size: 1.3em; line-height: 0.923; }
@font-face { font-family: 'Brume caveat'; src: url('fonts/caveat.woff2') format('woff2'); font-weight: 700; font-display: swap; }
.ff-caveat { font-family: 'Brume caveat', system-ui, sans-serif; font-weight: 700; font-size: 1.25em; line-height: 0.96; }
@font-face { font-family: 'Brume gloria-hallelujah'; src: url('fonts/gloria-hallelujah.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-gloria-hallelujah { font-family: 'Brume gloria-hallelujah', system-ui, sans-serif; font-weight: 400; }
@font-face { font-family: 'Brume lacquer'; src: url('fonts/lacquer.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-lacquer { font-family: 'Brume lacquer', system-ui, sans-serif; font-weight: 400; }
@font-face { font-family: 'Brume sedgwick-ave-display'; src: url('fonts/sedgwick-ave-display.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-sedgwick-ave-display { font-family: 'Brume sedgwick-ave-display', system-ui, sans-serif; font-weight: 400; }
@font-face { font-family: 'Brume vt323'; src: url('fonts/vt323.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-vt323 { font-family: 'Brume vt323', system-ui, sans-serif; font-weight: 400; font-size: 1.35em; line-height: 0.889; }
@font-face { font-family: 'Brume jersey-10'; src: url('fonts/jersey-10.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-jersey-10 { font-family: 'Brume jersey-10', system-ui, sans-serif; font-weight: 400; font-size: 1.3em; line-height: 0.923; }
@font-face { font-family: 'Brume dotgothic16'; src: url('fonts/dotgothic16.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-dotgothic16 { font-family: 'Brume dotgothic16', system-ui, sans-serif; font-weight: 400; font-size: 0.95em; line-height: 1.263; }
@font-face { font-family: 'Brume jacquard-12'; src: url('fonts/jacquard-12.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-jacquard-12 { font-family: 'Brume jacquard-12', system-ui, sans-serif; font-weight: 400; font-size: 1.35em; line-height: 0.889; }
@font-face { font-family: 'Brume grenze-gotisch'; src: url('fonts/grenze-gotisch.woff2') format('woff2'); font-weight: 700; font-display: swap; }
.ff-grenze-gotisch { font-family: 'Brume grenze-gotisch', system-ui, sans-serif; font-weight: 700; font-size: 1.15em; line-height: 1.043; }
@font-face { font-family: 'Brume new-rocker'; src: url('fonts/new-rocker.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-new-rocker { font-family: 'Brume new-rocker', system-ui, sans-serif; font-weight: 400; font-size: 1.05em; line-height: 1.143; }
@font-face { font-family: 'Brume metal-mania'; src: url('fonts/metal-mania.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-metal-mania { font-family: 'Brume metal-mania', system-ui, sans-serif; font-weight: 400; font-size: 1.05em; line-height: 1.143; }
@font-face { font-family: 'Brume abril-fatface'; src: url('fonts/abril-fatface.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.ff-abril-fatface { font-family: 'Brume abril-fatface', system-ui, sans-serif; font-weight: 400; font-size: 1.1em; line-height: 1.091; }

/* =================== v2.33 : style du pseudo v3 (pseudo.js) ===================
   La couleur est TOUJOURS dans les lettres : 3 calques portent le même texte.
   · le texte (transparent) : ombres / contours / relief       → --tsh, --tst
   · ::before : la lueur, copie floutée des couleurs (.gl)       → --G, --gb, --go
   · ::after  : les couleurs + reflets, découpés dans les lettres → --F, --S, --P, --R
   Les variables animées (@property) sont posées sur l'hôte, jamais sur un calque découpé
   (Safari perd le découpage dans les lettres sinon). */
@property --gp { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --gr { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --sw { syntax: '<number>'; inherits: true; initial-value: -150; }
@property --f1 { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --f2 { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --m0 { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --m1 { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --m2 { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --lc { syntax: '<color>'; inherits: true; initial-value: #ffffff; }

/* une marge de .3em/.42em autour du texte, rendue aussitôt par une marge négative : les lueurs
   et les ombres ont de la place sans changer la mise en page */
.nm { position: relative; display: inline-block; vertical-align: middle; font-weight: 700; line-height: 1.2; white-space: nowrap;
  padding: .3em .42em; margin: -.3em -.42em; max-width: calc(100% + .84em); overflow: hidden; text-overflow: ellipsis; }
.nm.v3 { color: transparent; -webkit-text-fill-color: transparent; isolation: isolate; }
.nm.v3 .ch { position: relative; display: inline-block; white-space: pre; }
.nm.v3.u, .nm.v3 .u { text-shadow: var(--tsh, none); -webkit-text-stroke: var(--tst, 0 transparent); }
.nm.v3.u::after, .nm.v3 .u::after, .nm.v3.gl.u::before, .nm.v3.gl .u::before {
  content: attr(data-t); content: attr(data-t) / "";
  position: absolute; inset: 0; padding: inherit; white-space: inherit; pointer-events: none;
  color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; -webkit-text-stroke: 0 transparent;
  background-origin: content-box; -webkit-background-clip: text; background-clip: text; }
.nm.v3.u::after, .nm.v3 .u::after { z-index: 1;
  background-image: var(--F, var(--T, none)); background-size: var(--S, 100% 100%); background-position: var(--P, 0 0); background-repeat: var(--R, repeat);
  -webkit-text-stroke: var(--fst, 0 transparent); -webkit-text-fill-color: var(--ffc, transparent); }
.nm.v3.gl.u::before, .nm.v3.gl .u::before { z-index: 0;
  background-image: var(--G, var(--F)); background-size: var(--GS, 100% 100%); background-position: var(--GP, 0 0); background-repeat: var(--GR, repeat);
  filter: blur(var(--gb, .14em)); opacity: var(--go, .9); }
.nm.v3.u::after, .nm.v3.gl.u::before { overflow: hidden; text-overflow: ellipsis; }
/* étincelles : un calque vide par-dessus les lettres, jamais un fond plein */
.nm.v3 > .nm-spk { position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: var(--SP); background-size: auto 100%; background-repeat: repeat-x; background-position: 0 50%; }
.nm.v3.pl.cut { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.6em), transparent calc(100% - .42em));
  mask-image: linear-gradient(90deg, #000 calc(100% - 1.6em), transparent calc(100% - .42em)); }
/* animations : réglages propres à chacune */
.nm.v3.a-type .ch { border-right: .06em solid transparent; margin-right: -.06em; }
.nm.v3.a-bounce .ch { transform-origin: 50% 100%; }
.nm.v3.a-jelly { transform-origin: 50% 80%; }
.nm.v3.flm.u::before, .nm.v3.flm .u::before { transform-origin: 50% 100%; animation: nm-flame .9s ease-in-out infinite alternate; }
.nm.v3.hh.u::after, .nm.v3.hh .u::after { animation: nm-hue 7s linear infinite; }
/* hors écran : en pause (moins de batterie) */
.nm.v3[data-off], .nm.v3[data-off] .ch, .nm.v3[data-off].u::before, .nm.v3[data-off].u::after,
.nm.v3[data-off] .u::before, .nm.v3[data-off] .u::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .nm.v3, .nm.v3 .ch, .nm.v3.u::before, .nm.v3.u::after, .nm.v3 .u::before, .nm.v3 .u::after { animation: none !important; }
  .nm.v3 > .nm-spk { background-image: var(--SPs); }
}

/* mouvement des couleurs */
@keyframes nm-gp { from { --gp: 0; } to { --gp: 1; } }
@keyframes nm-gps { from { --gp: 0; } to { --gp: .5; } }
@keyframes nm-gr { from { --gr: 0deg; } to { --gr: 360deg; } }
@keyframes nm-grs { from { --gr: -55deg; } to { --gr: 55deg; } }
@keyframes nm-f1 { from { --f1: 0; } to { --f1: 1; } }
@keyframes nm-f2 { from { --f2: 0; } to { --f2: 1; } }
@keyframes nm-sw { 0% { --sw: -150; } 55%, 100% { --sw: 250; } }
@keyframes nm-cyc2 { 0%, 100% { --m0: var(--s0); --m1: var(--s1); } 50% { --m0: var(--s1); --m1: var(--s0); } }
@keyframes nm-cyc3 { 0%, 100% { --m0: var(--s0); --m1: var(--s1); --m2: var(--s2); } 33.33% { --m0: var(--s1); --m1: var(--s2); --m2: var(--s0); }
  66.67% { --m0: var(--s2); --m1: var(--s0); --m2: var(--s1); } }
@keyframes nm-lc2 { 0%, 100% { --lc: var(--s0); } 50% { --lc: var(--s1); } }
@keyframes nm-lc3 { 0%, 100% { --lc: var(--s0); } 33.33% { --lc: var(--s1); } 66.67% { --lc: var(--s2); } }
@keyframes nm-lc4 { 0%, 100% { --lc: var(--s0); } 25% { --lc: var(--s1); } 50% { --lc: var(--s2); } 75% { --lc: var(--s3); } }
@keyframes nm-lc5 { 0%, 100% { --lc: var(--s0); } 20% { --lc: var(--s1); } 40% { --lc: var(--s2); } 60% { --lc: var(--s3); } 80% { --lc: var(--s4); } }
@keyframes nm-lc6 { 0%, 100% { --lc: var(--s0); } 16.67% { --lc: var(--s1); } 33.33% { --lc: var(--s2); } 50% { --lc: var(--s3); } 66.67% { --lc: var(--s4); } 83.33% { --lc: var(--s5); } }
@keyframes nm-lc7 { 0%, 100% { --lc: var(--s0); } 14.29% { --lc: var(--s1); } 28.57% { --lc: var(--s2); } 42.86% { --lc: var(--s3); } 57.14% { --lc: var(--s4); }
  71.43% { --lc: var(--s5); } 85.71% { --lc: var(--s6); } }
/* animations du texte */
@keyframes nm-wave { 0%, 100% { transform: translateY(.07em); } 50% { transform: translateY(-.2em); } }
@keyframes nm-type { 0% { opacity: 0; transform: translateY(.3em) scale(.5); } 2.6% { opacity: 1; transform: none; } 74% { opacity: 1; transform: none; }
  78%, 100% { opacity: 0; transform: translateY(-.12em); } }
@keyframes nm-caret { 0%, 1.8% { border-right-color: var(--cc, #fff); } 1.9%, 100% { border-right-color: transparent; } }
@keyframes nm-bounce { 0%, 34%, 100% { transform: none; } 8% { transform: translateY(-.34em) scale(.95, 1.07); } 16% { transform: translateY(0) scale(1.12, .86); }
  22% { transform: translateY(-.05em) scale(.97, 1.03); } 28% { transform: none; } }
@keyframes nm-flip { 0% { transform: perspective(3em) rotateY(0); } 20%, 100% { transform: perspective(3em) rotateY(360deg); } }
@keyframes nm-jelly { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.07, .93); } 50% { transform: scale(.95, 1.06); } 70% { transform: scale(1.02, .98); } }
@keyframes nm-pulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.045); filter: brightness(1.28) drop-shadow(0 0 .16em var(--e1)); } }
@keyframes nm-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.1); } 28% { transform: scale(.98); } 42% { transform: scale(1.06); } 70% { transform: scale(1); } }
@keyframes nm-float { 0%, 100% { transform: translateY(.04em) rotate(-1.4deg); } 50% { transform: translateY(-.13em) rotate(1.4deg); } }
@keyframes nm-flicker { 0%, 17%, 23%, 26%, 52%, 58%, 100% { opacity: 1; filter: none; } 18%, 22% { opacity: .3; filter: brightness(.55); } 20% { opacity: .9; }
  25% { opacity: .45; } 55% { opacity: .6; filter: brightness(.7); } }
@keyframes nm-glitch { 0%, 6%, 10%, 40%, 44%, 73%, 77%, 100% { transform: none; clip-path: none; }
  7% { transform: translate(-.06em, .03em) skewX(-9deg); clip-path: inset(15% 0 48% 0); } 8% { transform: translate(.05em, -.02em); clip-path: inset(52% 0 10% 0); }
  41% { transform: translate(.07em, 0); clip-path: inset(58% 0 8% 0); } 42% { transform: translate(-.05em, -.02em) skewX(6deg); clip-path: inset(0 0 62% 0); }
  74% { transform: skewX(12deg) translateX(.04em); clip-path: inset(32% 0 30% 0); } 75% { transform: translateX(-.03em); clip-path: none; } }
@keyframes nm-hue { to { filter: hue-rotate(360deg); } }
@keyframes nm-flame { from { transform: translateY(0) scaleY(1); opacity: .85; } to { transform: translateY(-.05em) scaleY(1.14) skewX(-2deg); opacity: 1; } }
@keyframes nm-rgb { 0%, 100% { text-shadow: var(--tsh); } 7% { text-shadow: -.13em .02em var(--e1), .1em -.02em var(--e2); } 9% { text-shadow: var(--tsh); }
  47% { text-shadow: .09em 0 var(--e1), -.09em 0 var(--e2); } 49% { text-shadow: var(--tsh); } 81% { text-shadow: -.04em -.03em var(--e1), .16em .03em var(--e2); }
  82% { text-shadow: var(--tsh); } }

/* photos de profil */
.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; vertical-align: middle; }
.av.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--panel2); color: var(--ink); font-weight: 700; border: 1px solid var(--line); }
.av.ring { box-shadow: 0 0 0 2px var(--c1), 0 0 12px -2px var(--c2); }
.who { display: flex; align-items: center; gap: 5px; }
.who .nm { font-size: 12px; }
#chat-title { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.big-name { display: flex; align-items: center; gap: 10px; }
#me-name .nm { font-size: 13px; }

/* éditeur « Mon profil » */
.look-preview { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, #1d1f2b 0%, #0d0e13 70%); }
.look-prev-name { font-size: 26px; min-width: 0; overflow: hidden; }
.look-h { font-weight: 700; margin-top: 8px; }
.look-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.look-tile { background: #141519; border: 1px solid var(--line); border-radius: 12px; min-height: 60px; color: var(--ink); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 6px 4px; overflow: hidden; }
.look-tile.on { border-color: #5865f2; box-shadow: 0 0 0 1px #5865f2 inset; }
.look-tile .nm { font-size: 22px; padding: 0; }
.look-tile .nm:only-child { font-size: 14px; }
.look-tile small { font-size: 10px; color: var(--muted); }
.look-colors { display: flex; gap: 10px; }
.look-color { width: 60px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: none; padding: 2px; }
.look-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.look-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.look-which .btn.on { border-color: var(--accent); color: #fff; }

/* =================== icônes =================== */
svg.i { flex: none; display: block; }
.icon svg.i { pointer-events: none; }
.icx { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.uname.grp { display: inline-flex; align-items: center; gap: 6px; }
.uname.grp svg { color: var(--accent); }
.h-ic { display: flex; align-items: center; gap: 8px; }
.h-ic svg { color: var(--accent); }
.game-head { display: flex; align-items: center; gap: 6px; }
.flame { display: inline-flex; align-items: center; gap: 2px; color: #ff9f43; font-weight: 700; font-size: 13px; vertical-align: middle; }
.board .cell svg.p-x { color: #ff5f6d; }
.board .cell svg.p-o { color: #3fd0ff; }
.call-btn { display: inline-flex; align-items: center; justify-content: center; }
.lock-key.back { display: inline-flex; align-items: center; justify-content: center; }
.gc-check { width: 20px; display: inline-flex; }
.chip .icx svg, .txt .icx svg { opacity: .9; }
#tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 9px; font-size: 11px; }
#tabbar button .badge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }

/* =================== bio + carte de profil =================== */
.tap-prof { cursor: pointer; }
.look-bio { resize: none; min-height: 74px; font: inherit; }
.look-bio-count { text-align: right; margin-top: -4px; }
.look-prev-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.look-prev-bio { font-size: 13px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 3.6em; overflow: hidden; }
.prof-ov { z-index: 95; align-items: flex-end; padding-bottom: calc(10px + var(--safe-b)); }
@media (min-height: 700px) { .prof-ov { align-items: center; } }
.prof-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: visible;
  display: flex; flex-direction: column; gap: 8px; padding: 0 18px 18px; animation: prof-in .22s ease-out; }
@keyframes prof-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.prof-banner { height: 92px; margin: 0 -18px; background: linear-gradient(135deg, #20233a, #121420); border-radius: 19px 19px 0 0; }
.prof-banner.tinted { background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .9; }
.prof-head { position: relative; z-index: 3; margin-top: -50px; width: 92px; }
.prof-head.zoomable { cursor: zoom-in; }
.prof-head .av { border: 5px solid var(--panel); box-sizing: content-box; }
.prof-head .av.ring { box-shadow: 0 0 0 2px var(--c1), 0 0 16px -2px var(--c2); }
.prof-dot { position: absolute; right: 2px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; background: #5d6475; border: 4px solid var(--panel); }
.prof-dot.on { background: var(--ok); }
.prof-name { font-size: 24px; min-width: 0; }
.prof-name > .nm { min-width: 0; }
.prof-bio { background: var(--panel2); border-radius: 12px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere;
  user-select: text; -webkit-user-select: text; }
.prof-bio.empty { color: var(--muted); font-style: italic; }
.prof-since { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.prof-since .lbl { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.prof-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.prof-acts .btn { max-width: none; display: inline-flex; align-items: center; justify-content: center; }

/* =================== réponses =================== */
.reply-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; background: var(--panel); border-top: 1px solid var(--line); }
.reply-bar .reply-ic { color: var(--accent); }
.reply-txt { flex: 1; min-width: 0; border-left: 3px solid var(--accent); padding-left: 8px; }
.reply-who { font-size: 12px; font-weight: 700; color: var(--accent); }
.reply-prev { font-size: 13px; color: var(--muted); display: flex; gap: 5px; align-items: center; min-width: 0; }
.reply-prev span, .quote-prev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.reply-x { min-width: 34px; height: 34px; }
body.has-wp .reply-bar { background: rgba(18,21,29,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.quote { display: block; width: 100%; text-align: left; background: rgba(0,0,0,.22); border: 0; border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 5px 8px; margin: 0 0 6px; color: inherit; font: inherit; cursor: pointer; }
.row.me .quote { background: rgba(255,255,255,.14); border-left-color: #fff; }
.quote-who { font-size: 11px; font-weight: 700; opacity: .9; }
.quote-prev { font-size: 12px; opacity: .85; display: flex; gap: 4px; align-items: center; min-width: 0; }
.row { transition: transform .15s ease; }
.row.swiping { transition: none; }
.row.flash .bubble { animation: msg-flash 1.2s ease; }
@keyframes msg-flash { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 3px var(--accent); } }

/* =================== décorations + bannière =================== */
.avw { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; vertical-align: middle; overflow: visible; }
.avw > .deco { position: absolute; pointer-events: none; z-index: 1; }
.avw > .deco > img, .avw > .deco > svg { display: block; width: 100% !important; height: 100% !important; }
.deco-credit { text-align: center; margin: -2px 0 4px; }
.who-line .avw { margin: 0 6px; }
.frame-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 340px; overflow-y: auto; padding: 6px;
  border: 1px solid var(--line); border-radius: 12px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.frame-tile { background: #141519; border: 1px solid var(--line); border-radius: 12px; padding: 22px 4px 8px; display: flex; flex-direction: column;
  align-items: center; gap: 18px; color: var(--ink); cursor: pointer; min-height: 118px; overflow: hidden; }
.frame-tile.on { border-color: #5865f2; box-shadow: 0 0 0 1px #5865f2 inset; }
.frame-tile small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.look-banner { height: 110px; border-radius: 14px; border: 1px solid var(--line); background: #15171f center / cover no-repeat; }
.look-banner.empty { background-image: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .85; }
.prof-banner.img { background-size: cover; background-position: center; opacity: 1; }

/* =================== GIF, stickers, emoji géants =================== */
.gif-ov { align-items: flex-end; padding: 0; }
.gif-sheet { width: 100%; max-width: 560px; height: min(72vh, 640px); background: var(--panel); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px calc(12px + var(--safe-b)); animation: prof-in .2s ease-out; }
.gif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gif-tabs { display: flex; gap: 6px; }
.gif-tab { background: var(--panel2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; font-size: 14px; }
.gif-tab.on { color: #fff; background: var(--me); border-color: var(--me); }
.gif-sheet .field { max-width: none; }
.gif-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* colonnes « maçonnées » comme GIPHY : pas de grille CSS ni d'aspect-ratio (Safari écrasait les lignes) */
.gif-grid.masonry { display: flex; align-items: flex-start; }
.gif-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.gif-col + .gif-col { margin-left: 6px; }
.gif-tile { display: block; width: 100%; margin: 0 0 6px; border: 0; padding: 0; background: #0f1016; border-radius: 12px; overflow: hidden;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.gif-tile:active { transform: scale(.97); }
.gif-tile.st { background: rgba(255, 255, 255, .045); }
.gif-box { display: block; position: relative; width: 100%; height: 0; }
.gif-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-tile.st .gif-img { object-fit: contain; padding: 8px; box-sizing: border-box; }
.gif-grid.emoji { display: flex; flex-wrap: wrap; align-content: flex-start; }
.emo { flex: none; width: 16.6666%; font-size: 30px; line-height: 1.2; background: none; border: 0; padding: 6px 0; cursor: pointer; border-radius: 10px; }
.emo:active { background: var(--panel2); }
.gif-note { text-align: center; }
.bubble.bare { background: transparent !important; padding: 0; }
.gif-msg { display: block; width: 220px; max-width: 100%; height: auto; border-radius: 12px; background: #0f1016; }
.gif-msg.st { width: 150px; border-radius: 0; background: transparent; }
.big-emoji { font-size: 64px; line-height: 1.1; display: inline-block; transform-origin: 50% 85%; animation: emo-pop .5s ease both; }
.big-emoji.a1 { animation: emo-pop .5s ease both, emo-wiggle 2.6s ease-in-out .5s infinite; }
.big-emoji.a2 { animation: emo-pop .5s ease both, emo-bounce 1.4s ease-in-out .5s infinite; }
.big-emoji.a3 { animation: emo-pop .5s ease both, emo-pulse 1.3s ease-in-out .5s infinite; }
.big-emoji.a4 { animation: emo-pop .5s ease both, emo-float 3s ease-in-out .5s infinite; }
.big-emoji.a5 { animation: emo-pop .5s ease both, emo-shake 2.2s ease-in-out .5s infinite; }
@keyframes emo-pop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes emo-wiggle { 0%, 60%, 100% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 30% { transform: rotate(7deg); } 45% { transform: rotate(-4deg); } }
@keyframes emo-bounce { 0%, 100% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-10px) scale(.96, 1.04); } 70% { transform: translateY(0) scale(1.06, .94); } }
@keyframes emo-pulse { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.14); } 45% { transform: scale(1.02); } 60% { transform: scale(1.1); } }
@keyframes emo-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes emo-shake { 0%, 70%, 100% { transform: translateX(0) rotate(0); } 75% { transform: translateX(-3px) rotate(-5deg); } 80% { transform: translateX(3px) rotate(5deg); }
  85% { transform: translateX(-3px) rotate(-4deg); } 90% { transform: translateX(2px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .big-emoji, .big-emoji.a1, .big-emoji.a2, .big-emoji.a3, .big-emoji.a4, .big-emoji.a5 { animation: none; } }

/* =================== v2.19 : mises à jour, bandeaux, feuilles d'actions =================== */
.upd-chip { position: fixed; left: 50%; transform: translateX(-50%); top: calc(8px + var(--safe-t)); z-index: 1040; display: inline-flex; align-items: center; gap: 8px;
  background: var(--me); color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: pointer; white-space: nowrap; }
.inapp { position: fixed; left: 10px; right: 10px; top: calc(8px + var(--safe-t)); z-index: 1050; display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(28,32,44,.95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
  padding: 10px 14px; color: var(--ink); box-shadow: 0 12px 34px rgba(0,0,0,.45); animation: inapp-in .3s cubic-bezier(.2,.9,.3,1.15); cursor: pointer; font: inherit;
  max-width: 520px; margin: 0 auto; }
.inapp.out { animation: inapp-out .25s ease forwards; }
@keyframes inapp-in { from { transform: translateY(-130%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inapp-out { to { transform: translateY(-140%); opacity: 0; } }
.inapp-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--me); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.inapp-txt { min-width: 0; flex: 1; }
.inapp-t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inapp-s { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.act-ov { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade-in .15s ease; }
@keyframes fade-in { from { opacity: 0; } }
.act-sheet { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  padding: 8px 10px calc(10px + var(--safe-b)); display: flex; flex-direction: column; gap: 2px; animation: prof-in .2s ease-out; }
.act-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.act-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.act-prev { display: flex; align-items: center; gap: 7px; font-size: 15px; color: var(--ink); min-width: 0; }
.act-prev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-prev svg { color: var(--accent); flex: none; }
.act-item { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; color: var(--ink); font: inherit; font-size: 16px; padding: 13px 12px; border-radius: 12px; cursor: pointer; text-align: left; }
.act-item:active { background: var(--panel2); }
.act-item svg { color: var(--accent); flex: none; }
.act-item.danger, .act-item.danger svg { color: var(--danger); }
.act-item.cancel { justify-content: center; color: var(--muted); margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; }
.clip-tmp { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* =================== liste des sessions =================== */
.sess-head { display: flex; align-items: flex-end; justify-content: space-between; padding-right: 12px; }
.sess-head .newgroup { margin: 0 0 6px; }
.sess-hint { padding: 0 16px 8px; }
.srow { gap: 12px; padding: 10px 14px; justify-content: flex-start; }
.sr-av { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.sr-dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--bg); z-index: 2; }
.grp-av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #3b5bdb, #b36bff); color: #fff; }
.grp-stack > :first-child { position: absolute; left: 0; top: 0; }
.grp-stack > :last-child { position: absolute; right: 0; bottom: 0; }
.grp-stack .av { outline: 2px solid var(--bg); }
.sr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sr-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sr-top > .nm, .sr-top > .nmb { min-width: 0; }
.sr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-sub { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; }
.sr-sub span { overflow: hidden; text-overflow: ellipsis; }
.sr-sub.new { color: var(--ink); font-weight: 700; }
.sr-sub.on { color: var(--ok); }
.sr-sub.seen svg { color: var(--accent); flex: none; }
.sr-right { display: flex; align-items: center; gap: 6px; flex: none; }
.sr-pin { color: var(--muted); transform: rotate(40deg); }
.srow.unread { background: rgba(109,139,255,.06); }
.srow.flash { animation: row-flash 1.2s ease; }
@keyframes row-flash { 0% { background: rgba(109,139,255,.3); } 100% { background: transparent; } }
.flame.sm { font-size: 12px; gap: 1px; }
.flame.dim { opacity: .55; }
.fl-warn { color: #ffd24a; margin-left: 2px; }
.invite .who-line { margin-bottom: 2px; }
.invite-note { margin: 2px 0 4px 38px; background: var(--you); border-radius: 16px 16px 16px 5px; padding: 8px 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 86%; align-self: flex-start; }
.invite-note.mine { background: rgba(59,91,219,.4); }

/* =================== badges =================== */
.nmb { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; vertical-align: middle; }
.nmb > .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bdg-row { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.bdg { display: inline-flex; align-items: center; justify-content: center; color: var(--b1); filter: drop-shadow(0 0 3px var(--b2)); }
.bdg.lab { gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; filter: none;
  background: linear-gradient(135deg, var(--b1), var(--b2)); box-shadow: 0 2px 10px -3px var(--b2); }
.bdg-row.labels { flex-wrap: wrap; gap: 6px; }
.moi-badges:empty { display: none; }
.bdg-pick { display: flex; flex-direction: column; gap: 6px; }
.bdg-opt { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.bdg-opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.bdg-opt-n { flex: 1; font-weight: 600; }
.bdg-check { color: var(--accent); width: 18px; display: inline-flex; }
.adm-user .who-line { gap: 6px; }

/* =================== proposition + accueil =================== */
.prop-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prop-who-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prop-name { font-size: 18px; min-width: 0; }
.prop-note { resize: none; min-height: 84px; font: inherit; }
.prop-count { text-align: right; margin-top: -6px; }
.ob-card { gap: 12px; }
.ob-hero { display: flex; justify-content: center; margin-top: 4px; }
.ob-hero img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 26px rgba(109,139,255,.35); }
.ob-title { text-align: center; font-size: 21px; }
.ob-card > .firstrun-text { text-align: center; }
.ob-step { display: flex; align-items: center; gap: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.ob-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(109,139,255,.16); color: var(--accent); flex: none; }
.ob-txt { flex: 1; min-width: 0; }
.ob-t { font-weight: 700; }
.ob-s { font-size: 13px; color: var(--muted); }
.ob-step .btn.small { flex: none; }

/* =================== discussion : bulles, réponses, vu =================== */
#chat-title .ct-name { overflow: hidden; text-overflow: ellipsis; }
.row { position: relative; transition: none; }
.msg-col { max-width: 78%; display: flex; flex-direction: column; min-width: 0; transition: transform .18s ease; }
.row.me .msg-col { align-items: flex-end; }
.row.you .msg-col { align-items: flex-start; }
.row.swiping .msg-col { transition: none; }
.msg-col .bubble { max-width: 100%; }
.row.cont { margin-top: -5px; }
.row.me.cont .bubble { border-top-right-radius: 6px; }
.row.you.cont .bubble { border-top-left-radius: 6px; }
.bubble { position: relative; }
.txt { user-select: none; -webkit-user-select: none; }
.bt { display: block; text-align: right; font-size: 10px; line-height: 1; opacity: .55; margin-top: 3px; font-variant-numeric: tabular-nums; }
.bubble.media-b { padding: 4px; }
.bubble.media-b .media img, .bubble.media-b .media video { border-radius: 12px; }
.bubble.media-b:has(img, video) .bt { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.5); color: #fff; opacity: 1; padding: 3px 6px; border-radius: 999px; margin: 0; }
.swipe-ic { position: absolute; left: 2px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--panel2); color: var(--muted); opacity: 0; transform: scale(.5); pointer-events: none; transition: opacity .15s ease, transform .15s ease, background .15s ease; }
.row.swiping .swipe-ic { transition: background .15s ease, color .15s ease; }
.swipe-ic.ready { background: var(--accent); color: #fff; }
.tsep { align-self: center; font-size: 11px; color: var(--muted); margin: 10px 0 2px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.04); }
body.has-wp .tsep { background: rgba(0,0,0,.35); color: #cfd5e6; }
.re-head { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; margin: 4px 8px 3px; }
.quote { display: inline-flex; align-items: center; gap: 8px; width: auto; max-width: 100%; text-align: left; background: rgba(255,255,255,.07); border: 0; border-radius: 14px;
  padding: 7px 12px; margin: 0 0 3px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.row.me .quote { background: rgba(59,91,219,.24); color: #cdd7ff; border: 0; }
.quote-prev { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 13px; opacity: 1; }
.quote-prev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.quote-thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; }
.seen { font-size: 11px; color: var(--muted); margin: 3px 4px 0; display: inline-flex; align-items: center; gap: 5px; }
.seen.on { color: #aab6d6; }
.seen-heads { display: inline-flex; }
.seen-heads > * + * { margin-left: -5px; }
.seen-heads .av { outline: 1.5px solid var(--bg); }
.reply-bar { gap: 8px; padding: 8px 10px 8px 14px; }
.reply-txt { border-left: 0; padding-left: 0; }
.reply-who { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink); }
.reply-who svg { color: var(--accent); }
.reply-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }
.note-bubble { border: 1px dashed rgba(255,255,255,.2); }
.note-lbl { font-size: 11px; opacity: .75; display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.prof-name { display: flex; align-items: center; gap: 8px; }
.prof-act.on { color: var(--ok); }

/* =================== fichiers =================== */
.file-card { display: flex; align-items: center; gap: 10px; width: 250px; max-width: 100%; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  padding: 9px 10px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.row.me .file-card { background: rgba(255,255,255,.12); }
.fc-ic { width: 40px; height: 46px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--fc); color: #fff; }
.fc-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.fc-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-meta { font-size: 12px; opacity: .7; }
.fc-act { flex: none; opacity: .85; display: inline-flex; }
.file-card.ready .fc-act { color: var(--ok); opacity: 1; }
.file-card.busy { opacity: .7; }

/* =================== Web =================== */
.web-shortcuts { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.web-shortcuts::-webkit-scrollbar { display: none; }
.web-shortcuts .chip { flex: none; display: inline-flex; align-items: center; gap: 5px; }
.chip.mine { border-color: rgba(109,139,255,.5); }
.chip.mine svg { color: #ffd24a; }
.chip.add { color: var(--accent); border-style: dashed; }
.chip.games-chip { border-color: rgba(109,139,255,.55); background: linear-gradient(135deg, rgba(109,139,255,.22), rgba(179,107,255,.18)); color: #fff; }
.chip.games-chip svg { color: #b3c0ff; }
.chip.sons-chip { border-color: rgba(71,232,145,.45); background: rgba(71,232,145,.12); }
.chip.sons-chip svg { color: #47e891; }

/* répertoire de jeux */
.games-ov { align-items: flex-end; padding: 0; }
.games-panel { width: 100%; max-width: 560px; margin: 0 auto; height: 88vh; background: var(--panel); border: 1px solid var(--line); border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column; gap: 10px; padding: 12px 14px calc(12px + var(--safe-b)); }
.games-head { display: flex; align-items: center; justify-content: space-between; }
.games-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.games-title svg { color: #b3c0ff; }
.games-search { margin: 0; }
.games-cats { display: flex; gap: 7px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.games-cats::-webkit-scrollbar { display: none; }
.games-cat { flex: none; padding: 7px 11px; font-size: 13px; }
.games-cat.on { border-color: #5865f2; background: rgba(88,101,242,.18); color: #fff; }
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; overflow-y: auto; min-height: 0; flex: 1; padding: 2px 2px 4px; align-content: start; }
.game-tile { position: relative; min-width: 0; display: flex; align-items: center; gap: 9px; text-align: left; background: #141519; border: 1px solid var(--line); border-radius: 13px; padding: 9px; color: var(--ink); cursor: pointer; }
.game-tile:active { background: #1b1d25; }
.game-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; letter-spacing: .5px;
  color: #fff; background: linear-gradient(135deg, #3a3f66, #26324f); }
.game-n { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.15; overflow: hidden; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.game-star { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.game-star svg { color: #5d6475; }
.game-star.on svg { color: #ffd24a; fill: #ffd24a; }
.games-note, .games-empty { margin: 0; }
.games-empty { padding: 24px 8px; text-align: center; }
.web-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 8px; }
.web-tools .web-mem { padding: 0; flex: 1; }
.web-clear { flex: none; }
.web-hist { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
.web-hist .section-title { padding-left: 4px; }
.web-hist-row { display: flex; align-items: center; gap: 10px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); padding: 11px 4px; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.web-hist-row svg { color: var(--muted); flex: none; }
.wh-t { font-weight: 600; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-u { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.web-empty { padding: 8px 4px; }
.chat-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ch-av { flex: none; display: inline-flex; }
.ch-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; gap: 1px; }
.ch-txt #chat-title { min-width: 0; max-width: 100%; }
#chat-title > .nm { min-width: 0; }
.ch-sub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ch-sub .flame { font-size: 12px; }
.chat-head #peer-status { margin-left: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head #peer-status:empty { display: none; }
.field:focus, #text:focus { outline: 2px solid rgba(109,139,255,.55); outline-offset: -1px; }

/* =================== v2.20 : 23 polices en plus (Google Fonts, licence OFL) =================== */
@font-face { font-family: 'Brume orbitron'; src: url('fonts/orbitron.woff2') format('woff2'); font-display: swap; }
.ff-orbitron { font-family: 'Brume orbitron', system-ui, sans-serif; font-weight: 700; letter-spacing: .04em; }
@font-face { font-family: 'Brume press-start-2p'; src: url('fonts/press-start-2p.woff2') format('woff2'); font-display: swap; }
.ff-press-start-2p { font-family: 'Brume press-start-2p', system-ui, sans-serif; font-weight: 400; font-size: .72em; letter-spacing: 0; }
@font-face { font-family: 'Brume permanent-marker'; src: url('fonts/permanent-marker.woff2') format('woff2'); font-display: swap; }
.ff-permanent-marker { font-family: 'Brume permanent-marker', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume lobster'; src: url('fonts/lobster.woff2') format('woff2'); font-display: swap; }
.ff-lobster { font-family: 'Brume lobster', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume monoton'; src: url('fonts/monoton.woff2') format('woff2'); font-display: swap; }
.ff-monoton { font-family: 'Brume monoton', system-ui, sans-serif; font-weight: 400; font-size: .95em; letter-spacing: .02em; }
@font-face { font-family: 'Brume bungee'; src: url('fonts/bungee.woff2') format('woff2'); font-display: swap; }
.ff-bungee { font-family: 'Brume bungee', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume bungee-shade'; src: url('fonts/bungee-shade.woff2') format('woff2'); font-display: swap; }
.ff-bungee-shade { font-family: 'Brume bungee-shade', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume righteous'; src: url('fonts/righteous.woff2') format('woff2'); font-display: swap; }
.ff-righteous { font-family: 'Brume righteous', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume audiowide'; src: url('fonts/audiowide.woff2') format('woff2'); font-display: swap; }
.ff-audiowide { font-family: 'Brume audiowide', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume pacifico'; src: url('fonts/pacifico.woff2') format('woff2'); font-display: swap; }
.ff-pacifico { font-family: 'Brume pacifico', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume russo-one'; src: url('fonts/russo-one.woff2') format('woff2'); font-display: swap; }
.ff-russo-one { font-family: 'Brume russo-one', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume black-ops-one'; src: url('fonts/black-ops-one.woff2') format('woff2'); font-display: swap; }
.ff-black-ops-one { font-family: 'Brume black-ops-one', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume great-vibes'; src: url('fonts/great-vibes.woff2') format('woff2'); font-display: swap; }
.ff-great-vibes { font-family: 'Brume great-vibes', system-ui, sans-serif; font-weight: 400; font-size: 1.25em; }
@font-face { font-family: 'Brume fredoka'; src: url('fonts/fredoka.woff2') format('woff2'); font-display: swap; }
.ff-fredoka { font-family: 'Brume fredoka', system-ui, sans-serif; font-weight: 700;  }
@font-face { font-family: 'Brume rubik-wet-paint'; src: url('fonts/rubik-wet-paint.woff2') format('woff2'); font-display: swap; }
.ff-rubik-wet-paint { font-family: 'Brume rubik-wet-paint', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume nosifer'; src: url('fonts/nosifer.woff2') format('woff2'); font-display: swap; }
.ff-nosifer { font-family: 'Brume nosifer', system-ui, sans-serif; font-weight: 400; font-size: .85em; }
@font-face { font-family: 'Brume faster-one'; src: url('fonts/faster-one.woff2') format('woff2'); font-display: swap; }
.ff-faster-one { font-family: 'Brume faster-one', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume silkscreen'; src: url('fonts/silkscreen.woff2') format('woff2'); font-display: swap; }
.ff-silkscreen { font-family: 'Brume silkscreen', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume shrikhand'; src: url('fonts/shrikhand.woff2') format('woff2'); font-display: swap; }
.ff-shrikhand { font-family: 'Brume shrikhand', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume kaushan-script'; src: url('fonts/kaushan-script.woff2') format('woff2'); font-display: swap; }
.ff-kaushan-script { font-family: 'Brume kaushan-script', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume rampart-one'; src: url('fonts/rampart-one.woff2') format('woff2'); font-display: swap; }
.ff-rampart-one { font-family: 'Brume rampart-one', system-ui, sans-serif; font-weight: 400;  }
@font-face { font-family: 'Brume unifrakturmaguntia'; src: url('fonts/unifrakturmaguntia.woff2') format('woff2'); font-display: swap; }
.ff-unifrakturmaguntia { font-family: 'Brume unifrakturmaguntia', system-ui, sans-serif; font-weight: 400; font-size: 1.1em; }
@font-face { font-family: 'Brume codystar'; src: url('fonts/codystar.woff2') format('woff2'); font-display: swap; }
.ff-codystar { font-family: 'Brume codystar', system-ui, sans-serif; font-weight: 400; font-weight: 400; }

.avw > .deco > .deco-live { display: block; width: 100%; height: 100%; }
.deco-live > svg { display: block; width: 100% !important; height: 100% !important; }

/* =================== v2.20 : éditeur de profil (aperçu + feuilles) =================== */
.ed-prev { position: sticky; top: 0; z-index: 6; margin: 0 -4px; padding: 4px; background: var(--panel); border-radius: 18px; }
body.has-wp .ed-prev { background: rgba(18,21,29,.92); }
.ed-card { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #10131b; padding: 0 12px 12px; }
.ed-banner-slot .prof-banner { margin: 0 -12px; height: 84px; border-radius: 0; }
.ed-prev { --ext: 46px; }
.ed-head { display: flex; align-items: flex-end; gap: 6px; margin-top: calc(8px - var(--ext)); position: relative; z-index: 2; }
.ed-av-slot { flex: none; width: calc(2 * var(--ext)); height: calc(2 * var(--ext)); display: flex; align-items: center; justify-content: center; margin-left: max(-12px, calc(46px - var(--ext))); }
.ed-av-slot .av { border: 4px solid #10131b; box-sizing: content-box; }
.ed-id { min-width: 0; margin-bottom: calc(var(--ext) - 44px); display: flex; flex-direction: column; gap: 4px; }
.ed-name { font-size: 22px; min-width: 0; white-space: nowrap; }
.ed-bio { font-size: 13px; color: var(--ink); margin: 8px 2px 4px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 3.2em; overflow: hidden; }
.ed-bio.empty { color: var(--muted); font-style: italic; }
.ed-plate-lbl { margin: 6px 2px 4px; font-size: 11px; }
.ed-row { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ed-srow { border: 0; padding: 8px 12px; pointer-events: none; }
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ed-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px 10px;
  color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.ed-tile:active { transform: scale(.97); }
.ed-tile-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #6d8bff, #b36bff); box-shadow: 0 6px 18px -8px rgba(109,139,255,.8); }
.ed-tile-t { font-weight: 700; font-size: 14px; }
.ed-tile-v { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-reset { align-self: center; margin-top: 6px; color: var(--muted); font-size: 12px; }
.ed-savebar { position: fixed; left: 10px; right: 10px; bottom: calc(70px + var(--safe-b)); z-index: 850; display: flex; align-items: center; gap: 8px; max-width: 540px; margin: 0 auto;
  background: rgba(28,32,46,.97); border: 1px solid rgba(109,139,255,.55); border-radius: 16px; padding: 10px 10px 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.5);
  animation: inapp-in .3s ease, sb-glow 2.2s ease-in-out .3s infinite; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@keyframes sb-glow { 0%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 0 0 rgba(109,139,255,0); } 50% { box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 0 4px rgba(109,139,255,.25); } }
.ed-sb-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ed-sb-t svg { color: #ffd24a; flex: none; }
.ed-sb-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ed-open .ed-savebar { display: none; }
.ed-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 880; max-width: 560px; margin: 0 auto; height: min(56vh, 520px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -16px 40px rgba(0,0,0,.55);
  padding: 6px 14px calc(10px + var(--safe-b)); animation: prof-in .22s ease-out; }
.eds-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 6px; flex: none; }
.eds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; flex: none; }
.eds-title { font-weight: 800; font-size: 17px; }
.eds-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.eds-body .field, .eds-body .btn { max-width: none; }
.ed-chips { display: flex; gap: 8px; overflow-x: auto; flex: none; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ed-chips::-webkit-scrollbar { display: none; }
.ed-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 7px 13px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ed-chip.on { background: var(--me); border-color: var(--me); color: #fff; }
.hue-chip { display: inline-flex; align-items: center; gap: 6px; }
.hue-sw { width: 20px; height: 20px; border-radius: 50%; display: inline-block; border: 2px solid rgba(255,255,255,.7); }
.hue-sw.orig { background: conic-gradient(#ffd24a, #ff9f43, #b36bff, #3fd0ff, #47e891, #ffd24a); }
.ed-deco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ed-deco { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #141519; border: 1px solid var(--line); border-radius: 12px; padding: 16px 2px 8px;
  color: var(--ink); cursor: pointer; overflow: hidden; min-height: 104px; font: inherit; }
.ed-deco.on { border-color: #5865f2; box-shadow: 0 0 0 1px #5865f2 inset; }
.ed-deco small { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.ed-tabs { flex: none; }
.ed-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed-tiles .look-tile { min-height: 64px; }
.ed-tiles .look-tile .nm { font-size: 17px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ed-pals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ed-pal { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.ed-pal-sw { width: 100%; height: 30px; border-radius: 10px; border: 2px solid transparent; }
.ed-pal.on .ed-pal-sw { border-color: #fff; box-shadow: 0 0 0 2px #5865f2; }
.ed-pal small { font-size: 10px; }
.ed-fx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed-fx { display: flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.ed-fx-prev { position: relative; display: block; height: 52px; border-radius: 10px; overflow: hidden; border: 2px solid transparent;
  background: linear-gradient(135deg, var(--c1), var(--c2)); }
.ed-fx-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-fx.on .ed-fx-prev { border-color: #fff; box-shadow: 0 0 0 2px #5865f2; }
.ed-fx small { font-size: 10px; text-align: center; }
.ed-plates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ed-plate { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; height: 58px; padding: 6px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: #141519; color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; text-align: left; }
.ed-plate .nm { font-size: 14px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ed-plate small { font-size: 10px; color: #cfd5e6; }
.ed-plate.on { border-color: #fff; box-shadow: 0 0 0 2px #5865f2; }

/* plaques de discussion v2 : un canvas dessiné en direct, de la taille exacte de la ligne (plates.js) ;
   la pellicule assombrie à gauche qui garde le pseudo lisible est peinte dans le canvas */
.has-plate { position: relative; overflow: hidden; isolation: isolate; }
.has-plate > .plate-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; border-radius: inherit; }
.has-plate > :not(.plate-cv) { position: relative; z-index: 1; }
.srow.has-plate.unread { background: none; }
.ed-plate.has-plate { background: #141519; }
.ed-plate .nm, .ed-plate small { text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* bannière : effet animé par-dessus + contours */
.prof-banner { position: relative; }
.bfx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.bfx > img, .bfx-live, .bfx-live > svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.bfr::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; }
.bfr-or::after { box-shadow: inset 0 0 0 3px #f5d77f, inset 0 0 0 5px #8a6a1f, inset 0 0 22px rgba(255,200,60,.45); }
.bfr-argent::after { box-shadow: inset 0 0 0 3px #eef2f7, inset 0 0 0 5px #6c757f, inset 0 0 22px rgba(220,230,240,.35); }
.bfr-neon::after { box-shadow: inset 0 0 0 2px var(--c1, #6d8bff), inset 0 0 16px var(--c1, #6d8bff), inset 0 0 34px var(--c2, #b36bff); animation: nm-pulse-box 2.2s ease-in-out infinite; }
@keyframes nm-pulse-box { 50% { opacity: .55; } }
.bfr-arc::after { box-shadow: inset 0 0 0 3px #ff4d6d, inset 0 0 18px #ff4d6d; animation: nm-hue 4s linear infinite; }
.bfr-feu::after { box-shadow: inset 0 0 0 3px #ff7a00, inset 0 -10px 26px rgba(255,80,0,.75), inset 0 0 12px #ffc400; animation: fire-flick 1.3s ease-in-out infinite alternate; }
@keyframes fire-flick { from { opacity: .85; } to { opacity: 1; filter: brightness(1.2); } }
.bfr-glace::after { box-shadow: inset 0 0 0 2px #e0fbff, inset 0 0 0 4px #62c7ff, inset 0 0 26px rgba(160,230,255,.6); }
.bfr-rose::after { box-shadow: inset 0 0 0 3px #ff8fc7, inset 0 0 24px rgba(255,120,190,.6); }
.bfr-nuit::after { box-shadow: inset 0 0 0 3px #3a2a7a, inset 0 0 0 4px #b36bff, inset 0 0 30px rgba(90,50,200,.7); }
@media (prefers-reduced-motion: reduce) { .bfr::after { animation: none !important; } }

/* =================== v2.20 : icônes au style de Brume =================== */
#tabbar button > * { position: relative; z-index: 1; }
#tabbar button::before { content: ''; position: absolute; top: 4px; left: 50%; width: 50px; height: 28px; margin-left: -25px; border-radius: 12px; z-index: 0;
  background: linear-gradient(135deg, #6d8bff, #b36bff); box-shadow: 0 6px 18px -6px rgba(140,110,255,.9); opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .18s ease; }
#tabbar button.on::before { opacity: 1; transform: none; }
#tabbar button.on svg.i { color: #fff; }
#tabbar button.on .tl { background: linear-gradient(90deg, #aebcff, #d9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.icon.send { background: linear-gradient(135deg, #6d8bff, #b36bff); box-shadow: 0 6px 16px -8px rgba(140,110,255,.9); }
.icon.send:active, .ed-tile-ic:active { transform: scale(.94); }
.h-ic svg { color: #b39bff; filter: drop-shadow(0 0 6px rgba(140,110,255,.55)); }
.btn.primary { background: linear-gradient(135deg, #4a6cf0, #7a5cf0); }
#tabbar button .tl { margin-top: 2px; }

/* nouveautés (cadres et plaques dessinés pour Brume) : petite pastille */
.ed-deco { position: relative; }
.ed-deco.nw::before, .ed-plate.nw::before { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: #ff5f8f; box-shadow: 0 0 0 2px #141519; z-index: 2; }

/* réactions aux messages */
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 6px 2px; position: relative; z-index: 1; }
.row.me .reacts { justify-content: flex-end; }
.react-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: #23252e; border: 2px solid var(--bg); color: var(--ink); font-size: 14px; line-height: 1.3; cursor: pointer; }
.react-chip.mine { background: #2f3a6b; }
.rc-n { font-size: 11px; font-weight: 700; color: #cfd5e6; }
.react-bar { display: flex; align-items: center; justify-content: space-between; gap: 2px; background: #1c1e25; border-radius: 999px; padding: 6px 8px; margin-bottom: 10px; }
.rb-e { font-size: 27px; line-height: 1; background: none; border: 0; padding: 3px; border-radius: 50%; cursor: pointer; transition: transform .12s; }
.rb-e:active { transform: scale(1.35); }
.rb-e.on { background: rgba(88,101,242,.35); }
.rb-more { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #2a2d37; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.react-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-height: 50vh; overflow-y: auto; }
.rg-e { font-size: 28px; background: none; border: 0; padding: 4px 0; cursor: pointer; border-radius: 10px; }
.rg-e:active { background: #23252e; }
.bubble { position: relative; }
.heart-burst { position: absolute; left: 50%; top: 50%; font-size: 46px; pointer-events: none; transform: translate(-50%, -50%) scale(.2); animation: heart-burst .8s ease-out forwards; z-index: 3; }
@keyframes heart-burst { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -90%) scale(.9); opacity: 0; } }

/* sessions coupées */
.sr-mute { color: #8a91a3; }
.badge.on.muted { background: #4b5160; }

/* annonces + chat global */
.chan-row .chan-av { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.chan-annonces .chan-av { background: linear-gradient(135deg, #ff5f8f, #b36bff); }
.chan-global .chan-av { background: linear-gradient(135deg, #3fd0ff, #6d8bff); }
.chan-row.chan-annonces { background: linear-gradient(90deg, rgba(179,107,255,.14), transparent 70%); }
.chan-name { font-weight: 700; }
.chan-ok { color: #3fd0ff; margin-left: 4px; }
.chan-ov { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; padding-bottom: var(--safe-b); }
.chan-bar { display: flex; align-items: center; gap: 8px; padding-top: calc(8px + var(--safe-t)); }
.chan-title { flex: 1; display: flex; align-items: center; gap: 9px; }
.chan-av.sm { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.chan-annonces .chan-av.sm { background: linear-gradient(135deg, #ff5f8f, #b36bff); }
.chan-global .chan-av.sm { background: linear-gradient(135deg, #3fd0ff, #6d8bff); }
.chan-warn { padding: 6px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.chan-log { flex: 1; overflow-y: auto; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 2px; -webkit-overflow-scrolling: touch; }
.chan-empty { text-align: center; padding: 40px 10px; }
.cmsg { display: flex; gap: 10px; padding: 6px 4px 2px; border-radius: 10px; }
.cmsg.cont { padding-top: 0; }
.cmsg-av { width: 40px; flex: none; display: flex; justify-content: center; }
.cmsg-main { min-width: 0; flex: 1; }
.cmsg-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.cmsg-admin { font-size: 9px; font-weight: 800; letter-spacing: .6px; padding: 2px 5px; border-radius: 5px; background: linear-gradient(135deg, #ff5f8f, #b36bff); color: #fff; }
.cmsg-t { font-size: 11px; color: var(--muted); }
.cmsg-txt { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.38; color: var(--ink); }
.cmsg.ann .cmsg-txt { background: #171922; border: 1px solid rgba(179,107,255,.35); border-radius: 4px 14px 14px 14px; padding: 9px 12px; }
.chan-foot { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--panel); }
.chan-foot textarea { flex: 1; resize: none; max-height: 140px; background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 9px 14px; font: inherit; font-size: 16px; }
.chan-lock { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; }

/* =================== GIF v2 : favoris, recherches rapides, stickers perso =================== */
.gif-head { min-width: 0; }
.gif-tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.gif-tabs::-webkit-scrollbar { display: none; }
.gif-tab { flex: none; white-space: nowrap; padding: 7px 11px; font-size: 13px; }
.gif-tab.fav { color: #f5c542; }
.gif-tab.fav.on { color: #fff; }
.gif-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: none; margin: -2px 0; }
.gif-quick::-webkit-scrollbar { display: none; }
.gif-quick .gq { flex: none; padding: 5px 11px; font-size: 13px; white-space: nowrap; }
.gif-quick .gq.on { background: var(--me); border-color: var(--me); color: #fff; }
.gif-tile { position: relative; }
.gif-star { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .75); cursor: pointer; opacity: .85; -webkit-tap-highlight-color: transparent; }
.gif-star svg { fill: none; }
.gif-star.on { color: #f5c542; opacity: 1; }
.gif-star.on svg { fill: #f5c542; }
.emo { position: relative; }
.emo .gif-star { top: 0; right: 2px; width: 20px; height: 20px; }
.gif-tile.add { aspect-ratio: 1 / 1; display: grid; place-items: center; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); font: inherit; }
.gif-add { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.gif-grid.favs { display: block; }
.fav-emo { display: flex; flex-wrap: wrap; margin-bottom: 8px; }
.gif-grid.masonry.inner { overflow: visible; flex: none; }
.gif-msg.cst { width: 150px; object-fit: contain; }

/* =================== jeux v2 : animations P4, Othello, Pipopipette, Touché-coulé =================== */
.game-pick { overflow-x: auto; scrollbar-width: none; }
.game-pick .chip { flex: none; white-space: nowrap; }
.game.g-oth, .game.g-dab, .game.g-bs, .game.g-c4 { width: min(330px, 86vw); max-width: none; }
.game.g-ttt { width: min(250px, 70vw); }
.board.c4 .cell { overflow: visible; transition: background .15s; }
.board.c4 .cell.hov { background: #183178; }
.board.c4 .disc.drop { animation: c4-drop calc(.16s + var(--fall) * .055s) cubic-bezier(.5, 0, 1, 1) both, c4-bounce .22s ease-out calc(.16s + var(--fall) * .055s); position: relative; z-index: 2; }
@keyframes c4-drop { from { transform: translateY(calc(var(--fall) * -112%)); } to { transform: translateY(0); } }
@keyframes c4-bounce { 0% { transform: translateY(0); } 40% { transform: translateY(-14%); } 100% { transform: translateY(0); } }
.board.won .cell:not(.win) .disc.p1, .board.won .cell:not(.win) .disc.p2 { opacity: .45; transition: opacity .4s; }
.board.ttt.won .cell:not(.win) { opacity: .45; }
.board .cell.win .disc, .board.ttt .cell.win { animation: win-pulse 1s ease-in-out .3s infinite; }
.board.c4 .cell.win .disc { box-shadow: 0 0 0 3px #fff, 0 0 14px 3px rgba(255, 255, 255, .55); }
.board.ttt .cell.win { background: rgba(76, 134, 255, .18); }
@keyframes win-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.board.ttt .cell.pop svg { animation: pop-in .28s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop-in { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.score { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; font-weight: 800; font-size: 14px; }
.score .sc { padding: 3px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); opacity: .7; }
.score .sc.on { opacity: 1; border-color: var(--me); }
/* Othello */
.board.oth { grid-template-columns: repeat(8, 1fr); gap: 2px; background: #0b5d3b; padding: 5px; border-radius: 10px; }
.board.oth .cell { background: #13804f; border-radius: 3px; perspective: 300px; }
.board.oth .cell.can::after { content: ''; width: 26%; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, .28); }
.board.oth .cell.last { outline: 2px solid #ffd24a; outline-offset: -2px; }
.board.oth .disc { width: 80%; aspect-ratio: 1; border-radius: 50%; display: block; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .4); }
.board.oth .disc.p1, .score .sc.p1 { background: #15161b; color: #fff; }
.board.oth .disc.p2 { background: #f2f2f2; }
.g-oth .score .sc.p2 { background: #f2f2f2; color: #111; }
.board.oth .disc.pop { animation: pop-in .25s cubic-bezier(.3, 1.6, .5, 1) both; }
.board.oth .disc.flip { animation: oth-flip .42s ease-in-out both; }
@keyframes oth-flip { 0% { transform: rotateY(0); filter: invert(1); } 50% { transform: rotateY(90deg); filter: invert(1); } 51% { filter: none; } 100% { transform: rotateY(0); filter: none; } }
/* Pipopipette */
.board.dab { display: grid; gap: 0; aspect-ratio: 1; background: var(--panel); border-radius: 10px; padding: 8px; }
.board.dab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); z-index: 2; }
.board.dab .edge { border: 0; padding: 0; background: transparent; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.board.dab .edge::before { content: ''; position: absolute; border-radius: 3px; background: rgba(255, 255, 255, .08); transition: background .15s; }
.board.dab .edge.h::before { left: -1px; right: -1px; top: 50%; height: 5px; transform: translateY(-50%); }
.board.dab .edge.v::before { top: -1px; bottom: -1px; left: 50%; width: 5px; transform: translateX(-50%); }
.board.dab .edge.h { min-height: 10px; margin: -8px 0; padding: 8px 0; background-clip: content-box; }
.board.dab .edge.v { min-width: 10px; margin: 0 -8px; padding: 0 8px; background-clip: content-box; }
.board.dab .edge:not(:disabled):hover::before { background: rgba(255, 255, 255, .3); }
.board.dab .edge.p1::before { background: #4c86ff; }
.board.dab .edge.p2::before { background: #ff5f6d; }
.board.dab .edge.pop::before { animation: edge-in .3s ease-out both; }
@keyframes edge-in { from { opacity: .1; filter: brightness(2.2); } to { opacity: 1; filter: none; } }
.board.dab .box { margin: 2px; border-radius: 4px; transition: background .3s; }
.board.dab .box.p1 { background: rgba(76, 134, 255, .45); }
.board.dab .box.p2 { background: rgba(255, 95, 109, .45); }
.board.dab .box.pop { animation: pop-in .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.g-dab .score .sc.p1 { color: #8fb3ff; }
.g-dab .score .sc.p2 { color: #ff8f99; }
/* Touché-coulé */
.board.bs { grid-template-columns: repeat(10, 1fr); gap: 2px; background: #0c2a4a; padding: 4px; border-radius: 8px; }
.board.bs .cell { border-radius: 3px; background: #164a7a; position: relative; }
.board.bs.target .cell:not(:disabled):active { background: #2a6db0; }
.board.bs .cell.ship { background: #8a94a6; }
.board.bs .cell.ship.s0 { background: #9aa4b6; } .board.bs .cell.ship.s1 { background: #8590a3; } .board.bs .cell.ship.s2 { background: #a1a9b8; }
.board.bs .cell.ship.s3 { background: #7d889b; } .board.bs .cell.ship.s4 { background: #b0b7c4; }
.board.bs .cell.miss::after { content: ''; position: absolute; inset: 36%; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.board.bs .cell.hit { background: #e5484d; }
.board.bs .cell.hit::after { content: '✕'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 900; }
.board.bs .cell.sunk { background: #6b1013; }
.board.bs .cell.sunk::after { content: '✕'; position: absolute; inset: 0; display: grid; place-items: center; color: #ff8f8f; font-size: 11px; font-weight: 900; }
.board.bs .cell.wait { background: #2a6db0; animation: bs-wait 1s ease-in-out infinite; }
.board.bs .cell.last { outline: 2px solid #ffd24a; outline-offset: -1px; z-index: 1; }
.board.bs .cell.boom { animation: bs-boom .5s ease-out both; }
@keyframes bs-wait { 50% { opacity: .45; } }
@keyframes bs-boom { 0% { transform: scale(1.6); filter: brightness(2); } 100% { transform: scale(1); filter: none; } }
.board.bs.small { width: 62%; margin: 0 auto; gap: 1px; padding: 3px; }
.bs-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin: 8px 2px 4px; }
.bs-tip { margin-bottom: 8px; text-align: center; }
.bs-actions { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.bs-actions .chip.on { background: var(--me); border-color: var(--me); color: #fff; }

/* =================== raccourci du jeu de sable =================== */
.sable-chip .sable-dot, .sable-ic { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none;
  background: linear-gradient(135deg, #ffe0a0 0 30%, #ff4000 30% 55%, #2030d0 55% 80%, #a0a0a0 80%); }
.sable-hero { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(255, 80, 0, .16), rgba(32, 48, 208, .16)); color: var(--ink); cursor: pointer; }
.sable-hero .sable-ic { width: 40px; height: 40px; border-radius: 10px; }
.sable-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* =================== sauvegarde du compte =================== */
.bk-card { display: flex; flex-direction: column; gap: 10px; }
.bk-card .field { max-width: none; }
.bk-err { color: #ff6b6b; min-height: 1em; margin: 0; }
.backup-st { color: var(--muted); }
.backup-st.warn { color: #ffb44a; }
#reg-restore { margin-top: 14px; }

/* =================== créer un compte / se connecter (v2.28) =================== */
.auth-wrap { max-width: 380px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #15161c; border: 1px solid var(--line); width: 100%; }
.auth-tab { flex: 1; border: 0; background: none; color: var(--muted); padding: 9px 6px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.auth-tab.on { background: #fff; color: #0b0d12; }
.auth-pane { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.auth-pane[hidden] { display: none; }
.pw-meter { height: 5px; border-radius: 99px; background: #1d1e25; overflow: hidden; width: 100%; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 99px; background: #ff4d4d; transition: width .2s, background .2s; }
.pw-meter[data-s="2"] span, .pw-meter[data-s="3"] span { background: #ff9f43; }
.pw-meter[data-s="4"] span { background: #ffd24a; }
.pw-meter[data-s="5"] span, .pw-meter[data-s="6"] span { background: #47e891; }

/* =================== polish v2.30 : mouvements, transitions, retours tactiles =================== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.2, .9, .3, 1.15); }
.btn, .icon, .chip, .ed-tile, .act-item, .row-item.tap, #tabbar button, .lock-key, .ed-chip, .gc-row, .call-btn, .react-chip, .link { transition: transform .14s var(--ease), background .15s, border-color .15s, color .15s, box-shadow .2s, opacity .2s; }
.btn:not(:disabled):active, .icon:active, .chip:active, .ed-tile:active, .gc-row:active, .react-chip:active { transform: scale(.96); transition-duration: .06s; }
.btn.primary { background: linear-gradient(135deg, #4f6fe8, #3b5bdb 60%, #3350c7); box-shadow: 0 6px 18px -8px rgba(59, 91, 219, .9); }
.btn.primary:not(:disabled):hover { filter: brightness(1.08); }
.btn.ghost:hover, .btn.danger:hover { background: rgba(255, 255, 255, .04); }
.icon:hover { background: #1c2130; }
.icon.send:hover { filter: brightness(1.1); }
.field { transition: border-color .18s, box-shadow .18s, background .18s; }
.field:focus, #text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 139, 255, .18); }
.row-item.tap:active { transform: scale(.995); }

/* onglets et écrans : fondu + léger glissement */
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes screen-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes screen-back { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.tab.on { animation: tab-in .22s var(--ease) both; }
#screen-chat.on { animation: screen-in .26s var(--ease) both; }
#screen-home.on { animation: screen-back .22s var(--ease) both; }
#screen-register.on, #screen-lost.on { animation: tab-in .3s var(--ease) both; }
#tabbar button { transition: color .18s, transform .14s var(--ease); }
#tabbar button::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 0; height: 3px; border-radius: 3px; background: var(--accent); transform: translateX(-50%); transition: width .22s var(--spring), opacity .2s; opacity: 0; }
#tabbar button.on::after { width: 22px; opacity: 1; }
#tabbar button:active { transform: scale(.92); }
.badge { animation: pop-in .25s var(--spring); }

/* messages : chaque nouveau message arrive en glissant */
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes msg-in-me { from { opacity: 0; transform: translate(14px, 6px) scale(.96); } to { opacity: 1; transform: none; } }
.row.in { animation: msg-in .3s var(--spring) both; }
.row.me.in { animation: msg-in-me .3s var(--spring) both; }
.tsep { animation: tab-in .3s var(--ease) both; }

/* liste des sessions : cascade à l'ouverture, point « en ligne » qui respire */
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.list.fresh > * { animation: row-in .32s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.sr-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: dot-ring 2.4s ease-out infinite; }
@keyframes dot-ring { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* toast, menu, fenêtres, verrou */
#toast { transform: translate(-50%, 14px) scale(.96); transition: opacity .22s, transform .3s var(--spring); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(10, 12, 18, .92); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
#toast.show { transform: translate(-50%, 0) scale(1); }
#toast.bad { background: rgba(122, 31, 31, .95); }
#menu.on { animation: fade-in .16s ease; }
#menu.on .sheet { animation: prof-in .24s var(--ease); }
.firstrun { animation: fade-in .18s ease; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.firstrun-card { animation: card-in .28s var(--spring); }
.lock-ov { animation: fade-in .22s ease; }
.lock-key:active:not(.down) { transform: scale(.93); }
.call-in-card { animation: card-in .28s var(--spring); }
.inapp { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* composeur : le bouton d'envoi s'allume quand il y a du texte */
#composer .icon.send { opacity: .55; transform: scale(.94); transition: opacity .18s, transform .22s var(--spring), filter .15s; }
#composer.has-text .icon.send { opacity: 1; transform: scale(1); box-shadow: 0 6px 16px -8px rgba(59, 91, 219, .9); }
#composer .icon.send:active { transform: scale(.9) rotate(-8deg); }

/* photos de profil et pseudos : léger relief au toucher */
.tap-prof { transition: transform .14s var(--ease); }
.tap-prof:active { transform: scale(.94); }
.av { transition: transform .15s var(--ease), box-shadow .2s; }

/* bulles : apparition des réactions */
.reacts { animation: pop-in .22s var(--spring); }

@media (prefers-reduced-motion: reduce) {
  .tab.on, #screen-chat.on, #screen-home.on, #screen-register.on, #screen-lost.on, .row.in, .row.me.in, .tsep, .list.fresh > *, .sr-dot::after, .badge, .firstrun, .firstrun-card, .lock-ov, #menu.on, #menu.on .sheet, .call-in-card, .reacts { animation: none !important; }
  .btn, .icon, .chip, .ed-tile, .act-item, .row-item.tap, #tabbar button, #tabbar button::after, #toast, .field, .tap-prof, .av { transition: none !important; }
}

/* =================== GIF & stickers v2.31 : sources, rail de catégories, suggestions =================== */
.gif-searchrow { display: flex; gap: 8px; align-items: center; }
.gif-searchrow .field { flex: 1; min-width: 0; }
.gif-src { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); flex: none; }
.gif-src[hidden] { display: none; }
.gif-srcb { border: 0; background: none; color: var(--muted); border-radius: 9px; padding: 7px 10px; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .03em; cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.gif-srcb.on { background: var(--me); color: #fff; box-shadow: 0 4px 12px -6px rgba(59, 91, 219, .9); }
.gif-srcb:active { transform: scale(.95); }
.gif-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; flex: none; padding: 2px 2px 4px; }
.gif-rail::-webkit-scrollbar { display: none; }
.gif-rail[hidden] { display: none; }
.gif-cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; transition: transform .14s var(--ease), color .15s; }
.gif-cat:active { transform: scale(.94); }
.gif-cat-im { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--panel2); border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 14px; text-transform: uppercase; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.gif-cat-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-cat.on .gif-cat-im { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(109, 139, 255, .35), 0 6px 16px -8px var(--accent); }
.gif-cat.on { color: var(--ink); }
.gif-cat-n { font-size: 10.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.gif-quick.sugg .gq { border-style: dashed; }
.gif-quick.sugg .gq::before { content: '🔍 '; font-size: 11px; }
/* stickers : flottants, sans carte, avec une ombre portée (comme sur TikTok) */
.gif-grid.stk .gif-tile.st { background: transparent; border-radius: 8px; }
.gif-grid.stk .gif-tile.st .gif-img { padding: 6px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); transition: transform .18s var(--spring); }
.gif-grid.stk .gif-tile.st:hover .gif-img { transform: scale(1.06); }
.gif-grid.stk .gif-tile.st:active .gif-img { transform: scale(.94); }
.gif-grid.stk .gif-tile.st .gif-star { background: rgba(0, 0, 0, .35); }
.gif-msg.st { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }

/* =================== v2.33 : éditeur du pseudo (façon Discord) =================== */
.ed-sheet.tall { height: min(66vh, 640px); }
.eds-body.edn { overflow: hidden; gap: 8px; }
.edn-prev { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: radial-gradient(120% 160% at 0% 0%, #1c2030 0%, #0d0f15 72%); }
.edn-prev-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.edn-prev-txt .nm { font-size: 23px; }
.edn-prev-txt small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edn-tabs { flex: none; }
.edn-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 9px; padding: 2px 1px 12px; }
.edn-intro { margin-top: 2px; }
.edn-h { font-weight: 800; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 8px; }
.edn-h-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-transform: none; letter-spacing: 0; }
.edn-h-row > span { text-transform: uppercase; letter-spacing: .07em; }
.edn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.edn-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-width: 0; min-height: 66px;
  padding: 11px 12px 8px; border-radius: 14px; border: 1px solid var(--line); background: #10131b; color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.edn-nm { display: flex; max-width: 100%; min-width: 0; font-size: 19px; }
.edn-tile small { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edn-tile.on { border-color: transparent; background: #151a33; box-shadow: 0 0 0 2px #5865f2, 0 6px 22px -10px #5865f2; }
.edn-tile.on::after { content: ''; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: #5865f2 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 10px no-repeat; }
.edn-new { margin-left: 6px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #c9d2ff; background: rgba(88,101,242,.3);
  border-radius: 6px; padding: 1px 5px; vertical-align: 1px; }
.edn-pals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 8px; }
.edn-pal { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.edn-pal-sw { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 10px; border: 2px solid transparent; background-origin: border-box; }
.edn-pal small { font-size: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edn-pal.on .edn-pal-sw { border-color: #fff; box-shadow: 0 0 0 2px #5865f2; }
.edn-mixbtn .edn-pal-sw { background: linear-gradient(135deg, #2a2f45, #1b1f2e); border: 1px dashed rgba(255,255,255,.35); color: #fff; font-weight: 700; font-size: 13px; }
.edn-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); }
.edn-seg-b { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.edn-seg-b.on { background: var(--me); color: #fff; }
.edn-slots { display: flex; align-items: center; gap: 14px; padding: 2px 2px 4px; flex-wrap: wrap; }
.edn-slot { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #0d0f15; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; flex: none; }
.edn-slot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #5865f2; }
.edn-slot small { position: absolute; right: -6px; bottom: -6px; width: 18px; height: 18px; border-radius: 50%; background: #0d0f15; color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.edn-palnote { flex: 1; min-width: 140px; }
.cw { display: flex; align-items: center; gap: 16px; }
.cw-wheel { position: relative; width: 150px; height: 150px; flex: none; }
.cw-cv { display: block; width: 100%; height: 100%; border-radius: 50%; touch-action: none; cursor: crosshair; }
.cw-mk { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.55); }
.cw-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cw-val { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; border-radius: 8px; margin: 0; background: linear-gradient(90deg, #000, var(--vc, #fff)); outline: none; }
.cw-val::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #0d0f15; box-shadow: 0 1px 5px rgba(0,0,0,.6); }
.cw-val::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #0d0f15; }
.cw-hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px 10px; font-size: 15px; }
.cw-pip { align-self: flex-start; }
.cw-nat, .edn-ce-nat { width: 34px; height: 34px; padding: 0; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; background: none; overflow: hidden; cursor: pointer; }
.cw-nat { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.edn-sws { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.edn-sw { aspect-ratio: 1; width: 100%; min-width: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); cursor: pointer; padding: 0; }
.edn-row .edn-sw { width: 34px; height: 34px; flex: none; }
.edn-sw.on { border-color: #fff; box-shadow: 0 0 0 2px #5865f2; }
.edn-note { font-size: 12px; color: #ffd24a; margin: 0; }
.edn-mixes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.edn-mix { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 2px 6px; border-radius: 12px; border: 1px solid var(--line); background: #10131b;
  color: var(--muted); font: inherit; cursor: pointer; overflow: hidden; }
.edn-mix-aa { font-size: 17px; display: flex; max-width: 100%; }
.edn-mix small { font-size: 10px; }
.edn-mix.on { border-color: transparent; box-shadow: 0 0 0 2px #5865f2; color: #fff; background: #151a33; }
.edn-dirs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.edn-dir { height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); font: inherit; font-size: 17px; cursor: pointer; padding: 0; }
.edn-dir.on { background: var(--me); border-color: var(--me); color: #fff; }
.edn-range { width: 100%; accent-color: #5865f2; }
.edn-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.edn-row .ed-chip:disabled { opacity: .4; }

/* =================== v2.34 : photo en grand, options du profil =================== */
.zoom-ov { position: fixed; inset: 0; z-index: 990; background: rgba(5,6,10,.94); display: flex; align-items: center; justify-content: center;
  padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); animation: prof-in .18s ease-out; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoom-img { width: min(92vw, 78vh, 560px); height: min(92vw, 78vh, 560px); object-fit: cover; border-radius: 24px; touch-action: none; user-select: none;
  -webkit-user-drag: none; box-shadow: 0 20px 60px rgba(0,0,0,.6); transform-origin: 50% 50%; will-change: transform; }
.zoom-img.anim { transition: transform .2s ease; }
.zoom-x { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; background: rgba(255,255,255,.12); border-radius: 50%; width: 42px; height: 42px; color: #fff; }
.zoom-cap { position: absolute; bottom: calc(18px + var(--safe-b)); left: 0; right: 0; text-align: center; color: var(--muted); font-weight: 700; }
#name-card .name-cur { font-size: 18px; font-weight: 800; }
