/* HorrorHub: общая шапка, подвал и акценты для страниц игр, оферты и конфиденциальности.
   Стиль «Полуночный сеанс», как в справочнике. Все классы с приставкой hhs-,
   чтобы не пересекаться со стилями игр; сама игра (play.html) не меняется. */
.hhs-mast, .hhs-foot { --hhs-ink: #ece8e1; --hhs-ink-2: #a9a3a0; --hhs-ink-3: #8b8590; --hhs-bg: #07070a; --hhs-rule: rgba(236, 232, 225, .09); --hhs-red: #e0182d; --hhs-glow: rgba(224, 24, 45, .45);
  font-family: "PT Sans", "Segoe UI", Arial, sans-serif; color: var(--hhs-ink); }
.hhs-mast { position: sticky; top: 0; z-index: 30; background: rgba(7, 7, 10, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hhs-rule); }
.hhs-wrap { max-width: 1360px; margin: 0 auto; padding-left: max(clamp(16px, 3.6vw, 48px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 3.6vw, 48px), env(safe-area-inset-right, 0px)); }
.hhs-mast .hhs-wrap { display: flex; align-items: stretch; height: 68px; }
.hhs-logo { display: inline-flex; align-items: center; flex: none; margin-right: 48px; text-decoration: none; color: var(--hhs-ink); font: 700 25px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.hhs-logo b { font-weight: 700; }
.hhs-logo span { color: var(--hhs-red); text-shadow: 0 0 18px var(--hhs-glow); }
.hhs-nav { display: flex; gap: clamp(16px, 1.6vw, 28px); overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.hhs-nav::-webkit-scrollbar { display: none; }
.hhs-nav a { white-space: nowrap; display: flex; align-items: center; font: 500 13px/1 "Oswald", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--hhs-ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.hhs-nav a:hover { color: var(--hhs-ink); }
.hhs-tools { display: flex; align-items: center; gap: 12px; flex: none; margin-left: 24px; }
.hhs-ours { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; font: 500 13px/1 "Oswald", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--hhs-ink); text-decoration: none; border: 1px solid var(--hhs-red); box-shadow: inset 0 0 22px rgba(224, 24, 45, .22); white-space: nowrap; }
.hhs-ours:hover { background: var(--hhs-red); color: #fff; box-shadow: 0 0 24px var(--hhs-glow); }
.hhs-acc { font: 500 13px/1 "Oswald", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--hhs-ink-2); text-decoration: none; white-space: nowrap; }
.hhs-acc:hover { color: var(--hhs-ink); }
.hhs-age { font: 700 12px/1 "PT Mono", monospace; color: var(--hhs-red); border: 1px solid var(--hhs-red); padding: 5px 5px 4px; }
.hhs-foot { background: #040406; padding: 0 0 calc(32px + env(safe-area-inset-bottom, 0px)); margin-top: 96px; }
.hhs-word { font: 700 clamp(64px, 14vw, 220px)/.9 "Oswald", sans-serif; text-transform: uppercase; letter-spacing: -.01em; color: #19171d; padding: 32px 0 24px; overflow: hidden; white-space: nowrap; margin: 0; }
.hhs-word span { color: #5a0710; }
.hhs-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 32px; }
.hhs-cols h4 { font: 500 12px/1 "Oswald", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--hhs-ink-3); margin: 0 0 16px; }
.hhs-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hhs-cols a { color: var(--hhs-ink-2); text-decoration: none; font-size: 15px; }
.hhs-cols a:hover { color: var(--hhs-red); }
.hhs-cols p { margin: 0 0 12px; color: var(--hhs-ink-2); font: 400 15px/1.6 "PT Sans", sans-serif; }
.hhs-legal { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--hhs-rule); font: 400 12px/1.5 "PT Mono", monospace; color: var(--hhs-ink-3); }
@media (max-width: 1279px) { .hhs-logo { margin-right: 32px; } .hhs-nav a { letter-spacing: .1em; } .hhs-age { display: none; } }
@media (max-width: 1023px) {
  .hhs-mast .hhs-wrap { height: auto; flex-wrap: wrap; }
  .hhs-logo { height: 60px; margin-right: auto; }
  .hhs-tools { height: 60px; }
  .hhs-nav { order: 3; flex: 1 0 100%; height: 44px; gap: 24px; border-top: 1px solid var(--hhs-rule); }
}
@media (max-width: 900px) { .hhs-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .hhs-mast .hhs-wrap { height: auto; flex-wrap: wrap; }
  .hhs-logo { height: 56px; margin-right: auto; font-size: 22px; }
  .hhs-tools { height: 56px; margin-left: 8px; gap: 8px; }
  .hhs-age { display: none; }
  .hhs-ours { height: 36px; padding: 0 12px; font-size: 12px; }
  .hhs-nav { order: 3; flex: 1 0 100%; height: 44px; gap: 24px; border-top: 1px solid var(--hhs-rule); }
  .hhs-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Страницы игр в системе «Полуночный сеанс» ----------
   Та же сетка, что у справочника (1360 px, поля 16–48 px), три шрифта: Oswald — заголовки,
   PT Sans — текст, PT Mono — подписи. Один акцент — красный. */
body:has(.hhs-mast) {
  --ink: #ece8e1; --ink-dim: #a9a3a0; --line: rgba(236, 232, 225, .1);
  --bulb: #e0182d; --bulb-hi: #f02139; --blood: #e0182d;
  --sans: "PT Sans", "Segoe UI", Arial, sans-serif; --serif: "PT Sans", "Segoe UI", Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif; --mono: "PT Mono", ui-monospace, monospace;
  --gut: clamp(16px, 3.6vw, 48px); --max: 1360px; --edge: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut)));
  font-family: var(--sans); background: #07070a; color: var(--ink);
}
/* заголовки: узкие заглавные, межстрочный с запасом под Й и Ё */
body:has(.hhs-mast) h2, body:has(.hhs-mast) main h1:not(.hero-kicker), body:has(.hhs-mast) .hero-title, body:has(.hhs-mast) .m h3, body:has(.hhs-mast) .chapter h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance;
}
body:has(.hhs-mast) h2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.02; padding-top: .06em; margin: 0 0 clamp(32px, 4vw, 56px); }

