/* Подписи ЛК поверх вёрстки Flex: свой логотип, топы, пустые файлы. */

#header .header_logo {
  position: relative;
  width: 40px;
  height: 40px;
  margin-top: 0;
  flex: 0 0 40px;
  overflow: hidden;
}

#header .header_logo img {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

.fx-copy-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}

.fx-foot-logo {
  display: block;
  width: 340px;
  height: 120px;
  margin: 0 auto 12px;
  object-fit: cover;
  object-position: 55% 46%;
}

.fx-miss {
  opacity: 0.7;
  font-size: 14px;
  line-height: 1.4;
}

.about_rates {
  flex-wrap: wrap;
  gap: 12px 0;
}

.about_list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.about_list li {
  margin: 0 0 10px;
  line-height: 1.45;
}

.modal_item_btns {
  flex-wrap: wrap;
  gap: 8px;
}

/* На главной дата открытия сидит ниже логотипа, а не по центру экрана. */
#mainpage #maincontent .maininformer.active {
  align-self: flex-start;
  margin-top: 4vh;
}

body#home .maininformer_desc {
  display: block;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  margin-top: 36px;
  margin-bottom: 10px;
  padding: 8px 18px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(243, 215, 176, 0.72);
  background:
    linear-gradient(180deg, rgba(90, 58, 28, 0.45), rgba(10, 7, 7, 0) 58%),
    rgba(10, 7, 7, 0.9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  color: #f3d7b0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
}

.streams_item iframe,
.streams_item .lk-tiktok-live {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Главная листается: первый экран — герой, ниже тот же блок стримов, что на описании. */
body#home {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body#home #mainpage {
  height: auto;
  min-height: 72vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body#home .mainpage_container,
body#home #maincontent {
  height: auto;
}

body#home .mainpage_container {
  padding-bottom: 8px;
}

body#home #streams {
  margin-top: 0;
  padding: 8px 0 12px;
  background: #0a0707;
  position: relative;
  z-index: 2;
}

body#home #footer,
body#home #footer.opened,
body#home #footer.closed {
  display: block;
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  animation: none;
}

/*
  Ноутбук 14" (высота окна ~700–800px): герой не должен обрезаться.
  На высоком мониторе отступы остаются прежними.
*/
@media screen and (max-height: 860px) {
  body#home {
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
  }

  body#home #mainpage {
    flex: none;
    min-height: 72vh;
    height: auto;
    background-size: cover;
    background-position: center center;
  }

  body#home .mainpage_container {
    height: auto;
    padding-top: 84px;
    padding-bottom: 28px;
    box-sizing: border-box;
  }

  body#home #maincontent {
    height: auto;
    min-height: 0;
    margin: 0;
    padding-top: 0;
    align-items: center;
  }

  body#home #maincontent .maininformer.active {
    margin-top: 0;
  }

  body#home #mainpage .maininformer_title {
    font-size: 46px;
    line-height: 50px;
  }

  body#home .maininformer_desc {
    margin-top: 36px;
    margin-bottom: 6px;
    font-size: 16px;
  }

  body#home .maininformer > img {
    max-height: 14px;
    width: auto;
  }

  body#home .maininformer_content {
    font-size: 16px;
    line-height: 22px;
    margin-top: 8px;
  }

  body#home .maininformer_preim {
    margin-top: 10px;
  }

  body#home .maininformer_preim-item {
    width: 96px;
    height: 96px;
    padding: 8px 6px;
    margin-right: 10px;
  }

  body#home .maininformer_preim-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  body#home .maininformer_preim-item span {
    margin-top: 4px;
    font-size: 14px;
  }

  body#home .maininformer_btns {
    margin-top: 12px;
  }

  body#home .maininformer_btns a {
    font-size: 18px;
  }

  body#home .maininformer_btns .btn-game,
  body#home .maininformer_btns .btn-primary {
    width: 210px;
    height: 48px;
  }

  body#home .fx-actions {
    width: 432px;
  }

  body#home .fx-premium-btn {
    height: 40px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  body#home .maininformer_selectors {
    align-self: center;
  }

  body#home #footer,
  body#home #footer.opened,
  body#home #footer.closed {
    display: block;
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    flex: 0 0 auto;
    padding: 14px 0 16px;
    animation: none;
  }

  body#home #footer .footer_copyrights,
  body#home #footer.opened .footer_copyrights {
    margin-top: 8px;
    margin-bottom: 0;
  }
}

.fx-cabinet-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

#header .header_rightside {
  align-self: flex-start;
  padding-top: 12px;
}

