html {
  color-scheme: dark;
  background: #101214;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background: #101214;
  color: #efede7;
  font-family: Inter, Arial, sans-serif;
}

/* -------------------------------------------------------
   Catalog status banner
------------------------------------------------------- */

.catalogStatus {
  position: relative;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(244, 157, 66, 0.35);
  background: #171816;
  color: #b7b8b0;
}

.catalogStatusInner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.catalogStatus strong {
  flex: 0 0 auto;

  color: #f49d42;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.catalogStatus code {
  padding: 1px 5px;

  border: 1px solid rgba(244, 157, 66, 0.3);
  background: rgba(244, 157, 66, 0.08);

  color: #f49d42;
  font-family: inherit;
}

/* -------------------------------------------------------
   Online counter
------------------------------------------------------- */

.onlineCount {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  flex: 0 0 auto;

  color: #b7b8b0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.onlineDot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;

  border-radius: 999px;

  background: #7f944e;
  box-shadow: 0 0 8px rgba(127, 148, 78, 0.45);
}

/* -------------------------------------------------------
   404 page
------------------------------------------------------- */

.gate:has(.notFoundCard) {
  width: 100%;
  min-height: calc(100vh - 44px);
  min-height: calc(100dvh - 44px);

  display: grid;
  place-items: center;

  padding: 28px;

  background:
    radial-gradient(
      circle at 20% -10%,
      #292a27 0,
      transparent 55%
    ),
    #101214;
}

.notFoundCard {
  width: min(430px, 100%);

  display: grid;
  gap: 18px;

  padding: 32px;

  border: 1px solid #6d5135;
  border-top: 3px solid #f49d42;

  background: linear-gradient(
    150deg,
    #292a27,
    #222523
  );

  color: #efede7;
}

.notFoundCard .eyebrow {
  margin: 0;

  color: #f49d42;

  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;

  text-transform: uppercase;
}

.notFoundCard h1 {
  margin: 0;

  color: #efede7;

  font-family:
    "Barlow Condensed",
    "Arial Narrow",
    Arial,
    sans-serif;

  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 3px;
}

.notFoundCard .lede {
  margin: 0;

  color: #b7b8b0;

  font-size: 14px;
  line-height: 1.7;
}

.notFoundCard .muted {
  margin: 0;

  color: #aaa9a2;

  font-size: 14px;
  line-height: 1.6;
}

.notFoundCard .button,
.notFoundCard .primary {
  justify-self: start;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;

  padding: 10px 14px;

  border: 1px solid #f49d42;
  border-radius: 5px;

  background: #f49d42;
  color: #171816;

  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.notFoundCard .button:hover,
.notFoundCard .primary:hover {
  border-color: #ffb261;
  background: #ffb261;
}

.notFoundCard .button:active,
.notFoundCard .primary:active {
  transform: translateY(1px);
}

.notFoundCard .button:focus-visible,
.notFoundCard .primary:focus-visible {
  outline: 2px solid #f49d42;
  outline-offset: 3px;
}

/* -------------------------------------------------------
   Mobile
------------------------------------------------------- */

@media (max-width: 700px) {
  .catalogStatusInner {
    flex-direction: column;
    gap: 4px;

    padding: 9px 14px;
  }

  .catalogStatus strong {
    white-space: normal;
  }

  .onlineCount {
    margin-top: 2px;
  }

  .gate:has(.notFoundCard) {
    min-height: calc(100dvh - 110px);
    padding: 20px 16px;
  }

  .notFoundCard {
    width: 100%;
    padding: 24px 20px;
    gap: 16px;
  }

  .notFoundCard h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .notFoundCard .button,
  .notFoundCard .primary {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 380px) {
  .notFoundCard {
    padding: 22px 18px;
  }

  .notFoundCard h1 {
    font-size: 25px;
  }
}
