/* ============================================================
   cryharder.club — «логово»: монохромный нуар, кровавый акцент
   палитра: чистый чёрный #050505 + кость #f2f0ed + кровь #e0162b
   блок BUL$ Opti — фирменный индиго (единый стиль партнёров)
   ============================================================ */

:root {
  --bg: #050505;
  --bg-card: rgba(16, 16, 17, .78);
  --bg-card-solid: #101011;
  --line: rgba(224, 22, 43, .22);
  --line-soft: rgba(242, 240, 237, .09);
  --text: #f2f0ed;
  --text-dim: #8a8782;
  --blood: #e0162b;
  --blood-bright: #ff2742;
  --maroon: #800000;
  --silver: #d7d5d0;
  --gold: #fcd34d;

  /* бренды */
  --c-tiktok: #25f4ee;
  --c-telegram: #2aabee;
  --c-discord: #5865f2;
  --c-youtube: #ff0033;
  --c-donate: #ff8a00;

  /* BUL$ Opti */
  --buls-bg: #020617;
  --buls-card: #0b1121;
  --buls-indigo: #6366f1;
  --buls-violet: #8b5cf6;
  --buls-blurple: #5865f2;
  --buls-text: #e2e8f0;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --card-r: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }

::selection { background: var(--blood); color: #fff; }

/* ---------- фоновые слои ---------- */

#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, transparent 55%, rgba(0, 0, 0, .8) 100%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(128, 0, 0, .1), transparent 60%);
}

.grain {
  position: fixed;
  inset: -10%; /* запас под сдвиги ≤3%, без гигантского композитного слоя */
  z-index: 2;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- кастомный курсор ---------- */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--blood-bright);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 39, 66, .45);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button { cursor: none; }
body.cursor-hover .cursor-ring {
  width: 52px; height: 52px;
  border-color: var(--blood-bright);
}

/* ---------- колонка ---------- */

.page {
  position: relative;
  z-index: 3;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 88px)
    max(20px, env(safe-area-inset-right))
    calc(48px + env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* клавиатурный фокус — системный курсор скрыт, нужна своя обводка */
:focus-visible {
  outline: 2px solid var(--blood-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.card:focus-visible, .btn:focus-visible, .cross:focus-visible {
  border-radius: var(--card-r);
}

/* ---------- reveal-анимации ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */

.hero {
  text-align: center;
  padding-bottom: 16px;
}

.avatar-wrap {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
}

.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(242, 240, 237, .14);
  position: relative;
  z-index: 1;
  filter: grayscale(.25) contrast(1.05); /* нуар-тонировка под бренд */
}

.avatar-ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(from 0deg, var(--blood), transparent 35%, var(--silver) 55%, transparent 75%, var(--blood)) border-box;
  animation: ring-spin 7s linear infinite;
}

@keyframes ring-spin { to { transform: rotate(360deg); } }

.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 22, 43, .2), transparent 65%);
  z-index: -1;
}

.status-dot {
  position: absolute;
  right: 5px; bottom: 5px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #3fd96c;
  border: 3px solid var(--bg);
  z-index: 2;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 217, 108, .5); }
  50% { box-shadow: 0 0 0 7px rgba(63, 217, 108, 0); }
}

.name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.85rem, 8vw, 2.7rem);
  letter-spacing: .02em;
  line-height: 1.05;
  position: relative;
  display: inline-block;
}

.name-dot { color: var(--blood-bright); }

/* RGB-split при наведении */
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch:hover::before, .glitch.glitch-go::before {
  opacity: .8;
  color: var(--silver);
  animation: glitch-a .35s steps(2) both;
}
.glitch:hover::after, .glitch.glitch-go::after {
  opacity: .8;
  color: var(--blood-bright);
  animation: glitch-b .35s steps(2) both;
}
@keyframes glitch-a {
  0% { transform: translate(-3px, 1px); } 50% { transform: translate(2px, -2px); } 100% { transform: none; opacity: 0; }
}
@keyframes glitch-b {
  0% { transform: translate(3px, -1px); } 50% { transform: translate(-2px, 2px); } 100% { transform: none; opacity: 0; }
}

.handle {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: .92rem;
  letter-spacing: .02em;
}
.handle .mono { color: var(--blood-bright); font-size: .88em; }

.bio {
  margin-top: 14px;
  font-size: .98rem;
  font-weight: 500;
}

.bio-mark {
  display: inline-block;
  color: var(--blood-bright);
  font-size: 1.05em;
  margin: 0 9px;
  vertical-align: -1px;
  text-shadow: 0 0 14px rgba(255, 39, 66, .7);
  animation: bio-blink 2s ease-in-out infinite;
}
.bio-mark:last-child { animation-delay: 1s; }
@keyframes bio-blink { 50% { opacity: .4; } }

