/* Обновление 3.0 — перенос главной страницы из Figma «Предложка 141». */

body {
  color: #f0f0f0;
  background: #040404 !important;
  font-family: var(--font-body);
  font-size: 20rem;
  letter-spacing: 0;
  scrollbar-width: none;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html.modal-scroll-locked,
body.modal-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

[aria-modal="true"],
dialog[open] {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

[aria-modal="true"]::-webkit-scrollbar,
dialog[open]::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body::before { display: none; }
body::after { display: none; }
html.lenis { scroll-behavior: auto; }

main,
#top,
.hero {
  background: #040404 !important;
  background-image: none !important;
}

.skip-link {
  position: fixed;
  top: 12rem;
  left: 12rem;
  z-index: 100000;
  padding: 10rem 14rem;
  border-radius: 6rem;
  color: #040404;
  background: #f0f0f0;
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24rem;
  color: #f0f0f0;
  background: #040404;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s linear;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  width: min(640rem, 92vw);
  display: grid;
  justify-items: center;
}

.loader-visual {
  width: min(360rem, 82vw);
  display: grid;
  gap: 28rem;
}

.loader-brand {
  width: min(240rem, 62vw);
  height: auto;
  justify-self: center;
}

.loader-line {
  position: relative;
  width: 100%;
  height: 3rem;
  overflow: hidden;
  border-radius: 999rem;
  background: #202020;
}

.loader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: #e63d3d;
  animation: figmaLoaderLine 1s cubic-bezier(.16, 1, .3, 1) infinite alternate;
}

@keyframes figmaLoaderLine {
  from { transform: translateX(-105%); }
  to { transform: translateX(240%); }
}

.shell {
  width: min(1720rem, calc(100% - 40rem));
  margin-right: 0;
  margin-left: max(20rem, calc((100vw - 1720rem) / 2));
}

.visually-hidden {
  position: absolute !important;
  width: 1rem !important;
  height: 1rem !important;
  margin: -1rem !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 80;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: none;
  backdrop-filter: none;
}

body.is-ready .site-header {
  opacity: 1;
  transform: none;
}

.site-header .nav {
  position: relative;
  height: 50rem;
  min-height: 50rem;
  margin-top: 40rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20rem;
}

.site-header .brand {
  width: 142rem;
  height: 50rem;
  flex: 0 0 auto;
  display: block;
}

.site-header .brand-logo {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-center {
  position: absolute;
  left: 50%;
  top: 0;
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  transform: translateX(-50%);
}

.nav-center > .gang-trigger { width: 136rem; }
.nav-center > a[href="#catalog"] { width: 113rem; }
.nav-center > .nav-menu-wrap > .nav-menu-toggle { width: 145rem; }
.nav-center > #adminPortalOpen { width: 149rem; }

.nav-menu-wrap,
.catalog-menu-wrap {
  position: relative;
}

.site-header .nav-link,
.site-header .nav-menu-toggle,
.site-header .twitch-login-trigger {
  box-sizing: border-box;
  height: 50rem;
  min-height: 50rem;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  padding: 11rem 21rem;
  border: 0;
  border-radius: 6rem;
  color: #f0f0f0;
  background: #202020;
  font-family: var(--font-body);
  font-size: clamp(14rem, 1.0417vw, 20rem);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
  transition: color .2s ease, background .2s ease, opacity .2s ease, transform .2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-menu-toggle:hover,
.site-header .nav-menu-toggle:focus-visible {
  color: #fff;
  background: #292929;
  transform: none;
}

.site-header .gang-trigger i {
  width: 10rem;
  height: 10rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e63d3d;
}

.site-header .nav-menu-toggle img {
  width: 14rem;
  height: 8rem;
  transition: transform .2s ease;
}

.site-header .nav-menu-toggle[aria-expanded="true"] img { transform: rotate(180deg); }

.site-header #adminPortalOpen {
  opacity: .4;
}

.site-header #adminPortalOpen.is-admin,
.site-header #adminPortalOpen:hover,
.site-header #adminPortalOpen:focus-visible {
  opacity: 1;
}

.site-header .twitch-login-trigger {
  width: 207rem;
  flex: 0 0 207rem;
  color: #f0f0f0;
  background: #8800ff;
}

.site-header .twitch-login-trigger:hover,
.site-header .twitch-login-trigger:focus-visible {
  background: #9725ff;
  transform: none;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10rem);
  left: 0;
  z-index: 100;
  width: 100%;
  min-width: 100%;
  padding: 0;
  display: grid;
  gap: 10rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nav-dropdown[hidden],
.catalog-dropdown[hidden] { display: none !important; }

.nav-dropdown > a,
.nav-dropdown > button {
  box-sizing: border-box;
  width: 100%;
  min-width: 100%;
  height: 50rem;
  min-height: 50rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11rem 21rem;
  border: 0;
  border-radius: 6rem;
  color: #f0f0f0;
  background: #202020;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: clamp(14rem, 1.0417vw, 20rem);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  opacity: .5;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, opacity .2s ease;
}

.nav-dropdown > a:hover,
.nav-dropdown > a:focus-visible,
.nav-dropdown > button:hover,
.nav-dropdown > button:focus-visible {
  color: #fff;
  background: #292929;
  box-shadow: none;
  opacity: .65;
}

.hero {
  position: relative;
  width: min(1720rem, calc(100% - 40rem));
  margin-right: 0;
  margin-left: max(20rem, calc((100vw - 1720rem) / 2));
  min-height: 720rem;
  height: 100vh;
  padding: 0;
  display: block;
}

.hero::before { display: none; }

.hero h1 {
  position: absolute;
  left: 0;
  bottom: 40rem;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
  font-family: var(--font-display);
  font-size: clamp(104rem, 11.4583vw, 220rem);
  font-weight: 900;
  font-style: normal;
  line-height: .8;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero h1,
#catalog .toolbar-title h2 span,
.content-menu-card > span,
.content-menu-toggle > span {
  transform-origin: left center;
}

.hero h1 span:first-child { color: #e63d3d; }

.hero-intro {
  position: absolute;
  right: 0;
  bottom: 40rem;
  width: 560rem;
}

.hero-intro p {
  margin: 0;
  color: #f0f0f0;
  font-size: 20rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.content-menu-toggle {
  width: 100%;
  min-height: 73rem;
  margin-top: 20rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16rem 24rem;
  overflow: hidden;
  border: 0;
  border-radius: 6rem;
  color: #f0f0f0;
  background: #e63d3d;
  font-family: var(--font-display);
  font-size: 32rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.content-menu-toggle:hover,
.content-menu-toggle:focus-visible {
  background: #f35252;
  transform: translateY(-3rem);
}

.content-menu-toggle img {
  width: 41rem;
  height: 41rem;
  flex: 0 0 auto;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.hero-data-registry { display: none !important; }

.content-menu-panel {
  padding: 200rem 0 210rem;
  overflow: hidden;
  color: #f0f0f0;
  background: #121212;
  opacity: 1;
}

.content-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20rem;
}

.content-menu-card {
  position: relative;
  height: auto;
  aspect-ratio: 560 / 262;
  overflow: hidden;
  display: block;
  padding: clamp(12rem, 1.0417vw, 20rem);
  border: 0;
  border-radius: 6rem;
  color: #f0f0f0;
  background: #040404;
  text-align: left;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .3s ease;
}

.content-menu-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 55% 38%, rgba(240, 240, 240, .045), transparent 42%);
  opacity: 0;
  content: "";
  transition: opacity .3s ease;
}

.content-menu-card-media {
  background:
    radial-gradient(circle at 45% 36%, rgba(255, 255, 255, .08), transparent 34%),
    repeating-radial-gradient(circle at 60% 60%, rgba(255, 255, 255, .025) 0 1rem, transparent 1rem 4rem),
    #080808;
}

.content-menu-card:hover,
.content-menu-card:focus-visible {
  background-color: #0b0b0b;
  transform: translateY(-5rem);
}

.content-menu-card:hover::before,
.content-menu-card:focus-visible::before { opacity: 1; }

.content-menu-card > span {
  position: absolute;
  left: clamp(12rem, 1.0417vw, 20rem);
  bottom: clamp(12rem, 1.0417vw, 20rem);
  z-index: 1;
  color: #f0f0f0;
  font-family: var(--font-display);
  font-size: clamp(32rem, 2.7083vw, 52rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-menu-card > img {
  position: absolute;
  top: clamp(12rem, 1.0417vw, 20rem);
  right: clamp(12rem, 1.0417vw, 20rem);
  z-index: 1;
  width: clamp(26rem, 2.1354vw, 41rem);
  height: clamp(26rem, 2.1354vw, 41rem);
  transition: transform .3s ease;
}

.content-menu-card:hover > img,
.content-menu-card:focus-visible > img { transform: rotate(8deg); }

.catalog-section {
  min-height: 100vh;
  padding: 14rem 0 231rem;
  color: #f0f0f0;
  background: #121212 !important;
  background-image: none !important;
}

.catalog-section::before,
.catalog-section::after,
.catalog-shell::before,
.catalog-shell::after {
  display: none !important;
  content: none !important;
}

.catalog-shell {
  position: relative;
  background: transparent !important;
}
.catalog-compact-sentinel { display: none; }

#catalog .catalog-toolbar,
#catalog .catalog-toolbar.is-compact {
  position: static;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none;
  backdrop-filter: none;
}

#catalog .catalog-toolbar::before,
#catalog .catalog-toolbar::after { display: none; }

#catalog .toolbar-title,
#catalog .catalog-toolbar.is-compact .toolbar-title {
  width: 100%;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}

#catalog .toolbar-title h2,
#catalog .catalog-toolbar.is-compact .toolbar-title h2 {
  margin: 0;
  width: 100%;
  max-width: none !important;
  color: #f0f0f0;
  font-family: var(--font-display);
  font-size: clamp(94rem, 9.375vw, 180rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -0.025em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

#catalog .toolbar-title h2 span {
  position: relative;
  left: 50%;
  width: max-content;
  display: block;
  transform: translateX(-50%);
  transform-origin: center;
}
#catalog .toolbar-title h2 span:first-child { color: #e63d3d; }

@media (min-width: 1501px) {
  #catalog .toolbar-title h2,
  #catalog .catalog-toolbar.is-compact .toolbar-title h2 {
    height: 278rem;
  }
}

#catalog .controls,
#catalog .catalog-toolbar.is-compact .controls {
  position: relative;
  z-index: 30;
  width: min(1430rem, 100%);
  min-height: 70rem;
  margin: 100rem auto 0;
  display: flex;
  align-items: center;
  gap: 10rem;
  padding: 10rem;
  overflow: visible;
  border: 0;
  border-radius: 6rem;
  background: #202020;
  box-shadow: none;
}

#catalog .search-wrap {
  min-width: 240rem;
  height: 50rem;
  flex: 1 1 511rem;
  display: flex;
  align-items: center;
  gap: 15rem;
  padding: 10rem 24rem;
  overflow: hidden;
  border-radius: 6rem;
  background: #f0f0f0;
}

