@font-face { font-family: "Exo 2"; font-weight: 500; font-display: swap; src: url(fonts/exo-2-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 600; font-display: swap; src: url(fonts/exo-2-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 700; font-display: swap; src: url(fonts/exo-2-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 800; font-display: swap; src: url(fonts/exo-2-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
/* Space War · Zone Blanche — charte Space War. Métal de bunker, hologramme ambre (toi, les actions) et cyan (le camp, l'information), rouge = NOVA. */

:root {
  --ink-0: #05070D;
  --ink-1: #0A0F1A;
  --ink-2: #0F1626;
  --ink-3: #172034;
  --line: #1E2B44;
  --text: #E8EEF7;
  --muted: #8B98AD;
  --teal: #3FB8FF;
  --coral: #FF5D6C;
  --gold: #F5C84B;
  --violet: #8F7CFF;
  --lime: #3FB8FF;
  --sand: #8A949C;
  --amber: #3FB8FF;
  --cyan: #3FB8FF;
  --orange: #F2955A;
  --green: #57E389;
  --tealx: #3FE0C5;
  --grad: linear-gradient(90deg, #3FB8FF, #8F7CFF);
  --grad3: linear-gradient(90deg, #3FB8FF 0%, #8F7CFF 55%, #F2955A 100%);
  --display: "Exo 2", "Segoe UI", sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; color: var(--text); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 600px at 50% -10%, rgba(92, 225, 230, .10), transparent 65%),
    radial-gradient(900px 500px at 50% 120%, rgba(255, 77, 61, .05), transparent 70%),
    var(--ink-0);
  background-attachment: fixed;
}
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .32; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.5s;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(255, 60, 80, .22) 100%); }
body.night .vignette { opacity: 1; }
#app { position: relative; z-index: 2; padding-bottom: 90px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0 0 10px; line-height: 1.2; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.02rem; color: var(--text); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------- boutons ---------- */
button {
  position: relative; overflow: hidden; font: 600 .92rem var(--body); color: var(--text); cursor: pointer;
  background: var(--ink-2); border: 1.5px solid var(--line); padding: 8px 15px; border-radius: 12px;
  transition: transform .12s, background .15s, border-color .15s;
}
button:hover:not(:disabled) { background: var(--ink-3); border-color: #3A4854; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .38; cursor: not-allowed; }
button.primary { background: var(--teal); border-color: var(--teal); color: #1A1206; box-shadow: 0 3px 0 #B07420; }
button.primary:hover:not(:disabled) { background: #FFC870; border-color: #FFC870; }
button.primary:active:not(:disabled) { box-shadow: 0 1px 0 #B07420; transform: translateY(2px); }
button.danger { background: rgba(255, 77, 61, .12); border-color: rgba(255, 77, 61, .55); color: #FFD0D0; }
button.danger:hover:not(:disabled) { background: rgba(255, 77, 61, .22); border-color: var(--coral); }
button.ghost { background: transparent; border-color: transparent; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); background: rgba(255, 255, 255, .35); animation: ripple .55s ease-out forwards; }

input, textarea, select {
  font: inherit; color: var(--text); background: var(--ink-0); border: 1.5px solid var(--line);
  padding: 10px 12px; border-radius: 12px; width: 100%; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); }
textarea { min-height: 84px; resize: vertical; }

.panel { background: var(--ink-1); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 16px; }

/* ---------- accueil ---------- */
.glitch { position: relative; display: inline-block; white-space: nowrap; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: var(--teal); clip-path: inset(0 0 60% 0); animation: glitch1 3.4s infinite steps(1); }
.glitch::after { color: var(--coral); clip-path: inset(55% 0 0 0); animation: glitch2 2.8s infinite steps(1); }
.splash { max-width: 460px; margin: 11vh auto 0; padding: 0 16px; text-align: center; animation: rise .6s cubic-bezier(.2, .8, .2, 1); }
.splash .logo { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(2.2rem, 10vw, 3.6rem); letter-spacing: .02em; margin-bottom: 8px; }
.splash .tag { color: var(--muted); margin: 0 auto 24px; max-width: 380px; }
.splash .panel { text-align: left; }
.splash form { display: grid; gap: 10px; }
.splash .row { display: flex; gap: 8px; }
.splash .row button { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--teal); border: 1px solid rgba(92, 225, 230, .35);
  padding: 4px 11px; border-radius: 99px; margin-bottom: 16px; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: blink 1.6s infinite; }

/* ---------- en-tête ---------- */
header {
  position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 20px;
  background: rgba(11, 14, 17, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
header .town { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
header .day { color: var(--muted); font-family: var(--display); }
header .spacer { flex: 1; }
header .logout .ico { margin-right: 6px; }
.timer { display: flex; align-items: baseline; gap: 8px; }
.timer .label { color: var(--muted); font-size: .86rem; }
.countdown { font-family: var(--display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--text); }
.countdown.danger { color: var(--coral); animation: pulse 1.2s ease-in-out infinite; }
.apbar { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; }
.apbar .segs { display: flex; gap: 3px; }
.apbar .seg { width: 13px; height: 10px; border-radius: 3px; background: var(--ink-3); transition: background .35s; }
.apbar .seg.on { background: var(--lime); }
.apbar .extra { color: var(--lime); }
.badge { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--ink-2); color: var(--muted); }
.badge.good { color: #FFE2B3; background: rgba(255, 181, 71, .12); }
.badge.bad { color: #FFD0D0; background: rgba(255, 77, 61, .2); }

/* ---------- navigation ---------- */
nav { position: relative; z-index: 5; display: flex; gap: 4px; padding: 14px 20px 0; max-width: 1280px; margin: 0 auto; }
nav button { background: transparent; border-color: transparent; color: var(--muted); display: flex; align-items: center; gap: 8px; }
nav button:hover:not(:disabled) { background: var(--ink-1); border-color: transparent; color: var(--text); }
nav button.active { color: var(--text); background: var(--ink-2); border-color: var(--line); }
nav button .ic { font-size: 1rem; }

main { position: relative; max-width: 1280px; margin: 0 auto; padding: 16px 20px; }
main.enter > * { animation: rise .35s cubic-bezier(.2, .8, .2, 1) both; }
.zone-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.zone-side { max-height: calc(100vh - 150px); overflow: auto; padding-right: 2px; scrollbar-width: thin; }
.grid-town { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }

/* ---------- carte 3D ---------- */
.mappanel.is3d { padding: 0; height: calc(100vh - 150px); min-height: 460px; background: radial-gradient(130% 100% at 50% 0%, #141C24 0%, #0F151B 55%, #0A0D10 100%); }
.mappanel.is3d .mapbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(11, 14, 17, .85)); pointer-events: none; }
.map3d { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.map3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.map3d canvas:active { cursor: grabbing; }
.map3d-labels { position: absolute; inset: 0; pointer-events: none; }
.map3d-labels .zb { position: absolute; left: 0; top: 0; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center;
  font: 800 .8rem var(--body); color: #fff; background: var(--coral); box-shadow: 0 4px 14px rgba(255, 77, 61, .45); }
.map3d-labels .zb.stale { background: #4D5963; box-shadow: none; }
.mappanel.teleporting { box-shadow: 0 0 0 2px var(--gold); }
.mapctl { position: absolute; z-index: 4; top: 14px; right: 14px; left: 14px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; pointer-events: none; }
.mapctl > * { pointer-events: auto; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(11, 14, 17, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .08); }
.seg button { padding: 5px 12px; font-size: .84rem; border: none; background: transparent; color: var(--muted); border-radius: 9px; }
.seg button:hover:not(:disabled) { background: rgba(255, 255, 255, .06); color: var(--text); }
.seg button.on { background: rgba(255, 255, 255, .14); color: var(--text); }
.mapctl .tele { padding: 6px 12px; font-size: .84rem; background: rgba(11, 14, 17, .78); border-color: rgba(255, 200, 87, .45); color: var(--gold); }
.mapctl .tele.on { background: var(--gold); color: #2A1E00; border-color: var(--gold); }

/* ---------- carte isométrique (repli sans WebGL) ---------- */
.mappanel { padding: 8px 8px 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #141C24 0%, var(--ink-1) 70%); }
.mappanel { position: relative; }
.zoom { display: none; position: absolute; z-index: 3; top: 14px; right: 14px; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(11, 14, 17, .85); border: 1px solid var(--line); }
.zoom button { padding: 5px 11px; font-size: .82rem; border: none; background: transparent; color: var(--muted); border-radius: 9px; }
.zoom button.on { background: var(--ink-3); color: var(--text); }
.mapbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 10px 0; font-size: .84rem; color: var(--muted); }
.mapbar .key { display: inline-flex; align-items: center; gap: 6px; }
.mapbar .sw { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg) scaleY(.7); }
.iso-wrap { position: relative; }
.iso { display: block; width: 100%; height: auto; user-select: none; overflow: hidden; border-radius: 12px; }
.iso .tile { transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.iso .tile > :not(.hit) { pointer-events: none; }
.iso .fog, .iso .air { pointer-events: none; }
.iso .hit { fill: transparent; }
.iso .tile.move .hit { cursor: pointer; }
.iso .tile.move:hover { transform: translateY(-5px); }
.iso .move-ring { fill: rgba(255, 181, 71, .14); stroke: var(--lime); stroke-width: 1.6; stroke-dasharray: 5 4; animation: march 1.2s linear infinite; }
.iso .tile.move:hover .move-ring { fill: rgba(255, 181, 71, .3); }
.iso.intro .tile { animation: drop .6s cubic-bezier(.2, .9, .3, 1.15) backwards; animation-delay: var(--d); }
.iso.intro .air, .iso.intro .fog { animation: fadein .5s .55s backwards; }
.iso .drone { animation: hover 2.4s ease-in-out infinite; }
.iso .drone-shadow { transform-box: fill-box; transform-origin: center; animation: shadow 2.4s ease-in-out infinite; }
.iso .rotor { animation: rotor .09s linear infinite alternate; }
.iso .eye { animation: blink 2.2s infinite; }
.iso .badge-z rect { fill: var(--coral); stroke: #0B0E11; stroke-width: 2; }
.iso .badge-z text { font: 700 12px var(--display); fill: #fff; }
.iso .badge-z.stale rect { fill: #4D5963; }
.iso .hub-ring, .iso .pin-ring { transform-box: fill-box; transform-origin: center; animation: ringPulse 2.4s ease-out infinite; }
.iso .beacon, .iso .led { animation: blink 1.6s infinite; }
.iso .pin-bob { animation: bob 1.8s ease-in-out infinite; }
.iso .pin-letter { font: 700 11px var(--display); fill: var(--lime); }
body.night .iso .ground { filter: brightness(.78) saturate(.85); }

.iso-tip {
  position: absolute; z-index: 5; transform: translate(-50%, -100%) translateY(6px); min-width: 170px; max-width: 240px;
  padding: 9px 12px; border-radius: 12px; background: rgba(11, 14, 17, .96); border: 1px solid var(--line);
  font-size: .84rem; color: var(--muted); pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.iso-tip.on { opacity: 1; transform: translate(-50%, -100%); }
.iso-tip b { display: block; color: var(--text); font-family: var(--display); font-size: .98rem; }
.iso-tip .co { display: block; color: var(--teal); font-family: var(--display); font-size: .8rem; margin-bottom: 4px; }

/* ---------- secteur ---------- */
.sector-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sector-head .co { font-family: var(--display); color: var(--teal); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.fact { padding: 10px 12px; border-radius: 14px; background: var(--ink-2); }
.fact .v { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.fact .k { font-size: .82rem; color: var(--muted); }
.fact.hot { background: rgba(255, 77, 61, .14); }
.fact.hot .v { color: var(--coral); }
.alert { padding: 10px 12px; border-radius: 12px; margin: 8px 0; font-size: .9rem; background: rgba(255, 77, 61, .14); color: #FFD0D0; }
.alert.info { background: rgba(92, 225, 230, .1); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pad { display: grid; grid-template-columns: repeat(3, 46px); gap: 6px; margin: 12px 0 4px; }
.pad button { height: 40px; padding: 0; font-size: 1.1rem; }
.hint { color: var(--muted); font-size: .84rem; }

/* ---------- inventaire ---------- */
.inv-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.inv-head .cap { font-family: var(--display); color: var(--muted); }
.hotbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stockgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.slot {
  --r: #8794A0;
  position: relative; aspect-ratio: 1; padding: 0; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1.5px solid var(--line);
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--r) 70%, transparent);
  transition: transform .14s cubic-bezier(.2, .8, .2, 1), border-color .14s, box-shadow .14s;
}
.slot:hover:not(:disabled) { transform: translateY(-3px); border-color: color-mix(in srgb, var(--r) 70%, var(--line)); background: linear-gradient(180deg, #2A3540, var(--ink-2)); }
.slot img { width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .28)); pointer-events: none; }
.slot.sel { border-color: var(--r); transform: translateY(-3px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--r) 28%, transparent), inset 0 -4px 0 var(--r); }
.slot .qty { position: absolute; right: 6px; bottom: 7px; font: 700 .82rem var(--display); color: var(--text);
  background: var(--ink-0); padding: 0 6px; border-radius: 7px; line-height: 1.5; }
.slot .kb { position: absolute; left: 7px; top: 5px; font: 600 .72rem var(--display); color: var(--muted); }
.slot.empty { background: transparent; border: 1.5px dashed var(--line); box-shadow: none; cursor: default; }
.slot.empty::after { content: ""; width: 22%; height: 22%; border-radius: 6px; border: 1.5px solid var(--line); opacity: .7; }
.r-commun { --r: #8794A0; } .r-peu { --r: var(--teal); } .r-rare { --r: var(--violet); } .r-epique { --r: var(--gold); }

.idetail { display: grid; grid-template-columns: 96px 1fr; gap: 16px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--ink-2); align-items: start; }
.idetail .frame { --r: #8794A0; width: 96px; height: 96px; border-radius: 20px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--r) 35%, transparent), transparent 70%), var(--ink-1);
  border: 1.5px solid color-mix(in srgb, var(--r) 60%, transparent); }
.idetail .frame img { width: 74%; animation: pop .35s cubic-bezier(.2, 1.5, .4, 1); filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .3)); }
.idetail .nm { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.idetail .meta { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; font-size: .84rem; color: var(--muted); }
.rar { font-weight: 700; font-size: .78rem; padding: 2px 9px; border-radius: 99px; color: var(--ink-0); background: var(--r); }
.idetail .desc { font-size: .9rem; color: #C9D3DA; margin-bottom: 8px; }
.idetail .uses { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.idetail .stat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.idetail .stat { font-size: .84rem; padding: 4px 10px; border-radius: 10px; background: var(--ink-1); }
.idetail .stat b { font-family: var(--display); }
.idetail .actions { margin: 0; }
.idetail.empty-detail { grid-template-columns: 1fr; color: var(--muted); font-size: .9rem; }

/* ---------- Hub ---------- */
.gate { display: flex; align-items: center; gap: 14px; }
.gate .door { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; background: var(--ink-2); }
.gate .door.open { background: rgba(255, 77, 61, .2); }
.gate .door.closed { background: rgba(92, 225, 230, .14); }
.bigstat { font-family: var(--display); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.water { height: 10px; border-radius: 99px; background: var(--ink-2); overflow: hidden; margin: 10px 0; }
.water > div { height: 100%; background: linear-gradient(90deg, #4C8DFF, var(--teal)); transition: width .6s; }
.build { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.build:last-child { border-bottom: none; }
.build .n { font-weight: 700; }
.build .def { font-family: var(--display); font-size: .84rem; color: var(--teal); margin-left: 8px; }
.build .meta { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.build .meta img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 3px; }
.build .prog { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--ink-2); overflow: hidden; }
.build .prog > div { height: 100%; background: var(--teal); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.build.done .n { color: var(--lime); }
.build.locked { opacity: .42; }
.build .acts { display: flex; gap: 6px; align-items: center; }
.build .pa { font-family: var(--display); font-size: .86rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .84rem; }
tr:last-child td { border-bottom: none; }

/* ---------- admin ---------- */
.badge.admin { color: #2A1E00; background: var(--gold); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.switch { width: 52px; height: 30px; flex: 0 0 52px; padding: 3px; border-radius: 99px; background: var(--ink-3); border: none; position: relative; }
.switch span { display: block; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.switch.on { background: var(--gold); }
.switch.on span { transform: translateX(22px); }
.switch:hover:not(:disabled) { background: var(--ink-3); }
.switch.on:hover:not(:disabled) { background: #FFD47A; }
.admin-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.admin-row .lbl { color: var(--muted); font-size: .88rem; margin-right: 4px; }
.admin-row input { width: auto; }

/* ---------- survivants ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--ink-2); }
.person.dead { opacity: .45; filter: grayscale(1); }
.person .st { font-size: .82rem; color: var(--muted); }
.person .st.out { color: var(--gold); }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink-0); font-family: var(--display); }
.dotline { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ---------- canal ---------- */
.chan { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.chan-list { display: flex; flex-direction: column; gap: 4px; }
.chan-item { text-align: left; background: transparent; border-color: transparent; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.chan-item .t::before { content: "# "; color: var(--teal); }
.chan-item .m { font-size: .8rem; color: var(--muted); font-weight: 400; }
.chan-item.active { background: var(--ink-2); border-color: var(--line); }
.msgs { display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow: auto; padding-right: 4px; }
.msg { display: flex; gap: 11px; }
.msg .who { font-weight: 700; }
.msg .when { color: var(--muted); font-size: .8rem; margin-left: 8px; font-weight: 400; }
.msg .body { white-space: pre-wrap; word-wrap: break-word; margin-top: 2px; }
.msg .ghost { color: var(--muted); font-size: .8rem; margin-left: 8px; }
.compose { display: flex; gap: 8px; margin-top: 14px; align-items: flex-end; }
.compose textarea { min-height: 46px; }
.form { display: grid; gap: 8px; margin-top: 6px; }

/* ---------- logs ---------- */
.report { position: relative; padding: 12px 14px 12px 18px; margin-bottom: 10px; border-radius: 12px; background: var(--ink-2); white-space: pre-wrap; font-size: .92rem; }
.report::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--coral); }
.log { list-style: none; padding: 0; margin: 0; max-height: 520px; overflow: auto; font-size: .9rem; }
.log li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.log .ts { color: var(--muted); font-size: .8rem; margin-right: 8px; font-family: var(--display); }
.tomb { text-align: center; padding: 34px 16px; }
.tomb .glitch { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--coral); }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 50; top: 70px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 380px; padding: 10px 16px 10px 10px; border-radius: 14px;
  background: var(--ink-1); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.25) both; font-size: .92rem; }
.toast .ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; background: var(--ink-2); font-size: 1.15rem; }
.toast .ic img { width: 30px; height: 30px; }
.toast.loot .ic { background: rgba(255, 181, 71, .14); }
.toast.loot .ic img { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.toast.err .ic { background: rgba(255, 77, 61, .2); }
.toast.out { animation: toastOut .25s ease-in forwards; }

/* ---------- responsive ---------- */
@media (max-width: 1440px) {
  header .user { display: none; }
  header { gap: 10px 14px; }
}
@media (max-width: 1240px) {
  header .phone-btn .txt, header .logout .txt { display: none; }
  header .badge { font-size: .74rem; padding: 2px 8px; }
}
@media (max-width: 1020px) {
  .zone-grid, .grid-town, .chan { grid-template-columns: 1fr; }
  .zone-side { max-height: none; overflow: visible; }
  .mappanel.is3d { height: 62vh; }
}
@media (max-width: 640px) {
  header { gap: 8px 12px; padding: 10px 12px; }
  header .user, header .day, header .spacer { display: none; }
  header .logout .txt { display: none; }
  header .logout { position: absolute; top: 8px; right: 10px; padding: 6px 10px; }
  header .badge { font-size: .72rem; padding: 2px 8px; }
  nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; max-width: none; justify-content: space-around; gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 14, 17, .92); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  nav button { flex-direction: column; gap: 2px; font-size: .7rem; padding: 6px 4px; flex: 1; }
  nav button .ic { font-size: 1.2rem; }
  main { padding: 12px; }
  .panel { padding: 14px; border-radius: 16px; }
  .mappanel { margin-left: -6px; margin-right: -6px; padding: 4px 2px 10px; }
  .hotbar { gap: 7px; }
  .slot { border-radius: 13px; }
  .idetail { grid-template-columns: 72px 1fr; gap: 12px; }
  .idetail .frame { width: 72px; height: 72px; border-radius: 16px; }
  #toasts { left: 12px; right: 12px; top: 64px; transform: none; align-items: stretch; }
  .mapbar .key.opt, .hint { display: none; }
  .mappanel.is3d { height: 58vh; min-height: 340px; margin-left: -6px; margin-right: -6px; }
  .mapctl { top: 10px; left: 10px; right: 10px; gap: 6px; }
  .seg button { padding: 4px 8px; font-size: .76rem; }
  .zone-side { max-height: none; overflow: visible; }
  .pad { grid-template-columns: repeat(3, 42px); }
  .pad button { height: 36px; }
  .toast { max-width: none; }
}

/* ---------- mouvements ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-34px); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes hover { 50% { transform: translateY(-5px); } }
@keyframes shadow { 50% { transform: scale(.75); opacity: .15; } }
@keyframes rotor { to { opacity: .3; } }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes ringPulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
@keyframes march { to { stroke-dashoffset: -18; } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes pop { from { transform: scale(.4) rotate(-14deg); opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.94); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes glitch1 { 0%, 100% { clip-path: inset(0 0 70% 0); transform: translate(-2px, 0); } 20% { clip-path: inset(20% 0 50% 0); transform: translate(-4px, 1px); }
  40% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); } 60% { clip-path: inset(0 0 85% 0); transform: translate(-1px, 0); } 80% { clip-path: inset(40% 0 40% 0); transform: translate(3px, 1px); } }
@keyframes glitch2 { 0%, 100% { clip-path: inset(60% 0 0 0); transform: translate(2px, 0); } 25% { clip-path: inset(10% 0 70% 0); transform: translate(4px, -1px); }
  50% { clip-path: inset(75% 0 5% 0); transform: translate(-3px, 1px); } 75% { clip-path: inset(30% 0 45% 0); transform: translate(1px, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- téléphone et mini-jeux ---------- */
.phone-btn { display: inline-flex; align-items: center; gap: 7px; position: relative; background: var(--ink-2); }
.phone-btn .dot { position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink-0); }
.phone-btn .dot.hot { background: var(--coral); animation: pulse 1s infinite; }
#phone-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.phone-backdrop { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: auto;
  background: rgba(10, 10, 30, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.phone-backdrop.enter { animation: fadein .25s both; }
.phone-backdrop.enter .phone { animation: phoneIn .55s cubic-bezier(.2, .95, .25, 1.12) both; }
.phone-backdrop.leave { animation: fadeout .26s forwards; }
.phone-backdrop.leave .phone { animation: phoneOut .26s ease-in forwards; }
.phone {
  width: min(360px, 92vw); height: min(720px, 88vh); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 46px; border: 10px solid #0A0D10; background: linear-gradient(170deg, #0D2A18 0%, #0F151B 45%, #0A0D10 100%);
  box-shadow: 0 0 0 1px #2C3741, 0 40px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px 6px; font-size: .78rem; font-weight: 700; color: #C9D3DA; }
.phone-status .notch { width: 96px; height: 26px; border-radius: 99px; background: #0A0D10; }
.phone-screen { flex: 1; overflow: auto; padding: 8px 20px 12px; position: relative; }
.phone-bar { display: flex; gap: 8px; justify-content: center; padding: 10px 16px 16px; }
.phone-bar button { flex: 1; border-radius: 14px; background: rgba(255, 255, 255, .08); border-color: transparent; }
.ph-home { display: flex; flex-direction: column; gap: 20px; padding-top: 18px; }
.ph-hello { text-align: center; }
.ph-big { font: 800 2.6rem var(--display); letter-spacing: -.03em; line-height: 1.05; }
.ph-big.good { color: var(--lime); }
.ph-dim { color: var(--muted); font-size: .9rem; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 22px; text-align: left;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); }
.app:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .16); }
.app.off { opacity: .55; }
.app-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #2A3540, #141C24); }
.app-ic img { width: 34px; }
.app-nm { font-weight: 800; }
.app-sub { font-size: .76rem; color: var(--muted); font-weight: 500; }
.ph-game { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.ph-game h3 { font-size: 1.3rem; margin: 0; }
.ph-result { text-align: center; min-height: 80px; }
button.wide { width: 100%; padding: 12px; border-radius: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; perspective: 900px; margin: 8px 0; }
.flip { padding: 0; border: none; background: none; aspect-ratio: 3 / 4; overflow: visible; }
.flip:hover:not(:disabled) { background: none; transform: translateY(-4px); }
.flip:disabled { opacity: 1; cursor: default; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .8, .3, 1.15); }
.flip.flipped .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.front { background: linear-gradient(160deg, #2A3540, #0D2A1B); border: 1.5px solid #3A4854; }
.face.front img { width: 62%; }
.face.back { transform: rotateY(180deg); background: var(--ink-1); border: 1.5px solid var(--line); }
.face.back img { width: 60%; }
.flip.win .face.back { border-color: var(--lime); box-shadow: 0 0 24px rgba(255, 181, 71, .45); }
.flip.other { opacity: .55; }
.dust { color: var(--muted); font-size: .85rem; }
.paytable { display: grid; gap: 6px; font-size: .84rem; color: var(--muted); }
.paytable span { display: flex; align-items: center; gap: 2px; }
.paytable img { width: 22px; }
.ticket { position: relative; border-radius: 18px; padding: 16px; background: linear-gradient(135deg, #FFC857, #FF8A5C); box-shadow: 0 10px 30px rgba(255, 140, 90, .25); }
.ticket .slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot3 { aspect-ratio: 1; border-radius: 14px; background: #E3EAEE; display: grid; place-items: center; }
.slot3 img { width: 66%; }
.ticket.won .slot3 { animation: winPulse .9s ease-in-out 2; }
.scratch { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); border-radius: 14px; touch-action: none; cursor: crosshair; transition: opacity .4s; }
.scratch.gone { opacity: 0; pointer-events: none; }
.confetti { position: absolute; left: 50%; top: 45%; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: confetti 1.3s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes confetti { to { transform: translate(var(--x), calc(var(--y) + 160px)) rotate(var(--r)); opacity: 0; } }
@keyframes phoneIn { from { transform: translateY(105vh) rotate(4deg); } }
@keyframes phoneOut { to { transform: translateY(105vh) rotate(-3deg); } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes winPulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 4px #fff; } }
@media (max-width: 640px) {
  .phone-btn .txt { display: none; }
  .phone-btn { position: relative; padding: 4px 9px; }
  .timer .label { display: none; }
  header .countdown { font-size: 1.05rem; }
  .phone { border-radius: 36px; border-width: 8px; }
}

/* ---------- arcade ---------- */
.ph-sec { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: -8px; }
.ph-sec span { font-size: .76rem; font-weight: 600; color: var(--muted); }
.apps .app:nth-child(3):last-child { grid-column: span 2; flex-direction: row; align-items: center; }
.center { text-align: center; }
button.big { font-size: 1.05rem; padding: 14px; }
.ph-counter { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: .84rem; color: var(--muted); }
.ph-counter b { color: var(--lime); font-size: .95rem; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border-radius: 20px; background: linear-gradient(180deg, #0F1030, #23265A); box-shadow: inset 0 6px 16px rgba(0, 0, 0, .5); }
.reel { height: 84px; overflow: hidden; border-radius: 12px; background: #E3EAEE; position: relative;
  box-shadow: inset 0 10px 12px -8px rgba(0, 0, 0, .35), inset 0 -10px 12px -8px rgba(0, 0, 0, .35); transition: box-shadow .2s; }
.reel.hit { box-shadow: 0 0 0 3px var(--lime), 0 0 22px rgba(255, 181, 71, .6); }
.strip { display: flex; flex-direction: column; will-change: transform; }
.strip img { height: 84px; width: 100%; padding: 14px; object-fit: contain; flex: 0 0 84px; }
.table { display: grid; place-items: center; padding: 14px 0; perspective: 800px; }
.pcard { width: 132px; height: 184px; border-radius: 16px; background: #E9FFF0; color: #12171C; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45); border: 3px solid #fff; transition: border-color .2s; }
.pcard .rk { font: 800 3.4rem var(--display); line-height: 1; letter-spacing: -.04em; }
.pcard .st { font-size: 2rem; line-height: 1; }
.pcard.red { color: #C0262B; }
.pcard.deal { animation: deal .42s cubic-bezier(.2, .9, .3, 1.2); }
.pcard.good { border-color: var(--lime); }
.pcard.bad { border-color: var(--coral); }
.pips { display: flex; justify-content: center; gap: 8px; }
.pips span { width: 26px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); transition: background .25s; }
.pips span.on { background: var(--lime); box-shadow: 0 0 10px rgba(255, 181, 71, .55); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo button { padding: 13px; border-radius: 14px; }
.term { font: 600 .82rem ui-monospace, Consolas, monospace; color: #BFF4F6; background: #0A0D10; padding: 10px 12px; border-radius: 12px; min-height: 40px; }
.hbar { position: relative; height: 54px; border-radius: 14px; background: #0A0D10; overflow: hidden; border: 1px solid #2C3741; }
.hbar .hz { position: absolute; top: 0; bottom: 0; background: rgba(255, 181, 71, .28); border-left: 2px solid var(--lime); border-right: 2px solid var(--lime); transition: left .25s, width .25s; }
.hbar .hc { position: absolute; top: 6px; bottom: 6px; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 12px #fff; }
.hbar.ok { animation: flashOk .5s; }
.hbar.ko { animation: shake .4s; }
@keyframes deal { from { transform: rotateY(90deg) translateY(-10px); } }
@keyframes flashOk { 30% { box-shadow: 0 0 0 3px var(--lime), 0 0 26px rgba(255, 181, 71, .6); } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }


.fact .v, .bigstat, .num, .slot .qty, .ph-big, .apbar, .inv-head .cap, .sector-head .co { font-family: var(--display); }
.linkish { display: block; margin: 14px auto 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover:not(:disabled) { color: var(--teal); background: transparent; border-color: transparent; }
.idetail .frame { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--r) 30%, transparent), transparent 70%), var(--ink-1); }
.r-commun { --r: #7F8C97; }

/* ---------- raid, camp, forum par catégories ---------- */
.raidbox, .campbox { margin-top: 12px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.raidbox { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-color: rgba(255, 138, 61, .35); }
.raidbox button { flex: 0 0 auto; }
.campbox.on { border-color: rgba(92, 225, 230, .45); box-shadow: inset 0 0 0 1px rgba(92, 225, 230, .1); }
.camp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.risk { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.risk-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.risk-bar > div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold) 45%, var(--coral)); transition: width .5s; }
.risk-v { font-family: var(--display); font-size: .84rem; white-space: nowrap; }
.factors { list-style: none; margin: 0 0 8px; padding: 0; font-size: .82rem; }
.factors li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.factors li.good .num { color: var(--teal); }
.factors li.bad .num { color: #FF8A8A; }
.chan-cat { margin-bottom: 12px; }
.cat-head { display: flex; justify-content: space-between; align-items: center; font: 600 .82rem var(--display); color: var(--teal); padding: 4px 4px 4px 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cat-add { padding: 0 9px; font-size: 1.1rem; line-height: 1.4; color: var(--muted); }
.cat-empty { margin: 4px 2px 0; font-size: .78rem; color: var(--muted); }
.cat-pick { flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- raid en vue subjective ---------- */
.raid { position: fixed; inset: 0; z-index: 150; background: #000; overflow: hidden; user-select: none; }
.raid > canvas { display: block; width: 100%; height: 100%; }
.raid .hidden { display: none !important; }
.r-hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--display); color: #E3EAEE; }
.r-top { position: absolute; top: 14px; left: 16px; right: 190px; display: flex; gap: 16px; align-items: baseline; }
.r-title { font-weight: 600; font-size: .95rem; color: var(--teal); text-shadow: 0 0 10px rgba(92, 225, 230, .6); }
.r-timer { font-weight: 800; font-size: 1.4rem; text-shadow: 0 0 10px rgba(92, 225, 230, .4); }
.r-timer.low { color: var(--coral); animation: pulse 1s infinite; }
.r-mini { position: absolute; top: 12px; right: 12px; width: 156px; height: 156px; border: 1px solid rgba(92, 225, 230, .4); border-radius: 8px; }
.r-cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.r-cross::before, .r-cross::after { content: ""; position: absolute; background: rgba(214, 255, 228, .85); box-shadow: 0 0 4px #000; }
.r-cross::before { left: 10px; top: 0; width: 2px; height: 22px; clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%, 0 65%, 100% 65%, 100% 100%, 0 100%); }
.r-cross::after { top: 10px; left: 0; height: 2px; width: 22px; clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%); }
.r-prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); padding: 7px 14px; border-radius: 8px; background: rgba(11, 14, 17, .75);
  border: 1px solid rgba(92, 225, 230, .4); font-size: .9rem; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.r-prompt.on { opacity: 1; }
.r-msg { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-size: 1.05rem; font-weight: 600; text-shadow: 0 2px 8px #000; opacity: 0; transition: opacity .25s; text-align: center; }
.r-msg.on { opacity: 1; }
.r-bottom { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: .84rem; }
.r-hp { display: flex; align-items: center; gap: 8px; }
.r-lbl { color: var(--muted); }
.r-hpbar { width: 180px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.r-hpfill { height: 100%; background: var(--teal); transition: width .2s; box-shadow: 0 0 10px rgba(92, 225, 230, .6); }
.r-hpfill.low { background: var(--coral); box-shadow: 0 0 10px rgba(255, 77, 61, .6); }
.r-num { font-weight: 800; min-width: 30px; }
.r-inv, .r-loot { padding: 5px 10px; border-radius: 8px; background: rgba(11, 14, 17, .6); border: 1px solid rgba(92, 225, 230, .2); }
.r-hurt { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 0, 0, .55) 100%); }
.r-hurt.on { animation: hurt .45s ease-out; }
.r-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(200, 255, 220, .9), rgba(92, 225, 230, .2)); }
.r-flash.on { animation: hurt .5s ease-out; }
.r-gate { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 4, 2, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 5; }
.r-card { width: min(520px, 92vw); padding: 26px; border-radius: 14px; background: linear-gradient(180deg, #1A2128, #040C07); border: 1px solid #3A4854; color: var(--text); box-shadow: 0 0 60px rgba(92, 225, 230, .12); }
.r-card h2 { font-family: var(--display); margin: 4px 0 10px; color: #EEF3F6; }
.r-card p { margin: 0 0 10px; }
.r-kicker { font-family: var(--display); color: var(--teal); font-size: .84rem; }
.r-dim { color: var(--muted); font-size: .88rem; }
.r-go { width: 100%; margin-top: 10px; padding: 13px; border: none; border-radius: 10px; background: var(--teal); color: #1A1206; font: 800 1rem var(--display); box-shadow: 0 0 24px rgba(92, 225, 230, .35); }
.r-flee { width: 100%; margin-top: 10px; background: rgba(255, 77, 61, .12); border-color: rgba(255, 77, 61, .5); color: #FFD0D0; }
.r-lootgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0; }
.r-lootitem { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: .76rem; text-align: center; animation: pop .4s cubic-bezier(.2, 1.5, .4, 1) both; }
.r-lootitem img { width: 44px; height: 44px; }
.r-joy { position: absolute; left: 22px; bottom: 70px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(92, 225, 230, .35); background: rgba(11, 14, 17, .35); z-index: 3; touch-action: none; }
.r-knob { position: absolute; left: 35px; top: 35px; width: 50px; height: 50px; border-radius: 50%; background: rgba(92, 225, 230, .45); }
.r-look { position: absolute; top: 0; right: 0; width: 55%; height: 100%; z-index: 2; touch-action: none; }
.r-btns { position: absolute; right: 16px; bottom: 70px; display: grid; grid-template-columns: repeat(2, 64px); gap: 10px; z-index: 3; }
.r-tbtn { height: 56px; border-radius: 14px; background: rgba(11, 14, 17, .6); border: 1px solid rgba(92, 225, 230, .45); color: #E3EAEE; font: 700 .9rem var(--display); touch-action: none; }
.r-tbtn.fire { grid-column: span 2; background: rgba(92, 225, 230, .25); }
@keyframes hurt { 0% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 640px) { .r-mini { width: 110px; height: 110px; } .r-top { right: 130px; } .r-hpbar { width: 110px; } }

/* ---------- gazette du Hub ---------- */
.gzp-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow: auto; padding: 3vh 12px; background: rgba(0, 4, 2, .82); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fadein .2s both; }
.gzp { position: relative; width: min(400px, 100%); padding: 18px 22px 26px; border-radius: 34px; background: linear-gradient(160deg, #232A30, #12171C 60%, #0B0E11); border: 1px solid #3A4450;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 255, 255, .07), inset 0 -3px 0 rgba(0, 0, 0, .5); animation: gzpIn .45s cubic-bezier(.2, .95, .25, 1.1) both; }
@keyframes gzpIn { from { transform: translateY(40px) rotate(-3deg); opacity: 0; } }
.gzp-bump { position: absolute; width: 46px; height: 46px; background: #FF8A3D; border: 2px solid #8a6420; }
.gzp-bump.tl { top: -4px; left: -4px; border-radius: 30px 6px 6px 6px; clip-path: polygon(0 0, 100% 0, 100% 30%, 30% 30%, 30% 100%, 0 100%); }
.gzp-bump.tr { top: -4px; right: -4px; border-radius: 6px 30px 6px 6px; clip-path: polygon(0 0, 100% 0, 100% 100%, 70% 100%, 70% 30%, 0 30%); }
.gzp-bump.bl { bottom: -4px; left: -4px; border-radius: 6px 6px 6px 30px; clip-path: polygon(0 0, 30% 0, 30% 70%, 100% 70%, 100% 100%, 0 100%); }
.gzp-bump.br { bottom: -4px; right: -4px; border-radius: 6px 6px 30px 6px; clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%, 0 70%, 70% 70%); }
.gzp-top { display: flex; justify-content: center; align-items: center; gap: 12px; height: 16px; margin-bottom: 8px; }
.gzp-cam { width: 9px; height: 9px; border-radius: 50%; background: #07090B; box-shadow: inset 0 0 0 2px #2C3741; }
.gzp-grill { width: 70px; height: 5px; border-radius: 3px; background: repeating-linear-gradient(90deg, #07090B 0 3px, #232A30 3px 5px); }
.gzp-screen { position: relative; border-radius: 16px; background: #0B0E11; border: 3px solid #07090B; overflow: hidden; height: min(68vh, 620px); display: flex; flex-direction: column; box-shadow: inset 0 0 40px rgba(92, 225, 230, .06); }
.gzp-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
.gzp.weak .gzp-feed { animation: gzpGlitch 3.2s steps(1) infinite; }
@keyframes gzpGlitch { 0%, 92%, 100% { transform: none; filter: none; } 93% { transform: translateX(-3px); filter: hue-rotate(60deg); } 95% { transform: translateX(2px); } 97% { transform: none; opacity: .6; } }
.gzp-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; font: 700 .72rem var(--display); color: #B4C0C9; background: #0E1317; border-bottom: 1px solid #24303A; }
.gzp-net { color: var(--teal); }
.gzp-right { display: flex; align-items: center; gap: 8px; }
.gzp-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.gzp-bars i { width: 3px; background: #2C3741; border-radius: 1px; }
.gzp-bars i:nth-child(1) { height: 4px; } .gzp-bars i:nth-child(2) { height: 6px; } .gzp-bars i:nth-child(3) { height: 8px; } .gzp-bars i:nth-child(4) { height: 11px; }
.gzp-bars i.on { background: var(--teal); }
.gzp-batt { display: inline-block; width: 20px; height: 10px; border: 1px solid #B4C0C9; border-radius: 2px; padding: 1px; }
.gzp-batt i { display: block; width: 60%; height: 100%; background: var(--gold); }
.gzp-feed { flex: 1; overflow: auto; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.gzp-head { padding: 2px 2px 4px; }
.gzp-app { font: 800 1.25rem var(--display); color: var(--ink-text, #DFF5E6); letter-spacing: -.02em; }
.gzp-sub { font-size: .78rem; color: var(--muted); }
.gzp-hl { font: 800 1.05rem/1.25 var(--body); color: #fff; padding: 10px 12px; border-left: 3px solid var(--teal); background: rgba(92, 225, 230, .06); border-radius: 0 10px 10px 0; }
.gzp-weak { font-size: .78rem; color: var(--gold); padding: 6px 10px; border: 1px dashed rgba(255, 138, 61, .5); border-radius: 8px; }
.gzp-msg { padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: #151B21; border: 1px solid #26313A; font-size: .88rem; line-height: 1.45; }
.gzp-msg p { margin: 4px 0 0; }
.gzp-msg.ok { border-color: rgba(92, 225, 230, .35); }
.gzp-msg.bad { border-color: rgba(255, 77, 61, .45); background: #1a0b0b; }
.gzp-msg.warn { border-color: rgba(255, 138, 61, .45); }
.gzp-msg.tip { background: transparent; border-style: dashed; color: var(--muted); }
.gzp-from { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.gzp-from b { color: var(--teal); font-weight: 700; }
.gzp-msg.bad .gzp-from b { color: var(--coral); }
.gzp-msg.warn .gzp-from b { color: var(--gold); }
.gzp-vs { display: flex; align-items: center; justify-content: space-around; margin-top: 6px; text-align: center; }
.gzp-vs b { display: block; font: 800 1.7rem var(--display); color: #fff; }
.gzp-vs span { font-size: .72rem; color: var(--muted); }
.gzp-vs em { font-style: normal; font-size: .75rem; color: var(--muted); }
.gzp-bar { position: relative; height: 6px; margin-top: 8px; border-radius: 3px; background: #1E2830; overflow: hidden; }
.gzp-bar div { height: 100%; } .gzp-bar .ok { background: var(--teal); } .gzp-bar .ko { background: var(--coral); }
.gzp-bar i { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #fff; }
.gzp-obit { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 77, 61, .2); }
.gzp-name { font-weight: 800; color: #fff; display: flex; justify-content: space-between; gap: 8px; }
.gzp-name span { font-weight: 600; font-size: .78rem; color: var(--coral); }
.gzp-quote { font-style: italic; color: #f3d6d6; }
.gzp-watch { margin-top: 8px; width: 100%; background: rgba(255, 77, 61, .14); border-color: rgba(255, 77, 61, .5); color: #ffd5d5; }
.gzp-dead { flex: 1; display: grid; place-content: center; text-align: center; gap: 8px; padding: 30px; color: var(--muted); }
.gzp-dead b { color: var(--coral); font-size: 1.1rem; }
.gzp-dead-ic { font: 800 3rem var(--display); color: var(--coral); }
.gzp-keys { display: flex; justify-content: center; padding-top: 12px; }
.gzp-ok { width: 100%; border-radius: 12px; background: #232A30; border-color: #3A4450; }
@media (prefers-reduced-motion: reduce) { .gzp, .gzp.weak .gzp-feed { animation: none; } }
@keyframes gzIn { from { opacity: 0; transform: translateY(40px) rotate(-4deg) scale(.95); } }
@media (max-width: 640px) { .gz { padding: 18px; transform: none; } .gz-cols { grid-template-columns: 1fr; } }

/* ---------- enregistrement des derniers instants ---------- */
.deathvid { position: fixed; inset: 0; z-index: 140; background: #000; color: #E3EAEE; overflow: hidden; cursor: pointer; }
.dv-view { position: absolute; inset: 0; display: grid; place-items: center; }
.dv-scene { width: 100%; height: 100%; animation: dvFade .5s ease-out both; filter: contrast(1.15) saturate(.8) brightness(.95); }
.dv-scene svg { width: 100%; height: 100%; display: block; }
.dv-scene .dv-world { transform-origin: 50% 60%; animation: kb0 6s ease-out both; }
.dv-scene.k1 .dv-world { animation-name: kb1; }
.dv-scene.k2 .dv-world { animation-name: kb2; }
.deathvid::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .85) 100%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px); }
.deathvid::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 -.35'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px; animation: dvGrain .3s steps(3) infinite; }
.dv-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; font: 600 .82rem "JetBrains Mono", monospace; text-shadow: 0 0 6px #000; }
.dv-rec { position: absolute; top: 18px; left: 22px; display: flex; align-items: center; gap: 8px; font-weight: 800; color: #ff5a5a; }
.dv-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff3b3b; animation: blink 1s infinite steps(1); }
.dv-src { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: #9cffc0; opacity: .85; white-space: nowrap; max-width: 70vw; overflow: hidden; text-overflow: ellipsis; }
.dv-time { position: absolute; top: 18px; right: 60px; color: #E3EAEE; }
.dv-hud::before, .dv-hud::after { content: ""; position: absolute; width: 40px; height: 40px; border: 2px solid rgba(156, 255, 192, .5); }
.dv-hud::before { left: 16px; bottom: 16px; border-right: none; border-top: none; }
.dv-hud::after { right: 16px; bottom: 16px; border-left: none; border-top: none; }
.dv-sub { position: absolute; z-index: 4; left: 50%; bottom: 9vh; transform: translateX(-50%); max-width: min(820px, 88vw); text-align: center;
  font: 600 clamp(1rem, 2.4vw, 1.35rem) / 1.4 Manrope, sans-serif; color: #fff; background: rgba(0, 0, 0, .65); padding: 6px 14px; border-radius: 4px; }
.dv-sub:empty { display: none; }
.dv-close { position: absolute; z-index: 5; top: 12px; right: 14px; background: rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .25); color: #fff; }
.deathvid.shaking .dv-view { animation: dvShake .35s 1.2s 3; }
.deathvid.shaking .dv-laser { animation: dvLaser .9s 1.1s infinite; opacity: 0; }
.deathvid.shaking .dv-hit { animation: dvLaser .9s 1.15s infinite; opacity: 0; }
.dv-drone { animation: dvHover 2.2s ease-in-out infinite; }
.dv-drone.far circle { animation: blink 1.4s infinite; }
.deathvid.lost .dv-view { animation: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 -.35'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 120px 120px, #333; }
.deathvid.lost .dv-view > * { display: none; }
.deathvid.lost::after { opacity: .6; }
.deathvid.ended { cursor: default; }
.dv-end { position: relative; z-index: 4; width: min(560px, 90vw); text-align: center; animation: dvFade .8s ease-out both; }
.dv-kicker { font: 800 .9rem "JetBrains Mono", monospace; color: #ff5a5a; letter-spacing: .1em; text-transform: uppercase; }
.dv-name { font: 800 clamp(2rem, 6vw, 3rem) "JetBrains Mono", monospace; margin: 6px 0; }
.dv-cause { color: #8fc5a1; font-size: .9rem; }
.dv-words { margin: 22px 0; font: italic 600 clamp(1.1rem, 3vw, 1.5rem) / 1.45 Georgia, serif; color: #fff; }
.dv-actions { display: flex; gap: 10px; justify-content: center; }
.dv-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.dv-btn.primary { background: var(--teal); color: #011a08; border-color: var(--teal); }
@keyframes kb0 { from { transform: scale(1.12) translate(-2%, 1%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kb1 { from { transform: scale(1) translate(2%, 0); } to { transform: scale(1.14) translate(-1%, -2%); } }
@keyframes kb2 { from { transform: scale(1.08) translate(0, -2%); } to { transform: scale(1.2) translate(1%, 1%); } }
@keyframes dvFade { from { opacity: 0; } }
@keyframes dvGrain { 0% { background-position: 0 0; } 33% { background-position: -40px 25px; } 66% { background-position: 30px -35px; } }
@keyframes dvShake { 25% { transform: translate(-8px, 4px); } 50% { transform: translate(6px, -5px); } 75% { transform: translate(-4px, -3px); } }
@keyframes dvLaser { 0%, 30% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes dvHover { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .deathvid *, .deathvid::after { animation: none !important; } }

/* ---------- plan du camp ---------- */
.camp-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.camp-panel { padding: 10px; }
.camp-svg { display: block; width: 100%; height: auto; border-radius: 8px; user-select: none; }
.camp-hint { margin: 0; }
.camp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 4px 0; }
.camp3d { position: relative; width: 100%; height: min(62vh, 600px); min-height: 360px; border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #141C24, #0B0E11 75%); }
.camp3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.camp3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.c3-label { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; padding: 3px 9px; border-radius: 6px; font: 700 .72rem var(--display); white-space: nowrap;
  background: rgba(2, 8, 5, .78); border: 1px solid #3A4854; color: #C9D3DA; transition: border-color .15s, color .15s; }
.c3-label small { font-weight: 500; color: var(--muted); font-size: .64rem; }
.c3-label.ghost { border-style: dashed; color: var(--muted); }
.c3-label.hot, .c3-label:hover { border-color: var(--teal); color: #fff; }
.c3-label.sel { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.water .low { background: var(--gold); }
.camp-b { cursor: pointer; }
.camp-b rect, .camp-b image { transition: transform .15s; }
.camp-b:hover rect:not([fill="transparent"]), .camp-b:focus-visible rect { stroke: var(--cyan); }
.camp-b:focus { outline: none; }
.camp-b:focus-visible rect { stroke-width: 3; }
.camp-b.sel rect { stroke: var(--me, #F5C84B); }
.camp-b.scaffold .camp-label { fill: #8794A0; }
.camp-label { font: 600 12px var(--display); fill: var(--plan-label, #DCE6F5); pointer-events: none; }
.camp-label.sub { font-size: 10px; fill: #8794A0; }
.camp-me-ring { transform-box: fill-box; transform-origin: center; animation: ringPulse 1.8s ease-out infinite; }
.camp-me.walking circle:last-child { animation: step .32s ease-in-out infinite alternate; }
.camp-drip { animation: blink 1.6s infinite; }
.camp-ping { animation: pulse 1s infinite; }
.camp-flare { animation: blink 1.2s infinite; }
.camp-shield { animation: pulse 2.6s infinite; }
.camp-side .cp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.cp-ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-2); flex: 0 0 52px; }
.cp-ic img { width: 34px; }
.recipe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.recipe img, .rc-out img { width: 22px; height: 22px; vertical-align: -6px; margin-right: 4px; }
.rc-in { display: flex; gap: 10px; flex-wrap: wrap; }
.rc-arrow { color: var(--teal); }
.rc-out { font-weight: 700; flex: 1; }
@keyframes step { to { transform: translateY(-3px); } }
@media (max-width: 1020px) { .camp-grid { grid-template-columns: 1fr; } }

/* métiers */
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.job { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "ic nm" "ic pitch" "sk1 sk1" "sk2 sk2"; column-gap: 10px; row-gap: 4px; text-align: left; align-items: center;
  padding: 12px; border-radius: 10px; background: rgba(26, 33, 40, .7); border: 1px solid #3A4854; color: inherit; font: inherit; }
.job:hover:not(:disabled) { border-color: var(--teal); background: rgba(26, 33, 40, .95); }
.job.on { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 0 24px rgba(255, 181, 71, .15); }
.job-ic { grid-area: ic; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #10151A; }
.job-ic img { width: 32px; height: 32px; }
.job-nm { grid-area: nm; font: 800 1rem var(--display); color: #fff; }
.job.on .job-nm { color: var(--lime); }
.job-pitch { grid-area: pitch; font-size: .8rem; color: var(--muted); }
.job-skill { font-size: .8rem; line-height: 1.4; color: #C9D3DA; padding-top: 6px; border-top: 1px solid #26313A; }
.job-skill:nth-of-type(4) { grid-area: sk1; } .job-skill:nth-of-type(5) { grid-area: sk2; }
.job-skill b { color: var(--teal); font-weight: 700; }
.job-skill em { color: var(--muted); font-style: normal; }
.skillcard { display: flex; flex-direction: column; gap: 10px; }
.sk-head { display: flex; gap: 10px; align-items: center; }
.sk-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #10151A; border: 1px solid #3A4854; }
.sk-ic img { width: 28px; height: 28px; }
.sk-act { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px; border-radius: 8px; background: rgba(92, 225, 230, .05); border: 1px solid #26313A; }
.sk-act button { flex: none; }
.jobtag { margin-left: 8px; padding: 1px 7px; border-radius: 99px; font-size: .7rem; font-weight: 700; color: var(--teal); border: 1px solid rgba(92, 225, 230, .35); }
.jobtag.hurt { color: var(--coral); border-color: rgba(255, 77, 61, .4); }

/* administration */
.adm-nav { margin-bottom: 14px; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.adm-grid > .panel:last-child { position: sticky; top: 12px; }
@media (max-width: 1020px) { .adm-grid { grid-template-columns: 1fr; } .adm-grid > .panel:last-child { position: static; } }
.adm-table { max-height: 68vh; overflow: auto; }
.adm-table table { width: 100%; }
.adm-table th { position: sticky; top: 0; background: var(--ink-1, #06140c); z-index: 1; }
.adm-row { cursor: pointer; }
.adm-row:hover td { background: rgba(92, 225, 230, .05); }
.adm-row.sel td { background: rgba(255, 181, 71, .09); }
.adm-row.sel td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
.adm-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.pill { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 99px; font-size: .72rem; font-weight: 700; border: 1px solid #3A4854; color: #C9D3DA; white-space: nowrap; }
.pill.ok { color: var(--teal); border-color: rgba(92, 225, 230, .4); }
.pill.warn { color: var(--gold); border-color: rgba(255, 138, 61, .45); }
.pill.ko { color: var(--coral); border-color: rgba(255, 77, 61, .45); }
.adm-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; margin: 10px 0; }
.adm-field { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.adm-field.wide { grid-column: 1 / -1; }
.adm-field input { width: 100%; }
.adm-field small { font-size: .68rem; }
.adm-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid #26313A; display: flex; flex-direction: column; gap: 8px; }
.adm-search { max-width: 260px; }
.adm-rules { max-width: 860px; }

.jobtag.title { color: var(--gold); border-color: rgba(255, 138, 61, .4); }
.sim-board { margin-top: 16px; }
.sim-board ol { margin: 6px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 5px; font-size: .88rem; }
.sim-board li { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: baseline; }
.sim-board li.me b { color: var(--lime); }

/* balise de largage */
.bc-backdrop { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(0, 4, 2, .75); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bc { width: min(420px, 92vw); padding: 20px; border-radius: 14px; background: #10151A; border: 1px solid #34424D; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.bc-head { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 .9rem var(--display); color: #e6efe9; }
.bc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: pulse 1s infinite; }
.bc-sub { margin: 0; font-size: .85rem; color: var(--muted); }
.bc-code { display: flex; justify-content: center; gap: 8px; }
.bc-k { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; font: 800 1.6rem var(--display); color: #9aa8a0; background: #161D24; border: 1px solid #2C3741; transition: background .12s, color .12s, transform .12s; }
.bc-k.ok { color: #10151A; background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.bc-bar { height: 6px; border-radius: 3px; background: #1E2830; overflow: hidden; }
.bc-fill { height: 100%; width: 100%; background: var(--teal); }
.bc-fill.low { background: var(--coral); }
.bc-pad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-areas: ". u ." "l d r"; gap: 6px; justify-content: center; }
.bc-btn { height: 48px; font: 800 1.3rem var(--display); }
.b-u { grid-area: u; } .b-l { grid-area: l; } .b-d { grid-area: d; } .b-r { grid-area: r; }
.bc-cancel { background: transparent; border-color: transparent; color: var(--muted); font-size: .85rem; }
.bc.shake { animation: bcShake .3s; }
@keyframes bcShake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.bc.win { border-color: var(--gold); }
.bc.fail { border-color: var(--coral); }
@media (prefers-reduced-motion: reduce) { .bc.shake { animation: none; } .bc-dot { animation: none; } }

/* ---------- réfectoire ---------- */
.rf-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .rf-grid { grid-template-columns: 1fr; } }
.rf-chans { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; }
.rf-chan { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 9px 12px; background: transparent; border-color: transparent; clip-path: none; }
.rf-chan.on { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .45); }
.rf-chan.on .rf-cn { color: var(--amber); }
.rf-cn { font-weight: 600; }
.rf-cs { font-size: .76rem; color: var(--muted); font-weight: 400; }
.rf-group { margin: 10px 0 2px; font: 600 .76rem var(--display); color: var(--muted); }
.rf-open { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.rf-main { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 460px; padding: 0; }
.rf-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rf-feed { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.rf-day { align-self: center; font: 600 .74rem var(--display); color: var(--muted); padding: 2px 10px; border: 1px solid var(--line); }
.rf-msg { max-width: min(560px, 82%); align-self: flex-start; padding: 8px 12px; background: var(--ink-2); border-left: 2px solid var(--cyan); }
.rf-msg.mine { align-self: flex-end; border-left: 0; border-right: 2px solid var(--amber); background: rgba(255, 181, 71, .08); }
.rf-meta { display: flex; gap: 10px; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.rf-meta b { color: var(--cyan); font-weight: 600; }
.rf-msg.mine .rf-meta b { color: var(--amber); }
.rf-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.rf-empty { margin: auto; color: var(--muted); font-size: .9rem; }
.rf-input { display: flex; gap: 10px; align-items: flex-end; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.rf-input textarea { min-height: 44px; max-height: 140px; }
.rf-input button { flex: none; }

/* palier du camp, journaux */
header .tier { margin-left: 10px; font: 600 .74rem var(--display); color: var(--cyan); padding: 1px 7px; border: 1px solid rgba(92, 225, 230, .4); vertical-align: middle; }
.badge.rush { animation: pulse 1.4s ease-in-out infinite; }
.arch-h { margin-top: 16px; }
.arch details { border-top: 1px solid var(--line); padding: 8px 0; }
.arch summary { cursor: pointer; font-weight: 600; }
.arch p { margin: 6px 0 0; color: #C9D3DA; font-size: .9rem; }
.jr-backdrop { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; background: rgba(5, 7, 9, .78); padding: 16px; }
.jr { width: min(520px, 100%); padding: 28px 30px 24px; color: #2A2016; background: linear-gradient(180deg, #EFE5CF, #E2D4B6); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: rotate(-.6deg);
  font-family: Georgia, "Times New Roman", serif; }
.jr h2 { color: #2A2016; font-family: Georgia, serif; font-size: 1.3rem; }
.jr p { font-size: 1.02rem; line-height: 1.6; }
.jr-n { font: 600 .78rem var(--display); color: #8C6A44; margin-bottom: 6px; }
.jr button { margin-top: 10px; }

/* raid : annonceur, flash */
.r-ann { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 6; pointer-events: none; opacity: 0; white-space: nowrap;
  font: 700 1.6rem var(--display); color: #FFE2B3; letter-spacing: .04em; text-shadow: 0 0 18px rgba(255, 181, 71, .7), 0 2px 0 #000; }
.r-ann.big { font-size: 2.6rem; color: var(--amber); }
.r-ann.on { animation: rAnn 1.8s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes rAnn { 0% { opacity: 0; transform: translateX(-50%) scale(1.6); } 12% { opacity: 1; transform: translateX(-50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
.r-flashfx { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: #fff; opacity: 0; }
.r-flashfx.on { animation: rFlash .5s ease-out both; }
@keyframes rFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .r-ann.on { animation: none; opacity: 1; } .r-flashfx.on { animation: none; } }

/* Ruche */
.jobtag.ruche { color: #B98CFF; border-color: rgba(185, 140, 255, .5); }
.gzp-ruche { color: #C9A8FF; font-size: .82rem; }
.ruchecard { border-color: rgba(185, 140, 255, .45); background: radial-gradient(120% 80% at 0% 0%, rgba(140, 80, 220, .18), transparent 60%), rgba(14, 10, 24, .92); }
.ruchecard b { color: #D9C2FF; }
.ru-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #E6D2FF, #8C4CE0 45%, #2A1150 80%); box-shadow: 0 0 18px rgba(160, 90, 255, .5); }
.ru-acts { display: flex; flex-direction: column; gap: 6px; }
.ru-acts > button { text-align: left; border-color: rgba(185, 140, 255, .35); }


/* =====================================================================
   Charte Space War (bloc final, il prime sur les règles plus haut)
   ===================================================================== */
body { background: #05070D; }
#bg { opacity: 1; }
.vignette { opacity: 1; background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .45) 100%); }
body.night .vignette { background: radial-gradient(ellipse at center, transparent 50%, rgba(255, 60, 80, .16) 100%); }
:focus-visible { outline: 2px solid #3FB8FF; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); color: #F2F6FC; letter-spacing: 0; }
h2 { font-weight: 700; font-size: 1.3rem; }

/* ---------- coque : menu latéral, barre du haut, page ---------- */
#app.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "rail head" "rail main"; min-height: 100vh; padding-bottom: 0; }
#app.shell > nav { grid-area: rail; }
#app.shell > header { grid-area: head; }
#app.shell > main { grid-area: main; max-width: 1400px; width: 100%; margin: 0; padding: 22px 16px 48px 4px; }
.sw { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font: 800 .95rem var(--display); color: #fff;
  background: linear-gradient(135deg, #3FB8FF, #8F7CFF 60%, #F2955A); box-shadow: 0 0 18px rgba(63, 184, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .3); }

nav {
  position: sticky; top: 12px; align-self: start; display: block; height: calc(100vh - 24px); overflow: auto; scrollbar-width: none;
  margin: 12px 14px 12px 12px; padding: 16px 14px 20px; max-width: none; border-radius: 18px;
  background: rgba(6, 10, 18, .9); border: 1px solid rgba(90, 140, 200, .18); box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
nav .brand { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid rgba(90, 140, 200, .16); margin-bottom: 14px; }
nav .bn { font: 700 1.12rem var(--display); color: #fff; }
nav .bs { font-size: .78rem; color: var(--muted); }
nav { position: sticky; }
nav .vein { position: absolute; left: 33px; top: 86px; bottom: 22px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(63, 184, 255, .9), rgba(143, 124, 255, .7) 50%, rgba(87, 227, 137, .6)); box-shadow: 0 0 10px rgba(63, 184, 255, .6); }
.ngroup { position: relative; margin-bottom: 14px; }
.ng-head { display: flex; align-items: center; gap: 12px; padding: 6px 4px; font: 600 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #A9B7CA; }
.ng-head .ic { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #0A1424; border: 1px solid var(--tone); box-shadow: 0 0 12px var(--tone-glow), inset 0 0 8px var(--tone-glow); color: var(--tone); }
.ng-head .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ng-head .ic svg .f { fill: currentColor; stroke: none; }
.ngroup ul { list-style: none; margin: 2px 0 0; padding: 0; }
.ngroup li button { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px 8px 46px; margin: 1px 0;
  border: 1px solid transparent; border-radius: 10px; background: transparent; clip-path: none; box-shadow: none; font: 500 .92rem var(--body); color: #DCE5F1; }
.ngroup li button:hover:not(:disabled) { background: rgba(63, 184, 255, .06); border-color: transparent; }
.ngroup li button .node { position: absolute; left: 17px; width: 9px; height: 9px; transform: rotate(45deg); border: 1.5px solid var(--tone); background: #0A1424; }
.ngroup li button.active { background: rgba(63, 184, 255, .1); border-color: rgba(63, 184, 255, .35); color: #fff; }
.ngroup li button.active .node { background: var(--tone); box-shadow: 0 0 8px var(--tone); }
.ngroup li button.active::before { content: ""; position: absolute; left: 21px; top: 50%; width: 22px; height: 1.5px; background: var(--tone); box-shadow: 0 0 6px var(--tone); }
.c-cyan { --tone: #3FB8FF; --tone-glow: rgba(63, 184, 255, .4); }
.c-amber { --tone: #F5C84B; --tone-glow: rgba(245, 200, 75, .35); }
.c-green { --tone: #57E389; --tone-glow: rgba(87, 227, 137, .35); }
.c-violet { --tone: #8F7CFF; --tone-glow: rgba(143, 124, 255, .4); }
.c-red { --tone: #FF5D6C; --tone-glow: rgba(255, 93, 108, .35); }
nav .unread { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 700 .72rem var(--display); color: #06101E; background: var(--grad); position: static; }

header.topbar {
  position: relative; z-index: 10; display: block; margin: 12px 16px 0 0; padding: 14px; border-radius: 18px;
  background: rgba(6, 10, 18, .88); border: 1px solid rgba(90, 140, 200, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.tb-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.tb-row .spacer { flex: 1; }
.campsel { display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid rgba(90, 140, 200, .25); background: rgba(10, 16, 28, .8); }
.campsel .orb { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F0C9A8, #A0603C 45%, #3A1E14 80%); box-shadow: 0 0 0 2px rgba(63, 184, 255, .25), 0 0 14px rgba(242, 149, 90, .35); }
.cs-name { font: 700 1rem var(--display); color: #fff; display: flex; align-items: center; gap: 8px; }
.cs-name .tier { font: 600 .66rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: #57E389; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(87, 227, 137, .4); margin: 0; }
.cs-co { font: 500 .76rem var(--display); color: #6FC3FF; letter-spacing: .04em; }
.timer { display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.timer .label { font-size: .72rem; color: var(--muted); }
.countdown { font: 700 1.35rem var(--display); color: #fff; letter-spacing: .03em; text-shadow: none; }
.countdown.danger { color: var(--coral); text-shadow: 0 0 12px rgba(255, 93, 108, .6); }
.prof { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; border: 1px solid rgba(90, 140, 200, .25); background: rgba(10, 16, 28, .8); max-width: 420px; }
.prof .av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 1.05rem var(--display); color: #2A1A06; background: radial-gradient(circle at 35% 30%, #FFE3A3, #F5C84B 50%, #B07A1C); box-shadow: 0 0 0 2px #F5C84B, 0 0 14px rgba(245, 200, 75, .35); }
.prof .pn { font: 700 .98rem var(--display); color: #fff; display: flex; gap: 8px; align-items: center; }
.prof .ps { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 330px; }
.prof .adm { font: 600 .62rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: #F5C84B; border: 1px solid rgba(245, 200, 75, .45); border-radius: 999px; padding: 0 6px; }
.prof .adm.god { color: #06101E; background: #F5C84B; }
header .logout { padding: 8px 12px; color: var(--muted); }
.tb-res, .tb-cnt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.res, .cnt { position: relative; padding: 18px 14px 10px; border-radius: 12px; background: rgba(10, 16, 28, .85); border: 1px solid rgba(90, 140, 200, .18); text-align: left; }
.cnt { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px 10px; clip-path: none; font: inherit; color: inherit; }
.cnt:hover:not(:disabled) { background: rgba(16, 24, 40, .95); border-color: rgba(120, 170, 230, .35); }
.cnt.hot { border-color: rgba(63, 184, 255, .45); }
.rlabel { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); padding: 2px 18px; font: 700 .6rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #0A1020; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%); background: var(--rl, #9AA6B8); }
.rlabel::before, .rlabel::after { content: "◆"; font-size: .45rem; margin: 0 6px; vertical-align: 1px; opacity: .7; }
.r-yellow .rlabel, .c-yellow .rlabel { --rl: #F5C84B; } .r-blue .rlabel, .c-blue .rlabel { --rl: #7CC8FF; } .r-teal .rlabel, .c-teal .rlabel { --rl: #3FE0C5; } .r-gray .rlabel { --rl: #A9B4C4; }
.c-violet .rlabel { --rl: #A795FF; } .c-amber .rlabel { --rl: #F5C84B; } .c-red .rlabel { --rl: #FF7A86; }
.res .rv { font: 700 1.25rem var(--display); color: #fff; display: flex; align-items: center; gap: 10px; }
.res .rs { font-size: .74rem; color: #57E389; }
.r-gray .rs { color: var(--muted); }
.res .segs { display: flex; gap: 3px; }
.res .seg { width: 9px; height: 12px; border-radius: 2px; background: #1E2B44; transform: skewX(-12deg); }
.res .seg.on { background: #F5C84B; box-shadow: 0 0 6px rgba(245, 200, 75, .5); }
.cnt-in { display: flex; align-items: center; gap: 12px; }
.cnt-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(63, 184, 255, .12); color: #7CC8FF; }
.c-violet .cnt-ic { background: linear-gradient(135deg, rgba(63, 184, 255, .35), rgba(143, 124, 255, .45)); color: #fff; }
.c-amber .cnt-ic { background: rgba(245, 200, 75, .14); color: #F5C84B; }
.c-red .cnt-ic { background: rgba(255, 93, 108, .16); color: #FF7A86; }
.c-teal .cnt-ic { background: rgba(63, 224, 197, .14); color: #3FE0C5; }
.cnt-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cnt-v { font: 700 1.2rem var(--display); color: #fff; }
.pagehead { padding: 6px 2px 14px; margin-bottom: 18px; border-bottom: 1px solid rgba(90, 140, 200, .18); }
.pagehead h1 { font: 700 2rem var(--display); margin: 0 0 4px; }
.pagehead p { margin: 0; color: var(--muted); }
@media (max-width: 1100px) { .tb-res, .tb-cnt { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  #app.shell { grid-template-columns: 1fr; grid-template-areas: "head" "main"; padding-bottom: 72px; }
  #app.shell > main { padding: 16px 10px 40px; }
  header.topbar { margin: 8px 8px 0; position: static; }
  nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; height: auto; margin: 0; padding: 4px; border-radius: 16px 16px 0 0; display: flex; overflow-x: auto; }
  nav .brand, nav .vein, .ng-head { display: none; }
  .ngroup { margin: 0; } .ngroup ul { display: flex; } .ngroup li button { padding: 8px 10px; white-space: nowrap; font-size: .8rem; }
  .ngroup li button .node, .ngroup li button.active::before { display: none; }
}

/* ---------- cartes, boutons, champs ---------- */
.panel { border-radius: 16px; clip-path: none; padding: 18px; background: rgba(8, 12, 22, .82); border: 1px solid rgba(90, 140, 200, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 14px 34px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel h3 { font: 600 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #6FC3FF; }
.panel h2 { color: #fff; }
button { border-radius: 10px; clip-path: none; border: 1px solid rgba(120, 170, 230, .28); background: rgba(15, 22, 38, .92); font: 600 .9rem var(--body); color: #E8EEF7; box-shadow: none; }
button:hover:not(:disabled) { background: rgba(22, 32, 54, .95); border-color: rgba(120, 170, 230, .45); }
button.primary { background: var(--grad); border-color: transparent; color: #06101E; font-weight: 700; box-shadow: 0 6px 18px rgba(63, 140, 255, .25); }
button.primary:hover:not(:disabled) { background: linear-gradient(90deg, #6CCBFF, #A797FF); border-color: transparent; }
button.cta, .lg-card .cta { background: var(--grad3); }
button.danger { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .5); color: #FFD3D8; }
button.ghost { background: transparent; border-color: transparent; }
.ripple { background: rgba(120, 190, 255, .35); }
input, textarea, select { border-radius: 10px; border: 1px solid rgba(120, 160, 220, .25); background: #060A13; color: #E8EEF7; }
input:focus, textarea:focus, select:focus { border-color: #3FB8FF; box-shadow: 0 0 0 3px rgba(63, 184, 255, .18); }
.seg { border-radius: 10px; background: rgba(6, 10, 19, .9); border: 1px solid rgba(90, 140, 200, .22); padding: 3px; }
.seg button { border: 0; border-radius: 8px; }
.seg button.on { background: rgba(63, 184, 255, .16); color: #8FD5FF; box-shadow: none; }
.badge { border-radius: 999px; border-left: 0; padding: 2px 10px; }
.badge.bad { color: #FFD3D8; background: rgba(255, 93, 108, .16); }
.toast { border-radius: 12px; background: rgba(8, 12, 22, .96); border: 1px solid rgba(90, 140, 200, .25); border-left: 3px solid #3FB8FF; }
.slot { border-radius: 12px; clip-path: none; background: linear-gradient(180deg, #121B2E, #0B1220); border: 1px solid rgba(90, 140, 200, .2); }
.slot:hover:not(:disabled) { background: linear-gradient(180deg, #18233A, #0B1220); }
.fact { border-radius: 12px; background: rgba(10, 16, 28, .85); border: 1px solid rgba(90, 140, 200, .16); }
.alert { border-radius: 12px; border-left: 3px solid var(--gold); }
.alert.info { border-left-color: #3FB8FF; }
.job { border-radius: 14px; clip-path: none; background: rgba(10, 16, 28, .85); border-color: rgba(90, 140, 200, .22); }
.job.on { border-color: #3FB8FF; box-shadow: 0 0 0 1px #3FB8FF, 0 0 24px rgba(63, 184, 255, .15); }
.job.on .job-nm { color: #8FD5FF; }
.job-skill b, .rf-meta b { color: #6FC3FF; }
.sk-act, .raidbox, .campbox, .sk-ic, .job-ic, .pill, .jobtag, .chip { border-radius: 10px; }
.pill, .jobtag { border-radius: 999px; }
.rf-msg { border-radius: 12px; border-left: 2px solid #3FB8FF; background: rgba(15, 22, 38, .9); }
.rf-msg.mine { border-right: 2px solid #8F7CFF; background: rgba(143, 124, 255, .1); }
.rf-msg.mine .rf-meta b { color: #B6A8FF; }
.rf-chan.on { background: rgba(63, 184, 255, .1); border-color: rgba(63, 184, 255, .4); }
.rf-chan.on .rf-cn { color: #8FD5FF; }
.water > div { background: var(--grad); }
.mappanel.is3d, .camp3d { background: radial-gradient(120% 90% at 50% 10%, rgba(63, 120, 220, .14), transparent 60%), linear-gradient(180deg, #0A1020, #060912); border-radius: 16px; }
.mappanel.is3d::before, .mappanel.is3d::after, .camp3d::before, .camp3d::after { content: ""; position: absolute; z-index: 3; width: 26px; height: 26px; pointer-events: none; border-color: rgba(63, 184, 255, .75); border-style: solid; }
.mappanel.is3d::before, .camp3d::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-radius: 8px 0 0 0; }
.mappanel.is3d::after, .camp3d::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 8px 0; }
.c3-label { border-radius: 8px; font-family: var(--display); background: rgba(6, 10, 19, .85); border-color: rgba(63, 184, 255, .35); }
.c3-label.sel { border-color: #3FB8FF; color: #8FD5FF; box-shadow: 0 0 0 1px #3FB8FF; }
.map3d-labels .zb { border-radius: 999px; background: #FF5D6C; }

/* ---------- connexion ---------- */
.login { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 470px); align-items: center; gap: 48px; max-width: 1080px; margin: 0 auto; padding: 60px 24px; }
.hud-tag { position: absolute; top: 56px; right: 18%; display: flex; align-items: center; gap: 16px; }
.hud-tag b { display: block; font: 700 .9rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: #6FC3FF; }
.hud-tag span:not(.hud-planet) { font-size: .82rem; letter-spacing: .1em; color: #6C86A6; }
.hud-planet { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F0C9A8, #A0603C 45%, #3A1E14 80%); box-shadow: 0 0 0 10px rgba(63, 184, 255, .05), 0 0 0 11px rgba(63, 184, 255, .35); }
.lg-hero .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.lg-hero .bn { font: 700 1.2rem var(--display); color: #fff; }
.eyebrow { font: 600 .82rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: #3FB8FF; margin-bottom: 10px; }
.lg-hero h1 { font: 800 clamp(2.3rem, 5vw, 3.4rem)/1.05 var(--display); margin: 0 0 18px; color: #fff; }
.lg-hero h1 em { display: block; font-style: normal; background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-hero p { color: #C7D2E2; max-width: 460px; }
.lg-hero .stats { display: flex; gap: 10px; margin: 22px 0; }
.lg-hero .stats > div { min-width: 118px; padding: 12px 16px; border-radius: 14px; background: rgba(10, 16, 28, .7); border: 1px solid rgba(90, 140, 200, .2); color: var(--muted); font-size: .82rem; }
.lg-hero .stats b { display: block; font: 700 1.4rem var(--display); color: #fff; }
.ghost-pill { border-radius: 999px; background: rgba(10, 16, 28, .6); }
.lg-card { position: relative; padding: 28px; background: rgba(6, 10, 20, .9); border: 1px solid rgba(90, 140, 200, .25);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.lg-card::before, .lg-card::after { content: ""; position: absolute; width: 20px; height: 20px; border-color: #3FB8FF; border-style: solid; }
.lg-card::before { top: 0; left: 0; border-width: 2px 0 0 2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.lg-card::after { right: 0; bottom: 0; border-width: 0 2px 2px 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.lg-card h2 { font: 700 1.6rem var(--display); margin: 0; }
.lg-card form { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.lg-card label { font: 700 .74rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: #C7D2E2; margin-top: 8px; }
.lg-card .pwd { position: relative; }
.lg-card .pwd .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px; border: 0; background: transparent; color: var(--muted); }
.lg-card .pwd .eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lg-card .cta { margin-top: 16px; padding: 13px; font-size: 1rem; color: #06101E; }
.lg-alt { margin-top: 16px; text-align: center; color: var(--muted); font-size: .9rem; }
.linkbtn { background: transparent; border: 0; padding: 0; color: #3FB8FF; font-weight: 500; }
.linkbtn:hover:not(:disabled) { background: transparent; text-decoration: underline; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; gap: 24px; padding-top: 120px; } .hud-tag { right: 24px; top: 24px; } }

.c-teal { --tone: #3FE0C5; --tone-glow: rgba(63, 224, 197, .35); }
.ngroup li button .nx { margin-left: auto; font: 600 .74rem var(--display); color: #3FE0C5; }
.ngroup li button { font-size: .88rem; padding-top: 6px; padding-bottom: 6px; }
/* admin : filtre des joueurs et bouton rapide du droit admin */
.adm-filter { margin: 4px 0 10px; flex-wrap: wrap; }
.small-btn { padding: 4px 10px; font-size: .78rem; white-space: nowrap; }
.enter-admin { margin-top: 18px; display: grid; gap: 14px; }
.enter-admin > button { justify-self: start; }
.enter-admin-body { display: grid; gap: 14px; }
