/* HorrLuxe 0.1 — «архив дел». Цвета, формы, эффекты плёнки и Хэллоуин. */

:root {
	--hl-ink: #0b0b0c;
	--hl-coal: #131315;
	--hl-char: #1f1f22;
	--hl-line: #2a2a2e;
	--hl-paper: #ece7da;
	--hl-paper-2: #ddd6c5;
	--hl-text: #ddd6c5;
	--hl-muted: #9a958a;
	--hl-ink-muted: #5a554b;
	--hl-red: #c8141e;        /* заливки, крупное */
	--hl-red-ink: #b3121b;    /* текст на бумаге */
	--hl-red-glow: #e5484d;   /* текст и штампы на тёмном */
	--hl-brass: #b59a5e;
	--hl-brass-d: #8a7a55;
	--hl-cork: #3b2c1e;
	--hl-head: "Oswald", "Arial Narrow", sans-serif;
	--hl-body: "PT Serif", Georgia, serif;
	--hl-hand: "Caveat", "Comic Sans MS", cursive;
	--hl-mono: "PT Mono", ui-monospace, monospace;
	--hl-wrap: 1296px;
	--hl-gut: clamp(16px, 3vw, 24px);
	--hl-bar-h: 0px;
	color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Мобильный Safari игнорирует overflow-x у одного body — ставим и на html, иначе любой вылезающий пиксель расширяет страницу */
html, body.hl { overflow-x: hidden; }
@supports (overflow: clip) { html, body.hl { overflow-x: clip; } }
/* Длинные слова и ссылки без пробелов переносятся, а не распирают экран */
.hl h1, .hl h2, .hl h3, .hl p, .hl li, .hl blockquote, .hl figcaption, .hl-case-title, .hl-cork-t, .hl-thread-t, .hl-acc-name, .hl-note-name, .hl-prose { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.hl-prose img, .hl-prose video, .hl-prose iframe, .hl-prose embed, .hl-prose object { max-width: 100% !important; height: auto; }
.hl-prose iframe { aspect-ratio: 16 / 9; height: auto; width: 100%; }
.hl-prose table { display: block; max-width: 100%; overflow-x: auto; }
.hl-prose pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.hl-prose .alignwide, .hl-prose .alignfull { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.hl-tally { position: relative; }
body.hl {
	margin: 0;
	background: radial-gradient(ellipse at 50% 0%, #18181b, var(--hl-ink) 55%) fixed, var(--hl-ink);
	color: var(--hl-text);
	font: 17px/1.6 var(--hl-body);
	min-height: 100vh;
	padding-bottom: var(--hl-bar-h);
	overflow-x: hidden;
}
.hl a { color: var(--hl-paper); text-underline-offset: 3px; }
.hl a:hover { color: #fff; }
.hl :focus-visible { outline: 2px solid var(--hl-red-glow); outline-offset: 3px; }
.hl img { max-width: 100%; height: auto; }
.hl button { font: inherit; }
.screen-reader-text { position: absolute !important; top: 0; left: 0; margin: -1px; padding: 0; border: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hl-skip:focus { position: fixed !important; z-index: 10000; top: 8px; left: 8px; width: auto; height: auto; clip: auto; clip-path: none; padding: 10px 16px; background: var(--hl-paper); color: var(--hl-ink); }

.hl-wrap { max-width: var(--hl-wrap); margin: 0 auto; padding-left: var(--hl-gut); padding-right: var(--hl-gut); }
.hl-main { position: relative; z-index: 2; padding-bottom: 48px; }
.hl-mono { font-family: var(--hl-mono); font-size: 14px; color: var(--hl-muted); }
.hl-hand { font-family: var(--hl-hand); font-size: 24px; color: var(--hl-muted); line-height: 1.2; }
.hl-kicker { margin: 0; font-family: var(--hl-mono); font-size: 12px; letter-spacing: .14em; color: var(--hl-ink-muted); }

/* Потёртые заголовки — шумовая маска, как у плагина */
.hl-h1, .hl-h2, .hl-night-t, .hl-wanted-t, .hl-case-title, .hl-404 h1 {
	-webkit-mask-image: var(--hl-worn); mask-image: var(--hl-worn);
	-webkit-mask-size: 240px; mask-size: 240px;
}
.hl-h1 { margin: 0; font: 700 clamp(40px, 7vw, 72px)/1 var(--hl-head); letter-spacing: .04em; color: var(--hl-paper); }
.hl-h2 { margin: 0; font: 700 clamp(30px, 4.4vw, 44px)/1.05 var(--hl-head); letter-spacing: .08em; color: var(--hl-paper); }
.hl-h3 { margin: 0 0 12px; font: 600 22px/1.2 var(--hl-head); letter-spacing: .08em; }
.is-ink { color: #141414 !important; }

/* Зерно плёнки поверх всего сайта */
.hl-grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; background-image: var(--hl-grain); opacity: .07; }

/* ---------- Формы: билет, бирка, вкладка, пропуск, глазок, рваный лист, мазок ---------- */
.hl-ticket, .hl-ticket-btn {
	--n: 9px;
	display: inline-flex; align-items: stretch; min-height: 62px;
	background: var(--hl-paper); color: #141414 !important; text-decoration: none; border: 0; cursor: pointer;
	-webkit-mask: radial-gradient(circle at 0 50%, #0000 var(--n), #000 calc(var(--n) + .5px)) 0 0/51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 var(--n), #000 calc(var(--n) + .5px)) 100% 0/51% 100% no-repeat;
	mask: radial-gradient(circle at 0 50%, #0000 var(--n), #000 calc(var(--n) + .5px)) 0 0/51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 var(--n), #000 calc(var(--n) + .5px)) 100% 0/51% 100% no-repeat;
	transition: transform .15s ease;
}
.hl-ticket:hover, .hl-ticket-btn:hover { transform: translateY(-3px) rotate(-1deg); }
.hl-ticket:active, .hl-ticket-btn:active { transform: translateY(1px) scale(.98); }
.hl-ticket-main { display: flex; align-items: center; gap: 12px; padding: 0 24px 0 32px; font: 600 21px/1 var(--hl-head); letter-spacing: .14em; white-space: nowrap; }
.hl-ticket-stub { white-space: nowrap; }
.hl-ticket-main svg { fill: var(--hl-red); flex: none; }
.hl-ticket-stub { display: flex; flex-direction: column; justify-content: center; padding: 0 28px 0 18px; border-left: 2px dashed rgba(20,20,20,.4); font: 12px/1.45 var(--hl-mono); }
.hl-ticket.is-red { background: var(--hl-red); color: #fff !important; }
.hl-ticket.is-red .hl-ticket-stub { border-left-color: rgba(255,255,255,.5); }
.hl-ticket-btn { padding: 0 34px; align-items: center; font: 600 18px/1 var(--hl-head); letter-spacing: .14em; background: var(--hl-red); color: #fff !important; }

.hl-tag {
	display: inline-block; padding: 9px 16px 9px 30px; background: #2a2a2e; color: var(--hl-paper) !important;
	font: 15px/1.2 var(--hl-mono); text-decoration: none; transform: rotate(var(--r, 0deg));
	clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
	-webkit-mask: radial-gradient(circle at 16px 50%, #0000 3.5px, #000 4px); mask: radial-gradient(circle at 16px 50%, #0000 3.5px, #000 4px);
	transition: transform .15s ease, background .15s;
}
.hl-tag:hover { background: #3a3a3f; transform: rotate(0) translateY(-2px); }
.hl-tag.is-on { background: var(--hl-paper); color: #141414 !important; }
.hl-tags { display: flex; flex-wrap: wrap; gap: 14px 10px; padding: 8px 0 26px; border-bottom: 1px dashed #2f2f34; }

.hl-tab {
	display: flex; flex-direction: column; gap: 2px; padding: 11px 22px 11px; background: #232326; color: #cfc9bc !important; text-decoration: none;
	clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 100%, 0 100%); transition: padding .15s ease, background .15s;
}
.hl-tab:hover { padding-top: 15px; background: #2d2d31; }
.hl-tab.is-on { padding-top: 16px; background: var(--hl-paper); color: #141414 !important; }
.hl-tab-n { font: 11px/1 var(--hl-mono); color: #8a857b; }
.hl-tab.is-on .hl-tab-n { color: var(--hl-ink-muted); }
.hl-tab-t { font: 500 15px/1.1 var(--hl-head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hl-tab.is-on .hl-tab-t { font-weight: 600; }

.hl-pass {
	display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px 0 38px; border-radius: 5px;
	background: var(--hl-paper); color: #141414 !important; text-decoration: none;
	-webkit-mask: radial-gradient(circle at 19px 50%, #0000 6px, #000 6.5px); mask: radial-gradient(circle at 19px 50%, #0000 6px, #000 6.5px);
	transition: transform .15s ease;
}
.hl-pass:hover { transform: translateY(-2px); }
.hl-pass-t { display: flex; flex-direction: column; }
.hl-pass-k { font: 10px/1 var(--hl-mono); letter-spacing: .14em; color: var(--hl-ink-muted); }
.hl-pass-l { font: 600 16px/1.2 var(--hl-head); letter-spacing: .1em; white-space: nowrap; }
.hl-pass-bar { width: 26px; height: 34px; background: repeating-linear-gradient(90deg, #141414 0 2px, transparent 2px 4px, #141414 4px 5px, transparent 5px 8px); }

.hl-peep, .hl-ava {
	position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	background: radial-gradient(circle at 50% 40%, #2c2c31, #0e0e10 70%); color: var(--hl-paper);
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 3px var(--hl-ink), 0 0 0 5px var(--hl-brass-d), inset 0 2px 8px #000;
	transition: box-shadow .15s ease;
}
.hl-peep:hover, .hl-ava:hover, .hl-peep[aria-expanded="true"], .hl-ava[aria-expanded="true"] {
	box-shadow: 0 0 0 3px var(--hl-ink), 0 0 0 5px #e5c27a, 0 0 20px rgba(229,72,77,.45), inset 0 2px 8px #000;
}
.hl-ava { box-shadow: 0 0 0 3px var(--hl-ink), 0 0 0 5px var(--hl-brass), 0 6px 14px rgba(0,0,0,.5); }
.hl-ava-img { width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; filter: grayscale(.35) contrast(1.1); }
.hl-ava-n {
	position: absolute; right: -7px; top: -7px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 46% 54% 50% 50%;
	background: var(--hl-red); color: #fff; font: 11px/22px var(--hl-mono); text-align: center; box-shadow: 0 0 0 2px var(--hl-ink); transform: rotate(-8deg);
}

.hl-torn {
	padding: 13px 24px 20px; border: 0; cursor: pointer; background: var(--hl-paper); color: #141414;
	font: 600 16px/1 var(--hl-head); letter-spacing: .12em;
	clip-path: polygon(0 0, 100% 0, 100% 80%, 96% 100%, 91% 85%, 85% 97%, 79% 84%, 72% 100%, 66% 86%, 59% 98%, 53% 83%, 46% 100%, 40% 86%, 33% 97%, 27% 84%, 20% 100%, 14% 86%, 7% 98%, 0 82%);
}
.hl-brush, .hl .pss-brush { transition: transform .15s; }

/* Печати */
.hl-stamp { display: inline-block; width: 112px; height: 112px; color: var(--hl-red-glow) !important; transform: rotate(-8deg); flex: none; }
.hl-stamp svg { width: 100%; height: 100%; transition: transform .4s ease; }
.hl-stamp:hover svg { transform: rotate(24deg); }
.hl-stamp-case { color: var(--hl-red-ink); }
.hl-stamp-case.is-hero { position: absolute; right: 24px; top: 34px; width: clamp(84px, 10vw, 128px); transform: rotate(14deg); }
.hl-mini-stamp { border: 1.5px solid var(--hl-red-ink); color: var(--hl-red-ink); font: 10px/1.3 var(--hl-mono); padding: 1px 6px; letter-spacing: .08em; transform: rotate(-4deg); }

/* Зарубки */
.hl-tally { display: inline-flex; align-items: center; gap: 4px; color: var(--hl-red-ink); font: 13px/1 var(--hl-mono); }
.hl-tally-ico path { stroke: currentColor; stroke-width: 4; stroke-linecap: round; fill: none; }

/* Бумага, скотч, пометки */
.hl-paper { position: relative; background: var(--hl-paper); color: #141414; padding: clamp(26px, 4vw, 42px) clamp(22px, 4vw, 46px); box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.hl-paper a { color: #141414; }
.hl-tape { position: absolute; width: 90px; height: 24px; background: rgba(214,204,176,.75); pointer-events: none; }
.hl-tape.t1 { top: -11px; left: 40px; transform: rotate(-5deg); }
.hl-tape.t2 { top: -10px; right: 60px; transform: rotate(7deg); width: 78px; }
.hl-note { margin: 14px 0 0; font: 30px/1.1 var(--hl-hand); color: var(--hl-red-ink); transform: rotate(-3deg); display: inline-block; }
.hl-redact { margin: 0; font-size: 18px; line-height: 1.7; max-width: 46ch; }
.hl-redact-bar { background: #141414; color: #141414; padding: 0 2px; user-select: none; }

/* Виньетка и рамка камеры для фото */
.hl-vig { position: relative; display: block; overflow: hidden; }
.hl-vig img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.35) brightness(.8); transition: filter .3s, transform .6s; }
.hl-vig::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 60% 40%, transparent 30%, rgba(0,0,0,.55) 68%, rgba(0,0,0,.9) 100%); }
a:hover .hl-vig img { filter: grayscale(1) contrast(1.45) brightness(.95); transform: scale(1.03); }
.hl-frame i { position: absolute; z-index: 2; width: 26px; height: 26px; border: 0 solid rgba(232,228,218,.75); }
.hl-frame i:nth-child(1) { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.hl-frame i:nth-child(2) { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.hl-frame i:nth-child(3) { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.hl-frame i:nth-child(4) { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.hl-rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--hl-red-glow); animation: hlRec 1.4s steps(1) infinite; }
@keyframes hlRec { 50% { opacity: .15; } }

/* ---------- Шапка ---------- */
.hl-head { position: relative; z-index: 40; border-bottom: 1px solid #222226; }
.hl-head-in { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 14px 28px; padding-top: 16px; }
.hl-logo { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; text-decoration: none; flex: none; min-width: 0; }
.hl-logo-img, .hl-moon { width: 44px; height: 44px; object-fit: contain; flex: none; }
.hl-logo-t { display: flex; flex-direction: column; }
.hl-logo-name { font: 700 32px/1 var(--hl-head); letter-spacing: .14em; color: var(--hl-paper); }
.hl-logo-sub { font: 11px/1.4 var(--hl-mono); letter-spacing: .12em; color: var(--hl-muted); }
.hl-tabs { display: flex; flex-wrap: nowrap; gap: 4px; align-items: flex-end; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-top: 6px; }
.hl-tabs::-webkit-scrollbar { display: none; }
.hl-tab { flex: none; }
.hl-head-tools { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; margin-left: auto; flex: none; }
@media (max-width: 1300px) and (min-width: 783px) {
	.hl-head-in { gap: 14px 18px; }
	.hl-logo-name { font-size: 26px; }
	.hl-tab { padding-left: 15px; padding-right: 15px; }
	.hl-tab-t { letter-spacing: .08em; font-size: 14px; }
	.hl-pass-k, .hl-pass-bar, .hl-pass-x { display: none; }
}

.hl-acc { position: relative; }
.hl-acc-menu {
	position: absolute; right: 0; top: calc(100% + 14px); z-index: 50; width: 260px; display: flex; flex-direction: column;
	background: var(--hl-paper); color: #141414; padding: 14px 18px 16px; transform: rotate(1deg); box-shadow: 0 14px 30px rgba(0,0,0,.7);
}
.hl-acc-menu[hidden] { display: none; }
.hl-acc-name { font: 600 18px/1.2 var(--hl-head); }
.hl-acc-rank { font: 11px/1.4 var(--hl-mono); color: var(--hl-ink-muted); letter-spacing: .06em; padding-bottom: 8px; border-bottom: 1px dashed #b9b19e; }
.hl-acc-menu a, .hl-acc-q { display: block; padding: 9px 0; border-bottom: 1px dashed #b9b19e; color: #141414 !important; font: 14px/1.3 var(--hl-mono); text-decoration: none; }
.hl-acc-menu a:hover { color: var(--hl-red-ink) !important; }
.hl-acc-q { color: var(--hl-ink-muted) !important; }
.hl-acc-out { border-bottom: 0 !important; color: var(--hl-red-ink) !important; }

.hl-search { border-top: 1px dashed #2f2f34; background: #0f0f11; padding: 18px 0 22px; }
.hl-search[hidden] { display: none; }
.hl-sform { display: flex; flex-direction: column; gap: 2px; max-width: 720px; }
.hl-sform-row { display: flex; gap: 12px; align-items: flex-end; }
.hl-input, .hl-main input[type="text"], .hl-main input[type="email"], .hl-main input[type="url"] {
	flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 2px dashed #6a665e; color: var(--hl-paper);
	font: 16px/1.4 var(--hl-mono); padding: 10px 2px; border-radius: 0;
}
.hl-input:focus { outline: none; border-bottom-color: var(--hl-paper); }
.hl-search-inline { margin: 28px 0; }

/* ---------- Главная ---------- */
.hl-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: clamp(36px, 6vw, 64px) 0 40px; }
.hl-hero-l { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hl-night { transform: rotate(-1.5deg); }
.hl-night .hl-kicker { padding-right: clamp(84px, 11vw, 140px); }
.hl-sform { width: 100%; }
.hl-night-t { margin: 14px 0 16px; font: 700 clamp(40px, 6vw, 64px)/1 var(--hl-head); max-width: 13ch; padding-right: 90px; }
.hl-night-t a { text-decoration: none; }
.hl-hero-act { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hl-hero.is-empty .hl-night { max-width: 640px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.hl-vhs { flex: 1 1 440px; min-width: 0; display: block; background: var(--hl-char); border-radius: 26px; padding: 20px 20px 16px; text-decoration: none; box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 1px 0 #34343a; }
.hl-vhs-screen { aspect-ratio: 4 / 3; border-radius: 16px; background: radial-gradient(ellipse at 50% 40%, #4a4a4f, #141416 70%); font: 15px/1 var(--hl-mono); color: var(--hl-paper); }
.hl-vhs-screen img { position: absolute; inset: 0; }
.hl-scan { position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); }
.hl-scan::after { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 6px; background: rgba(255,255,255,.12); animation: hlRoll 7s linear infinite; }
@keyframes hlRoll { 0% { top: -4%; } 100% { top: 104%; } }
.hl-vhs-rec, .hl-vhs-play, .hl-vhs-time { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; }
.hl-vhs-rec { top: 22px; left: 50px; } .hl-vhs-play { top: 22px; right: 50px; } .hl-vhs-time { bottom: 22px; left: 50px; }
.hl-vhs-foot { display: flex; align-items: center; gap: 18px; padding: 14px 6px 0; font: 12px/1 var(--hl-mono); color: var(--hl-muted); }
.hl-vhs-strip { flex: 1; height: 8px; background: repeating-linear-gradient(90deg, #3a3a3f 0 14px, transparent 14px 22px); }

.hl-sec { padding: clamp(40px, 6vw, 56px) 0 16px; }
.hl-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 30px; }
.hl-more { text-decoration: none; }
.hl-more:hover { color: var(--hl-paper) !important; }

/* Карточки дел — полароиды */
.hl-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 40px 32px; }
.hl-case { transform: rotate(var(--r, 0deg)); transition: transform .2s ease; }
.hl-case:hover { transform: rotate(0) translateY(-6px); }
.hl-case-in { position: relative; display: block; background: var(--hl-paper); color: #141414 !important; padding: 12px 12px 18px; text-decoration: none; box-shadow: 0 16px 34px rgba(0,0,0,.55); transition: box-shadow .25s; }
.hl-case .hl-tape { top: -11px; left: 50%; margin-left: -38px; width: 76px; height: 22px; }
.hl-case-photo { position: relative; display: block; height: 210px; background: radial-gradient(circle at 40% 35%, #5a5a5f, #1c1c1f 75%); }
.hl-case-photo.is-empty { overflow: hidden; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #1b1b1d 0 12px, #222225 12px 24px); }
.hl-case-big { font: 700 76px/1 var(--hl-head); color: transparent; -webkit-text-stroke: 1.5px var(--hl-paper); }
.hl-case-stampline { position: absolute; bottom: 16px; right: -12px; transform: rotate(-12deg); border: 2px solid var(--hl-red-glow); color: var(--hl-red-glow); padding: 3px 22px; font: 12px/1.3 var(--hl-mono); letter-spacing: .14em; }
.hl-case-no { position: absolute; z-index: 3; top: 24px; left: 0; padding: 4px 10px 4px 24px; background: #141414; color: var(--hl-paper); font: 11px/1.3 var(--hl-mono); clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); }
.hl-18 { position: absolute; z-index: 3; top: 22px; right: 20px; background: var(--hl-red); color: #fff; font: 700 13px/1.4 var(--hl-head); padding: 1px 8px; }
.hl-case-title { margin: 14px 0 0; font: 600 21px/1.15 var(--hl-head); }
.hl-case-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.hl-case-meta .hl-hand { font-size: 20px; color: #4a463e; }
.hl-case.is-adult .hl-case-photo img { filter: grayscale(1) blur(10px) brightness(.6); }

/* Доска недели — пробковая доска */
.hl-cork { list-style: none; margin: 0; padding: 40px clamp(16px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; position: relative;
	background: var(--hl-cork) radial-gradient(circle at 20% 30%, rgba(0,0,0,.25), transparent 40%); border: 12px solid #24190f; }
.hl-cork::before { content: ""; position: absolute; left: 8%; right: 8%; top: 52px; border-top: 2px solid var(--hl-red); transform: rotate(-2deg); pointer-events: none; }
.hl-cork li { transform: rotate(var(--r, 0deg)); transition: transform .2s; }
.hl-cork li:hover { transform: rotate(0) scale(1.04); }
.hl-cork a { position: relative; display: flex; flex-direction: column; gap: 6px; width: 200px; min-height: 150px; background: var(--hl-paper); color: #141414 !important; padding: 26px 16px 16px; text-decoration: none; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.hl-pin { position: absolute; top: 8px; left: 50%; margin-left: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--hl-red); box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.hl-cork-n { font: 700 40px/1 var(--hl-head); color: var(--hl-red-ink); }
.hl-cork-t { font: 600 18px/1.15 var(--hl-head); flex: 1; }

/* Пустые места: папки, доска, ящики, нет сигнала */
.hl-case.is-blank .hl-case-in { background: #d4cdbc; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.hl-case.is-blank .hl-case-photo { background: repeating-linear-gradient(135deg, #18181a 0 12px, #1d1d20 12px 24px); }
.hl-case.is-blank .hl-case-big { -webkit-text-stroke-color: #6a665e; letter-spacing: .08em; }
.hl-case.is-blank .hl-case-stampline { border-color: #8a857b; color: #a8a294; }
.hl-case.is-blank .hl-case-title { color: #4a463e; font-weight: 500; }
.hl-case.is-blank:hover .hl-case-stampline { border-color: var(--hl-red-glow); color: var(--hl-red-glow); }
.hl-cork-card { position: relative; display: flex; flex-direction: column; gap: 6px; width: 200px; min-height: 150px; padding: 26px 16px 16px;
	background: transparent; border: 2px dashed rgba(236,231,218,.35); color: rgba(236,231,218,.7); }
.hl-cork li.is-blank .hl-cork-n { color: rgba(236,231,218,.45); }
.hl-cork li.is-blank .hl-pin { background: #6a665e; }
.hl-cork li.is-blank .hl-hand { font-size: 22px; color: rgba(236,231,218,.6); }
.hl-thread.is-blank { background: #4a3624; color: var(--hl-paper) !important; border: 1px solid #5a4430; }
.hl-thread.is-blank .hl-mono { color: #d9cdb4; }
.hl-thread.is-blank .hl-mono:first-child { min-width: 64px; padding: 6px 8px; background: var(--hl-paper); color: #141414; border: 3px solid var(--hl-brass); border-radius: 3px; text-align: center; }
.hl-vhs-nosig { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 clamp(22px, 3vw, 34px)/1 var(--hl-mono); letter-spacing: .2em; color: var(--hl-paper); animation: hlRec 2.4s steps(1) infinite; }
.is-nosignal { background: repeating-linear-gradient(90deg, #c9c2b2 0 12.5%, #b59a5e 12.5% 25%, #5f8f8a 25% 37.5%, #5c7a3a 37.5% 50%, #7a3f6b 50% 62.5%, #8a2a2a 62.5% 75%, #2a3a7a 75% 87.5%, #141414 87.5%) !important; }
.is-nosignal::after { background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.85) 100%) !important; }
.hl-vhs-nosig { text-shadow: 0 2px 10px #000; }
@media (max-width: 782px) { .hl-cork-card { width: 100%; min-height: 0; } }

/* Сторожка + розыск */
.hl-split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.hl-split-main { flex: 999 1 560px; min-width: 0; }
.hl-threads { display: flex; flex-direction: column; gap: 14px; }
.hl-card { -webkit-mask: radial-gradient(circle at 50% 100%, #0000 7px, #000 7.5px); mask: radial-gradient(circle at 50% 100%, #0000 7px, #000 7.5px); }
.hl-thread { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; background: var(--hl-paper); color: #141414 !important; padding: 18px 22px 22px; text-decoration: none;
	-webkit-mask: radial-gradient(circle at 50% 100%, #0000 7px, #000 7.5px); mask: radial-gradient(circle at 50% 100%, #0000 7px, #000 7.5px); transition: transform .15s; }
.hl-thread:hover { transform: translateX(6px); }
.hl-thread .hl-mono { color: var(--hl-ink-muted); font-size: 12px; }
.hl-thread-t { flex: 1 1 260px; font: 600 20px/1.2 var(--hl-head); }

.hl-wanted { flex: 1 1 320px; max-width: 520px; background: var(--hl-paper-2); color: #141414; padding: 34px 30px 38px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; transform: rotate(1.5deg);
	clip-path: polygon(0 2%, 4% 0, 9% 2%, 15% 0, 22% 1.5%, 30% 0, 38% 2%, 46% 0, 55% 1.5%, 63% 0, 71% 2%, 79% 0, 87% 1.5%, 94% 0, 100% 2%, 100% 97%, 95% 100%, 88% 98%, 80% 100%, 72% 98%, 64% 100%, 56% 98%, 48% 100%, 40% 98%, 32% 100%, 24% 98%, 16% 100%, 8% 98%, 0 100%); }
.hl-wanted p { margin: 0; font-size: 18px; line-height: 1.5; }
.hl-wanted .hl-mono { color: var(--hl-ink-muted); font-size: 12px; letter-spacing: .1em; }
.hl-wanted-t { margin: 0; font: 700 clamp(36px, 4vw, 46px)/1 var(--hl-head); letter-spacing: .1em; }

/* ---------- Списки, записи, страницы ---------- */
.hl-page-head { padding: clamp(36px, 6vw, 56px) 0 22px; display: flex; flex-direction: column; gap: 6px; }
.hl-lead { margin: 0; font-size: 26px; }
.hl-nothing { max-width: 620px; margin: 30px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hl-nothing .hl-stamp { color: var(--hl-red-ink) !important; }
.hl-pages, .hl .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; font-family: var(--hl-mono); }
.hl .page-numbers { display: inline-block; padding: 9px 14px; background: #232326; color: var(--hl-paper); text-decoration: none; clip-path: polygon(0 10%, 8% 0, 92% 4%, 100% 0, 98% 90%, 100% 100%, 6% 96%, 0 100%); }
.hl .page-numbers.current { background: var(--hl-paper); color: #141414; }

.hl-read { max-width: 860px; padding-top: 32px; }
.hl-back { display: inline-flex; align-items: center; gap: 6px; font: 14px/1 var(--hl-head); letter-spacing: .1em; text-transform: uppercase; color: var(--hl-muted) !important; text-decoration: none; }
.hl-read-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 22px 0 20px; border-bottom: 1px dashed #3a3a3f; margin-bottom: 28px; }
.hl-read-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--hl-head); }
.hl-read-ava { width: 32px !important; height: 32px !important; border-radius: 50%; filter: grayscale(1) contrast(1.2); }
.hl-read-cover { margin: 0 0 30px; aspect-ratio: 16 / 9; }
.hl-prose { max-width: 66ch; font-size: 19px; line-height: 1.85; color: #d9d5cb; }
.hl-prose > p:first-of-type::first-letter { float: left; font: 700 3.6em/.85 var(--hl-head); padding: 6px 12px 0 0; color: var(--hl-red-glow); }
.hl-prose blockquote { margin: 1.4em 0; padding: 16px 20px; background: var(--hl-paper); color: #141414; font-style: italic; transform: rotate(-.8deg); }
.hl-prose a { color: var(--hl-paper); }
.hl-prose h2, .hl-prose h3 { font-family: var(--hl-head); letter-spacing: .06em; color: var(--hl-paper); }
.hl-prose img { filter: grayscale(.2); }
.hl-end { margin: 46px 0 0; text-align: center; font: 500 24px/1 var(--hl-head); letter-spacing: .6em; color: #4a4a50; }

/* Комментарии — записки */
.hl-comments { margin-top: 56px; display: flex; flex-direction: column; gap: 22px; }
.hl-notes, .hl-notes .children { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.hl-notes .children { margin: 18px 0 0 clamp(14px, 4vw, 28px); }
.hl-note-card { background: var(--hl-paper); color: #141414; padding: 16px 18px 24px; }
.hl-note-item:nth-child(even) > .hl-note-card { transform: rotate(.6deg); }
.hl-note-item:nth-child(odd) > .hl-note-card { transform: rotate(-.6deg); }
.hl-notes .children .hl-note-card { background: var(--hl-char); color: var(--hl-text); border: 1px solid #333338; }
.hl-note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hl-note-ava { width: 34px !important; height: 34px !important; border-radius: 50%; filter: grayscale(1) contrast(1.15); }
.hl-note-name { font: 600 16px/1 var(--hl-head); }
.hl-note-head .hl-mono { margin-left: auto; font-size: 11px; }
.hl-note-body p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; }
.hl-note-reply { margin: 10px 0 0; }
.hl-note-reply a { font: 13px/1 var(--hl-head); letter-spacing: .1em; color: inherit !important; }
.hl-notes .children .hl-note-reply a { color: var(--hl-paper) !important; }
.hl-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; }
.hl-lined, .hl-main textarea {
	width: 100%; border: 0; background: var(--hl-paper) repeating-linear-gradient(var(--hl-paper) 0 27px, #c9c2b2 27px 28px);
	color: #141414; font: 16px/28px var(--hl-body); padding: 0 14px; resize: vertical;
}
.comment-respond { margin-top: 10px; }
.comment-form label { font-family: var(--hl-hand); font-size: 22px; color: #cfc9bc; }

/* 404 */
.hl-404 { padding-top: clamp(40px, 8vw, 80px); display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.hl-404 > *, .hl-nothing > * { max-width: 100%; }
.hl-search-inline { width: 100%; max-width: 720px; }
.hl-404-paper { max-width: 720px; transform: rotate(-1.2deg); }
.hl-404-paper .hl-h1 { padding-right: 110px; margin: 12px 0 14px; }

/* ---------- Подвал и нижняя панель ---------- */
.hl-foot { position: relative; z-index: 2; margin-top: 40px; border-top: 1px solid #222226; }
.hl-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 40px; font: 13px/1.5 var(--hl-mono); color: var(--hl-muted); }
.hl-foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }

.hl-bar { display: none; }
@media (max-width: 782px) {
	:root { --hl-bar-h: calc(80px + env(safe-area-inset-bottom, 0px)); }
	.hl-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: space-around;
		height: var(--hl-bar-h); padding: 0 4px env(safe-area-inset-bottom, 0px); background: #0e0e10; border-top: 3px solid var(--hl-paper);
	}
	.hl-bar-tab { width: 19%; max-width: 76px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		background: var(--hl-char); color: #cfc9bc !important; text-decoration: none; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
		font: 500 11px/1 var(--hl-head); letter-spacing: .08em; }
	.hl-bar-tab.is-on { height: 62px; background: var(--hl-paper); color: #141414 !important; font-weight: 600; }
	.hl-bar-add { width: 64px; height: 64px; margin-top: -22px; border-radius: 50%; background: var(--hl-red); display: flex; align-items: center; justify-content: center;
		box-shadow: 0 0 0 4px #0e0e10, 0 0 0 6px var(--hl-red); transform: rotate(-10deg); flex: none; }
	.hl-tabs { display: none; }
	.hl-head-in { align-items: center; padding-top: 12px; padding-bottom: 12px; }
	.hl-logo { padding-bottom: 0; }
	.hl-logo-name { font-size: 24px; }
	.hl-logo-sub { display: none; }
	.hl-head-tools { padding-bottom: 0; gap: 14px; }
	.hl-pass { height: 46px; padding-left: 34px; }
	.hl-pass-k, .hl-pass-bar { display: none; }
	.hl-pass-l { font-size: 14px; }
	.hl-head-in { gap: 10px; }
	.hl-logo { flex: 0 1 auto; gap: 10px; }
	.hl-peep, .hl-ava { width: 44px; height: 44px; }
	.hl-acc-menu { position: fixed; left: 12px; right: 12px; top: 74px; width: auto; }
	.hl-hero { gap: 28px; }
	.hl-night-t { padding-right: 0; }
	.hl-stamp-case.is-hero { width: 76px; right: 12px; top: 16px; }
	.hl-cork a { width: 100%; min-height: 0; }
	.hl-wanted { transform: none; padding: 30px 20px 34px; max-width: 100%; }
	.hl-night, .hl-404-paper { transform: rotate(-.6deg); }
	.hl-ticket { max-width: 100%; }
	.hl-ticket-main { padding: 0 16px 0 24px; font-size: 18px; letter-spacing: .1em; }
	.hl-ticket-stub { padding: 0 20px 0 12px; }
	.hl-case { --r: 0deg !important; }
	.hl-case:nth-child(odd) { transform: rotate(-.8deg); }
	.hl-case:nth-child(even) { transform: rotate(.8deg); }
	.hl-cork li { width: 100%; max-width: 340px; }
	.hl-vhs { padding: 12px 12px 10px; border-radius: 18px; }
	.hl-vhs-rec, .hl-vhs-time { left: 28px; } .hl-vhs-play { right: 28px; }
	.hl-vhs-rec, .hl-vhs-play { top: 16px; } .hl-vhs-time { bottom: 16px; }
	/* звук плагина — над нижней панелью (у плагина уже так) */
}
@media (max-width: 420px) {
	.hl-logo-name { font-size: 20px; letter-spacing: .1em; }
	.hl-moon { width: 34px; height: 34px; }
	.hl-pass-l { font-size: 13px; letter-spacing: .06em; }
	.hl-pass-x { display: none; }
	.hl-pass { padding-right: 16px; }
	.hl-ticket-main { padding: 0 18px 0 26px; font-size: 18px; }
	.hl-ticket-stub { padding: 0 22px 0 14px; }
	.hl-stamp { width: 96px; height: 96px; }
}

/* ---------- Страницы плагина историй: шапка темы над его тёмной сценой ---------- */
.hl-plugin-page .hl-head { background: transparent; }
.hl-plugin-page #pss-main { position: relative; z-index: 2; padding-left: var(--hl-gut); padding-right: var(--hl-gut); }
.hl-plugin-page .pss-sound { bottom: calc(18px + var(--hl-bar-h)) !important; }

/* ---------- Хэллоуин (на страницах плагина — его собственный) ---------- */
.hl-hw-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(110% 55% at 80% -8%, rgba(108,43,217,.30), transparent 62%), radial-gradient(90% 50% at 10% 108%, rgba(255,122,26,.12), transparent 60%); }
.hl-hw .hl-sec-head, .hl-hw .hl-page-head { animation: hlGlow 4.2s ease-in-out infinite; }
.hl-hw .hl-case:hover .hl-case-in, .hl-hw .hl-thread:hover { box-shadow: 0 0 0 1px rgba(255,122,26,.45), 0 10px 34px -12px rgba(255,122,26,.55); }
@keyframes hlGlow { 0%, 100% { filter: drop-shadow(0 0 14px rgba(255,122,26,.45)); } 45% { filter: drop-shadow(0 0 22px rgba(255,122,26,.7)); } 60% { filter: drop-shadow(0 0 9px rgba(255,122,26,.3)); } }

.hl-hw-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; contain: strict; }
.hl-hw-layer > span { position: absolute; display: block; will-change: transform, opacity; }
.hl-hw-layer svg { display: block; width: 100%; height: auto; }
.hl-bat { left: 0; width: 56px; color: #050308; opacity: 0; animation: hlFly 16s linear infinite; }
.hl-bat svg { fill: currentColor; filter: drop-shadow(0 0 1px rgba(200,160,255,.7)) drop-shadow(0 0 10px rgba(140,70,255,.6)); animation: hlFlap .26s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.hl-bat.b1 { top: 14vh; animation-delay: 1s; }
.hl-bat.b2 { top: 24vh; width: 38px; animation-delay: 6.5s; animation-duration: 19s; }
.hl-bat.b3 { top: 9vh; width: 30px; animation-delay: 11s; animation-duration: 13s; }
@keyframes hlFly { 0% { transform: translate(-12vw, 0) scale(.9); opacity: 0; } 4% { opacity: .9; } 25% { transform: translate(28vw, 26px) scale(1); } 50% { transform: translate(60vw, -10px) scale(.85); } 75% { transform: translate(90vw, 22px) scale(.95); } 92% { opacity: .9; } 100% { transform: translate(112vw, -6px) scale(.8); opacity: 0; } }
@keyframes hlFlap { from { transform: scaleY(1); } to { transform: scaleY(.45) translateY(2px); } }
.hl-spider { top: 82px; left: 34%; width: 18px; animation: hlDrop 7s ease-in-out infinite; transform-origin: 50% 0; }
.hl-spider i { display: block; width: 1px; height: 64px; margin: 0 auto; background: linear-gradient(rgba(242,230,210,.15), rgba(242,230,210,.6)); }
.hl-spider svg { width: 18px; margin-top: -2px; }
@keyframes hlDrop { 0%, 100% { transform: translateY(-34px); } 40% { transform: translateY(18px) rotate(3deg); } 55% { transform: translateY(12px) rotate(-3deg); } 70% { transform: translateY(16px) rotate(1deg); } }
.hl-leaf { top: -30px; width: 16px; color: #ff7a1a; opacity: 0; animation: hlFall 14s linear infinite; }
.hl-leaf svg { fill: currentColor; animation: hlSpin 2.6s ease-in-out infinite alternate; }
.hl-leaf.l1 { left: 22%; animation-delay: 2s; }
.hl-leaf.l2 { left: 58%; animation-delay: 7s; animation-duration: 17s; color: var(--hl-red); }
.hl-leaf.l3 { left: 84%; animation-delay: 11s; }
@keyframes hlFall { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: .8; } 25% { transform: translate(30px, 26vh); } 50% { transform: translate(-30px, 54vh); } 75% { transform: translate(30px, 82vh); } 92% { opacity: .75; } 100% { transform: translate(0, 108vh); opacity: 0; } }
@keyframes hlSpin { from { transform: rotate(-40deg); } to { transform: rotate(70deg) rotateX(55deg); } }
.hl-ghost { left: 8%; bottom: -90px; width: 46px; color: rgba(235,230,255,.55); opacity: 0; filter: drop-shadow(0 0 12px rgba(200,180,255,.45)); animation: hlGhost 18s ease-in-out 4s infinite; }
.hl-ghost svg { fill: currentColor; animation: hlWob 2.8s ease-in-out infinite alternate; }
@keyframes hlGhost { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .5; } 50% { transform: translate(4vw, -48vh); } 85% { opacity: .35; } 100% { transform: translate(-3vw, -92vh); opacity: 0; } }
@keyframes hlWob { from { transform: rotate(-6deg) translateX(-4px); } to { transform: rotate(6deg) translateX(4px); } }
.hl-eyes { top: 62vh; left: 72%; width: 30px; height: 7px; opacity: 0; animation: hlEyes 9s ease-in-out infinite; }
.hl-eyes::before, .hl-eyes::after { content: ""; position: absolute; top: 0; width: 9px; height: 6px; border-radius: 50%; background: #ffcf4a; box-shadow: 0 0 8px 2px rgba(255,170,30,.75); }
.hl-eyes::before { left: 0; } .hl-eyes::after { right: 0; }
@keyframes hlEyes { 0%, 40% { opacity: 0; transform: scaleY(.1); } 46% { opacity: .9; transform: scaleY(1); } 62% { transform: scaleY(1); } 64% { transform: scaleY(.1); } 66% { transform: scaleY(1); } 82% { opacity: .9; } 100% { opacity: 0; transform: scaleY(.1); } }
.hl-fog { left: -20%; right: -20%; bottom: -6vh; height: 30vh; background: radial-gradient(40% 60% at 25% 70%, rgba(190,170,220,.10), transparent 70%), radial-gradient(35% 55% at 70% 80%, rgba(190,170,220,.08), transparent 70%); filter: blur(10px); animation: hlFog 26s ease-in-out infinite alternate; }
@keyframes hlFog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@media (max-width: 640px) { .hl-bat.b3, .hl-leaf.l3 { display: none; } .hl-spider i { height: 44px; } }

/* Загрузка фото */
.hl input[type="file"].is-busy { opacity: .5; cursor: progress; }
.hl-quota-msg { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--hl-red); background: rgba(200,20,30,.12); color: var(--hl-paper); font: 13px/1.4 var(--hl-mono); }
.hl-film { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; padding: 6px 5px; background: #1a1a1d; border-top: 5px dotted var(--hl-ink); border-bottom: 5px dotted var(--hl-ink); }
.hl-film span { height: 18px; background: #2a2a2e; }
.hl-film span.is-on { background: var(--hl-paper); }
.hl-film span.is-hot { background: var(--hl-red); }
.hl-film-cap { margin: 6px 0 0; font: 12px/1.4 var(--hl-mono); color: #cfc9bc; }

/* ---------- Уважение к настройкам ---------- */
@media (prefers-reduced-motion: reduce) {
	.hl *, .hl *::before, .hl *::after { animation: none !important; transition: none !important; }
	.hl-hw-layer { display: none; }
}
@media print {
	.hl-grain, .hl-hw-layer, .hl-hw-sky, .hl-bar, .hl-head-tools, .hl-tabs { display: none !important; }
	body.hl { background: #fff; color: #000; }
}