/* первый экран: заголовок, текст и кнопка помещаются в окно ноутбука */
body:has(.hhs-mast) .hero { min-height: calc(100svh - 68px); padding-top: 48px; }
body:has(.hhs-mast) .hero-copy { padding: 0 var(--gut) clamp(40px, 8vh, 88px) var(--edge); max-width: calc(var(--edge) + 680px); }
body:has(.hhs-mast) .hero-kicker { font: 400 13px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #ff4256; margin: 0 0 20px; }
body:has(.hhs-mast) .hero-title { font-size: clamp(42px, min(5.4vw, 8.6vh), 92px); line-height: 1; padding-top: .08em; margin: 0 0 24px; max-width: 12.5ch; }
body:has(.hhs-mast) .lead { font: 400 clamp(17px, 1.35vw, 20px)/1.6 var(--sans); color: #cfc9c2; max-width: 32em; margin: 0 0 32px; }
body:has(.hhs-mast) .hero-hint { right: var(--edge); font: 400 13px/1.5 var(--mono); color: var(--ink-dim); max-width: 16em; }

/* кнопки */
body:has(.hhs-mast) .cta, body:has(.hhs-mast) .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 0;
  background: #e0182d; color: #fff; font: 500 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 0 30px rgba(224, 24, 45, .35); transform: none;
}
body:has(.hhs-mast) .cta { min-height: 60px; padding: 0 36px; font-size: 17px; }
body:has(.hhs-mast) .cta:hover, body:has(.hhs-mast) .btn:hover { background: #f02139; box-shadow: 0 0 44px rgba(224, 24, 45, .6); transform: none; }
body:has(.hhs-mast) .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(236, 232, 225, .4); }
body:has(.hhs-mast) .btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); background: rgba(255, 255, 255, .03); }
body:has(.hhs-mast) .cta-note, body:has(.hhs-mast) .price-note { font: 400 14px/1.55 var(--sans); color: var(--ink-dim); max-width: 46em; }