#header .header_btns {
  align-items: flex-start;
}

.header_btns a.fx-l2pick {
  display: block;
  width: 80%;
  margin: 0 0 0 auto;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
}

.header_btns a.fx-l2pick img {
  display: block;
  width: 100%;
  height: auto;
}

body#page .header_btns a.fx-l2pick,
body#page .fx-l2pick--foot {
  display: none;
}

.fx-l2pick--foot {
  display: none;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
}

.fx-l2pick--foot img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 780px) {
  body#home .header_btns a.fx-l2pick {
    display: none;
  }

  body#home .fx-l2pick--foot {
    display: block;
    width: min(280px, 86%);
    margin: 18px auto 12px;
  }

  .fx-cabinet-col {
    width: 100%;
  }

  /* Шапка в потоке: кнопки больше не накрывают дату открытия. */
  body#home {
    background-color: #0a0707;
    background-image: url("../img/mainpage_bg.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }

  body#home #header,
  body#home #header.fixed,
  body#home #header.unfixed {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    padding: 10px 16px 4px;
    background: linear-gradient(180deg, rgba(10, 7, 7, 0.72) 0%, rgba(10, 7, 7, 0.18) 100%);
  }

  body#home #mainpage {
    background-image: none;
    background-color: transparent;
  }

  body#home .mainpage_container {
    padding-top: 6px;
  }

  body#home #maincontent {
    margin-top: 0;
    padding-top: 0;
  }

  body#home .maininformer_selectors {
    display: none;
  }

  body#home #maincontent .maininformer.active {
    align-items: center;
    width: 100%;
    margin-top: 0;
    text-align: center;
  }

  body#home .maininformer_desc {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 12px auto 10px;
    padding: 8px 16px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(243, 215, 176, 0.72);
    background:
      linear-gradient(180deg, rgba(90, 58, 28, 0.45), rgba(10, 7, 7, 0) 58%),
      rgba(10, 7, 7, 0.9);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    color: #f3d7b0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-align: center;
  }
}

.second_nav_item .fx-nav-icon,
.header_menu_link .fx-nav-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body#home #header,
body#home #header.fixed,
body#home #header.unfixed {
  height: auto;
  min-height: 96px;
}

body#home #header .header_logo,
body#home #header .header_logo img {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  flex-basis: 80px;
}

body#page #header,
body#page #header.fixed,
body#page #header.unfixed {
  display: none;
}

.stream_nav_items a.fx-stream-add {
  margin: 0 28px;
  font-family: "Crimson", serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #efe8e3;
  white-space: nowrap;
}

.stream_nav_items a.fx-stream-add:hover {
  color: #f3d7b0;
}

body#page #infoline,
body#page #infoline.fixed,
body#page #infoline.unfixed {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  z-index: 2;
  animation: none;
}

body#page #infoline .selector_item-lable {
  display: none;
}

body#page #infopage {
  height: auto;
  min-height: 0;
  background: #0a0707;
  background-image: none;
}

body#page #infopage::after {
  display: none;
}

body#page .infopage_container {
  height: auto;
  min-height: 0;
}

/* Описание мира на странице /about */
.fx-lore-tab.about_container {
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  overflow: visible;
  align-items: flex-start;
  padding-top: 36px;
  padding-bottom: 48px;
  background-color: #0a0707;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
}

.fx-lore-tab .about_content {
  width: min(1080px, 100%);
  justify-content: flex-start;
}

.fx-lore-tab .about_content > img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.fx-lore {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 22px;
  width: 100%;
}

.fx-lore-card {
  background:
    linear-gradient(180deg, rgba(14, 10, 10, 0.88) 0%, rgba(10, 7, 7, 0.72) 100%);
  border: 1px solid rgba(239, 232, 227, 0.22);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(3, 2, 2, 0.45);
  padding: 22px 22px 16px;
}

.fx-lore-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 176, 154, 0.72);
}

