/* === PATCH v4.1 // typographic lock + access feedback === */
body, button, input, textarea, select,
.titlebar, .menubar, .statusbar, .sidebar, .terminal-body,
.term-line, .folder-list, .folder-row, .stub p, .manifesto,
.id-card-body, .channel, .tool, .theme-tag {
  font-family: var(--pixel-ru);
}

.logo-gif {
  image-rendering: auto;
}

.hero {
  min-height: 230px;
  margin-bottom: 10px;
  padding: 4px 0 8px;
}
.logo-gif { width: 920px; }
.terminal { margin-top: -12px; }
.terminal-body {
  font-size: 14px;
  line-height: 1.55;
  min-height: 350px;
}
.term-line .ru,
.id-row .v.ru,
.manifesto,
.theme-tag.ru,
.stub p { font-family: var(--pixel-ru); }
.term-line .key,
.term-line .ok,
.term-line .warn-c,
.id-row .v .accent,
.manifesto p .accent,
.manifesto p .key { color: var(--accent-bright); }

.menubar { position: relative; }
.menubar span {
  cursor: url("../../refs/New-Cursor-Finger.png") 8 1, pointer;
  position: relative;
  padding: 4px 0;
}
.menubar span.menu-glitch {
  color: var(--warn);
  text-shadow: 2px 0 var(--accent-bright), -2px 0 var(--warn);
  animation: menu-glitch .22s steps(2) 2;
}
@keyframes menu-glitch {
  0% { transform: translate(0,0); filter: none; }
  25% { transform: translate(-2px,1px); filter: contrast(1.8); }
  50% { transform: translate(3px,-1px); letter-spacing: 2px; }
  75% { transform: translate(-1px,0); opacity: .7; }
  100% { transform: translate(0,0); filter: none; }
}
.access-denied {
  position: absolute;
  top: 28px;
  right: 126px;
  z-index: 30;
  display: none;
  padding: 4px 8px;
  border: 1px solid var(--warn);
  background: rgba(8,10,14,0.96);
  color: var(--warn);
  font-family: var(--pixel-ru);
  font-size: 10px;
  letter-spacing: .5px;
  text-shadow: 0 0 8px rgba(255,51,112,.65);
  pointer-events: none;
  white-space: nowrap;
}
.access-denied.show {
  display: block;
  animation: denied-pop .9s steps(2);
}
@keyframes denied-pop {
  0% { opacity: 0; transform: translateY(-4px) skew(0); }
  10%, 80% { opacity: 1; transform: translateY(0) skew(-3deg); }
  30% { transform: translate(2px,1px) skew(3deg); }
  55% { transform: translate(-2px,0) skew(-2deg); }
  100% { opacity: 0; transform: translateY(-4px); }
}

