/* =============================================================
   AbyssGate — shared visual language
   Dark "abyss" + purple glow + fog-drift
   Fonts:
     - Cinzel (headings)
     - Cormorant Garamond (body)
     - JetBrains Mono (chronostamps, dates, code, monospace UI)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Cormorant+Garamond:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #05050f;
  --bg-2: #0a0a1a;
  --bg-3: #11122a;
  --ink: #d8d4e8;
  --ink-dim: #8a85a8;
  --ink-mist: #b9b3d6;
  --purple: #8a50dc;
  --purple-bright: #b08cff;
  --purple-deep: #4a1e8a;
  --line: rgba(138, 80, 220, 0.25);
  --line-strong: rgba(138, 80, 220, 0.55);
  --gold: #d4b56a;
  --shadow-purple: 0 0 30px rgba(138, 80, 220, 0.35);
  --shadow-purple-soft: 0 0 60px rgba(138, 80, 220, 0.18);

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Radial "fog" of the abyss */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(74, 30, 138, 0.35), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(138, 80, 220, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(20, 8, 40, 0.6), var(--bg) 70%);
  z-index: -2;
  pointer-events: none;
}

/* fog-drift — slow drifting "smoke" */
body::after {
  content: '';
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 40%, rgba(138, 80, 220, 0.06), transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(176, 140, 255, 0.05), transparent 40%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: fog-drift 45s ease-in-out infinite alternate;
}

@keyframes fog-drift {
  0%   { transform: translate(0,    0)   scale(1);   }
  50%  { transform: translate(4%,   2%)  scale(1.05); }
  100% { transform: translate(-3%, -2%)  scale(1.02); }
}

/* =============================================================
   Top Navigation
   ============================================================= */

.abyss-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(10, 10, 26, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.abyss-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.abyss-nav__brand-mark {
  font-size: 22px;
  color: var(--purple-bright);
  text-shadow: 0 0 12px rgba(138, 80, 220, 0.7);
  animation: brand-pulse 3.2s ease-in-out infinite;
}

@keyframes brand-pulse {
  0%, 100% { text-shadow: 0 0 12px rgba(138, 80, 220, 0.7); }
  50%      { text-shadow: 0 0 22px rgba(176, 140, 255, 1.0); }
}

.abyss-nav__menu {
  display: flex;
  gap: 6px;
  list-style: none;
}

.abyss-nav__link {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-mist);
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 220ms ease;
  position: relative;
}

.abyss-nav__link:hover {
  color: var(--purple-bright);
  border-color: var(--line-strong);
  text-shadow: 0 0 10px rgba(176, 140, 255, 0.6);
  box-shadow: var(--shadow-purple-soft);
}

.abyss-nav__link--active {
  color: var(--purple-bright);
  border-color: var(--line-strong);
  text-shadow: 0 0 10px rgba(176, 140, 255, 0.6);
}

.abyss-nav__link--active::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent);
  box-shadow: 0 0 12px var(--purple-bright);
}

/* =============================================================
   Hero / page intro
   ============================================================= */

.abyss-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

.abyss-hero {
  text-align: center;
  margin-bottom: 56px;
}

.abyss-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-bright);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 24px;
  background: rgba(20, 8, 40, 0.4);
  /* effect 4 — flicker, as if the whisper is unstable */
  animation: eyebrow-flicker 4.5s ease-in-out infinite;
}

@keyframes eyebrow-flicker {
  0%, 47%, 51%, 91%, 95%, 100% { opacity: 1;    text-shadow: 0 0 0 transparent; }
  48%                          { opacity: 0.55; text-shadow: 0 0 12px rgba(138, 80, 220, 0.6); }
  50%                          { opacity: 1;    text-shadow: 0 0 0 transparent; }
  93%                          { opacity: 0.7;  text-shadow: 0 0 8px  rgba(192, 132, 252, 0.5); }
}

.abyss-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 64px);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(138, 80, 220, 0.25);
  position: relative;
  cursor: default;
}

/* effect 5 — mouse-tracked purple glow halo on the title
   --glow-x and --glow-y are updated by JS on mousemove over .abyss-title.
   The .abyss-title em (accent word) inherits the halo via its own shadow. */
