/* Fear screenshot layout — GREENTAKE engine (local 1:1) */

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic.woff2") format("woff2"),
       local("Onest");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Bounded";
  src: url("../fonts/Bounded-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fp-bg: #0b0b12;
  --fp-bg-2: #12121a;
  --fp-card: #17171f;
  --fp-card-2: #1c1c26;
  --fp-line: rgba(255, 255, 255, 0.06);
  --fp-text: #ffffff;
  --fp-muted: #8b90a5;
  --fp-blue: #4d70ef;
  --fp-blue-2: #5b7cff;
  --fp-radius: 18px;
  --fp-chat: 320px;
  --fp-max: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--fp-bg);
  color: var(--fp-text);
  font-family: Onest, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.fp-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--fp-chat);
  background:
    radial-gradient(900px 420px at 30% 18%, rgba(77, 112, 239, 0.08), transparent 60%),
    radial-gradient(700px 380px at 70% 22%, rgba(77, 112, 239, 0.05), transparent 55%),
    var(--fp-bg);
}

.fp-main {
  min-width: 0;
  padding: 18px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== HEADER ===== */
.fp-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}

.fp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #000;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  flex: 0 0 42px;
  overflow: hidden;
}

.fp-logo svg,
.fp-logo img { width: 28px; height: 28px; display: block; object-fit: contain; }

.fp-nav__play {
  background: rgba(39, 38, 48, 0.95) !important;
}

.fp-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--fp-card);
  border: 1px solid var(--fp-line);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.fp-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--fp-muted);
  line-height: 1.2;
}

.fp-meta b { color: #fff; font-weight: 600; }
.fp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block; margin-right: 6px; vertical-align: middle;
}
.fp-dot--red { background: #e14b4b; }
.fp-dot--blue { background: var(--fp-blue); }

.fp-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(23, 23, 31, 0.95);
  border: 1px solid var(--fp-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.fp-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #e8eaf2;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background .15s ease;
}
.fp-nav a svg { width: 15px; height: 15px; opacity: .95; }
.fp-nav a:hover,
.fp-nav a.is-active { background: rgba(77, 112, 239, 0.16); }

.fp-user {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.fp-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--fp-card);
  border: 1px solid var(--fp-line);
  font-weight: 700;
}
.fp-balance .coin {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7aa0ff, var(--fp-blue));
  box-shadow: 0 0 0 3px rgba(77, 112, 239, 0.18);
}
.fp-balance .plus {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fp-blue);
  font-weight: 800;
  margin-left: 2px;
}

.fp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #222;
}
.fp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fp-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--fp-blue);
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

/* ===== HEROES (full-height, no cards, grey → color) ===== */
.fp-heroes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fp-heroes--bleed .fp-hero {
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.fp-hero {
  position: relative;
  height: 480px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  cursor: pointer;
  isolation: isolate;
}
.fp-hero::before { display: none; }
.fp-hero img {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  width: auto;
  height: 92%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
  z-index: 0;
  transition: filter .35s ease, transform .35s ease;
  pointer-events: none;
}
.fp-hero:hover img {
  filter: grayscale(0) contrast(1.05) brightness(1.05);
  transform: translateX(-50%) scale(1.02);
}
.fp-hero__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 11, 18, 0.85) 70%, var(--fp-bg) 100%);
  pointer-events: none;
}
.fp-hero__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.fp-hero__title {
  margin: 0;
  font-family: Bounded, Onest, sans-serif;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.fp-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #c9cede;
  font-size: 14px;
}
.fp-online i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fp-blue);
  box-shadow: 0 0 0 4px rgba(77, 112, 239, 0.2);
}