#catalog .search-wrap > img {
  width: 21rem;
  height: 20rem;
  flex: 0 0 auto;
}

#catalog .search-wrap > span { display: none; }

#catalog .search,
#catalog .catalog-toolbar.is-compact .search {
  width: 100%;
  min-height: 29rem;
  padding: 0 0 2rem;
  outline: none;
  border: 0;
  border-bottom: 1rem solid #696969;
  border-radius: 0;
  color: #000;
  background: transparent;
  box-shadow: none;
  font-size: 20rem;
  font-weight: 500;
  letter-spacing: 0;
}

#catalog .search::placeholder { color: #000; opacity: 1; }

#catalog .filters.release-filters,
#catalog .catalog-toolbar.is-compact .filters.release-filters {
  display: flex;
  align-items: center;
  gap: 10rem;
}

#catalog .release-filters .filter-btn,
#catalog .catalog-toolbar.is-compact .release-filters .filter-btn,
.catalog-menu-toggle {
  min-height: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 10rem;
  padding: 11rem 21rem;
  border: 0;
  border-radius: 60rem;
  color: #f0f0f0;
  background: transparent;
  box-shadow: none;
  font-size: 20rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-radius .2s ease;
}

#catalog .release-filters .filter-btn:hover,
.catalog-menu-toggle:hover,
.catalog-menu-toggle:focus-visible {
  color: #fff;
  background: rgba(240, 240, 240, .06);
  transform: none;
}