.fx-lore-title {
  margin: 6px 0 14px;
  font-family: "Crimson", serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  background: linear-gradient(180deg, #d6c399, #e4e2d8 50%, #e9cfb9, #f7cca4 60%, #e4e2d8 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.fx-fact {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(239, 232, 227, 0.14);
}

.fx-fact b {
  font-family: "Crimson", serif;
  font-weight: 600;
  font-size: 18px;
  color: #efe8e3;
}

.fx-fact span,
.fx-lore-lead {
  color: rgba(239, 232, 227, 0.82);
  font-size: 16px;
  line-height: 1.45;
}

.fx-lore-lead {
  margin: 0 0 12px;
}

.fx-shot {
  margin: 6px 0 4px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(239, 232, 227, 0.28);
  box-shadow: 0 10px 28px rgba(3, 2, 2, 0.55);
}

.about_content .fx-coin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.about_content .fx-coin img {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.about_content .fx-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .fx-lore {
    grid-template-columns: 1fr;
  }

  .fx-lore-tab.about_container {
    padding-top: 24px;
  }
}

@media (max-width: 780px) {
  #header .header_logo,
  #header .header_logo img {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    flex-basis: 34px;
  }

  .fx-brand {
    font-size: 18px;
    max-width: 150px;
  }
}

.fx-lore-tab .wrapper,
.fx-lore-tab .about_content,
.fx-lore-tab .dynamic_content_wrapper,
.fx-wiki,
.fx-wiki-block {
  min-width: 0;
  max-width: 100%;
}

.fx-wiki {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 22px;
}

.fx-wiki-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fx-wiki-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(239, 232, 227, 0.28);
  border-radius: 8px;
  background: rgba(10, 7, 7, 0.72);
  color: #efe8e3;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-wiki-nav a:hover {
  color: #f3d7b0;
  border-color: rgba(243, 215, 176, 0.55);
}

.fx-wiki-block {
  background: linear-gradient(180deg, rgba(14, 10, 10, 0.92) 0%, rgba(10, 7, 7, 0.78) 100%);
  border: 1px solid rgba(239, 232, 227, 0.22);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(3, 2, 2, 0.45);
  padding: 22px 22px 18px;
  scroll-margin-top: 96px;
}

.fx-wiki-block h3,
.fx-wiki-block h4,
.fx-wiki-block p,
.fx-wiki-block li {
  overflow-wrap: break-word;
}

.fx-wiki-block h4 {
  margin: 18px 0 8px;
  font-family: "Crimson", serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: #efe8e3;
}

.fx-wiki-block p,
.fx-wiki-block li {
  margin: 0 0 10px;
  color: rgba(239, 232, 227, 0.88);
  font-size: 16px;
  line-height: 1.45;
}

.fx-wiki-block ul,
.fx-wiki-block ol {
  margin: 8px 0 4px;
  padding-left: 20px;
}

.fx-wiki-block a {
  color: #f3d7b0;
}

.fx-wiki-block b {
  font-weight: 600;
  color: #efe8e3;
}

.fx-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(243, 215, 176, 0.45);
  border-radius: 999px;
  background: rgba(10, 7, 7, 0.92);
  color: #f3d7b0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-family: "Crimson", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.fx-to-top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.fx-to-top:hover {
  color: #efe8e3;
  border-color: #b02114;
}

@media (max-width: 640px) {
  .fx-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px;
  }

  .fx-to-top span {
    display: none;
  }
}

.fx-wiki-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 8px 0 4px;
}

.fx-wiki table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.fx-wiki th,
.fx-wiki td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(239, 232, 227, 0.14);
}

.fx-wiki th {
  font-family: "Crimson", serif;
  font-weight: 600;
  font-size: 16px;
  color: #c9b09a;
}

.fx-wiki td {
  font-size: 15px;
  line-height: 1.35;
  color: rgba(239, 232, 227, 0.86);
}

.fx-actions {
  width: 540px;
  max-width: 100%;
  margin-top: 10px;
}

.fx-actions__label {
  margin: 0 0 8px;
  text-align: center;
  font-family: "Crimson", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f3d7b0;
}

.fx-premium-btns {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-top: 0;
  gap: 12px;
}

.fx-premium-btn {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(243, 215, 176, 0.5);
  background:
    linear-gradient(180deg, rgba(90, 58, 28, 0.35), rgba(10, 7, 7, 0) 55%),
    rgba(10, 7, 7, 0.82);
  color: #f3d7b0;
  font-family: "Crimson", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(243, 215, 176, 0.12), 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.fx-premium-btn:hover {
  color: #fff6e8;
  border-color: #f3d7b0;
  box-shadow: inset 0 0 0 1px rgba(243, 215, 176, 0.2), 0 0 16px rgba(243, 215, 176, 0.22);
}

.fx-premium-btn--solo {
  width: 100%;
  margin-top: 12px;
  gap: 10px;
}

.fx-tg-mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 215, 176, 0.55);
  background: radial-gradient(circle at 40% 30%, #6e221c, #140a0a);
  box-shadow: 0 0 8px rgba(176, 33, 20, 0.4);
}

