/* RushPvP - Octologs — noir / orange October */
:root {
  --bg: #09090b;
  --bg2: #0e0e11;
  --panel: #131317;
  --panel2: #18181d;
  --line: #24242b;
  --line2: #2f2f38;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --or: #ff7a18;
  --or2: #ff9a3d;
  --or3: #e5480b;
  --or-soft: rgba(255, 122, 24, .12);
  --or-glow: rgba(255, 122, 24, .35);
  --ok: #22c55e;
  --bad: #ef4444;
  --dev: #a78bfa;
  --radius: 14px;
  --radius-s: 10px;
  --top: 64px;
  --side: 272px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 50% -220px, rgba(255, 122, 24, .10), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: var(--or2); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--or); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #26262d; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #34343d; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hide { display: none !important; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.boot img { width: 64px; height: 64px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .6; } }

/* ── Connexion ─────────────────────────────────────────────── */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: 100%; max-width: 420px; padding: 36px 28px 28px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,122,24,.07), transparent 40%), var(--panel);
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,122,24,.05) inset;
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: 26px; }
.login-brand img { width: 68px; height: 68px; filter: drop-shadow(0 8px 26px var(--or-glow)); }
.login-brand h1 { font: 800 26px/1.1 Sora, Inter, sans-serif; margin: 0; letter-spacing: -.02em; }
.login-brand h1 span { color: var(--or); }
.login-brand p { margin: 0; color: var(--muted); font-size: 13.5px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--bg2);
  border: 1px solid var(--line2); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--or); box-shadow: 0 0 0 4px var(--or-soft); }
.input.code { text-align: center; font: 700 26px var(--mono); letter-spacing: .4em; height: 58px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line2); background: var(--panel2); font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { background: #202027; border-color: #3a3a44; }
.btn:active { transform: scale(.98); }
.btn.primary {
  background: linear-gradient(135deg, var(--or2), var(--or) 45%, var(--or3)); border: 0; color: #140800;
  box-shadow: 0 8px 24px rgba(255,122,24,.28);
}
.btn.primary:hover { filter: brightness(1.07); }
.btn.block { width: 100%; height: 46px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel2); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.login-who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 14px; }
.login-who img { width: 40px; height: 40px; border-radius: 50%; }
.login-foot { margin-top: 18px; text-align: center; color: var(--dim); font-size: 12px; }
.err { color: #fca5a5; font-size: 13px; min-height: 18px; margin: 4px 0 10px; }

/* ── Structure ─────────────────────────────────────────────── */
.shell { min-height: 100%; }
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 14px;
  padding: 0 18px; background: rgba(9,9,11,.82); backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: calc(var(--side) - 18px); cursor: pointer; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px var(--or-glow)); }
.brand b { font: 800 17px/1 Sora, Inter, sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.brand b span { color: var(--or); }
.brand small { display: block; font-size: 10.5px; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); place-items: center; }

.search { flex: 1; display: flex; justify-content: center; min-width: 0; }
.search-box {
  position: relative; width: 100%; max-width: 760px; display: flex; align-items: center; height: 44px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 13px; transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--or); box-shadow: 0 0 0 4px var(--or-soft), 0 10px 30px rgba(0,0,0,.4); }
.search-box svg { flex: none; margin: 0 10px 0 14px; color: var(--dim); }
.search-box input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 14.5px; }
.search-box input::placeholder { color: var(--dim); }
.search-kind {
  flex: none; margin-right: 6px; padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; background: var(--or-soft); color: var(--or2); border: 1px solid rgba(255,122,24,.3);
}
.search-clear { flex: none; width: 30px; height: 30px; margin-right: 6px; border-radius: 8px; border: 0; background: transparent; color: var(--dim); display: grid; place-items: center; }
.search-clear:hover { background: var(--panel2); color: var(--text); }
.kbd { flex: none; margin-right: 10px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line2); color: var(--dim); font: 600 11px var(--mono); }

