/* HorrorHub — общий стиль сайта. Ночь, фотографии, светится только то, что светится в играх. */
:root {
  --ink: #ece6d3;
  --ink-2: #cfc8b4;
  --ink-dim: #a39c88;
  --bulb: #e9c46f;
  --bulb-hi: #f3d283;
  --blood: #c9584c;
  --black: #050505;
  --panel: #0d0c0a;
  --line: rgba(236,230,211,.12);
  --serif: "Literata", Georgia, serif;
  --sans: "Golos Text", "Segoe UI", Arial, sans-serif;
  --gut: clamp(18px, 4.5vw, 64px);
  --max: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bulb); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- шапка ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px; padding: 20px var(--gut);
}
.top.solid { position: relative; border-bottom: 1px solid var(--line); background: var(--black); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 26px; height: 26px; }
.logo b { font: 800 20px/1 var(--sans); letter-spacing: -0.03em; }
.top nav { display: flex; gap: 24px; align-items: center; font: 500 15px/1 var(--sans); }
.top nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); border-bottom-color: currentColor; }
.top .age { font: 600 12px/1 var(--sans); color: var(--ink-dim); border: 1px solid rgba(236,230,211,.3); padding: 5px 7px; border-radius: 2px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; border-radius: 2px;
  background: var(--bulb); color: #0b0906; font: 700 16px/1 var(--sans); padding: 17px 26px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--bulb-hi); transform: translateY(-1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(236,230,211,.45); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(255,255,255,.03); }
.btn.big { padding: 20px 32px; font-size: 17px; }
.link { color: var(--ink-2); text-underline-offset: 4px; text-decoration-color: rgba(236,230,211,.35); }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- общие заголовки ---------- */
h1, h2, h3 { text-wrap: balance; }
.sec { padding: clamp(80px, 11vw, 140px) 0 0; }
.sec h2 { font: 800 clamp(30px, 4vw, 52px)/1.02 var(--sans); letter-spacing: -0.03em; margin: 0 0 14px; }
.sec .sub { font: 400 clamp(17px, 1.4vw, 19px)/1.6 var(--serif); color: var(--ink-dim); max-width: 36em; margin: 0 0 clamp(32px, 5vw, 56px); }

/* ---------- главная: текущий релиз ---------- */
.release { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.release-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: brightness(.55) saturate(.9); transform: scale(1.04); }
.release::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.72) 38%, rgba(5,5,5,.15) 70%),
              linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0) 38%);
}
.release-in {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gut) clamp(56px, 10vh, 110px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 6vw, 90px); align-items: end;
}
.release-kicker { font: 600 15px/1.4 var(--sans); color: var(--bulb); margin: 0 0 18px; max-width: 32em; }
.release-title { font: 800 clamp(56px, 10vw, 150px)/0.86 var(--sans); letter-spacing: -0.055em; margin: 0 0 24px; }
.release .logline { font: 400 clamp(18px, 1.7vw, 22px)/1.55 var(--serif); color: #ddd6c2; max-width: 30em; margin: 0 0 30px; }
.release .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.release .note { margin: 16px 0 0; font: 400 14px/1.5 var(--sans); color: var(--ink-dim); }
.poster {
  justify-self: end; width: min(100%, 340px); aspect-ratio: 4 / 5; position: relative;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(236,230,211,.08);
  transform: rotate(1.5deg);
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster figcaption { position: absolute; left: 0; right: 0; bottom: -34px; font: italic 400 14px/1.4 var(--serif); color: var(--ink-dim); text-align: right; transform: rotate(-1.5deg); }

/* ---------- расписание ---------- */
.schedule { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.schedule li { padding: 26px 24px 30px 0; position: relative; }
.schedule li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.schedule li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #2a2823; box-shadow: 0 0 0 4px var(--black); }
.schedule li + li::before { left: 24px; }
.schedule li.now::before { background: var(--bulb); box-shadow: 0 0 0 4px var(--black), 0 0 18px rgba(233,196,111,.6); }
.schedule time { display: block; font: 700 clamp(22px, 2.2vw, 28px)/1 var(--sans); letter-spacing: -0.02em; margin-bottom: 10px; }
.schedule .st { font: 500 14px/1 var(--sans); color: var(--ink-dim); margin: 0 0 10px; }
.schedule li.now .st { color: var(--bulb); }
.schedule b { font: 600 18px/1.3 var(--sans); }
.schedule .tbd { color: var(--ink-dim); font-weight: 400; }

/* ---------- каталог ---------- */
.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.game { position: relative; }
.game a.card { display: block; text-decoration: none; color: inherit; }
.game .pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0b0b0a; }
.game .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; filter: brightness(.88); }
.game a.card:hover .pic img { transform: scale(1.035); filter: brightness(1); }
.game.soon .pic img { filter: brightness(.55) grayscale(.35); }
.game .chip {
  position: absolute; left: 14px; top: 14px; font: 600 13px/1 var(--sans); padding: 8px 10px; border-radius: 2px;
  background: rgba(5,5,5,.75); color: var(--ink); backdrop-filter: blur(4px);
}
.game .chip.free { background: var(--bulb); color: #0b0906; }
.game h3 { font: 700 clamp(22px, 2vw, 28px)/1.1 var(--sans); letter-spacing: -0.02em; margin: 18px 0 8px; }
.game p { font: 400 16px/1.55 var(--serif); color: var(--ink-dim); margin: 0; }
.game .mine { margin-top: 10px; font: 500 14px/1 var(--sans); color: var(--bulb); }

/* ---------- как это устроено ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.how > div { padding: 30px 28px 30px 0; }
.how > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.how b { display: block; font: 800 clamp(30px, 3.4vw, 44px)/1 var(--sans); letter-spacing: -0.02em; margin-bottom: 12px; }
.how b s { font: 400 .5em/1 var(--sans); color: var(--ink-dim); margin-left: 6px; }
.how p { margin: 0; font: 400 17px/1.55 var(--serif); color: var(--ink-dim); max-width: 22em; }
.how-note { margin: 18px 0 0; font: 400 15px/1.5 var(--sans); color: var(--ink-dim); }

/* ---------- подписка ---------- */
.notify { padding: clamp(36px, 5vw, 56px); background: var(--panel); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.notify h2 { font: 800 clamp(26px, 3vw, 38px)/1.05 var(--sans); letter-spacing: -0.02em; margin: 0 0 10px; }
.notify p { margin: 0; font: 400 17px/1.55 var(--serif); color: var(--ink-dim); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input {
  flex: 1 1 220px; font: 400 16px/1.3 var(--sans); padding: 15px 14px; border-radius: 2px;
  border: 1.5px solid rgba(236,230,211,.3); background: #070707; color: var(--ink);
}
.input:focus { border-color: var(--bulb); outline: none; }
.err { color: var(--blood); font: 400 14px/1.4 var(--sans); min-height: 18px; margin: 8px 0 0; }
.ok { color: var(--bulb); font: 500 16px/1.5 var(--sans); margin: 0; }

/* ---------- подвал ---------- */
.foot { margin-top: clamp(90px, 12vw, 150px); border-top: 1px solid var(--line); padding: 44px 0 40px; color: var(--ink-dim); font: 400 14px/1.6 var(--sans); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot b { color: var(--ink); font: 800 18px/1 var(--sans); letter-spacing: -0.02em; display: block; margin-bottom: 12px; }
.foot p { margin: 0 0 8px; max-width: 34em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- страница игры ---------- */
.game-hero { position: relative; min-height: 78svh; display: grid; align-items: end; overflow: hidden; }
.game-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: brightness(.5); }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,5,1) 2%, rgba(5,5,5,.35) 55%, rgba(5,5,5,.6) 100%); }
.game-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 7vh, 80px); }
.game-hero h1 { font: 800 clamp(52px, 9vw, 128px)/0.88 var(--sans); letter-spacing: -0.05em; margin: 0 0 22px; }
.game-hero .about { font: 400 clamp(17px, 1.6vw, 21px)/1.6 var(--serif); color: #ddd6c2; max-width: 36em; margin: 0 0 24px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.facts li { font: 500 14px/1 var(--sans); padding: 9px 11px; border: 1px solid rgba(236,230,211,.25); color: var(--ink-2); border-radius: 2px; }

.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.chapter .num { font: 800 44px/1 var(--sans); color: rgba(236,230,211,.3); letter-spacing: -0.03em; }
.chapter h3 { font: 700 23px/1.2 var(--sans); margin: 4px 0 8px; }
.chapter p { font: 400 17px/1.6 var(--serif); margin: 0; color: var(--ink-dim); max-width: 34rem; }
.chapter .state { text-align: right; display: grid; gap: 10px; justify-items: end; min-width: 180px; padding-top: 6px; }
.chapter .tag { font: 500 14px/1.3 var(--sans); color: var(--ink-dim); }
.chapter .tag.ok { color: var(--bulb); }
.pick { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 600 15px/1 var(--sans); }
.pick input { width: 20px; height: 20px; accent-color: var(--bulb); margin: 0; }
.buybar { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; padding: 24px 28px; background: var(--panel); border: 1px solid var(--line); }
.buybar .sum { font: 400 15px/1.4 var(--sans); color: var(--ink-dim); }
.buybar .sum b { font: 800 30px/1 var(--sans); color: var(--ink); margin-right: 8px; letter-spacing: -0.02em; }
.buybar .sum s { margin-right: 8px; }
.buybar .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* анонс будущей игры */
.countdown { font: 800 clamp(40px, 6vw, 80px)/1 var(--sans); letter-spacing: -0.04em; margin: 0 0 6px; color: var(--bulb); }
.countdown-sub { font: 500 15px/1.4 var(--sans); color: var(--ink-dim); margin: 0 0 28px; }

/* ---------- «Мои игры» и текстовые страницы ---------- */
.page { padding: clamp(48px, 8vw, 96px) 0 0; }
.page h1 { font: 800 clamp(38px, 5.4vw, 66px)/1 var(--sans); letter-spacing: -0.04em; margin: 0 0 18px; }
.page .lead { font: 400 clamp(17px, 1.5vw, 20px)/1.6 var(--serif); color: var(--ink-dim); max-width: 36em; margin: 0 0 28px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ledger .what b { font: 600 18px/1.3 var(--sans); }
.ledger .what span { display: block; color: var(--ink-dim); font: 400 14px/1.4 var(--sans); margin-top: 4px; }
.ledger .amt { font: 700 18px/1.3 var(--sans); }
.owned-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.empty { font: 400 18px/1.6 var(--serif); color: var(--ink-dim); max-width: 34em; }

.legal-text { max-width: 760px; }
.legal-text h2 { font: 700 22px/1.25 var(--sans); margin: 40px 0 10px; }
.legal-text p, .legal-text li { font: 400 17px/1.7 var(--serif); color: var(--ink-2); }
.legal-text ul, .legal-text ol { padding-left: 22px; }
.draft { padding: 14px 16px; border-left: 2px solid var(--blood); background: rgba(201,88,76,.06); font: 400 14px/1.5 var(--sans) !important; color: var(--ink-2); }

/* ---------- окно оплаты ---------- */
dialog.checkout {
  border: 1px solid var(--line); padding: 0; width: min(520px, calc(100vw - 32px));
  background: #0e0d0b; color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0,0,0,.95);
}
dialog.checkout::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(2px); }
.co { padding: 30px 30px 26px; }
.co h2 { font: 800 26px/1.15 var(--sans); letter-spacing: -0.02em; margin: 0 0 6px; }
.co .sub { color: var(--ink-dim); font: 400 15px/1.5 var(--sans); margin: 0 0 22px; }
.co table { width: 100%; border-collapse: collapse; font: 400 16px/1.4 var(--sans); margin-bottom: 8px; }
.co td { padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.co td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.co tr.total td { font-weight: 700; font-size: 19px; border-top: 1.5px solid var(--ink); }
.co tr.discount td { color: var(--bulb); }
.co .owned-note { font: 400 14px/1.5 var(--sans); color: var(--ink-dim); margin: 10px 0 0; }
.co label.field { display: grid; gap: 6px; font: 600 14px/1.3 var(--sans); margin: 18px 0 6px; }
.co input[type=email] { font: 400 17px/1.3 var(--sans); padding: 13px 14px; border: 1.5px solid rgba(236,230,211,.3); background: #070707; color: var(--ink); border-radius: 2px; }
.co input[type=email]:focus { border-color: var(--bulb); outline: none; }
.co .err { margin: 4px 0 0; }
.co .actions { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.co .demo { font: 400 13px/1.5 var(--sans); color: var(--ink-dim); border: 1px dashed rgba(236,230,211,.25); padding: 10px 12px; margin-top: 18px; }
.co .close { background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font: 400 15px/1 var(--sans); padding: 8px 0; color: var(--ink-2); }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gut); }
.nf h1 { font: 800 clamp(48px, 8vw, 96px)/0.95 var(--sans); letter-spacing: -0.04em; margin: 0 0 18px; }
.nf p { font: 400 19px/1.6 var(--serif); color: var(--ink-dim); margin: 0 0 28px; }

/* первый экран главной: один выход на сцену */
.release.in .release-copy > * { animation: up .9s cubic-bezier(.2,.8,.2,1) both; }
.release.in .release-copy > :nth-child(2) { animation-delay: .12s; }
.release.in .release-copy > :nth-child(3) { animation-delay: .24s; }
.release.in .release-copy > :nth-child(4) { animation-delay: .36s; }
.release.in .poster { animation: posterIn 1.2s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes posterIn { from { opacity: 0; transform: rotate(1.5deg) translateY(30px); } to { opacity: 1; transform: rotate(1.5deg); } }

@media (max-width: 900px) {
  .top { gap: 16px; }
  .top nav { gap: 16px; font-size: 14px; }
  .top nav .hide-s { display: none; }
  .release-in { grid-template-columns: 1fr; }
  .release::after { background: linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(5,5,5,.8) 45%, rgba(5,5,5,.25) 80%); }
  .poster { display: none; }
  .schedule { grid-template-columns: 1fr; }
  .schedule li, .schedule li + li { padding: 22px 0 22px 26px; border-left: 1px solid var(--line); }
  .schedule li::before, .schedule li + li::before { left: -5px; top: 30px; }
  .schedule { border-top: 0; }
  .games { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .how > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .notify { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 44px minmax(0, 1fr); }
  .chapter .num { font-size: 32px; }
  .chapter .state { grid-column: 2; justify-items: start; text-align: left; }
  .btn.big { width: 100%; text-align: center; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Первый экран никогда не залезает под шапку: на невысоких экранах (ноутбук,
   масштаб Windows 125–150%) заголовок уменьшается по высоте окна, а сверху
   всегда остаётся место под шапку. */
.release, .game-hero { padding-top: 104px; }
.release-title { font-size: clamp(48px, min(10vw, 15vh), 150px); }
.game-hero h1 { font-size: clamp(44px, min(9vw, 14vh), 128px); }
.countdown[data-mode="big"] { font-size: clamp(36px, min(6vw, 9vh), 88px); }

/* уведомление после оплаты / входа */
.site-banner {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  width: min(560px, calc(100vw - 32px)); display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; background: #14120e; border: 1px solid rgba(233,196,111,.45); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.6); font: 500 15px/1.45 var(--sans);
}
.site-banner p { margin: 0; flex: 1; }
.site-banner.good { border-color: #7fb69a; }
.site-banner.bad { border-color: #c9584c; }
.site-banner button { background: none; border: 0; color: var(--ink-dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }

/* ======================================================================
   Редизайн. Один главный приём — дверной глазок на первом экране главной.
   Второй, тихий — полоска света под дверью: она подсвечивает то, на что
   можно нажать. Всё остальное — ночь и фотографии.
   ====================================================================== */

/* плёночное зерно поверх всего сайта, очень тихо */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: rgba(233,196,111,.35); color: #fff; }

/* шапка: на первом экране прозрачная, при прокрутке — плотная, с размытием */
.top:not(.solid) { position: fixed; transition: background .35s, padding .35s, border-color .35s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(5,5,5,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding-top: 12px; padding-bottom: 12px; border-bottom-color: var(--line); }
.logo svg circle:first-child { transition: stroke .3s; }
.logo:hover svg circle:first-child { stroke: var(--bulb-hi); }

/* кнопки: основная светится, как лампочка */
.btn:not(.ghost) { box-shadow: 0 16px 44px -18px rgba(233,196,111,.7); }
.btn:not(.ghost):hover { box-shadow: 0 18px 54px -16px rgba(233,196,111,.85); }

/* ---------- главная: первый экран с глазком ---------- */
.release-bg { object-position: 72% 42%; filter: brightness(.3) saturate(.85); transform: scale(1.06); }
.release::after {
  background:
    radial-gradient(60vmax 50vmax at 72% 46%, rgba(5,5,5,0) 0%, rgba(5,5,5,.55) 60%),
    linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.78) 36%, rgba(5,5,5,.2) 64%),
    linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0) 30%);
}
.release-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.eyehole { margin: 0; justify-self: center; width: min(100%, 520px, 62vh); display: grid; gap: 22px; justify-items: center; }
.eyehole-lens {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000;
  box-shadow:
    0 0 0 9px #17120b, 0 0 0 11px #75603a, 0 0 0 13px #2a2114, 0 0 0 16px #0b0906,
    0 40px 120px -10px rgba(0,0,0,.95), 0 0 160px rgba(233,196,111,.07);
  transition: box-shadow 1.2s;
}
.eyehole-lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) blur(2px); transform: scale(1.25); }
.eyehole-lens canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s; }
.eyehole-lens.live canvas { opacity: 1; }
/* стекло: блик и тёмный край, как у настоящей линзы */
.eyehole-lens::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(38% 30% at 32% 24%, rgba(255,255,255,.09), rgba(255,255,255,0) 70%);
  box-shadow: inset 0 0 70px 26px rgba(0,0,0,.88);
}
.eyehole-lens.seen { box-shadow:
    0 0 0 9px #17120b, 0 0 0 11px #75603a, 0 0 0 13px #2a2114, 0 0 0 16px #0b0906,
    0 40px 120px -10px rgba(0,0,0,.95), 0 0 180px rgba(201,88,76,.12); }
.eyehole figcaption { font: italic 400 15px/1.5 var(--serif); color: var(--ink-dim); text-align: center; }
.eyehole-time { font: 600 14px/1 var(--sans); font-style: normal; color: var(--bulb); font-variant-numeric: tabular-nums; margin-right: 8px; letter-spacing: .02em; }

/* полоска света под дверью — нижний край первого экрана */
.door-light {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgba(233,196,111,.15) 22%, rgba(243,210,131,.95) 50%, rgba(233,196,111,.15) 78%, transparent 96%);
  box-shadow: 0 0 24px 4px rgba(233,196,111,.28);
  animation: doorLight 7s ease-in-out infinite;
}
@keyframes doorLight { 0%, 100% { opacity: .9; } 46% { opacity: .9; } 48% { opacity: .25; } 50% { opacity: .8; } 53% { opacity: .35; } 56% { opacity: .9; } }