#catalog .release-filters .filter-btn.active,
#catalog .catalog-toolbar.is-compact .release-filters .filter-btn.active {
  border-radius: 6rem;
  color: #f0f0f0;
  background: rgba(230, 61, 61, .4);
  box-shadow: inset 0 0 0 1rem rgba(230, 61, 61, .62);
}

#catalog .release-filters .filter-btn small {
  color: rgba(240, 240, 240, .3);
  font-size: inherit;
  font-weight: inherit;
}

#catalog .release-filters .filter-btn.active small,
#catalog .catalog-toolbar.is-compact .release-filters .filter-btn.active small {
  color: rgba(240, 240, 240, .58);
}

.catalog-menu-toggle {
  height: 50rem;
  gap: 10rem;
}

.catalog-menu-toggle img {
  width: 14rem;
  height: 8rem;
  transition: transform .2s ease;
}

.catalog-menu-toggle[aria-expanded="true"] img { transform: rotate(180deg); }

.catalog-dropdown {
  position: absolute;
  top: calc(100% + 10rem);
  right: 0;
  z-index: 60;
  box-shadow: 0 25rem 80rem rgba(0, 0, 0, .38);
}

.catalog-filter-menu {
  width: 557rem;
  padding: 10rem;
  display: flex;
  flex-direction: column;
  gap: 10rem;
  overflow: hidden;
  border-radius: 20rem;
  background: rgba(255, 255, 255, .4);
  backdrop-filter: blur(20rem);
}

