
  :root {
    --acid: #c6ff1f;
    --pink: #ff3b9d;
    --blue: #2a3cff;
    --black: #0a0a0a;

    --bg: #e8e6dd;
    --ink: #0a0a0a;
    --hard: #0a0a0a;
    --line: rgba(10, 10, 10, .09);
    --tape-bg: #0a0a0a;
    --tape-fg: #c6ff1f;
    --glass-a: rgba(255, 255, 255, .42);
    --glass-b: rgba(255, 255, 255, .10);
    --glass-edge: rgba(255, 255, 255, .7);
    --ghost: .2;

    --display: "Roboto Flex", Impact, "Arial Black", sans-serif;
    --pixel: "Pixelify Sans", "Courier New", monospace;
    --mono: "JetBrains Mono", Consolas, monospace;
  }
  [data-theme="void"] {
    --bg: #070708;
    --ink: #f1efe6;
    --hard: #c6ff1f;
    --line: rgba(255, 255, 255, .08);
    --tape-bg: #c6ff1f;
    --tape-fg: #0a0a0a;
    --glass-a: rgba(255, 255, 255, .16);
    --glass-b: rgba(255, 255, 255, .03);
    --glass-edge: rgba(255, 255, 255, .28);
    --ghost: .26;
  }
  [data-theme="blue"] {
    --bg: #2233ff;
    --ink: #ffffff;
    --hard: #0a0a0a;
    --line: rgba(255, 255, 255, .13);
    --tape-bg: #0a0a0a;
    --tape-fg: #ffffff;
    --glass-a: rgba(255, 255, 255, .30);
    --glass-b: rgba(255, 255, 255, .06);
    --glass-edge: rgba(255, 255, 255, .6);
    --ghost: .3;
  }

  *, *::before, *::after { box-sizing: border-box; }

  html, body { height: 100%; }
  body {
    margin: 0;
    overflow: hidden;
    overflow: clip;
    color: var(--ink);
    font-family: var(--mono);
    background-color: var(--bg);
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    transition: background-color .25s steps(3), color .25s steps(3);
  }

  @keyframes slide { to { transform: translateX(-50%); } }
  @keyframes spin { to { rotate: 360deg; } }
  @keyframes bob { 50% { translate: 3vmin -4vmin; } }
  @keyframes drift { 50% { translate: -8vw 6vh; scale: 1.2; } }
  @keyframes twinkle {
    0%, 100% { scale: 1; rotate: 0deg; }
    50% { scale: .35; rotate: 45deg; }
  }
  @keyframes blink { 50% { opacity: .15; } }
  @keyframes boot {
    from { opacity: 0; transform: translateY(40px) rotate(-3deg) scale(.94); }
    to { opacity: 1; transform: none; }
  }
  @keyframes sheen {
    0%, 62% { translate: -140% 0; }
    100% { translate: 240% 0; }
  }

  /* ───────── background ───────── */
  .stage {
    position: relative;
    height: 100dvh;
    display: grid;
    place-items: center;
    overflow: hidden;
    overflow: clip; /* clip, а не hidden: фокус/scrollIntoView не смогут сдвинуть сцену */
    isolation: isolate;
  }

  .mq { display: flex; width: max-content; animation: slide var(--d, 30s) linear infinite; }
  .mq span { flex: none; white-space: pre; }

  .rows {
    position: absolute;
    inset: 34px 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
  }
  .rows .mq {
    font-family: var(--display);
    font-size: 16.5vh;
    line-height: .84;
    font-variation-settings: "wght" 1000, "wdth" 151;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
    opacity: var(--ghost);
  }
  .rows .mq:nth-child(even) { animation-direction: reverse; font-variation-settings: "wght" 1000, "wdth" 40; }
  .rows .mq:nth-child(3n) { color: var(--ink); -webkit-text-stroke: 0; opacity: calc(var(--ghost) * .35); }

  .blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .75;
    pointer-events: none;
    animation: drift 17s ease-in-out infinite;
  }
  .blob.b1 { width: 46vmin; height: 46vmin; background: var(--pink); left: 8%; top: 12%; }
  .blob.b2 { width: 52vmin; height: 52vmin; background: var(--blue); right: 6%; bottom: 6%; animation-duration: 23s; animation-direction: reverse; }
  [data-theme="blue"] .blob.b2 { background: #00e5ff; }

  .disc {
    position: absolute;
    z-index: 1;
    left: calc(50% - min(450px, 45vw) - 9vmin);
    top: 50%;
    width: 30vmin;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--acid);
    border: 2px solid var(--black);
    animation: bob 9s ease-in-out infinite;
  }
  .check {
    position: absolute;
    z-index: 1;
    right: calc(50% - min(450px, 45vw) - 7vmin);
    top: calc(50% - 30vmin);
    width: 22vmin;
    aspect-ratio: 1;
    border: 2px solid var(--black);
    background: repeating-conic-gradient(var(--black) 0 25%, #fff 0 50%) 0 0 / 25% 25%;
    animation: spin 40s linear infinite;
  }

  .diag {
    position: absolute;
    z-index: 2;
    left: -10vw;
    width: 120vw;
    top: 66%;
    rotate: -7deg;
    overflow: hidden;
    background: var(--pink);
    color: var(--black);
    border-block: 2px solid var(--black);
    font-family: var(--display);
    font-variation-settings: "wght" 900, "wdth" 30;
    font-size: clamp(22px, 4.2vmin, 44px);
    line-height: 1.35;
    text-transform: uppercase;
  }

  /* ───────── tapes ───────── */
  .tape {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 8;
    height: 34px;
    overflow: hidden;
    background: var(--tape-bg);
    color: var(--tape-fg);
    font-family: var(--pixel);
    font-size: 19px;
    line-height: 34px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .tape.top { top: 0; }
  .tape.bot { bottom: 0; }
  .tape.bot .mq { animation-direction: reverse; }

  /* ───────── HUD ───────── */
  .hud {
    position: absolute;
    z-index: 7;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    pointer-events: none;
  }
  .hud.tl { left: 16px; top: 48px; }
  .hud.tr { right: 16px; top: 48px; text-align: right; }
  .hud.bl { left: 16px; bottom: 48px; }
  .hud.br { right: 16px; bottom: 48px; text-align: right; }
  .hud b { background: var(--ink); color: var(--bg); padding: 1px 5px; font-weight: 800; }

  /* ───────── glass window ───────── */
  .win {
    position: relative;
    z-index: 5;
    width: min(900px, 90vw);
    border: 2px solid var(--ink);
    background: linear-gradient(135deg, var(--glass-a), var(--glass-b) 42%, var(--glass-a) 130%);
    -webkit-backdrop-filter: blur(15px) saturate(1.8);
    backdrop-filter: blur(15px) saturate(1.8);
    box-shadow: 12px 12px 0 var(--hard), inset 0 0 0 1px var(--glass-edge);
    animation: boot .7s cubic-bezier(.2, 1.5, .4, 1) both;
  }
  .win.drag { box-shadow: 22px 22px 0 var(--hard), inset 0 0 0 1px var(--glass-edge); }

  .sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
  .sheen::before {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 34%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, .08) 55%, transparent);
    transform: skewX(-18deg);
    animation: sheen 7s ease-in-out infinite;
  }

  .bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 6px 0 12px;
    height: 36px;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--pixel);
    font-size: 17px;
    letter-spacing: .05em;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .win.drag .bar { cursor: grabbing; }
  .bar-hint { opacity: .55; font-size: 14px; }
  .bar-btns { display: flex; gap: 4px; }
  .bar-btns i {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--bg);
    font-style: normal;
    font-size: 14px;
    line-height: 1;
  }
  .bar-btns i:last-child { background: var(--pink); color: var(--black); border-color: var(--pink); }

  .body {
    position: relative;
    padding: clamp(14px, 2.6vw, 30px) clamp(14px, 3vw, 36px) clamp(16px, 2.6vw, 30px);
  }
  .meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .meta span:first-child::before { content: "▚ "; }

  .name {
    margin: clamp(4px, 1.4vw, 16px) 0 clamp(8px, 1.6vw, 18px);
    display: flex;
    justify-content: center;
    align-items: baseline;
    white-space: nowrap;
    font-family: var(--display);
    font-size: var(--fs, 13vw);
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.015em;
    filter: drop-shadow(.05em .05em 0 var(--hard));
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
  }
  .name span {
    display: inline-block;
    padding: .06em 0 .1em;
    font-variation-settings: "wght" 800, "wdth" 105;
    color: transparent;
    background: linear-gradient(180deg,
      #ffffff 0%, #dfe6f2 16%, #9fb0cc 36%, #53627e 49%,
      #10141f 51%, #6d82a8 58%, #d8e3f7 78%, #ffffff 90%, #a9b8d2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: .016em var(--black);
    paint-order: stroke fill;
  }

  .foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    padding-top: clamp(10px, 1.6vw, 16px);
    border-top: 2px solid var(--ink);
  }
  .status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 9px;
    background: var(--black);
    color: var(--acid);
  }
  .pill::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--acid);
    animation: blink 1.1s steps(2) infinite;
  }
  .barcode {
    width: 96px;
    height: 22px;
    background: repeating-linear-gradient(90deg,
      var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px,
      var(--ink) 9px 12px, transparent 12px 13px, var(--ink) 13px 14px, transparent 14px 17px);
  }
  .btns { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn {
    appearance: none;
    padding: 9px 14px;
    border: 2px solid var(--black);
    background: var(--acid);
    color: var(--black);
    font: 800 12px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--hard);
    transition: translate .08s, box-shadow .08s, background-color .08s;
  }
  .btn.alt { background: #fff; }
  .btn:hover { background: var(--pink); }
  .btn:active { translate: 4px 4px; box-shadow: 0 0 0 var(--hard); }
  .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
  [data-theme="blue"] .btn:focus-visible { outline-color: #fff; }

  /* ───────── stickers ───────── */
  .sticker {
    position: absolute;
    z-index: 2;
    right: 104px;
    top: -104px;
    width: 132px;
    height: 132px;
    rotate: 12deg;
    filter: drop-shadow(5px 5px 0 var(--hard));
    pointer-events: none;
  }
  .sticker .ring { transform-origin: 100px 100px; animation: spin 14s linear infinite; }

  .globe {
    position: absolute;
    z-index: 2;
    left: -84px;
    bottom: -84px;
    width: 124px;
    height: 124px;
    color: var(--ink);
    pointer-events: none;
  }

  .burst {
    position: absolute;
    z-index: 6;
    right: 9%;
    bottom: 13%;
    width: clamp(64px, 12vmin, 120px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    rotate: -14deg;
    pointer-events: none;
  }
  .burst i, .burst i::before, .burst i::after {
    content: "";
    position: absolute;
    inset: 12%;
    background: var(--blue);
  }
  .burst i { animation: spin 18s linear infinite; }
  .burst i::before { inset: 0; rotate: 30deg; }
  .burst i::after { inset: 0; rotate: 60deg; }
  [data-theme="blue"] .burst i, [data-theme="blue"] .burst i::before, [data-theme="blue"] .burst i::after { background: var(--acid); }
  .burst b {
    position: relative;
    font-family: var(--pixel);
    font-size: clamp(15px, 2.6vmin, 24px);
    color: #fff;
  }
  [data-theme="blue"] .burst b { color: var(--black); }

  .spark {
    position: absolute;
    z-index: 6;
    width: var(--s, 40px);
    height: var(--s, 40px);
    fill: var(--c, var(--ink));
    pointer-events: none;
    animation: twinkle var(--t, 3s) ease-in-out infinite;
  }

  .grain {
    position: absolute;
    inset: 0;
    z-index: 9;
    pointer-events: none;
    opacity: .16;
    mix-blend-mode: overlay;
    background-image: url("/assets/grain.svg");
  }

  .cur {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    transition: width .15s, height .15s, margin .15s, border-radius .15s, opacity .2s;
  }
  .cur.on { opacity: 1; }
  .cur.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; }
  @media (hover: none), (pointer: coarse) { .cur { display: none; } }

  @media (max-width: 680px) {
    .bar-hint, .hud.bl, .hud.br, .check { display: none; }
    .hud { font-size: 10px; }
    .bar { font-size: 14px; }
    .bar > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sticker { width: 92px; height: 92px; right: 84px; top: -74px; }
    .globe { width: 84px; height: 84px; left: -22px; bottom: -62px; }
    .win { box-shadow: 8px 8px 0 var(--hard), inset 0 0 0 1px var(--glass-edge); }
    .foot { justify-content: center; }
    .status { justify-content: center; }
    .barcode { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }

.fixed-style-1 {position:absolute}
.fixed-style-2 {--d:46s}
.fixed-style-3 {--d:38s}
.fixed-style-4 {--d:60s}
.fixed-style-5 {--d:34s}
.fixed-style-6 {--d:52s}
.fixed-style-7 {--d:42s}
.fixed-style-8 {--d:26s}
.fixed-style-9 {--d:32s}
.fixed-style-10 {--d:36s}
.fixed-style-11 {left:11%;top:22%;--s:54px;--t:3.2s}
.fixed-style-12 {right:14%;top:17%;--s:30px;--t:2.3s;--c:var(--pink)}
.fixed-style-13 {left:20%;bottom:16%;--s:26px;--t:2.8s;--c:var(--blue)}
.fixed-style-14 {right:27%;bottom:9%;--s:44px;--t:4s}
.fixed-style-15 {left:44%;top:9%;--s:20px;--t:1.9s;--c:var(--acid)}
.clipboard-fallback {position:fixed;opacity:0;pointer-events:none}