.modal.closing { display: flex; animation: modal-glitch-out .32s steps(3) forwards; }
@keyframes modal-glitch-out {
  0% { opacity: 1; filter: none; transform: translate(0,0); }
  25% { opacity: .9; filter: contrast(1.8); transform: translate(-4px,2px); }
  50% { opacity: .6; filter: invert(.15) contrast(2); transform: translate(4px,-2px) skew(1deg); }
  75% { opacity: .35; transform: translate(-2px,1px) skew(-1deg); }
  100% { opacity: 0; transform: translate(0,0); }
}
.poster-magnifier {
  position: fixed;
  width: 154px;
  height: 154px;
  display: none;
  z-index: 205;
  pointer-events: none;
  border: 1px solid var(--accent-bright);
  background-repeat: no-repeat;
  image-rendering: auto;
  box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 0 18px var(--accent-glow);
  mix-blend-mode: normal;
}
.poster-magnifier.video-mode {
  overflow: hidden;
  background-image: none !important;
}
.poster-magnifier-video {
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  z-index: 0;
  max-width: none;
  max-height: none;
  object-fit: fill;
  border: 0;
  pointer-events: none;
  transform-origin: 0 0;
}
.poster-magnifier::before,
.poster-magnifier::after {
  content: '';
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: rgba(90,146,255,.55);
}
.poster-magnifier::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.poster-magnifier::after { top: 50%; left: 0; right: 0; height: 1px; }
.modal:not(.open) .poster-magnifier { display: none !important; }
@media (max-width: 1024px) {
  body.asterrvn-viewer-narrow .modal.open .poster-magnifier,
  body.asterrvn-phone .modal.open .poster-magnifier,
  body.asterrvn-tablet .modal.open .poster-magnifier {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
.modal-inner { cursor: url("../../refs/New-Cursor-Finger.png") 8 1, pointer; }
.modal img { cursor: url("../../refs/New-Cursor-Finger.png") 8 1, pointer; }

.statusbar .controls-bottom {
  min-width: 236px;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}
.statusbar .controls-bottom button {
  line-height: 1;
  min-width: 16px;
}

.cursor { display: none; }
.about-view { padding-top: 14px; }
.aboutme-view, .gallery-view { overflow-wrap: anywhere; }
.id-row .v, .manifesto p, .stub p { word-break: normal; overflow-wrap: anywhere; }


/* === PATCH v4.2 // temporary glitch, stronger poster exit, larger shell, loading states === */
.os-window {
  grid-template-rows: 36px 25px 1fr 31px;
  grid-template-columns: 47px 1fr 18px;
}
.titlebar { font-size: 10px; }
.tab { padding: 0 16px; gap: 10px; }
.tab .x { font-size: 12px; }
.titlebar .lang-switch,
.titlebar .version { font-size: 10px; padding-inline: 16px; }
.titlebar .controls button { width: 47px; font-size: 15px; }
.menubar {
  gap: 21px;
  padding: 0 18px;
  font-size: 10px;
}
.sidebar { padding-top: 13px; gap: 6px; }
.stat { font-size: 9px; padding: 6px 0; }
.icon-btn { width: 29px; height: 29px; font-size: 13px; }
.statusbar { font-size: 10px; padding: 0 16px; gap: 18px; }
.statusbar .frames span,
.statusbar .controls-bottom button { font-size: 9px; }
.statusbar .blinker { width: 8px; height: 8px; }
.scrollbar .thumb { left: 3px; right: 3px; }

.hero {
  min-height: 220px;
  padding: 12px 0 2px;
  margin-bottom: 0;
}
.logo-gif {
  width: 920px;
  /* Pull tag video up over empty hero space; negative margin shrinks flow gap above terminal */
  transform: translateY(-22px);
  margin-bottom: -18px;
}
.terminal {
  margin-top: -38px;
}

.term-line .ok { color: #56e08d !important; text-shadow: 0 0 8px rgba(86,224,141,.35); }
.term-line .warn-c { color: var(--warn) !important; text-shadow: 0 0 8px rgba(255,51,112,.45); }
.term-line .key,
.id-row .v .accent,
.manifesto p .accent,
.manifesto p .key { color: var(--accent-bright); }

.menubar span.menu-glitch {
  animation: menu-glitch-reset .46s steps(2) 1;
}
@keyframes menu-glitch-reset {
  0% { color: var(--warn); text-shadow: 2px 0 var(--accent-bright), -2px 0 var(--warn); transform: translate(0,0); filter: contrast(2); }
  18% { color: var(--text-bright); transform: translate(-3px,1px); letter-spacing: 2px; }
  34% { color: var(--warn); transform: translate(4px,-1px); filter: invert(.2) contrast(2.4); }
  52% { color: var(--accent-bright); transform: translate(-2px,0); opacity: .65; }
  72% { color: var(--warn); transform: translate(2px,1px); letter-spacing: 1px; }
  100% { color: var(--text-dim); text-shadow: none; transform: translate(0,0); filter: none; opacity: 1; letter-spacing: .5px; }
}

.modal.closing {
  display: flex;
  animation: modal-glitch-out-hard .62s steps(5) forwards;
}
.modal.closing::before,
.modal.closing::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 204;
  mix-blend-mode: screen;
}
.modal.closing::before {
  background: repeating-linear-gradient(0deg, rgba(90,146,255,.12) 0 1px, transparent 1px 6px);
  animation: modal-scan-cut .62s steps(6) forwards;
}
.modal.closing::after {
  background: linear-gradient(90deg, transparent 0 12%, rgba(255,51,112,.26) 12% 13%, transparent 13% 54%, rgba(90,146,255,.22) 54% 55%, transparent 55%);
  animation: modal-slice-shift .62s steps(5) forwards;
}
@keyframes modal-glitch-out-hard {
  0% { opacity: 1; filter: none; transform: translate(0,0) scale(1); }
  12% { opacity: 1; filter: contrast(2.4) saturate(1.6); transform: translate(-8px,3px) skew(2deg); }
  24% { opacity: .88; filter: invert(.22) contrast(2.8); transform: translate(9px,-4px) skew(-2deg); }
  38% { opacity: .72; filter: hue-rotate(90deg) contrast(3); transform: translate(-12px,2px) scale(1.012); }
  52% { opacity: .55; filter: invert(.35) grayscale(.2) contrast(3.4); transform: translate(7px,-2px) skew(3deg); }
  70% { opacity: .28; filter: contrast(4) brightness(1.25); transform: translate(-4px,0) scale(.992); }
  100% { opacity: 0; filter: contrast(5) brightness(.2); transform: translate(0,0) scale(.985); }
}
@keyframes modal-scan-cut {
  0% { clip-path: inset(0 0 0 0); opacity: 0; }
  18% { clip-path: inset(10% 0 73% 0); opacity: .9; }
  35% { clip-path: inset(42% 0 36% 0); opacity: .65; }
  56% { clip-path: inset(68% 0 16% 0); opacity: .75; }
  100% { clip-path: inset(100% 0 0 0); opacity: 0; }
}
@keyframes modal-slice-shift {
  0% { transform: translateX(0); opacity: 0; }
  20% { transform: translateX(-18px); opacity: .7; }
  42% { transform: translateX(24px); opacity: .9; }
  64% { transform: translateX(-10px); opacity: .55; }
  100% { transform: translateX(0); opacity: 0; }
}
.poster-hard-glitch {
  animation: poster-hard-glitch .62s steps(5) forwards;
}
@keyframes poster-hard-glitch {
  0% { transform: translate(0,0); filter: none; clip-path: inset(0); }
  15% { transform: translate(-10px,3px); filter: contrast(2.8); clip-path: inset(0 0 18% 0); }
  30% { transform: translate(12px,-4px); filter: invert(.28) contrast(3.2); clip-path: inset(20% 0 0 0); }
  48% { transform: translate(-6px,2px) skew(2deg); filter: hue-rotate(120deg) saturate(1.8); clip-path: inset(8% 0 35% 0); }
  68% { transform: translate(4px,-1px) scale(.99); filter: contrast(4) brightness(1.2); clip-path: inset(50% 0 12% 0); }
  100% { transform: translate(0,0) scale(.985); filter: contrast(5) brightness(.1); clip-path: inset(100% 0 0 0); }
}

.view-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  z-index: 150;
  background: rgba(0,0,0,.86);
  border: 1px solid rgba(90,146,255,.18);
  font-family: var(--pixel-en);
  color: var(--accent-bright);
  letter-spacing: 1px;
  pointer-events: none;
}
.view-loader.show {
  display: flex;
  animation: loader-glitch .52s steps(4) forwards;
}
.view-loader .load-title {
  font-size: 18px;
  text-shadow: 2px 0 var(--warn), 0 0 14px var(--accent-glow);
}
.view-loader .load-meta {
  font-size: 8px;
  color: var(--text-dim);
}
.view-loader .load-bar {
  width: min(420px, 60vw);
  height: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--accent-bright) 0 68%, transparent 68%);
  box-shadow: 0 0 14px var(--accent-glow);
  animation: load-fill .52s steps(6) forwards;
}
@keyframes load-fill {
  0% { background-size: 0% 100%; background-repeat: no-repeat; }
  100% { background-size: 100% 100%; background-repeat: no-repeat; }
}
@keyframes loader-glitch {
  0% { opacity: 0; filter: none; transform: translateY(0); }
  12% { opacity: 1; transform: translate(-4px,1px); filter: contrast(2); }
  42% { opacity: 1; transform: translate(5px,-2px); filter: invert(.12) contrast(2.4); }
  76% { opacity: .92; transform: translate(-2px,0); }
  100% { opacity: 1; transform: translate(0,0); filter: none; }
}


