/* ==========================================================================
   S3RP. WORKS — prototype
   Design source: Figma LTtzk3XQLGmS0HGv0s8fhJ, mobile frames
   5006:113 (intro start) / 5006:122 (intro middle) / 5003:23 / 5003:31 / 5003:93
   Reference viewport 428 x 781. Every size below is calc(N * var(--u)),
   where N is measured from the Figma frames.
   The values here are defaults; script.js (CONFIG) overrides them at runtime.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONT: temporary placeholder. To switch to a custom font, drop a woff2 into
   fonts/, uncomment the @font-face below and change --font-main (one variable).
   -------------------------------------------------------------------------- */
/*
@font-face {
  font-family: "S3RP Main";
  src: url("fonts/YourFont-Heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}
*/

/* Shutter progress: 0 = shutter down (covers its half), 1 = fully retracted.
   Registered as a number so that it can be transitioned; the shutters, the
   buttons and the caption are all computed from it, so they stay in sync. */
@property --qi { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --qc { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* viewport height: vh fallback, dvh where supported */
  --vh: 100vh;

  /* THE unit. 1 --u == 1 Figma px at 428 x 781 */
  --u: min(100vw / 428, var(--vh) / 781);

  --shutter-color: #ff0000;
  --blend-mode: difference;
  --slide-fade: 500ms;                /* intro: slideshow fades in */
  --shutter-duration: 1100ms;
  --shutter-easing: cubic-bezier(0.77, 0, 0.18, 1);
  --bottom-delay: 120ms;              /* intro: the bottom shutter starts later */
  --caption-fade: 500ms;
  --panel-text-fade: 400ms;           /* texts inside the shutters appear on open */
  --panel-text-delay: 300ms;

  --hit-h: calc(75 * var(--u));
  --domain-fs: calc(25 * var(--u));
  --button-fs: calc(25 * var(--u));
  --text-fs: calc(12 * var(--u));     /* texts in the shutters AND the caption */
  --letter-spacing: -0.01em;          /* Figma: -0.25px @25, -0.12px @12 */
  --line-height: 0.9;
  --col-w: calc(380 * var(--u));

  /* distance from the shutters' edges to the central text (Figma: ~23.5) */
  --gap-top: calc(23.5 * var(--u));
  --gap-bottom: calc(23.5 * var(--u));

  /* derived geometry: the central text sits exactly in the vertical centre,
     the shutters fill the rest (Figma: 356 + 69 + 356 = 781) */
  --domain-line: calc(var(--domain-fs) * var(--line-height));
  --button-line: calc(var(--button-fs) * var(--line-height));
  --top-h: calc((var(--vh) - var(--domain-line)) / 2 - var(--gap-top));
  --bot-h: calc((var(--vh) - var(--domain-line)) / 2 - var(--gap-bottom));
  --bleed: 2px;

  /* final button positions (frame 5003:23): info top 30, contacts bottom 40 */
  --info-top: calc(30 * var(--u));
  --contacts-bottom: calc(40 * var(--u));
  /* attached to an edge (frames 5006:113 / 5003:93): the info button ends 23
     above the lower edge of its shutter, contacts starts 34 below the upper edge */
  --info-edge-gap: calc(23 * var(--u));
  --contacts-edge-gap: calc(34 * var(--u));

  /* photo */
  --photo-w: calc(120 * var(--u));
  --photo-ar: 3 / 4;
  --photo-x: 0px;
  --photo-y: calc(-127 * var(--u));

  --caption-top: calc(19.5 * var(--u));
}

@supports (height: 100dvh) {
  :root { --vh: 100dvh; }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--shutter-color);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: 800;
  /* OpenType features for the whole site, e.g. the alternate R (script.js: fontFeatures) */
  font-feature-settings: var(--font-features, normal);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;

  /* shutter progress. Default = retracted; the intro starts with both down. */
  --qi: 1;
  --qc: 1;
  --qc-delay: 0ms;
  transition:
    --qi var(--shutter-duration) var(--shutter-easing),
    --qc var(--shutter-duration) var(--shutter-easing) var(--qc-delay);
}

body.is-intro,
body.info-open { --qi: 0; }
body.is-intro,
body.contacts-open { --qc: 0; }

