  :root {
    --bg: #070707;
    --fg: #f2efe9;
    --dim: #8a847a;
    --accent: #f0a36b;
    --accent2: #ffc9a0;
    --line: color-mix(in srgb, var(--accent) 35%, transparent);
    --mono: "JetBrains Mono", "IBM Plex Mono", "Cascadia Mono", ui-monospace, Consolas, "Courier New", monospace;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; background: var(--bg); color: var(--fg); font-family: var(--mono); overflow: hidden; }
  button, input, select { font-family: var(--mono); }
  ::selection { background: var(--accent); color: #120a05; }

  #sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
  .frame { position: fixed; inset: 14px; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
  .cursor { display: inline-block; animation: blink 1.05s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  /* ============ LOGIN ============ */
  .num { position: fixed; top: 34px; left: 38px; font-size: 13px; font-weight: 700; letter-spacing: .08em; transition: opacity .4s; }
  .tag { position: fixed; top: 34px; right: 38px; font-size: 11px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; transition: opacity .4s; }
  body.in-app .num, body.in-app .tag { opacity: 0; }

  #login {
    position: fixed; left: clamp(24px, 6vw, 72px); bottom: clamp(28px, 8vh, 80px);
    display: flex; flex-direction: column; gap: 28px;
    max-width: min(440px, calc(100vw - 48px));
    transition: opacity .5s, transform .6s cubic-bezier(.6,0,.3,1), filter .5s;
  }
  #login.out { opacity: 0; transform: translateY(30px); filter: blur(6px); pointer-events: none; }
  #login h1 { display: flex; flex-direction: column; font-size: clamp(52px, 9vw, 104px); font-weight: 800; letter-spacing: -.02em; line-height: .9; white-space: nowrap; transform-origin: 50% 50%; will-change: transform; }
  #login h1 .kick { font-size: .19em; font-weight: 700; letter-spacing: .62em; color: var(--accent2); margin: 0 0 .32em .12em; }
  #login h1.glow { text-shadow: 0 0 34px rgba(240,163,107,.55); }
  #login.top-z { z-index: 60; }
  #login .btn { margin-top: 0; max-width: 360px; }
  .bname { display: flex; flex-direction: column; line-height: 1; }
  .bname small { font-size: 8px; letter-spacing: .55em; color: var(--accent2); font-weight: 700; margin-bottom: 3px; }
  .num { color: var(--accent2); }
  .pre { visibility: hidden; }
  /* animations du login */
  #login h1.gl { text-shadow: 3px 0 var(--accent), -3px 0 #6bd3f0; transform: skewX(-4deg); }
  #login .term.draw { animation: termIn .7s cubic-bezier(.6,0,.3,1) both; }
  @keyframes termIn { 0% { clip-path: inset(0 100% calc(100% - 2px) 0); } 50% { clip-path: inset(0 0 calc(100% - 2px) 0); } 100% { clip-path: inset(0 0 0 0); } }
  #login .ty { min-height: 1.7em; }
  #login .btn { position: relative; overflow: hidden; }
  #login .btn.show { animation: rv .6s cubic-bezier(.2,.7,.2,1) both; }
  #login .btn::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    animation: shine 3.2s 1.5s ease-in-out infinite;
  }
  @keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
  #login .btn[disabled]::after { display: none; }
  #login .foot.show, .num.show, .tag.show { animation: fadeIn 1s both; }
  .bars { color: var(--accent); }
  .ripple { position: fixed; border: 1px solid var(--accent); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); animation: ripple .9s ease-out forwards; }
  @keyframes ripple { from { width: 0; height: 0; opacity: .9; } to { width: 520px; height: 520px; opacity: 0; } }

  .term {
    font-size: 13px; line-height: 1.7; color: var(--dim);
    background: rgba(7,7,7,.55); backdrop-filter: blur(2px);
    border: 1px dashed var(--line); padding: 14px 16px 16px;
  }
  .p { color: var(--accent); }
  .ok { color: var(--accent2); }
  .hd { color: rgba(255,255,255,.28); margin-bottom: 6px; white-space: pre; overflow: hidden; }

  .btn {
    margin-top: 14px; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font: 700 14px/1 var(--mono); letter-spacing: .04em;
    color: #120a05; background: var(--accent);
    border: 0; padding: 15px 18px; cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
  }
  .btn:hover { background: var(--accent2); box-shadow: 0 0 0 1px var(--accent2), 0 0 28px color-mix(in srgb, var(--accent) 35%, transparent); }
  .btn:active { transform: translateY(1px); }
  .btn:focus-visible, .b2:focus-visible, .tg:focus-visible, .maj:focus-visible, .sub:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
  .btn[disabled] { cursor: progress; background: #3a2618; color: var(--accent2); box-shadow: none; }
  .btn svg { width: 20px; height: 20px; flex: none; }
  .foot { font-size: 11px; color: rgba(255,255,255,.3); letter-spacing: .06em; }

  /* ============ APP ============ */
  #app[hidden] { display: none; }
  .top {
    position: fixed; top: 26px; left: 38px; right: 38px; height: 44px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .brand { display: flex; align-items: baseline; gap: 18px; }
  .brand b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
  .brand b .cursor { color: var(--accent); }
  .sector { font-size: 11px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
  .sector span { color: var(--accent); }

  .user { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg); padding: 4px 0 4px 10px; border-left: 2px solid var(--accent); }
  .user .logout { padding: 2px 7px; font-size: 12px; line-height: 1.2; }
  .user-old {
    display: flex; align-items: center; gap: 12px;
    border: 1px dashed var(--line); background: rgba(7,7,7,.6); backdrop-filter: blur(3px);
    padding: 6px 8px 6px 6px;
  }
  .avatar {
    width: 32px; height: 32px; display: grid; place-items: center;
    font-weight: 800; font-size: 15px; color: #120a05;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
  }
  .who { font-size: 12px; line-height: 1.3; }
  .who small { display: block; font-size: 10px; color: var(--dim); letter-spacing: .08em; }
  .who small i { font-style: normal; color: #7fe0a8; }
  .logout { background: none; border: 1px solid rgba(255,255,255,.12); color: var(--dim); font-size: 11px; padding: 5px 7px; cursor: pointer; }
  .logout:hover { color: var(--fg); border-color: var(--accent); }

  .gone { display: none !important; }
  /* ---- hub : univers ---- */
  #hub {
    position: fixed; left: 38px; top: 104px; width: 380px; max-height: calc(100vh - 104px - 66px); overflow-y: auto; scrollbar-width: none;
    background: rgba(7,7,7,.64); backdrop-filter: blur(3px); border: 1px dashed var(--line); padding: 18px 18px 14px;
    transition: opacity .45s, transform .6s cubic-bezier(.6,0,.3,1), filter .45s;
  }
  #hub.out { opacity: 0; transform: translateX(-24px) scale(.98); filter: blur(6px); pointer-events: none; }
  #galList { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
  .gal {
    display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; width: 100%;
    background: rgba(255,255,255,.018); border: 1px dashed rgba(255,255,255,.11); color: var(--fg);
    padding: 8px 12px 8px 8px; cursor: pointer; text-align: left; font-family: var(--mono);
    transition: border-color .2s, background .2s, transform .2s;
  }
  .gal canvas { width: 64px; height: 40px; }
  .gal .gl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .gal b { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
  .gal b i { font-style: normal; font-weight: 400; color: var(--dim); font-size: 11px; margin-right: 8px; }
  .gal small { font-size: 10.5px; color: var(--dim); }
  .gal em { font-style: normal; font-size: 10.5px; }
  .t-amber { color: #f0a36b; } .t-cyan { color: #6bc8f0; } .t-violet { color: #aa82ff; }
  .gal .go { color: var(--accent); font-weight: 700; transition: transform .2s; }
  .gal:hover, .gal.hot { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); transform: translateX(4px); }
  .gal:hover .go, .gal.hot .go { transform: translateX(3px); }
  .gal.locked { opacity: .62; }
  .gal.locked .go { color: var(--dim); }
  .gal.locked:hover, .gal.locked.hot { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.03); }
  .hub-foot { margin-top: 12px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); }
  .back {
    display: flex; justify-content: space-between; width: 100%; margin-bottom: 8px;
    background: none; border: 1px solid rgba(255,255,255,.12); color: var(--dim); font: 11px var(--mono);
    padding: 5px 8px; cursor: pointer; letter-spacing: .06em; transition: color .2s, border-color .2s;
  }
  .back span { color: rgba(255,255,255,.25); }
  .back:hover { color: var(--accent); border-color: var(--accent); }
  #app.intro #hub { animation: panelIn .8s 1.4s cubic-bezier(.2,.7,.2,1) both; }
  #app.gin #nav { animation: slideIn .6s cubic-bezier(.2,.7,.2,1) both; }
  #app.gin #panel { animation: panelIn .8s .15s cubic-bezier(.2,.7,.2,1) both; }
  #app.gin .maj, #app.gin .sub, #app.gin .root, #app.gin .back { animation: slideIn .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.15s + var(--d, 0) * 45ms); }
  /* ---- menu : carte des secteurs ---- */
  #nav {
    position: fixed; left: 38px; top: 104px; width: 236px;
    max-height: calc(100vh - 104px - 66px); overflow-y: auto; scrollbar-width: none;
    background: rgba(7,7,7,.64); backdrop-filter: blur(3px);
    border: 1px dashed var(--line); padding: 10px 10px 12px;
    font-size: 12.5px;
  }
  .root { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 0 4px 8px; border-bottom: 1px dashed rgba(255,255,255,.08); margin-bottom: 6px; }
  .root b { color: var(--accent); font-weight: 400; }
  .sec { position: relative; margin-bottom: 4px; }
  .sec::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .sec.on::before { transform: scaleY(1); }
  .maj {
    display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 8px; width: 100%;
    background: none; border: 0; color: var(--fg); cursor: pointer; text-align: left; padding: 6px 6px 6px 8px;
    transition: background .25s;
  }
  .maj:hover { background: rgba(255,255,255,.03); }
  .sec.on .maj { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 85%); }
  .maj canvas { width: 56px; height: 40px; display: block; }
  .maj .lab { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .maj .lab b { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
  .maj .lab b i { font-style: normal; color: var(--dim); font-weight: 400; margin-right: 6px; }
  .sec.on .maj .lab b, .sec.on .maj .lab b i { color: var(--accent); }
  .maj .lab small { font-size: 9.5px; color: rgba(255,255,255,.3); letter-spacing: .04em; white-space: nowrap; }
  .maj kbd { font: 10px var(--mono); color: var(--dim); border: 1px solid rgba(255,255,255,.15); padding: 1px 5px; }
  .sec.on .maj kbd { color: var(--accent); border-color: var(--accent); }
  .subs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
  .sec.on .subs { grid-template-rows: 1fr; }
  .subs > div { overflow: hidden; margin-left: 35px; border-left: 1px dashed var(--line); }
  .sub {
    position: relative; display: block; width: 100%; text-align: left;
    background: none; border: 0; color: var(--dim); font-size: 12.5px; line-height: 1; cursor: pointer;
    padding: 8px 8px 8px 22px; transition: color .2s, padding .2s, background .2s;
  }
  .sub:first-child { margin-top: 4px; } .sub:last-child { margin-bottom: 6px; }
  .sub::before { content: "○"; position: absolute; left: -5px; top: 50%; transform: translateY(-50%); font-size: 9px; color: rgba(255,255,255,.3); background: #0b0b0b; line-height: 1; }
  .sub::after { content: ""; position: absolute; left: 6px; top: 50%; width: 10px; border-top: 1px dashed rgba(255,255,255,.15); }
  .sub:hover { color: var(--accent2); padding-left: 26px; }
  .sub.on { color: var(--fg); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent); }
  .sub.on::before { content: "●"; color: var(--accent); text-shadow: 0 0 8px var(--accent); }
  .sub.on::after { border-top: 1px solid var(--accent); }
  .sub .mk { color: var(--accent); margin-left: 6px; opacity: 0; transition: opacity .2s; }
  .sub.on .mk { opacity: 1; animation: blink 1.05s steps(1) infinite; }

  #panel {
    position: fixed; left: 300px; top: 104px; bottom: 66px;
    width: min(660px, calc(100vw - 340px));
    background: rgba(7,7,7,.64); backdrop-filter: blur(3px);
    border: 1px dashed var(--line);
    overflow: hidden;
    transition: opacity .35s, transform .5s cubic-bezier(.6,0,.3,1), filter .35s;
  }
  #panel .scroll { position: absolute; inset: 0; overflow-y: auto; padding: 20px 24px 28px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  #panel.warping { opacity: .0; transform: scale(.97); filter: blur(8px); }
  #panel.swap .scroll { opacity: 0; transform: translateX(-10px); transition: opacity .14s, transform .14s; }
  #panel::after {
    content: ""; position: absolute; left: 0; right: 0; height: 60px; top: -60px; pointer-events: none;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
  }
  #panel.sweep::after { animation: sweep .7s ease-out; }
  @keyframes sweep { from { top: -60px; } to { top: 100%; } }
  /* coins HUD */
  .corner { position: absolute; width: 12px; height: 12px; border: 2px solid var(--accent); pointer-events: none; }
  .c1 { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
  .c2 { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
  .c3 { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
  .c4 { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

  .warp-hud { display: none !important; }
  .warp-hud-old {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-size: 13px; color: var(--accent2); text-align: center; line-height: 1.9;
    letter-spacing: .08em; pointer-events: none; opacity: 0; transition: opacity .25s;
    text-shadow: 0 0 12px rgba(0,0,0,.9);
  }
  .warp-hud.on { opacity: 1; }
  .warp-hud .big { font-size: 26px; font-weight: 800; color: var(--fg); text-transform: uppercase; letter-spacing: .12em; }

  .statusbar { position: fixed; left: 38px; bottom: 32px; font-size: 11px; color: var(--dim); letter-spacing: .05em; }
  .statusbar .dot { color: #7fe0a8; }
  .statusbar .dot.off { color: var(--dim); }
  .launch { margin-left: 10px; background: none; border: 1px solid var(--accent); color: var(--accent2); font: 700 11px var(--mono); padding: 3px 9px; cursor: pointer; letter-spacing: .04em; }
  .launch:hover { background: var(--accent); color: #120a05; }
  .launch.on { border-color: rgba(255,255,255,.2); color: var(--dim); font-weight: 400; }
  .launch[disabled] { cursor: progress; opacity: .7; }
  /* réglages de l'univers : tableau des droits */
  .pgrid { overflow-x: auto; }
  .prow { display: grid; grid-template-columns: minmax(130px, 1.4fr) 112px repeat(6, 50px) 28px; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px dotted rgba(255,255,255,.07); font-size: 12px; min-width: 640px; }
  .prow.ph2 { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
  .prow.ph2 span:nth-child(n+3) { text-align: center; }
  .prow.me { background: color-mix(in srgb, var(--accent) 5%, transparent); }
  .prow.new { animation: rv .5s cubic-bezier(.2,.7,.2,1) both; }
  .prow select.mini { width: 100%; }
  .pu { display: flex; flex-direction: column; } .pu small { color: var(--dim); font-size: 10px; }
  .pc { background: none; border: 1px dashed rgba(255,255,255,.14); color: var(--dim); font: 11px var(--mono); padding: 4px 0; cursor: pointer; transition: background .15s, color .15s; }
  .pc.lv1 { color: var(--fg); border-color: rgba(255,255,255,.3); }
  .pc.lv2 { color: #120a05; background: var(--accent); border-color: var(--accent); font-weight: 700; }
  .pc[disabled] { cursor: default; opacity: .8; }
  .coords { position: fixed; right: 38px; bottom: 26px; font-size: 11px; color: var(--dim); letter-spacing: .03em; text-align: right; white-space: nowrap; line-height: 1.4; }
  /* titres sous les galaxies / planètes */
  #labels .glab {
    position: fixed; left: 0; top: 0; transform: translateX(-50%);
    background: none; border: 0; padding: 4px 8px; cursor: pointer; white-space: nowrap;
    font: 700 13px var(--mono); letter-spacing: .04em; color: var(--fg);
    text-shadow: 0 0 8px #000, 0 0 14px #000; transition: color .2s, opacity .35s;
  }
  #labels .glab .p { margin-right: 4px; }
  #labels .glab:hover, #labels .glab.hot { color: var(--accent2); }
  #labels .glab.hot .p { animation: blink 1.05s steps(1) infinite; }
  #labels .glab.lock { color: var(--dim); font-weight: 400; }
  #labels.hide .glab { opacity: 0; pointer-events: none; }
  .hint { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: .06em; white-space: nowrap; animation: fadeIn 1s both; }
  .coords b { color: var(--accent); font-weight: 400; }

  /* intro (après login) */
  #app.intro .top { animation: dropIn .7s .5s cubic-bezier(.2,.7,.2,1) both; }
  #app.intro .maj, #app.intro .sub, #app.intro .root { animation: slideIn .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.75s + var(--d, 0) * 45ms); }
  #app.intro #panel { animation: panelIn .8s .9s cubic-bezier(.2,.7,.2,1) both; }
  #app.intro .statusbar, #app.intro .coords { animation: fadeIn .8s 1.3s both; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-20px); } }
  @keyframes slideIn { from { opacity: 0; transform: translateX(-16px); } }
  @keyframes panelIn { 0% { opacity: 0; clip-path: inset(0 100% 100% 0); } 60% { opacity: 1; clip-path: inset(0 0 100% 0); } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
  @keyframes fadeIn { from { opacity: 0; } }

  /* contenu */
  .ph { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); letter-spacing: .06em; }
  .ph b { color: var(--accent); font-weight: 400; }
  h2.title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.01em; margin: 6px 0 4px; }
  h2.title .cursor { color: var(--accent); }
  .lead { font-size: 12px; color: var(--dim); margin-bottom: 18px; }
  .subtabs { display: none; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

  .rv { animation: rv .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 55ms); }
  @keyframes rv { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

  .card { border: 1px dashed rgba(255,255,255,.11); background: rgba(255,255,255,.018); padding: 12px 14px; margin-bottom: 12px; }
  .card h3 { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
  .card h3 .p { text-transform: none; letter-spacing: 0; }
  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
  .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
  .grid2 .card { margin-bottom: 0; }
  .tile { border: 1px dashed rgba(255,255,255,.11); padding: 10px 12px; background: rgba(255,255,255,.018); }
  .tile .k { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; }
  .tile .v { font-size: 26px; font-weight: 800; margin: 4px 0 2px; }
  .tile .s { font-size: 11px; color: #7fe0a8; }
  .tile .s.bad { color: #ff8a7a; }
  pre.ascii { font: 12px/1.15 var(--mono); color: var(--accent); white-space: pre; overflow-x: auto; }
  pre.ascii .dim { color: rgba(255,255,255,.18); }
  .rows { font-size: 12.5px; }
  .r { display: grid; grid-template-columns: 62px 86px 1fr auto; gap: 10px; padding: 6px 0; border-bottom: 1px dotted rgba(255,255,255,.07); align-items: center; }
  .r:last-child { border-bottom: 0; }
  .r .t { color: var(--dim); font-size: 11px; }
  .r.new { animation: rv .5s cubic-bezier(.2,.7,.2,1) both; background: color-mix(in srgb, var(--accent) 6%, transparent); }
  .lbl { font-size: 10.5px; padding: 1px 6px; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .08em; justify-self: start; }
  .l-warn { color: #ffd36b; } .l-mute { color: #b28cff; } .l-ban { color: #ff7a7a; } .l-kick { color: #ff9f5a; }
  .l-mod { color: var(--accent); } .l-mem { color: #7fe0a8; } .l-msg { color: #8fc7ff; } .l-voc { color: #b28cff; } .l-sec { color: #ff7a7a; }
  .l-timeout { color: #b28cff; } .l-rol { color: #ffd36b; } .l-sal { color: #8fc7ff; } .l-inv { color: #7fe0a8; }
  .cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; font-size: 12px; }
  .cmd { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px dotted rgba(255,255,255,.06); }
  .cmd b { color: var(--accent); font-weight: 700; flex: none; }
  .cmd span { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vis { background: none; border: 0; font: 12px var(--mono); color: var(--dim); cursor: pointer; white-space: pre; }
  .vis[aria-pressed="true"] { color: var(--accent); }
  select.mini { width: auto; flex: none; font-size: 11px; padding: 4px 6px; }
  .bar { color: var(--accent); white-space: pre; }
  .bar .dim { color: rgba(255,255,255,.15); }
  .kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 12.5px; }
  .kv span:nth-child(odd) { color: var(--dim); }
  .muted { color: var(--dim); font-size: 12px; }

  .tg {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
    background: none; border: 0; border-bottom: 1px dotted rgba(255,255,255,.07);
    color: var(--fg); font-size: 12.5px; padding: 8px 0; cursor: pointer; text-align: left;
  }
  .tg:last-child { border-bottom: 0; }
  .tg small { display: block; color: var(--dim); font-size: 11px; margin-top: 2px; }
  .tg .st { color: var(--dim); white-space: pre; flex: none; }
  .tg[aria-pressed="true"] .st { color: var(--accent); }
  .tg:hover .st { color: var(--accent2); }

  .b2 {
    background: none; border: 1px solid var(--line); color: var(--accent2);
    font-size: 12px; padding: 7px 11px; cursor: pointer; transition: background .15s, color .15s;
  }
  .b2:hover { background: var(--accent); color: #120a05; }
  .b2.solid { background: var(--accent); color: #120a05; border-color: var(--accent); font-weight: 700; }
  .b2.solid:hover { background: var(--accent2); }
  .b2.sm { padding: 3px 7px; font-size: 11px; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip { background: none; border: 1px dashed rgba(255,255,255,.18); color: var(--dim); font-size: 11.5px; padding: 4px 9px; cursor: pointer; }
  .chip.on, .chip:hover { color: #120a05; background: var(--accent); border-color: var(--accent); }
  .field { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; padding: 7px 0; font-size: 12.5px; }
  .field > span { color: var(--dim); }
  input[type=text], select {
    background: rgba(0,0,0,.35); border: 1px dashed var(--line); color: var(--fg);
    font-size: 12.5px; padding: 7px 9px; width: 100%; outline: none;
  }
  input[type=text]:focus, select:focus { border-style: solid; border-color: var(--accent); }
  select option { background: #111; }
  input[type=range] { width: 100%; accent-color: var(--accent); }
  .inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

  .console { height: 300px; overflow-y: auto; font: 12px/1.6 var(--mono); color: #cfc8bd; white-space: pre-wrap; margin-bottom: 8px; scrollbar-width: thin; }
  .console .t { color: rgba(255,255,255,.28); }
  .console .i { color: #8fc7ff; } .console .w { color: #ffd36b; } .console .e { color: #ff7a7a; } .console .s { color: #7fe0a8; }
  .prompt { display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--line); padding-top: 8px; font-size: 12.5px; }
  .prompt input { border: 0 !important; background: none !important; padding: 4px 0 !important; }

  .np { display: flex; gap: 16px; align-items: center; }
  .cover { width: 96px; height: 96px; flex: none; font: 9px/1 var(--mono); color: var(--accent); overflow: hidden; border: 1px dashed var(--line); display: grid; place-items: center; white-space: pre; }
  .np h4 { font-size: 20px; font-weight: 800; }
  .ctrl { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .swatch { width: 34px; height: 34px; border: 2px solid transparent; cursor: pointer; outline-offset: 2px; }
  .swatch.on { border-color: var(--fg); }
  .embed { border-left: 4px solid var(--accent); background: #1e1f22; padding: 10px 12px; font: 12.5px/1.5 system-ui, sans-serif; color: #dbdee1; max-width: 360px; }
  .embed b { color: #fff; }

  .toast {
    position: fixed; left: 50%; bottom: 60px; transform: translate(-50%, 20px);
    background: #0d0d0d; border: 1px solid var(--accent); color: var(--accent2);
    font-size: 12px; padding: 8px 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 10;
  }
  .toast.on { opacity: 1; transform: translate(-50%, 0); }

  /* ----- responsive ----- */
  @media (max-width: 900px) {
    .top { left: 18px; right: 18px; top: 22px; }
    .sector { display: none; }
    .who small { display: none; }
    #nav { left: 18px; right: 18px; width: auto; top: 72px; display: flex; gap: 6px; overflow-x: auto; padding: 4px; max-height: none; }
    #nav .root, #nav .subs, #nav kbd, #nav small { display: none; }
    .sec { margin: 0; flex: 1 0 auto; }
    .sec::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; transform: scaleX(0); }
    .sec.on::before { transform: scaleX(1); }
    .maj { grid-template-columns: 40px auto; padding: 2px 8px 2px 2px; gap: 4px; }
    .maj canvas { width: 40px; height: 28px; }
    #panel { left: 18px; right: 18px; width: auto; top: 122px; bottom: 50px; }
    #panel .scroll { padding: 16px 16px 24px; }
    .subtabs { display: flex; }
    .statusbar { left: 18px; bottom: 30px; }
    .coords { display: none; }
    #hub { left: 18px; right: 18px; width: auto; top: auto; bottom: 46px; max-height: 58vh; padding: 14px; }
    .field { grid-template-columns: 1fr; gap: 4px; }
    .r { grid-template-columns: 52px 74px 1fr; }
    .r > :nth-child(4) { grid-column: 1 / -1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .cursor { animation: none; }
    .rv, #app.intro * { animation-duration: .01s !important; animation-delay: 0s !important; }
  }

/* ---- mode réel : connexion par mot de passe, sélecteur de serveur ---- */
#pwForm { display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
#pwForm.show { animation: rv .6s cubic-bezier(.2,.7,.2,1) both; }
#pwForm .pwrow { display: flex; gap: 8px; }
#pwForm input { flex: 1; min-width: 0; background: rgba(0,0,0,.45); border: 1px dashed var(--line); color: var(--fg); font: 13px var(--mono); padding: 13px 12px; outline: none; }
#pwForm input:focus { border-style: solid; border-color: var(--accent); }
#pwForm .btn { width: auto; margin: 0; padding: 13px 16px; }
#pwErr { min-height: 1.3em; font-size: 11.5px; color: #ff8a7a; }
#authErr { min-height: 1.3em; font-size: 11.5px; color: #ff8a7a; margin-top: 10px; max-width: 420px; }
#authErr:empty { display: none; }
#pwForm.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.live-badge { font-size: 9px; letter-spacing: .14em; color: #7fe0a8; border: 1px solid currentColor; padding: 0 4px; margin-left: 6px; }

/* ---- sélecteur de serveur avec recherche ---- */
.top { z-index: 30; }
.gpick { position: relative; }
#gpBtn { display: flex; align-items: center; gap: 6px; max-width: 240px; background: rgba(0,0,0,.45); border: 1px dashed var(--line); color: var(--fg); font: 11px var(--mono); padding: 4px 8px; cursor: pointer; }
#gpBtn:hover, #gpBtn[aria-expanded="true"] { border-style: solid; border-color: var(--accent); }
#gpName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-c { color: var(--accent); }
.gp-pop { position: absolute; top: calc(100% + 6px); left: 0; width: 310px; background: rgba(9,9,9,.97); backdrop-filter: blur(4px); border: 1px solid var(--line); padding: 8px; z-index: 40; animation: rv .25s cubic-bezier(.2,.7,.2,1) both; }
.gp-pop input { width: 100%; background: rgba(0,0,0,.5); border: 1px dashed var(--line); color: var(--fg); font: 12px var(--mono); padding: 8px; outline: none; margin-bottom: 6px; }
.gp-pop input:focus { border-style: solid; border-color: var(--accent); }
#gpList { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.gp-i { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; background: none; border: 0; color: var(--fg); font: 12px var(--mono); padding: 6px 4px; text-align: left; cursor: pointer; }
.gp-i:hover, .gp-i:focus-visible { background: rgba(255,255,255,.05); outline: none; }
.gp-i.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.gp-i.on .gp-nm { color: var(--accent); }
.gp-ic { width: 22px; height: 22px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 700; font-size: 11px; object-fit: cover; }
.gp-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-m { color: var(--dim); font-size: 10px; }
.gp-n { font-size: 10px; color: var(--dim); margin-top: 6px; letter-spacing: .06em; }

/* ---- accès & rôles : une carte par compte ---- */
.ulist { display: flex; flex-direction: column; gap: 10px; }
.ucard { border: 1px dashed rgba(255,255,255,.12); background: rgba(255,255,255,.015); padding: 10px 12px; }
.ucard.me { border-color: var(--line); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ucard.new { animation: rv .5s cubic-bezier(.2,.7,.2,1) both; }
.uhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uav { width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 800; font-size: 13px; object-fit: cover; flex: none; }
.uid { flex: 1; min-width: 140px; display: flex; flex-direction: column; line-height: 1.3; }
.uid b { font-size: 13px; }
.uid small { font-size: 10.5px; color: var(--dim); word-break: break-all; }
.uhead .prole { width: auto; }
.urm { display: inline-flex; gap: 6px; align-items: center; }
.uzones { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.zg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.zgn { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); width: 100%; }
.zone { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.zone > span { color: var(--dim); min-width: 62px; }
.seg { display: inline-flex; border: 1px dashed rgba(255,255,255,.16); }
.sv { background: none; border: 0; color: var(--dim); font: 10.5px var(--mono); padding: 3px 7px; cursor: pointer; }
.sv + .sv { border-left: 1px dashed rgba(255,255,255,.12); }
.sv:hover:not([disabled]) { color: var(--fg); }
.sv.on.lv0 { color: var(--fg); background: rgba(255,255,255,.08); }
.sv.on.lv1 { color: #120a05; background: var(--accent2); }
.sv.on.lv2 { color: #120a05; background: var(--accent); font-weight: 700; }
.sv[disabled] { cursor: default; }
.usum { margin-top: 8px; font-size: 11px; color: var(--dim); }
.usum b { color: var(--accent2); font-weight: 400; }
/* pages visibles par compte : bouton « pages ▸ » + petits interrupteurs on/off */
.pgbtn { background: none; border: 1px dashed rgba(255,255,255,.16); color: var(--dim); font: 10.5px var(--mono); padding: 3px 8px; cursor: pointer; margin-left: 6px; }
.pgbtn:hover { color: var(--fg); border-color: var(--line); }
.pgbtn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.upages { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.1); display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 18px; }
.pz { display: flex; flex-direction: column; gap: 3px; }
.pz.off { opacity: .45; }
.pzh { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.pzh small { color: var(--dim); letter-spacing: .04em; text-transform: none; flex: 1; }
.pza { white-space: nowrap; background: none; border: 0; color: var(--dim); font: 10px var(--mono); padding: 1px 3px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.pza:hover:not([disabled]) { color: var(--accent2); }
.pza[disabled] { cursor: default; opacity: .5; text-decoration: none; }
.psw { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--fg); font: 11.5px var(--mono); padding: 3px 2px; cursor: pointer; text-align: left; }
.psw .tr { position: relative; flex: none; width: 26px; height: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); transition: background .18s, border-color .18s; }
.psw .tr::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; background: var(--dim); transition: transform .18s cubic-bezier(.2,.7,.2,1), background .18s, box-shadow .18s; }
.psw[aria-checked="true"] .tr { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.psw[aria-checked="true"] .tr::after { transform: translateX(12px); background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.psw[aria-checked="false"] .pl { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.psw:hover:not([disabled]) .tr { border-color: var(--accent2); }
.psw[disabled] { cursor: default; }
.psw[disabled] .tr { opacity: .5; }
.psw:focus-visible, .pza:focus-visible, .pgbtn:focus-visible, .sv:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }

/* ---- titres des astres : colonne à gauche (au lieu de sous chaque astre) ---- */
#labels { position: fixed; left: 38px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; z-index: 5; }
#labels .glab { position: static; transform: none; text-align: left; padding: 9px 14px 9px 10px; min-width: 150px; font-size: 14px; border-left: 2px solid transparent; }
#labels .glab:hover, #labels .glab.hot { border-left-color: var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent); }
@media (max-width: 900px) {
  #labels { left: 12px; top: auto; bottom: 64px; transform: none; }
  #labels .glab { padding: 12px 16px 12px 12px; font-size: 15px; }
}

/* ---- zone instable « ??? » : remise à zéro d'un serveur ---- */
.nk-warn { border: 1px dashed rgba(255,110,90,.55); background: rgba(255,70,60,.07); }
.nk-warn h3 { color: #ff9a7a; }
.nk-res.bad { border-color: rgba(255,110,90,.5); background: rgba(255,70,60,.06); }
.nk-res.ok { border-color: rgba(127,224,168,.4); }
.nk-t .v { color: #ff9a7a; }
.nk-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.nk-f { grid-template-columns: 1fr; gap: 6px; }
.nk-confirm { border-color: rgba(255,110,90,.4); }
.nk-go { border-color: #ff5a4a; color: #ff8a7a; }
.nk-go:not([disabled]) { background: #ff4a3a; color: #120a05; font-weight: 700; box-shadow: 0 0 18px rgba(255,70,60,.45); }
.nk-go:not([disabled]):hover { background: #ff7a5a; }
.nk-go[disabled] { opacity: .45; cursor: not-allowed; background: none; color: var(--dim); border-color: rgba(255,255,255,.15); }
.nukehud {
  position: fixed; left: 50%; bottom: 12%; transform: translateX(-50%); z-index: 40; margin: 0;
  padding: 12px 18px; font: 700 13px var(--mono, monospace); color: #ffb09a; background: rgba(20,4,10,.78);
  border: 1px dashed rgba(255,90,70,.6); white-space: pre; pointer-events: none; opacity: 0; transition: opacity .3s;
  text-shadow: 0 0 10px rgba(255,60,90,.6);
}
.nukehud.on { opacity: 1; }

/* ---- recherche de membres (autocomplétion) ---- */
.mac { position: relative; width: 100%; }
.mac input { width: 100%; }
.mac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: rgba(9,9,9,.97); border: 1px solid var(--line); max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.mac-i { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; width: 100%; background: none; border: 0; color: var(--fg); font: 12px var(--mono); padding: 6px 8px; text-align: left; cursor: pointer; }
.mac-i.on, .mac-i:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.mac-av { width: 24px; height: 24px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 700; font-size: 11px; object-fit: cover; }
.mac-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mac-n small { color: var(--dim); }
.mac-id { color: var(--dim); font-size: 10px; }
.mac-empty { padding: 8px; font-size: 11px; color: var(--dim); }

/* ---- zone instable : secteurs 02 structure · 03 sécurité · 04 bot ---- */
.card.zn { border-color: rgba(255,120,80,.3); background: rgba(255,70,50,.03); }
.card.zn h3 { color: #ffb19a; }
.zn-head { border-style: solid; border-left: 3px solid #ff6a4a; }
.zn-pv { margin-bottom: 10px; color: #ffb86b; }
.b2[disabled] { opacity: .45; cursor: not-allowed; background: none; color: var(--dim); border-color: rgba(255,255,255,.15); }
.zn-ta { width: 100%; background: rgba(0,0,0,.35); border: 1px dashed var(--line); color: var(--fg); font: 12.5px var(--mono); padding: 7px 9px; outline: none; resize: vertical; }
.zn-ta:focus { border-style: solid; border-color: var(--accent); }
.zr { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 5px 0; border-bottom: 1px dotted rgba(255,255,255,.07); font-size: 12.5px; }
.zr:last-child { border-bottom: 0; }
.zr-w { color: #ffcfa8; font-size: 11.5px; word-break: break-word; }
.zn-big { font-size: 34px; font-weight: 800; color: #ff9a7a; line-height: 1.1; }
.zn-gauge { font-size: 18px !important; letter-spacing: .04em; }
.zn-frise { font-size: 13px !important; line-height: 1.2 !important; }
.zn-hot { color: #ff6a5a; text-shadow: 0 0 8px rgba(255,80,60,.7); }
.zn-thr { color: #ffb86b; }
.zn-cks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; }
.zn-ck { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; cursor: pointer; }
.zn-ck input { accent-color: #ff6a4a; }
.zn-ck.off { opacity: .4; }
.zn-ck .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zn-g { border-bottom: 1px dotted rgba(255,255,255,.08); padding: 7px 0; }
.zn-g:last-child { border-bottom: 0; }
.zn-g1 { display: flex; align-items: center; gap: 10px; }
.zn-g1 .nm { flex: 1; min-width: 0; font-size: 12.5px; }
.zn-g1 small { display: block; color: var(--dim); font-size: 11px; margin-top: 2px; word-break: break-all; }
.zn-g2 { margin: 8px 0 2px 34px; display: grid; gap: 6px; }
.zn-g2 input { max-width: 320px; }
.zn-sw { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; background: rgba(0,0,0,.35); border: 1px dashed rgba(255,255,255,.2); color: var(--dim); font: 800 16px var(--mono); letter-spacing: .08em; cursor: pointer; text-transform: uppercase; transition: all .25s; text-align: left; }
.zn-sw:disabled { opacity: .5; cursor: not-allowed; }
.zn-knob { flex: none; width: 64px; height: 28px; border: 2px solid currentColor; position: relative; }
.zn-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: currentColor; transition: left .25s; }
.zn-sw.on { color: #ff5a4a; border-style: solid; border-color: #ff5a4a; background: rgba(255,70,60,.1); box-shadow: 0 0 22px rgba(255,70,60,.3); }
.zn-sw.on .zn-knob::after { left: 39px; }
body.zgame #app, body.zgame .frame, body.zgame .num { visibility: hidden; }
body.zgame { cursor: crosshair; touch-action: none; }

/* ---- galaxie « Révisions » : schéma ASCII du cœur, fiche, quiz ---- */
#panel.wide { width: min(1000px, calc(100vw - 340px)); }
@media (max-width: 900px) { #panel.wide { width: auto; } }
.hdg { position: relative; }
.hd-bar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 11px; margin-bottom: 8px; }
.hd-k { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.hd-k.dim { color: var(--dim); }
.hd-k .sw { display: inline-block; width: 10px; height: 10px; }
.sw.ven { background: rgb(96,164,255); } .sw.art { background: rgb(255,86,86); } .sw.cor { background: rgb(255,165,70); }
.hd-sp { flex: 1; }
.hd-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; }
.hd-in { position: relative; margin: 0 auto; }
.hd-in canvas { display: block; }
.hd-pins { position: absolute; inset: 0; pointer-events: none; }
.hd-pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; min-width: 22px; height: 22px; padding: 0 5px;
  background: #0d0b0a; border: 1px solid var(--accent); color: var(--accent2); font: 700 11px var(--mono); cursor: pointer; white-space: nowrap; box-shadow: 0 0 10px rgba(240,163,107,.35); }
.hd-pin b { font-weight: 800; }
.hd-pin.full { background: var(--accent); color: #120a05; }
.hd-pin.ok { background: #1f4a33; border-color: #7fe0a8; color: #d8ffe9; box-shadow: 0 0 10px rgba(127,224,168,.45); }
.hd-pin.bad { background: #4a1f1f; border-color: #ff7a7a; color: #ffe0dc; box-shadow: 0 0 10px rgba(255,122,122,.45); }
.hd-info { min-height: 3.2em; margin-top: 8px; padding: 8px 10px; border-left: 2px solid var(--accent); background: rgba(240,163,107,.05); font-size: 12.5px; line-height: 1.5; }
.hd-info.muted { border-left-color: rgba(255,255,255,.15); background: none; }
.hd-desc { margin-top: 3px; color: #d8d1c6; }
.hd-desc p + p { margin-top: 4px; }
.rev-dev { border-color: rgba(255,211,107,.45); } .rev-dev h3 { color: #ffd36b; }
.rev-warn { border-color: rgba(255,211,107,.4); background: rgba(255,211,107,.04); }
.rev-warn h3 { color: #ffd36b; }
.rev-warn ul, .rev-html ul { padding-left: 18px; } .rev-warn li, .rev-html li { margin: 3px 0; font-size: 12.5px; line-height: 1.55; }
.rev-html { font-size: 13px; line-height: 1.6; color: #e6e0d6; }
.rev-html p { margin: 0 0 8px; } .rev-html b { color: var(--accent2); }
.rev-flow { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.rev-flow .arr { color: var(--dim); font-size: 11px; }
.rev-st { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.rev-sti { text-align: left; background: none; border: 1px dashed rgba(255,255,255,.1); color: var(--fg); padding: 7px 9px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; }
.rev-sti small { flex-basis: 100%; color: var(--dim); font-size: 11px; line-height: 1.45; }
.rev-sti:hover, .rev-sti.on { border-color: var(--accent); background: rgba(240,163,107,.06); }
.rev-go { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
/* quiz */
.q-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--dim); margin-bottom: 10px; }
.q-head b { color: var(--accent); }
.q-q { font-size: 15px; line-height: 1.5; margin-bottom: 12px; color: var(--fg); }
.q-help { margin-bottom: 8px; }
.q-ch { display: flex; flex-direction: column; gap: 6px; }
.q-c { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; text-align: left; background: none; border: 1px dashed rgba(255,255,255,.14); color: var(--fg); font: 13px var(--mono); padding: 9px 11px; cursor: pointer; }
.q-c:hover:not([disabled]) { border-color: var(--accent); }
.q-c.on { border-style: solid; border-color: var(--accent); background: rgba(240,163,107,.08); }
.q-c .q-box { color: var(--accent); white-space: pre; }
.q-c .q-t { flex: 1; min-width: 60%; }
.q-c[disabled] { cursor: default; color: var(--fg); }
.q-c.good { border-color: rgba(127,224,168,.55); } .q-c.good .q-mk { color: #7fe0a8; }
.q-c.wrong { opacity: .78; } .q-c.wrong .q-mk { color: #ff7a7a; }
.q-c.trap { opacity: 1; border-style: solid; border-color: #ff7a7a; background: rgba(255,90,90,.08); }
.q-c.miss { border-style: solid; border-color: #ffd36b; }
.q-mk { font-weight: 800; }
.q-why { flex-basis: 100%; font-size: 11.5px; color: var(--dim); line-height: 1.5; padding-left: 34px; }
.q-fb { margin-top: 12px; }
.q-verdict { font-weight: 700; font-size: 13px; }
.q-verdict.ok { color: #7fe0a8; } .q-verdict.bad { color: #ff7a7a; }
.q-exp { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: #e0d9ce; border-left: 2px solid var(--line); padding-left: 10px; }
.q-exp p { margin: 0 0 6px; } .q-exp ul { padding-left: 18px; }
.q-act { margin-top: 14px; }
.q-bank { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 30px; position: sticky; top: -20px; z-index: 3; padding: 8px 0; background: rgba(9,8,8,.94); box-shadow: 0 6px 12px rgba(0,0,0,.6); }
.q-lab { background: rgba(0,0,0,.4); border: 1px solid var(--line); color: var(--accent2); font: 12px var(--mono); padding: 6px 10px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.q-lab.on { background: var(--accent); color: #120a05; border-color: var(--accent); }
.q-lab.drag { opacity: .35; }
.q-lab.intrus { cursor: default; color: var(--dim); border-style: dashed; }
.q-lab small { color: #ff8a7a; }
.q-ghost { position: fixed; z-index: 30; transform: translate(-50%, -130%); pointer-events: none; background: var(--accent); color: #120a05; font: 700 12px var(--mono); padding: 6px 10px; box-shadow: 0 0 18px rgba(240,163,107,.55); }
.q-corr { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 3px 12px; font-size: 12px; }
.q-corr .good { color: #7fe0a8; } .q-corr .wrong { color: #ff9a8a; }
.q-ord { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.q-oi { display: flex; align-items: center; gap: 8px; border: 1px dashed rgba(255,255,255,.14); padding: 6px 8px; font-size: 13px; background: rgba(0,0,0,.25); }
.q-oi .q-t { flex: 1; }
.q-oi .q-n { color: var(--dim); width: 2ch; text-align: right; }
.q-hdl { cursor: grab; color: var(--accent); touch-action: none; user-select: none; padding: 2px 4px; font-size: 15px; }
.q-oi.drag { border-style: solid; border-color: var(--accent); background: rgba(240,163,107,.1); }
.q-oi.good { border-color: rgba(127,224,168,.55); } .q-oi.good .q-mk { color: #7fe0a8; }
.q-oi.wrong { border-color: rgba(255,122,122,.55); } .q-oi.wrong .q-mk { color: #ff9a8a; font-size: 11.5px; }
.q-card.q-ok { animation: qOk .7s ease-out; }
.q-card.q-bad { animation: qBad .45s; }
@keyframes qOk { 0% { box-shadow: 0 0 0 rgba(127,224,168,0); } 30% { box-shadow: 0 0 26px rgba(127,224,168,.35); border-color: #7fe0a8; } 100% { box-shadow: 0 0 0 rgba(127,224,168,0); } }
@keyframes qBad { 20%, 60% { transform: translateX(-5px); border-color: #ff7a7a; } 40%, 80% { transform: translateX(5px); border-color: #ff7a7a; } }
.q-burst { position: fixed; z-index: 30; pointer-events: none; }
.q-burst i { position: absolute; left: 0; top: 0; font-style: normal; color: #ffd8a8; font-size: 13px; animation: qStar .85s ease-out forwards; text-shadow: 0 0 8px rgba(240,163,107,.8); }
@keyframes qStar { from { transform: translate(0, 0) scale(.6); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1.1); opacity: 0; } }
.q-end .q-score { font-size: 44px; font-weight: 800; color: var(--accent2); } .q-end .q-score span { font-size: 20px; color: var(--dim); }
.q-stars { margin: 4px 0 12px; font-size: 13px; } .q-stars .nb { color: #7fe0a8; }
.q-ri.good span:last-child { color: #7fe0a8; } .q-ri.wrong span:last-child { color: #ff9a8a; }
.tile-v { font-size: 24px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .q-card.q-ok, .q-card.q-bad { animation: none; } }
.q-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 10px; margin-top: 8px; }
.q-slot { text-align: left; background: none; border: 1px dashed rgba(255,255,255,.12); color: var(--fg); font: 12px var(--mono); padding: 5px 8px; cursor: pointer; }
.q-slot b { color: var(--accent); }
.q-slot.full { border-color: var(--line); }
.q-slot .x { color: var(--dim); margin-left: 4px; }
.q-slot:hover .x { color: #ff8a7a; }

/* schéma du cœur : pastille « myocarde » de la légende */
.sw.myo { background: rgb(240,140,140); }

/* bouton de langue FR · EN (page de connexion), discret */
#langSw { position: fixed; left: 18px; bottom: 6px; z-index: 60; font-size: 11px; opacity: .55; transition: opacity .2s; }
#langSw:hover { opacity: 1; }