.release.in .eyehole { animation: lensIn 1.6s cubic-bezier(.2,.8,.2,1) .25s both; }
@keyframes lensIn { from { opacity: 0; transform: scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- расписание: листки календаря ---------- */
.schedule { border-top: 0; gap: 14px; }
.schedule li, .schedule li + li { padding: 0; border-left: 0; }
.schedule li::before { display: none; }
.schedule li > a, .schedule li > div {
  display: block; height: 100%; text-decoration: none; color: inherit; position: relative;
  padding: 24px 22px 26px; background: linear-gradient(180deg, #100e0b, #080706); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.schedule li > a:hover { border-color: rgba(233,196,111,.4); transform: translateY(-2px); }
.schedule li.now > a { border-color: rgba(233,196,111,.35); }
.schedule li.now > a::after, .game a.card .pic::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(243,210,131,.95), transparent);
  box-shadow: 0 0 18px 2px rgba(233,196,111,.35);
}
.schedule li.secret > div { border-style: dashed; }
.schedule time { font: 500 16px/1 var(--sans); color: var(--ink-dim); margin-bottom: 18px; letter-spacing: 0; }
.schedule time .d { display: block; font: 800 clamp(52px, 5vw, 72px)/.85 var(--sans); letter-spacing: -0.05em; color: var(--ink); margin-bottom: 8px; }
.schedule li.now time .d { color: var(--bulb); }
.schedule .st { margin: 0 0 8px; }
.schedule .t { display: block; font: 700 19px/1.25 var(--sans); }
.schedule .t.tbd { font-weight: 400; color: var(--ink-dim); }

/* ---------- карточки игр ---------- */
.game a.card .pic::after { opacity: 0; transition: opacity .4s; }
.game a.card:hover .pic::after { opacity: 1; }
.game:first-child a.card .pic::after { opacity: .85; }
.game .plate {
  position: absolute; right: 14px; top: 14px; font: 800 13px/1 var(--sans); letter-spacing: .04em; color: #1a1408;
  padding: 7px 11px; border-radius: 999px; background: linear-gradient(180deg, #d9bb73, #8f7136);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 10px rgba(0,0,0,.6);
}
.game.soon .plate { filter: grayscale(.6) brightness(.7); }
.game h3 { transition: color .3s; }
.game a.card:hover h3 { color: var(--bulb-hi); }

/* ---------- цены: схема глав ---------- */
.price-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pm-ch { padding: 22px 20px 24px; border: 1px solid var(--line); background: linear-gradient(180deg, #0f0d0b, #070706); }
.pm-ch.free { border-color: rgba(233,196,111,.4); }
.pm-n { display: block; font: 500 14px/1 var(--sans); color: var(--ink-dim); margin-bottom: 18px; }
.pm-ch b { display: block; font: 800 clamp(34px, 3.4vw, 46px)/1 var(--sans); letter-spacing: -0.03em; margin-bottom: 10px; }
.pm-ch.free b { color: var(--bulb); }
.pm-ch p { margin: 0; font: 400 15px/1.45 var(--serif); color: var(--ink-dim); }
.pm-bundle {
  grid-column: 2 / 5; position: relative; padding: 18px 0 0; margin-top: 6px;
  border-top: 2px solid var(--bulb); box-shadow: 0 -10px 24px -18px rgba(233,196,111,.8);
  font: 400 16px/1.4 var(--sans); color: var(--ink-2);
}
.pm-bundle::before, .pm-bundle::after { content: ""; position: absolute; top: -12px; width: 2px; height: 12px; background: var(--bulb); }
.pm-bundle::before { left: 0; } .pm-bundle::after { right: 0; }
.pm-bundle b { font: 800 clamp(28px, 2.6vw, 36px)/1 var(--sans); color: var(--bulb); letter-spacing: -0.02em; margin-right: 10px; }
.pm-bundle s { color: var(--ink-dim); margin-right: 12px; }
.how-note { margin-top: 26px; }

/* ---------- о проекте ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pull {
  margin: 0; padding: 6px 0 6px 28px; border-left: 2px solid var(--bulb);
  font: italic 400 clamp(22px, 2.3vw, 30px)/1.45 var(--serif); color: var(--ink);
}

/* ---------- подписка: кольцо глазка на фоне ---------- */
.notify { position: relative; overflow: hidden; background: linear-gradient(135deg, #12100c, #080706); }
.notify::after {
  content: ""; position: absolute; right: -140px; top: 50%; width: 420px; aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; border: 22px solid rgba(233,196,111,.05); box-shadow: inset 0 0 0 60px rgba(236,230,211,.015); pointer-events: none;
}
.notify > * { position: relative; z-index: 1; }

/* ---------- подвал: большая подпись ---------- */
.foot { position: relative; overflow: hidden; }
.foot::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,196,111,.5), transparent);
}
.foot .wrap::after {
  content: "HorrorHub"; display: block; margin-top: 36px; font: 800 clamp(64px, 15vw, 210px)/.8 var(--sans);
  letter-spacing: -0.045em; color: #0f0e0c; white-space: nowrap; pointer-events: none; user-select: none;
}

@media (max-width: 900px) {
  .release-in { grid-template-columns: 1fr; gap: 34px; }
  .eyehole { order: -1; width: min(78vw, 380px, 46vh); }
  .release::after { background: linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(5,5,5,.86) 50%, rgba(5,5,5,.55) 100%); }
  .schedule { grid-template-columns: 1fr; gap: 10px; }
  .schedule li > a, .schedule li > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; align-items: center; padding: 18px; }
  .schedule time { grid-row: span 2; margin: 0; }
  .schedule time .d { font-size: 46px; }
  .price-map { grid-template-columns: 1fr 1fr; }
  .pm-ch.free { grid-column: 1 / -1; }
  .pm-bundle { grid-column: 1 / -1; }
  .pm-bundle::before, .pm-bundle::after { display: none; }
  .about { grid-template-columns: 1fr; }
  .notify::after { width: 280px; right: -120px; }
}
@media (prefers-reduced-motion: reduce) {
  .door-light { animation: none; }
}

/* длинные слова в заголовках (например, «конфиденциальности») переносятся на телефоне */
.page h1, .nf h1, .sec h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 560px) { .page h1 { font-size: clamp(30px, 9vw, 40px); } }

@media (max-width: 900px) {
  .price-map { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pm-ch { padding: 16px 14px 18px; }
  .pm-ch:not(.free) p { display: none; }
  .pm-ch:not(.free) b { font-size: 28px; margin: 0; }
  .pm-n { margin-bottom: 10px; }
  .pm-bundle { padding-top: 14px; font-size: 15px; }
}

/* ---------- страница игры: главы с кадрами ---------- */
.chapter { grid-template-columns: 56px minmax(150px, 230px) minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.ch-pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b0a; }
.ch-pic img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.8); transition: filter .4s, transform .6s cubic-bezier(.2,.8,.2,1); }
.chapter:hover .ch-pic img { filter: brightness(.85) saturate(.95); transform: scale(1.04); }
.chapter[data-n="1"] .ch-pic img { filter: brightness(.8); }
.ch-pic::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 2px; opacity: 0; transition: opacity .4s;
  background: linear-gradient(90deg, transparent, rgba(243,210,131,.95), transparent); box-shadow: 0 0 14px 2px rgba(233,196,111,.35);
}
.chapter:hover .ch-pic::after, .chapter[data-n="1"] .ch-pic::after { opacity: 1; }
.chapter .num { align-self: start; padding-top: 6px; }
.chapter .state { align-self: center; padding-top: 0; }