#catalog .catalog-filter-menu .filter-btn,
#catalog .catalog-toolbar.is-compact .catalog-filter-menu .filter-btn {
  width: 100%;
  min-height: 50rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11rem 21rem;
  border: 0;
  border-radius: 60rem;
  color: #000;
  background: #a1a1a1;
  box-shadow: none;
  font-size: 22rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
}

#catalog .catalog-filter-menu .filter-btn:hover { transform: none; background: #b0b0b0; }

#catalog .catalog-filter-menu .filter-btn.active {
  border-radius: 6rem;
  color: #f0f0f0;
  background: rgba(230, 61, 61, .4);
  box-shadow: inset 0 0 0 1rem rgba(230, 61, 61, .62);
}

#catalog .catalog-filter-menu .filter-btn i {
  position: relative;
  width: 24rem;
  height: 24rem;
  flex: 0 0 auto;
  border-radius: 5rem;
  background: #d9d9d9;
}

#catalog .catalog-filter-menu .filter-btn.active i { background: #e63d3d; }

#catalog .catalog-filter-menu .filter-btn.active i::after {
  position: absolute;
  left: 7rem;
  top: 3rem;
  width: 7rem;
  height: 12rem;
  border: solid #fff;
  border-width: 0 3rem 3rem 0;
  content: "";
  transform: rotate(45deg);
}

.catalog-sort-menu {
  width: 230rem;
  padding: 10rem;
  border: 1rem solid rgba(240, 240, 240, .1);
  border-radius: 6rem;
  background: rgba(32, 32, 32, .96);
  backdrop-filter: blur(20rem);
}

.catalog-sort-menu button {
  width: 100%;
  min-height: 46rem;
  padding: 10rem 14rem;
  border: 0;
  border-radius: 6rem;
  color: rgba(240, 240, 240, .65);
  background: transparent;
  font-size: 16rem;
  text-align: left;
}

.catalog-sort-menu button:hover,
.catalog-sort-menu button.active {
  color: #f0f0f0;
  background: rgba(240, 240, 240, .08);
}

#catalog .catalog-stream {
  margin-top: 100rem;
  display: block;
}

#catalog .section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#catalog .game-card,
#catalog .game-card.featured {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 560 / 262;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6rem;
  color: #f0f0f0;
  background: #040404;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  isolation: isolate;
  opacity: 0;
  transform: translateY(22rem);
  animation: figmaCardIn .55s var(--ease) forwards;
  animation-delay: var(--delay);
}

@keyframes figmaCardIn {
  to { opacity: 1; transform: translateY(0); }
}

#catalog .game-card:focus-visible {
  box-shadow: 0 0 0 3rem #e63d3d;
}

#catalog .game-card::before,
#catalog .game-card::after { display: none; }

#catalog .card-visual {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #040404;
}

#catalog .card-visual img,
#catalog .cover-fallback,
#catalog .cover-fallback img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#catalog .card-visual img {
  transform: scale(1.01);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), filter .4s ease;
}

#catalog .game-card:hover .card-visual img,
#catalog .game-card:focus-visible .card-visual img { transform: scale(1.055); }

#catalog .card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .12) 35%, #000 100%);
  pointer-events: none;
}

#catalog .card-index {
  position: absolute;
  left: 20rem;
  top: 20rem;
  z-index: 3;
  color: rgba(255, 255, 255, .3);
  font-family: var(--font-body);
  font-size: 20rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
}

#catalog .card-top {
  position: absolute;
  top: 16rem;
  right: 16rem;
  left: auto;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8rem;
}

#catalog .release-badge,
#catalog .coop-badge {
  min-height: 30rem;
  display: inline-flex;
  align-items: center;
  padding: 4rem 14rem;
  border: 0;
  border-radius: 6rem;
  color: #000;
  background: #f0f0f0;
  font-family: var(--font-body);
  font-size: 16rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

#catalog .coop-badge::before { display: none; }

#catalog .card-bottom {
  position: absolute;
  left: 20rem;
  right: 20rem;
  bottom: 20rem;
  z-index: 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10rem;
  padding: 0;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

#catalog .card-title,
#catalog .featured .card-title {
  width: min(400rem, calc(100% - 20rem));
  margin: 0;
  overflow: hidden;
  color: #f0f0f0;
  font-family: var(--font-display);
  font-size: 32rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#catalog .card-open-hint {
  max-height: 0;
  overflow: hidden;
  color: rgba(240, 240, 240, .3);
  font-size: 20rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(8rem);
  transition: max-height .3s ease, opacity .3s ease, transform .3s ease;
}

#catalog .game-card:hover .card-open-hint,
#catalog .game-card:focus-visible .card-open-hint {
  max-height: 30rem;
  opacity: 1;
  transform: translateY(0);
}

#catalog .card-favorite {
  position: absolute;
  right: 20rem;
  bottom: 17rem;
  z-index: 3;
  color: #e63d3d;
  font-size: 25rem;
  filter: none;
}