/* only while the intro leaves: the bottom shutter starts later */
body.intro-leaving { --qc-delay: var(--bottom-delay); }

/* debug "replay": jump to the start state without animating */
body.no-anim { transition: none !important; }

body.no-blend { --blend-mode: normal; }

/* --------------------------------------------------------------------------
   Slideshow: fixed, full-bleed, hard cuts
   -------------------------------------------------------------------------- */
.slides {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--slide-fade) linear;
  /* a click / tap on the visible slideshow pauses and resumes it (script.js) */
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.slides.is-visible { opacity: 1; }

.slides__item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.slides__item.is-active { visibility: visible; }

/* --------------------------------------------------------------------------
   Photo: above the slideshow, below the shutters and the texts, no blend
   -------------------------------------------------------------------------- */
.photo {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: var(--photo-w);
  aspect-ratio: var(--photo-ar);
  transform: translate(calc(-50% + var(--photo-x)), calc(-50% + var(--photo-y)));
  background: #8a8a8a;                 /* placeholder until assets/me.jpg exists */
  overflow: hidden;
  pointer-events: none;
}

/* crop: --photo-pos picks the part of the picture, --photo-zoom scales it
   around that same point (the frame itself clips, overflow: hidden) */
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-pos, 50% 50%);
  transform: scale(var(--photo-zoom, 1));
  transform-origin: var(--photo-pos, 50% 50%);
}

.photo.is-empty img { display: none; }

/* --------------------------------------------------------------------------
   Central text: a link, always in the vertical centre, never covered.
   The shared ending ("©2026") is static; the part before it is stacked in one
   grid cell, Latin and Cyrillic variants right-aligned against it (see script.js):
   natural glyph spacing, nothing jumps, the ending never moves.
   -------------------------------------------------------------------------- */
.domain {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 4;
  margin: 0;
  transform: translateY(-50%);
  text-align: center;
  white-space: nowrap;
  font-size: var(--domain-fs);
  font-weight: var(--fw-domain, 800);
  font-style: var(--fst-domain, normal);
  color: #fff;
  mix-blend-mode: var(--blend-mode);
  pointer-events: none;           /* only the link itself is clickable */
}

