@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --stone-950: oklch(14.7% 0.004 49.25);
  --stone-900: oklch(21.6% 0.006 56.043);
  --stone-800: oklch(26.8% 0.007 34.298);
  --stone-700: oklch(37.4% 0.01 67.558);
  --stone-600: oklch(44.4% 0.011 73.639);
  --stone-500: oklch(55.3% 0.013 58.071);
  --stone-400: oklch(70.9% 0.01 56.259);
  --stone-300: oklch(86.9% 0.005 56.366);
  --stone-50: oklch(98.5% 0.001 106.423);
  --neutral-950: oklch(14.5% 0 0);
  --neutral-900: oklch(20.5% 0 0);
  --neutral-800: oklch(26.9% 0 0);
  --neutral-400: oklch(70.8% 0 0);
  --neutral-100: oklch(97% 0 0);
  --emerald-300: oklch(84.5% 0.143 164.978);
  --emerald-400: oklch(76.5% 0.177 163.223);
  --emerald-500: oklch(69.6% 0.17 162.48);
  --amber-300: oklch(87.9% 0.169 91.605);
  --sky-300: oklch(82.8% 0.111 230.318);
  --red-400: oklch(70.4% 0.191 22.216);

  --bg: color-mix(in oklab, var(--neutral-950) 25%, var(--stone-900));
  --card: color-mix(in oklab, var(--neutral-900) 25%, var(--stone-800));
  --muted-bg: color-mix(in oklab, var(--neutral-800) 25%, var(--stone-700));
  --fg: color-mix(in oklab, var(--neutral-100) 25%, var(--stone-50));
  --fg-soft: color-mix(in oklab, var(--fg) 82%, transparent);
  --muted: color-mix(in oklab, var(--neutral-400) 25%, var(--stone-400));
  --subtle: var(--stone-500);
  --primary: var(--emerald-400);
  --primary-fg: color-mix(in oklab, var(--neutral-950) 25%, var(--stone-950));
  --primary-soft: color-mix(in oklab, var(--emerald-400) 14%, transparent);
  --primary-line: color-mix(in oklab, var(--emerald-400) 42%, transparent);
  --accent: var(--amber-300);
  --danger: var(--red-400);
  --mc-yellow: #ffff55;

  --glass: color-mix(in oklab, var(--bg) 80%, transparent);
  --glass-strong: color-mix(in oklab, var(--bg) 94%, transparent);
  --line: color-mix(in oklab, white 8%, transparent);
  --line-strong: color-mix(in oklab, white 14%, transparent);
  --hover: color-mix(in oklab, white 6%, transparent);
  --press: color-mix(in oklab, white 10%, transparent);

  --hp-good: var(--emerald-400);
  --hp-mid: var(--amber-300);
  --hp-low: var(--red-400);

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: inset 0 1px 0 0 color-mix(in oklab, white 5%, transparent), 0 18px 40px -18px rgb(0 0 0 / 0.75), 0 2px 8px -2px rgb(0 0 0 / 0.35);
  --blur: blur(18px) saturate(1.35);
  --edge: 16px;
  --top-h: 56px;
  --panel-w: 340px;

  --font: Poppins, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mc: Minecraftia, ui-monospace, 'SF Mono', Menlo, monospace;

  color-scheme: dark;
}

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

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--stone-950);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--primary-line);
  outline-offset: 2px;
}

.ico {
  width: 16px;
  height: 16px;
  flex: none;
}