@media (max-width: 900px) {
  .chapter { grid-template-columns: 40px minmax(0, 1fr); gap: 14px 16px; }
  .ch-pic { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .chapter .state { grid-column: 2; }
}

/* живой отсчёт до выхода на странице анонса */
.countdown.live { display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: flex-end; flex-wrap: wrap; }
.countdown .cd { display: grid; gap: 6px; }
.countdown .cd b { font: 800 clamp(40px, min(6vw, 9vh), 84px)/.9 var(--sans); letter-spacing: -0.04em; color: var(--bulb); font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(233,196,111,.25); }
.countdown .cd i { font: 500 14px/1 var(--sans); font-style: normal; color: var(--ink-dim); }
.countdown .cd + .cd b { color: var(--ink); text-shadow: none; }

/* шапка и содержимое начинаются с одной линии на любом широком экране */
:root { --edge: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); }
.top { padding-left: var(--edge); padding-right: var(--edge); }

/* 404: глазок на пустую площадку */
.nf-lens { width: min(240px, 50vw); aspect-ratio: 1; margin: 0 auto 34px; border-radius: 50%; overflow: hidden; position: relative;
  box-shadow: 0 0 0 9px #17120b, 0 0 0 11px #75603a, 0 0 0 13px #2a2114, 0 0 0 16px #0b0906, 0 30px 90px -10px rgba(0,0,0,.95); }
.nf-lens img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); filter: brightness(.55) saturate(.8); animation: nfLight 6s steps(1) infinite; }
.nf-lens::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 50px 18px rgba(0,0,0,.9); }
@keyframes nfLight { 0%, 60% { filter: brightness(.55) saturate(.8); } 61%, 100% { filter: brightness(.08); } }
@media (prefers-reduced-motion: reduce) { .nf-lens img { animation: none; } }

