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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  background-image: var(--pattern-dots);
  background-size: var(--pattern-dots-size);
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(74, 144, 217, 0.03) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

img {
  -webkit-user-drag: none;
  pointer-events: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80dvh;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
}

.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4000;
  padding: 8px 16px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  pointer-events: none;
}

.status-bar--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.status-bar--offline {
  background: linear-gradient(135deg, #ff9f43, #f59a1b);
  color: white;
}

.status-bar--online {
  background: linear-gradient(135deg, #56d880, #36b85c);
  color: white;
}

.status-bar--error {
  background: linear-gradient(135deg, #ff7171, #e54545);
  color: white;
}

.status-bar__icon {
  margin-right: 6px;
}