.abyss-title::after {
  content: '';
  position: absolute;
  inset: -20px -10px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle 280px at var(--glow-x, 50%) var(--glow-y, 50%),
              rgba(192, 132, 252, 0.25),
              transparent 70%);
  transition: opacity 220ms ease;
  opacity: 0;
}
.abyss-title:hover::after { opacity: 1; }

.abyss-title em {
  font-style: italic;
  color: var(--purple-bright);
  text-shadow: 0 0 28px rgba(176, 140, 255, 0.6);
}

.abyss-subtitle {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 720px;
  margin: 0 auto;
  font-style: italic;
}

/* =============================================================
   Status strip + chronostamp
   ============================================================= */

.abyss-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  background: rgba(10, 10, 26, 0.4);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.abyss-meta__pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-bright);
  margin-right: 8px;
  box-shadow: 0 0 12px var(--purple-bright);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.4; transform: scale(0.7);  }
}

/* chronostamp on cards — narrow mono with custom letter-spacing */
.abyss-chrono {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-bright);
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(20, 8, 40, 0.55);
  text-shadow: 0 0 8px rgba(176, 140, 255, 0.4);
}

.abyss-chrono--strong {
  color: var(--gold);
  border-color: rgba(212, 181, 106, 0.55);
  text-shadow: 0 0 10px rgba(212, 181, 106, 0.4);
}

/* =============================================================
   Card grid + cards
   ============================================================= */

.abyss-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.abyss-card {
  background: linear-gradient(180deg, rgba(17, 18, 42, 0.7), rgba(10, 10, 26, 0.7));
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 320ms ease,
              border-color 320ms ease,
              opacity 480ms ease;
  display: flex;
  flex-direction: column;
  position: relative;

  /* effect 3 — fade-up stagger on initial render
     --i is set inline by the renderer (0, 1, 2, …) */
  opacity: 0;
  transform: translateY(20px);
  animation: card-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(60ms * var(--i, 0));
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}
/* override stagger only when user disables motion */
@media (prefers-reduced-motion: reduce) {
  .abyss-card { animation: none !important; opacity: 1; transform: none; }
}

.abyss-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(138, 80, 220, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

/* effect 1 — edge glow ring on hover (purple light leaks around the card) */
.abyss-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
              rgba(138, 80, 220, 0.0)  0%,
              rgba(138, 80, 220, 0.65) 35%,
              rgba(192, 132, 252, 0.45) 55%,
              rgba(138, 80, 220, 0.0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: 2;
}
.abyss-card:hover::after { opacity: 1; }

.abyss-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow:
    0 12px 50px rgba(138, 80, 220, 0.35),
    0 0 28px rgba(138, 80, 220, 0.18);  /* soft halo */
}

.abyss-card:hover::before {
  opacity: 1;
}

/* effect 2 — image reveal: zoom + purple veil revealing on hover */
.abyss-card__img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.7) brightness(0.85);
  transition: filter 320ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.abyss-card:hover .abyss-card__img {
  filter: saturate(1) brightness(1);
  transform: scale(1.05);
}

.abyss-card__body {
  padding: 20px 22px 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.abyss-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.abyss-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-bright);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(74, 30, 138, 0.2);
}

.abyss-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.abyss-card__title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--purple-bright), var(--purple-bright));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 280ms ease;
}

.abyss-card__title a:hover {
  color: var(--purple-bright);
  background-size: 100% 1px;
}

.abyss-card__summary {
  font-size: 17px;
  font-weight: 500;
  color: #ece8f6;
  margin-bottom: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.abyss-card__summary code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--purple-bright);
}

.abyss-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.abyss-card__source {
  color: var(--ink-mist);
}

.abyss-card__date {
  color: var(--purple-bright);
  text-shadow: 0 0 6px rgba(176, 140, 255, 0.3);
}

/* =============================================================
   Page footer
   ============================================================= */

.abyss-footer {
  text-align: center;
  padding: 32px 20px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

.abyss-footer__sig {
  margin-top: 6px;
  font-style: italic;
  color: var(--purple-bright);
  text-shadow: 0 0 8px rgba(176, 140, 255, 0.3);
}

/* =============================================================
   Eye of Cthulhu — mirrored 1:1 from abyssgate.space
   Same gradient, same vertical pupil, same orange inner glow,
   same red rings. Behaviour differs slightly (corner-located,
   ~80px, follows cursor with the same wandering drift).

   Original classes from prod (.eye-wrap / .eye-globe /
   .eye-pupil-wrap / .eye-pupil) are kept unchanged so anyone
   diffing the two CSS files sees the same shapes.
   ============================================================= */

.eye-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 168px;
  height: 168px;
  margin: 0;
  z-index: 40;
  pointer-events: none;
  animation: eye-float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(160, 120, 220, 0.45));
}
@keyframes eye-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}