/* before the slideshow is visible the text sits on plain red: black */
body:not(.slides-on) .domain { color: #000; mix-blend-mode: normal; }

.domain__link {
  display: inline-flex;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.domain .dp { display: inline-grid; justify-items: end; }
.domain .dl { grid-area: 1 / 1; white-space: pre; }
.domain .dt { white-space: pre; }
.domain .ch.is-off { visibility: hidden; }

.domain__link:focus { outline: none; }
html.kbd-focus .domain__link:focus-visible {
  outline: calc(2 * var(--u)) solid currentColor;
  outline-offset: calc(4 * var(--u));
}

/* the central text keeps its blend mode always, also with the shutters open */

/* --------------------------------------------------------------------------
   Caption under the central text (frames 5006:122 / 5003:23)
   -------------------------------------------------------------------------- */
.caption {
  position: fixed;
  left: 50%;
  top: calc(50% + var(--caption-top));
  z-index: 4;
  width: var(--col-w);
  max-width: 100%;
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: var(--text-fs);
  font-weight: var(--fw-caption, 800);
  font-style: var(--fst-caption, normal);
  color: #fff;
  mix-blend-mode: var(--blend-mode);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--caption-fade) ease;
}

body.caption-visible .caption { opacity: 1; }

/* --------------------------------------------------------------------------
   Shutters
   -------------------------------------------------------------------------- */
.shutter {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 2;
  background: var(--shutter-color);
  color: #000;
  will-change: transform;
}

/* --bleed: a retracted shutter goes this far past the screen edge, so that no
   sub-pixel sliver of red stays visible */
.shutter--info {
  top: 0;
  height: var(--top-h);
  transform: translateY(calc(var(--qi) * -1 * (var(--top-h) + var(--bleed))));
}

.shutter--contacts {
  bottom: 0;
  height: var(--bot-h);
  transform: translateY(calc(var(--qc) * (var(--bot-h) + var(--bleed))));
}

/* Scrolls internally when the text is longer than the panel */
.shutter__scroll {
  position: absolute;
  left: 0;
  right: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;

  /* at the start only the button names are visible; the text appears when the
     shutter is opened and goes away at once when it closes */
  opacity: 0;
  transition: opacity var(--panel-text-fade) ease;
}
.shutter__scroll::-webkit-scrollbar { display: none; }

body.info-open .shutter--info .shutter__scroll,
body.contacts-open .shutter--contacts .shutter__scroll {
  opacity: 1;
  transition-delay: var(--panel-text-delay);
}

/* info: text top 44; stop above the button (23 above the edge + its height) */
.shutter--info .shutter__scroll {
  top: 0;
  bottom: calc(var(--info-edge-gap) + var(--button-line) + 8 * var(--u));
  padding-top: calc(44 * var(--u));
  padding-bottom: calc(12 * var(--u));
}

/* contacts: button ends 34 + its height below the edge; text top is 103 below it */
.shutter--contacts .shutter__scroll {
  top: calc(var(--contacts-edge-gap) + var(--button-line) + 3.5 * var(--u));
  bottom: 0;
  padding-top: calc(43 * var(--u));
  padding-bottom: calc(24 * var(--u));
}

.shutter__text {
  width: var(--col-w);
  max-width: 100%;
  margin: 0 auto;
  font-size: var(--text-fs);
  font-weight: var(--fw-text, 800);
  font-style: var(--fst-text, normal);
  text-align: center;
}

/* case of the shutter texts and the caption (CONFIG.textCase) */
.shutter__text,
.caption { text-transform: var(--text-case, uppercase); }

.shutter__text p { margin: 0; }
/* a blank line in the Figma text == one line-height */
.shutter__text p + p { margin-top: calc(var(--line-height) * 1em); }
.shutter__text p.gap-2 { margin-top: calc(2 * var(--line-height) * 1em); }

.logos {
  position: relative;
  width: var(--logos-w);
  height: var(--logos-h);
  max-width: 100%;
  margin: var(--logos-gap) auto 0;
  opacity: 0;
  transition: opacity var(--logos-fade) ease;
  pointer-events: none;
}
.logos.is-on { opacity: 1; }
.logos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--logos-filter, none);
  visibility: hidden;
}
.logos img.is-active { visibility: visible; }

.shutter__text a {
  color: inherit;
  text-decoration: none;
}
.shutter__text a:hover,
.shutter__text a:focus-visible { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Buttons: <button> with an invisible full-width hit area at the edge.
   Each button travels with the edge of its shutter, but never beyond its
   final position (frame 5003:23): info y=30, contacts y=719 (of 781).
   -------------------------------------------------------------------------- */
.label {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 3;
  height: var(--hit-h);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  font: inherit;
  font-size: var(--button-fs);
  font-weight: var(--fw-buttons, 800);
  font-style: var(--fst-buttons, normal);
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: var(--line-height);
  text-align: center;
  color: #fff;
  mix-blend-mode: var(--blend-mode);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: transform;

  /* tappable only when the intro is over */
  pointer-events: none;
}

body.labels-ready .label { pointer-events: auto; }

.label--info {
  top: 0;
  align-items: flex-start;
  padding-top: var(--info-top);
  /* edge of the shutter = (1 - qi) * top-h - qi * bleed; button top = edge - gap - height */
  transform: translateY(max(
    0px,
    (1 - var(--qi)) * var(--top-h) - var(--qi) * var(--bleed)
      - var(--info-edge-gap) - var(--button-line) - var(--info-top)
  ));
}

.label--contacts {
  bottom: 0;
  align-items: flex-end;
  padding-bottom: var(--contacts-bottom);
  /* edge of the shutter = (1 - qc) * bot-h - qc * bleed above the bottom; button top = edge + gap */
  transform: translateY(calc(-1 * max(
    0px,
    (1 - var(--qc)) * var(--bot-h) - var(--qc) * var(--bleed)
      - var(--contacts-bottom) - var(--button-line) - var(--contacts-edge-gap)
  )));
}

.label__text { position: relative; }

/* thin underline while the shutter is open: set apart from the text, own weight */
.label__text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + var(--ul-gap));
  height: var(--ul-weight);
  background: currentColor;
  transform: scaleX(0);
  opacity: 0;
  transition: transform var(--ul-duration) ease, opacity var(--ul-duration) ease;
}
.label[aria-expanded="true"] .label__text::after {
  transform: scaleX(1);
  opacity: var(--ul-on, 1);
}

