/* Panel du serveur entre amis : ardoise des profondeurs, redstone et émeraude */
@font-face{font-family:'Pixelify Sans';font-weight:400 700;font-display:swap;src:url(/fonts/pixelify-sans.woff2) format('woff2')}
@font-face{font-family:'Atkinson Hyperlegible Next';font-weight:200 800;font-display:swap;src:url(/fonts/atkinson-hyperlegible-next.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-weight:100 800;font-display:swap;src:url(/fonts/jetbrains-mono.woff2) format('woff2')}

:root{
  --bg:#131418; --stone:#24262c; --stone-2:#2d3037; --stone-3:#3a3d46; --hi:rgba(255,255,255,.13); --lo:#08090b;
  --text:#efebe2; --muted:#a39f96; --faint:#6f6c66;
  --red:#ff4433; --red-2:#c8261b; --red-glow:rgba(255,68,51,.5);
  --green:#46d877; --green-2:#23974a; --gold:#f6c445; --gold-2:#b98b1a; --lapis:#6c96ff; --amber:#ffb648;
  --pixel:'Pixelify Sans',ui-monospace,monospace; --body:'Atkinson Hyperlegible Next',system-ui,sans-serif; --mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
  --n:6px; --gap:18px;
}
*{box-sizing:border-box}
html{color-scheme:dark}
body{margin:0;min-height:100vh;font:16px/1.5 var(--body);color:var(--text);background-color:var(--bg);
  background-image:radial-gradient(900px 520px at 8% -8%,rgba(255,68,51,.13),transparent 62%),radial-gradient(700px 500px at 105% 110%,rgba(70,216,119,.07),transparent 60%),url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' shape-rendering='crispEdges'><rect width='64' height='64' fill='%231a1b20'/><rect x='4' y='0' width='4' height='4' fill='%2317181c'/><rect x='8' y='0' width='4' height='4' fill='%231c1e23'/><rect x='12' y='0' width='4' height='4' fill='%2317181c'/><rect x='24' y='0' width='4' height='4' fill='%2317181c'/><rect x='32' y='0' width='4' height='4' fill='%2317181c'/><rect x='40' y='0' width='4' height='4' fill='%2317181c'/><rect x='44' y='0' width='4' height='4' fill='%2317181c'/><rect x='52' y='0' width='4' height='4' fill='%231f2126'/><rect x='56' y='0' width='4' height='4' fill='%2317181c'/><rect x='60' y='0' width='4' height='4' fill='%2317181c'/><rect x='0' y='4' width='4' height='4' fill='%231c1e23'/><rect x='4' y='4' width='4' height='4' fill='%23202228'/><rect x='8' y='4' width='4' height='4' fill='%231c1e23'/><rect x='16' y='4' width='4' height='4' fill='%23202228'/><rect x='20' y='4' width='4' height='4' fill='%2317181c'/><rect x='24' y='4' width='4' height='4' fill='%2315161a'/><rect x='28' y='4' width='4' height='4' fill='%2317181c'/><rect x='32' y='4' width='4' height='4' fill='%2317181c'/><rect x='36' y='4' width='4' height='4' fill='%2317181c'/><rect x='44' y='4' width='4' height='4' fill='%231f2126'/><rect x='48' y='4' width='4' height='4' fill='%2317181c'/><rect x='52' y='4' width='4' height='4' fill='%231c1e23'/><rect x='56' y='4' width='4' height='4' fill='%231c1e23'/><rect x='4' y='8' width='4' height='4' fill='%2317181c'/><rect x='8' y='8' width='4' height='4' fill='%2317181c'/><rect x='12' y='8' width='4' height='4' fill='%2317181c'/><rect x='16' y='8' width='4' height='4' fill='%231c1e23'/><rect x='28' y='8' width='4' height='4' fill='%231c1e23'/><rect x='36' y='8' width='4' height='4' fill='%2317181c'/><rect x='40' y='8' width='4' height='4' fill='%231f2126'/><rect x='44' y='8' width='4' height='4' fill='%231c1e23'/><rect x='48' y='8' width='4' height='4' fill='%2317181c'/><rect x='52' y='8' width='4' height='4' fill='%231c1e23'/><rect x='60' y='8' width='4' height='4' fill='%2315161a'/><rect x='0' y='12' width='4' height='4' fill='%231c1e23'/><rect x='4' y='12' width='4' height='4' fill='%2317181c'/><rect x='8' y='12' width='4' height='4' fill='%23202228'/><rect x='12' y='12' width='4' height='4' fill='%2317181c'/><rect x='20' y='12' width='4' height='4' fill='%231f2126'/><rect x='24' y='12' width='4' height='4' fill='%2317181c'/><rect x='32' y='12' width='4' height='4' fill='%2317181c'/><rect x='36' y='12' width='4' height='4' fill='%231c1e23'/><rect x='40' y='12' width='4' height='4' fill='%231f2126'/><rect x='44' y='12' width='4' height='4' fill='%231c1e23'/><rect x='48' y='12' width='4' height='4' fill='%2315161a'/><rect x='56' y='12' width='4' height='4' fill='%231c1e23'/><rect x='60' y='12' width='4' height='4' fill='%231c1e23'/><rect x='0' y='16' width='4' height='4' fill='%231c1e23'/><rect x='8' y='16' width='4' height='4' fill='%231f2126'/><rect x='12' y='16' width='4' height='4' fill='%23202228'/><rect x='20' y='16' width='4' height='4' fill='%231c1e23'/><rect x='24' y='16' width='4' height='4' fill='%2317181c'/><rect x='28' y='16' width='4' height='4' fill='%231c1e23'/><rect x='32' y='16' width='4' height='4' fill='%231c1e23'/><rect x='36' y='16' width='4' height='4' fill='%23202228'/><rect x='40' y='16' width='4' height='4' fill='%231f2126'/><rect x='44' y='16' width='4' height='4' fill='%2317181c'/><rect x='52' y='16' width='4' height='4' fill='%231c1e23'/><rect x='56' y='16' width='4' height='4' fill='%2317181c'/><rect x='0' y='20' width='4' height='4' fill='%2317181c'/><rect x='4' y='20' width='4' height='4' fill='%2317181c'/><rect x='8' y='20' width='4' height='4' fill='%2317181c'/><rect x='12' y='20' width='4' height='4' fill='%231f2126'/><rect x='16' y='20' width='4' height='4' fill='%2317181c'/><rect x='20' y='20' width='4' height='4' fill='%2317181c'/><rect x='28' y='20' width='4' height='4' fill='%2315161a'/><rect x='32' y='20' width='4' height='4' fill='%2317181c'/><rect x='44' y='20' width='4' height='4' fill='%2315161a'/><rect x='48' y='20' width='4' height='4' fill='%231f2126'/><rect x='52' y='20' width='4' height='4' fill='%2315161a'/><rect x='56' y='20' width='4' height='4' fill='%2317181c'/><rect x='4' y='24' width='4' height='4' fill='%2315161a'/><rect x='8' y='24' width='4' height='4' fill='%23202228'/><rect x='12' y='24' width='4' height='4' fill='%2317181c'/><rect x='16' y='24' width='4' height='4' fill='%2317181c'/><rect x='20' y='24' width='4' height='4' fill='%2317181c'/><rect x='24' y='24' width='4' height='4' fill='%2317181c'/><rect x='32' y='24' width='4' height='4' fill='%231c1e23'/><rect x='36' y='24' width='4' height='4' fill='%2317181c'/><rect x='40' y='24' width='4' height='4' fill='%2317181c'/><rect x='52' y='24' width='4' height='4' fill='%231c1e23'/><rect x='56' y='24' width='4' height='4' fill='%23202228'/><rect x='60' y='24' width='4' height='4' fill='%231c1e23'/><rect x='4' y='28' width='4' height='4' fill='%231c1e23'/><rect x='8' y='28' width='4' height='4' fill='%231c1e23'/><rect x='12' y='28' width='4' height='4' fill='%2317181c'/><rect x='16' y='28' width='4' height='4' fill='%2315161a'/><rect x='20' y='28' width='4' height='4' fill='%231f2126'/><rect x='24' y='28' width='4' height='4' fill='%2315161a'/><rect x='28' y='28' width='4' height='4' fill='%231f2126'/><rect x='40' y='28' width='4' height='4' fill='%2317181c'/><rect x='44' y='28' width='4' height='4' fill='%231c1e23'/><rect x='48' y='28' width='4' height='4' fill='%2317181c'/><rect x='52' y='28' width='4' height='4' fill='%2317181c'/><rect x='56' y='28' width='4' height='4' fill='%2317181c'/><rect x='60' y='28' width='4' height='4' fill='%2317181c'/><rect x='4' y='32' width='4' height='4' fill='%2317181c'/><rect x='8' y='32' width='4' height='4' fill='%2317181c'/><rect x='12' y='32' width='4' height='4' fill='%2317181c'/><rect x='16' y='32' width='4' height='4' fill='%2317181c'/><rect x='24' y='32' width='4' height='4' fill='%2317181c'/><rect x='28' y='32' width='4' height='4' fill='%2315161a'/><rect x='32' y='32' width='4' height='4' fill='%231c1e23'/><rect x='36' y='32' width='4' height='4' fill='%2317181c'/><rect x='40' y='32' width='4' height='4' fill='%2317181c'/><rect x='52' y='32' width='4' height='4' fill='%2317181c'/><rect x='56' y='32' width='4' height='4' fill='%2315161a'/><rect x='60' y='32' width='4' height='4' fill='%23202228'/><rect x='8' y='36' width='4' height='4' fill='%2317181c'/><rect x='12' y='36' width='4' height='4' fill='%2317181c'/><rect x='20' y='36' width='4' height='4' fill='%2317181c'/><rect x='24' y='36' width='4' height='4' fill='%231f2126'/><rect x='28' y='36' width='4' height='4' fill='%2317181c'/><rect x='32' y='36' width='4' height='4' fill='%2317181c'/><rect x='36' y='36' width='4' height='4' fill='%23202228'/><rect x='44' y='36' width='4' height='4' fill='%2317181c'/><rect x='52' y='36' width='4' height='4' fill='%2317181c'/><rect x='60' y='36' width='4' height='4' fill='%23202228'/><rect x='0' y='40' width='4' height='4' fill='%2315161a'/><rect x='4' y='40' width='4' height='4' fill='%231c1e23'/><rect x='8' y='40' width='4' height='4' fill='%2317181c'/><rect x='16' y='40' width='4' height='4' fill='%2317181c'/><rect x='20' y='40' width='4' height='4' fill='%231f2126'/><rect x='28' y='40' width='4' height='4' fill='%231f2126'/><rect x='36' y='40' width='4' height='4' fill='%2317181c'/><rect x='40' y='40' width='4' height='4' fill='%231f2126'/><rect x='44' y='40' width='4' height='4' fill='%23202228'/><rect x='48' y='40' width='4' height='4' fill='%2315161a'/><rect x='52' y='40' width='4' height='4' fill='%231f2126'/><rect x='56' y='40' width='4' height='4' fill='%231f2126'/><rect x='60' y='40' width='4' height='4' fill='%231c1e23'/><rect x='0' y='44' width='4' height='4' fill='%2317181c'/><rect x='12' y='44' width='4' height='4' fill='%2317181c'/><rect x='16' y='44' width='4' height='4' fill='%2317181c'/><rect x='20' y='44' width='4' height='4' fill='%2317181c'/><rect x='24' y='44' width='4' height='4' fill='%2317181c'/><rect x='28' y='44' width='4' height='4' fill='%231c1e23'/><rect x='32' y='44' width='4' height='4' fill='%23202228'/><rect x='40' y='44' width='4' height='4' fill='%2315161a'/><rect x='44' y='44' width='4' height='4' fill='%23202228'/><rect x='48' y='44' width='4' height='4' fill='%23202228'/><rect x='56' y='44' width='4' height='4' fill='%2317181c'/><rect x='60' y='44' width='4' height='4' fill='%2317181c'/><rect x='0' y='48' width='4' height='4' fill='%2317181c'/><rect x='4' y='48' width='4' height='4' fill='%2317181c'/><rect x='8' y='48' width='4' height='4' fill='%231c1e23'/><rect x='12' y='48' width='4' height='4' fill='%2315161a'/><rect x='16' y='48' width='4' height='4' fill='%2315161a'/><rect x='24' y='48' width='4' height='4' fill='%231c1e23'/><rect x='28' y='48' width='4' height='4' fill='%231f2126'/><rect x='32' y='48' width='4' height='4' fill='%2317181c'/><rect x='36' y='48' width='4' height='4' fill='%231c1e23'/><rect x='40' y='48' width='4' height='4' fill='%2315161a'/><rect x='44' y='48' width='4' height='4' fill='%231f2126'/><rect x='48' y='48' width='4' height='4' fill='%231f2126'/><rect x='56' y='48' width='4' height='4' fill='%2317181c'/><rect x='60' y='48' width='4' height='4' fill='%231f2126'/><rect x='4' y='52' width='4' height='4' fill='%231f2126'/><rect x='8' y='52' width='4' height='4' fill='%23202228'/><rect x='20' y='52' width='4' height='4' fill='%23202228'/><rect x='24' y='52' width='4' height='4' fill='%231c1e23'/><rect x='28' y='52' width='4' height='4' fill='%2317181c'/><rect x='32' y='52' width='4' height='4' fill='%2317181c'/><rect x='36' y='52' width='4' height='4' fill='%2317181c'/><rect x='40' y='52' width='4' height='4' fill='%2315161a'/><rect x='44' y='52' width='4' height='4' fill='%231f2126'/><rect x='48' y='52' width='4' height='4' fill='%2317181c'/><rect x='52' y='52' width='4' height='4' fill='%231f2126'/><rect x='56' y='52' width='4' height='4' fill='%23202228'/><rect x='60' y='52' width='4' height='4' fill='%231c1e23'/><rect x='8' y='56' width='4' height='4' fill='%2317181c'/><rect x='12' y='56' width='4' height='4' fill='%2317181c'/><rect x='16' y='56' width='4' height='4' fill='%23202228'/><rect x='20' y='56' width='4' height='4' fill='%231c1e23'/><rect x='28' y='56' width='4' height='4' fill='%2315161a'/><rect x='36' y='56' width='4' height='4' fill='%2315161a'/><rect x='40' y='56' width='4' height='4' fill='%231f2126'/><rect x='44' y='56' width='4' height='4' fill='%2317181c'/><rect x='48' y='56' width='4' height='4' fill='%2317181c'/><rect x='52' y='56' width='4' height='4' fill='%2317181c'/><rect x='56' y='56' width='4' height='4' fill='%2317181c'/><rect x='60' y='56' width='4' height='4' fill='%231c1e23'/><rect x='0' y='60' width='4' height='4' fill='%2317181c'/><rect x='8' y='60' width='4' height='4' fill='%2317181c'/><rect x='12' y='60' width='4' height='4' fill='%2315161a'/><rect x='24' y='60' width='4' height='4' fill='%231c1e23'/><rect x='28' y='60' width='4' height='4' fill='%2315161a'/><rect x='36' y='60' width='4' height='4' fill='%2315161a'/><rect x='52' y='60' width='4' height='4' fill='%2317181c'/><rect x='60' y='60' width='4' height='4' fill='%2317181c'/></svg>");
  background-size:auto,auto,128px 128px;background-attachment:fixed;image-rendering:pixelated;-webkit-font-smoothing:antialiased}
.grain{position:fixed;inset:0;pointer-events:none;z-index:50;background:repeating-linear-gradient(0deg,rgba(0,0,0,.07) 0 1px,transparent 1px 3px);mix-blend-mode:multiply}
[hidden]{display:none!important}
.pixel{font-family:var(--pixel);font-weight:600;letter-spacing:.02em}
.muted{color:var(--muted);margin:.2em 0 .8em}
.small{font-size:13px}
.eyebrow{margin:0;font:700 11px/1.2 var(--body);letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
a{color:var(--lapis)}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* ---------- blocs ---------- */
.block{position:relative;background:linear-gradient(180deg,var(--stone-2),var(--stone));border:3px solid var(--lo);
  box-shadow:inset 3px 3px 0 var(--hi),inset -3px -3px 0 rgba(0,0,0,.35);
  clip-path:polygon(var(--n) 0,calc(100% - var(--n)) 0,100% var(--n),100% calc(100% - var(--n)),calc(100% - var(--n)) 100%,var(--n) 100%,0 calc(100% - var(--n)),0 var(--n))}
.card{padding:20px 22px}
.card-title{margin:0 0 10px;font-size:21px;color:var(--text)}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.card-head .card-title{margin:0}
.count{color:var(--muted);font-size:16px}
.tag{font:700 11px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;padding:6px 8px;border:2px solid currentColor}
.tag-green{color:var(--green)} .tag-gold{color:var(--gold)} .tag-red{color:var(--red)} .tag-lapis{color:var(--lapis)}

/* ---------- boutons ---------- */
.btn{--c:var(--stone-3);--c2:#2a2d34;appearance:none;cursor:pointer;font:700 15px/1 var(--body);color:#fff;padding:11px 16px;
  background:linear-gradient(180deg,var(--c),var(--c2));border:3px solid var(--lo);
  box-shadow:inset 3px 3px 0 rgba(255,255,255,.28),inset -3px -3px 0 rgba(0,0,0,.32);text-decoration:none;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;transition:filter .12s,transform .06s}
.btn:hover{filter:brightness(1.12)}
.btn:active{transform:translateY(2px);box-shadow:inset -3px -3px 0 rgba(255,255,255,.18),inset 3px 3px 0 rgba(0,0,0,.35)}
.btn:disabled{opacity:.45;cursor:not-allowed;filter:none;transform:none}
.btn-red{--c:#e8392a;--c2:#a51d14;text-shadow:0 2px 0 rgba(0,0,0,.35)}
.btn-green{--c:#3cc56b;--c2:#1d7f3d;text-shadow:0 2px 0 rgba(0,0,0,.35)}
.btn-stone{--c:#4a4e58;--c2:#30333a}
.btn-ghost{background:transparent;box-shadow:none;border-color:var(--stone-3);color:var(--text)}
.btn-ghost:hover{color:var(--text);border-color:var(--muted)}
.btn-sm{padding:7px 10px;font-size:13px;border-width:2px}

/* ---------- lampe de redstone ---------- */
.lamp{width:30px;height:30px;flex:none;background:url(/lamp-off.svg) 0 0/100% 100%;border:2px solid var(--lo);image-rendering:pixelated;transition:filter .3s,box-shadow .3s}
.lamp.is-on{background-image:url(/icon.svg);box-shadow:0 0 16px rgba(255,182,72,.55),0 0 46px rgba(255,120,40,.3)}
.lamp.is-busy{background-image:url(/icon.svg);animation:flicker 1.1s steps(2) infinite}
.lamp.big{width:56px;height:56px;margin:0 auto 14px}
.lamp.huge{width:96px;height:96px;border-width:4px}
@keyframes flicker{50%{filter:brightness(.35)}}

/* ---------- connexion ---------- */
.auth{min-height:100vh;display:grid;place-items:center;padding:24px}
.auth-card{width:min(420px,100%);padding:34px 30px;text-align:center}
.auth-card h1{font-size:34px;margin:4px 0 22px}
.auth-card form{display:grid;gap:14px;text-align:left}
.hint{color:var(--muted);font-size:14px;margin:0}
label{display:grid;gap:6px;font-weight:600;font-size:14px;color:var(--muted)}
input{font:16px var(--body);color:var(--text);background:#0e0f12;border:3px solid var(--lo);box-shadow:inset 3px 3px 0 rgba(0,0,0,.5),inset -2px -2px 0 rgba(255,255,255,.05);padding:10px 12px;width:100%}
input:focus{outline:none;border-color:var(--gold)}
.form-error{color:var(--red);min-height:1.5em;margin:12px 0 0;font-weight:600}

/* ---------- en-tête et onglets ---------- */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:20px;padding:12px max(20px,env(safe-area-inset-left));background:rgba(15,16,19,.86);backdrop-filter:blur(10px);border-bottom:3px solid var(--lo);box-shadow:0 3px 0 rgba(255,255,255,.04)}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-name{margin:0;font-size:22px;line-height:1.1}
.tabs{display:flex;gap:6px;margin-left:auto}
.tab{position:relative;display:flex;align-items:center;gap:8px;font:700 15px var(--body);color:var(--muted);background:none;border:0;padding:10px 14px;cursor:pointer;border-bottom:3px solid transparent}
.tab:hover{color:var(--text)}
.tab.is-on{color:var(--text);background:linear-gradient(180deg,transparent,rgba(255,68,51,.12));border-bottom-color:var(--red)}
.tab .dot{position:absolute;top:6px;right:6px;width:8px;height:8px;background:var(--gold);box-shadow:0 0 8px var(--gold)}
.logout{margin-left:6px}
.ico{display:inline-block;width:18px;height:18px;flex:none;background:currentColor;-webkit-mask-size:100% 100%;mask-size:100% 100%;image-rendering:pixelated}
.ico-home{-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='2' y='1' width='1' height='1'/><rect x='3' y='1' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='1' y='2' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='6' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='1' y='3' width='1' height='1'/><rect x='2' y='3' width='1' height='1'/><rect x='3' y='3' width='1' height='1'/><rect x='4' y='3' width='1' height='1'/><rect x='5' y='3' width='1' height='1'/><rect x='6' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='1' y='4' width='1' height='1'/><rect x='6' y='4' width='1' height='1'/><rect x='1' y='5' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='4' y='5' width='1' height='1'/><rect x='6' y='5' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='3' y='6' width='1' height='1'/><rect x='4' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='1' y='7' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='3' y='7' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='2' y='1' width='1' height='1'/><rect x='3' y='1' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='1' y='2' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='6' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='1' y='3' width='1' height='1'/><rect x='2' y='3' width='1' height='1'/><rect x='3' y='3' width='1' height='1'/><rect x='4' y='3' width='1' height='1'/><rect x='5' y='3' width='1' height='1'/><rect x='6' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='1' y='4' width='1' height='1'/><rect x='6' y='4' width='1' height='1'/><rect x='1' y='5' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='4' y='5' width='1' height='1'/><rect x='6' y='5' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='3' y='6' width='1' height='1'/><rect x='4' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='1' y='7' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='3' y='7' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/></svg>");}
.ico-players{-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='2' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='5' y='0' width='1' height='1'/><rect x='2' y='1' width='1' height='1'/><rect x='3' y='1' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='3' y='3' width='1' height='1'/><rect x='4' y='3' width='1' height='1'/><rect x='1' y='4' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='3' y='4' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='5' y='4' width='1' height='1'/><rect x='6' y='4' width='1' height='1'/><rect x='1' y='5' width='1' height='1'/><rect x='2' y='5' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='4' y='5' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='6' y='5' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='1' y='7' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='2' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='5' y='0' width='1' height='1'/><rect x='2' y='1' width='1' height='1'/><rect x='3' y='1' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='3' y='3' width='1' height='1'/><rect x='4' y='3' width='1' height='1'/><rect x='1' y='4' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='3' y='4' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='5' y='4' width='1' height='1'/><rect x='6' y='4' width='1' height='1'/><rect x='1' y='5' width='1' height='1'/><rect x='2' y='5' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='4' y='5' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='6' y='5' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='1' y='7' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/></svg>");}
.ico-console{-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='2' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='5' y='0' width='1' height='1'/><rect x='6' y='0' width='1' height='1'/><rect x='7' y='0' width='1' height='1'/><rect x='0' y='1' width='1' height='1'/><rect x='7' y='1' width='1' height='1'/><rect x='0' y='2' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='7' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='3' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='5' y='4' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='0' y='5' width='1' height='1'/><rect x='7' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='3' y='6' width='1' height='1'/><rect x='4' y='6' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='2' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='5' y='0' width='1' height='1'/><rect x='6' y='0' width='1' height='1'/><rect x='7' y='0' width='1' height='1'/><rect x='0' y='1' width='1' height='1'/><rect x='7' y='1' width='1' height='1'/><rect x='0' y='2' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='7' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='3' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='5' y='4' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='0' y='5' width='1' height='1'/><rect x='7' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='3' y='6' width='1' height='1'/><rect x='4' y='6' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/></svg>");}
.ico-levers{-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='6' y='0' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='3' y='3' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='3' y='4' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='1' y='5' width='1' height='1'/><rect x='2' y='5' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='4' y='5' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='3' y='6' width='1' height='1'/><rect x='4' y='6' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='6' y='0' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='3' y='3' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='3' y='4' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='1' y='5' width='1' height='1'/><rect x='2' y='5' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='4' y='5' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='3' y='6' width='1' height='1'/><rect x='4' y='6' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/></svg>");}
.ico-chest{-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='2' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='5' y='0' width='1' height='1'/><rect x='6' y='0' width='1' height='1'/><rect x='7' y='0' width='1' height='1'/><rect x='0' y='1' width='1' height='1'/><rect x='7' y='1' width='1' height='1'/><rect x='0' y='2' width='1' height='1'/><rect x='7' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='1' y='3' width='1' height='1'/><rect x='2' y='3' width='1' height='1'/><rect x='5' y='3' width='1' height='1'/><rect x='6' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='3' y='4' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='0' y='5' width='1' height='1'/><rect x='7' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/><rect x='0' y='7' width='1' height='1'/><rect x='1' y='7' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='3' y='7' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/><rect x='7' y='7' width='1' height='1'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='2' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='5' y='0' width='1' height='1'/><rect x='6' y='0' width='1' height='1'/><rect x='7' y='0' width='1' height='1'/><rect x='0' y='1' width='1' height='1'/><rect x='7' y='1' width='1' height='1'/><rect x='0' y='2' width='1' height='1'/><rect x='7' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='1' y='3' width='1' height='1'/><rect x='2' y='3' width='1' height='1'/><rect x='5' y='3' width='1' height='1'/><rect x='6' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='3' y='4' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='0' y='5' width='1' height='1'/><rect x='7' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/><rect x='0' y='7' width='1' height='1'/><rect x='1' y='7' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='3' y='7' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/><rect x='7' y='7' width='1' height='1'/></svg>");}
.ico-map{-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='6' y='0' width='1' height='1'/><rect x='7' y='0' width='1' height='1'/><rect x='0' y='1' width='1' height='1'/><rect x='2' y='1' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='7' y='1' width='1' height='1'/><rect x='0' y='2' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='7' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='1' y='3' width='1' height='1'/><rect x='4' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='5' y='4' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='0' y='5' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='6' y='5' width='1' height='1'/><rect x='7' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/><rect x='0' y='7' width='1' height='1'/><rect x='1' y='7' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='3' y='7' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/><rect x='7' y='7' width='1' height='1'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='6' y='0' width='1' height='1'/><rect x='7' y='0' width='1' height='1'/><rect x='0' y='1' width='1' height='1'/><rect x='2' y='1' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='7' y='1' width='1' height='1'/><rect x='0' y='2' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='7' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='1' y='3' width='1' height='1'/><rect x='4' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='5' y='4' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='0' y='5' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='6' y='5' width='1' height='1'/><rect x='7' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/><rect x='0' y='7' width='1' height='1'/><rect x='1' y='7' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='3' y='7' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/><rect x='7' y='7' width='1' height='1'/></svg>");}
.ico-copy{-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='2' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='0' y='1' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='0' y='2' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='6' y='2' width='1' height='1'/><rect x='7' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='2' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='1' y='4' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='2' y='5' width='1' height='1'/><rect x='7' y='5' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='3' y='7' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/><rect x='7' y='7' width='1' height='1'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='2' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='0' y='1' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='0' y='2' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='6' y='2' width='1' height='1'/><rect x='7' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='2' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='1' y='4' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='2' y='5' width='1' height='1'/><rect x='7' y='5' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='3' y='7' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/><rect x='7' y='7' width='1' height='1'/></svg>");}

.pending-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:16px auto 0;max-width:1160px;padding:12px 16px;border:3px solid var(--gold-2);color:#fff3cf;
  background:repeating-linear-gradient(-45deg,rgba(246,196,69,.16) 0 14px,rgba(246,196,69,.05) 14px 28px),#2a2416;width:calc(100% - 40px)}
.pending-bar strong{color:var(--gold)}

/* ---------- contenu ---------- */
.content{max-width:1160px;margin:0 auto;padding:22px 20px 110px}
.panel{display:none}
.panel.is-on{display:grid;gap:var(--gap)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)}
.reveal{animation:rise .55s cubic-bezier(.2,.8,.2,1) both}
.panel.is-on>.reveal:nth-child(2),.grid-2>.reveal:nth-child(1){animation-delay:.06s}
.panel.is-on>.reveal:nth-child(3),.grid-2>.reveal:nth-child(2){animation-delay:.12s}
.panel.is-on>.reveal:nth-child(4),.grid-2>.reveal:nth-child(3){animation-delay:.18s}
.grid-2>.reveal:nth-child(4){animation-delay:.24s}
@keyframes rise{from{opacity:0;transform:translateY(12px)}}

/* accueil */
.hero{display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center;padding:26px 28px;
  background:radial-gradient(420px 240px at 8% 50%,rgba(255,182,72,.14),transparent 70%),linear-gradient(180deg,var(--stone-2),var(--stone))}
.hero.is-off{background:linear-gradient(180deg,var(--stone-2),var(--stone))}
.hero-title{font-size:46px;line-height:1;margin:6px 0 6px}
.hero-sub{margin:0 0 16px;color:var(--muted)}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.hero-stats{display:grid;gap:10px;min-width:150px}
.stat{display:flex;align-items:baseline;gap:10px;padding:8px 14px;background:rgba(0,0,0,.25);border:2px solid var(--lo)}
.stat-num{font-size:30px;line-height:1;min-width:2.4ch}
.stat-label{color:var(--muted);font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.heads{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:12px}
.heads li{display:flex;align-items:center;gap:10px;padding:6px 12px 6px 6px;background:rgba(0,0,0,.25);border:2px solid var(--lo);font-weight:700}
.head{width:32px;height:32px;image-rendering:pixelated;border:2px solid var(--lo);background:#3a3d46;flex:none}
.empty{color:var(--faint);font-style:italic}
.xpbar{display:grid;grid-template-columns:repeat(20,1fr);gap:3px;height:18px;margin:6px 0 10px}
.xpbar i{background:#1b2a1f;border:2px solid var(--lo)}
.xpbar i.on{background:linear-gradient(180deg,#b6ff7a,#46d877 60%,#2a9d52);box-shadow:0 0 8px rgba(70,216,119,.45)}
.xpbar.warn i.on{background:linear-gradient(180deg,#ffe27a,#f6c445 60%,#b98b1a);box-shadow:0 0 8px rgba(246,196,69,.45)}
.xpbar.bad i.on{background:linear-gradient(180deg,#ff8a7a,#ff4433 60%,#a51d14);box-shadow:0 0 8px var(--red-glow)}
.links{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.link-tile{display:flex;align-items:center;gap:10px;padding:14px;font:700 15px var(--body);color:var(--text);text-decoration:none;cursor:pointer;background:rgba(0,0,0,.25);border:2px solid var(--lo);box-shadow:inset 2px 2px 0 rgba(255,255,255,.06);transition:background .15s,color .15s}
.link-tile:hover{background:rgba(255,68,51,.12);color:#fff}
.link-tile .ico{color:var(--amber)}

/* jauges */
.meter{margin:0 0 14px}
.meter-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 10px;font-size:14px;margin-bottom:6px}
.meter-top span:first-child{font-weight:700}
.meter-top span:last-child{color:var(--muted);font-family:var(--mono);font-size:13px}
.track{height:14px;background:#0e0f12;border:2px solid var(--lo);position:relative;overflow:hidden}
.fill{position:absolute;inset:0 auto 0 0;background:var(--green);transition:width .6s cubic-bezier(.2,.8,.2,1);
  -webkit-mask:repeating-linear-gradient(90deg,#000 0 10px,transparent 10px 12px);mask:repeating-linear-gradient(90deg,#000 0 10px,transparent 10px 12px)}
.fill.warn{background:var(--gold)} .fill.bad{background:var(--red)}
.ctable{width:100%;border-collapse:collapse;font-size:14px;margin-top:6px}
.ctable td{padding:7px 4px;border-top:2px dashed rgba(255,255,255,.06)}
.ctable td:nth-child(n+2){text-align:right;font-family:var(--mono);font-size:13px;color:var(--muted)}

/* joueurs */
.row{display:flex;gap:10px}
.row input{flex:1}
.player-list{list-style:none;margin:0;padding:0}
.player{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:12px 2px;border-top:2px dashed rgba(255,255,255,.06)}
.player:first-child{border-top:0}
.player .head{width:40px;height:40px}
.pname{font:600 19px var(--pixel)}
.badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:3px}
.badge{font:700 11px/1 var(--body);letter-spacing:.1em;text-transform:uppercase;padding:4px 6px;border:2px solid currentColor}
.badge.on{color:var(--green)} .badge.op{color:var(--gold)} .badge.ban{color:var(--red)} .badge.out{color:var(--faint)}
.pactions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}

/* console */
.console{padding:18px}
.console-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:10px}
.console-head .card-title{margin:0 auto 0 0}
.console-opts{display:flex;gap:18px;flex-wrap:wrap}
.check{display:flex;align-items:center;gap:8px;color:var(--muted);font-weight:600;cursor:pointer}
.check input{width:18px;height:18px;padding:0;accent-color:var(--red)}
.log{height:min(56vh,560px);overflow:auto;background:#0a0b0d;border:3px solid var(--lo);box-shadow:inset 0 0 40px rgba(0,0,0,.6);padding:12px 14px;font:13px/1.55 var(--mono);color:#cfcbc2;white-space:pre-wrap;word-break:break-word}
.log div{padding:0 0 1px}
.l-warn{color:var(--gold)} .l-err{color:#ff7a6c} .l-chat{color:var(--lapis)} .l-join{color:var(--green)} .l-noise{color:#5d5a55}
.l-cmd{color:var(--amber);font-weight:600;margin-top:6px} .l-out{color:#fff;border-left:3px solid var(--amber);padding-left:10px!important;margin-bottom:6px}
.log.quiet .l-noise{display:none}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.chips button{font:600 13px var(--body);color:var(--text);background:rgba(0,0,0,.3);border:2px solid var(--stone-3);padding:7px 11px;cursor:pointer}
.chips button:hover{border-color:var(--amber);color:var(--amber)}
.prompt{display:flex;align-items:center;gap:10px}
.prompt input{font-family:var(--mono);font-size:15px;flex:1}
.caret{color:var(--red);font-size:26px;line-height:1}

/* réglages : leviers */
.lever-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:11px 2px;border-top:2px dashed rgba(255,255,255,.06)}
.lever-row:first-child{border-top:0}
.lever-row strong{display:block;font-size:16px}
.lever-row strong code{font-family:var(--mono);font-size:15px;color:var(--amber)}
.lever-row p{margin:2px 0 0;color:var(--muted);font-size:14px}
.lever-row .meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.lever-row.locked{opacity:.55}
.levers-group{margin-top:14px}
.levers-group h4{margin:16px 0 4px;font:700 12px var(--body);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.lever{position:relative;width:58px;height:40px;border:0;background:none;cursor:pointer;flex:none;padding:0}
.lever:disabled{cursor:not-allowed}
.lever-plate{position:absolute;left:8px;right:8px;bottom:2px;height:14px;background:linear-gradient(180deg,#8b8f98,#5c6068);border:3px solid var(--lo);box-shadow:inset 2px 2px 0 rgba(255,255,255,.25);transition:box-shadow .2s}
.lever-stick{position:absolute;left:calc(50% - 4px);bottom:11px;width:8px;height:27px;background:linear-gradient(90deg,#a07a4b,#6b4c2c);border:2px solid var(--lo);transform-origin:50% 100%;transform:rotate(-40deg);transition:transform .26s cubic-bezier(.3,1.7,.5,1)}
.lever-stick::before{content:'';position:absolute;left:-2px;right:-2px;top:-2px;height:7px;background:#4a3520;border:2px solid var(--lo)}
.lever[aria-checked="true"] .lever-stick{transform:rotate(40deg)}
.lever[aria-checked="true"] .lever-plate{box-shadow:inset 2px 2px 0 rgba(255,255,255,.25),0 0 14px var(--red-glow)}
.lever::after{content:'';position:absolute;left:4px;right:4px;bottom:-4px;height:10px;background:radial-gradient(closest-side,rgba(255,68,51,.8),transparent);opacity:0;transition:opacity .25s}
.lever[aria-checked="true"]::after{opacity:1}
.lever.is-busy{animation:flicker .6s steps(2) infinite}
.num-rule{display:flex;align-items:center;gap:8px}
.num-rule input{width:84px;text-align:center;font-family:var(--mono)}
.segment{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:6px}
.segment button{font:600 18px var(--pixel);color:#d6d2c8;background:rgba(0,0,0,.28);border:3px solid var(--lo);padding:14px 8px;cursor:pointer;box-shadow:inset 2px 2px 0 rgba(255,255,255,.05)}
.segment button:hover{color:var(--text)}
.segment button[aria-checked="true"]{color:#fff;background:linear-gradient(180deg,#e8392a,#a51d14);box-shadow:inset 3px 3px 0 rgba(255,255,255,.28),inset -3px -3px 0 rgba(0,0,0,.3),0 0 18px var(--red-glow)}
.segment small{display:block;font:500 12px var(--body);margin-top:4px;opacity:.8}

/* sauvegardes */
.backup-list{list-style:none;margin:10px 0 0;padding:0}
.backup{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:12px 2px;border-top:2px dashed rgba(255,255,255,.06)}
.backup:first-child{border-top:0}
.backup .ico{width:30px;height:30px;color:#c08a3e}
.bdate{font:700 17px var(--body)}
.bmeta{color:var(--muted);font-size:14px}
.bactions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

/* tâche en cours */
.job{position:fixed;right:20px;bottom:20px;z-index:40;width:min(400px,calc(100vw - 40px));padding:16px 18px;animation:rise .3s both}
.job-head{display:flex;align-items:center;gap:12px}
.job-head strong{flex:1}
.job-log{list-style:none;margin:10px 0 0;padding:10px 12px;max-height:200px;overflow:auto;background:#0a0b0d;border:2px solid var(--lo);font:12.5px/1.6 var(--mono);color:#cfcbc2}
.job.ok{border-color:var(--green-2)} .job.error{border-color:var(--red-2)}
.spinner{width:18px;height:18px;background:var(--amber);animation:spin 1s steps(4) infinite;box-shadow:0 0 12px rgba(255,182,72,.6)}
.job.ok .spinner{animation:none;background:var(--green)} .job.error .spinner{animation:none;background:var(--red)}
@keyframes spin{to{transform:rotate(360deg)}}

/* fenêtre */
.modal{width:min(460px,calc(100vw - 32px));padding:24px;color:var(--text)}
.modal::backdrop{background:rgba(5,5,7,.7);backdrop-filter:blur(3px)}
.modal h3{font-size:24px;margin:0 0 10px}
.modal p{color:var(--muted);margin:0 0 14px}
.modal label{margin-bottom:16px}
.modal-actions{display:flex;justify-content:flex-end;gap:10px}

/* notifications */
.toasts{position:fixed;top:78px;right:20px;z-index:60;display:grid;gap:10px;width:min(360px,calc(100vw - 40px))}
.toast{padding:12px 14px;background:#17181c;border:3px solid var(--lo);border-left:6px solid var(--green);box-shadow:0 8px 24px rgba(0,0,0,.4);animation:rise .25s both;font-weight:600}
.toast.err{border-left-color:var(--red)}

/* ---------- téléphone ---------- */
@media (max-width:820px){
  .top{padding:10px 16px;gap:12px;backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(15,16,19,.97)}
  .auth-card h1{font-size:28px}
  .links{grid-template-columns:1fr}
  .console-head{gap:10px 18px}
  .console-opts{width:100%}
  .brand-name{font-size:19px}
  .tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;margin:0;gap:0;justify-content:space-around;background:rgba(12,13,16,.96);backdrop-filter:blur(10px);border-top:3px solid var(--lo);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
  .tab{flex-direction:column;gap:3px;font-size:11px;padding:7px 4px;flex:1;border-bottom:0;border-top:3px solid transparent}
  .tab.is-on{border-top-color:var(--red);background:linear-gradient(0deg,transparent,rgba(255,68,51,.14))}
  .tab .ico{width:22px;height:22px}
  .logout{margin-left:auto;padding:8px 10px}
  .content{padding:16px 12px 110px}
  .grid-2{grid-template-columns:1fr}
  .hero{grid-template-columns:auto 1fr;gap:18px;padding:20px}
  .hero .lamp.huge{width:64px;height:64px}
  .hero-title{font-size:34px}
  .hero-stats{grid-column:1/-1;grid-template-columns:repeat(3,1fr);min-width:0}
  .stat{flex-direction:column;gap:2px;align-items:flex-start;padding:8px 10px}
  .stat-num{font-size:24px}
  .hero-actions{grid-column:1/-1}
  .hero-main{display:contents}
  .hero-main>.eyebrow,.hero-main>.hero-title,.hero-main>.hero-sub{grid-column:2}
  .player{grid-template-columns:auto 1fr}
  .pactions{grid-column:1/-1;justify-content:flex-start}
  .backup{grid-template-columns:auto 1fr}
  .bactions{grid-column:1/-1;justify-content:flex-start}
  .job{right:12px;bottom:84px;width:calc(100vw - 24px)}
  .toasts{top:auto;bottom:150px;right:12px}
  .segment{grid-template-columns:repeat(2,1fr)}
  .pending-bar{width:calc(100% - 24px)}
}
@media (max-width:820px){
  .hero-main>.eyebrow{grid-row:1;align-self:end}
  .hero-main>.hero-title{grid-row:2}
  .hero-main>.hero-sub{grid-row:3;margin-bottom:0}
  .hero-lamp{grid-row:1/4}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