#catalog .library-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  padding: 16rem;
  border: 4rem solid #e63d3d;
  border-radius: 6rem;
  color: #e63d3d;
  background: rgba(0, 0, 0, .08);
  font-family: var(--font-display);
  font-size: clamp(34rem, 3.6458vw, 70rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-10.04deg);
}

#catalog .library-stamp.completed {
  border-color: #4bc07c;
  color: #4bc07c;
}

#catalog .library-stamp.dropped {
  border-color: #e63d3d;
  color: #e63d3d;
}

#catalog .library-stamp.ignored {
  border-color: #a1a1a1;
  color: #a1a1a1;
  font-size: clamp(26rem, 2.4vw, 46rem);
}

#catalog .message {
  min-height: 180rem;
  display: grid;
  place-items: center;
  padding: 40rem;
  border: 1rem solid rgba(240, 240, 240, .1);
  border-radius: 6rem;
  color: rgba(240, 240, 240, .55);
  background: #161616;
  text-align: center;
}

#catalog .message strong {
  display: block;
  color: #f0f0f0;
  font-family: var(--font-display);
  font-size: 32rem;
  text-transform: uppercase;
}

/* Сервисные окна используют ту же чёрно-серую систему поверхностей. */
:is(.gang-dialog, .auction-dialog, .tier-dialog, .suggestions-dialog, .media-dialog, .admin-portal-dialog, .feature-dialog, .modal-panel) {
  border-color: rgba(240, 240, 240, .1) !important;
  border-radius: 6rem !important;
  color: #f0f0f0;
  background: #121212 !important;
  background-image: none !important;
  box-shadow: none !important;
}

:is(.gang-backdrop, .auction-backdrop, .tier-backdrop, .suggestions-backdrop, .media-backdrop, .admin-portal-backdrop, .feature-backdrop, .modal-backdrop) {
  background: rgba(4, 4, 4, .86) !important;
  backdrop-filter: blur(12rem);
}

