:root {
  color-scheme: dark;
  --page-margin: clamp(12px, 2.1vw, 32px);
  --market-nav-height: 82px;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("/assets/fonts/inter-cyrillic-400-normal.woff2") format("woff2"),
    url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url("/assets/fonts/inter-cyrillic-600-normal.woff2") format("woff2"),
    url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #000000;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #000000;
  color: #f5f5f7;
  font-family: Inter, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

#__next {
  opacity: 1;
  transition: opacity 160ms ease;
}

body.market-app-loading #__next {
  visibility: hidden;
  opacity: 0;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.market-feed {
  width: 100%;
  padding: 0 var(--page-margin) 120px;
}

.market-grid {
  display: flex;
  align-items: flex-start;
  margin: 0 -2.1%;
}

.market-grid-column {
  flex: 1 1 0%;
  min-width: 0;
}

.market-grid-item-wrap {
  padding: 0 8.4% 16.8%;
}

.grid-item {
  position: relative;
}

.grid-item > a {
  display: block;
  text-decoration: none;
}

.market-grid-image-frame {
  position: relative;
  width: 100%;
  min-height: 120px;
  overflow: hidden;
  padding-bottom: 125%;
  background: #111111;
}

.market-grid-image-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  pointer-events: none;
}

.market-mobile-bottom-nav > ul {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.market-mobile-bottom-nav .market-mobile-nav-fade {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(170px + env(safe-area-inset-bottom));
  background: linear-gradient(
    to top,
    #000000 0%,
    rgba(0, 0, 0, 0.88) 44%,
    transparent 100%
  );
  pointer-events: none;
}

.market-mobile-bottom-nav .market-mobile-nav-track {
  position: relative;
  display: flex;
  width: 256px;
  min-width: 256px;
  max-width: 256px;
  height: 60px;
  align-items: center;
  justify-content: space-evenly;
  margin: 24px 24px calc(32px + env(safe-area-inset-bottom));
  padding-right: 4px;
  padding-left: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: auto;
}

.market-mobile-nav-indicator {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f5f5f5;
  transform: translateY(-50%);
}

.market-mobile-nav-item {
  position: relative;
  z-index: 1;
  display: flex;
  width: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.market-mobile-nav-clickable {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c7c7cc;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

.market-mobile-nav-clickable svg {
  width: 44px;
  height: 44px;
}

.market-mobile-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #8698a8;
}

.visually-hidden,
.hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