/* секции на общей сетке */
body:has(.hhs-mast) .mech, body:has(.hhs-mast) .price, body:has(.hhs-mast) .faq { max-width: var(--max); padding-left: var(--gut); padding-right: var(--gut); }
body:has(.hhs-mast) .mech { padding-top: clamp(64px, 8vw, 112px); }
body:has(.hhs-mast) .price, body:has(.hhs-mast) .faq { padding-top: clamp(64px, 8vw, 112px); }
body:has(.hhs-mast) .sound-copy { padding: 0 var(--gut) 0 var(--edge); max-width: calc(var(--edge) + 640px); }
body:has(.hhs-mast) .sound p, body:has(.hhs-mast) .m p { font: 400 clamp(17px, 1.3vw, 19px)/1.7 var(--sans); color: #cfc9c2; max-width: 32em; }

/* механики: картинка и текст по сетке 7/5 */
body:has(.hhs-mast) .m { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); padding: clamp(32px, 4vw, 56px) 0; }
body:has(.hhs-mast) .m:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
body:has(.hhs-mast) .m h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; padding-top: .06em; margin: 0 0 16px; }

/* главы */
body:has(.hhs-mast) .chapter { grid-template-columns: 56px minmax(160px, 240px) minmax(0, 1fr) auto; gap: clamp(16px, 2vw, 32px); padding: 24px 0; }
body:has(.hhs-mast) .chapter .num { font: 700 48px/.9 var(--display); color: rgba(236, 232, 225, .22); }
body:has(.hhs-mast) .chapter h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.05; padding-top: .06em; margin: 0 0 8px; }
body:has(.hhs-mast) .chapter p { font: 400 16px/1.6 var(--sans); color: var(--ink-dim); max-width: 36em; }
body:has(.hhs-mast) .chapter .tag { font: 400 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-dim); }
body:has(.hhs-mast) .chapter .tag.ok { color: #ff4256; }
body:has(.hhs-mast) .buybar { border-radius: 0; background: #0e0d12; border: 1px solid rgba(236, 232, 225, .12); }
body:has(.hhs-mast) .buybar .sum { font: 400 14px/1.4 var(--mono); }
body:has(.hhs-mast) .buybar .sum b { font: 700 32px/1 var(--display); }

/* вопросы */
body:has(.hhs-mast) .faq summary { font: 700 clamp(17px, 1.4vw, 20px)/1.35 var(--sans); padding: 22px 48px 22px 0; }
body:has(.hhs-mast) .faq summary::after { color: #e0182d; font-family: var(--mono); }
body:has(.hhs-mast) .faq details p { font: 400 17px/1.7 var(--sans); color: #cfc9c2; }

/* финальный призыв */
body:has(.hhs-mast) .final h2 { font-size: clamp(40px, 6vw, 88px); line-height: 1; }

@media (max-width: 860px) {
  body:has(.hhs-mast) .hero { min-height: calc(100svh - 101px); padding-top: 32px; }
  body:has(.hhs-mast) .hero-copy { padding-left: var(--gut); }
  body:has(.hhs-mast) .hero-title { font-size: clamp(36px, 10.5vw, 56px); }
  body:has(.hhs-mast) .m, body:has(.hhs-mast) .m:nth-of-type(even) { grid-template-columns: 1fr; }
  body:has(.hhs-mast) .sound-copy { padding-left: var(--gut); }
  body:has(.hhs-mast) .chapter { grid-template-columns: 40px minmax(0, 1fr); }
  body:has(.hhs-mast) .chapter .ch-pic { grid-column: 2; }
  body:has(.hhs-mast) .chapter > div:not(.ch-pic):not(.state), body:has(.hhs-mast) .chapter .state { grid-column: 2; justify-items: start; text-align: left; }
  body:has(.hhs-mast) .chapter .num { font-size: 32px; }
  body:has(.hhs-mast) .cta { width: 100%; }
}
@media (orientation: landscape) and (max-height: 540px) and (min-width: 560px) {
  body:has(.hhs-mast) .hero-title { font-size: clamp(28px, 10vh, 44px); margin-bottom: 12px; }
  body:has(.hhs-mast) .cta { width: auto; min-height: 48px; }
}
body:has(.hhs-mast) main h1:not(.hero-kicker) { line-height: .98; padding-top: .06em; }