@media (max-width: 900px) {
  .ch-pic { order: -1; }
}
@media (max-width: 440px) {
  .top { gap: 10px; }
  .top nav { gap: 12px; font-size: 14px; }
  .top nav a { white-space: nowrap; }
  .logo b { font-size: 18px; }
  .logo svg { width: 22px; height: 22px; }
}

/* ---------- сенсорные экраны: ссылки в шапке под палец (зона нажатия не меньше 44px) ---------- */
@media (pointer: coarse) {
  .top nav a { padding: 14px 4px; margin: -8px -4px; }
  .logo { padding: 10px 0; margin-top: -10px; margin-bottom: -10px; }
}

/* ---------- телефон горизонтально: экран низкий, глазок и текст рядом ---------- */
@media (orientation: landscape) and (max-height: 540px) and (min-width: 560px) {
  .top { padding-top: 12px; padding-bottom: 12px; }
  .release { min-height: 100svh; padding-top: 0; }
  .release .actions .btn.big { width: auto; }
  .release-in {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px; align-items: center;
    padding-top: 62px; padding-bottom: 22px;
    padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right));
  }
  .eyehole { order: 0; width: min(100%, calc(100svh - 130px), 300px); gap: 10px; }
  .eyehole figcaption { font-size: 13px; line-height: 1.4; }
  .release-kicker { font-size: 13px; margin-bottom: 10px; }
  .release-title { font-size: clamp(44px, 15vh, 72px); margin-bottom: 12px; }
  .release .logline { font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
  .release .actions .btn.big { padding: 14px 20px; font-size: 15px; }
  .release .note { margin-top: 10px; font-size: 13px; }
  .release::after { background: linear-gradient(90deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.8) 50%, rgba(5,5,5,.45) 100%); }
}

/* Original image colours, without vignette or brightness animation. */
body::before, .release::after, .game-hero::after { display: none; }
.release-bg, .game .pic img, .game a.card:hover .pic img, .game.soon .pic img,
.game-hero .bg, .eyehole-lens img, .ch-pic img, .chapter:hover .ch-pic img,
.chapter[data-n="1"] .ch-pic img, .nf-lens img { filter: none; opacity: 1; animation: none; }
