/*
 * FORMA WIN — 404. Не скин Dune (Inter, песочный акцент, гигантский градиентный код).
 * Токены: mockup/brand/tokens.css. Пустое состояние как «Игра не найдена» v105.
 * SPA: #pageNotFound.fw-nf   Standalone: body.fw-nf-standalone (404.html)
 */

@font-face {
  font-family: ManropeFW;
  src: url(../v36/fonts/Manrope-Regular.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: ManropeFW;
  src: url(../v36/fonts/Manrope-Bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}

.fw-nf {
  --fw-nf-void: #07070b;
  --fw-nf-text: #f3f4f7;
  --fw-nf-mute: #8b8c96;
  --fw-nf-accent: #6b4eff;
  --fw-nf-accent-hover: #8170ff;
  --fw-nf-elev: #1c1c22;
  --fw-nf-font: ManropeFW, Manrope, system-ui, sans-serif;
  font-family: var(--fw-nf-font);
  color: var(--fw-nf-text);
}

body.fw-nf-standalone {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--fw-nf-text);
  font-family: var(--fw-nf-font);
  background-color: var(--fw-nf-void);
  background-image: radial-gradient(900px 420px at 50% -12%, rgba(107, 78, 255, 0.16), transparent 55%);
  background-repeat: no-repeat;
}

.fw-nf-standalone__header {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 20px;
  flex: none;
}

.fw-nf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.fw-nf-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: #6b4eff;
  display: grid;
  place-items: center;
}

.fw-nf-brand__mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.36);
  display: block;
}

.fw-nf-brand__name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #f3f4f7;
  white-space: nowrap;
}

.fw-nf-brand__name span {
  color: #6b4eff;
}

#pageNotFound.fw-nf:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 640px);
  padding: 48px 20px 80px;
}

.fw-nf-standalone__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 64px;
}

.fw-nf__inner {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.fw-nf__visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
}

.fw-nf__chip {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #6b4eff;
  box-shadow: 0 10px 28px rgba(107, 78, 255, 0.32);
  display: grid;
  place-items: center;
}

.fw-nf__chip img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.36);
  display: block;
}

.fw-nf__badge {
  position: absolute;
  right: -18px;
  top: -6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #6b4eff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.fw-nf__kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bca8ed;
}

.fw-nf__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #f3f4f7;
}

.fw-nf__text {
  margin: 0 auto 28px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fw-nf-mute);
}

.fw-nf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.fw-nf__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.fw-nf__btn--primary {
  background: linear-gradient(180deg, #8170ff 0%, #6b4eff 52%, #5538e8 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(107, 78, 255, 0.32);
}

.fw-nf__btn--primary:hover {
  background: linear-gradient(180deg, #9082ff 0%, #8170ff 52%, #6248f0 100%);
}

.fw-nf__btn--ghost {
  background: var(--fw-nf-elev);
  color: var(--fw-nf-text);
}

.fw-nf__btn--ghost:hover {
  background: #25252c;
}

.fw-nf__hint {
  margin: 22px 0 0;
  font-size: 12px;
  color: #5c5d66;
  word-break: break-all;
}

@media (max-width: 599px) {
  .fw-nf-standalone__header { min-height: 64px; padding: 0 16px; }
  .fw-nf-brand__name { font-size: 18px; }
  .fw-nf__title { font-size: 24px; }
  .fw-nf__chip { width: 64px; height: 64px; }
}