/* on a red shutter: solid black, no blend (toggled from script.js) */
.label.is-on-red {
  color: #000;
  mix-blend-mode: normal;
}

.label:focus { outline: none; }
/* the focus ring only shows after the Tab key was used (script.js adds
   html.kbd-focus), so Escape or a click never draws it on a button */
html.kbd-focus .label:focus-visible .label__text {
  outline: calc(2 * var(--u)) solid currentColor;
  outline-offset: calc(4 * var(--u));
}

/* --------------------------------------------------------------------------
   Custom cursor (mouse devices only, see script.js): a dot with its own
   colour and blend mode; over the slideshow it becomes a pause / play icon.
   -------------------------------------------------------------------------- */
:root {
  --cursor-color: #ffffff;
  --cursor-blend: difference;
  --cursor-size: calc(18 * var(--u));
  --cursor-icon: calc(36 * var(--u));
  --ul-gap: calc(3 * var(--u));
  --ul-weight: 1px;
  --ul-duration: 250ms;
  --cursor-arrow: calc(64 * var(--u));
  --cursor-arrow-stroke: calc(1.5 * var(--u));
}

html.custom-cursor,
html.custom-cursor * { cursor: none !important; }
/* dot off, icon on: the system cursor is hidden only under the pause icon */
.slides.hide-cursor { cursor: none; }

/* the debug panel keeps the system cursor */
html.custom-cursor .dbg,
html.custom-cursor .dbg * { cursor: auto !important; }

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  width: 0;
  height: 0;
  pointer-events: none;
  color: var(--cursor-color);
  mix-blend-mode: var(--cursor-blend);
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: transform;
}
.cursor.is-on { opacity: 1; }

.cursor__dot,
.cursor__icon {
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.cursor__dot {
  width: var(--cursor-size);
  height: var(--cursor-size);
  margin: calc(var(--cursor-size) / -2) 0 0 calc(var(--cursor-size) / -2);
  border-radius: 50%;
  background: currentColor;
}

.cursor__icon {
  width: var(--cursor-icon);
  height: var(--cursor-icon);
  margin: calc(var(--cursor-icon) / -2) 0 0 calc(var(--cursor-icon) / -2);
  opacity: 0;
  transform: scale(0.6);
}
.cursor__icon svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.cursor__icon .ico-play { display: none; }

.cursor.is-pause .cursor__dot,
.cursor.no-dot .cursor__dot { opacity: 0; transform: scale(0); }
.cursor.is-pause .cursor__icon { opacity: 1; transform: none; }
.cursor.is-paused .ico-pause { display: none; }
.cursor.is-paused .ico-play { display: block; }
.cursor__icon .ico-prev,
.cursor__icon .ico-next { display: none; }
.cursor.is-prev .ico-pause,
.cursor.is-prev .ico-play,
.cursor.is-next .ico-pause,
.cursor.is-next .ico-play { display: none; }
.cursor.is-prev .ico-prev,
.cursor.is-next .ico-next { display: block; }
/* paging arrows: big, thin outline */
.cursor__icon .ico-prev,
.cursor__icon .ico-next {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--cursor-arrow-stroke);
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 10;
  overflow: visible;
  vector-effect: non-scaling-stroke;
}
.cursor__icon .ico-prev path,
.cursor__icon .ico-next path { vector-effect: non-scaling-stroke; }
.cursor.is-prev .cursor__icon,
.cursor.is-next .cursor__icon {
  width: var(--cursor-arrow);
  height: var(--cursor-arrow);
  margin: calc(var(--cursor-arrow) / -2) 0 0 calc(var(--cursor-arrow) / -2);
}

/* --------------------------------------------------------------------------
   Debug panel (?debug only). Own px sizes: independent of --u and of blends.
   -------------------------------------------------------------------------- */
.dbg {
  position: fixed;
  right: 8px;
  top: 8px;
  z-index: 9999;
  width: 320px;
  max-width: calc(100vw - 16px);
  isolation: isolate;
  mix-blend-mode: normal;
  color: #ececec;
  font: 400 11px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: normal;
  letter-spacing: 0;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}