.eye-globe {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    #f0e8d8 0%, #d0b8e8 25%, #603080 55%, #1a0828 100%);
  box-shadow:
    inset 0 0 30px rgba(140, 100, 200, 0.5),
    0 0 40px rgba(160, 120, 220, 0.3),
    0 0 80px rgba(120, 80, 180, 0.2);
  animation: globe-spin 30s linear infinite;
}
@keyframes globe-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.eye-pupil-wrap {
  position: absolute;
  top: 50%; left: 50%;
  /* container the pupil sits in — was 18×42 when eye was 84px,
     now scaled up so the pupil is visible on the 168px eye-wrap */
  width: 34px; height: 80px;
  margin: -40px 0 0 -17px;
  z-index: 2;
  /* Smooth, slightly slower movement. Plain ease-out — no overshoot —
     so the pupil never jumps past the cursor. 0.7s feels organic on
     a 168px eye. */
  transition: transform 0.7s ease-out;
}

.eye-pupil {
  position: relative;
  /* vertical slit pupil — width=8px gives a visible shape on the larger eye */
  width: 8px; height: 70px;
  margin: 5px auto 0;
  background: linear-gradient(180deg, #05020a 0%, #1a0a20 50%, #05020a 100%);
  border-radius: 50% 50% 50% 50% / 15% 15% 85% 85%;
  box-shadow: 0 0 14px rgba(10, 2, 20, 0.9),
              0 0 22px rgba(138, 80, 220, 0.4);
  /* No transition on width — instant dilation reads better here than
     an animated one, and avoids combining with the parent's transform
     transition (which is what was causing the jitter). */
}
.eye-pupil.recognizing {
  width: 14px;                                   /* pupil dilates when looking at us */
  box-shadow: 0 0 22px rgba(255, 180, 60, 0.85),
              0 0 10px rgba(120, 60, 20, 0.6),
              0 0 30px rgba(255, 200, 80, 0.5);
}
.eye-pupil::before {
  content: '';
  position: absolute;
  inset: -4px;                                   /* bleed beyond the slit */
  border-radius: inherit;
  background: linear-gradient(180deg, #ffaa00, #ff6600, #ffcc00, #ff6600, #ffaa00);
  filter: blur(4px) brightness(1.4);
  mix-blend-mode: screen;
  opacity: 0.9;
  /* Animate ONLY opacity, not filter — filter changes every frame cause
     repaints that visibly vibrate the pupil width. 4s cycle is gentle. */
  animation: pupil-glow 4s ease-in-out infinite alternate;
}
.eye-pupil.recognizing::before {
  filter: blur(5px) brightness(2);
  opacity: 1;
}
@keyframes pupil-glow {
  from { opacity: 0.78; }
  to   { opacity: 1;    }
}
.eye-pupil::after {
  content: '';
  position: absolute;
  inset: -5px;                                   /* horizontal "iris fibres" overlay */
  border-radius: inherit;
  background: repeating-linear-gradient(90deg,
    transparent 0,    transparent 1.5px,
    rgba(255, 160, 0, 0.4) 1.5px, rgba(255, 160, 0, 0.4) 2.5px,
    transparent 2.5px, transparent 5px);
  filter: blur(1.5px);
  mix-blend-mode: color-dodge;
  opacity: 0.7;
}

/* On small screens shrink further so it doesn't cover cards */
@media (max-width: 640px) {
  .eye-wrap { width: 64px; height: 64px; right: 12px; bottom: 12px; }
  /* pupil shrinks with the eye so it stays in proportion */
  .eye-pupil-wrap { width: 14px; height: 32px; margin: -16px 0 0 -7px; }
  .eye-pupil       { width: 4px; height: 28px; margin: 2px auto 0; }
  .abyss-card__img { height: 160px; }
  .abyss-nav { padding: 10px 16px; }
  .abyss-nav__menu { gap: 0; }
  .abyss-nav__link { padding: 6px 10px; font-size: 11px; }
}

/* Respect reduced-motion preference (still show the eye, just freeze it) */
@media (prefers-reduced-motion: reduce) {
  .eye-globe,
  .eye-wrap,
  .eye-pupil::before { animation: none !important; }
  .eye-pupil-wrap { transition: none !important; }
  body::after { animation: none !important; }
}

/* legacy .abyss-eye--mini modifier preserved so the markup still works,
   but it's now a no-op alias of .eye-wrap (kept for compatibility) */
.abyss-eye--mini { width: 168px; height: 168px; }

/* Visual effect layers removed 2026-07-18: depth-scroll, bioluminescent particles, water ripples, sonar pulse. */

/* ===== Hidden backdoor access (CSS-only, invisible but clickable) ===== */
.hidden-access {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: auto;
  cursor: default;
  text-decoration: none;
}
.hidden-access:focus,
.hidden-access:active {
  outline: none;
}

/* ===== Footer link · (reports hint) ===== */
.abyss-link {
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 12px;
  vertical-align: middle;
  color: var(--ink-dim);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.abyss-link:hover { opacity: 1.0; }

/* ===== "Whisper Channel" card — placeholder (no link) ===== */
.abyss-card--whisper {
  border-style: dashed;
  opacity: 0.85;
}
.abyss-card--whisper .abyss-card__title {
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   EYE OF CTHULHU — restored from 2026-07-16 (pre-today).
   Глаз Бездны: 280×280, парящий, с вращающимся глазным яблоком и
   блуждающим зрачком. Hover → расширение (recognizing, золотой glow).
   ═══════════════════════════════════════════════════════════════ */
.eye-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 30px;
  animation: eye-float 6s ease-in-out infinite;
}
@keyframes eye-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.eye-globe {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    #f0e8d8 0%, #d0b8e8 25%, #603080 55%, #1a0828 100%);
  box-shadow:
    inset 0 0 60px rgba(140,100,200,0.5),
    0 0 80px rgba(160,120,220,0.3),
    0 0 150px rgba(120,80,180,0.2);
  animation: globe-spin 30s linear infinite;
}
@keyframes globe-spin {
  0%   { transform: rotate(0deg);   }
  100% { transform: rotate(360deg); }
}
.eye-pupil-wrap {
  position: absolute; top: 50%; left: 50%;
  width: 60px; height: 140px; margin: -70px 0 0 -30px; z-index: 2;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.eye-pupil {
  position: relative; width: 14px; height: 120px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, #05020a 0%, #1a0a20 50%, #05020a 100%);
  border-radius: 50% 50% 50% 50% / 15% 15% 85% 85%;
  box-shadow: 0 0 24px rgba(10,2,20,0.9);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.5s ease-out;
}
.eye-pupil.recognizing {
  width: 20px;
  box-shadow: 0 0 40px rgba(255,180,60,0.7), 0 0 16px rgba(120,60,20,0.5);
}
.eye-pupil::before {
  content: ''; position: absolute; inset: -5px; border-radius: inherit;
  background: linear-gradient(180deg, #ffaa00, #ff6600, #ffcc00, #ff6600, #ffaa00);
  filter: blur(4px) brightness(1.4);
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: pupil-glow 2s ease-in-out infinite alternate;
  transition: opacity 0.5s ease-out, filter 0.5s ease-out;
}
.eye-pupil.recognizing::before {
  opacity: 1;
  filter: blur(6px) brightness(2);
}
@keyframes pupil-glow {
  0%   { opacity: 0.7; filter: blur(3px) brightness(1.2); }
  100% { opacity: 1;   filter: blur(5px) brightness(1.6); }
}
.eye-pupil::after {
  content: ''; position: absolute; inset: -8px; border-radius: inherit;
  background: repeating-linear-gradient(90deg,
    transparent 0px, transparent 2px,
    rgba(255,160,0,0.4) 2px, rgba(255,160,0,0.4) 3px,
    transparent 3px, transparent 6px);
  filter: blur(2px);
  mix-blend-mode: color-dodge;
  opacity: 0.6;
}
.silhouette {
  position: absolute; bottom: 10%; width: 8px; height: 22px;
  background: #030008;
  clip-path: polygon(35% 0%, 65% 0%, 70% 20%, 80% 35%, 80% 70%, 65% 100%, 40% 75%, 20% 100%, 15% 70%, 25% 35%);
  filter: drop-shadow(0 0 6px rgba(100,30,150,0.3));
  z-index: 3;
}
.abyss-eye-portal {
  display: flex;
  justify-content: center;
  margin: 18px 0 30px;
}

/* ════════════════════════════════════════════════════════
   ABYSS MIST NAV — ∅ button → cloud menu (top-right)
   ════════════════════════════════════════════════════════ */
.mist-nav {
  position: fixed; top: 22px; right: 22px; z-index: 100;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(138,80,220,0.42) 0%, rgba(74,30,138,0.25) 55%, rgba(10,4,20,0.05) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(176,140,255,0.35);
  box-shadow: 0 0 24px rgba(138,80,220,0.25), inset 0 0 18px rgba(138,80,220,0.15);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 26px; font-weight: 600; line-height: 1;
  color: rgba(220,200,255,0.85);
  text-shadow: 0 0 12px rgba(176,140,255,0.6);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease, background 0.4s ease;
  animation: mist-breathe 5s ease-in-out infinite;
  user-select: none;
}
.mist-nav:hover {
  transform: scale(1.08);
  box-shadow: 0 0 36px rgba(138,80,220,0.55), 0 0 80px rgba(74,30,138,0.35), inset 0 0 24px rgba(176,140,255,0.25);
  background: radial-gradient(circle at 50% 40%, rgba(176,140,255,0.55) 0%, rgba(74,30,138,0.4) 55%, rgba(20,8,40,0.15) 100%);
}
.mist-nav.open {
  transform: rotate(135deg) scale(1.05);
  box-shadow: 0 0 48px rgba(176,140,255,0.7), inset 0 0 26px rgba(176,140,255,0.4);
}
@keyframes mist-breathe {
  0%,100% { box-shadow: 0 0 20px rgba(138,80,220,0.22), inset 0 0 14px rgba(138,80,220,0.12); }
  50%     { box-shadow: 0 0 32px rgba(138,80,220,0.4),  inset 0 0 22px rgba(176,140,255,0.22); }
}

.mist-cloud {
  position: fixed; top: 80px; right: 22px; z-index: 99;
  min-width: 180px;
  padding: 14px 6px;
  border-radius: 22px;
  background: radial-gradient(ellipse at 60% 20%, rgba(74,30,138,0.62) 0%, rgba(20,8,40,0.45) 60%, rgba(8,4,18,0.18) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(138,80,220,0.28);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 60px rgba(74,30,138,0.25), inset 0 0 30px rgba(138,80,220,0.08);
  opacity: 0; transform: translateY(-10px) scale(0.92);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mist-cloud::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at 25% 30%, rgba(176,140,255,0.18) 0, transparent 35%),
    radial-gradient(circle at 75% 70%, rgba(138,80,220,0.16) 0, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(74,30,138,0.12) 0, transparent 55%);
  filter: blur(16px);
  animation: mist-drift 12s ease-in-out infinite;
}
@keyframes mist-drift {
  0%,100% { transform: translate(0,0) scale(1); opacity: 0.9; }
  50%     { transform: translate(-6px,4px) scale(1.05); opacity: 1; }
}
.mist-cloud.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.mist-link {
  position: relative; z-index: 2;
  display: block; padding: 10px 22px;
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(217,212,232,0.7);
  text-decoration: none;
  text-align: center;
  transition: color 0.3s, text-shadow 0.3s, background 0.3s;
}
.mist-link:hover, .mist-link:focus {
  color: rgba(245,235,255,1);
  text-shadow: 0 0 14px rgba(176,140,255,0.8);
  background: radial-gradient(circle at 50% 50%, rgba(138,80,220,0.18) 0%, transparent 70%);
  outline: none;
}
.mist-link.active {
  color: rgba(245,225,255,1);
  text-shadow: 0 0 18px rgba(176,140,255,0.9), 0 0 32px rgba(138,80,220,0.6);
}
.mist-link.active::before {
  content: '◦'; position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  color: rgba(176,140,255,0.8); text-shadow: 0 0 8px rgba(176,140,255,0.9);
}
@media (max-width: 520px) {
  .mist-nav { top: 14px; right: 14px; width: 46px; height: 46px; font-size: 22px; }
  .mist-cloud { top: 68px; right: 14px; min-width: 160px; }
  .mist-link { font-size: 12px; padding: 9px 18px; }
}
