*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: manipulation;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
button  { cursor: pointer; border: none; background: none; color: inherit; }
a       { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }
ul      { list-style: none; }

#app {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  will-change: opacity, transform;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
}

.scroll-y {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-y::-webkit-scrollbar { display: none; }


.city-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--c-surface2);
  border: 1.5px solid var(--c-border2);
  border-radius: var(--r-sm);
  overflow: hidden;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.city-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--c-text);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--c-border);
}

.city-option:last-child { border-bottom: none; }

.city-option:hover,
.city-option.is-active {
  background: var(--c-accent-dim);
  color: var(--c-accent);
}

.city-option svg { color: var(--c-muted); flex-shrink: 0; }

.city-option:hover svg,
.city-option.is-active svg { color: var(--c-accent); }

.city-loading {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--c-muted);
}

#main-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 8px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
}

.navbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
  color: var(--c-muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.navbar__item.is-active { color: var(--c-accent); }
.navbar__item i { font-size: 20px; }

.navbar__post {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080808;
  font-size: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.navbar__post:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--c-accent-glow);
}