.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.mc {
  font-family: var(--font-mc);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.muted {
  color: var(--muted);
}

.player-name {
  color: var(--mc-yellow);
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn--primary:hover {
  background: color-mix(in oklab, var(--primary) 85%, white);
}

.btn--ghost {
  background: var(--hover);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost:hover {
  background: var(--press);
}

.btn--sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn--sm .ico {
  width: 14px;
  height: 14px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--fg-soft);
  transition: background-color 0.15s, color 0.15s;
}

.icon-btn:hover:not(:disabled) {
  background: var(--hover);
  color: var(--fg);
}

.icon-btn:active:not(:disabled) {
  background: var(--press);
}

.icon-btn .ico {
  width: 18px;
  height: 18px;
}

.icon-btn--sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.icon-btn--sm .ico {
  width: 16px;
  height: 16px;
}

.icon-btn--xs {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.icon-btn--xs .ico {
  width: 14px;
  height: 14px;
}

.link {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Splash */

.splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--stone-950) url('../img/splash.webp') center / cover no-repeat;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.splash__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 110%, transparent 30%, color-mix(in oklab, var(--stone-950) 55%, transparent) 75%),
    linear-gradient(color-mix(in oklab, var(--stone-950) 45%, transparent), color-mix(in oklab, var(--stone-950) 30%, transparent));
}

.splash__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.splash__logo {
  width: 64px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.45));
}

.splash__title {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.35);
}

.splash__subtitle {
  margin: 6px 0 0;
  color: color-mix(in oklab, white 72%, transparent);
  font-size: 14px;
}

.splash__loader {
  position: relative;
  width: 168px;
  height: 3px;
  margin-top: 28px;
  border-radius: 99px;
  overflow: hidden;
  background: color-mix(in oklab, white 14%, transparent);
}

.splash__loader span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-line);
  animation: loader 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.splash__error {
  margin-top: 26px;
  max-width: 340px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.splash__error-title {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}

.splash__error-text {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loader {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Map */

.map {
  position: fixed;
  inset: 0;
  background-color: var(--stone-950);
  outline: none;
}

.leaflet-container {
  font-family: var(--font);
  background-color: inherit;
}

.map.leaflet-container {
  background-color: var(--stone-950);
}

.map-vignette {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  background:
    linear-gradient(to bottom, color-mix(in oklab, var(--stone-950) 55%, transparent), transparent 120px),
    linear-gradient(to top, color-mix(in oklab, var(--stone-950) 40%, transparent), transparent 90px);
  box-shadow: inset 0 0 140px rgb(0 0 0 / 0.45);
}

.leaflet-tile-container img.leaflet-tile {
  image-rendering: auto;
}

.is-upscaled .leaflet-tile-container img.leaflet-tile {
  image-rendering: pixelated;
}

.leaflet-fade-anim .leaflet-tile {
  transition: opacity 0.35s ease;
}

.leaflet-interactive.shape {
  transition: fill-opacity 0.15s, stroke-width 0.15s;
}

/* Top bar */

.top {
  position: fixed;
  top: var(--edge);
  left: var(--edge);
  right: var(--edge);
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  pointer-events: none;
}

.top > * {
  pointer-events: auto;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--top-h);
  min-width: var(--panel-w);
  padding: 0 6px 0 12px;
  white-space: nowrap;
}

.brand__home {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand__logo {
  width: 28px;
  height: auto;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 11px;
  color: var(--muted);
}

.brand__sep,
.switcher__sep,
.status__sep {
  width: 1px;
  height: 28px;
  background: var(--line-strong);
  flex: none;
}

.address {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius);
  text-align: left;
  transition: background-color 0.15s;
}

.address:hover {
  background: var(--hover);
}

.address__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, white 9%, transparent);
  flex: none;
}

.address__icon img {
  width: 22px;
  height: 22px;
}

.address__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.address__label {
  font-size: 11px;
  color: var(--muted);
}

.address__value {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.address__value .ico {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.15s;
}

.address:hover .address__value .ico,
.address:focus-visible .address__value .ico {
  opacity: 1;
}

.switcher {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--top-h);
  padding: 0 8px;
}

.world-picker {
  position: relative;
}

.world-picker__button {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 10px 0 8px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.15s;
}

.world-picker__button:hover,
.world-picker__button[aria-expanded='true'] {
  background: var(--hover);
}

.world-picker__icon {
  width: 22px;
  height: 22px;
}

.world-picker__button .ico {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s;
}

.world-picker__button[aria-expanded='true'] .ico {
  transform: rotate(180deg);
}