/* ===== PROMO ===== */
.fp-promo {
  position: relative;
  min-height: 156px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  background:
    linear-gradient(90deg, #151528 0%, #1a2a6c 48%, #2a45b8 100%);
  display: flex;
  align-items: center;
  padding: 28px 32px;
}
.fp-promo__copy {
  position: relative;
  z-index: 2;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.fp-promo__copy h2 {
  margin: 0;
  font-family: Bounded, Onest, sans-serif;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}
.fp-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--fp-blue);
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(77, 112, 239, 0.35);
}
.fp-promo__btn:hover { background: var(--fp-blue-2); }
.fp-promo__art {
  position: absolute;
  right: 24px;
  bottom: 0;
  height: 118%;
  width: auto;
  max-width: 42%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

/* ===== STATS ===== */
.fp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.fp-stat {
  position: relative;
  background: #1b1a25;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  padding: 18px 22px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.fp-stat__label {
  color: #a5acc7;
  font-size: 13px;
  font-weight: 500;
}
.fp-stat__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fp-stat__value {
  font-family: Bounded, Onest, sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}
.fp-stat__icon {
  position: static;
  transform: none;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--fp-blue);
  opacity: 1;
}

/* ===== FOOTER ===== */
.fp-footer {
  margin-top: auto;
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
  gap: 16px;
}
.fp-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fp-footer__brand .fp-logo {
  width: 36px; height: 36px; border-radius: 10px;
}
.fp-footer__name {
  font-family: Bounded, Onest, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.fp-footer__copy {
  margin-top: 2px;
  color: var(--fp-muted);
  font-size: 12px;
}
.fp-footer__links {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--fp-muted);
  font-size: 14px;
}
.fp-footer__links a:hover { color: #fff; }
.fp-footer__socials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.fp-footer__socials a {
  width: auto; height: auto; border-radius: 0;
  background: transparent;
  border: 0;
  display: inline-flex; place-items: center;
  color: #a5acc7;
  padding: 0;
  transition: color .15s ease, transform .15s ease;
}
.fp-footer__socials a svg { display: block; }
.fp-footer__socials a:hover { background: transparent; color: #fff; transform: translateY(-1px); }

/* ===== CHAT ===== */
.fp-chat {
  border-left: 1px solid var(--fp-line);
  background: rgba(14, 14, 20, 0.96);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
}
.fp-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--fp-line);
  font-weight: 700;
}
.fp-chat__head button {
  width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: transparent; color: var(--fp-muted); cursor: pointer;
}
.fp-chat__list {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fp-msg {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
}
.fp-msg img {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; background: #222;
}
.fp-msg__top {
  display: flex; align-items: baseline; gap: 8px;
}
.fp-msg__top strong { font-size: 13px; }
.fp-msg__top time { font-size: 11px; color: var(--fp-muted); }
.fp-msg__text {
  margin-top: 2px;
  color: #d5d8e6;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}
.fp-chat__form {
  padding: 12px;
  border-top: 1px solid var(--fp-line);
}
.fp-chat__form input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--fp-line);
  background: var(--fp-card);
  color: #fff;
  padding: 0 14px;
  outline: none;
}
.fp-chat__form input:focus {
  border-color: rgba(77, 112, 239, 0.55);
}

/* Bridge neo engine wrappers to Fear home */
body .navbar.row { max-width: none; }
body .global-container > .container-fluid { max-width: calc(var(--fp-max) + var(--fp-chat)); }
#rowModsServers .fp-heroes.mods__wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
#rowModsServers .mods__second-image,
#rowModsServers .mod__bottom-info { display: none !important; }
.navbar-memu.drpdwn_menu .dropdown:nth-child(n + 6) { display: none !important; }

@media (max-width: 1100px) {
  .fp-app { grid-template-columns: 1fr; }
  .fp-chat { display: none; }
  .fp-main { padding: 14px 16px 24px; }
  .fp-header { grid-template-columns: 1fr auto; gap: 10px; }
  .fp-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .fp-heroes { grid-template-columns: 1fr; }
  .fp-hero { height: 320px; }
  .fp-hero__title { font-size: 42px; }
  .fp-stats { grid-template-columns: 1fr; }
  .fp-footer { grid-template-columns: 1fr; text-align: center; }
  .fp-footer__brand, .fp-footer__socials, .fp-footer__links { justify-content: center; }
}