.hero-side-art {
  position: absolute;
  top: 46px;
  right: -150px;
  width: 460px;
  height: auto;
  max-width: none;
  z-index: 1;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 0.96;
}
.term-line.tools-subline {
  padding-left: 106px;
}
.statusbar .controls-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}
.statusbar .controls-bottom .mini-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.statusbar .controls-bottom .nav-btn,
.statusbar .controls-bottom .transport {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  line-height: 1;
  letter-spacing: 0;
  font-family: var(--mono);
}
.statusbar .controls-bottom .frame-label {
  min-width: 26px;
  text-align: center;
  font-family: var(--pixel-en);
  font-size: 8px;
  color: var(--text-dim);
}
.statusbar .controls-bottom .transport {
  min-width: 70px;
  padding: 0 8px;
}
@media (max-width: 1200px) {
  .hero-side-art {
    width: 360px;
    right: -120px;
    top: 64px;
  }
  .terminal-body {
    padding-right: 240px;
  }
}
@media (max-width: 900px) {
  .hero-side-art {
    display: none;
  }
  .terminal-body {
    padding-right: 22px;
  }
  .term-line.tools-subline {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .os-window {
    grid-template-rows: 28px 26px 1fr 22px;
    grid-template-columns: 1fr;
  }
  .menubar, .sidebar, .scrollbar { display: none; }
  .content { grid-column: 1; grid-row: 3; }
  .about-view, .gallery-view { padding: 18px 14px 40px; }
  .hero { min-height: 150px; padding: 4px 0 8px; margin-bottom: 8px; }
  .logo-gif { width: 100%; }
  .err-window { display: none !important; }
  .cursor { display: none; }
  .terminal-body { padding: 14px 16px 18px; font-size: 11px; min-height: 0; }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gallery-header h2 { font-size: 38px; letter-spacing: 3px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .statusbar { font-size: 7px; }
  .statusbar .frames { display: none; }
  .folder-row { grid-template-columns: 18px 1fr auto; }
  .folder-row .meta { display: none; }
  .aboutme-view { padding: 18px 14px 40px; }
  .aboutme-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .aboutme-header h2 { font-size: 38px; letter-spacing: 3px; }
  .id-card-body { grid-template-columns: 1fr; gap: 6px; }
  .id-row { grid-template-columns: 90px 1fr; }
  .channels { grid-template-columns: 1fr; }
  .manifesto { font-size: 14px; }
}


/* === PATCH v4.4 // targeted line fix + correct side art + statusbar repair === */
/* restore shell/frame thickness */
.titlebar { border-bottom: 1px solid var(--line) !important; }
.menubar { border-bottom: 1px solid var(--line) !important; }
.sidebar { border-right: 1px solid var(--line) !important; }
.scrollbar { border-left: 1px solid var(--line) !important; }
.statusbar { 
  border-top: 1px solid var(--line) !important;
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
}
.terminal { border: 1px solid var(--line) !important; }
.terminal-head { border-bottom: 1px dotted rgba(255,255,255,0.14) !important; }
.titlebar .lang-switch,
.titlebar .version,
.titlebar .controls,
.titlebar .controls button,
.tab { border-color: var(--line-soft) !important; border-width: 1px !important; }

/* only the highlighted inner lines become slightly clearer */
.term-line.divider {
  color: rgba(255,255,255,0.42) !important;
  text-shadow: 0 0 2px rgba(255,255,255,0.06);
}
.folder-list { border-top: 1px dotted rgba(255,255,255,0.18) !important; }
.folder-row { border-bottom: 1px dotted rgba(255,255,255,0.12) !important; }
.tab.active {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* fix the right-side head placement */
.hero-side-art {
  top: 58px !important;
  right: -88px !important;
  width: 540px !important;
  opacity: 0.92 !important;
}
.terminal-body {
  padding-right: 345px !important;
}
@media (max-width: 1200px) {
  .hero-side-art {
    top: 72px !important;
    right: -82px !important;
    width: 430px !important;
  }
  .terminal-body {
    padding-right: 280px !important;
  }
}

/* tools subline alignment */
.term-line.tools-subline {
  padding-left: 128px !important;
  letter-spacing: 0 !important;
}

/* statusbar bottom arrows alignment */
.statusbar .frames {
  min-width: 0;
  justify-content: space-evenly !important;
  align-items: center;
  gap: 0;
}
.statusbar .controls-bottom {
  min-width: 130px;
  justify-content: flex-end;
  gap: 12px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
.statusbar .controls-bottom .mini-nav {
  gap: 2px !important;
}
.statusbar .controls-bottom .nav-btn,
.statusbar .controls-bottom .transport {
  width: auto;
  min-width: 18px;
  height: 18px !important;
  padding: 0 3px !important;
  position: relative;
  top: 0 !important;
}
.statusbar .controls-bottom .transport {
  min-width: 66px;
}
.statusbar .controls-bottom .frame-label {
  min-width: 24px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -1px;
}


/* === PATCH v4.5 // side head appears only after terminal print === */
.hero-side-art {
  top: -118px !important;
  right: -74px !important;
  width: 620px !important;
  opacity: 0 !important;
  z-index: 3 !important;
  transform: translate(18px, 8px) skew(-1deg);
  filter: contrast(1.1) brightness(.9);
  visibility: hidden;
}

.hero-side-art.revealed {
  visibility: visible;
  opacity: .92 !important;
  animation: side-art-glitch-in .58s steps(5) forwards;
}

@keyframes side-art-glitch-in {
  0% {
    opacity: 0;
    clip-path: inset(0 0 92% 0);
    transform: translate(36px, -4px) skew(4deg);
    filter: contrast(3) brightness(1.35) hue-rotate(25deg);
  }
  18% {
    opacity: .85;
    clip-path: inset(8% 0 58% 0);
    transform: translate(-16px, 2px) skew(-3deg);
    filter: contrast(2.5) brightness(1.1);
  }
  34% {
    opacity: .42;
    clip-path: inset(42% 0 28% 0);
    transform: translate(22px, -2px) skew(2deg);
    filter: invert(.18) contrast(3.2);
  }
  52% {
    opacity: .96;
    clip-path: inset(12% 0 12% 0);
    transform: translate(-8px, 1px) skew(-1deg);
    filter: contrast(2);
  }
  76% {
    opacity: .7;
    clip-path: inset(0 0 0 0);
    transform: translate(6px, 0);
    filter: contrast(1.6) brightness(.95);
  }
  100% {
    opacity: .92;
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
    filter: contrast(1.1) brightness(.9);
  }
}

@media (max-width: 1200px) {
  .hero-side-art {
    top: -96px !important;
    right: -70px !important;
    width: 520px !important;
  }
}

@media (max-width: 900px) {
  .hero-side-art {
    display: none !important;
  }
}


/* === PATCH v4.6 // faster typing + stronger side-art glitch + corrected position === */
.hero-side-art {
  top: -108px !important;
  right: -14px !important;
  width: 636px !important;
  opacity: 0 !important;
  visibility: hidden;
  z-index: 3 !important;
  image-rendering: pixelated;
  transform: translate(0,0);
  filter: contrast(1.05) brightness(.92);
  will-change: transform, opacity, filter, clip-path;
}

.hero-side-art.revealed {
  visibility: visible;
  opacity: .95 !important;
  animation: side-art-glitch-in-hard .72s steps(8) forwards;
}

@keyframes side-art-glitch-in-hard {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translate(28px,-14px) skew(5deg) scale(1.03);
    filter: brightness(1.7) contrast(3.2) hue-rotate(28deg);
  }
  8% {
    opacity: .95;
    clip-path: inset(0 0 78% 0);
    transform: translate(-26px,10px) skew(-4deg) scale(1.04);
    filter: invert(.14) brightness(1.35) contrast(2.8);
  }
  16% {
    opacity: .35;
    clip-path: inset(22% 0 46% 0);
    transform: translate(34px,-6px) skew(3deg) scale(.99);
    filter: hue-rotate(110deg) contrast(3.6);
  }
  24% {
    opacity: .92;
    clip-path: inset(6% 0 18% 0);
    transform: translate(-14px,4px) skew(-2deg) scale(1.02);
    filter: brightness(1.12) contrast(2.4);
  }
  34% {
    opacity: .22;
    clip-path: inset(54% 0 8% 0);
    transform: translate(22px,-2px) skew(2deg) scale(1.01);
    filter: invert(.22) contrast(4.2) grayscale(.15);
  }
  44% {
    opacity: .96;
    clip-path: inset(10% 0 0 0);
    transform: translate(-8px,1px) skew(-1deg) scale(1.008);
    filter: brightness(1) contrast(2);
  }
  56% {
    opacity: .55;
    clip-path: inset(0 0 34% 0);
    transform: translate(10px,0) skew(1deg);
    filter: brightness(.85) contrast(3.5);
  }
  68% {
    opacity: .94;
    clip-path: inset(0 0 0 0);
    transform: translate(-4px,0) skew(0deg);
    filter: brightness(.98) contrast(1.6);
  }
  82% {
    opacity: .78;
    transform: translate(3px,0);
    filter: brightness(.9) contrast(1.35);
  }
  100% {
    opacity: .95;
    clip-path: inset(0 0 0 0);
    transform: translate(0,0) skew(0deg) scale(1);
    filter: contrast(1.05) brightness(.92);
  }
}

@media (max-width: 1200px) {
  .hero-side-art {
    top: -96px !important;
    right: -10px !important;
    width: 540px !important;
  }
}


/* === PATCH v4.7 // corrected head size and placement === */
.hero-side-art {
  top: -158px !important;
  right: -86px !important;
  width: 548px !important;
  opacity: 0 !important;
  visibility: hidden;
}

.hero-side-art.revealed {
  opacity: .92 !important;
}

@media (max-width: 1200px) {
  .hero-side-art {
    top: -132px !important;
    right: -72px !important;
    width: 470px !important;
  }
}


/* === PATCH v4.8 // head glitch upgrade + click glitch + text alignment + highlight fix === */

/* remove bottom transport junk */
.statusbar .controls-bottom .transport {
  display: none !important;
}

/* move tools continuation line to line start */
.term-line.tools-subline {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* head stays in current correct position, but interaction/glitch is upgraded */
.hero-side-art {
  pointer-events: auto !important;
  cursor: url("../../refs/New-Cursor-Finger.png") 8 1, pointer;
  mix-blend-mode: normal;
}

.hero-side-art.revealed {
  animation: side-art-glitch-in-v48 .95s steps(9) forwards !important;
}

@keyframes side-art-glitch-in-v48 {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translate(42px,-18px) skew(6deg) scale(1.035);
    filter: brightness(2.2) contrast(4.6) hue-rotate(180deg);
  }
  7% {
    opacity: .95;
    clip-path: inset(0 0 72% 0);
    transform: translate(-34px,7px) skew(-5deg) scale(1.045);
    filter: invert(.35) brightness(1.5) contrast(4);
  }
  13% {
    opacity: .18;
    clip-path: inset(34% 0 46% 0);
    transform: translate(28px,-10px) skew(4deg) scale(.99);
    filter: hue-rotate(90deg) saturate(2) contrast(5);
  }
  21% {
    opacity: .9;
    clip-path: inset(8% 0 58% 0);
    transform: translate(-18px,4px) skew(-3deg) scale(1.025);
    filter: brightness(1.3) contrast(3.4);
  }
  29% {
    opacity: .32;
    clip-path: inset(61% 0 12% 0);
    transform: translate(36px,2px) skew(2deg) scale(1.012);
    filter: invert(.22) grayscale(.35) contrast(5.2);
  }
  39% {
    opacity: .98;
    clip-path: inset(0 0 26% 0);
    transform: translate(-10px,-2px) skew(-1deg);
    filter: brightness(1.05) contrast(2.8);
  }
  52% {
    opacity: .58;
    clip-path: inset(18% 0 0 0);
    transform: translate(14px,0) skew(1deg);
    filter: brightness(.72) contrast(5.5);
  }
  67% {
    opacity: .95;
    clip-path: inset(0 0 0 0);
    transform: translate(-6px,1px);
    filter: drop-shadow(8px 0 rgba(90,146,255,.4)) drop-shadow(-7px 0 rgba(255,51,112,.32)) contrast(2);
  }
  82% {
    opacity: .82;
    transform: translate(3px,0);
    filter: contrast(1.45) brightness(.9);
  }
  100% {
    opacity: .92;
    clip-path: inset(0 0 0 0);
    transform: translate(0,0) skew(0deg) scale(1);
    filter: contrast(1.05) brightness(.92);
  }
}

/* click reaction: 1.5s of controlled system corruption */
.hero-side-art.head-click-glitch {
  animation: head-click-glitch-v48 1.55s steps(11) both !important;
}

@keyframes head-click-glitch-v48 {
  0% {
    opacity: .92;
    transform: translate(0,0);
    clip-path: inset(0);
    filter: contrast(1.05) brightness(.92);
  }
  8% {
    transform: translate(-16px,4px) skew(-3deg);
    clip-path: inset(0 0 68% 0);
    filter: invert(.2) contrast(4.5) brightness(1.5);
  }
  15% {
    transform: translate(21px,-3px) skew(3deg);
    clip-path: inset(28% 0 38% 0);
    filter: hue-rotate(120deg) saturate(2) contrast(5);
  }
  24% {
    transform: translate(-9px,2px);
    clip-path: inset(62% 0 12% 0);
    filter: brightness(.7) contrast(5.8);
  }
  34% {
    transform: translate(13px,0) scale(1.01);
    clip-path: inset(0 0 0 0);
    filter: drop-shadow(12px 0 rgba(90,146,255,.5)) drop-shadow(-10px 0 rgba(255,51,112,.38)) contrast(3);
  }
  47% {
    opacity: .42;
    transform: translate(-22px,1px) skew(-4deg);
    clip-path: inset(45% 0 24% 0);
    filter: invert(.35) grayscale(.2) contrast(6);
  }
  61% {
    opacity: .95;
    transform: translate(8px,-2px);
    clip-path: inset(8% 0 0 0);
    filter: brightness(1.1) contrast(2.4);
  }
  77% {
    transform: translate(-4px,0);
    filter: contrast(1.7) brightness(.82);
  }
  100% {
    opacity: .92;
    transform: translate(0,0) skew(0deg) scale(1);
    clip-path: inset(0);
    filter: contrast(1.05) brightness(.92);
  }
}


/* === PATCH v4.9 // compact head click glitch + status dot + tools icons + bigger magnifier === */

/* REC marker: square -> aligned circle */
.statusbar .blinker {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  margin-right: 8px !important;
  vertical-align: -1px !important;
}

/* Poster magnifier 2x */
.poster-magnifier {
  width: 308px !important;
  height: 308px !important;
}

/* Tools icons row in terminal */
.term-line.tools-icons {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  margin-bottom: 2px;
  padding-left: 0 !important;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.035);
  color: var(--text-bright);
  font-family: var(--pixel-en);
  font-size: 9px;
  letter-spacing: .5px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(90,146,255,.28);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45);
}

.tool-icon.ps { color: #62a8ff; border-color: rgba(98,168,255,.45); }
.tool-icon.ae { color: #b28cff; border-color: rgba(178,140,255,.45); }
.tool-icon.c4d { color: #ff6f6f; border-color: rgba(255,111,111,.45); }
.tool-icon.marv { color: #d8d8d8; border-color: rgba(216,216,216,.36); }
.tool-icon.pr { color: #9aa2ff; border-color: rgba(154,162,255,.45); }
.tool-icon.fl { color: #ff9d45; border-color: rgba(255,157,69,.45); }
.tool-ai {
  margin-left: 4px;
  color: var(--accent-bright);
  font-family: var(--pixel-en);
  font-size: 12px;
  letter-spacing: .5px;
  white-space: nowrap;
}

/* override old click glitch: shorter, tighter, no left/right wobble */
.hero-side-art.head-click-glitch {
  animation: head-click-glitch-v49 .62s steps(6) both !important;
}

@keyframes head-click-glitch-v49 {
  0% {
    opacity: .92;
    transform: translate(0,0) scale(1);
    clip-path: inset(0);
    filter: contrast(1.05) brightness(.92);
  }
  14% {
    opacity: .82;
    transform: translate(0,-1px) scale(1.006);
    clip-path: inset(0 0 74% 0);
    filter: invert(.12) contrast(2.8) brightness(1.2);
  }
  28% {
    opacity: .96;
    transform: translate(0,1px) scale(.998);
    clip-path: inset(26% 0 42% 0);
    filter: hue-rotate(80deg) contrast(3.2);
  }
  42% {
    opacity: .55;
    transform: translate(0,0) scale(1.004);
    clip-path: inset(58% 0 14% 0);
    filter: brightness(.75) contrast(3.8);
  }
  58% {
    opacity: .94;
    transform: translate(0,-1px) scale(1);
    clip-path: inset(8% 0 0 0);
    filter: drop-shadow(3px 0 rgba(90,146,255,.35)) drop-shadow(-3px 0 rgba(255,51,112,.25)) contrast(2);
  }
  76% {
    opacity: .86;
    transform: translate(0,0) scale(1.002);
    clip-path: inset(0);
    filter: contrast(1.5) brightness(.86);
  }
  100% {
    opacity: .92;
    transform: translate(0,0) scale(1);
    clip-path: inset(0);
    filter: contrast(1.05) brightness(.92);
  }
}