.fx-tg-mark svg {
  width: 13px;
  height: 13px;
  fill: #f3d7b0;
}

.fx-premium-btn:hover .fx-tg-mark {
  border-color: #f3d7b0;
  box-shadow: 0 0 10px rgba(243, 215, 176, 0.35);
}

.fx-premium-btn:hover .fx-tg-mark svg {
  fill: #fff6e8;
}

@media screen and (max-width: 780px) {
  .fx-actions,
  .fx-premium-btns {
    width: 100%;
  }
}

.fx-tg,
.fx-tg-mini {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 45;
  font-family: "Crimson", serif;
}

.fx-tg {
  width: min(340px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 18px 16px 14px;
  color: #efe8e3;
  background: linear-gradient(165deg, rgba(28, 12, 12, 0.98) 0%, #0a0707 70%);
  border: 1px solid rgba(243, 215, 176, 0.4);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 22px rgba(176, 33, 20, 0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fx-tg.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fx-tg__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(243, 215, 176, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  padding: 0;
}

.fx-tg__x::before,
.fx-tg__x::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 11px;
  height: 1px;
  background: #f3d7b0;
}

.fx-tg__x::before {
  transform: rotate(45deg);
}

.fx-tg__x::after {
  transform: rotate(-45deg);
}

.fx-tg__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}

.fx-tg__ico {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 215, 176, 0.55);
  background: radial-gradient(circle at 40% 30%, #6e221c, #140a0a);
}

.fx-tg__ico svg,
.fx-tg-mini svg {
  width: 26px;
  height: 26px;
  fill: #f3d7b0;
}

.fx-tg__kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3d7b0;
}

.fx-tg__title {
  margin-top: 2px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #efe8e3;
}

.fx-tg__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.fx-tg__list li {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(239, 232, 227, 0.86);
}

.fx-tg__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #efe8e3;
  background: linear-gradient(0deg, #b02114 50%, rgba(3, 2, 2, 0.1)), linear-gradient(0deg, rgba(3, 2, 2, 0.1), rgba(176, 33, 20, 0.8));
  box-shadow: 0 4px 12px rgba(3, 2, 2, 0.4);
}

.fx-tg__btn:hover {
  color: #fff;
  filter: brightness(1.08);
}

.fx-tg-mini {
  width: 52px;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid rgba(243, 215, 176, 0.55);
  background: radial-gradient(circle at 40% 30%, #6e221c, #140a0a);
  box-shadow: 0 0 16px rgba(176, 33, 20, 0.4);
}

.fx-tg-mini.is-on {
  display: flex;
}

@media (max-width: 720px) {
  body#page .fx-to-top.is-visible {
    bottom: 82px;
  }
}

button.fx-premium-btn {
  cursor: pointer;
}

.modal.fx-clan.active {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px 16px;
}

.fx-clan .modal_block {
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  margin: 0;
  overflow: hidden;
  padding: 28px 26px 22px;
  border-color: rgba(243, 215, 176, 0.38);
  background: linear-gradient(165deg, #1c1010 0%, #0a0707 62%);
}

.fx-clan .modal_close,
.modal_close {
  z-index: 6;
  top: 12px;
  right: 12px;
  width: 56px;
  height: 56px;
}

.modal_close img {
  width: 18px;
  height: 16px;
  pointer-events: none;
}

.modal_block::after {
  pointer-events: none;
}

.fx-clan__kicker,
.fx-clan .modal_title,
.fx-clan__lead,
.fx-clan__body,
.fx-clan__support {
  position: relative;
  z-index: 2;
}

.fx-clan__kicker {
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 215, 176, 0.72);
}

.fx-clan .modal_title {
  margin: 4px 0 0;
  font-size: 36px;
  color: #f3d7b0;
}

.fx-clan__lead {
  margin: 10px auto 0;
  max-width: 520px;
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(239, 232, 227, 0.82);
}

.fx-clan__body {
  min-height: 0;
  margin-top: 18px;
  padding-right: 6px;
  overflow: auto;
}

.fx-clan__body::-webkit-scrollbar {
  width: 6px;
}

.fx-clan__body::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(243, 215, 176, 0.35);
}

.fx-clan__block + .fx-clan__block {
  margin-top: 22px;
}

.fx-clan__block h3 {
  margin: 0 0 12px;
  font-family: "Crimson", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3d7b0;
}

.fx-clan__tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fx-stream__tiers {
  grid-template-columns: 1fr 1fr;
}

