/* BoHpts — home page, first screen, v6 (approved 16.11.2026: server list centred on the right).
   Load AFTER the theme's css/main.css and css/custom.css. Nothing in main.css has to be edited.
   Sizes are in rem on purpose: the theme scales rem with the window (html font-size depends on vw and vh).
   Desktop layout starts at 1200px — the same breakpoint the theme uses.
   l2angular: header / footer rules (sections 6, 7) are scoped to .bohpts-home so only the home page changes;
   the old plates are not rendered on home any more, so the global .servers-list hide rule is dropped
   (legal pages still show them). Fonts (section 1) stay site-wide on purpose. */

/* ---------- 1. Fonts BoHpts Display / BoHpts Text (SIL OFL 1.1) instead of Trajan Pro 3, Cormorant and Intro ---------- */
/* NOTE: the theme takes all fonts from --font-0..3, so this switches fonts on EVERY page of the site, not only home. */
@font-face { font-family: 'BoHpts Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/BoHpts/BoHptsDisplay-Regular.woff2") format('woff2'); }
@font-face { font-family: 'BoHpts Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/BoHpts/BoHptsText-Regular.woff2") format('woff2'); }
@font-face { font-family: 'BoHpts Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/BoHpts/BoHptsText-SemiBold.woff2") format('woff2'); }
@font-face { font-family: 'BoHpts Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/BoHpts/BoHptsText-Bold.woff2") format('woff2'); }

:root {
  --font-0: "BoHpts Display", "Times New Roman", Times, serif;   /* menu, buttons */
  --font-1: "BoHpts Display", "Times New Roman", Times, serif;   /* headings */
  --font-2: "BoHpts Text", Arial, sans-serif;                    /* text */
  --font-3: "BoHpts Text", Arial, sans-serif;

  --bh-gold: #c5a059;        /* theme gold */
  --bh-gold-hi: #ecd08f;
  --bh-right: 4.45rem;       /* right edge of the server list = right edge of the "Личный кабинет" button */
}
/* BoHpts Display has a single weight — do not let the browser fake bold */
html { font-synthesis: none; }

/* ---------- 2. Hero background: darkening over the picture + snow ---------- */
/* The picture itself is images/hero/bg-winter.jpg (same <img> as before, only src changes).
   [data-section-bg="hero"] is the theme's background box; ::after is a shade on top of the picture. */
[data-section-bg="hero"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 20, .86) 0%, rgba(7, 10, 20, .78) 62%, rgba(7, 10, 20, .55) 100%);
}
@media (min-width: 1200px) {
  [data-section-bg="hero"]::after {
    background:
      /* left: under the announcement, fades out smoothly by 63 % of the width */
      linear-gradient(90deg, rgba(7, 10, 20, .88) 0%, rgba(7, 10, 20, .86) 18%, rgba(7, 10, 20, .81) 29%, rgba(7, 10, 20, .72) 37%,
        rgba(7, 10, 20, .58) 43%, rgba(7, 10, 20, .38) 48.5%, rgba(7, 10, 20, .18) 54%, rgba(7, 10, 20, .05) 59%, rgba(7, 10, 20, 0) 63%),
      /* right: full-height shade under the server list */
      linear-gradient(270deg, rgba(7, 10, 20, .86) 0%, rgba(7, 10, 20, .80) 10%, rgba(7, 10, 20, .65) 19%,
        rgba(7, 10, 20, .38) 27%, rgba(7, 10, 20, .12) 33%, rgba(7, 10, 20, 0) 38%),
      /* top (under the header) and bottom (under the footer buttons) */
      linear-gradient(180deg, rgba(7, 10, 20, .82) 0%, rgba(7, 10, 20, 0) 22%),
      linear-gradient(0deg, rgba(7, 10, 20, .88) 0%, rgba(7, 10, 20, 0) 30%);
  }
}
/* Snow canvas: inside [data-section-bg="hero"], right after the <img>. Drawn by js/bohpts-v6.js */
.bh-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- 3. Header logo (new SVG, one line: sign + BOHPTS) ---------- */
/* Both theme <img class="logo__img"> get src="images/logo/bohpts-logo.svg" and the extra class logo__img_svg. */
.logo__img.logo__img_svg { width: 100%; height: auto; display: block; }                         /* phone: fills the theme slot */
@media (min-width: 1200px) {
  .logo__img.logo__img_svg:not(.logo__img_hover) { width: auto; height: 2.75rem; max-width: none; margin-right: auto; }
}

/* ---------- 4. Announcement on the left: label — title — opening date ---------- */
.hero .hero__heading { gap: 0; }
/* label with a green gem: "Доступно сейчас" */
.hero .hero__subtitle {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  font-family: var(--font-2); font-weight: 600; font-size: 12px; line-height: 1.3;
  letter-spacing: .16em; text-transform: uppercase; color: var(--bh-gold-hi);
}
.hero .hero__subtitle::before {
  content: ""; width: .62em; height: .62em; flex: none; transform: rotate(45deg);
  background: linear-gradient(135deg, #a8f7cb 0%, #37d583 42%, #0f8a4b 100%); box-shadow: 0 0 .9em rgba(55, 213, 131, .8);
}
/* title: "ОБТ Light & Dark x20", the "&" is wrapped in <i> and painted gold */
.hero .hero__title {
  font-size: min(1.8rem, 7vw); line-height: 1.04; letter-spacing: .02em; margin-top: .9rem;
  white-space: nowrap; text-wrap: balance; text-shadow: 0 .125rem 1.75rem rgba(0, 0, 0, .55);
}
.hero .hero__title i { font-style: normal; color: var(--bh-gold); }
/* the theme paragraph under the title is removed from the markup; this line is only a safety net */
.hero .hero__desc { display: none; }
/* opening date: "Открытие 20 ноября ◆ 19:00 (UTC+2) | 20:00 (UTC+3)" */
.bh-hero-date {
  margin-top: 1rem; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25em .8em;
  font-family: var(--font-1); font-size: 16px; line-height: 1.25; letter-spacing: .07em; text-transform: uppercase; color: #ecd08f;
}
.bh-hero-date span { white-space: nowrap; }                    /* date and time never break inside; on phones the time goes to line 2 */
.bh-hero-date span + i + span { color: #c9b98f; }              /* time a bit quieter than the date */
.bh-hero-date i { display: none; width: .34em; height: .34em; transform: rotate(45deg); background: var(--bh-gold); }
/* countdown to the opening under the date: "04 : 04 : 36 : 12", captions under the numbers.
   A cell is exactly as wide as its number: the caption is centred under it on a zero-width box and may stick out
   to both sides. So the gaps between the numbers are even and the first number starts on the left edge of the title. */
.bh-countdown {
  margin-top: 1.3rem; display: flex; justify-content: center; align-items: flex-start; gap: .44em;
  font-family: var(--font-1); font-size: 34px; line-height: 1; color: #fff; text-shadow: 0 .125rem 1.75rem rgba(0, 0, 0, .55);
}
.bh-countdown b { display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.bh-countdown span { font-variant-numeric: tabular-nums lining-nums; letter-spacing: .03em; }
.bh-countdown i {
  width: 0; display: flex; justify-content: center; white-space: nowrap;
  margin-top: .6em; font: 600 10px/1 var(--font-2); font-style: normal; letter-spacing: .12em; text-transform: uppercase;
  color: #c9b98f; text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.bh-countdown em { font-style: normal; color: var(--bh-gold); }
/* digit slots made by js/bohpts-v6.js: the current digit and, while it rolls away, the old one on top of it */
.bh-digit { position: relative; display: inline-block; }
.bh-digit > span { display: inline-block; }                    /* transforms need a box, not inline text */
.bh-digit > .bh-digit__old { position: absolute; left: 0; top: 0; width: 100%; text-align: center; pointer-events: none; }
.bh-countdown[data-done] { display: none; }                    /* the time is up: js/bohpts-v6.js adds data-done */
.hero .hero__btns { margin-top: 1.9rem; }

@media (min-width: 1200px) {
  .hero .hero__box { max-width: 62rem; }
  .hero .hero__subtitle { justify-content: flex-start; font-size: max(1rem, 12px); }
  .hero .hero__title { font-size: 4.9rem; margin-top: 1.1rem; }
  .bh-hero-date { justify-content: flex-start; margin-top: 1.25rem; font-size: max(1.7rem, 17px); }
  .bh-hero-date i { display: block; }
  .bh-countdown { justify-content: flex-start; margin-top: 1.6rem; font-size: max(3.2rem, 34px); gap: .46em; }
  .bh-countdown i { font-size: max(.78rem, 10px); }
  .hero .hero__btns { margin-top: 2.6rem; }
}

/* ---------- 5. Server list on the right ---------- */
/* Six equal rows, one form for all: gem — name (+ quiet "бонус" link) — online.
   A server that is not open yet: golden gem and the opening date in place of the online number
   (the live countdown is in the announcement, section 4). */
@media (min-width: 1200px) { .hero { position: relative; } }

.bh-servers {
  --line: 176, 134, 80;
  position: relative; z-index: 3; box-sizing: border-box; width: 100%; max-width: 21rem; margin: 2.8rem auto 0;
  color: #fff; text-align: left;
}
.bh-servers__head {
  display: flex; align-items: center; gap: 1em; margin-bottom: 4px;
  font: 600 10px/1 var(--font-2); letter-spacing: .26em; text-transform: uppercase; color: #c9b27a;
}
.bh-servers__head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--line), .75), rgba(var(--line), 0)); }
.bh-servers__list { list-style: none; margin: 0; padding: 0; }
.bh-server {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 12px;
  padding: 13px 0 12px; white-space: nowrap;
}
.bh-server + .bh-server::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(var(--line), .40) 0%, rgba(var(--line), .40) 62%, rgba(var(--line), 0) 100%);
}
.bh-server__gem {
  align-self: center; width: 7px; height: 7px; transform: rotate(45deg);
  background: linear-gradient(135deg, #a8f7cb 0%, #37d583 42%, #0f8a4b 100%); box-shadow: 0 0 7px rgba(55, 213, 131, .65);
}
.bh-server[data-status="new"] .bh-server__gem {
  background: linear-gradient(135deg, #fff0bd 0%, #f2bd45 42%, #a56a12 100%); box-shadow: 0 0 7px rgba(242, 189, 69, .6);
}
.bh-server__name { font: 400 17px/1.15 var(--font-1); letter-spacing: .03em; text-transform: uppercase; }
.bh-server__bonus {
  margin-left: .7em; vertical-align: .42em;
  font: 600 8.5px/1 var(--font-2); letter-spacing: .14em; text-transform: uppercase; color: #b9a06a; text-decoration: none;
}
a.bh-server__bonus:hover { color: var(--bh-gold-hi); }
.bh-server__value {
  font: 400 17px/1.15 var(--font-1); letter-spacing: .03em; color: #ecd08f; text-align: right;
  font-variant-numeric: tabular-nums lining-nums; word-spacing: -.1em;
}

@media (min-width: 1200px) {
  /* right edge under the "Личный кабинет" button; vertically on the same axis as the announcement:
     (7rem header padding + 100 % − 8.8rem footer padding) / 2 */
  .bh-servers {
    position: absolute; right: var(--bh-right); top: calc(50% - .9rem); transform: translateY(-50%);
    margin: 0; width: max(19.6rem, 238px); max-width: none;
  }
  .bh-servers__head { margin-bottom: max(.35rem, 3px); font-size: max(.7rem, 9px); }
  .bh-server { column-gap: max(.95rem, 10px); padding: max(1.02rem, 10px) 0 max(.95rem, 9px); }
  .bh-server__gem { width: max(.52rem, 6px); height: max(.52rem, 6px); }
  .bh-server__name, .bh-server__value { font-size: max(1.2rem, 14px); }
  .bh-server__bonus { font-size: max(.6rem, 8px); }
}

/* ---------- 6. Compact header + low "Личный кабинет" button (desktop only) ---------- */
/* The button stays the theme's own (.btn, same hover); only its two frame pictures and its height change.
   images/v6/btn-low*.png are built from the theme's btn*.png: same frame and side diamonds, no top/bottom diamond, lower middle.
   background-image is set on ::before/::after directly: a url() inside --btn-img-url would be resolved against
   css/main.css (where var() is used), not against this file. If you move these rules into main.css,
   you can use --btn-img-url / --btn-img-hover-url instead. */
@media (min-width: 1200px) {
  .bohpts-home { --navigation-height: 4.7rem; --navigation-height-scroll: 4.7rem; }
  .bohpts-home [data-section="navigation"] { padding-top: 1.55rem; }
  .bohpts-home .navigation__auth .btn { height: calc(var(--btn-w) * var(--btn-scale) * 87 / 396); }   /* native width, height from the 396x87 picture */
  .bohpts-home .navigation__auth .btn::before { background-image: url("../images/v6/btn-low.png"); }
  .bohpts-home .navigation__auth .btn::after { background-image: url("../images/v6/btn-low-hover.png"); }
  .hero { padding-top: 7rem; }
}

/* ---------- 7. Lower footer buttons "Отзывы игроков" and "Радио BOHPTS" (desktop only) ---------- */
/* Same size and frame as the "Личный кабинет" button. "Скачать файлы" and "Описание" stay large. */
@media (min-width: 1200px) {
  .bohpts-home .footer__fbtns { margin-left: .152rem; }
  .bohpts-home .footer__fbtns .btn { --btn-scale: .91; height: calc(var(--btn-w) * var(--btn-scale) * 87 / 396); }
  .bohpts-home .footer__fbtns .btn::before { background-image: url("../images/v6/btn-low.png"); }
  .bohpts-home .footer__fbtns .btn::after { background-image: url("../images/v6/btn-low-hover.png"); }
  .bohpts-home .footer__fbtns .btn.btn_type_2::before { background-image: url("../images/v6/btn-2-low.png"); }
  .bohpts-home .footer__fbtns .btn.btn_type_2::after { background-image: url("../images/v6/btn-2-low-hover.png"); }
  .hero { padding-bottom: 8.8rem; }
}
