@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

    :root {
      --bg-canvas: #050911;
      --bg-panel: #090f1d;
      --bg-elevated: #0e172a;
      --border-subtle: rgba(148, 163, 184, 0.14);
      --border-strong: rgba(56, 189, 248, 0.35);
      --accent-sky: #38bdf8;
      --accent-rose: #fb7185;
      --accent-amber: #fbbf24;
      --accent-emerald: #34d399;
    }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background-color: var(--bg-canvas);
      background-image:
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.08), transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(251, 113, 133, 0.06), transparent 40%);
      color: #e2e8f0;
      overflow-x: hidden;
    }

    .font-mono-num {
      font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
      font-variant-numeric: tabular-nums;
    }

    .leaflet-container {
      background: #070d19 !important;
      font-family: 'Inter', sans-serif;
    }

    .leaflet-control-zoom a {
      background-color: rgba(9, 15, 29, 0.9) !important;
      color: #e2e8f0 !important;
      border-color: rgba(148, 163, 184, 0.2) !important;
    }

    .leaflet-control-zoom a:hover {
      background-color: rgba(30, 41, 59, 0.95) !important;
      color: #38bdf8 !important;
    }

    .ils-glass {
      background: rgba(9, 15, 29, 0.84);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-color: var(--border-subtle);
    }

    .ils-start-gate {
      background:
        radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.18), transparent 50%),
        radial-gradient(ellipse at 90% 20%, rgba(251, 113, 133, 0.14), transparent 45%),
        linear-gradient(160deg, #04070f 0%, #0a1220 45%, #061018 100%);
    }

    .ils-start-panel {
      background: rgba(9, 15, 29, 0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }

    body.ils-gate-open header,
    body.ils-gate-open main {
      visibility: hidden;
      pointer-events: none;
    }

    .ils-card {
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(9, 15, 29, 0.92) 100%);
      border: 1px solid var(--border-subtle);
      border-radius: 16px;
      transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    }

    .ils-card:hover {
      border-color: var(--border-strong);
      box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.7);
    }

    .ils-marker-station {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 11px;
      font-weight: 800;
      font-size: 11px;
      letter-spacing: 0.03em;
      color: #ffffff;
      border: 2px solid rgba(255, 255, 255, 0.92);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
      transition: transform 0.16s ease;
    }

    .ils-marker-station:hover {
      transform: scale(1.1) translateY(-1px);
    }

    .ils-marker-incident {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 9999px;
      font-weight: 800;
      font-size: 12px;
      color: #090d16;
      border: 2px solid #ffffff;
      animation: incidentPulse 2.2s infinite;
    }

    @keyframes incidentPulse {
      0%, 100% {
        box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35), 0 8px 20px rgba(0, 0, 0, 0.6);
      }
      50% {
        box-shadow: 0 0 0 9px rgba(251, 191, 36, 0.05), 0 8px 20px rgba(0, 0, 0, 0.6);
      }
    }

    .ils-marker-vehicle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      justify-content: center;
      padding: 3px 8px;
      border-radius: 9px;
      font-weight: 700;
      font-size: 10px;
      letter-spacing: 0.02em;
      color: #f8fafc;
      background: rgba(9, 15, 29, 0.96);
      border: 1.5px solid #38bdf8;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.58);
      white-space: nowrap;
      transition: transform 0.12s ease;
    }

    .ils-marker-vehicle-moving {
      box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 8px 20px rgba(0, 0, 0, 0.62);
    }

    .ils-veh-call {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    .ils-veh-eta {
      display: inline-flex;
      align-items: center;
      padding: 1px 5px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.2);
      color: #7dd3fc;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 10px;
      font-weight: 800;
    }

    .ils-marker-alliance {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 9999px;
      font-weight: 800;
      font-size: 11px;
      color: #ecfeff;
      background: #0e7490;
      border: 2px solid rgba(255, 255, 255, 0.9);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
    }

    .ils-marker-academy {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 12px;
      font-weight: 800;
      font-size: 11px;
      color: #f5f3ff;
      background: #7c3aed;
      border: 2px solid rgba(255, 255, 255, 0.92);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
    }

    .ils-marker-hospital {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 12px;
      font-weight: 800;
      font-size: 11px;
      letter-spacing: 0.02em;
      color: #042f2e;
      background: #34d399;
      border: 2px solid rgba(255, 255, 255, 0.92);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
    }

    .custom-scroll::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .custom-scroll::-webkit-scrollbar-track {
      background: rgba(15, 23, 42, 0.35);
    }
    .custom-scroll::-webkit-scrollbar-thumb {
      background: rgba(100, 116, 139, 0.45);
      border-radius: 9999px;
    }
    .custom-scroll::-webkit-scrollbar-thumb:hover {
      background: rgba(148, 163, 184, 0.72);
    }

    .map-stage {
      min-height: 420px;
    }

    @media (min-width: 1024px) {
      .map-stage {
        min-height: calc(100vh - 60px);
      }
    }

    #map {
      position: absolute;
      inset: 0;
    }

    .ils-intro-glow {
      box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.95), 0 0 24px rgba(56, 189, 248, 0.45) !important;
      position: relative;
      z-index: 80;
      animation: introPulse 1.4s ease-in-out infinite;
    }

    @keyframes introPulse {
      0%, 100% { box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.9), 0 0 18px rgba(56, 189, 248, 0.35); }
      50% { box-shadow: 0 0 0 3px rgba(56, 189, 248, 1), 0 0 28px rgba(56, 189, 248, 0.55); }
    }

    @media (prefers-reduced-motion: reduce) {
      .ils-intro-glow,
      .ils-marker-incident,
      .ils-marker-vehicle-moving {
        animation: none !important;
      }
      .ils-marker-station,
      .ils-marker-vehicle {
        transition: none !important;
      }
    }

    @media (max-width: 1023px) {
      .map-mode-btn,
      .tab-btn,
      .inc-filter-btn {
        min-height: 36px;
        touch-action: manipulation;
      }
      .ils-marker-vehicle {
        font-size: 11px;
        padding: 4px 9px;
      }
    }