.world-picker.is-single .world-picker__button {
  pointer-events: none;
}

.world-picker.is-single .world-picker__button .ico {
  display: none;
}

.world-picker__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -8px;
  min-width: 250px;
}

.segments {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius);
  background: color-mix(in oklab, black 22%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}

.segment {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.segment:hover {
  color: var(--fg);
}

.segment[aria-selected='true'] {
  color: var(--fg);
  background: color-mix(in oklab, white 11%, transparent);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.3);
}

.switcher.is-single-map .switcher__sep,
.switcher.is-single-map .segments {
  display: none;
}

.status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--top-h);
  padding: 0 18px;
  font-size: 13px;
  white-space: nowrap;
}

.status__clock {
  display: flex;
  align-items: center;
}

.status__time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.status__weather {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: -4px;
  color: var(--muted);
  font-size: 12.5px;
}

.status__weather::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--subtle);
}

.status__online {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status__count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status__label {
  color: var(--muted);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  flex: none;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse 1.8s ease-out infinite;
}

.is-offline .pulse {
  background: var(--danger);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* Panel */

.panel {
  position: fixed;
  z-index: 900;
  top: calc(var(--edge) + var(--top-h) + 12px);
  left: var(--edge);
  bottom: var(--edge);
  width: var(--panel-w);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s;
}

.panel-closed .panel {
  transform: translateX(calc(-100% - var(--edge) - 8px));
  opacity: 0;
  pointer-events: none;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 0;
}

.tabs {
  display: flex;
  flex: 1;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius);
  background: color-mix(in oklab, black 22%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s;
}

.tab .ico {
  width: 15px;
  height: 15px;
}

.tab:hover {
  color: var(--fg);
}

.tab[aria-selected='true'] {
  color: var(--fg);
  background: color-mix(in oklab, white 11%, transparent);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.3);
}

.tab__count {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: color-mix(in oklab, white 9%, transparent);
  color: var(--fg-soft);
}

.tab[aria-selected='true'] .tab__count {
  background: var(--primary-soft);
  color: var(--primary);
}

.panel__collapse {
  width: 36px;
  height: 36px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 10px 10px 6px;
  padding: 0 10px 0 12px;
  border-radius: var(--radius);
  background: color-mix(in oklab, black 22%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  transition: box-shadow 0.15s;
  cursor: text;
}

.search:focus-within {
  box-shadow: inset 0 0 0 1px var(--primary-line), 0 0 0 3px color-mix(in oklab, var(--emerald-400) 12%, transparent);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 13.5px;
}

.search input::placeholder {
  color: var(--subtle);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search__kbd {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 11px;
  color: var(--subtle);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.search:focus-within .search__kbd,
.search__clear:not([hidden]) ~ .search__kbd {
  display: none;
}

.search__clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--muted);
}

.search__clear:hover {
  background: var(--hover);
  color: var(--fg);
}

.panel__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 6px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--muted-bg) transparent;
  mask-image: linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 14px), transparent);
}

.panel__body::-webkit-scrollbar {
  width: 8px;
}

.panel__body::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--muted-bg);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  border-radius: var(--radius);
  text-align: left;
  transition: background-color 0.15s;
}

.row:hover {
  background: var(--hover);
}

.row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 8px 8px;
  border-radius: var(--radius);
  text-align: left;
}

.row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row__title {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.row__meta img {
  width: 14px;
  height: 14px;
  flex: none;
}

.row__meta .ico {
  width: 13px;
  height: 13px;
}

.row__extra {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}

.row__extra:empty {
  display: none;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--subtle);
  flex: none;
}

.row__action {
  margin-right: 6px;
  color: var(--subtle);
  opacity: 0;
  transition: opacity 0.15s, background-color 0.15s, color 0.15s;
}

.row:hover .row__action,
.row__action:focus-visible {
  opacity: 1;
}

.player-row.is-followed {
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--emerald-400) 22%, transparent);
}

.player-row.is-followed .row__action {
  opacity: 1;
  color: var(--primary);
}