:is(.gang-head h2, .auction-head h2, .tier-head h2, .suggestions-head h2, .media-head h2, .admin-portal-head h2, .feature-dialog h2, .modal-title) {
  font-family: var(--font-display) !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

:is(
  .gang-dialog::before,
  .auction-dialog::before,
  .tier-dialog::before,
  .suggestions-dialog::before,
  .suggestions-dialog::after,
  .media-dialog::before,
  .media-dialog::after,
  .admin-portal-dialog::before,
  .feature-dialog::before,
  .modal-panel::before
) {
  display: none !important;
  content: none !important;
}

:is(.gang-head, .suggestions-head, .media-head, .admin-portal-head, .tier-dialog > header) {
  border-color: #202020 !important;
  background: #121212 !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

:is(
  .gang-close,
  .auction-close,
  .tier-close,
  .suggestions-close,
  .media-close,
  .admin-portal-close,
  .feature-close,
  .modal-close,
  .tier-row-dialog-close
) {
  z-index: 500 !important;
  border: 1rem solid rgba(240, 240, 240, .16) !important;
  border-radius: 50% !important;
  color: #f0f0f0 !important;
  background: #202020 !important;
  background-image: none !important;
  box-shadow: none !important;
}

:is(
  .gang-close,
  .auction-close,
  .tier-close,
  .suggestions-close,
  .media-close,
  .admin-portal-close,
  .feature-close,
  .modal-close
):hover {
  border-color: #f0f0f0 !important;
  background: #2b2b2b !important;
}

.tier-dialog {
  border: 0 !important;
  border-radius: 0 !important;
  background: #121212 !important;
}

.tier-dialog > header {
  min-height: 144rem;
  padding-left: 20rem;
}

.tier-dialog > header > span,
.suggestions-head > div > span,
.media-head > div > span,
.admin-portal-head > div > span,
.gang-kicker {
  color: #e63d3d !important;
}

.tier-dialog header p,
.suggestions-head p,
.media-head p,
.admin-portal-head p,
.gang-head p {
  color: rgba(240, 240, 240, .48) !important;
}

.tier-board {
  gap: 3rem;
  padding: 3rem;
  background: #040404 !important;
}

.tier-row {
  border-color: #202020 !important;
  background: #161616 !important;
}

.tier-row.is-pool {
  border-color: #202020 !important;
  background: #161616 !important;
}

.tier-row.is-pool > strong,
.tier-row > .tier-row-actions {
  color: rgba(240, 240, 240, .55) !important;
  background: #202020 !important;
}

.tier-game {
  border-color: rgba(240, 240, 240, .1) !important;
  background: #202020 !important;
}

.tier-game img { background: #040404 !important; }

.tier-header-actions button,
.tier-row-actions button,
.tier-row-dialog button,
.tier-confirm-dialog button {
  border-color: rgba(240, 240, 240, .14) !important;
  color: #f0f0f0 !important;
  background: #202020 !important;
  background-image: none !important;
}

.tier-row-dialog,
.tier-confirm-dialog {
  border-color: rgba(240, 240, 240, .14) !important;
  border-radius: 6rem !important;
  color: #f0f0f0 !important;
  background: #121212 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tier-row-dialog label input {
  border-color: rgba(240, 240, 240, .14) !important;
  color: #f0f0f0 !important;
  background: #202020 !important;
}

.tier-confirm-dialog button.is-danger {
  border-color: #e63d3d !important;
  background: #e63d3d !important;
}

.suggestions-tabs,
.media-tabs {
  border-color: #202020 !important;
  background: #121212 !important;
  box-shadow: none !important;
}

.suggestions-tabs button,
.media-tabs button {
  border-radius: 6rem !important;
  color: rgba(240, 240, 240, .58) !important;
  background: transparent !important;
  background-image: none !important;
}

.suggestions-tabs button.active,
.media-tabs button.active {
  border-color: rgba(240, 240, 240, .12) !important;
  color: #f0f0f0 !important;
  background: #202020 !important;
  box-shadow: none !important;
}

:is(
  .suggestion-card,
  .suggestion-form,
  .suggestion-rules,
  .suggestion-comments-dialog,
  .media-form,
  .media-locked,
  .media-queue-item,
  .admin-portal .panel,
  .feature-dialog
) {
  border-color: rgba(240, 240, 240, .12) !important;
  border-radius: 6rem !important;
  background: #161616 !important;
  background-image: none !important;
  box-shadow: none !important;
}

:is(
  .suggestions-dialog input,
  .suggestions-dialog textarea,
  .suggestions-dialog select,
  .media-dialog input,
  .media-dialog textarea,
  .media-dialog select,
  .admin-portal-dialog input,
  .admin-portal-dialog textarea,
  .admin-portal-dialog select
) {
  border-color: rgba(240, 240, 240, .14) !important;
  border-radius: 6rem !important;
  color: #f0f0f0 !important;
  background: #202020 !important;
  background-image: none !important;
}

.admin-portal-dialog {
  border-left: 1rem solid #202020 !important;
}

.auction-workspace::before { display: none !important; }

.auction-sidebar {
  border-color: #202020 !important;
  background: #040404 !important;
  background-image: none !important;
}

.auction-sidebar > strong {
  border-color: rgba(240, 240, 240, .14) !important;
  border-radius: 6rem !important;
  color: #f0f0f0 !important;
  background: #202020 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.auction-sidebar .auction-tabs button {
  border-color: transparent !important;
  border-radius: 6rem !important;
  color: rgba(240, 240, 240, .48) !important;
  background: transparent !important;
  background-image: none !important;
}

.auction-sidebar .auction-tabs button.active {
  border-color: rgba(240, 240, 240, .12) !important;
  color: #f0f0f0 !important;
  background: #202020 !important;
}

.auction-content { background: #121212 !important; }

:is(
  .auction-wheel-toolbar,
  .auction-board,
  .auction-wheel-panel,
  .auction-admin,
  .auction-timer,
  .auction-history,
  .auction-settings-card,
  .auction-rules,
  .auction-settings-popover,
  .auction-quick-settings
) {
  border-color: rgba(240, 240, 240, .1) !important;
  border-radius: 6rem !important;
  background: #161616 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.auction-list,
.auction-manage-list {
  gap: 1rem;
  background: #202020 !important;
}

.auction-item,
.auction-manage-item {
  background: #121212 !important;
  background-image: none !important;
}

.auction-item:hover,
.auction-item.is-highlighted {
  background: #202020 !important;
  background-image: none !important;
}

.auction-wheel {
  border-color: #f0f0f0 !important;
  box-shadow: none !important;
}

.auction-wheel::after {
  border-color: rgba(240, 240, 240, .7) !important;
  background: #040404 !important;
  box-shadow: none !important;
}

.auction-wheel > div { background: #121212 !important; }

:is(
  .auction-content input,
  .auction-content textarea,
  .auction-content select,
  .auction-number,
  .auction-segment,
  .auction-editor-toolbar button
) {
  border-color: rgba(240, 240, 240, .12) !important;
  color: #f0f0f0 !important;
  background: #202020 !important;
  background-image: none !important;
}

:is(
  .auction-spin,
  .auction-admin-toggle,
  .auction-settings-toggle,
  .auction-form button,
  .auction-timer button,
  .auction-manage-item button,
  .auction-history button,
  .auction-page-head button
) {
  border-color: rgba(240, 240, 240, .14) !important;
  border-radius: 6rem !important;
  color: #f0f0f0 !important;
  background: #202020 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.auction-spin:not(:disabled) {
  border-color: #e63d3d !important;
  background: #e63d3d !important;
}

.auction-footnote {
  color: rgba(240, 240, 240, .42) !important;
  background: #040404 !important;
}

footer {
  color: #f0f0f0;
  background: #040404;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-signature {
  margin: 0;
  color: rgba(240, 240, 240, .72);
  font-size: 14rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
}

/* Компактная карточка игры целиком помещается в окно браузера. */
.game-modal {
  padding: 16rem;
}

.modal-panel {
  width: min(1100rem, calc(100vw - 32rem));
  height: min(680rem, calc(100dvh - 32rem));
  max-height: calc(100dvh - 32rem);
  overflow: hidden;
  grid-template-columns: minmax(300rem, .72fr) minmax(0, 1.28fr);
}

.modal-media {
  position: relative;
  height: 100%;
  min-height: 0;
}

.modal-media img,
.modal-media .cover-fallback {
  height: 100%;
  min-height: 0;
}

.modal-content {
  min-height: 0;
  overflow: hidden;
  padding: 26rem 28rem 22rem;
}

.modal-badges { margin-bottom: 10rem; }

.modal-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(34rem, 3.2vw, 56rem);
  line-height: .92;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.modal-release {
  margin-top: 10rem;
  font-size: 15rem;
}

.modal-collection-tabs {
  margin-top: 14rem;
  padding: 10rem;
}

.modal-tabs-label { margin-bottom: 7rem; }
.modal-tabs-list { gap: 6rem; }

.modal-collection-tab {
  min-height: 38rem;
  padding: 6rem;
}

.modal-collection-tab i {
  width: 19rem;
  height: 19rem;
}

.modal-library-notice {
  min-height: 0;
  margin-top: 6rem;
}

.modal-library-notice:empty { display: none; }

.modal-reputation {
  margin-top: 10rem;
  padding: 10rem;
}

.modal-reputation-row {
  grid-template-columns: 38rem minmax(70rem, 1fr) 38rem;
  gap: 8rem;
}

.modal-vote-button { height: 36rem; }
.modal-reputation-row strong { font-size: 27rem; }

.modal-section { margin-top: 14rem; }

.modal-section h3 { margin-bottom: 6rem; }

.modal-section p {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.48;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.modal-comment {
  padding: 10rem 12rem;
  -webkit-line-clamp: 2 !important;
}

.modal-footer { margin-top: 14rem; }

.modal-steam {
  min-height: 40rem;
  padding: 8rem 14rem;
}

@media (max-width: 1500px) {
  .shell,
  .hero {
    width: min(1320rem, calc(100% - 80rem));
    margin-right: auto;
    margin-left: auto;
  }
  .site-header .nav { margin-top: 28rem; }
  .site-header .brand { width: 114rem; height: 40rem; }
  .site-header .nav-link,
  .site-header .nav-menu-toggle,
  .site-header .twitch-login-trigger { min-height: 44rem; padding: 9rem 15rem; }
  .hero-intro { width: min(500rem, 38vw); }
  .hero-intro p { font-size: 17rem; }
  .content-menu-panel { padding-block: 130rem; }
  .content-menu-card { height: auto; }
  #catalog .controls,
  #catalog .catalog-toolbar.is-compact .controls { margin-top: 80rem; }
  #catalog .release-filters .filter-btn,
  .catalog-menu-toggle { padding-inline: 13rem; font-size: 15rem; }
}

@media (max-width: 1280px) {
  #catalog .controls,
  #catalog .catalog-toolbar.is-compact .controls {
    min-height: 0;
    flex-wrap: wrap;
  }
  #catalog .search-wrap {
    min-width: 0;
    flex: 1 0 calc(100% - 20rem);
  }
  #catalog .release-filters {
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #catalog .release-filters::-webkit-scrollbar { display: none; }
}

@media (max-width: 1100px) {
  .shell,
  .hero {
    width: min(100% - 40rem, 940rem);
    margin-right: auto;
    margin-left: auto;
  }
  .site-header .nav { align-items: flex-start; }
  .nav-center {
    top: 64rem;
    left: 0;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4rem;
    transform: none;
    scrollbar-width: none;
  }
  .nav-center::-webkit-scrollbar { display: none; }
  .hero h1 { bottom: 210rem; }
  .hero-intro { right: auto; left: 0; bottom: 30rem; width: min(560rem, 100%); }
  .content-menu-panel { padding-block: 80rem; }
  .content-menu-card { height: auto; }
}

@media (max-width: 720px) {
  html {
    max-width: 100%;
    overflow-x: clip;
    scroll-padding-top: 112rem;
  }
  body {
    max-width: 100%;
    overflow-x: clip;
    font-size: 16rem;
  }
  .shell,
  .hero {
    width: calc(100% - 24rem);
    margin-right: auto;
    margin-left: auto;
  }
  .site-header .nav { margin-top: 16rem; }
  .site-header .brand { width: 85rem; height: 30rem; }
  .site-header .twitch-login-trigger {
    width: 180rem;
    min-height: 36rem;
    flex-basis: 180rem;
    padding: 8rem 10rem;
    font-size: 11rem;
  }
  .nav-center {
    top: 48rem;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .site-header .nav-link,
  .site-header .nav-menu-toggle { min-height: 38rem; padding: 8rem 12rem; font-size: 13rem; }
  .site-header .nav-dropdown > a,
  .site-header .nav-dropdown > button {
    height: 38rem;
    min-height: 38rem;
    padding: 8rem 12rem;
    font-size: 13rem;
  }
  .hero { min-height: 700rem; }
  .hero h1 {
    top: 190rem;
    bottom: auto;
    font-size: clamp(62rem, 19vw, 92rem);
    white-space: normal;
  }
  .hero-intro { bottom: 24rem; }
  .hero-intro p { font-size: 16rem; }
  .content-menu-toggle { min-height: 60rem; padding: 12rem 16rem; font-size: 25rem; }
  .content-menu-toggle img { width: 34rem; height: 34rem; }
  .content-menu-panel { padding-block: 40rem; }
  .content-menu { grid-template-columns: 1fr; gap: 10rem; }
  .content-menu-card { height: 190rem; }
  .content-menu-card > span { font-size: 38rem; }
  .catalog-section { padding-top: 30rem; }
  #catalog .toolbar-title h2,
  #catalog .catalog-toolbar.is-compact .toolbar-title h2 { font-size: clamp(62rem, 20vw, 90rem); }
  #catalog .controls,
  #catalog .catalog-toolbar.is-compact .controls { margin-top: 55rem; padding: 8rem; }
  #catalog .search-wrap {
    min-width: 0;
    height: 46rem;
    flex: 1 0 100%;
    padding-inline: 16rem;
  }
  #catalog .search { font-size: 16rem; }
  #catalog .release-filters {
    min-width: 0;
    max-width: 100%;
    flex: 1 0 100%;
  }
  #catalog .catalog-menu-wrap {
    min-width: 0;
    flex: 1 1 calc(50% - 5rem);
  }
  #catalog .catalog-menu-toggle { width: 100%; }
  #catalog .release-filters .filter-btn,
  .catalog-menu-toggle { min-height: 42rem; padding: 9rem 12rem; font-size: 14rem; }
  .catalog-filter-menu { width: min(340rem, calc(100vw - 24rem)); }
  #catalog .catalog-filter-menu .filter-btn,
  #catalog .catalog-toolbar.is-compact .catalog-filter-menu .filter-btn {
    min-height: 46rem;
    padding: 9rem 14rem;
    font-size: 18rem;
  }
  #catalog .catalog-stream { margin-top: 55rem; }
  #catalog .section-grid { grid-template-columns: 1fr; gap: 12rem; }
  #catalog .card-index { font-size: 14rem; }
  #catalog .release-badge,
  #catalog .coop-badge { min-height: 26rem; padding: 3rem 10rem; font-size: 12rem; }
  #catalog .card-title,
  #catalog .featured .card-title { font-size: 24rem; }
  #catalog .card-open-hint { font-size: 14rem; }
}

/* На ноутбуках с низким экраном первый экран должен помещаться без
   принудительной высоты 720px и дополнительной прокрутки. */
@media (min-width: 721px) and (max-height: 720px) {
  .hero {
    min-height: 100svh;
    height: 100svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-menu-panel,
  .content-menu-toggle img,
  #catalog .game-card { transition: none; animation: none; opacity: 1; transform: none; }
}

/* Display typography from the Figma layout. */
:is(
  .hero h1,
  .content-menu-toggle > span,
  .content-menu-card > span,
  #catalog .toolbar-title h2,
  #catalog .toolbar-title h2 span,
  #catalog .card-title,
  #catalog .featured .card-title,
  .game-modal .modal-title,
  .suggestions-panel.is-figma-proposal #suggestionSubmitButton > .figma-submit-label,
  .media-panel.is-figma-proposal #mediaSubmitButton > .figma-submit-label,
  .game-modal .modal-steam
) {
  font-family: 'DrukCyr-Heavy', 'Druk Cyr', sans-serif !important;
}

.suggestions-panel.is-figma-proposal #suggestionSubmitButton > .figma-submit-label,
.media-panel.is-figma-proposal #mediaSubmitButton > .figma-submit-label {
  font-size: 32rem !important;
}

.game-modal .modal-steam {
  font-size: 28rem !important;
}