.fx-stream .fx-clan__lead,
.fx-stream .fx-clan__note {
  max-width: none;
  text-wrap: balance;
}

.fx-stream .fx-clan__note {
  margin-top: 14px;
  margin-bottom: 0;
  text-align: center;
}

.fx-clan__tiers article {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(243, 215, 176, 0.28);
  background: rgba(10, 7, 7, 0.55);
  text-align: center;
}

.fx-clan__tiers article.is-top {
  border-color: rgba(243, 215, 176, 0.7);
  box-shadow: inset 0 0 0 1px rgba(243, 215, 176, 0.12), 0 0 18px rgba(176, 33, 20, 0.25);
}

.fx-clan__tiers span {
  font-family: "Crimson", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #fff6e8;
}

.fx-clan__tiers small,
.fx-clan__tiers em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(239, 232, 227, 0.55);
}

.fx-clan__tiers b {
  margin-top: 8px;
  font-family: "Crimson", serif;
  font-size: 22px;
  font-weight: 700;
  color: #f3d7b0;
}

.fx-clan__shot {
  margin: 0 0 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(243, 215, 176, 0.32);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.fx-clan__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.fx-clan__note,
.fx-clan__stage p,
.fx-clan__siege p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(239, 232, 227, 0.78);
}

.fx-clan__stage,
.fx-clan__siege {
  margin-top: 10px;
  padding: 14px 14px 12px;
  border-radius: 8px;
  border: 1px solid rgba(243, 215, 176, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.fx-clan__stage header,
.fx-clan__siege header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.fx-clan__stage header span,
.fx-clan__siege header span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 215, 176, 0.7);
}

.fx-clan__stage header strong,
.fx-clan__siege header strong {
  font-family: "Crimson", serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff6e8;
}

.fx-clan__stage ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-clan__stage li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(10, 7, 7, 0.45);
}

.fx-clan__stage li i {
  font-style: normal;
  font-family: "Crimson", serif;
  font-size: 16px;
  font-weight: 700;
  color: #f3d7b0;
}

.fx-clan__stage li:first-child i {
  color: #f6e2a6;
}

.fx-clan__stage li span {
  font-size: 16px;
  color: #efe8e3;
}

.fx-clan__stage li em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(239, 232, 227, 0.5);
}

.fx-clan__rules {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-clan__rules li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 16px;
  border-top: 1px solid rgba(243, 215, 176, 0.12);
  font-size: 15px;
  line-height: 1.4;
  color: rgba(239, 232, 227, 0.86);
}

.fx-clan__rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b02114;
  box-shadow: 0 0 8px rgba(176, 33, 20, 0.7);
}

.fx-clan__channel {
  margin: 0 0 12px;
  text-align: center;
}

.fx-clan__channel a {
  color: #f3d7b0;
  font-size: 16px;
  text-decoration: none;
}

.fx-clan__channel a:hover {
  color: #fff6e8;
}

.fx-clan__steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-clan__steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(243, 215, 176, 0.18);
  background: rgba(10, 7, 7, 0.45);
}

.fx-clan__steps i {
  font-style: normal;
  font-family: "Crimson", serif;
  font-size: 18px;
  font-weight: 700;
  color: #f3d7b0;
}

.fx-clan__steps span {
  font-size: 16px;
  line-height: 1.35;
  color: #efe8e3;
}

.fx-clan__steps a {
  color: #f3d7b0;
  text-decoration: none;
}

.fx-clan__steps a:hover {
  color: #fff6e8;
}

.fx-clan__go {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Crimson", serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #efe8e3;
  background: linear-gradient(0deg, #b02114 50%, rgba(3, 2, 2, 0.1)), linear-gradient(0deg, rgba(3, 2, 2, 0.1), rgba(176, 33, 20, 0.8));
  box-shadow: 0 4px 12px rgba(3, 2, 2, 0.4);
}

.fx-clan__go:hover {
  color: #fff;
  filter: brightness(1.08);
}

.fx-clan__support {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(243, 215, 176, 0.18);
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(239, 232, 227, 0.82);
}

.fx-clan__support a {
  color: #f3d7b0;
  text-decoration: none;
}

.fx-clan__support a:hover {
  color: #fff6e8;
}

@media screen and (max-width: 640px) {
  .fx-clan .modal_title {
    font-size: 28px;
  }

  .fx-clan__tiers {
    grid-template-columns: 1fr;
  }

  .fx-clan__stage li {
    grid-template-columns: 28px 1fr;
  }

  .fx-clan__stage li em {
    grid-column: 2;
  }
}