.chips {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  background: rgba(16, 16, 17, .6);
  color: var(--text-dim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.chip--hot {
  border-color: var(--line);
  color: var(--blood-bright);
  background: rgba(224, 22, 43, .08);
}

/* ---------- STATS ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: var(--card-r);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.stat {
  padding: 18px 6px 16px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 22%;
  height: 56%;
  width: 1px;
  background: var(--line-soft);
}

.stat-num {
  display: block;
  font-size: clamp(1.05rem, 4.6vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  display: block;
  margin-top: 3px;
  font-size: .68rem;
  letter-spacing: .05em;
  color: var(--text-dim);
}

/* ---------- карточки (общее) ---------- */

.card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--card-r);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .08), transparent 45%);
  transition: opacity .3s;
  z-index: 1;
}
.card:hover .card-glare { opacity: 1; }

/* ---------- LINK CARDS ---------- */

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .3s, box-shadow .3s, background .3s,
    opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

/* после появления убираем transition с transform — иначе 3D-наклон «плывёт» */
.reveal.revealed {
  transition: border-color .3s, box-shadow .3s, background .3s;
}

.link-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(242, 240, 237, .05);
  border: 1px solid var(--line-soft);
  transition: transform .35s var(--ease-out), background .3s, border-color .3s, color .3s;
}
.link-icon svg { width: 22px; height: 22px; }

.link-body { flex: 1 1 auto; min-width: 0; }

.link-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
}

.link-sub {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-meta {
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .3s;
}

.link-arrow {
  flex: 0 0 auto;
  color: var(--text-dim);
  font-size: 1.05rem;
  transform: translateX(-4px);
  opacity: .4;
  transition: transform .35s var(--ease-out), opacity .3s, color .3s;
}

.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow {
  transform: translateX(0);
  opacity: 1;
}

.link-card:hover .link-icon { transform: scale(1.08) rotate(-4deg); }

/* брендовые подсветки */
.link-card[data-brand="tiktok"]:hover { border-color: rgba(37, 244, 238, .4); box-shadow: 0 8px 40px -12px rgba(37, 244, 238, .25); }
.link-card[data-brand="tiktok"]:hover .link-icon { color: var(--c-tiktok); border-color: rgba(37, 244, 238, .4); }
.link-card[data-brand="tiktok"]:hover .link-meta, .link-card[data-brand="tiktok"]:hover .link-arrow { color: var(--c-tiktok); }

.link-card[data-brand="telegram"]:hover { border-color: rgba(42, 171, 238, .4); box-shadow: 0 8px 40px -12px rgba(42, 171, 238, .25); }
.link-card[data-brand="telegram"]:hover .link-icon { color: var(--c-telegram); border-color: rgba(42, 171, 238, .4); }
.link-card[data-brand="telegram"]:hover .link-meta, .link-card[data-brand="telegram"]:hover .link-arrow { color: var(--c-telegram); }

.link-card[data-brand="discord"]:hover { border-color: rgba(88, 101, 242, .45); box-shadow: 0 8px 40px -12px rgba(88, 101, 242, .3); }
.link-card[data-brand="discord"]:hover .link-icon { color: var(--c-discord); border-color: rgba(88, 101, 242, .45); }
.link-card[data-brand="discord"]:hover .link-meta, .link-card[data-brand="discord"]:hover .link-arrow { color: var(--c-discord); }

.link-card[data-brand="youtube"]:hover { border-color: rgba(255, 0, 51, .4); box-shadow: 0 8px 40px -12px rgba(255, 0, 51, .25); }
.link-card[data-brand="youtube"]:hover .link-icon { color: var(--c-youtube); border-color: rgba(255, 0, 51, .4); }
.link-card[data-brand="youtube"]:hover .link-meta, .link-card[data-brand="youtube"]:hover .link-arrow { color: var(--c-youtube); }

.link-card[data-brand="donate"]:hover { border-color: rgba(255, 138, 0, .4); box-shadow: 0 8px 40px -12px rgba(255, 138, 0, .25); }
.link-card[data-brand="donate"]:hover .link-icon { color: var(--c-donate); border-color: rgba(255, 138, 0, .4); }
.link-card[data-brand="donate"]:hover .link-meta, .link-card[data-brand="donate"]:hover .link-arrow { color: var(--c-donate); }

.links { display: flex; flex-direction: column; gap: 12px; }

/* ---------- CONSOLE / СЕТАП ---------- */

.console { overflow: hidden; }

.console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, .5);
}

.console-dots { display: flex; gap: 6px; }
.console-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(242, 240, 237, .14);
}
.console-dots i:first-child { background: var(--blood); }

.console-title {
  font-size: .68rem;
  color: var(--text-dim);
  letter-spacing: .08em;
  white-space: nowrap;
}

.section-title {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blood-bright);
  white-space: nowrap;
}

.console-body {
  padding: 18px 20px 8px;
  font-size: .82rem;
  line-height: 2.1;
}