.player-row.is-away .avatar img {
  filter: grayscale(0.85) brightness(0.8);
}

.player-row.is-away .row__title {
  color: color-mix(in oklab, var(--mc-yellow) 55%, var(--stone-400));
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px -2px rgb(0 0 0 / 0.5);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar img.is-fallback {
  width: 26px;
  height: 26px;
}

.avatar--lg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.hearts {
  display: inline-flex;
  gap: 1px;
}

.heart {
  width: 9px;
  height: 9px;
  background: url('../img/heart-full.svg') center / 100% 100% no-repeat;
  image-rendering: pixelated;
}

.heart--half {
  background-image: url('../img/heart-half.svg');
}

.heart--empty {
  background-image: url('../img/heart-empty.svg');
}

.armor {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--stone-300);
  font-variant-numeric: tabular-nums;
}

.armor .ico {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.group + .group {
  margin-top: 10px;
}

.group__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 6px 10px;
}

.group__title {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group__count {
  font-size: 11px;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

.group__eye {
  color: var(--subtle);
}

.group.is-hidden .place-row {
  opacity: 0.45;
}

.group.is-hidden .group__eye {
  color: var(--muted);
}

.place-row {
  gap: 12px;
  padding: 7px 10px 7px 8px;
}

.place__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
  background: color-mix(in oklab, white 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}

.place__icon img {
  width: 16px;
  height: 16px;
}

.row__chev {
  width: 15px;
  height: 15px;
  color: var(--subtle);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.15s, transform 0.15s;
}

.place-row:hover .row__chev {
  opacity: 1;
  transform: none;
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: none;
  background: color-mix(in oklab, var(--f, #888) 45%, transparent);
  box-shadow: inset 0 0 0 2px var(--c, #888);
}

.swatch--circles {
  border-radius: 50%;
}

.swatch--lines {
  height: 3px;
  border-radius: 2px;
  background: var(--c);
  box-shadow: none;
}

.swatch--empty {
  background: var(--muted-bg);
  box-shadow: none;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px 28px;
}

.empty__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  opacity: 0.9;
}

.empty__title {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.empty__text {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.panel-open {
  position: fixed;
  z-index: 900;
  top: calc(var(--edge) + var(--top-h) + 12px);
  left: var(--edge);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-soft);
  transition: color 0.15s, background-color 0.15s;
  animation: rise 0.3s ease both;
}

.panel-open:hover {
  color: var(--fg);
  background: var(--glass-strong);
}

.panel-open .ico {
  width: 18px;
  height: 18px;
}

.panel-open__count:not(:empty) {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  background: var(--primary-soft);
  color: var(--primary);
}

/* Follow chip */

.follow {
  position: fixed;
  z-index: 950;
  top: calc(var(--edge) + var(--top-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 7px;
  border-color: color-mix(in oklab, var(--emerald-400) 35%, transparent);
  box-shadow: var(--shadow), 0 0 0 3px color-mix(in oklab, var(--emerald-400) 10%, transparent);
  font-size: 13px;
  animation: drop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.follow__head {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.follow__text {
  color: var(--fg-soft);
  white-space: nowrap;
}

.follow__text strong {
  font-weight: 600;
}

.follow__stop {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-soft);
  background: var(--hover);
  transition: background-color 0.15s, color 0.15s;
}

.follow__stop:hover {
  background: var(--press);
  color: var(--fg);
}

.follow__stop .ico {
  width: 14px;
  height: 14px;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Controls */

.controls {
  position: fixed;
  z-index: 900;
  right: var(--edge);
  bottom: var(--edge);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compass {
  position: relative;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--fg);
}

.compass svg {
  display: block;
  width: 100%;
  height: 100%;
}

.compass__rose {
  transform-origin: 20px 20px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.compass__north {
  fill: var(--danger);
}

.compass__south {
  fill: var(--stone-400);
}

.compass circle {
  fill: var(--stone-950);
}

.compass::before {
  content: 'N';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  color: var(--danger);
  transform: rotate(var(--north, 0deg)) translateY(-17px) rotate(calc(var(--north, 0deg) * -1));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.controls__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-lg);
}

.controls__sep {
  width: 22px;
  height: 1px;
  margin: 2px 0;
  background: var(--line);
}

.controls [data-tip] {
  position: relative;
}

.place__status {
  flex: none;
  max-width: 96px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg-soft);
  background: color-mix(in oklab, white 7%, transparent);
}

.place__status.is-good {
  color: var(--emerald-300);
  background: color-mix(in oklab, var(--emerald-400) 14%, transparent);
}

.pm.is-hover .pm__head {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--mc-yellow), 0 6px 14px -4px rgb(0 0 0 / 0.7);
}

.pm.is-hover .pm__tag {
  background: rgb(0 0 0 / 0.7);
}

.controls [data-tip]::after,
.panel__collapse::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(4px, -50%);
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}

.panel__collapse {
  position: relative;
}

.panel__collapse::after {
  right: auto;
  left: calc(100% + 14px);
  transform: translate(-4px, -50%);
}

.controls [data-tip]:hover::after,
.panel__collapse:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.controls [aria-expanded='true']::after {
  display: none;
}

.layers {
  position: relative;
}

.layers__pop {
  position: absolute;
  right: calc(100% + 14px);
  bottom: -4px;
  width: 280px;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  padding: 10px;
  background: var(--glass-strong);
  animation: pop-in 0.18s ease both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pop-title {
  margin: 2px 6px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pop-sub {
  margin: 12px 6px 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.pop-empty {
  margin: 6px;
  color: var(--muted);
  font-size: 13px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.switch-row:hover {
  background: var(--hover);
}

.switch-row__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: none;
  background: color-mix(in oklab, white 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}

.switch-row__icon img {
  width: 16px;
  height: 16px;
}

.switch-row__label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.switch-row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.switch-row__pre {
  font-size: 10.5px;
  color: var(--subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.switch-row__main {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.switch-row__icon .ico {
  width: 15px;
  height: 15px;
  color: var(--fg-soft);
}

.switch-row__count {
  font-size: 11px;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 34px;
  height: 20px;
  margin: 0;
  flex: none;
  border-radius: 99px;
  background: var(--muted-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: background-color 0.2s;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switch:checked {
  background: var(--primary);
}

.switch:checked::after {
  transform: translateX(14px);
  background: white;
}

/* Coordinates */

.coords {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: var(--edge);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  height: 36px;
  padding: 0 16px;
  border-radius: 99px;
  pointer-events: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.coords__item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.coords__axis {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--subtle);
}

.coords__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}


/* Menus, toasts, offline */

.menu {
  z-index: 1200;
  min-width: 220px;
  padding: 6px;
  background: var(--glass-strong);
  animation: pop-in 0.16s ease both;
}

.menu .pop-title {
  margin: 6px 8px 6px;
}

.menu__head {
  margin: 4px 8px 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 13px;
  transition: background-color 0.12s;
}

.menu__item:hover,
.menu__item:focus-visible {
  background: var(--hover);
  outline: none;
}

.menu__item.is-active {
  background: color-mix(in oklab, white 7%, transparent);
}

.menu__ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.menu__icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.menu__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.menu__label {
  font-weight: 500;
}

.menu__meta {
  font-size: 11.5px;
  color: var(--muted);
}

.menu__check {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.context {
  position: fixed;
}

.toasts {
  position: fixed;
  z-index: 1500;
  left: 50%;
  bottom: calc(var(--edge) + 52px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(92vw, 420px);
  padding: 9px 14px;
  border-radius: 99px;
  background: var(--glass-strong);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast .ico {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.toast.is-in {
  opacity: 1;
  transform: none;
}

.offline {
  position: fixed;
  z-index: 1400;
  top: calc(var(--edge) + var(--top-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 99px;
  border-color: color-mix(in oklab, var(--red-400) 35%, transparent);
  font-size: 13px;
  color: var(--fg-soft);
  white-space: nowrap;
}

.offline .ico {
  color: var(--danger);
}

.is-following .offline {
  top: calc(var(--edge) + var(--top-h) + 64px);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: var(--stone-950);
  color: var(--fg);
}

/* Map markers */

.pm-wrap {
  background: none;
  border: 0;
}

.pm {
  position: relative;
  width: 22px;
  height: 22px;
}

.pm__head {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--stone-800);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--stone-950) 70%, transparent), 0 6px 14px -4px rgb(0 0 0 / 0.7);
  transition: box-shadow 0.2s, transform 0.2s;
}

.pm__head img {
  display: block;
  width: 100%;
  height: 100%;
}

.pm__head img.is-fallback {
  width: 16px;
  height: 16px;
  margin: 3px;
}

.pm:hover .pm__head {
  transform: scale(1.08);
}

.pm__tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 5px;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.45);
  pointer-events: none;
}

.pm__hp {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--stone-950) 75%, transparent);
  overflow: hidden;
}

.pm__hp i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.4s, background-color 0.4s;
}

.pm.is-followed .pm__head {
  box-shadow: 0 0 0 2px var(--emerald-400), 0 0 0 6px color-mix(in oklab, var(--emerald-400) 22%, transparent), 0 6px 14px -4px rgb(0 0 0 / 0.7);
}

.pm.is-followed .pm__tag {
  background: color-mix(in oklab, var(--emerald-500) 55%, black);
}

.mk-wrap {
  background: none;
  border: 0;
}

.mk {
  position: relative;
  width: 100%;
  height: 100%;
}

.mk__icon {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.6));
  transition: transform 0.15s;
}

.mk:hover .mk__icon {
  transform: scale(1.18);
}

.mk__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

.leaflet-tooltip.tip {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--fg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.leaflet-tooltip.tip::before {
  display: none;
}

.target {
  background: none;
  border: 0;
}

.target__pin {
  position: absolute;
  left: 3px;
  top: 0;
  width: 24px;
  height: 32px;
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.55));
  animation: pin-drop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.3) both;
}

.target__pin path {
  fill: var(--emerald-400);
  stroke: color-mix(in oklab, var(--emerald-500) 60%, black);
  stroke-width: 1.2;
}

.target__pin circle {
  fill: var(--stone-950);
}

.target__pulse {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 8px;
  margin-left: -9px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--emerald-400) 55%, transparent);
  animation: target-pulse 1.8s ease-out infinite;
}

@keyframes pin-drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes target-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Popups */

.fc-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--fg);
}

.fc-popup .leaflet-popup-content {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
}

.fc-popup .leaflet-popup-tip {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: none;
}

.fc-popup .leaflet-popup-tip-container {
  margin-top: -1px;
}

.fc-popup a.leaflet-popup-close-button {
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  font: 400 18px/26px var(--font);
  color: var(--muted);
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
}

.fc-popup a.leaflet-popup-close-button:hover {
  background: var(--hover);
  color: var(--fg);
}

.pop {
  padding: 14px 16px 12px;
}

.pop__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 28px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.pop__eyebrow img {
  width: 14px;
  height: 14px;
}

.pop__eyebrow .swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.pop__eyebrow .swatch--circles {
  border-radius: 50%;
}

.pop__title {
  margin: 6px 28px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pop__title b,
.pop__title strong {
  font-weight: 600;
}

.pop__note {
  margin-top: 4px;
  color: var(--fg-soft);
  font-size: 12.5px;
}

.pop__note b,
.pop__note strong {
  color: var(--fg);
  font-weight: 600;
}

.pop__rows {
  display: grid;
  gap: 1px;
  margin: 12px 0 0;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}

.pop__row {
  display: grid;
  grid-template-columns: minmax(84px, auto) 1fr;
  gap: 12px;
  padding: 5px 0;
}

.pop__row dt {
  color: var(--muted);
  font-size: 12px;
}

.pop__row dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg);
  text-align: right;
  word-break: break-word;
}

.pop__row dd b,
.pop__row dd strong {
  font-weight: 600;
  color: var(--fg);
}

.pop__html {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--fg-soft);
}

.pop__html img {
  max-width: 100%;
  height: auto;
}

.pop__html a {
  color: var(--primary);
}

.pop__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.pop__foot .mc {
  padding-top: 2px;
  color: var(--muted);
}

.pop__player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 24px;
}

.pop__player-body {
  min-width: 0;
}

.pop--player .pop__title {
  margin: 0;
}

.pop__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.pop__meta img {
  width: 14px;
  height: 14px;
}

.pop__stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.pop__stats .heart {
  width: 11px;
  height: 11px;
}

/* Embed */

.embed-open {
  position: fixed;
  z-index: 1000;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 10px;
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}

.embed-open:hover {
  background: var(--glass-strong);
}

.embed-open img {
  width: 18px;
  height: auto;
}

.embed-open .ico {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.is-embed .compass {
  width: 38px;
  height: 38px;
}

.is-embed .top,
.is-embed .panel,
.is-embed .panel-open,
.is-embed .coords,
.is-embed .controls__more,
.is-embed .follow {
  display: none !important;
}

.is-embed {
  --edge: 12px;
}

.is-embed .map-vignette {
  background: none;
  box-shadow: inset 0 0 80px rgb(0 0 0 / 0.35);
}

/* Responsive */

@media (min-width: 761px) {
  body:not(.panel-closed):not(.is-embed) .coords,
  body:not(.panel-closed):not(.is-embed) .toasts {
    left: calc(50% + (var(--panel-w) + var(--edge)) / 2);
  }
}

@media (max-width: 1240px) {
  .status__label {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand__sep,
  .address {
    display: none;
  }

  .top {
    grid-template-columns: auto 1fr auto;
  }

  .switcher {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  :root {
    --edge: 10px;
    --top-h: 48px;
  }

  .top {
    grid-template-columns: auto 1fr;
    grid-template-areas: 'brand status' 'switcher switcher';
    gap: 8px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    padding: 0 12px 0 10px;
  }

  .brand__sub {
    display: none;
  }

  .status {
    grid-area: status;
    padding: 0 14px;
    gap: 10px;
  }

  .status__weather {
    display: none !important;
  }

  .switcher {
    grid-area: switcher;
    justify-self: stretch;
    height: 48px;
    padding: 0 6px;
    min-width: 0;
  }

  .world-picker__button {
    padding: 0 8px 0 6px;
  }

  .segments {
    flex: 1;
    min-width: 0;
  }

  .segment {
    flex: 1;
    min-width: 0;
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .world-picker__menu {
    top: calc(100% + 12px);
    left: -6px;
    min-width: 240px;
  }

  .panel {
    top: auto;
    left: var(--edge);
    right: var(--edge);
    bottom: var(--edge);
    width: auto;
    height: min(62vh, 520px);
    transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .panel-closed .panel {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    height: 56px;
  }

  .panel-closed .panel .search,
  .panel-closed .panel .panel__body {
    visibility: hidden;
  }

  .panel__head {
    padding: 8px 8px 0;
  }

  .panel__collapse::after,
  .controls [data-tip]::after {
    display: none;
  }

  .controls {
    bottom: calc(var(--edge) + 56px + 10px);
    transition: bottom 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
  }

  body:not(.panel-closed) .controls {
    opacity: 0;
    pointer-events: none;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
  }

  .coords {
    display: none;
  }

  .toasts {
    bottom: calc(var(--edge) + 72px);
  }

  .follow,
  .offline {
    top: calc(var(--edge) + var(--top-h) * 2 + 18px);
  }

  .layers__pop {
    right: calc(100% + 10px);
    width: min(280px, calc(100vw - 84px));
  }
}

@media (max-width: 420px) {
  .world-picker__name {
    display: none;
  }

  .brand__name {
    font-size: 15px;
  }
}

@media (max-width: 760px) and (max-height: 560px) {
  .compass {
    display: none;
  }

  .controls {
    flex-direction: row;
    align-items: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
