/* ════════════════════════════════════════════════════════════════════════════════════════════════════
   SINGULARITY CITY - GLOBAL STYLES (v8.3.0)
   ════════════════════════════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #060610;
  --bd: #33334a;
  --cd: #10101a;
  --sf: #1c1c28;
  --t1: #ffffff;
  --t2: #a0a0b8;
  --t3: #6b7280;
  --ac: #4ade80;
  --cy: #22d3ee; 
  --pk: #f472b6;
}

html, body {
  background-color: var(--bg);
  color: var(--t1);
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }

h1, h2, h3, p { margin: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cd); }
::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--t3); }
.ctrls-scroll::-webkit-scrollbar { display: none; } 

/* ─── LANDING PAGE ─── */
#landing {
  position: absolute; inset: 0;
  z-index: 100;
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow-y: auto; overflow-x: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#landing.exit { opacity: 0; transform: scale(1.05); pointer-events: none; }

.land-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.land-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; animation: pulse 8s infinite alternate; }
.land-glow.g1 { width: 400px; height: 400px; background: var(--cy); top: -100px; left: -100px; }
.land-glow.g2 { width: 500px; height: 500px; background: #8b5cf6; bottom: -200px; right: -100px; animation-delay: -4s; }
.land-glow.g3 { width: 300px; height: 300px; background: var(--ac); top: 40%; left: 40%; opacity: 0.05; }

.land-star { position: absolute; background: #fff; border-radius: 50%; animation: twinkle 3s infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.8; } }
@keyframes pulse { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

.land-skyline { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; align-items: flex-end; opacity: 0.4; }
.land-bld { background: linear-gradient(to top, var(--bd), transparent); margin-right: 2px; }

.land-content { position: relative; z-index: 2; text-align: center; max-width: 780px; width: 94vw; padding: clamp(12px, 2vh, 20px) clamp(12px, 2vw, 20px); flex-shrink: 0; }
.land-emoji { font-size: clamp(28px, 5vh, 50px); margin-bottom: clamp(8px, 1.5vh, 16px); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.land-title { font-family: 'Silkscreen', sans-serif; font-size: clamp(22px, 4.5vw, 42px); margin-bottom: clamp(8px, 1.5vh, 16px); color: #fff; text-shadow: 0 0 20px rgba(34,211,238,0.4); letter-spacing: 2px; }
.land-sub { font-size: clamp(11px, 1.4vw, 14px); color: var(--t2); line-height: 1.7; margin-bottom: clamp(16px, 3vh, 28px); }
.land-sub span { color: var(--ac); font-weight: bold; }

.land-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: clamp(10px, 1.5vh, 16px); max-width: 720px; margin-left: auto; margin-right: auto; }
.land-feat {
    display: flex; align-items: center; gap: 5px; min-width: 0;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 5px 8px;
    font-size: 9px; color: var(--t2); line-height: 1.2;
    transition: border-color 0.2s, background 0.2s;
}
.land-feat:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.land-feat span { font-size: 13px; flex-shrink: 0; }
.land-feat div { display: flex; flex-direction: column; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.land-feat b { color: var(--t1); font-size: 9px; margin-bottom: 0; display: block; }
.land-feat div:not(b) { overflow: hidden; text-overflow: ellipsis; }

.land-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: clamp(10px, 1.5vh, 18px); }
.land-enter { background: var(--ac); color: #000; border: none; padding: clamp(10px, 1.5vh, 14px) clamp(18px, 3vw, 28px); font-family: 'JetBrains Mono', monospace; font-size: clamp(11px, 1.3vw, 14px); font-weight: bold; border-radius: 4px; cursor: pointer; transition: all 0.2s; box-shadow: 0 0 15px rgba(74,222,128,0.3); }
.land-enter:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(74,222,128,0.5); }
.land-how { background: transparent; color: var(--t1); border: 1px solid var(--bd); padding: clamp(10px, 1.5vh, 14px) clamp(18px, 3vw, 28px); font-family: 'JetBrains Mono', monospace; font-size: clamp(11px, 1.3vw, 14px); border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.land-how:hover { border-color: var(--t2); background: rgba(255,255,255,0.05); }

.land-footer { display: flex; gap: clamp(6px, 1vw, 14px); justify-content: center; flex-wrap: wrap; font-size: clamp(7px, 0.85vw, 9px); color: var(--t3); padding-bottom: 12px; }

/* ─── GAME WRAPPER & TRANSITIONS ─── */
#gameWrap { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.5s ease, background-color 0.8s ease; }
#gameWrap.active { opacity: 1; pointer-events: all; }
#gameWrap.macro-mode { background-color: #04040e !important; }

/* ─── TOP HUD ─── */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; background: linear-gradient(180deg, rgba(6,6,16,0.95), transparent); padding: 10px; pointer-events: none; }
.top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; pointer-events: all; }
.top-main { padding: 0 10px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-i { font-size: 20px; }
.logo h1 { font-family: 'Silkscreen', sans-serif; font-size: 14px; margin: 0; color: #fff; text-shadow: 2px 2px 0 #000; letter-spacing: 1px; }

.nfo { display: flex; gap: 12px; font-size: 11px; font-weight: 500; background: rgba(10,10,25,0.7); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--bd); backdrop-filter: blur(4px); box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.nfo span { display: flex; align-items: center; gap: 6px; color: var(--t2); }
.nfo .st { color: #fff; font-weight: 700; }

/* ─── CONTROLS ─── */
.ctrls { width: 100%; overflow: hidden; }
.ctrls-scroll { display: flex; gap: 6px; padding: 4px 10px 10px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.btn { background: var(--cd); color: var(--t1); border: 1px solid var(--bd); padding: 6px 10px; font-family: 'JetBrains Mono', monospace; font-size: 10px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: all 0.2s; position: relative; flex-shrink: 0; }
.btn:hover { background: var(--sf); border-color: var(--t2); transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.btn.on { background: var(--sf); border-color: var(--ac); color: var(--ac); }
.btn.scanning { background: rgba(74,222,128,0.1); border-color: var(--ac); color: var(--ac); pointer-events: none; animation: pulse 1s infinite alternate; }
.btn.macro-active { background: #8b5cf6 !important; color: #fff !important; border-color: #a78bfa !important; box-shadow: 0 0 10px #8b5cf6 !important; }

/* ─── PIXI VIEWPORT ─── */
.vp { flex: 1; width: 100%; position: relative; z-index: 1; cursor: grab; }
.vp.dragging { cursor: grabbing !important; }

/* ─── BOTTOM NEWS TICKER ─── */
.tick { position: absolute; bottom: 0; left: 0; width: 100%; height: 28px; background: rgba(6,6,16,0.9); border-top: 1px solid var(--bd); display: flex; align-items: center; z-index: 100; font-size: 10px; }
.tick-lbl { background: var(--ac); color: #000; padding: 0 12px; height: 100%; display: flex; align-items: center; font-weight: 700; font-size: 9px; letter-spacing: 1px; }
.tick-txt { padding: 0 15px; color: var(--t2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── TOOLTIPS & TOASTS ─── */
.game-tt { position: absolute; background: rgba(10,10,25,0.95); border: 1px solid var(--bd); border-radius: 4px; padding: 8px 12px; pointer-events: none; z-index: 50; transform: translate(-50%, -100%); backdrop-filter: blur(2px); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.tt-name { font-size: 11px; font-weight: bold; color: #fff; margin-bottom: 4px; }
.tt-sub { font-size: 9px; color: var(--t2); }
.tt-hint { font-size: 8px; color: var(--ac); margin-top: 4px; font-style: italic; }

.toasts { position: absolute; top: 70px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 40; pointer-events: none; }
.toast { background: rgba(10,10,25,0.9); border: 1px solid var(--bd); color: #fff; padding: 10px 14px; font-size: 10px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); animation: slideIn 0.3s ease, fadeOut 0.5s ease 5.5s forwards; border-left: 3px solid var(--ac); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* ─── INFO PANEL (Right Slide-In) ─── */
.ipanel { position: absolute; top: 70px; right: -360px; width: 360px; background: rgba(10,10,25,0.95); border: 1px solid var(--bd); border-right: none; border-radius: 8px 0 0 8px; z-index: 30; transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -5px 0 25px rgba(0,0,0,0.5); display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.ipanel.open { right: 0; }
.ipanel-x { position: absolute; top: 12px; right: 12px; background: transparent; border: none; color: var(--t3); cursor: pointer; font-size: 14px; padding: 4px; border-radius: 4px; transition: all 0.2s; z-index: 2;}
.ipanel-x:hover { color: #fff; background: rgba(255,255,255,0.1); }
.ipanel-top { padding: 20px; display: flex; gap: 15px; align-items: center; border-radius: 8px 0 0 0; }
.ipanel-av { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); flex-shrink: 0; }
.ipanel-name { font-size: 16px; font-weight: bold; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.ipanel-sub { font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.ipanel-badge { font-size: 9px; padding: 4px 8px; border-radius: 4px; font-weight: bold; display: inline-flex; align-items: center; gap: 4px; }
.ipanel-act { padding: 12px 20px; background: var(--cd); border-bottom: 1px solid var(--bd); font-size: 10px; color: var(--t2); display: flex; align-items: center; gap: 8px; }
.ipanel-act-text { color: #fff; }
.ipanel-desc { padding: 15px 20px; font-size: 11px; color: var(--t2); line-height: 1.5; border-bottom: 1px dashed var(--bd); margin: 0; }
.ipanel-grid { padding: 15px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ipanel-stat { display: flex; flex-direction: column; gap: 4px; }
.ipanel-lbl { font-size: 8px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.5px; }
.ipanel-val { font-size: 11px; font-weight: 500; color: #fff; }
.ipanel-tabs { display: flex; background: var(--cd); border-bottom: 1px solid var(--bd); }
.ipanel-tab { flex: 1; padding: 10px 0; text-align: center; background: transparent; border: none; color: var(--t3); font-family: inherit; font-size: 10px; cursor: pointer; transition: all 0.2s; border-bottom: 2px solid transparent; }
.ipanel-tab:hover { color: var(--t1); background: rgba(255,255,255,0.02); }
.ipanel-tab.active { color: var(--ac); border-bottom-color: var(--ac); background: rgba(74,222,128,0.05); }

/* ─── CHART CONTAINERS & ARCHITECTURE STYLES ─── */
.chart-wrapper { position: relative; height: 220px; width: 100%; padding: 15px 20px 20px 10px; }
.roi-wrapper { position: relative; height: 350px; width: 100%; margin-bottom: 20px; background: var(--cd); border: 1px solid var(--bd); border-radius: 6px; padding: 15px; }
.arch-title { font-size: 9px; color: var(--cy); margin: 15px 20px 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.arch-title::after { content: ''; flex: 1; height: 1px; background: var(--bd); }

/* ─── SCAN LOG ─── */
.slog { position: absolute; bottom: 40px; left: 20px; width: 300px; max-height: 250px; background: rgba(10,10,25,0.9); border: 1px solid var(--bd); border-radius: 8px; z-index: 20; display: none; flex-direction: column; box-shadow: 0 5px 20px rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.slog.open { display: flex; animation: slideUp 0.2s ease; }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.slog-t { padding: 10px 15px; border-bottom: 1px solid var(--bd); font-size: 10px; font-weight: bold; color: var(--t2); background: var(--cd); border-radius: 8px 8px 0 0; }
#logEntries { padding: 10px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.slog-e { font-size: 9px; color: #fff; line-height: 1.4; padding: 6px; background: var(--sf); border-radius: 4px; border-left: 2px solid var(--t3); }
.slog-e:first-child { border-left-color: var(--ac); background: rgba(74,222,128,0.05); }
.slog-tm { color: var(--t3); margin-right: 8px; font-size: 8px; }

/* ─── OVERLAYS / MODALS ─── */
.ov { position: absolute; inset: 0; background: rgba(0,0,0,0.8); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; backdrop-filter: blur(3px); }
.ov.open { opacity: 1; pointer-events: all; }
.ov-pan { background: var(--bg); border: 1px solid var(--bd); border-radius: 8px; padding: 25px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.6); max-width: 95vw; max-height: 90vh; overflow-y: auto; }
.ov-title { font-family: 'Silkscreen', sans-serif; font-size: 16px; margin-bottom: 20px; color: #fff; border-bottom: 1px solid var(--bd); padding-bottom: 10px; letter-spacing: 1px; }

/* ─── FORMS & INPUTS ─── */
.sel-input, .sel-select { width: 100%; background: var(--cd); border: 1px solid var(--bd); color: #fff; padding: 10px 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; border-radius: 4px; transition: border-color 0.2s; margin-top: 6px; }
.sel-input:focus, .sel-select:focus { outline: none; border-color: var(--ac); }

/* ─── COMPONENT UI TABLES ─── */
.bench-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.bench-table th { padding: 10px; border-bottom: 1px solid var(--bd); text-align: center; color: var(--t2); font-weight: normal; white-space: nowrap; }
.bench-table td { padding: 10px; border-bottom: 1px solid var(--bd); text-align: center; }
.bench-table tr:hover td { background: var(--cd); }

/* ─── HOLOMAP HUD ─── */
#macroUI { position: absolute; top: 80px; left: -320px; width: 260px; padding: 20px; background: rgba(10,10,25,0.85); border: 1px solid #33334a; border-radius: 8px; transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; z-index: 10; font-family: 'JetBrains Mono', monospace; color: #fff; box-shadow: 5px 5px 25px rgba(0,0,0,0.5); }
#gameWrap.macro-mode #macroUI { display: none; }
.m-title { font-family: 'Silkscreen', sans-serif; color: #8b5cf6; margin-bottom: 15px; font-size: 16px; border-bottom: 1px solid #33334a; padding-bottom: 10px; letter-spacing: 1px;}
.m-stat { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 8px; border-bottom: 1px dashed #ffffff22; padding-bottom: 4px; }
.m-desc { margin-top: 15px; font-size: 9px; color: #888; line-height: 1.5; }

/* ─── INSTRUCTIONS PANEL ─── */
.instr-pan { background: var(--bg); border: 1px solid var(--bd); padding: 30px; border-radius: 8px; width: 600px; max-width: 95vw; position: relative; max-height: 85vh; overflow-y: auto; }
.instr-title { font-family: 'Silkscreen', sans-serif; font-size: 20px; color: #fff; margin-bottom: 24px; text-align: center; letter-spacing: 1px; }
.instr-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--t3); font-size: 16px; cursor: pointer; z-index: 2;}
.instr-close:hover { color: #fff; }
.instr-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--bd); }
.instr-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.instr-h { font-size: 12px; font-weight: bold; color: var(--ac); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.instr-p { font-size: 11px; color: var(--t2); line-height: 1.6; }
.instr-got { width: 100%; padding: 12px; background: var(--ac); color: #000; border: none; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-weight: bold; cursor: pointer; margin-top: 10px; transition: transform 0.2s; }
.instr-got:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(74,222,128,0.3); }

/* ─── MINIMAP ─── */
#minimap { position: absolute; bottom: 40px; right: 12px; z-index: 100; background: rgba(6,6,16,0.92); border: 1px solid var(--bd); border-radius: 8px; padding: 0; width: 290px; pointer-events: all; box-shadow: 0 4px 20px rgba(0,0,0,0.5); backdrop-filter: blur(6px); overflow: hidden; transition: all 0.3s ease; }
#minimap.collapsed { width: 80px; }
#minimap.collapsed #mmCanvas, #minimap.collapsed .mm-zones { display: none; }
#minimap.collapsed .mm-title { font-size: 8px; }
.mm-header { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid var(--bd); }
.mm-title { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--t2); font-weight: bold; letter-spacing: 1px; }
.mm-toggle { background: none; border: none; color: var(--t3); font-size: 12px; cursor: pointer; padding: 0 4px; line-height: 1; }
.mm-toggle:hover { color: #fff; }
#mmCanvas { display: block; width: 100%; height: 40px; cursor: crosshair; }
.mm-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px 6px 6px; }
.mm-zone { font-family: 'JetBrains Mono', monospace; font-size: 7px; padding: 4px 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--bd); border-radius: 3px; cursor: pointer; color: var(--t3); transition: all 0.15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.mm-zone.wide { grid-column: 1 / -1; }
.mm-zone:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: var(--t2); }
.mm-zone.active { border-color: var(--cy); color: var(--cy); background: rgba(34,211,238,0.08); }

/* ─── MOBILE RESPONSIVENESS & BOTTOM SHEETS ─── */
@media (max-width: 768px) {
  .land-features { grid-template-columns: repeat(2, 1fr); }
  .land-btns { gap: 10px; }
  .land-feat { padding: 4px 6px; font-size: 8px; }
  .land-feat span { font-size: 11px; }
  .land-feat b { font-size: 8px; }
  .land-footer { gap: 6px; font-size: 7px; }

  .logo h1 { display: none; } 
  .nfo { flex-wrap: wrap; justify-content: center; font-size: 9px; padding: 4px 8px; }
  
  .ctrls-scroll { gap: 4px; padding: 4px 6px 8px 6px; }
  .btn { padding: 5px 8px; font-size: 9px; }
  
  .ov { align-items: flex-end; }
  .ov-pan { 
      width: 100% !important; 
      max-height: 85vh; 
      border-radius: 24px 24px 0 0; 
      border: 1px solid var(--bd);
      border-bottom: none;
      padding: 30px 20px 20px 20px; 
      animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
  }
  .ov-pan::before {
      content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; background: var(--t3); border-radius: 2px;
  }
  
  .instr-pan { width: 100% !important; max-width: 100vw; padding: 24px 16px; }
  .instr-title { font-size: 14px; }
  .instr-h { font-size: 11px; }
  .instr-p { font-size: 10px; line-height: 1.6; }
  
  .ipanel { 
      width: 100%; right: 0; bottom: -100vh; top: auto; max-height: 75vh; border-radius: 24px 24px 0 0; border: 1px solid var(--bd); border-bottom: none; padding-top: 15px; transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ipanel.open { bottom: 0; right: 0; }
  .ipanel::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; background: var(--t3); border-radius: 2px; }
  .ipanel-top { padding-top: 15px; border-radius: 24px 24px 0 0; }
  .ipanel-x { top: 15px; right: 15px; }

  @keyframes slideUpSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }

  #macroUI { width: 90vw; left: -100vw; top: 100px; padding: 15px; }
  #gameWrap.macro-mode #macroUI { display: none; }
  .toasts { top: auto; bottom: 100px; right: 10px; left: 10px; }
  
  .tick { font-size: 9px; padding: 6px 10px; }
  .slog { display: none; } /* hide scan log on mobile — too much clutter */
  
  #trackingHud { font-size: 9px; padding: 5px 12px; bottom: 35px; }
  #minimap { display: none; } /* too small for mobile */
  
  #btnExitInterior { font-size: 10px !important; padding: 8px 16px !important; top: 8px !important; right: 8px !important; }
}

@media (max-width: 480px) {
  .land-feat { padding: 4px 8px 4px 6px; white-space: normal; }
  .nfo { font-size: 8px; gap: 6px; }
  .btn { padding: 4px 6px; font-size: 8px; gap: 4px; }
}

/* ════════════════════════════════════════════════════════════════
   HOLOMAP — 3D Galaxy View Styles
   ════════════════════════════════════════════════════════════════ */

#holomapCv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    background: #04040e;
}

#holomap-labels {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
}

/* ─── ASI Label ─── */
.holo-asi-label {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 7;
}
.holo-asi-label > div:first-child {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 15px #a78bfa, 0 0 30px #8b5cf6;
    letter-spacing: 3px;
    font-family: 'JetBrains Mono', monospace;
}
.holo-asi-sub {
    font-size: 9px;
    color: rgba(167,139,250,0.6);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* ─── Barrier Labels ─── */
.holo-barrier-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(248,250,252,0.5);
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255,255,255,0.2);
}

/* ─── Nebula Labels ─── */
.holo-neb-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    white-space: nowrap;
    letter-spacing: 1px;
}

/* ─── Star Labels ─── */
.holo-star-label {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.3s;
}
.holo-star-name {
    font-family: 'JetBrains Mono', 'Inter', sans-serif;
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
}
.holo-frontier-badge {
    font-size: 7px;
    color: #a78bfa;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0,0,0,0.6);
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 2px;
    display: inline-block;
    letter-spacing: 1px;
}

/* ─── Tooltip ─── */
#holomapTooltip {
    position: fixed;
    z-index: 50;
    background: rgba(10,10,25,0.92);
    border: 1px solid #33334a;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 180px;
    max-width: 280px;
    pointer-events: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.15s;
    font-family: 'JetBrains Mono', monospace;
}
#holomapTooltip.on {
    opacity: 1;
}
.htt-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.htt-lab { font-size: 10px; margin-bottom: 6px; }
.htt-stat { font-size: 10px; color: #94a3b8; }
.htt-desc { font-size: 10px; color: #64748b; margin-top: 4px; font-style: italic; }

/* ─── Info Panel ─── */
#holomapInfoPanel {
    position: fixed;
    top: 80px;
    right: -380px;
    width: 340px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(10,10,25,0.92);
    border: 1px solid #33334a;
    border-radius: 10px;
    padding: 20px;
    z-index: 20;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: -5px 5px 30px rgba(0,0,0,0.5);
    font-family: 'JetBrains Mono', monospace;
    color: #e2e8f0;
}
#holomapInfoPanel.on {
    right: 20px;
}

.holo-panel-x {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: 1px solid #33334a;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
}
.holo-panel-x:hover { color: #fff; border-color: #fff; }

.holo-panel-top { margin-bottom: 14px; }
.holo-panel-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.holo-panel-lab { font-size: 11px; margin-bottom: 6px; }
.holo-panel-badge {
    display: inline-block;
    font-size: 9px;
    background: rgba(167,139,250,0.15);
    color: #a78bfa;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(167,139,250,0.3);
    letter-spacing: 1px;
}

.holo-panel-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e293b;
}

.holo-panel-stats { margin-bottom: 16px; }
.holo-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(30,41,59,0.5);
    font-size: 11px;
}
.holo-stat-lbl { color: #64748b; }
.holo-stat-val { color: #e2e8f0; font-weight: 500; }

.holo-bm-section { margin-bottom: 16px; }
.holo-bm-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 10px;
}
.holo-bm-lbl { width: 65px; color: #64748b; text-align: right; flex-shrink: 0; }
.holo-bm-bar {
    flex: 1;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
}
.holo-bm-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }
.holo-bm-val { width: 28px; color: #94a3b8; text-align: right; flex-shrink: 0; }

.holo-panel-cost {
    display: flex;
    gap: 16px;
    font-size: 10px;
    color: #facc15;
    padding: 8px 0;
    border-top: 1px solid #1e293b;
    margin-bottom: 12px;
}

.holo-panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.holo-action-btn {
    flex: 1;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #33334a;
    color: #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    transition: all 0.2s;
}
.holo-action-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #a78bfa;
    color: #fff;
}

/* ─── HUD Info ─── */
#holoHud {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
    pointer-events: none;
}
#gameWrap.macro-mode #holoHud { display: block; }

#holoHudInfo {
    display: flex;
    gap: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #94a3b8;
    background: rgba(10,10,25,0.7);
    border: 1px solid #33334a;
    border-radius: 20px;
    padding: 6px 20px;
    backdrop-filter: blur(8px);
}

/* ─── MULTIPLAYER PRESENCE ─── */
.mp-counter {
    display: flex; align-items: center; gap: 6px;
    background: rgba(10,10,25,0.8); border: 1px solid var(--bd);
    padding: 4px 10px; border-radius: 16px; font-size: 10px;
    backdrop-filter: blur(4px); pointer-events: all;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.mp-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ac); box-shadow: 0 0 6px var(--ac);
    animation: mp-pulse 2s infinite;
}
@keyframes mp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.mp-count { color: #fff; font-weight: 700; }
.mp-label { color: var(--t2); font-size: 9px; }

.mp-reactions {
    position: absolute; bottom: 36px; left: 12px;
    display: flex; gap: 4px; z-index: 100; pointer-events: all;
}
.mp-react-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(10,10,25,0.85); border: 1px solid var(--bd);
    font-size: 16px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(4px);
}
.mp-react-btn:hover {
    transform: scale(1.2); border-color: var(--ac);
    box-shadow: 0 0 8px rgba(74,222,128,0.3);
}
.mp-react-pop { animation: mp-pop 0.3s ease; }
@keyframes mp-pop {
    0% { transform: scale(1); } 50% { transform: scale(1.5); } 100% { transform: scale(1); }
}

/* Hide city elements when in holomap mode */
#gameWrap.macro-mode .vp { opacity: 0; pointer-events: none; }
#gameWrap.macro-mode #minimap { display: none; }
#gameWrap.macro-mode .tick { z-index: 15; }
#gameWrap.macro-mode .mp-reactions { display: none; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    #holomapInfoPanel { width: 90vw; right: -95vw; top: auto; bottom: 0; max-height: 50vh; border-radius: 10px 10px 0 0; }
    #holomapInfoPanel.on { right: 5vw; }
    .holo-neb-label { font-size: 11px; }
    #holoHudInfo { font-size: 8px; gap: 12px; padding: 4px 12px; }
    .mp-counter { font-size: 8px; padding: 3px 8px; }
    .mp-reactions { bottom: 34px; gap: 3px; }
    .mp-react-btn { width: 28px; height: 28px; font-size: 14px; }
}
