:root {
  --kani-navy: #03192D;
  --kani-navy-soft: #0B3558;
  --kani-orange: #FE6D04;
  --kani-bg-dark: #020617;
  --kani-card-dark: #0f172a;
  --kani-border-dark: #1e293b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--kani-bg-dark);
  color: #f1f5f9;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.heading-balance {
  text-wrap: balance;
}

.touch-btn {
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.touch-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--kani-orange);
  outline-offset: 2px;
}

.kani-card-dark {
  background: var(--kani-card-dark);
  border: 1px solid var(--kani-border-dark);
  border-radius: 1.25rem;
}

.kani-phone-frame {
  width: 100%;
  max-width: 400px;
  height: min(760px, calc(100dvh - 104px));
  min-height: 540px;
  background: var(--kani-navy);
  border-radius: 34px;
  border: 6px solid #1e293b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.isolate-map {
  position: relative;
  isolation: isolate;
  z-index: 0;
}

.leaflet-container {
  font-family: inherit;
  background: #0f172a;
  z-index: 0;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 639px) {
  .kani-phone-frame {
    max-width: 100%;
    height: auto;
    min-height: calc(100dvh - 64px);
    border-radius: 0;
    border-width: 0;
    box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.kani-night-map .leaflet-tile-pane {
  filter: invert(94%) hue-rotate(180deg) brightness(92%) contrast(112%) saturate(85%);
  transition: filter 0.35s ease;
}

.kani-night-map.leaflet-container,
.kani-night-map .leaflet-container {
  background: #020617 !important;
}