.top-right { display: flex; align-items: center; gap: 10px; }
.envs { display: flex; padding: 3px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line2); }
.envs button {
  height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 12px; letter-spacing: .06em; display: flex; align-items: center; gap: 7px;
}
.envs button.on { background: var(--or); color: #140800; }
.envs button.on.dev { background: var(--dev); color: #12062b; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.envs button.on .dot.on { background: #0c3d1d; box-shadow: none; }
.me { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 12px; border: 1px solid transparent; background: none; }
.me:hover { background: var(--panel); border-color: var(--line2); }
.me img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--or); }
.me div { text-align: left; line-height: 1.2; }
.me b { display: block; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me small { color: var(--or2); font-size: 11px; font-weight: 600; }

.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.side {
  position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 16px 12px 24px;
  border-right: 1px solid var(--line); background: rgba(14,14,17,.6);
}
.side-sec { margin-bottom: 14px; }
.side-sec h4 { margin: 0 0 6px; padding: 0 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.cat {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; border: 0;
  background: transparent; text-align: left; color: var(--muted); font-weight: 500; transition: background .12s, color .12s;
}
.cat:hover { background: var(--panel); color: var(--text); }
.cat.on { background: linear-gradient(90deg, var(--or-soft), rgba(255,122,24,.03)); color: var(--text); box-shadow: inset 2px 0 0 var(--or); }
.emo {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 15px;
  background: var(--panel2); border: 1px solid var(--line);
}
.cat.on .emo { background: rgba(255,122,24,.16); border-color: rgba(255,122,24,.35); }
.cat span.l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat .n { font: 600 11px var(--mono); color: var(--dim); padding: 1px 7px; border-radius: 20px; background: var(--bg2); }
.cat.on .n { color: var(--or2); }
.cat .n.today { color: var(--or2); }
.side-foot { padding: 12px 10px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; line-height: 1.6; }

.main { min-width: 0; padding: 22px 24px 40px; }
.content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.content.split { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.head h2 { margin: 0; font: 800 24px/1.15 Sora, Inter, sans-serif; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.head h2 .emo { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; background: var(--or-soft); border-color: rgba(255,122,24,.3); }
.head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line2); }
.chips button { height: 30px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.chips button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 10px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.live.on i { background: var(--or); box-shadow: 0 0 0 0 var(--or-glow); animation: ping 1.6s infinite; }
.live.on { color: var(--or2); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,122,24,.55); } 100% { box-shadow: 0 0 0 9px rgba(255,122,24,0); } }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(var(--or-soft), transparent 70%); }
.kpi small { display: block; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.kpi b { display: block; font: 800 22px/1.3 Sora, Inter, sans-serif; margin-top: 4px; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); }

/* ── Liste des logs ─────────────────────────────────────────── */
.list { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.newpill {
  position: sticky; top: calc(var(--top) + 10px); z-index: 5; display: flex; justify-content: center; height: 0;
}
.newpill button { transform: translateY(-4px); height: 34px; padding: 0 16px; border-radius: 30px; border: 0; background: var(--or); color: #140800; font-weight: 700; box-shadow: 0 10px 30px rgba(255,122,24,.4); }
.row {
  position: relative; display: grid; grid-template-columns: 4px 38px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: #17171c; }
.row.on { background: linear-gradient(90deg, rgba(255,122,24,.10), rgba(255,122,24,.02)); }
.row.fresh { animation: fresh 1.8s ease-out; }
@keyframes fresh { from { background: rgba(255,122,24,.20); } }
.row .bar { align-self: stretch; border-radius: 0 3px 3px 0; background: var(--line2); }
.row .emo { margin-top: 1px; }
.row .t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row .t b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.row .p { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.row .when { text-align: right; font-size: 12px; color: var(--dim); white-space: nowrap; padding-top: 2px; }
.row .when b { display: block; color: var(--muted); font-weight: 600; font-family: var(--mono); font-size: 11.5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--bg2); border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.tag.tc { color: var(--dim); }
.cat .n:empty, .cat .n.z { opacity: .45; }
.tag.pl { color: var(--or2); border-color: rgba(255,122,24,.28); background: rgba(255,122,24,.07); cursor: pointer; }
.tag.pl:hover { background: rgba(255,122,24,.16); }
.tag.dev { color: var(--dev); border-color: rgba(167,139,250,.35); background: rgba(167,139,250,.08); }
.more { display: flex; justify-content: center; padding: 14px; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.skel { height: 66px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent); background-size: 300% 100%; animation: sk 1.2s infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ── Joueurs trouvés ─────────────────────────────────────────── */
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pcard {
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer;
  background: linear-gradient(160deg, rgba(255,122,24,.08), transparent 55%), var(--panel); transition: border-color .15s, transform .12s;
}
.pcard:hover { border-color: rgba(255,122,24,.45); transform: translateY(-1px); }
.pcard .h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--or2), var(--or3)); color: #140800; font: 800 16px Sora, Inter, sans-serif;
}
.pcard .h b { display: block; font-size: 15px; }
.pcard .h small { color: var(--or2); font: 600 12px var(--mono); }
.ids { display: grid; gap: 5px; }
.idl { display: flex; align-items: center; gap: 8px; font-size: 12px; min-width: 0; }
.idl span { flex: none; width: 62px; color: var(--dim); font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; }
.idl code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); color: var(--text); }
.copy { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: var(--dim); display: grid; place-items: center; }
.copy:hover { background: var(--panel2); color: var(--or2); }
.idl.link code { cursor: pointer; }
.idl.link code:hover { color: var(--or2); text-decoration: underline; }