.dbg *, .dbg *::before, .dbg *::after {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  box-sizing: border-box;
}

/* the container itself is transparent to clicks: only the toggle and the panel
   catch them, so the debug bar never blocks the page underneath */
.dbg { pointer-events: none; }
.dbg__toggle, .dbg__panel { pointer-events: auto; }

.dbg__bar { display: flex; justify-content: flex-end; }

.dbg__toggle {
  appearance: none;
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.dbg__panel {
  margin-top: 6px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 4px 10px 10px;
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.dbg.is-collapsed .dbg__panel { display: none; }

.dbg details { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 2px 0; }
.dbg summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 0;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
}
.dbg summary::-webkit-details-marker { display: none; }
.dbg summary::after { content: '+'; opacity: 0.6; }
.dbg details[open] > summary::after { content: '–'; }
.dbg__fields { padding-bottom: 8px; }

.dbg__row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 24px;
}
.dbg__row > span { color: rgba(255, 255, 255, 0.7); line-height: 1.2; }
.dbg__ctl { display: flex; align-items: center; gap: 6px; min-width: 0; }

.dbg input[type="range"] { flex: 1; min-width: 0; accent-color: #fff; height: 14px; margin: 0; }
.dbg__num,
.dbg input[type="text"],
.dbg select {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}
.dbg__num { width: 50px; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.dbg__num::-webkit-outer-spin-button,
.dbg__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dbg input[type="text"], .dbg select { width: 100%; }
.dbg select option { color: #000; }

.dbg__switch { position: relative; display: inline-block; width: 30px; height: 18px; }
.dbg__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dbg__switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.15s;
  pointer-events: none;
}
.dbg__switch i::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.dbg__switch input:checked + i { background: #34c759; }
.dbg__switch input:checked + i::after { transform: translateX(12px); }

.dbg input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.dbg input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.dbg input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.dbg input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }

.dbg__row--full { display: block; margin-top: 4px; }
.dbg__upload { display: grid; gap: 6px; }
.dbg__upload input[type="file"] { width: 100%; font-size: 10px; color: rgba(255, 255, 255, 0.8); }
.dbg__btns2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dbg__note { color: rgba(255, 255, 255, 0.55); line-height: 1.3; }

.dbg__btns { display: grid; gap: 6px; margin-top: 10px; }
.dbg__btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.dbg__btn:hover { background: rgba(255, 255, 255, 0.24); }

/* --------------------------------------------------------------------------
   Debug: visual editor of the shutter texts (cards = paragraphs)
   -------------------------------------------------------------------------- */
.dbg__texts { display: grid; gap: 8px; }
.dbg__texthead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.dbg__texthead .dbg__btn { padding: 3px 8px; }
.dbg__plist { display: grid; }
.dbg__pcard {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
}
.dbg__pcard.is-over-top { box-shadow: 0 -2px 0 #fff; }
.dbg__pcard.is-over-bottom { box-shadow: 0 2px 0 #fff; }
.dbg__pbar { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.dbg__handle { cursor: grab; padding: 0 4px; color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1; user-select: none; }
.dbg__pnum { flex: 1; color: rgba(255, 255, 255, 0.5); }
.dbg__mini {
  min-width: 22px; height: 20px; padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 5px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.dbg__mini:hover:not(:disabled) { background: rgba(255, 255, 255, 0.15); }
.dbg__mini:disabled { opacity: 0.3; cursor: default; }
.dbg__pcard textarea {
  display: block; width: 100%; box-sizing: border-box; resize: none; overflow: hidden;
  min-height: 34px; padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 5px;
  background: rgba(0, 0, 0, 0.35); color: #fff; font: inherit; line-height: 1.3;
}
.dbg__gap {
  display: block; width: 100%; min-height: 14px; padding: 0;
  border: 0; border-left: 2px dashed rgba(255, 255, 255, 0.35); border-right: 2px dashed rgba(255, 255, 255, 0.35);
  background: transparent; color: rgba(255, 255, 255, 0.55); font: inherit; font-size: 10px; cursor: pointer;
}
.dbg__gap:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.dbg__case { min-width: 0; max-width: 110px; height: 20px; padding: 0 2px; font-size: 10px; }
