  /* ===================== MON EMPIRE : CARTE ISOMÉTRIQUE (v51) ===================== */
  .em { display: flex; flex-direction: column; gap: 8px; }
  .em-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .em-q { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 9px; border-radius: 10px; background: var(--surface-2, #1c1418); border: 1px solid var(--border, #33262d); color: var(--text, #fff); text-align: left; min-width: 0; cursor: pointer; }
  .em-q span { font-size: .9rem; line-height: 1; }
  .em-q small { font-size: .62rem; opacity: .7; white-space: nowrap; }
  .em-q b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .em-vp { position: relative; height: min(calc(100vh - 290px), 700px); height: min(calc(100dvh - 290px), 700px); min-height: 440px; overflow: hidden; border-radius: 14px; border: 1px solid var(--border, #33262d); background: #07050A; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
  .em-vp:active { cursor: grabbing; }
  .em-vp:focus-visible { box-shadow: 0 0 0 2px #E3698F; }
  .em-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
  .em-svg { display: block; }
  .em-svg text { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; pointer-events: none; }
  .em-b { cursor: pointer; }
  .em-b:hover .em-body { filter: brightness(1.12); }
  .em-tag rect { fill: rgba(18, 7, 13, .86); stroke: rgba(255, 255, 255, .18); }
  .em-tag text { fill: #fff; }
  .em-sel .em-tag rect { stroke: #F2C14E; stroke-width: 1.5; }
  .em-selring { animation: emRing 1.4s ease-in-out infinite; }
  @keyframes emRing { 50% { opacity: .35; } }
  .em-badge circle { fill: #12070D; stroke-width: 2; }
  .em-badge.up circle { stroke: #3BD17A; } .em-badge.up text { fill: #3BD17A; }
  .em-badge.cash circle { stroke: #F2C14E; } .em-badge.cash text { fill: #F2C14E; }
  .em-badge.lock circle { stroke: #8A7A82; } .em-badge.lock text { fill: #ccc; font-size: 11px; }
  .em-badge.max circle { stroke: #B48CF2; } .em-badge.max text { fill: #B48CF2; }
  .em-badge.perso circle { stroke: #FF5C98; }
  .em-badge.up { animation: emBob 1.2s ease-in-out infinite; }
  @keyframes emBob { 50% { translate: 0 -4px; } }
  .em-blink { animation: emBlink 1.6s steps(2) infinite; }
  .em-blink2 { animation: emBlink 2.4s ease-in-out infinite; }
  @keyframes emBlink { 50% { opacity: .25; } }
  .em-onair rect { animation: emBlink 2s ease-in-out infinite; }
  .em-water { animation: emWater 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes emWater { 50% { transform: scale(1.18); opacity: .3; } }
  .em-person.walk { animation: emWalk 6s ease-in-out infinite; }
  @keyframes emWalk { 0%, 100% { translate: 0 0; } 50% { translate: -18px 9px; } }
  .em-plot { cursor: pointer; animation: emRing 1.6s ease-in-out infinite; }
  .em-zone.locked { cursor: help; }
  .em-zfresh { animation: emZone 2.5s ease-out; }
  @keyframes emZone { 0% { opacity: 0; } 100% { opacity: 1; } }
  /* construction : le bâtiment sort de terre sous les échafaudages, puis l'animation « terminé » */
  .em-cons .em-body { transform-origin: var(--ox) var(--oy); animation: emGrow 2.2s cubic-bezier(.3,.7,.3,1) both; filter: saturate(.55) brightness(.8); }
  @keyframes emGrow { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
  .em-scaf { pointer-events: none; }
  .em-prog { transform-box: fill-box; transform-origin: left center; animation: emProg 2.2s linear both; }
  @keyframes emProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .em-jib { animation: emJib 2.2s ease-in-out infinite alternate; }
  @keyframes emJib { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
  .em-worker { animation: emBob .5s ease-in-out infinite; }
  .em-done .em-body { animation: emPop .6s ease-out; transform-origin: var(--ox) var(--oy); }
  @keyframes emPop { 0% { transform: scale(1.06); filter: brightness(1.6); } 100% { transform: scale(1); filter: none; } }
  .em-burst { pointer-events: none; animation: emBurst 1.8s ease-out both; }
  .em-burst ellipse { transform-box: fill-box; transform-origin: center; animation: emRingOut 1.2s ease-out both; }
  @keyframes emBurst { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes emRingOut { from { transform: scale(.4); } to { transform: scale(1.6); opacity: 0; } }
  .em-fresh .em-body { transform-origin: var(--ox) var(--oy); animation: emGrow 1.2s ease-out both; }
  .em-new { animation: emBurst 4s ease-out both; }
  /* niveaux de détail : de loin, on retire les éléments fins */
  .lod-far .em-d, .lod-far .em-w, .lod-far .em-tag text, .lod-far .em-sign text { display: none; }
  .lod-far .em-tag rect { display: none; }
  .em-ctrl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(18, 7, 13, .78); border: 1px solid rgba(255, 255, 255, .12); z-index: 2; }
  .em-ctrl button { width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .06); color: #fff; font-size: 1rem; cursor: pointer; }
  .em-ctrl button:hover { background: rgba(255, 255, 255, .14); }
  .em-ctrl span { font-size: .58rem; opacity: .7; font-variant-numeric: tabular-nums; }
  .em-hint { position: absolute; left: 10px; top: 10px; max-width: min(420px, calc(100% - 70px)); padding: 6px 10px; border-radius: 10px; background: rgba(18, 7, 13, .72); font-size: .72rem; color: #ddd; pointer-events: none; z-index: 1; }
  .em-modes { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(18, 7, 13, .85); border: 1px solid rgba(255, 255, 255, .12); z-index: 2; cursor: auto; }
  .em-mode { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 11px; border: 1px solid transparent; background: transparent; white-space: nowrap; color: var(--text, #fff); font-weight: 700; font-size: .78rem; cursor: pointer; }
  .em-mode.on { border-color: var(--cat, #4FA3E5); background: color-mix(in srgb, var(--cat, #4FA3E5) 22%, transparent); }
  .em-panel { position: absolute; right: 56px; top: 10px; width: 330px; max-height: calc(100% - 76px); overflow: auto; padding: 12px; border-radius: 14px; background: rgba(18, 9, 14, .96); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 40px rgba(0, 0, 0, .55); z-index: 3; cursor: auto; touch-action: auto; animation: emIn .18s ease-out; }
  @keyframes emIn { from { opacity: 0; transform: translateY(6px); } }
  .em-ph { display: flex; align-items: center; gap: 10px; }
  .em-ph > div { flex: 1; min-width: 0; }
  .em-ph b { display: block; font-family: var(--font-display, inherit); font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; }
  .em-ph small { display: block; font-size: .72rem; opacity: .75; }
  .em-pic { font-size: 1.5rem; }
  .em-x { border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; flex: none; }
  .em-stars { color: #F2C14E; letter-spacing: 2px; margin: 6px 0 2px; }
  .em-stars i { color: rgba(255, 255, 255, .18); font-style: normal; }
  .em-rows { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
  .em-rows > div { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
  .em-rows span { opacity: .7; flex: none; }
  .em-rows b { font-weight: 600; text-align: right; }
  .em-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .em-note { font-size: .74rem; opacity: .75; margin: 6px 0; }
  .em-back { margin: 6px 0 2px; padding: 0; }
  .em-up { padding: 10px; margin-top: 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
  .em-up > b { display: block; font-size: .85rem; }
  .em-lv { display: block; font-family: var(--font-display, inherit); font-size: 1.15rem; color: #F2C14E; margin: 2px 0; }
  .em-gain { margin-top: 6px; font-size: .76rem; }
  .em-gain > span { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
  .em-gain ul { margin: 3px 0 0; padding-left: 18px; }
  .em-gain li { margin: 2px 0; }
  .em-gain.vis p { margin: 3px 0 0; color: #4FE3E0; }
  .em-why { font-size: .74rem; color: #F2C14E; margin: 6px 0 0; }
  .em-go { width: 100%; margin-top: 8px; }
  .em-cu { margin: 10px 0; }
  .em-list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
  .em-li { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 7px 9px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: inherit; text-align: left; font: inherit; cursor: pointer; }
  .em-li span { grid-row: 1 / 3; font-size: 1.1rem; text-align: center; }
  .em-li b { font-size: .8rem; }
  .em-li small { font-size: .68rem; opacity: .7; }
  .em-li.hot { border-color: #F2C14E; }
  .em-li.off { opacity: .55; cursor: default; }
  .em-h4 { margin: 12px 0 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
  .em-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .em-link small { display: block; }
  .emp-scene[data-go] { cursor: pointer; }
  .em.em-full { position: fixed; inset: 0; z-index: 900; padding: 8px; background: #07050A; }
  .em.em-full .em-vp { flex: 1; height: auto; min-height: 0; }
  body.em-lock { overflow: hidden; }
  @media (max-width: 760px) {
    .em-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .em-q { padding: 5px 7px; }
    .em-vp { height: calc(100dvh - 300px); min-height: 400px; }
    .em-panel { left: 6px; right: 6px; top: auto; bottom: 64px; width: auto; max-height: min(calc(100% - 80px), 62%); border-radius: 16px 16px 12px 12px; }
    .em-ctrl { top: 8px; right: 6px; }
    .em-ctrl button { width: 32px; height: 32px; }
    .em-modes { left: 6px; right: 6px; transform: none; bottom: 6px; }
    .em-mode { flex: 1; min-width: 0; flex-direction: column; gap: 1px; font-size: .6rem; padding: 6px 1px; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
    .em-hint { font-size: .66rem; max-width: calc(100% - 64px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .em-b *, .em-plot, .em-badge, .em-person, .em-water, .em-blink, .em-blink2 { animation: none !important; }
  }