/* ── Détail ─────────────────────────────────────────────────── */
.detail { position: sticky; top: calc(var(--top) + 22px); max-height: calc(100vh - var(--top) - 44px); overflow-y: auto; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.detail-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(19,19,23,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.detail-h b { flex: 1; font-size: 13px; color: var(--muted); font-weight: 600; }
.detail-b { padding: 16px; display: grid; gap: 16px; }
.sec h5 { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.meta div { padding: 9px 11px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.meta small { display: block; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.meta span { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keys { display: flex; gap: 6px; flex-wrap: wrap; }
.key { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--line2); font-size: 12px; cursor: pointer; }
.key:hover { border-color: var(--or); }
.key i { font-style: normal; color: var(--or2); font-weight: 700; font-size: 10.5px; text-transform: uppercase; }
.key code { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Embed façon Discord */
.embed { display: grid; grid-template-columns: 4px minmax(0, 1fr); border-radius: 8px; overflow: hidden; background: #1b1b21; border: 1px solid var(--line); }
.embed .c { background: var(--or); }
.embed .in { padding: 12px 14px 14px; min-width: 0; display: grid; gap: 8px; }
.embed .au { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.embed .ti { font-weight: 700; font-size: 15px; }
.embed .de { font-size: 13.5px; white-space: normal; word-break: break-word; color: #dcdce1; }
.embed .fs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.embed .f { grid-column: 1 / -1; min-width: 0; }
.embed .f.il { grid-column: auto; }
.embed .f b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.embed .f div { font-size: 13px; color: #dcdce1; word-break: break-word; }
.embed .ft { font-size: 11.5px; color: var(--dim); }
.embed .th { float: right; width: 72px; height: 72px; border-radius: 6px; object-fit: cover; margin-left: 10px; }
.embed .im { max-width: 100%; border-radius: 6px; }
.embed pre { margin: 4px 0; padding: 8px 10px; border-radius: 6px; background: #0f0f13; border: 1px solid var(--line); font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; color: #e4e4e7; }
.embed code { padding: 1px 5px; border-radius: 4px; background: #0f0f13; font: 12px var(--mono); }
.mention { padding: 0 4px; border-radius: 4px; background: rgba(255,122,24,.16); color: var(--or2); cursor: pointer; font-weight: 600; }
.mention:hover { background: rgba(255,122,24,.3); }
.content-line { padding: 10px 12px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); font-size: 13.5px; word-break: break-word; }

/* Fiche joueur */
.phero {
  display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 18px; margin-bottom: 18px; border: 1px solid var(--line);
  background: radial-gradient(500px 200px at 0% 0%, rgba(255,122,24,.18), transparent 70%), var(--panel);
}
.phero .avatar { width: 68px; height: 68px; border-radius: 18px; font-size: 26px; box-shadow: 0 10px 30px rgba(255,122,24,.3); }
.phero h2 { margin: 0; font: 800 26px Sora, Inter, sans-serif; letter-spacing: -.02em; }
.phero p { margin: 4px 0 0; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.box { padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.box h5 { margin: 0 0 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.catbars { display: grid; gap: 6px; }
.catbar { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.catbar:hover { background: var(--panel2); }
.catbar .tr { height: 6px; border-radius: 6px; background: var(--bg2); overflow: hidden; margin-top: 4px; }
.catbar .tr i { display: block; height: 100%; background: linear-gradient(90deg, var(--or3), var(--or2)); border-radius: 6px; }

/* Bandeaux, toasts */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,122,24,.3); background: rgba(255,122,24,.07); color: #fed7aa; font-size: 13px; margin-bottom: 16px; }
#toasts { position: fixed; z-index: 100; right: 16px; bottom: calc(16px + var(--safe-b)); display: grid; gap: 8px; }
.toast { padding: 11px 15px; border-radius: 11px; background: #1d1d23; border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0,0,0,.5); font-size: 13px; animation: tin .2s ease-out; }
.toast.ok { border-color: rgba(34,197,94,.4); }
.toast.bad { border-color: rgba(239,68,68,.5); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* Menu compte */
.menu { position: absolute; right: 16px; top: calc(var(--top) - 4px); z-index: 60; width: 250px; padding: 8px; border-radius: 14px; background: #18181d; border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.menu .who { padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; }
.menu .who small { color: var(--or2); }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; border: 0; background: none; text-align: left; }
.menu button:hover { background: var(--panel2); }

/* Panneau mobile (détail) */
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); animation: fade .15s; }
.sheet {
  position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; background: var(--panel); border-top: 1px solid var(--line2);
  padding-bottom: var(--safe-b); animation: up .22s cubic-bezier(.2,.9,.3,1);
}
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line2); margin: 9px auto 0; }
@keyframes up { from { transform: translateY(40%); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }

.tabbar { display: none; }
.scrim { display: none; }

/* ── Écrans ─────────────────────────────────────────────────── */
@media (min-width: 1800px) {
  :root { --side: 296px; }
  .main { padding: 26px 34px 48px; }
  .content.split { grid-template-columns: minmax(0, 1fr) 600px; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 260px)); }
}
@media (max-width: 1439px) {
  .content.split { grid-template-columns: minmax(0, 1fr); }
  .content.split .detail { display: none; }
}
@media (max-width: 1180px) {
  .me div { display: none; }
  .kbd { display: none; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .burger { display: grid; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .side {
    position: fixed; z-index: 80; top: 0; left: 0; bottom: 0; height: auto; width: min(320px, 86vw); transform: translateX(-102%);
    transition: transform .22s cubic-bezier(.2,.9,.3,1); background: var(--bg2); padding-top: calc(16px + env(safe-area-inset-top, 0px));
  }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .scrim.open { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(0,0,0,.55); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --top: 58px; }
  body { font-size: 14px; }
  .top { padding: 0 12px; gap: 10px; padding-top: env(safe-area-inset-top, 0px); height: calc(var(--top) + env(safe-area-inset-top, 0px)); }
  .brand b { font-size: 15px; }
  .brand b .full { display: none; }
  .search { position: fixed; z-index: 39; left: 0; right: 0; top: calc(var(--top) + env(safe-area-inset-top, 0px)); padding: 8px 12px; background: rgba(9,9,11,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .search-box { height: 42px; }
  .main { padding: 74px 12px calc(86px + var(--safe-b)); }
  .envs button { padding: 0 9px; }
  .envs button .lbl { display: none; }
  .me { display: none; }
  .head h2 { font-size: 20px; }
  .head h2 .emo { width: 34px; height: 34px; font-size: 17px; }
  .tools { width: 100%; }
  .chips { flex: 1; justify-content: space-between; }
  .chips button { flex: 1; padding: 0 6px; }
  .kpis { gap: 8px; }
  .kpi { padding: 11px 12px; }
  .kpi b { font-size: 18px; }
  .row { grid-template-columns: 4px 34px minmax(0, 1fr); gap: 10px; padding: 11px 12px 11px 0; }
  .row .emo { width: 34px; height: 34px; }
  .row .when { grid-column: 3; text-align: left; display: flex; gap: 8px; padding: 0; margin-top: -4px; }
  .row .when b { display: inline; }
  .players { grid-template-columns: minmax(0, 1fr); }
  .phero { padding: 16px; gap: 14px; }
  .phero .avatar { width: 54px; height: 54px; font-size: 21px; }
  .phero h2 { font-size: 21px; }
  .embed .fs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta { grid-template-columns: minmax(0, 1fr); }
  #toasts { left: 12px; right: 12px; bottom: calc(80px + var(--safe-b)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    padding: 6px 8px calc(6px + var(--safe-b)); background: rgba(14,14,17,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--dim); font-size: 10.5px; font-weight: 600; border-radius: 10px; }
  .tabbar button.on { color: var(--or); }
  .tabbar button.on svg { filter: drop-shadow(0 0 8px var(--or-glow)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* IP floutées : révélées au survol (ou au toucher), copiées au clic */
.ip {
  filter: blur(5px); cursor: copy; user-select: none; transition: filter .15s; border-radius: 4px;
  font-family: var(--mono); background: rgba(255,122,24,.08); padding: 0 3px;
}
.ip:hover, .ip.show { filter: none; background: rgba(255,122,24,.16); color: var(--or2); }