.console-body p {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.c-prompt { color: var(--blood-bright); }
.c-key { color: var(--text-dim); flex: 1 1 auto; min-width: 0; }
.c-val { color: var(--text); font-weight: 500; white-space: nowrap; text-align: right; }
.c-val--hot { color: var(--blood-bright); }
.c-hint { display: block; color: var(--text-dim); font-size: .72rem; padding-top: 4px; }

/* коды прицелов */
.cross-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 20px 20px;
}

.cross-label {
  flex: 1 1 100%;
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .03em;
  padding-bottom: 2px;
}

.cross {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 100px;
  border: 1px dashed rgba(224, 22, 43, .45);
  background: rgba(224, 22, 43, .07);
  color: var(--text);
  font-size: .78rem;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .15s;
}
.cross .mono { font-weight: 500; letter-spacing: .02em; }
.cross:hover { background: rgba(224, 22, 43, .14); border-color: var(--blood-bright); }
.cross:active { transform: scale(.96); }

.cross-copy {
  color: var(--text-dim);
  font-size: .85rem;
  transition: color .3s;
}
.cross:hover .cross-copy { color: var(--blood-bright); }
.cross.copied { border-color: rgba(63, 217, 108, .5); background: rgba(63, 217, 108, .08); }
.cross.copied .cross-copy { color: #3fd96c; }

/* ---------- BUL$ OPTI ---------- */

.buls {
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(99, 102, 241, .22), transparent 55%),
    radial-gradient(100% 120% at 0% 110%, rgba(139, 92, 246, .12), transparent 50%),
    var(--buls-bg);
  border-color: rgba(99, 102, 241, .25);
  color: var(--buls-text);
  padding: 26px 24px 24px;
  overflow: hidden;
  margin-top: 10px;
}

/* сетка-фон как на bulsopti.com */
.buls::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 102, 241, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(120% 100% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, black 30%, transparent 80%);
}

.buls > * { position: relative; }

.buls-tag {
  display: inline-block;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, .35);
  background: rgba(99, 102, 241, .1);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.buls-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 6.4vw, 1.9rem);
  letter-spacing: .01em;
  line-height: 1.1;
  color: #fff;
}
.buls-s { color: var(--buls-indigo); }
.buls-opti {
  background: linear-gradient(100deg, var(--buls-indigo), var(--buls-violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.buls-slogan {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #c7d2fe;
}

.buls-text {
  margin-top: 10px;
  font-size: .88rem;
  color: #94a3b8;
  line-height: 1.6;
}

.buls-quote {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--buls-indigo);
  border-radius: 0 12px 12px 0;
  background: rgba(11, 17, 33, .8);
  font-size: .82rem;
  color: #cbd5e1;
  font-style: italic;
}

.buls-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.bstat {
  text-align: center;
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(11, 17, 33, .85);
  border: 1px solid rgba(99, 102, 241, .18);
}

.bstat-num {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
}
.bstat:first-child .bstat-num { color: #34d399; }
.bstat:last-child .bstat-num { color: var(--gold); }

.bstat-label {
  display: block;
  margin-top: 2px;
  font-size: .64rem;
  letter-spacing: .04em;
  color: #94a3b8;
}

.buls-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .3s, background .3s, border-color .3s;
}

.btn--buls {
  color: #fff;
  background: linear-gradient(120deg, var(--buls-indigo), var(--buls-violet));
  box-shadow: 0 8px 28px -8px rgba(99, 102, 241, .55);
}
.btn--buls:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(99, 102, 241, .7);
}

.btn--ghost {
  flex: 0 1 auto;
  color: #c7d2fe;
  border: 1px solid rgba(88, 101, 242, .45);
  background: rgba(88, 101, 242, .1);
}
.btn--ghost:hover {
  background: rgba(88, 101, 242, .22);
  border-color: var(--buls-blurple);
  transform: translateY(-2px);
}

/* ---------- FOOTER ---------- */

.footer {
  text-align: center;
  padding: 26px 0 10px;
  font-size: .78rem;
  color: var(--text-dim);
}

.footer-domain {
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--blood-bright);
  margin-bottom: 8px;
}

.footer-line a, .footer-credit a {
  display: inline-block;
  padding: 6px 4px;
  margin: -2px 0;
}
.footer-line a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-line a:hover { color: var(--blood-bright); }

.footer-credit { margin-top: 6px; font-size: .72rem; opacity: .75; }
.footer-credit a { color: #a5b4fc; text-decoration: none; }
.footer-credit a:hover { color: #c7d2fe; }

/* ---------- адаптив ---------- */

@media (max-width: 420px) {
  .console-title { display: none; }
  .section-title { font-size: .72rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .link-meta { display: none; }
  .buls-actions { flex-direction: column; }
  .cross { flex: 1 1 auto; justify-content: space-between; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
