:root {
  --bg: #0a0b0a;
  --bg-2: #11120f;
  --panel: #151713;
  --panel-2: #1d1f1a;
  --line: #292c25;
  --line-2: #393d32;
  --fg: #f4f7ef;
  --dim: #a2a89a;
  --faint: #666e45;
  --bnb: #ccff00;
  --bnb-2: #daff44;
  --bnb-dim: #596e03;
  --glow: rgba(198, 247, 0, .35);
  --ok: #7ee08a;
  --err: #ff7a6b;
  --radius: 18px;
  --font: "Nunito", system-ui, sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.bnb { color: var(--bnb); }
::selection { background: var(--bnb); color: #171a14; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 11, 10, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .shell { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 0 18px var(--glow); }
.brand b { color: var(--bnb); font-weight: 600; }
.nav { display: flex; gap: 20px; flex: 1; }
.nav a { color: var(--dim); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--fg); }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px; padding: 7px 14px; font-size: 13px; white-space: nowrap; }
.ca-chip .k { color: var(--bnb); font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.ca-chip .v { font-family: var(--mono); color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 14px; border: 1px solid var(--line-2); background: var(--panel); transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--bnb-dim); }
.btn.primary { background: linear-gradient(180deg, var(--bnb-2), var(--bnb)); color: #171a14; border-color: transparent; box-shadow: 0 6px 24px rgba(198, 247, 0, .28); }
.btn.primary:hover { box-shadow: 0 8px 30px rgba(198, 247, 0, .45); }
.btn.lg { padding: 14px 26px; font-size: 15px; }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- preview banner ---------- */
.preview-note { background: repeating-linear-gradient(135deg, #252a1f 0 12px, #20241a 12px 24px); color: var(--bnb-2); text-align: center; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-bottom: 1px solid var(--bnb-dim); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 26px 0 10px; }
.hero-art { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(198, 247, 0, .06) inset; aspect-ratio: 3 / 1; background: #10120e; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 10, 0) 45%, rgba(10, 11, 10, .55) 78%, rgba(10, 11, 10, .92)); pointer-events: none; }
.hero-copy { position: relative; margin-top: -110px; padding: 0 34px; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; margin: 0 0 12px; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.hero h1 em { font-style: normal; color: var(--bnb); }
.hero p.lead { color: #e1e6da; max-width: 640px; margin: 0; font-size: 16.5px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.stat .l { color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.stat .v { font-family: var(--display); font-size: 26px; font-weight: 600; margin-top: 2px; }
.stat .v small { font-size: 14px; color: var(--dim); font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: 70px 0 0; }
.eyebrow { color: var(--bnb); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.section h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); margin: 6px 0 10px; line-height: 1.1; }
.section .sub { color: var(--dim); max-width: 680px; margin: 0 0 26px; font-size: 16px; }

/* ---------- the tower ---------- */
.tower { position: relative; border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden; background: #0c0d0b; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.tower-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #171914, #11120f); }
.tower-top .sign { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--bnb-2); text-shadow: 0 0 14px var(--glow); border: 1.5px solid rgba(218, 255, 68, .55); border-radius: 10px; padding: 4px 12px; box-shadow: 0 0 18px rgba(198, 247, 0, .25), inset 0 0 10px rgba(198, 247, 0, .15); }
.tower-top .legend { display: flex; gap: 14px; color: var(--faint); font-size: 12px; font-weight: 700; flex-wrap: wrap; }
.floor { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); border-bottom: 1px solid var(--line); min-height: 210px; }
.floor:last-child { border-bottom: 0; }
.floor-label { position: relative; z-index: 2; padding: 20px 18px; border-right: 1px solid var(--line); background: rgba(12, 13, 11, .88); display: flex; flex-direction: column; gap: 4px; }
.floor-label .n { font-family: var(--mono); color: var(--faint); font-size: 12px; }
.floor-label .t { font-family: var(--display); font-size: 19px; font-weight: 600; }
.floor-label .r { color: var(--dim); font-size: 12.5px; line-height: 1.35; }
.floor-label .c { margin-top: auto; color: var(--bnb); font-weight: 800; font-size: 12px; }
.floor-room { position: relative; overflow: hidden; padding: 26px 22px 18px; }
/* fenetres : skyline de nuit */
.floor-room::before { content: ""; position: absolute; inset: 0 0 46% 0; background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(231, 255, 134, .55), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(231, 255, 134, .45), transparent 60%),
    linear-gradient(180deg, #0a0c16 0%, #141327 70%, #21241c 100%);
  opacity: .95; }
.floor-room::after { content: ""; position: absolute; inset: 0 0 46% 0; background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(0, 0, 0, .55) 118px 124px),
    linear-gradient(0deg, rgba(198, 247, 0, .08), transparent 40%);
  pointer-events: none; }
.skyline { position: absolute; left: 0; right: 0; bottom: 46%; height: 70px; opacity: .9; pointer-events: none; }
.floor-room .ground { position: absolute; inset: 54% 0 0 0; background: linear-gradient(180deg, #1a1c17, #11120f); border-top: 1px solid #353a2f; }
.floor-room .ground::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(198, 247, 0, .5), transparent); filter: blur(1px); }
.desks { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: flex-end; }
.empty-seat { position: relative; z-index: 2; color: var(--faint); font-size: 13px; font-weight: 700; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 18px 20px; align-self: center; }

.floor.f-exec .floor-room { padding-top: 44px; }
.floor.f-exec .floor-room::before { background:
    radial-gradient(60% 90% at 50% 0%, rgba(198, 247, 0, .22), transparent 70%),
    linear-gradient(180deg, #120d1c 0%, #1d1530 60%, #282c21 100%); }
.floor.f-exec .ground { background: linear-gradient(180deg, #262a20, #141611); }
.floor.f-exec .floor-label .t { color: var(--bnb-2); }

/* ---------- desk ---------- */
.desk { position: relative; width: 150px; height: 150px; border: 0; background: none; padding: 0; text-align: center; transition: transform .18s; }
.desk:hover { transform: translateY(-4px); }
.desk:focus-visible { outline: 2px solid var(--bnb); outline-offset: 6px; border-radius: 14px; }
.desk .mascot { position: absolute; left: 50%; bottom: 52px; width: 78px; transform: translateX(-50%); animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.desk.tier-2 .mascot { width: 84px; }
.desk.tier-3 .mascot { width: 90px; }
.desk.tier-4 .mascot { width: 98px; bottom: 58px; }
.desk .ring { position: absolute; left: 50%; bottom: 64px; width: 112px; height: 112px; transform: translateX(-50%); border-radius: 50%; border: 5px solid rgba(235, 255, 155, .85); box-shadow: 0 0 26px rgba(218, 255, 68, .7), inset 0 0 18px rgba(218, 255, 68, .5); display: none; }
.desk.tier-4 .ring { display: block; }
.desk .table { position: absolute; left: 6px; right: 6px; bottom: 26px; height: 30px; border-radius: 9px; background: linear-gradient(180deg, #272a23, #151713); border: 1px solid #393d32; box-shadow: 0 8px 18px rgba(0, 0, 0, .55); }
.desk .table::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -3px; height: 3px; border-radius: 3px; background: var(--bnb); box-shadow: 0 0 12px var(--bnb); opacity: .75; }
.desk.tier-4 .table { background: linear-gradient(180deg, #dffd67, #99be08); border-color: #e6ff84; }
.desk .monitors { position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%); display: flex; gap: 4px; z-index: 3; }
.desk .mon { width: 30px; height: 22px; border-radius: 4px; background: #0c0d0c; border: 1.5px solid #373a33; position: relative; box-shadow: 0 0 10px rgba(198, 247, 0, .18); }
.desk .mon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg); border: 1.5px solid var(--bnb); box-shadow: 0 0 6px var(--bnb); }
.desk .mon::before { content: ""; position: absolute; left: 50%; bottom: -6px; width: 3px; height: 5px; transform: translateX(-50%); background: #373a33; }
.desk .plate { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.desk .plate b { font-family: var(--display); font-weight: 600; font-size: 14px; }
.desk .plate span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.desk .lamp { position: absolute; right: 2px; bottom: 54px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #f8ffed, #c6f700 60%, transparent 70%); box-shadow: 0 0 16px #c6f700; display: none; }
.desk.tier-3 .lamp, .desk.tier-4 .lamp { display: block; }
.desk .plant { position: absolute; left: 4px; bottom: 54px; width: 16px; height: 20px; display: none; }
.desk.tier-2 .plant, .desk.tier-3 .plant, .desk.tier-4 .plant { display: block; }
.desk .zz { position: absolute; right: 26px; top: 6px; font-family: var(--display); color: var(--dim); font-size: 14px; display: none; animation: zz 2.4s ease-in-out infinite; }
.desk.asleep .zz { display: block; }
.desk.asleep .mascot { animation-duration: 6s; filter: grayscale(.35) brightness(.8) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }
@keyframes zz { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }
.desk .bubble { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); background: var(--fg); color: #171a14; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 12px; white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 6; }
.desk .bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--fg); transform: translateX(-50%) rotate(45deg); }
.desk .bubble.on { opacity: 1; transform: translate(-50%, -112%); }

/* ---------- feed ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: hidden; }
.feed li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); animation: slidein .35s ease; }
.feed li .who { width: 34px; height: 34px; }
.feed li .txt { font-size: 13.5px; }
.feed li .txt b { font-family: var(--display); font-weight: 600; }
.feed li .meta { color: var(--faint); font-size: 11.5px; font-weight: 700; }
.kind { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; margin-right: 4px; background: #282b23; color: var(--bnb-2); }
.kind.x { background: #13202b; color: #8fd0ff; }
.kind.up { background: #142614; color: var(--ok); }
.kind.think { background: #241a2e; color: #d2a8ff; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- career ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rung { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow: hidden; }
.rung .lvl { font-family: var(--mono); color: var(--faint); font-size: 12px; }
.rung h4 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 4px 0 2px; }
.rung .range { color: var(--bnb); font-weight: 800; font-size: 12.5px; }
.rung p { color: var(--dim); font-size: 13.5px; margin: 10px 0 0; }
.rung .art { height: 90px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
.rung .art svg { width: 70px; }
.rung.gold { border-color: var(--bnb-dim); background: linear-gradient(180deg, rgba(198, 247, 0, .1), var(--panel) 60%); }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tool b { font-family: var(--display); font-weight: 600; font-size: 16px; display: block; }
.tool span { color: var(--dim); font-size: 13.5px; }
.tool .lock { float: right; font-size: 10.5px; font-weight: 800; color: var(--bnb); border: 1px solid var(--bnb-dim); border-radius: 6px; padding: 0 6px; }

/* ---------- split ---------- */
.split-bar { display: flex; height: 56px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); margin: 6px 0 18px; }
.split-bar div { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 18px; }
.split-bar .s1 { flex: 45; background: linear-gradient(180deg, #daff44, #c6f700); color: #171a14; }
.split-bar .s2 { flex: 45; background: linear-gradient(180deg, #343a2c, #262a20); color: var(--bnb-2); }
.split-bar .s3 { flex: 10; background: #181a16; color: var(--dim); font-size: 14px; }
.split-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.split-legend .card p { margin: 0; color: var(--dim); font-size: 14px; }
.split-legend .card b { font-family: var(--display); font-weight: 600; font-size: 17px; display: block; margin-bottom: 4px; }

.brains { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.brain { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 800; }
.brain i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 12px currentColor; background: currentColor; flex-shrink: 0; }

.cta-final { margin: 80px 0 0; border-radius: 28px; border: 1px solid var(--bnb-dim); background: radial-gradient(120% 140% at 50% 0%, rgba(198, 247, 0, .16), transparent 60%), var(--panel); padding: 46px 30px; text-align: center; }
.cta-final h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 42px); margin: 0 0 10px; }
.cta-final p { color: var(--dim); margin: 0 0 22px; }

footer { margin-top: 70px; border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--faint); font-size: 13px; }
footer .shell { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer a:hover { color: var(--fg); }

/* ---------- drawer (fiche agent) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg-2); border-left: 1px solid var(--line-2); z-index: 61; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 22px; }
.drawer.on { transform: none; }
.drawer .close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); font-size: 18px; }
.d-head { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.d-head .av { width: 92px; height: 92px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #282c22, #11120f); border: 1px solid var(--line-2); display: grid; place-items: center; }
.d-head .av svg { width: 74px; }
.d-head h3 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line-2); background: var(--panel); }
.chip.gold { color: #171a14; background: var(--bnb); border-color: var(--bnb); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.kv > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; }
.kv .l { color: var(--faint); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.kv .v { font-family: var(--display); font-weight: 600; font-size: 19px; }
.progress { height: 12px; border-radius: 999px; background: #21241d; border: 1px solid var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #99be08, var(--bnb-2)); box-shadow: 0 0 14px var(--glow); }
.d-sec { margin-top: 18px; }
.d-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 8px; }
.directive { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: #e1e6da; font-size: 14px; font-style: italic; }
.d-log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.d-log li { font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.d-log li .meta { color: var(--faint); font-size: 11px; font-weight: 700; display: block; }

/* ---------- modal launch ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.on { display: flex; }
.modal > .scrim { z-index: 0; }
.modal .box { z-index: 1; position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px; padding: 24px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.modal h3 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 4px; }
.field { margin-top: 14px; }
.field label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.field .hint { color: var(--faint); font-size: 12px; margin-top: 4px; }
.input, .textarea, .select { width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; color: var(--fg); font: inherit; outline: none; }
.input:focus, .textarea:focus { border-color: var(--bnb); }
.textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brain-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.brain-pick button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 800; font-size: 12.5px; }
.brain-pick button.on { border-color: var(--bnb); background: rgba(198, 247, 0, .1); }
.brain-pick i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex-shrink: 0; }
.tax-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.tax-pick button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 800; font-size: 13px; }
.tax-pick button.on { border-color: var(--bnb); color: var(--bnb); background: rgba(198, 247, 0, .1); }
.notice { margin-top: 16px; border-left: 3px solid var(--bnb); background: rgba(198, 247, 0, .06); border-radius: 0 12px 12px 0; padding: 10px 14px; color: var(--dim); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { grid-template-columns: 1fr; margin-top: -70px; padding: 0 18px; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .topbar .shell { gap: 10px; justify-content: space-between; }
  .floor { grid-template-columns: 1fr; }
  .floor-label { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 16px; }
  .floor-label .c { margin: 0 0 0 auto; }
  .floor-label .r { width: 100%; }
  .hero-art { aspect-ratio: 16 / 9; }
  .hero-art img { object-position: 30% center; }
  .split-legend { grid-template-columns: 1fr; }
  .desk { width: 128px; height: 140px; }
}
@media (max-width: 520px) {
  .shell { padding: 0 16px; }
  .brand span { display: none; }
  .ca-chip .k { display: none; }
  .ladder { grid-template-columns: 1fr; }
  .brain-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2 { grid-template-columns: 1fr; }
  .hero-copy { margin-top: -40px; }
  .stat .v { font-size: 21px; }
}
.tower-top .sign { white-space: nowrap; }
@media (max-width: 760px) {
  .desks { flex-wrap: nowrap; overflow-x: auto; overflow-y: visible; padding: 34px 4px 4px; margin-top: -34px; scrollbar-width: none; }
  .desks::-webkit-scrollbar { display: none; }
  .desk { flex-shrink: 0; }
  .tower-top .legend span + span { display: none; }
}

/* ---------- office 3D ---------- */
.office-wrap { position: relative; height: min(72vh, 720px); min-height: 460px; border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden; background: #07060a; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); touch-action: none; }
.office-canvas, .office-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.office-canvas canvas:active { cursor: grabbing; }
.office-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag3d { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 0; background: rgba(14, 15, 13, .82); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px 9px; line-height: 1.2; white-space: nowrap; transition: opacity .2s; }
.tag3d b { font-family: var(--display); font-weight: 600; font-size: 12.5px; }
.tag3d span { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.tag3d.gold { border-color: var(--bnb); box-shadow: 0 0 14px rgba(198, 247, 0, .35); }
.tag3d.gold b { color: var(--bnb-2); }
.office-hud { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.sign-mini { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--bnb-2); border: 1.5px solid rgba(218, 255, 68, .55); border-radius: 10px; padding: 3px 10px; background: rgba(9, 10, 8, .6); text-shadow: 0 0 12px var(--glow); white-space: nowrap; }
.office-hud .hint { color: var(--dim); font-size: 12px; font-weight: 700; background: rgba(9, 10, 8, .6); border-radius: 999px; padding: 4px 12px; }
.office-legend { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 6px 12px; flex-wrap: wrap; pointer-events: none; font-size: 11.5px; font-weight: 700; color: var(--dim); }
.office-legend span { background: rgba(9, 10, 8, .66); border-radius: 999px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 6px; }
.office-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.office-legend .z4 { background: var(--bnb); box-shadow: 0 0 8px var(--bnb); } .office-legend .z3 { background: #cae756; } .office-legend .z2 { background: #98a859; } .office-legend .z1 { background: #666e45; }
.office-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: rgba(11, 12, 10, .8); border: 1px solid var(--line-2); border-radius: 20px; padding: 20px 24px; backdrop-filter: blur(6px); }
.office-empty.on { display: flex; }
.office-empty b { font-family: var(--display); font-weight: 600; font-size: 20px; }
.office-empty span { color: var(--dim); font-size: 14px; margin-bottom: 6px; }
.office-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--dim); padding: 20px; text-align: center; }
.office-fallback.on { display: flex; }
@media (max-width: 760px) { .office-wrap { height: 70vh; min-height: 420px; border-radius: 20px; } .office-hud .hint { display: none; } .office-legend span:nth-child(n+3) { display: none; } }

/* ---------- entree du jeu ---------- */
.enter-card { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); min-height: 300px; display: flex; align-items: flex-end; }
.enter-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.enter-copy { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 560px; }
.enter-copy b { font-family: var(--display); font-weight: 600; font-size: 28px; }
.enter-copy span { color: #e1e6da; margin-bottom: 8px; }

/* ---------- le jeu ---------- */
body.in-game { overflow: hidden; }
.g-root { position: fixed; inset: 0; z-index: 50; background: #0a0a09; }
.g-root[hidden] { display: none; }
.g-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.g-ui { position: absolute; inset: 0; pointer-events: none; font-family: var(--display); }
.g-ui > * { pointer-events: auto; }
.g-ui .g-tags { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.g-top { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 8px; align-items: center; padding: 10px 14px; pointer-events: none; background: linear-gradient(180deg, rgba(7, 8, 7, .92), rgba(7, 8, 7, .6) 70%, transparent); }
.g-navbrand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; margin-right: 10px; }
.g-navbrand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 16px var(--glow); }
.g-navbrand b { color: var(--bnb); font-weight: 600; }
.g-links { display: flex; gap: 4px; }
.g-links a { padding: 8px 12px; border-radius: 999px; color: var(--dim); font-family: var(--display); font-weight: 600; font-size: 14.5px; }
.g-links a:hover { color: var(--fg); background: rgba(198, 247, 0, .08); }
@media (max-width: 1180px) { .g-top .g-clock, .g-top .g-count { display: none; } }
@media (max-width: 980px) { .g-links { display: none; } }
.g-top > * { pointer-events: auto; }
.g-spacer { flex: 1; }
.g-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(18, 20, 16, .86); color: var(--fg); border: 1px solid rgba(198, 247, 0, .25); font-family: var(--display); font-weight: 600; font-size: 15px; white-space: nowrap; backdrop-filter: blur(6px); }
.g-brand { background: linear-gradient(180deg, var(--bnb-2), var(--bnb)); color: #171a14; border-color: transparent; }
.g-btn { cursor: pointer; transition: transform .1s; }
.g-btn:hover { transform: translateY(-1px); border-color: var(--bnb); }
.g-primary { background: linear-gradient(180deg, var(--bnb-2), var(--bnb)); color: #171a14; border-color: transparent; }
.g-ca { font-family: var(--mono); font-size: 13px; }
.g-tag { position: absolute; left: 0; top: 0; background: rgba(18, 20, 16, .8); color: var(--fg); border-radius: 10px; padding: 3px 9px; font-weight: 600; font-size: 13px; white-space: nowrap; transition: opacity .2s; border: 1px solid var(--line-2); }
.g-tag.gold { border-color: var(--bnb); color: var(--bnb-2); }
.g-tag.g-me { background: var(--fg); color: #171a14; border-color: transparent; }
.g-prompt { position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: #fbfff4; color: #434a3a; border-radius: 999px; padding: 9px 18px 9px 9px; font-weight: 600; font-size: 16px; box-shadow: 0 6px 0 rgba(102, 124, 15, .25), 0 14px 30px rgba(0, 0, 0, .35); white-space: nowrap; }
.g-prompt kbd { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; background: #171a14; color: var(--bnb-2); font: 600 15px var(--display); }
.g-prompt[hidden], .g-dlg[hidden], .g-panel[hidden], .g-stick[hidden] { display: none; }
.g-dlg { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: min(640px, calc(100% - 28px)); background: rgba(18, 20, 16, .94); border: 1px solid rgba(198, 247, 0, .35); border-radius: 26px; padding: 26px 26px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.g-dlg .g-who { position: absolute; top: -16px; left: 26px; background: linear-gradient(180deg, var(--bnb-2), var(--bnb)); color: #171a14; border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 15px; transform: rotate(-3deg); }
.g-dlg p { margin: 4px 0 14px; font-size: 19px; line-height: 1.4; }
.g-help { position: absolute; left: 14px; bottom: 12px; margin: 0; max-width: 360px; color: #d2d9c9; font-family: var(--font); font-size: 12.5px; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); pointer-events: none; }
.g-panel { position: absolute; right: 14px; top: 62px; width: min(340px, calc(100% - 28px)); max-height: calc(100% - 80px); overflow-y: auto; background: rgba(18, 20, 16, .95); border: 1px solid rgba(198, 247, 0, .3); border-radius: 22px; padding: 18px; }
.g-panel h3 { margin: 0 0 10px; font-weight: 600; font-size: 21px; }
.g-row { display: block; margin-top: 10px; }
.g-row > span { display: block; color: var(--dim); font-family: var(--font); font-size: 12.5px; font-weight: 800; margin-bottom: 6px; }
.g-sw { display: flex; flex-wrap: wrap; gap: 7px; }
.g-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); cursor: pointer; }
.g-dot.on { outline: 3px solid var(--bnb); outline-offset: 2px; }
.g-chip { border-radius: 999px; padding: 6px 12px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--fg); font: 600 13px var(--display); cursor: pointer; }
.g-chip.on { background: var(--bnb); color: #171a14; border-color: var(--bnb); }
.g-input { width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; color: var(--fg); font: 600 15px var(--font); outline: none; }
.g-input:focus { border-color: var(--bnb); }
.g-actions { display: flex; gap: 8px; margin-top: 16px; }
.g-actions .g-pill { flex: 1; justify-content: center; }
.g-results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.g-res { display: flex; justify-content: space-between; border-radius: 12px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); font: 600 15px var(--display); cursor: pointer; }
.g-res span { color: var(--dim); font-size: 13px; }
.g-empty { color: var(--dim); font-family: var(--font); font-size: 14px; }
.g-abtn { position: absolute; right: 20px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: 62px; height: 62px; border-radius: 50%; border: 0; background: linear-gradient(180deg, var(--bnb-2), var(--bnb)); color: #171a14; font: 600 24px var(--display); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.g-stick { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 2px solid rgba(218, 255, 68, .5); background: rgba(18, 20, 16, .35); pointer-events: none; }
.g-stick i { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(218, 255, 68, .8); }
@media (max-width: 760px) {
  .g-top .g-pill:not(.g-btn):not(.g-brand) { display: none; }
  .g-top { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .g-navbrand span, .g-top .g-style { display: none; }
  .g-pill { height: 34px; padding: 0 12px; font-size: 13.5px; }
  .g-help { display: none; }
  .g-dlg p { font-size: 16px; }
}
.g-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(80% 60% at 50% 45%, #20241c, #0a0a09); color: var(--fg); font-family: var(--display); text-align: center; padding: 24px; z-index: 2; }
.g-loading img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 40px var(--glow); animation: bob2 1.6s ease-in-out infinite; }
.g-loading b { font-weight: 600; font-size: 22px; }
.g-loading span { color: var(--dim); font-family: var(--font); font-size: 14px; max-width: 420px; }
@keyframes bob2 { 50% { transform: translateY(-8px); } }
.g-tag.say::after { content: attr(data-say); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--bnb); color: #171a14; border-radius: 10px; padding: 4px 10px; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
/* in-office nav: the launch button stands out, X is its logo */
.g-pill.g-launch { background: linear-gradient(180deg, var(--bnb-2), var(--bnb)); color: #171a14; border-color: transparent; box-shadow: 0 0 18px var(--glow); }
.g-pill.g-x { padding: 0 13px; }
.g-pill.g-x svg { width: 15px; height: 15px; fill: currentColor; }
