/* Arakot Render Lab · v15 · KURGU · kod çizgileri (brif 7, deneme; kod.js)
   The column blends as difference: its white ink reads dark on the light
   scene and light on the night (sarmal, gece) with no colour switch. The
   track and the read head are the scene's warm amber, not blended.        */
.kod {
  position: fixed; z-index: 45;                         /* over the stage and the interludes, under the site bar */
  top: calc(var(--hb, 72px) + 18px); bottom: 22px; right: 14px; width: 36px;
  pointer-events: none; user-select: none;
  opacity: 0; visibility: hidden;
  transition: opacity 320ms var(--sc-ease-out, ease-out), visibility 0s linear 320ms;
}
.kod.is-on { opacity: 1; visibility: visible; transition: opacity 320ms var(--sc-ease-out, ease-out), visibility 0s; }
.kod.is-on.is-sakin { opacity: 0.14; }
.kod__akis {
  position: absolute; inset: 0;
  overflow: hidden;
  mix-blend-mode: difference; opacity: 0.55;
  -webkit-mask: linear-gradient(transparent, #000 14%, #000 82%, transparent);
  mask: linear-gradient(transparent, #000 14%, #000 82%, transparent);
}
.kod__cv { position: absolute; left: 0; top: 0; will-change: transform; }
/* the page's progress: a hairline that fills from the top */
.kod__iz {
  position: absolute; top: 0; bottom: 0; right: -8px; width: 2px; border-radius: 1px;
  background: rgba(128, 128, 128, 0.22);
  overflow: hidden;
}
.kod__iz i {
  position: absolute; inset: 0; border-radius: inherit;
  background: rgb(214, 146, 58);
  transform-origin: 50% 0; transform: scaleY(0);
}
/* the read head: where the readable line stands */
.kod__bas {
  position: absolute; left: -7px; top: calc(8px + (100% - 16px) * 0.4 - 4px);
  width: 0; height: 0;
  border-left: 5px solid rgb(214, 146, 58); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
/* the readable line, left of the column at the read head
   v16 · KURGU2 (brif 1): words in the page's own type, not a code font: where the reader is,
   under it (smaller, dimmer) what comes next; right-aligned to the head */
.kod__satir {
  position: absolute; right: calc(100% + 10px); top: calc(8px + (100% - 16px) * 0.4 - 8px);
  margin: 0; padding: 0;
  font: 600 12px/16px var(--sc-font-text, system-ui, sans-serif); letter-spacing: 0.005em;
  color: #fff; white-space: nowrap; text-align: right;
  mix-blend-mode: difference;
  opacity: 0; transition: opacity 260ms var(--sc-ease-out, ease-out);
}
.kod__satir.is-on { opacity: 0.86; }
.kod__simdi, .kod__sonra { display: block; }
.kod__sonra { font-weight: 500; font-size: 11px; line-height: 15px; opacity: 0.62; }
.kod__sonra:empty { display: none; }
/* where each chapter begins, on the track; amber once it is passed */
.kod__tik {
  position: absolute; right: -10px; width: 6px; height: 2px; border-radius: 1px;
  background: rgba(128, 128, 128, 0.5);
}
.kod__tik.is-gecti { background: rgb(214, 146, 58); }
@media (max-width: 1099px), (max-height: 559px) { .kod { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .kod, .kod.is-on, .kod__satir { transition: none; }
}
@media (forced-colors: active) { .kod { display: none; } }
