/* ---------- шрифты скинов (файлы из @fontsource, public/fonts/skins) */
@font-face { font-family: "sk-ubuntu"; src: url(/fonts/skins/ubuntu-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-ubuntu"; src: url(/fonts/skins/ubuntu-mono-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-ptmono"; src: url(/fonts/skins/pt-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-ptmono"; src: url(/fonts/skins/pt-mono-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-courier"; src: url(/fonts/skins/courier-prime-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-roboto"; src: url(/fonts/skins/roboto-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-roboto"; src: url(/fonts/skins/roboto-mono-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-sourcecode"; src: url(/fonts/skins/source-code-pro-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-sourcecode"; src: url(/fonts/skins/source-code-pro-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-inconsolata"; src: url(/fonts/skins/inconsolata-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-plex"; src: url(/fonts/skins/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-plex"; src: url(/fonts/skins/ibm-plex-mono-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-jetbrains"; src: url(/fonts/skins/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-jetbrains"; src: url(/fonts/skins/jetbrains-mono-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-fira"; src: url(/fonts/skins/fira-code-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-fira"; src: url(/fonts/skins/fira-code-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-sharetech"; src: url(/fonts/skins/share-tech-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-spacemono"; src: url(/fonts/skins/space-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-victor"; src: url(/fonts/skins/victor-mono-latin-400-italic.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-victor"; src: url(/fonts/skins/victor-mono-cyrillic-400-italic.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-silkscreen"; src: url(/fonts/skins/silkscreen-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-pixel"; src: url(/fonts/skins/press-start-2p-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-pixel"; src: url(/fonts/skins/press-start-2p-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-vt323"; src: url(/fonts/skins/vt323-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-glitch"; src: url(/fonts/skins/rubik-glitch-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-glitch"; src: url(/fonts/skins/rubik-glitch-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-major"; src: url(/fonts/skins/major-mono-display-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-hand"; src: url(/fonts/skins/caveat-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-hand"; src: url(/fonts/skins/caveat-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-comic"; src: url(/fonts/skins/comic-neue-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Скины. Атрибут data-sk-<слот>="<id>" ставится на рамку редактора (.editor), окно вывода (.output),
   body (фон), имя в шапке — и на примеры в инвентаре (.sk-demo и т.п.). */

@property --sk-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sk-spin { to { --sk-ang: 360deg; } }
@keyframes sk-hue { to { filter: hue-rotate(360deg); } }
@keyframes sk-slide { to { background-position: 200% 0; } }
@keyframes sk-blink { 50% { opacity: 0; } }

/* ---------- пример кода в инвентаре */
.sk-demo { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; position: relative; }
.sk-code { margin: 0; padding: 10px 12px; font: 14px/1.5 var(--mono); background: var(--surface); color: var(--text); white-space: pre; overflow: hidden; min-height: 132px; }
.sk-caret { display: inline-block; position: relative; width: 0; height: 1.25em; vertical-align: text-bottom; border-left: 2px solid var(--text); animation: sk-blink 1.06s steps(1) infinite; }

/* ---------- шрифт */
[data-sk-font] :is(.CodeMirror, .sk-code) { font-variant-ligatures: none; }
[data-sk-font="ubuntu"] :is(.CodeMirror, .sk-code) { font-family: "sk-ubuntu", var(--mono); font-size: 16px; }
[data-sk-font="ptmono"] :is(.CodeMirror, .sk-code) { font-family: "sk-ptmono", var(--mono); }
[data-sk-font="courier"] :is(.CodeMirror, .sk-code) { font-family: "sk-courier", var(--mono); }
[data-sk-font="roboto"] :is(.CodeMirror, .sk-code) { font-family: "sk-roboto", var(--mono); }
[data-sk-font="sourcecode"] :is(.CodeMirror, .sk-code) { font-family: "sk-sourcecode", var(--mono); }
[data-sk-font="inconsolata"] :is(.CodeMirror, .sk-code) { font-family: "sk-inconsolata", var(--mono); font-size: 16px; }
[data-sk-font="plex"] :is(.CodeMirror, .sk-code) { font-family: "sk-plex", var(--mono); }
[data-sk-font="jetbrains"] :is(.CodeMirror, .sk-code) { font-family: "sk-jetbrains", var(--mono); }
[data-sk-font="fira"] :is(.CodeMirror, .sk-code) { font-family: "sk-fira", var(--mono); }
[data-sk-font="sharetech"] :is(.CodeMirror, .sk-code) { font-family: "sk-sharetech", var(--mono); font-size: 16px; }
[data-sk-font="spacemono"] :is(.CodeMirror, .sk-code) { font-family: "sk-spacemono", var(--mono); }
[data-sk-font="victor"] :is(.CodeMirror, .sk-code) { font-family: "sk-victor", var(--mono); }
[data-sk-font="silkscreen"] :is(.CodeMirror, .sk-code) { font-family: "sk-silkscreen", var(--mono); font-size: 14px; }
[data-sk-font="pixel"] :is(.CodeMirror, .sk-code) { font-family: "sk-pixel", var(--mono); font-size: 11px; line-height: 2; }
[data-sk-font="vt323"] :is(.CodeMirror, .sk-code) { font-family: "sk-vt323", var(--mono); font-size: 19px; line-height: 1.3; }
[data-sk-font="glitch"] :is(.CodeMirror, .sk-code) { font-family: "sk-glitch", var(--mono); font-size: 16px; }
[data-sk-font="major"] :is(.CodeMirror, .sk-code) { font-family: "sk-major", var(--mono); }
[data-sk-font="hand"] :is(.CodeMirror, .sk-code) { font-family: "sk-hand", var(--mono); font-size: 20px; line-height: 1.35; }
[data-sk-font="comic"] :is(.CodeMirror, .sk-code) { font-family: "sk-comic", "Comic Sans MS", var(--mono); font-size: 16px; }

/* ---------- тема кода */
[data-sk-syntax] :is(.CodeMirror, .sk-code) { background: var(--sk-bg); color: var(--sk-fg); }
[data-sk-syntax] .CodeMirror-gutters { background: var(--sk-gut); border-right-color: var(--sk-gut); }
[data-sk-syntax] .CodeMirror-linenumber { color: var(--sk-ln); }
[data-sk-syntax] .CodeMirror-cursor, [data-sk-syntax] .sk-caret { border-left-color: var(--sk-fg); }
[data-sk-syntax] :is(.cm-variable, .cm-variable-2, .cm-property) { color: var(--sk-fg); }
[data-sk-syntax] .CodeMirror-selected, [data-sk-syntax] .CodeMirror-focused .CodeMirror-selected { background: var(--sk-sel, rgba(120, 160, 255, .3)); }
[data-sk-syntax="paper"] { --sk-bg: #f6efdc; --sk-fg: #3b3024; --sk-gut: #ece2c8; --sk-ln: #a8977a; --c-keyword: #a3381c; --c-def: #1f4e79; --c-string: #4f7a28; --c-number: #9a5b00; --c-comment: #9c8b6e; --c-builtin: #6b3fa0; --c-operator: #6d5c45; }
[data-sk-syntax="mint"] { --sk-bg: #effaf4; --sk-fg: #1d3b2f; --sk-gut: #ddf2e6; --sk-ln: #7fb59a; --c-keyword: #0b7a5a; --c-def: #0d5e8c; --c-string: #b5532b; --c-number: #a0306c; --c-comment: #8fb3a2; --c-builtin: #2a7f9e; --c-operator: #3f6b58; }
[data-sk-syntax="night"] { --sk-bg: #161b22; --sk-fg: #d6dde6; --sk-gut: #11151b; --sk-ln: #4e5a68; --c-keyword: #ff7b72; --c-def: #d2a8ff; --c-string: #a5d6ff; --c-number: #79c0ff; --c-comment: #6e7781; --c-builtin: #ffa657; --c-operator: #c9d1d9; }
[data-sk-syntax="solarized"] { --sk-bg: #fdf6e3; --sk-fg: #586e75; --sk-gut: #eee8d5; --sk-ln: #93a1a1; --c-keyword: #859900; --c-def: #268bd2; --c-string: #2aa198; --c-number: #d33682; --c-comment: #93a1a1; --c-builtin: #b58900; --c-operator: #657b83; }
[data-sk-syntax="monokai"] { --sk-bg: #272822; --sk-fg: #f8f8f2; --sk-gut: #22231e; --sk-ln: #75715e; --c-keyword: #f92672; --c-def: #a6e22e; --c-string: #e6db74; --c-number: #ae81ff; --c-comment: #75715e; --c-builtin: #66d9ef; --c-operator: #f92672; }
[data-sk-syntax="nord"] { --sk-bg: #2e3440; --sk-fg: #d8dee9; --sk-gut: #2a2f3a; --sk-ln: #4c566a; --c-keyword: #81a1c1; --c-def: #88c0d0; --c-string: #a3be8c; --c-number: #b48ead; --c-comment: #616e88; --c-builtin: #8fbcbb; --c-operator: #81a1c1; }
[data-sk-syntax="dracula"] { --sk-bg: #282a36; --sk-fg: #f8f8f2; --sk-gut: #21222c; --sk-ln: #6272a4; --c-keyword: #ff79c6; --c-def: #50fa7b; --c-string: #f1fa8c; --c-number: #bd93f9; --c-comment: #6272a4; --c-builtin: #8be9fd; --c-operator: #ff79c6; --sk-sel: rgba(189, 147, 249, .3); }
[data-sk-syntax="ocean"] { --sk-bg: #0b2239; --sk-fg: #d4e7ff; --sk-gut: #081a2c; --sk-ln: #3b6186; --c-keyword: #5ccfe6; --c-def: #ffd580; --c-string: #bae67e; --c-number: #ffae57; --c-comment: #5c7e9e; --c-builtin: #73d0ff; --c-operator: #f29e74; }
[data-sk-syntax="ghdark"] { --sk-bg: #0d1117; --sk-fg: #c9d1d9; --sk-gut: #0d1117; --sk-ln: #484f58; --c-keyword: #ff7b72; --c-def: #d2a8ff; --c-string: #a5d6ff; --c-number: #79c0ff; --c-comment: #8b949e; --c-builtin: #ffa657; --c-operator: #ff7b72; }
[data-sk-syntax="synthwave"] { --sk-bg: #241b2f; --sk-fg: #f0e9ff; --sk-gut: #1e1627; --sk-ln: #6d5a87; --c-keyword: #fede5d; --c-def: #36f9f6; --c-string: #ff8b39; --c-number: #f97e72; --c-comment: #848bbd; --c-builtin: #fe4450; --c-operator: #ff7edb; --sk-sel: rgba(255, 126, 219, .25); }
[data-sk-syntax="synthwave"] :is(.cm-keyword, .cm-def, .cm-builtin, .cm-string) { text-shadow: 0 0 2px currentColor, 0 0 8px currentColor; }
[data-sk-syntax="matrix"] { --sk-bg: #020a03; --sk-fg: #3cff6e; --sk-gut: #010601; --sk-ln: #145c23; --c-keyword: #b6ffc8; --c-def: #ffffff; --c-string: #2fd65a; --c-number: #8affa6; --c-comment: #146b2a; --c-builtin: #6dff93; --c-operator: #3cff6e; --sk-sel: rgba(60, 255, 110, .2); }
[data-sk-syntax="matrix"] :is(.CodeMirror-code, .sk-code) { text-shadow: 0 0 6px rgba(60, 255, 110, .6); }
[data-sk-syntax="gameboy"] { --sk-bg: #9bbc0f; --sk-fg: #0f380f; --sk-gut: #8bac0f; --sk-ln: #306230; --c-keyword: #0f380f; --c-def: #0f380f; --c-string: #306230; --c-number: #306230; --c-comment: #4f7a21; --c-builtin: #0f380f; --c-operator: #306230; --sk-sel: rgba(15, 56, 15, .25); }
[data-sk-syntax="gameboy"] :is(.cm-keyword, .cm-def) { text-decoration: underline 2px; }
[data-sk-syntax="gold"] { --sk-bg: #0e0c08; --sk-fg: #efe3c2; --sk-gut: #0a0905; --sk-ln: #6b5a2e; --c-keyword: #ffcf4d; --c-def: #fff1b8; --c-string: #d9b061; --c-number: #ffb347; --c-comment: #6f6346; --c-builtin: #f5d27a; --c-operator: #c9a54a; --sk-sel: rgba(255, 207, 77, .22); }
[data-sk-syntax="gold"] :is(.cm-keyword, .cm-def) { text-shadow: 0 0 6px rgba(255, 207, 77, .45); }
[data-sk-syntax="rainbow"] { --sk-bg: #15121f; --sk-fg: #f3f0ff; --sk-gut: #110e19; --sk-ln: #5c5478; --c-string: #ffd36b; --c-number: #ff9f6b; --c-comment: #7d7699; --c-builtin: #7bf1ff; --c-operator: #c7b8ff; }
[data-sk-syntax="rainbow"] :is(.cm-keyword, .cm-def) {
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #f9f871, #6bff95, #4fc3ff, #b06bff, #ff5f6d) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sk-slide 3s linear infinite;
}

/* ---------- функции: .cm-def — имя в def и class, .cm-call — вызов name(...) (помечает skins.js) */
[data-sk-func="underline"] :is(.cm-def, .cm-call) { text-decoration: underline 2px; text-underline-offset: 3px; }
[data-sk-func="bolditalic"] :is(.cm-def, .cm-call) { font-weight: 800; font-style: italic; }
[data-sk-func="boxed"] :is(.cm-def, .cm-call) { outline: 1.5px solid currentColor; outline-offset: 1px; border-radius: 3px; }
[data-sk-func="marker"] :is(.cm-def, .cm-call) { background: linear-gradient(transparent 35%, rgba(255, 212, 59, .75) 35%, rgba(255, 212, 59, .75) 90%, transparent 90%); color: #1b2330; }
[data-sk-func="wavy"] :is(.cm-def, .cm-call) { text-decoration: underline wavy #ff4f9a; text-underline-offset: 4px; }
[data-sk-func="neon"] :is(.cm-def, .cm-call) { color: #39ff14; text-shadow: 0 0 3px #39ff14, 0 0 10px #39ff14, 0 0 18px rgba(57, 255, 20, .6); }
[data-sk-func="ice"] :is(.cm-def, .cm-call) { background: linear-gradient(180deg, #e0fbff, #6ad5ff 50%, #2a7bd8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 2px rgba(106, 213, 255, .7)); }
@keyframes sk-flicker { 0%, 100% { filter: drop-shadow(0 0 2px #ff7a00) brightness(1); } 40% { filter: drop-shadow(0 0 5px #ff3d00) brightness(1.25); } 70% { filter: drop-shadow(0 0 3px #ffb300) brightness(.9); } }
[data-sk-func="fire"] :is(.cm-def, .cm-call) { background: linear-gradient(0deg, #ff2d00, #ff8a00 45%, #ffe259) 0 0 / 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sk-flicker .6s infinite, sk-fireup 1.2s linear infinite; }
@keyframes sk-fireup { to { background-position: 0 -200%; } }
[data-sk-func="sweep"] :is(.cm-def, .cm-call) { background: linear-gradient(100deg, var(--c-def) 40%, #fff 50%, var(--c-def) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sk-sweep 2.4s linear infinite; }
@keyframes sk-sweep { from { background-position: 150% 0; } to { background-position: -150% 0; } }
[data-sk-func="goldbar"] :is(.cm-def, .cm-call) { background: linear-gradient(100deg, #8a6d1f, #f6e27a 30%, #fffbe0 45%, #d4a017 60%, #8a6d1f) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; animation: sk-sweep 3s linear infinite; filter: drop-shadow(0 1px 0 rgba(90, 60, 0, .5)); }
@keyframes sk-glitchtext { 0%, 88%, 100% { text-shadow: 1px 0 #ff2a6d, -1px 0 #05d9e8; transform: none; } 90% { text-shadow: 3px 0 #ff2a6d, -3px 0 #05d9e8; transform: translateX(1px); } 94% { text-shadow: -2px 0 #ff2a6d, 2px 0 #05d9e8; transform: translateX(-1px); } }
[data-sk-func="glitch"] :is(.cm-def, .cm-call) { display: inline-block; animation: sk-glitchtext 2s infinite; }
[data-sk-func="rainbow"] :is(.cm-def, .cm-call) { background: linear-gradient(90deg, #ff5f6d, #ffc371, #f9f871, #6bff95, #4fc3ff, #b06bff, #ff5f6d) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; animation: sk-slide 2.5s linear infinite; }

/* ---------- курсор */
/* свой курсор вместо системной каретки в режиме contenteditable (skins.js ownCaret); видно, только когда редактор в фокусе */
.sk-owncaret-on .CodeMirror-code { caret-color: transparent; }
.sk-owncaret .CodeMirror-cursor { position: absolute; pointer-events: none; }
.sk-owncaret.blink { animation: sk-cblink 1.06s steps(1) infinite; }
@keyframes sk-cblink { 50% { opacity: 0; } }
:is([data-sk-cursor="pulse"], [data-sk-cursor="rainbow"], [data-sk-cursor="candle"]) .sk-owncaret.blink { animation: none; }
[data-sk-cursor="thick"] :is(.CodeMirror-cursor, .sk-caret) { border-left-width: 4px; }
[data-sk-cursor="under"] :is(.CodeMirror-cursor, .sk-caret) { border-left: none; border-bottom: 3px solid var(--sk-fg, var(--text)); width: .6em; }
[data-sk-cursor="block"] :is(.CodeMirror-cursor, .sk-caret) { border-left: none; width: .6em; background: rgba(79, 155, 224, .55); }
[data-sk-cursor="blue"] :is(.CodeMirror-cursor, .sk-caret) { border-left: 3px solid #2b8cff; }
[data-sk-cursor="neon"] :is(.CodeMirror-cursor, .sk-caret) { border-left: 2px solid #ff2fd1; box-shadow: 0 0 6px #ff2fd1, 0 0 12px #ff2fd1; }
@keyframes sk-breath { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
[data-sk-cursor="pulse"] :is(.CodeMirror-cursor, .sk-caret) { border-left: 3px solid #13c08a; animation: sk-breath 1.2s ease-in-out infinite; }
[data-sk-cursor="pulse"] .CodeMirror-cursors { visibility: visible !important; }
@keyframes sk-cursorhue { 0% { border-color: #ff3b3b; } 20% { border-color: #ffb800; } 40% { border-color: #3bff6e; } 60% { border-color: #3bc8ff; } 80% { border-color: #b03bff; } 100% { border-color: #ff3b3b; } }
[data-sk-cursor="rainbow"] :is(.CodeMirror-cursor, .sk-caret) { border-left: 3px solid #f33; animation: sk-cursorhue 1.5s linear infinite; }
[data-sk-cursor="rainbow"] .CodeMirror-cursors { visibility: visible !important; }
[data-sk-cursor="flame"] :is(.CodeMirror-cursor, .sk-caret) { border-left: 3px solid #ff7a00; box-shadow: 0 -3px 6px #ffb300, 0 0 8px #ff3d00; }
[data-sk-cursor="laser"] :is(.CodeMirror-cursor, .sk-caret) { border-left: 2px solid #ff1f1f; box-shadow: 0 0 4px #ff1f1f, 0 0 12px #ff1f1f, 0 0 24px rgba(255, 31, 31, .6); transform: scaleY(1.25); }
/* Звёздный — ядро, орбита и световой след, обозначающий точку ввода. */
[data-sk-cursor="star"] :is(.CodeMirror-cursor, .sk-caret) {
  border-left: 2px solid #dfb878;
  border-image: linear-gradient(#fff5c2, #ffce79 55%, #a98cff) 1;
  filter: drop-shadow(0 0 1px #49267b) drop-shadow(0 0 3px rgb(148 100 255 / .55));
  animation: none;
}
[data-sk-cursor="star"] .sk-owncaret.blink { animation: none; }
[data-sk-cursor="star"] .CodeMirror-focused .CodeMirror-cursors { visibility: visible !important; }

[data-sk-cursor="star"] :is(.CodeMirror-cursor, .sk-caret)::before,
[data-sk-cursor="star"] :is(.CodeMirror-cursor, .sk-caret)::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  pointer-events: none;
}

/* Поворот сплющенного кольца сохраняет наклон орбиты и даёт искрам эллиптическую траекторию. */
[data-sk-cursor="star"] :is(.CodeMirror-cursor, .sk-caret)::before {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 1px solid rgb(173 151 255 / .7);
  border-radius: 50%;
  background:
    radial-gradient(ellipse 4px 3px at 0 50%, #fff 18%, #91efff 44%, transparent 100%),
    radial-gradient(ellipse 3px 2px at 100% 50%, #ffe6a7 32%, #da96ff 55%, transparent 100%) border-box;
  transform: translate(-50%, -50%) rotate(-24deg) scaleY(.48) rotate(20deg);
  animation: sk-star-orbit 3.8s linear infinite;
}
[data-sk-cursor="star"] :is(.CodeMirror-cursor, .sk-caret)::after {
  width: 13px;
  height: 17px;
  background: radial-gradient(ellipse at center, #fff 12%, #fff5bd 36%, #ffc565 62%, #d686ff 88%);
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%);
  transform: translate(-50%, -50%);
  animation: sk-star-shine 3.8s ease-in-out infinite;
}
@keyframes sk-star-orbit {
  to { transform: translate(-50%, -50%) rotate(-24deg) scaleY(.48) rotate(380deg); }
}
@keyframes sk-star-shine {
  45% { transform: translate(-50%, -50%) scale(.83); }
  77% { transform: translate(-50%, -50%) scale(1.1); }
}
body.sk-lite [data-sk-cursor="star"] :is(.CodeMirror-cursor, .sk-caret)::before,
body.sk-lite [data-sk-cursor="star"] :is(.CodeMirror-cursor, .sk-caret)::after {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-sk-cursor="star"] :is(.CodeMirror-cursor, .sk-caret)::before,
  [data-sk-cursor="star"] :is(.CodeMirror-cursor, .sk-caret)::after { animation: none; }
}

/* ---------- рамка редактора */
[data-sk-frame="thick"] { border: 3px solid var(--accent); }
[data-sk-frame="dashed"] { border: 2px dashed var(--muted); }
[data-sk-frame="double"] { border: 4px double var(--accent); }
[data-sk-frame="shadow"] { border-color: transparent; box-shadow: 0 10px 30px rgba(20, 30, 50, .25), 0 2px 6px rgba(20, 30, 50, .2); transform: translateY(-2px); }
[data-sk-frame="wood"] { border: 9px solid #8b5a2b; border-image: repeating-linear-gradient(45deg, #8b5a2b 0 6px, #a0693a 6px 10px, #7a4b22 10px 15px) 9; }
[data-sk-frame="neonblue"] { border: 2px solid #3ad7ff; box-shadow: 0 0 6px #3ad7ff, 0 0 18px rgba(58, 215, 255, .55), inset 0 0 8px rgba(58, 215, 255, .35); }
[data-sk-frame="neonpink"] { border: 2px solid #ff3fd8; box-shadow: 0 0 6px #ff3fd8, 0 0 18px rgba(255, 63, 216, .55), inset 0 0 8px rgba(255, 63, 216, .35); }
[data-sk-frame="gradient"] { border: 3px solid transparent; background: linear-gradient(var(--surface) 0 0) padding-box, linear-gradient(90deg, #ff6a88, #ff99ac, #6a8dff, #42e695, #ff6a88) 0 0 / 300% 100% border-box; animation: sk-slide 4s linear infinite; }
[data-sk-frame="pixel"] { border: none; border-radius: 0; margin: 5px; box-shadow: 0 -5px 0 0 var(--text), 0 5px 0 0 var(--text), -5px 0 0 0 var(--text), 5px 0 0 0 var(--text), 0 0 0 5px var(--yellow), 5px 5px 0 5px rgba(0, 0, 0, .25); }
[data-sk-frame="rainbow"] { border: 4px solid transparent; background: linear-gradient(var(--surface) 0 0) padding-box, conic-gradient(from var(--sk-ang), #ff3b3b, #ffb800, #3bff6e, #3bc8ff, #b03bff, #ff3b3b) border-box; animation: sk-spin 3s linear infinite; }
[data-sk-frame="gold"] { border: 8px solid #c9a227; border-image: linear-gradient(135deg, #7a5a14, #f6e27a 25%, #b8860b 45%, #fff3b0 60%, #8a6d1f 80%, #e6c35c) 8; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
@keyframes sk-fireframe {
  0%, 100% { box-shadow: 0 0 6px 2px #ff7a00, 0 -6px 16px 2px #ff3d00, 0 -14px 22px #ffb300, inset 0 0 6px #ff5a00; }
  50% { box-shadow: 0 0 9px 3px #ff5500, 0 -10px 20px 3px #ff2200, 0 -20px 30px #ffcc33, inset 0 0 9px #ff7a00; }
}
[data-sk-frame="fire"] { border: 2px solid #ff6a00; animation: sk-fireframe .5s ease-in-out infinite; }
@keyframes sk-portalglow { 0%, 100% { box-shadow: 0 0 10px rgba(140, 82, 255, .6), 0 0 30px rgba(0, 220, 255, .35); } 50% { box-shadow: 0 0 22px rgba(140, 82, 255, .9), 0 0 50px rgba(0, 220, 255, .6); } }
[data-sk-frame="portal"] { border: 4px solid transparent; background: linear-gradient(var(--surface) 0 0) padding-box, conic-gradient(from var(--sk-ang), #00e5ff, #7b2dff, #ff00c8, #00e5ff) border-box; animation: sk-spin 2s linear infinite, sk-portalglow 2s ease-in-out infinite; }

/* ---------- консоль (окно вывода) */
.output[data-sk-term="paper"] { background: #fbfbf8; color: #1b2330; border: 1px solid var(--line); }
.output[data-sk-term="paper"] .err { color: #c0392b; }
.output[data-sk-term="paper"] .note-line.muted, .output[data-sk-term="paper"].empty { color: #7a8594; }
.output[data-sk-term="navy"] { background: #0f1f3d; color: #dce8ff; }
.output[data-sk-term="amber"] { background: #140d02; color: #ffb000; text-shadow: 0 0 4px rgba(255, 176, 0, .55); }
.output[data-sk-term="amber"] .err { color: #ff6a3d; }
.output[data-sk-term="powershell"] { background: #012456; color: #eeedf0; }
.output[data-sk-term="powershell"] .err { color: #ff6b6b; background: rgba(0, 0, 0, .25); }
.output[data-sk-term="phosphor"] { background: #031105; color: #33ff66; text-shadow: 0 0 5px rgba(51, 255, 102, .6); }
.output[data-sk-term="ubuntu"] { background: #300a24; color: #f2f2f2; }
.output[data-sk-term="ubuntu"] .out:first-child::before { content: "student@pygo:~$ python3 solution.py\A"; color: #8ae234; font-weight: 700; }
@keyframes sk-crt { 0%, 100% { opacity: 1; } 50% { opacity: .96; } }
.output[data-sk-term="crt"] {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, #0e2a17 0%, #04110a 75%, #000 100%);
  color: #7dffa8; text-shadow: 0 0 2px #7dffa8, 0 0 8px rgba(125, 255, 168, .5); border-radius: 18px; box-shadow: inset 0 0 30px rgba(0, 0, 0, .9); animation: sk-crt .15s infinite;
}
.output[data-sk-term="typewriter"] { background: #f4ecd8 repeating-linear-gradient(transparent 0 23px, rgba(120, 90, 50, .12) 23px 24px); color: #2b2118; font-family: "sk-courier", "Courier New", monospace; line-height: 24px; border: 1px solid #d9c9a3; }
.output[data-sk-term="typewriter"] .err { color: #a3241c; }
.output[data-sk-term="dos"] { background: #000; color: #c0c0c0; border-radius: 0; font-family: "sk-vt323", var(--mono); font-size: 19px; line-height: 1.2; }
.output[data-sk-term="dos"] .out:first-child::before { content: "C:\\PYGO> python solution.py\A"; color: #fff; }
.output[data-sk-term="matrix"] { background: #000; color: #00ff41; text-shadow: 0 0 6px #00ff41; }
.output[data-sk-term="holo"] { background: linear-gradient(160deg, rgba(0, 200, 255, .18), rgba(140, 80, 255, .18)), #06121f; color: #9ff3ff; border: 1px solid rgba(120, 230, 255, .6); box-shadow: 0 0 20px rgba(0, 200, 255, .35), inset 0 0 20px rgba(0, 200, 255, .15); text-shadow: 0 0 6px rgba(120, 230, 255, .8); }

/* ---------- фон сайта: рисуется слоем ::before позади страницы */
body[data-sk-bg]::before, .sk-bgdemo[data-sk-bg]::before { content: ""; inset: 0; z-index: -1; pointer-events: none; }
body[data-sk-bg]::before { position: fixed; }
.sk-bgdemo { position: relative; height: 120px; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); isolation: isolate; }
.sk-bgdemo[data-sk-bg]::before { position: absolute; }
[data-sk-bg="grid"]::before { background: linear-gradient(rgba(79, 155, 224, .18) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(79, 155, 224, .18) 1px, transparent 1px) 0 0 / 22px 22px; }
[data-sk-bg="lines"]::before { background: linear-gradient(90deg, transparent 60px, rgba(240, 80, 80, .35) 60px 62px, transparent 62px), linear-gradient(rgba(79, 155, 224, .22) 1px, transparent 1px) 0 0 / 100% 28px; }
[data-sk-bg="dots"]::before { background: radial-gradient(rgba(120, 130, 150, .35) 1.2px, transparent 1.6px) 0 0 / 18px 18px; }
[data-sk-bg="soft"]::before { background: linear-gradient(135deg, rgba(255, 154, 158, .25), rgba(250, 208, 196, .2) 30%, rgba(161, 196, 253, .25) 70%, rgba(194, 233, 251, .25)); }
[data-sk-bg="blueprint"]::before { background: linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px) 0 0 / 100px 100px, linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px) 0 0 / 100px 100px, linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 20px 20px, #1d4f8c; }
@keyframes sk-aurora { 0% { transform: translate(-10%, -5%) rotate(0deg) scale(1.2); } 50% { transform: translate(5%, 5%) rotate(8deg) scale(1.35); } 100% { transform: translate(-10%, -5%) rotate(0deg) scale(1.2); } }
[data-sk-bg="aurora"]::before { background: radial-gradient(ellipse at 20% 30%, rgba(46, 255, 170, .3), transparent 50%), radial-gradient(ellipse at 70% 20%, rgba(80, 140, 255, .3), transparent 55%), radial-gradient(ellipse at 50% 80%, rgba(190, 80, 255, .25), transparent 55%); animation: sk-aurora 18s ease-in-out infinite; }
[data-sk-bg="honeycomb"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23e3a008' stroke-opacity='.35' stroke-width='1.5'/%3E%3C/svg%3E");
}
@keyframes sk-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
[data-sk-bg="stars"]::before {
  background: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 80px, #cfe3ff, transparent), radial-gradient(2px 2px at 160px 40px, #fff, transparent), radial-gradient(1px 1px at 130px 150px, #fff, transparent), radial-gradient(1.5px 1.5px at 40px 170px, #ffe9a8, transparent), radial-gradient(1px 1px at 190px 120px, #fff, transparent) 0 0 / 210px 210px, linear-gradient(#0b1230, #1b1446);
  animation: sk-twinkle 4s ease-in-out infinite;
}
[data-sk-bg="circuit"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%2322b573' stroke-opacity='.35' stroke-width='2'%3E%3Cpath d='M10 10h40v30h30M60 120V80h40V60M0 70h30l10 10v40M120 20H90v20'/%3E%3C/g%3E%3Cg fill='%2322b573' fill-opacity='.45'%3E%3Ccircle cx='80' cy='40' r='4'/%3E%3Ccircle cx='100' cy='60' r='4'/%3E%3Ccircle cx='10' cy='10' r='4'/%3E%3Ccircle cx='90' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
@keyframes sk-matrixfall { from { transform: translateY(-160px); } to { transform: translateY(0); } }
[data-sk-bg="matrix"]::before {
  inset: -160px 0 0 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' font-family='monospace' font-size='14'%3E%3Cg fill='%2300c83c' fill-opacity='.35'%3E%3Ctext x='4' y='20'%3E1%3C/text%3E%3Ctext x='4' y='60'%3Eｱ%3C/text%3E%3Ctext x='4' y='120'%3E0%3C/text%3E%3Ctext x='44' y='40'%3Eﾈ%3C/text%3E%3Ctext x='44' y='100'%3E7%3C/text%3E%3Ctext x='44' y='150'%3Eﾊ%3C/text%3E%3Ctext x='84' y='10'%3E0%3C/text%3E%3Ctext x='84' y='70'%3Eﾐ%3C/text%3E%3Ctext x='84' y='130'%3E1%3C/text%3E%3Ctext x='124' y='30'%3Eｼ%3C/text%3E%3Ctext x='124' y='90'%3E4%3C/text%3E%3Ctext x='124' y='140'%3Eﾂ%3C/text%3E%3C/g%3E%3C/svg%3E");
  animation: sk-matrixfall 6s linear infinite;
}
[data-sk-bg="space"]::before {
  background: radial-gradient(1px 1px at 30px 40px, #fff, transparent) 0 0 / 150px 150px, radial-gradient(1.5px 1.5px at 100px 110px, #fff, transparent) 0 0 / 190px 190px, radial-gradient(ellipse at 25% 35%, rgba(255, 70, 160, .35), transparent 45%), radial-gradient(ellipse at 75% 65%, rgba(60, 120, 255, .4), transparent 50%), radial-gradient(ellipse at 60% 20%, rgba(140, 60, 255, .3), transparent 40%), #090717;
}
@keyframes sk-lava { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(6%, -8%) scale(1.15); } 66% { transform: translate(-6%, 6%) scale(.95); } 100% { transform: translate(0, 0) scale(1); } }
[data-sk-bg="lava"]::before { inset: -20%; background: radial-gradient(circle at 20% 30%, rgba(255, 94, 58, .45), transparent 22%), radial-gradient(circle at 75% 25%, rgba(255, 196, 0, .4), transparent 20%), radial-gradient(circle at 60% 75%, rgba(255, 42, 104, .4), transparent 25%), radial-gradient(circle at 25% 80%, rgba(255, 140, 0, .35), transparent 22%); filter: blur(20px); animation: sk-lava 14s ease-in-out infinite; }

/* ---------- ник */
[data-sk-nick="bold"] { font-weight: 800 !important; color: var(--text) !important; }
[data-sk-nick="blue"] { color: #2b77ff !important; font-weight: 600; }
[data-sk-nick="green"] { color: #19e36b !important; text-shadow: 0 0 6px rgba(25, 227, 107, .7); font-weight: 600; }
[data-sk-nick="mono"] { font-family: var(--mono) !important; color: var(--ok) !important; text-decoration: underline; }
[data-sk-nick="mono"]::before { content: "> "; }
[data-sk-nick="gold"], [data-sk-nick="ice"], [data-sk-nick="rainbow"], [data-sk-nick="fire"], [data-sk-nick="holo"] { -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; font-weight: 800; }
[data-sk-nick="gold"] { background: linear-gradient(100deg, #8a6d1f, #f6e27a 35%, #fffbe0 50%, #d4a017 65%, #8a6d1f) 0 0 / 250% 100%; animation: sk-sweep 3s linear infinite; }
[data-sk-nick="ice"] { background: linear-gradient(90deg, #7fdcff, #e0fbff, #4aa8ff, #7fdcff) 0 0 / 200% 100%; animation: sk-slide 4s linear infinite; }
[data-sk-nick="rainbow"] { background: linear-gradient(90deg, #ff5f6d, #ffc371, #f9f871, #6bff95, #4fc3ff, #b06bff, #ff5f6d) 0 0 / 200% 100%; animation: sk-slide 2s linear infinite; }
[data-sk-nick="fire"] { background: linear-gradient(0deg, #ff2d00, #ff8a00 45%, #ffe259) 0 0 / 100% 200%; animation: sk-fireup 1s linear infinite; }
[data-sk-nick="glitch"] { display: inline-block; font-weight: 800; color: var(--text) !important; animation: sk-glitchtext 1.6s infinite; }
[data-sk-nick="holo"] { background: linear-gradient(90deg, #ff8af0, #7dffea, #8ab4ff, #ffd27a, #ff8af0) 0 0 / 300% 100%; animation: sk-slide 5s linear infinite; }
[data-sk-nick="crown"] { color: #d4a017 !important; font-weight: 800; text-shadow: 0 0 8px rgba(255, 200, 40, .6); }
[data-sk-nick="crown"]::before { content: "👑 "; }

/* ---------- титул */
.sk-title { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 20px; white-space: nowrap; color: #fff; background: var(--r, #9fb0c3); vertical-align: middle; }
.sk-title[data-r="legendary"], .sk-title[data-r="mythic"], .sk-title[data-r="secret"] { background: linear-gradient(100deg, var(--r) 30%, #fff 50%, var(--r) 70%) 0 0 / 300% 100%; animation: sk-sweep 3s linear infinite; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }

/* ---------- Хеллоуин (коллекция halloween, 2026-10-26) */
[data-sk-syntax="pumpkin"] { --sk-bg: #140d1c; --sk-fg: #f1e6da; --sk-gut: #0f0915; --sk-ln: #6b4f7a; --c-keyword: #ff8c1a; --c-def: #ffb347; --c-string: #9be35a; --c-number: #c792ea; --c-comment: #6f5a80; --c-builtin: #ff6b3d; --c-operator: #ff8c1a; --sk-sel: rgba(255, 140, 26, .25); }
[data-sk-syntax="pumpkin"] .cm-keyword { text-shadow: 0 0 6px rgba(255, 140, 26, .45); }
@keyframes sk-candle { 0%, 100% { transform: scale(1, 1) rotate(-3deg); } 30% { transform: scale(.9, 1.12) rotate(4deg); } 60% { transform: scale(1.05, .92) rotate(-2deg); } }
[data-sk-cursor="candle"] :is(.CodeMirror-cursor, .sk-caret) { border-left: 3px solid #f3e7c9; }
[data-sk-cursor="candle"] :is(.CodeMirror-cursor, .sk-caret)::after { content: ""; position: absolute; left: -4.5px; top: -7px; width: 6px; height: 8px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: radial-gradient(circle at 50% 70%, #fffbe0, #ffc233 45%, #ff6a00 80%); box-shadow: 0 0 6px #ffb300, 0 0 14px rgba(255, 140, 0, .6); transform-origin: 50% 100%; animation: sk-candle .5s ease-in-out infinite; }
[data-sk-cursor="candle"] .CodeMirror-cursors { visibility: visible !important; }
@keyframes sk-brew { from { background-position: 0 0, 30px 0, 12px 0, 0 0; } to { background-position: 0 -60px, 30px -90px, 12px -45px, 0 0; } }
.output[data-sk-term="cauldron"] {
  background: radial-gradient(circle, rgba(150, 255, 120, .35) 2px, transparent 3px) 0 0 / 60px 60px, radial-gradient(circle, rgba(150, 255, 120, .25) 3px, transparent 4px) 30px 0 / 90px 90px, radial-gradient(circle, rgba(150, 255, 120, .3) 1.5px, transparent 2.5px) 12px 0 / 45px 45px, radial-gradient(ellipse at 50% 130%, rgba(90, 255, 110, .35), transparent 65%), #130a1b;
  color: #b9ff9c; text-shadow: 0 0 5px rgba(120, 255, 100, .5); animation: sk-brew 4s linear infinite;
}
.output[data-sk-term="cauldron"] .err { color: #ff7ac8; }
[data-sk-nick="pumpkin"] { color: #ff8c1a !important; font-weight: 800; text-shadow: 0 0 8px rgba(255, 140, 26, .7); }
[data-sk-nick="pumpkin"]::before { content: "🎃 "; }
[data-sk-frame="cobweb"] { position: relative; border: 2px solid #5d4a70; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 6px 18px rgba(40, 10, 60, .35); }
[data-sk-frame="cobweb"]::before, [data-sk-frame="cobweb"]::after { content: ""; position: absolute; top: 0; width: 84px; height: 84px; z-index: 6; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cpath d='M0 0L84 0M0 0L77.6 32.1M0 0L59.4 59.4M0 0L32.1 77.6M0 0L0 84M14 0Q11.3 2.2 12.9 5.4M12.9 5.4Q9.5 6.4 9.9 9.9M9.9 9.9Q6.4 9.5 5.4 12.9M5.4 12.9Q2.2 11.3 0 14M27 0Q21.7 4.3 24.9 10.3M24.9 10.3Q18.4 12.3 19.1 19.1M19.1 19.1Q12.3 18.4 10.3 24.9M10.3 24.9Q4.3 21.7 0 27M40 0Q32.2 6.4 37 15.3M37 15.3Q27.3 18.2 28.3 28.3M28.3 28.3Q18.2 27.3 15.3 37M15.3 37Q6.4 32.2 0 40M53 0Q42.6 8.5 49 20.3M49 20.3Q36.1 24.1 37.5 37.5M37.5 37.5Q24.1 36.1 20.3 49M20.3 49Q8.5 42.6 0 53M66 0Q53.1 10.6 61 25.3M61 25.3Q45 30.1 46.7 46.7M46.7 46.7Q30.1 45 25.3 61M25.3 61Q10.6 53.1 0 66M78 0Q62.7 12.5 72.1 29.8M72.1 29.8Q53.2 35.5 55.2 55.2M55.2 55.2Q35.5 53.2 29.8 72.1M29.8 72.1Q12.5 62.7 0 78' fill='none' stroke='%23e8e4f2' stroke-opacity='.6' stroke-width='1'/%3E%3C/svg%3E") no-repeat; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6)); }
[data-sk-frame="cobweb"]::before { left: 0; }
[data-sk-frame="cobweb"]::after { right: 0; transform: scaleX(-1); }
@keyframes sk-drip { 0%, 100% { text-shadow: 0 1px 0 #2f8a1f, 0 2px 4px rgba(125, 255, 90, .35); } 50% { text-shadow: 0 2px 0 #2f8a1f, 0 6px 1px rgba(80, 200, 60, .75), 0 10px 6px rgba(125, 255, 90, .35); } }
[data-sk-func="slime"] :is(.cm-def, .cm-call) { color: #8dff5a; font-weight: 700; animation: sk-drip 1.6s ease-in-out infinite; }
[data-sk-bg="graveyard"]::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='150'%3E%3Cpath d='M0 150V128Q80 118 160 126T320 124T480 128T640 124V150ZM60 128V98a14 14 0 0 1 28 0V128ZM150 130V104h8V92h6v12h8v6h-8v20ZM230 128V90a20 20 0 0 1 40 0V128ZM330 126V108a10 10 0 0 1 20 0V126ZM420 128V86h10V70h8v16h10v8h-10v34ZM500 128V100a16 16 0 0 1 32 0V128ZM580 126c2-20 0-40-6-60l-14-12 3-2 12 9c-2-10-6-18-12-24l3-2c7 7 11 15 13 25 2-12 7-22 15-28l2 3c-8 7-12 17-13 30 4-6 10-10 17-12l1 3c-8 3-13 8-15 16 3 20 4 38 2 54Z' fill='%230a0612' fill-opacity='.92'/%3E%3C/svg%3E") 0 100% / 640px 150px repeat-x,
    radial-gradient(1px 1px at 30px 40px, #fff, transparent) 0 0 / 170px 170px, radial-gradient(1.5px 1.5px at 120px 90px, #e8dcff, transparent) 0 0 / 230px 230px,
    radial-gradient(circle at 82% 16%, #fffbe6 0 46px, rgba(255, 232, 170, .35) 47px 64px, rgba(255, 200, 120, .12) 65px 120px, transparent 121px),
    linear-gradient(transparent 70%, rgba(190, 180, 220, .14) 85%, rgba(190, 180, 220, .2)), linear-gradient(#0d0820, #22123a 55%, #3a1c4d);
}
.sk-check .cauldron { position: relative; width: 96px; height: 64px; }
.sk-check .cauldron .brew { position: absolute; left: 16px; right: 16px; bottom: 30px; height: 40px; }
.sk-check .cauldron .brew::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: -4px; height: 10px; border-radius: 50%; background: #6dff4a; box-shadow: 0 0 calc(8px + var(--p, 0) * 16px) #6dff4a; }
.sk-check .cauldron .pot { position: absolute; left: 10px; right: 10px; bottom: 0; height: 36px; border-radius: 8px 8px 40px 40px; background: radial-gradient(ellipse at 40% 25%, #4a4a52, #15151a 70%); box-shadow: inset 0 3px 0 #5d5d66, 0 2px 0 #000; }
.sk-check .cauldron .pot::before, .sk-check .cauldron .pot::after { content: ""; position: absolute; bottom: -5px; width: 8px; height: 8px; border-radius: 2px; background: #15151a; }
.sk-check .cauldron .pot::before { left: 12px; }
.sk-check .cauldron .pot::after { right: 12px; }
.sk-check .cauldron .bub { position: absolute; bottom: 0; width: var(--s); height: var(--s); border-radius: 50%; background: rgba(170, 255, 140, .9); box-shadow: 0 0 6px #6dff4a; animation: sk-bubrise 1.1s ease-out forwards; }
@keyframes sk-bubrise { to { transform: translateY(-36px) scale(1.4); opacity: 0; } }
@keyframes sk-jumpin { 0% { transform: scale(.08) rotate(-25deg); opacity: 0; } 70% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.sk-jump { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 110, 0, .3), rgba(0, 0, 0, .8) 70%); }
.sk-jump span { grid-area: 1 / 1; font-size: min(62vw, 62vh, 440px); line-height: 1; filter: drop-shadow(0 0 40px #ff6a00); animation: sk-jumpin .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.sk-jump b { grid-area: 1 / 1; align-self: end; margin-bottom: 8vh; font: 900 clamp(56px, 15vw, 170px)/1 system-ui, sans-serif; color: #fff; text-shadow: 0 0 24px #ff3d00, 5px 5px 0 #000; animation: sk-jumpin .35s .12s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes sk-fadein { from { opacity: 0; } }

/* ---------- Нуар (коллекция noir, сезон 1 Python Pass «import Noir», 2026-11-01) */
@font-face { font-family: "sk-cutive"; src: url(/fonts/skins/cutive-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
[data-sk-font="cutive"] :is(.CodeMirror, .sk-code) { font-family: "sk-cutive", var(--mono); font-size: 15px; }
@font-face { font-family: "sk-elite"; src: url(/fonts/skins/special-elite-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
[data-sk-font="elite"] :is(.CodeMirror, .sk-code) { font-family: "sk-elite", var(--mono); }
[data-sk-syntax="noir"] { --sk-bg: #111214; --sk-fg: #e4e4e4; --sk-gut: #0b0b0d; --sk-ln: #5a5a5e; --c-keyword: #ffffff; --c-def: #d6d6d6; --c-string: #a9a9a9; --c-number: #c8c8c8; --c-comment: #626266; --c-builtin: #bdbdbd; --c-operator: #8c8c8c; --sk-sel: rgba(255, 255, 255, .14); }
[data-sk-syntax="noir"] .cm-keyword { font-weight: 700; }
[data-sk-syntax="noir"] :is(.cm-string, .cm-comment) { font-style: italic; }
/* киноплёнка: тёплый ч/б, зерно, царапины, виньетка и мерцание; перфорация на полях с номерами строк */
[data-sk-syntax="film"] { --sk-bg: #1c1a16; --sk-fg: #e9e2d0; --sk-gut: #0d0c0a; --sk-ln: #6f6756; --c-keyword: #fff6e0; --c-def: #f1d9a8; --c-string: #c2b48f; --c-number: #e0c890; --c-comment: #7b725e; --c-builtin: #d8c7a0; --c-operator: #a89b7c; --sk-sel: rgba(255, 240, 200, .16); }
[data-sk-syntax="film"] .cm-keyword { font-weight: 700; text-shadow: 0 0 6px rgba(255, 240, 200, .35); }
@keyframes sk-filmflick { 0%, 100% { filter: brightness(1); } 7% { filter: brightness(1.12); } 8% { filter: brightness(.9); } 9% { filter: brightness(1); } 53% { filter: brightness(1.07); } 54% { filter: brightness(1); } 81% { filter: brightness(.88); } 82% { filter: brightness(1); } }
@keyframes sk-grain { 0% { background-position: 0 0, 0 0, 0 0; } 25% { background-position: 30% 0, -40px 30px, 0 0; } 50% { background-position: 75% 0, 60px -20px, 0 0; } 75% { background-position: 10% 0, -10px -50px, 0 0; } }
[data-sk-syntax="film"] :is(.CodeMirror, .sk-code) { position: relative; animation: sk-filmflick 4s steps(1) infinite; }
[data-sk-syntax="film"] :is(.CodeMirror, .sk-code)::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: linear-gradient(90deg, transparent 0 23%, rgba(255, 250, 235, .18) 23.1% 23.25%, transparent 23.4% 71%, rgba(0, 0, 0, .4) 71.1% 71.22%, transparent 71.4%) 0 0 / 140% 100%,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px,
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
  animation: sk-grain .48s steps(1) infinite; }
[data-sk-syntax="film"] .CodeMirror-gutters { background: linear-gradient(180deg, #d9cfb8 0 10px, transparent 10px) 4px 4px / 7px 20px repeat-y, var(--sk-gut); }
[data-sk-syntax="film"] .CodeMirror-linenumber { padding-left: 14px; }
[data-sk-cursor="flashlight"] :is(.CodeMirror-cursor, .sk-caret) { border-left: 2px solid #fff2c4; }
[data-sk-cursor="flashlight"] :is(.CodeMirror-cursor, .sk-caret)::after { content: ""; position: absolute; left: -46px; top: 50%; width: 92px; height: 92px; margin-top: -46px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 236, 170, .3), rgba(255, 236, 170, .1) 40%, transparent 70%); }
[data-sk-cursor="flashlight"] .CodeMirror-cursors { visibility: visible !important; }
[data-sk-cursor="flashlight"] .sk-owncaret.blink { animation: none; }
.output[data-sk-term="casefile"] { position: relative; color: #2a2116; font-family: "sk-courier", "Courier New", monospace; border-top: 6px solid #c9b07a; box-shadow: inset 0 0 30px rgba(120, 80, 20, .25);
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 30%), repeating-linear-gradient(0deg, transparent 0 23px, rgba(120, 90, 40, .12) 23px 24px), #e3cf9c; }
.output[data-sk-term="casefile"]::after { content: "СЕКРЕТНО"; position: absolute; right: 10px; top: 8px; padding: 2px 8px; border: 2px solid rgba(190, 20, 30, .75); border-radius: 4px; color: rgba(190, 20, 30, .75);
  font: 800 .72rem/1.2 system-ui, sans-serif; letter-spacing: .14em; transform: rotate(-8deg); pointer-events: none; }
.output[data-sk-term="casefile"] .err { color: #b3121f; }
.output[data-sk-term="casefile"].empty, .output[data-sk-term="casefile"] .note-line.muted { color: #6f5f40; }
@keyframes sk-smoke { 0%, 100% { text-shadow: 0 0 6px rgba(160, 160, 160, .55), 0 -2px 10px rgba(140, 140, 140, .3); } 50% { text-shadow: 0 0 8px rgba(190, 190, 190, .7), 0 -6px 14px rgba(150, 150, 150, .45); } }
[data-sk-nick="fedora"] { color: var(--text) !important; font-weight: 800; letter-spacing: .02em; animation: sk-smoke 3s ease-in-out infinite; }
[data-sk-nick="fedora"]::before { content: "🕵️ "; }
@keyframes sk-blinds { to { background-position: 80px 0; } }
[data-sk-frame="blinds"] { position: relative; border: 2px solid #2a2a2e; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
[data-sk-frame="blinds"]::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: repeating-linear-gradient(-28deg, rgba(255, 236, 190, .1) 0 16px, rgba(0, 0, 0, .09) 16px 34px) 0 0 / 200% 200%; animation: sk-blinds 10s ease-in-out infinite alternate; }
[data-sk-func="redthread"] :is(.cm-def, .cm-call) { text-decoration: underline wavy #d0021b 1.5px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
[data-sk-func="redthread"] .cm-def { position: relative; font-weight: 700; }
[data-sk-func="redthread"] .cm-def::before { content: "📌"; position: absolute; left: -.35em; top: -.75em; font-size: .62em; line-height: 1; pointer-events: none; }
.sk-title[data-t="detective"]::before { content: "🔍 "; }
/* ночной город: силуэты домов с окнами, неоновые вывески (слой ::before, как у всех фонов); дождь — холстом .sk-bgrain (skins.js) */
[data-sk-bg="rainycity"]::before {
  background:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='230'%3E%3Cpath d='M0 230V120h40V96h26v24h18V60h34v60h16v-18h28V40h10V24h8v16h12v80h20V80h40v40h14v-26h30v26h24V64h16V48h14v16h14v56h26V92h36v28h18V104h26V58h40v62h14V92h28v28h22V70h12V56h8v14h12v50h30V100h36v20h20V84h34v36h28v110Z' fill='%23050508'/%3E%3Cg fill='%23ffd98a'%3E%3Crect x='96' y='72' width='5' height='6'/%3E%3Crect x='106' y='88' width='5' height='6' opacity='.5'/%3E%3Crect x='186' y='52' width='4' height='5'/%3E%3Crect x='186' y='70' width='4' height='5' opacity='.4'/%3E%3Crect x='244' y='96' width='5' height='6'/%3E%3Crect x='354' y='78' width='4' height='5' opacity='.6'/%3E%3Crect x='456' y='70' width='5' height='6'/%3E%3Crect x='470' y='90' width='5' height='6' opacity='.4'/%3E%3Crect x='566' y='72' width='4' height='5'/%3E%3Crect x='640' y='96' width='5' height='6' opacity='.6'/%3E%3C/g%3E%3Cg font-family='Georgia,serif' font-weight='700' font-size='15' letter-spacing='3'%3E%3Ctext x='160' y='36' fill='%23ff3b4d'%3EHOTEL%3C/text%3E%3Ctext x='520' y='52' fill='%2366e0ff'%3EBAR%3C/text%3E%3C/g%3E%3C/svg%3E") 0 100% / 720px 230px repeat-x,
    linear-gradient(transparent 60%, rgba(255, 140, 120, .08) 85%, rgba(255, 140, 120, .12)) 0 100% / 100% 100%,
    radial-gradient(ellipse at 20% 10%, rgba(255, 217, 138, .12), transparent 40%),
    linear-gradient(#07080c, #12141c 55%, #1d1a24);
}
/* проверка «Лупа»: лупа ходит по листу дела, справа — найденные улики */
.sk-check .sk-mag { position: relative; flex: 1 1 300px; min-width: 260px; max-width: 380px; height: 64px; display: flex; align-items: center; gap: 12px; }
.sk-mag .doc { flex: 1; height: 52px; padding: 8px 10px; border-radius: 4px; background: #e9dcb8; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); overflow: hidden; }
.sk-mag .doc i { display: block; height: 4px; margin: 0 0 7px; border-radius: 2px; background: #b8a780; }
.sk-mag .doc i:nth-child(2) { width: 82%; } .sk-mag .doc i:nth-child(3) { width: 64%; } .sk-mag .doc i:nth-child(4) { width: 74%; }
@keyframes sk-magmove { 0%, 100% { left: 2%; top: 2px; } 30% { left: 34%; top: 14px; } 60% { left: 52%; top: 0; } 80% { left: 20%; top: 12px; } }
.sk-mag .glass { position: absolute; left: 2%; top: 2px; width: 44px; height: 44px; border-radius: 50%; border: 4px solid #2b2b2b; box-shadow: 0 3px 8px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(255, 255, 255, .25);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .65), rgba(200, 230, 255, .12) 60%); animation: sk-magmove 1.8s ease-in-out infinite; }
.sk-mag .glass::after { content: ""; position: absolute; right: -15px; bottom: -11px; width: 20px; height: 7px; border-radius: 3px; background: #3a2a1a; transform: rotate(45deg); }
.sk-mag .clues { display: flex; flex-direction: column; gap: 2px; min-width: 88px; }
.sk-mag .clues b { font: 700 .74rem/1.2 "sk-courier", "Courier New", monospace; color: #d0021b; animation: sk-popin .3s; }
/* ошибка «Место преступления»: две жёлтые ленты крест-накрест */
.sk-tape { background: rgba(0, 0, 0, .28); }
.sk-tape .t { position: absolute; left: -15%; width: 130%; padding: 7px 0; overflow: hidden; white-space: nowrap; text-align: center; color: #111; background: #ffd400;
  font: 900 clamp(13px, 2.3vw, 24px)/1 system-ui, sans-serif; letter-spacing: .1em; border-block: 4px solid #111; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.sk-tape .t1 { top: 38%; transform: rotate(-11deg); animation: sk-tape1 .42s cubic-bezier(.2, .9, .3, 1.15) both; }
.sk-tape .t2 { top: 53%; transform: rotate(8deg); animation: sk-tape2 .42s .14s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes sk-tape1 { from { transform: rotate(-11deg) translateX(-110%); } }
@keyframes sk-tape2 { from { transform: rotate(8deg) translateX(110%); } }
/* решение «Дело закрыто»: папка с делом, печать с размаху */
.sk-casef { position: relative; width: min(380px, 86vw); padding: 34px 26px 26px; border-radius: 4px 14px 6px 6px; color: #2a2116; font-family: "sk-courier", "Courier New", monospace;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 40%), #e3cf9c; box-shadow: 0 20px 50px rgba(0, 0, 0, .55), inset 0 0 40px rgba(120, 80, 20, .25); animation: sk-casein .45s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes sk-casein { from { transform: translateY(60px) rotate(-8deg); opacity: 0; } }
.sk-casef .tab { position: absolute; left: 18px; top: -18px; padding: 4px 14px; border-radius: 8px 8px 0 0; background: #d8c189; font: 800 .8rem/1.2 system-ui, sans-serif; letter-spacing: .12em; }
.sk-casef p { margin: 4px 0; font-size: 15px; }
.sk-casef .st { color: #8a1a12; font-weight: 700; }
.sk-casef .stamp { position: absolute; right: 12px; bottom: 22px; padding: 6px 12px; border: 4px solid #c3141b; border-radius: 6px; color: #c3141b; background: rgba(255, 255, 255, .05);
  font: 900 clamp(20px, 5vw, 30px)/1 system-ui, sans-serif; letter-spacing: .06em; transform: rotate(-14deg); mix-blend-mode: multiply; animation: sk-stampin .3s .75s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes sk-stampin { from { transform: rotate(-14deg) scale(3.2); opacity: 0; } }
/* секретный «import Noir»: кинополосы, субтитры, зерно, улики на нитке, печать */
.sk-noir { display: block; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0, 0, 0, .6) 100%); animation: sk-fadein .5s both; }
.sk-noir .rain { position: absolute; inset: 0; }
.sk-noir .blinds { position: absolute; inset: -20% -40%; background: repeating-linear-gradient(180deg, rgba(255, 238, 200, .08) 0 22px, transparent 22px 50px); transform: rotate(-22deg); animation: sk-noirbl 4s ease-in-out both; }
@keyframes sk-noirbl { from { transform: rotate(-22deg) translateX(-40%); opacity: 0; } 25% { opacity: 1; } to { transform: rotate(-22deg) translateX(30%); opacity: .6; } }
@keyframes sk-noirgrain { 0% { background-position: 0 0; } 25% { background-position: -40px 30px; } 50% { background-position: 60px -20px; } 75% { background-position: -10px -50px; } }
.sk-noir .grain { position: absolute; inset: 0; opacity: .55; animation: sk-noirgrain .4s steps(1) infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px; }
.sk-noir .man { position: absolute; right: 5%; bottom: 12vh; height: min(46vh, 380px); fill: #000; animation: sk-noirman 1.2s .4s ease-out both; }
.sk-noir .man .lamp { fill: #ffe7ad; filter: drop-shadow(0 0 10px #ffd98a) drop-shadow(0 0 30px rgba(255, 217, 138, .9)); }
@keyframes sk-noirman { from { transform: translateX(20%); opacity: 0; } }
.sk-noir .board { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .5s; }
.sk-noir .board.gone { opacity: 0; }
.sk-noir .board path { fill: none; stroke: #c3141b; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .55)); animation: sk-noirline .45s ease-out forwards; }
@keyframes sk-noirline { to { stroke-dashoffset: 0; } }
.sk-noir .board .pin { animation: sk-noirpin .3s cubic-bezier(.3, 1.6, .5, 1) both; }
.sk-noir .board .pin circle { fill: #d81e2c; stroke: #4a0006; stroke-width: 1.5; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.sk-noir .board .pin .hi { fill: rgba(255, 255, 255, .7); stroke: none; filter: none; }
@keyframes sk-noirpin { from { transform: scale(2.4); opacity: 0; } }
.sk-noir .bar { position: absolute; left: 0; right: 0; height: 12vh; background: #000; z-index: 3; transition: transform .55s ease-in; }
.sk-noir .bar.top { top: 0; animation: sk-noirtop .6s cubic-bezier(.2, .8, .3, 1) both; }
.sk-noir .bar.bot { bottom: 0; display: grid; place-items: center; animation: sk-noirbot .6s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes sk-noirtop { from { transform: translateY(-100%); } }
@keyframes sk-noirbot { from { transform: translateY(100%); } }
.sk-noir.out .bar.top { transform: translateY(-100%); }
.sk-noir.out .bar.bot { transform: translateY(100%); }
.sk-noir.out > :not(.bar) { opacity: 0; transition: opacity .5s; }
.sk-noir .sub { margin: 0; padding: 0 16px; text-align: center; color: #f1ede4; font: 700 clamp(15px, 2.2vw, 24px)/1.3 "sk-courier", "Courier New", monospace; }
.sk-noir .sub i { display: inline-block; width: .5em; height: .95em; margin-left: 2px; vertical-align: -.12em; background: #f1ede4; animation: sk-blink .8s steps(1) infinite; }
.sk-noir .seal { position: absolute; left: 50%; top: 50%; z-index: 2; padding: 10px 26px 12px; border: 6px solid #c3141b; border-radius: 8px; color: #c3141b; background: rgba(239, 234, 223, .07);
  font: 900 clamp(32px, 7.5vw, 88px)/1 system-ui, sans-serif; letter-spacing: .05em; white-space: nowrap; transform: translate(-50%, -50%) rotate(-10deg);
  box-shadow: inset 0 0 0 3px rgba(195, 20, 27, .35), 0 0 30px rgba(0, 0, 0, .5); text-shadow: 0 0 1px #c3141b; animation: sk-noirseal .3s cubic-bezier(.3, 1.6, .5, 1) both; }
.sk-noir .seal small { display: block; margin-top: 8px; font: 700 clamp(11px, 1.5vw, 16px)/1 "sk-courier", "Courier New", monospace; letter-spacing: .32em; color: #efeadf; text-align: center; }
@keyframes sk-noirseal { from { transform: translate(-50%, -50%) rotate(-10deg) scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sk-noir .blinds, .sk-noir .grain { animation: none; } }
/* холст дождя (skins.rain); у фона «Ночной город» — позади страницы, как слой body::before */
.sk-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sk-bgrain { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- слой эффектов (частицы, вспышки) */
.sk-fx { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
@keyframes sk-shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 2px) rotate(-.6deg); } 40% { transform: translate(5px, -2px) rotate(.5deg); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, -1px); } }
@keyframes sk-shake-s { 0%, 100% { transform: none; } 25% { transform: translate(-2px, 1px); } 75% { transform: translate(2px, -1px); } }
.sk-shake { animation: sk-shake .45s; }
.sk-shake-s { animation: sk-shake-s .12s; }

/* проверка */
.sk-check { display: flex; align-items: center; justify-content: center; margin-top: 8px; min-height: 40px; position: relative; overflow: hidden; border-radius: 8px; }
.sk-check .d { width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--accent); animation: sk-bounce .9s infinite ease-in-out; }
.sk-check .d:nth-child(2) { animation-delay: .15s; } .sk-check .d:nth-child(3) { animation-delay: .3s; }
@keyframes sk-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-12px); opacity: 1; } }
.sk-check .bar { flex: 1; height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.sk-check .bar > i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--accent) 0 10px, var(--accent-2) 10px 20px); transition: width .25s; animation: sk-slide 1s linear infinite; background-size: 200% 100%; }
.sk-check .ring { width: 32px; height: 32px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--accent); animation: sk-rot .7s linear infinite; }
@keyframes sk-rot { to { transform: rotate(360deg); } }
.sk-check .glass { font-size: 30px; animation: sk-flip 1.2s ease-in-out infinite; }
@keyframes sk-flip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.sk-check .radar { width: 56px; height: 56px; border-radius: 50%; position: relative; background: radial-gradient(circle, transparent 30%, rgba(29, 138, 78, .25) 31% 32%, transparent 33% 62%, rgba(29, 138, 78, .25) 63% 64%, transparent 65%), #062b16; border: 2px solid #1d8a4e; overflow: hidden; }
.sk-check .radar::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(60, 255, 140, .7), transparent 25%); animation: sk-rot 1.2s linear infinite; }
.sk-check .radar i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #5dff9c; box-shadow: 0 0 6px #5dff9c; animation: sk-breath 1.2s infinite; }
.sk-scanline { position: absolute; left: 0; right: 0; height: 3px; z-index: 6; background: #ff2a2a; box-shadow: 0 0 10px 3px rgba(255, 42, 42, .6), 0 0 30px 8px rgba(255, 42, 42, .25); animation: sk-scan 1.1s ease-in-out infinite alternate; pointer-events: none; }
@keyframes sk-scan { from { top: 0; } to { top: calc(100% - 3px); } }
.sk-check canvas { width: 100%; height: 70px; display: block; border-radius: 8px; }
.sk-check .pac-track { position: relative; flex: 1; height: 36px; }
.anim-stage > .sk-check[data-k="pacman"] { justify-self: stretch; margin: 8px 14px 0; } /* в превью инвентаря (grid, place-items: center) дорожка иначе нулевой ширины */
@property --sk-pm { syntax: '<angle>'; inherits: false; initial-value: 40deg; }
.sk-check .pac { --sk-pm: 40deg; position: absolute; top: 3px; left: 0; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 90deg, transparent 0 var(--sk-pm), #ffd400 0 calc(360deg - var(--sk-pm)), transparent 0); animation: sk-chomp .22s ease-in-out infinite alternate; z-index: 1; will-change: transform; }
.sk-check .pac::after { content: ""; position: absolute; top: 6px; left: 13px; width: 4px; height: 4px; border-radius: 50%; background: #1a1a1a; }
@keyframes sk-chomp { from { --sk-pm: 42deg; } to { --sk-pm: 2deg; } }
.sk-check .pac-dot { position: absolute; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: #ffb8ae; transform: translateX(-50%); transition: transform .12s, opacity .12s; }
.sk-check .pac-dot.eaten { transform: translateX(-50%) scale(0); opacity: 0; }
.sk-check .hack { width: 100%; height: 86px; background: #000; color: #20ff5c; font: 12px/1.35 var(--mono); padding: 6px 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; }
.sk-check .dna { display: flex; gap: 6px; height: 56px; align-items: center; }
.sk-check .dna span { position: relative; width: 6px; height: 100%; }
.sk-check .dna span::before, .sk-check .dna span::after { content: ""; position: absolute; left: 0; width: 8px; height: 8px; border-radius: 50%; animation: sk-dna 1.4s ease-in-out infinite; animation-delay: inherit; }
.sk-check .dna span::before { background: #ff4f9a; }
.sk-check .dna span::after { background: #4fc3ff; animation-name: sk-dna2; }
@keyframes sk-dna { 0%, 100% { top: 0; transform: scale(1); } 50% { top: calc(100% - 8px); transform: scale(.6); } }
@keyframes sk-dna2 { 0%, 100% { top: calc(100% - 8px); transform: scale(.6); } 50% { top: 0; transform: scale(1); } }
@keyframes sk-pulse { to { transform: scale(1.15); filter: brightness(1.3); } }
@keyframes sk-ringout { to { transform: scale(2.6); opacity: 0; } }
/* реактор (мифический): --p — мощность 0…1 (ставит skins.js); .hot — больше 80%; .boom — перегрузка в конце */
.sk-check[data-k="reactor"] { display: block; }
.sk-check .rx { --p: 0; position: relative; height: 104px; display: flex; align-items: center; gap: 18px; padding: 0 20px; border-radius: 12px; overflow: hidden; color: #cfefff;
  background: radial-gradient(circle at 62px 50%, rgba(0, 190, 255, calc(.12 + var(--p) * .4)), transparent 62%), repeating-linear-gradient(135deg, #0a111e 0 12px, #0d1626 12px 24px);
  border: 1px solid rgba(0, 200, 255, calc(.25 + var(--p) * .5)); box-shadow: inset 0 0 calc(8px + var(--p) * 36px) rgba(0, 200, 255, .4), 0 0 calc(var(--p) * 22px) rgba(0, 170, 255, .45); }
.sk-check .rx-arcs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.sk-check .rx-core-wrap { position: relative; z-index: 2; flex: none; width: 76px; height: 76px; display: grid; place-items: center; perspective: 260px; transform-style: preserve-3d; }
.sk-check .rx-core { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #fff, #b9f6ff 28%, #18a8ff 62%, #0050c8 100%);
  box-shadow: 0 0 calc(10px + var(--p) * 26px) rgba(120, 230, 255, .95), 0 0 calc(22px + var(--p) * 60px) rgba(0, 140, 255, .7); animation: rx-beat calc(.7s - var(--p) * .45s) ease-in-out infinite alternate; }
@keyframes rx-beat { to { transform: scale(1.18); filter: brightness(1.35); } }
.sk-check .rx-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(80, 220, 255, .85); border-left-color: transparent; border-right-color: rgba(80, 220, 255, .25);
  box-shadow: 0 0 8px rgba(0, 200, 255, .5); animation-timing-function: linear; animation-iteration-count: infinite; animation-duration: calc(1.8s - var(--p) * 1.25s); }
.sk-check .rx-ring::after { content: ""; position: absolute; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #9ff3ff, 0 0 14px #3cf; }
.sk-check .rx-ring.r1 { animation-name: rx-r1; }
.sk-check .rx-ring.r2 { inset: 6px; animation-name: rx-r2; animation-direction: reverse; }
.sk-check .rx-ring.r3 { inset: -6px; animation-name: rx-r3; border-color: rgba(160, 120, 255, .8) transparent rgba(160, 120, 255, .25); }
@keyframes rx-r1 { from { transform: rotateX(70deg) rotateZ(0); } to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes rx-r2 { from { transform: rotateY(70deg) rotateZ(0); } to { transform: rotateY(70deg) rotateZ(360deg); } }
@keyframes rx-r3 { from { transform: rotateX(55deg) rotateY(40deg) rotateZ(0); } to { transform: rotateX(55deg) rotateY(40deg) rotateZ(360deg); } }
.sk-check .rx-wave { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; opacity: 0; pointer-events: none; }
.sk-check .rx-hud { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); text-align: left; }
.sk-check .rx-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sk-check .rx-pct { font-size: 1.7rem; line-height: 1; font-weight: 900; color: #e8fbff; text-shadow: 0 0 10px rgba(0, 200, 255, .9); font-variant-numeric: tabular-nums; }
.sk-check .rx-label { font-size: .68rem; letter-spacing: .2em; color: rgba(160, 225, 255, .75); }
.sk-check .rx-bar { height: 9px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(0, 200, 255, .14) 0 8px, transparent 8px 10px); overflow: hidden; border: 1px solid rgba(0, 200, 255, .3); }
.sk-check .rx-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #0a84ff, #3cf 60%, #e8fbff); box-shadow: 0 0 10px #3cf;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 10px); mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 10px); }
.sk-check .rx-warn { font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: #ffcf3d; text-shadow: 0 0 8px rgba(255, 180, 0, .8); opacity: 0; }
@keyframes rx-alarm { 50% { opacity: .2; } }
@keyframes rx-tremble { 0%, 100% { transform: none; } 25% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, -1px); } }
.sk-check .rx.hot { animation: rx-tremble .12s linear infinite; border-color: rgba(255, 200, 80, .8); box-shadow: inset 0 0 40px rgba(255, 160, 40, .35), 0 0 26px rgba(255, 170, 40, .55); }
.sk-check .rx.hot .rx-warn { opacity: 1; animation: rx-alarm .5s steps(1) infinite; }
.sk-check .rx.hot .rx-core { background: radial-gradient(circle at 40% 38%, #fff, #fff4c2 30%, #ffb02e 65%, #ff5a00 100%); box-shadow: 0 0 30px rgba(255, 220, 120, .95), 0 0 80px rgba(255, 140, 0, .7); }
.sk-check .rx.hot .rx-ring { border-top-color: rgba(255, 220, 140, .95); border-bottom-color: rgba(255, 220, 140, .95); }
.sk-check .rx.hot .rx-bar i { background: linear-gradient(90deg, #3cf, #ffe98a 60%, #fff); box-shadow: 0 0 12px #ffd36b; }
.sk-check .rx.boom { animation: none; }
.sk-check .rx.boom .rx-core { animation: rx-flare .55s ease-out forwards; }
@keyframes rx-flare { 40% { transform: scale(3.2); filter: brightness(2.2); } 100% { transform: scale(1.4); opacity: .3; } }
.sk-check .rx.boom .rx-wave { animation: rx-wave .6s ease-out forwards; }
@keyframes rx-wave { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(12); border-width: 1px; } }
.sk-check .rx.boom::after { content: ""; position: absolute; inset: 0; z-index: 3; background: radial-gradient(circle at 58px 50%, #fff, rgba(255, 255, 255, .6) 30%, transparent 70%); animation: sk-fadeout .55s ease-out forwards; pointer-events: none; }
/* примерка в инвентаре: сцена под реактор подстраивает высоту */
.anim-stage:has(.sk-check[data-k="reactor"]) { height: auto; min-height: 120px; padding: 8px; align-content: center; }
.anim-stage .sk-check[data-k="reactor"] { width: 100%; }
@media (max-width: 640px) { .sk-check .rx { gap: 12px; padding: 0 12px; } .sk-check .rx-pct { font-size: 1.35rem; } .sk-check .rx-label { letter-spacing: .1em; } }

/* решение / ошибка: крупные элементы поверх страницы */
.sk-over { position: fixed; inset: 0; z-index: 96; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.sk-bigcheck svg { width: min(40vw, 260px); height: auto; filter: drop-shadow(0 6px 20px rgba(29, 138, 78, .5)); }
.sk-bigcheck path { fill: none; stroke: #1fc96a; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: sk-draw .5s .05s ease-out forwards; }
.sk-bigcheck circle { fill: rgba(31, 201, 106, .12); stroke: #1fc96a; stroke-width: 6; transform-origin: center; animation: sk-popin .35s ease-out; }
@keyframes sk-draw { to { stroke-dashoffset: 0; } }
@keyframes sk-popin { from { transform: scale(.3); opacity: 0; } }
.sk-fade { animation: sk-fadeout .5s ease-in forwards; }
@keyframes sk-fadeout { to { opacity: 0; } }
.sk-stamp { font: 900 clamp(48px, 12vw, 130px)/1 system-ui, sans-serif; color: #e01b1b; border: .08em solid #e01b1b; border-radius: .15em; padding: .05em .25em; letter-spacing: .05em; transform: rotate(-14deg); animation: sk-stampin .35s cubic-bezier(.2, 1.6, .5, 1) both; mix-blend-mode: multiply; opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.25'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes sk-stampin { from { transform: rotate(-14deg) scale(3); opacity: 0; } }
@media (prefers-color-scheme: dark) { .sk-stamp { mix-blend-mode: normal; } }
.sk-levelup { position: relative; display: grid; place-items: center; }
.sk-levelup .rays { position: absolute; width: 520px; height: 520px; background: repeating-conic-gradient(rgba(255, 210, 60, .35) 0 10deg, transparent 10deg 20deg); border-radius: 50%; -webkit-mask: radial-gradient(circle, #000 20%, transparent 65%); mask: radial-gradient(circle, #000 20%, transparent 65%); animation: sk-rot 6s linear infinite; }
.sk-levelup b { position: relative; font: 900 clamp(40px, 9vw, 96px)/1 system-ui, sans-serif; background: linear-gradient(180deg, #fff6b0, #ffc400 50%, #d97b00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #8a4b00) drop-shadow(0 0 20px rgba(255, 196, 0, .6)); animation: sk-rise 1.6s ease-out both; }
@keyframes sk-rise { 0% { transform: translateY(80px) scale(.6); opacity: 0; } 25% { transform: translateY(0) scale(1.1); opacity: 1; } 35% { transform: scale(1); } 100% { transform: translateY(-30px); } }
.sk-rocket { position: absolute; font-size: 64px; left: 50%; bottom: -80px; animation: sk-rocket 1.8s cubic-bezier(.5, 0, .9, .6) forwards; }
@keyframes sk-rocket { 0% { transform: translate(-50%, 0) rotate(-45deg); } 15% { transform: translate(-50%, -18vh) rotate(-45deg); } 100% { transform: translate(20vw, -130vh) rotate(-30deg); } }
.sk-flash { position: fixed; inset: 0; background: #fff; animation: sk-fadeout .7s ease-out forwards; }
.sk-shock { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .9); box-shadow: 0 0 30px rgba(120, 200, 255, .9), inset 0 0 30px rgba(120, 200, 255, .9); animation: sk-shockwave 1.1s ease-out forwards; }
@keyframes sk-shockwave { to { transform: scale(30); opacity: 0; } }
.sk-banner { font: 900 clamp(40px, 10vw, 110px)/1 system-ui, sans-serif; letter-spacing: .08em; background: linear-gradient(180deg, #fff7c2, #ffcf33 45%, #b8860b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #6b4a00) drop-shadow(0 0 30px rgba(255, 200, 40, .7)); animation: sk-popin .5s cubic-bezier(.2, 1.6, .5, 1); }
.sk-redflash { position: fixed; inset: 0; background: radial-gradient(circle, transparent 30%, rgba(255, 0, 0, .45)); animation: sk-fadeout .6s ease-out forwards; }
@keyframes sk-wobble { 0%, 100% { transform: none; } 15% { transform: rotate(-4deg); } 30% { transform: rotate(3deg); } 45% { transform: rotate(-2deg); } 60% { transform: rotate(1deg); } }
.sk-wobble { animation: sk-wobble .8s ease-in-out; transform-origin: 50% 0; }
@keyframes sk-glitchbox { 0%, 100% { clip-path: none; transform: none; filter: none; } 10% { clip-path: inset(10% 0 60% 0); transform: translateX(-8px); filter: hue-rotate(90deg); } 20% { clip-path: inset(50% 0 20% 0); transform: translateX(8px); } 30% { clip-path: inset(0 0 85% 0); transform: translateX(-4px); filter: invert(1); } 40% { clip-path: none; transform: none; filter: none; } 55% { clip-path: inset(70% 0 5% 0); transform: translateX(6px); filter: hue-rotate(-90deg); } 65% { clip-path: none; transform: none; filter: none; } }
.sk-glitch { animation: sk-glitchbox .7s steps(1) 2; }
.sk-crack { position: absolute; inset: 0; z-index: 7; pointer-events: none; animation: sk-fadeout 1.6s 1s forwards; }
.sk-crack path { fill: none; stroke: rgba(255, 255, 255, .95); stroke-width: 2.5; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 2px rgba(0, 0, 0, .6)); stroke-dasharray: 600; stroke-dashoffset: 600; animation: sk-draw .25s ease-out forwards; }
.sk-boom { font-size: 140px; animation: sk-boompop .7s ease-out forwards; }
@keyframes sk-boompop { 0% { transform: scale(.2); opacity: 1; } 40% { transform: scale(1.3); } 100% { transform: scale(1.6); opacity: 0; } }
.sk-static { position: absolute; inset: 0; z-index: 7; pointer-events: none; mix-blend-mode: hard-light; opacity: .8; }
.sk-bsod { position: fixed; inset: 0; background: #0078d7; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 8vw; font: 20px/1.5 "Segoe UI", system-ui, sans-serif; pointer-events: auto; cursor: pointer; animation: sk-popin .15s; }
.sk-bsod big { font-size: 110px; line-height: 1; margin-bottom: 24px; }
.sk-bsod small { opacity: .8; margin-top: 18px; font-size: 14px; }
.sk-gameover { position: fixed; inset: 0; background: rgba(0, 0, 0, .78); display: grid; place-items: center; text-align: center; }
.sk-gameover b { font: 40px/1.4 "sk-pixel", monospace; color: #ff2a2a; text-shadow: 4px 4px 0 #5a0000; animation: sk-blink .5s steps(1) infinite; }
.sk-gameover small { display: block; font: 12px "sk-pixel", monospace; color: #fff; margin-top: 18px; }

/* ---------- инвентарь */
.inv-head { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; margin-bottom: 18px; }
.case-box { flex: 1 1 320px; display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 14px; color: #fff; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .15), transparent 50%), linear-gradient(135deg, #2b1a5e, #6b2dbd 55%, #c2378d); box-shadow: var(--shadow); }
.case-box .case-icon { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.case-box.has .case-icon { animation: sk-casebob 1.6s ease-in-out infinite; }
@keyframes sk-casebob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.case-box h2 { margin: 0 0 2px; color: #fff; font-size: 1.3rem; }
.case-box p { margin: 0 0 10px; opacity: .85; font-size: .9rem; }
.case-box .btn { background: #ffd43b; border-color: #ffd43b; color: #2b1a5e; }
.case-box .btn:hover { background: #ffe066; border-color: #ffe066; }
.case-box .btn:disabled { background: rgba(255, 255, 255, .25); border-color: transparent; color: #fff; }
.odds { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: .85rem; box-shadow: var(--shadow); }
.odds table { width: 100%; border-collapse: collapse; }
.odds td { padding: 2px 0; }
.odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.rdot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.slot-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.slot-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.slot-tab .ic { font-weight: 700; min-width: 1.2em; text-align: center; }
.slot-tab small { color: var(--muted); font-variant-numeric: tabular-nums; }
.slot-tab.active { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.slot-tab.active small { color: inherit; opacity: .8; }
.slot-tab.on::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.skin-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.skin-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--r); box-shadow: var(--shadow); min-width: 0; }
.skin-card.equipped { outline: 2px solid var(--ok); outline-offset: 1px; }
.skin-card.locked { opacity: .55; }
.skin-card.locked .skin-preview { filter: grayscale(1) blur(1.5px); pointer-events: none; }
.skin-card[data-r="legendary"], .skin-card[data-r="mythic"], .skin-card[data-r="secret"] { background: linear-gradient(160deg, color-mix(in srgb, var(--r) 14%, var(--surface)), var(--surface) 50%); }
.skin-card .nm { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.skin-card .nm small { font-weight: 600; color: var(--r); font-size: .75rem; white-space: nowrap; }
.skin-card .ds { color: var(--muted); font-size: .85rem; margin: 0; }
.skin-card .row { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.skin-card .cnt { margin-left: auto; color: var(--muted); font-size: .8rem; }
.skin-card .sk-code { min-height: 0; font-size: 13px; padding: 8px 10px; }
.skin-card .output { min-height: 0; max-height: none; font-size: 13px; padding: 8px 10px; }
.skin-preview .verdict { font-size: .9rem; }
.anim-stage { height: 120px; border-radius: var(--radius); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 2.2rem; position: relative; overflow: hidden; background: var(--surface-2); }
.anim-stage .sk-code { position: absolute; inset: 0; min-height: 0; font-size: 13px; }
.nick-demo { padding: 14px 10px; font-size: 1.05rem; text-align: center; border-radius: var(--radius); background: var(--surface-2); }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #e5484d; color: #fff; font-size: .7rem; font-weight: 700; vertical-align: 1px; }
.case-drop { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: linear-gradient(90deg, #2b1a5e, #6b2dbd); color: #fff; font-weight: 600; animation: sk-popin .4s cubic-bezier(.2, 1.6, .5, 1); }
.case-drop .btn { margin-left: auto; background: #ffd43b; border-color: #ffd43b; color: #2b1a5e; }

/* предметы инвентаря, как в CS: сетка плиток, фильтры, карточка предмета */
.inv-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 4px 0 14px; }
.inv-pick { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--muted); }
.inv-pick select { min-height: 36px; padding: 4px 10px; font: inherit; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; max-width: 100%; }
.inv-count { margin-left: auto; align-self: center; }
.inv-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.inv-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 10px 8px 9px; border-radius: 10px; cursor: pointer; font: inherit; color: var(--text); text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--r) 16%, var(--surface)), var(--surface) 75%); border: 1px solid var(--line); border-bottom: 4px solid var(--r); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.inv-item:hover, .inv-item:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in srgb, var(--r) 40%, transparent); }
.inv-item.on { outline: 2px solid var(--ok); outline-offset: 1px; }
.inv-item[data-r="legendary"], .inv-item[data-r="mythic"], .inv-item[data-r="secret"] { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--r) 32%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--r) 16%, var(--surface)), var(--surface) 75%); }
.inv-ic { height: 58px; width: 100%; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: var(--r); overflow: hidden; }
.inv-ic .sk-title { font-size: .75rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-font { font-size: 34px; font-weight: 400; }
.inv-nick { font-size: 1.05rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-nm { font-weight: 700; font-size: .85rem; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; }
.inv-sl { font-size: .72rem; color: var(--muted); }
.inv-on { position: absolute; top: 6px; left: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .7rem; line-height: 18px; }
.inv-new { position: absolute; top: 6px; right: 6px; background: #ffd43b; color: #2b1a5e; font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 8px; }
.inv-empty { padding: 36px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.inv-empty .ic { font-size: 48px; }
.inv-modal { position: fixed; inset: 0; z-index: 90; background: rgba(8, 6, 20, .6); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.inv-detail { width: min(460px, 100%); padding: 16px; animation: sk-popin .25s cubic-bezier(.2, 1.4, .5, 1); }
.inv-detail .nm { font-size: 1.15rem; padding-right: 28px; }
.inv-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 6px; }
.inv-x:hover { background: var(--surface-2); color: var(--text); }
/* кейсы коллекций (картинки — public/img/cases/*.svg) */
.case-img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.case-stack { position: relative; flex: none; width: 104px; height: 80px; }
.case-stack .case-img { position: absolute; width: 84px; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.case-stack .case-img:nth-last-child(1) { left: 20px; top: 14px; }
.case-stack .case-img:nth-last-child(2) { left: 10px; top: 6px; transform: rotate(-6deg); opacity: .9; }
.case-stack .case-img:nth-last-child(3) { left: 0; top: 0; transform: rotate(-12deg); opacity: .75; }
.case-box.has .case-stack .case-img:nth-last-child(1) { animation: sk-casebob 1.6s ease-in-out infinite; }
.inv-case { background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--r) 30%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--r) 12%, var(--surface)), var(--surface) 75%); }
.inv-case .inv-ic { height: 70px; }
.inv-case .case-img { width: auto; height: 66px; max-width: 100%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); transition: transform .15s; }
.inv-case:hover .case-img { transform: scale(1.08) rotate(-3deg); }
.inv-case-art { display: grid; place-items: center; padding: 8px 0; border-radius: var(--radius); background: radial-gradient(circle, color-mix(in srgb, var(--r) 35%, transparent), transparent 70%); }
.case-img.big { width: min(260px, 80%); height: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .4)); animation: sk-casebob 2.2s ease-in-out infinite; }
.roll-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.case-img.roll-case { width: 64px; height: auto; flex: none; }
.case-drop-img { width: 44px; height: auto; flex: none; }
/* ограниченные коллекции (Хеллоуин и т.п.) */
.case-box .case-event { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; padding: 4px 10px 4px 4px; border-radius: 8px; background: rgba(0, 0, 0, .25); font-weight: 700; opacity: 1; }
.case-event-img { width: 38px; height: auto; flex: none; }
.case-limit { margin: 0; padding: 6px 10px; border-radius: 8px; font-size: .85rem; background: color-mix(in srgb, var(--r) 16%, transparent); border: 1px solid color-mix(in srgb, var(--r) 45%, transparent); }
.inv-lim { position: absolute; top: 6px; left: 7px; font-size: .8rem; line-height: 1; }
/* содержимое кейса под ним, как в CS */
.inv-case-detail { width: min(780px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.inv-case-detail .case-img.big { width: min(220px, 70%); }
.case-contents { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.cc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.cc-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.cc-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 6px 7px; border-radius: 8px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--r) 14%, var(--surface)), var(--surface) 75%); border: 1px solid var(--line); border-bottom: 3px solid var(--r); }
button.cc-item { font: inherit; color: var(--text); cursor: pointer; transition: transform .12s, box-shadow .12s; }
button.cc-item:hover, button.cc-item:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 14px color-mix(in srgb, var(--r) 40%, transparent); }
.inv-back { align-self: flex-start; margin: -4px 0 -2px; padding: 2px 8px; border: 0; border-radius: 6px; background: none; color: var(--accent); font: inherit; font-size: .85rem; cursor: pointer; }
.inv-back:hover { background: var(--surface-2); }
/* выше окна кейса (90), но ниже слоёв эффектов .sk-fx (95) и .sk-over (96) — иначе частицы примерки уходят под окно */
.inv-peek { z-index: 92; background: rgba(8, 6, 20, .45); }
.inv-peek .inv-detail { box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.cc-item .inv-ic { height: 44px; font-size: 24px; }
.cc-item .inv-font { font-size: 26px; }
.cc-item .inv-nick { font-size: .9rem; }
.cc-item .inv-nm { font-size: .78rem; }
.cc-item .inv-sl { font-size: .66rem; }
.cc-item.have { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); border-bottom-color: var(--r); }
.cc-item .inv-on { top: 5px; left: 5px; width: 16px; height: 16px; line-height: 16px; font-size: .62rem; }
.cc-cnt { position: absolute; top: 5px; right: 6px; font-size: .66rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-item.hidden { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--r) 35%, transparent), transparent 70%), var(--surface); }
.cc-item.hidden .inv-ic { color: var(--r); font-size: 30px; text-shadow: 0 0 12px var(--r); }
@media (max-width: 640px) { .cc-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }
@media (max-width: 640px) { .inv-case .inv-ic { height: 58px; } .inv-case .case-img { height: 54px; } .case-stack { width: 84px; height: 66px; } .case-stack .case-img { width: 66px; } }
@media (max-width: 640px) { .inv-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; } .inv-ic { height: 48px; font-size: 26px; } .inv-count { margin-left: 0; } }

/* рулетка открытия кейса */
/* z-index 94: выше окон инвентаря (90–93), но ниже слоёв эффектов (.sk-fx 95, .sk-over 96) — иначе праздник и анимации
   выпавшего скина рисуются под затемнением */
.roll-overlay { position: fixed; inset: 0; z-index: 94; background: rgba(8, 6, 20, .82); display: grid; grid-template-columns: minmax(0, 900px); justify-content: center; align-content: center; padding: 16px; overflow-y: auto; }
/* предпросмотр выпавшего скина под названием */
.roll-preview { width: min(440px, 100%); margin: 14px auto 0; display: grid; gap: 8px; justify-items: center; text-align: left; color: var(--text); }
.roll-preview > :first-child { width: 100%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--r) 55%, transparent), 0 0 24px color-mix(in srgb, var(--r) 35%, transparent); border-radius: var(--radius); animation: sk-popin .4s .15s cubic-bezier(.2, 1.4, .5, 1) both; }
.roll-box { min-width: 0; text-align: center; color: #fff; }
.roll-window { position: relative; overflow: hidden; height: 150px; border-radius: 12px; background: #15122a; border: 1px solid rgba(255, 255, 255, .15); box-shadow: inset 0 0 40px rgba(0, 0, 0, .7); }
.roll-window::before, .roll-window::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 2; pointer-events: none; }
.roll-window::before { left: 0; background: linear-gradient(90deg, #15122a, transparent); }
.roll-window::after { right: 0; background: linear-gradient(-90deg, #15122a, transparent); }
.roll-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #ffd43b; z-index: 3; box-shadow: 0 0 10px #ffd43b; }
.roll-marker::before, .roll-marker::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 9px solid transparent; }
.roll-marker::before { top: 0; border-top-color: #ffd43b; }
.roll-marker::after { bottom: 0; border-bottom-color: #ffd43b; }
.roll-strip { display: flex; gap: 8px; padding: 12px 0; will-change: transform; }
.roll-item { flex: none; width: 140px; height: 126px; border-radius: 8px; background: linear-gradient(180deg, #2a2545, #1d1a33); border-bottom: 5px solid var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; }
.roll-item .ic { font-size: 30px; line-height: 1.1; height: 40px; display: grid; place-items: center; font-weight: 800; color: var(--r); }
.roll-item .n { font-size: .78rem; line-height: 1.2; color: #e9e6ff; }
.roll-item.empty { --r: #555; opacity: .8; }
.roll-result { margin-top: 18px; min-height: 120px; }
.roll-result .win { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; padding: 14px 28px; border-radius: 14px; background: radial-gradient(circle, color-mix(in srgb, var(--r) 45%, transparent), transparent 70%); animation: sk-popin .4s cubic-bezier(.2, 1.6, .5, 1); }
.roll-result .win b { font-size: 1.5rem; }
.roll-result .win small { color: var(--r); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.roll-result .new { background: #ffd43b; color: #2b1a5e; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 10px; }
.roll-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .roll-item { width: 108px; height: 110px; } .roll-window { height: 134px; } .case-box .case-icon { font-size: 48px; } }
@media (prefers-reduced-motion: reduce) { body[data-sk-bg]::before { animation: none !important; } }

/* тёмные фоны включают тёмные цвета всего сайта (иначе заголовки на фоне не прочитать) */
body:is([data-sk-bg="blueprint"], [data-sk-bg="stars"], [data-sk-bg="matrix"], [data-sk-bg="space"], [data-sk-bg="graveyard"], [data-sk-bg="rainycity"], [data-sk-bg^="c1"]) {
  --bg: #0d1220; --surface: #161d2b; --surface-2: #212a3a; --text: #e3e8ef; --muted: #97a3b3; --line: #2e3844;
  --accent: #4f9be0; --accent-2: #6aaeea; --accent-text: #0d1117; --ok: #4cc38a; --ok-bg: #173325; --fail: #f07166; --fail-bg: #3a1c1a;
  --warn: #e3b341; --warn-bg: #3a3017; --code-bg: #151a21; --shadow: none;
  --c-keyword: #d19bff; --c-def: #79b8ff; --c-string: #85e89d; --c-number: #ffab70; --c-comment: #6a7585; --c-builtin: #56d4dd; --c-operator: #97a3b3;
  color-scheme: dark; background: var(--bg); color: var(--text);
}
body[data-sk-bg="matrix"] { --bg: #010a03; }

/* ---------- контракт обмена (public/js/tradeup.js) */
.tu-entry { flex: 1 1 260px; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; color: #2b2116; box-shadow: var(--shadow);
  background: radial-gradient(ellipse at 15% 10%, rgba(255, 255, 255, .55), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(150, 110, 50, .28), transparent 60%), linear-gradient(135deg, #f6ecd2, #e6d2a4); border: 1px solid #cdb27a; }
.tu-entry-ic { font-size: 52px; line-height: 1; transform: rotate(-8deg); filter: drop-shadow(0 6px 8px rgba(80, 50, 10, .35)); }
.tu-entry h2 { margin: 0 0 2px; font: 700 1.2rem/1.2 Georgia, "Times New Roman", serif; color: #4a2f10; letter-spacing: .02em; }
.tu-entry p { margin: 0 0 10px; font-size: .85rem; color: #5a4528; }
.tu-entry .btn, .tu-sign-btn { background: linear-gradient(180deg, #ffe38f, #f2b400); border-color: #d99e00; color: #2a1a00; font-weight: 800; box-shadow: 0 4px 14px rgba(242, 180, 0, .35); }
.tu-entry .btn:hover:not(:disabled), .tu-sign-btn:hover:not(:disabled) { filter: brightness(1.06); }
.tu-entry .btn:disabled, .tu-sign-btn:disabled { filter: grayscale(1); opacity: .5; box-shadow: none; cursor: not-allowed; }

.tu-overlay { position: fixed; inset: 0; z-index: 93; overflow-y: auto; display: grid; justify-items: center; align-items: start; padding: 24px 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 200, 90, .14), transparent 60%), rgba(8, 6, 18, .88); }
.tu-box { --surface: #221d38; --surface-2: #2b2546; --line: rgba(255, 255, 255, .12); --text: #ece8ff; --muted: #a9a2c8;
  position: relative; width: min(980px, 100%); margin: auto 0; padding: 18px 20px 20px; border-radius: 18px; color: var(--text); overflow: hidden;
  background: radial-gradient(ellipse at 50% -20%, rgba(255, 210, 120, .12), transparent 55%), linear-gradient(180deg, #1d1931, #141126);
  border: 1px solid rgba(255, 210, 120, .28); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); animation: sk-popin .3s cubic-bezier(.2, 1.3, .5, 1); }
.tu-box .muted { color: var(--muted); }
.tu-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.tu-head h2 { margin: 0; font: 800 1.6rem/1.15 Georgia, "Times New Roman", serif; letter-spacing: .03em; background: linear-gradient(180deg, #fff3c4, #f0b429 60%, #b77900); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .4)); }
.tu-head p { margin: 2px 0 0; }
.tu-head .inv-x { position: static; color: var(--muted); }
.tu-sub { margin: 16px 0 8px; font-size: 1rem; color: #ddd5ff; }
.tu-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }
.tu-actions .spacer { flex: 1; }
.tu-actions.center { justify-content: center; }

/* полоса контракта: 5 слотов → результат */
.tu-strip { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px dashed rgba(255, 210, 120, .32); }
.tu-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tu-slot { position: relative; height: 122px; padding: 0; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .03); display: grid; place-items: center; font: inherit; color: inherit; cursor: pointer; }
.tu-slot.empty { cursor: default; }
.tu-slot.empty span { font: 800 1.7rem/1 Georgia, serif; color: rgba(255, 255, 255, .16); }
.tu-slot:not(.empty) { border: none; animation: tu-drop .35s cubic-bezier(.2, 1.5, .5, 1); }
.tu-slot .tu-card { width: 100%; height: 100%; justify-content: center; }
.tu-x { position: absolute; top: 4px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; line-height: 20px; opacity: 0; transition: opacity .15s; }
.tu-slot:hover .tu-x, .tu-slot:focus-visible .tu-x { opacity: 1; }
@keyframes tu-drop { from { transform: translateY(-14px) scale(.85); opacity: 0; } }
.tu-arrow { font-size: 30px; color: #ffd36b; text-shadow: 0 0 12px rgba(255, 200, 80, .6); animation: tu-nudge 1.2s ease-in-out infinite; }
@keyframes tu-nudge { 50% { transform: translateX(5px); } }
.tu-target { width: 124px; height: 122px; border-radius: 14px; border: 2px dashed rgba(255, 255, 255, .2); display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; }
.tu-target .tu-q { font: 900 46px/1 Georgia, serif; color: rgba(255, 255, 255, .22); }
.tu-target .tu-nm { font-size: .78rem; font-weight: 700; color: var(--muted); }
.tu-target.on { border: 2px solid var(--r); background: radial-gradient(circle, color-mix(in srgb, var(--r) 38%, transparent), transparent 72%); animation: tu-glow 1.6s ease-in-out infinite alternate; }
.tu-target.on .tu-q, .tu-target.on .tu-nm { color: var(--r); }
@keyframes tu-glow { from { box-shadow: 0 0 10px color-mix(in srgb, var(--r) 40%, transparent); } to { box-shadow: 0 0 28px color-mix(in srgb, var(--r) 75%, transparent); } }
.tu-status { margin: 10px 2px 0; }
.tu-rchip { display: inline-block; padding: 1px 10px; border-radius: 20px; font-size: .85rem; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--r) 28%, transparent); border: 1px solid var(--r); }

/* карточка предмета внутри контракта */
.tu-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 6px 7px; border-radius: 10px; text-align: center; color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--r) 22%, #1f1a34), #1a1629 78%); border: 1px solid rgba(255, 255, 255, .08); border-bottom: 3px solid var(--r); }
.tu-ic { height: 44px; width: 100%; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: var(--r); overflow: hidden; }
.tu-ic .inv-font { font-size: 26px; }
.tu-ic .inv-nick { font-size: .9rem; }
.tu-ic .sk-title { font-size: .68rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tu-nm { font-size: .78rem; font-weight: 700; line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; }
.tu-sl { font-size: .66rem; color: var(--muted); }
.tu-on { position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .6rem; line-height: 16px; text-align: center; }

.tu-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tu-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--text); font: inherit; font-size: .82rem; cursor: pointer; }
.tu-chip i { width: 9px; height: 9px; border-radius: 2px; background: var(--r); }
.tu-chip.on { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .4); }
.tu-chip.few { opacity: .55; }
.tu-grid, .tu-out-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.tu-pick { display: flex; position: relative; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 10px; transition: transform .12s, box-shadow .12s; }
.tu-pick:hover:not(:disabled), .tu-pick:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .4); }
.tu-pick:disabled { opacity: .45; cursor: not-allowed; }
.tu-pick > .tu-card, .tu-out-grid > .tu-card { flex: 1; justify-content: center; }
.tu-out { margin-top: 4px; }
.tu-chance .tu-pct { position: absolute; top: 4px; right: 5px; padding: 0 5px; border-radius: 6px; font-size: .7rem; color: #fff; background: rgba(0, 0, 0, .5); }
.tu-chance.have { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 70%, transparent); }
.tu-chance.hidden .tu-ic { font-size: 28px; text-shadow: 0 0 12px var(--r); }

/* бумага контракта */
.tu-stage { position: relative; min-height: 380px; display: grid; place-items: center; }
.tu-paper { position: relative; width: min(620px, 100%); padding: 30px 36px 24px; color: #2b2116; font-family: Georgia, "Times New Roman", serif; border-radius: 4px; transform: rotate(-.6deg);
  background: radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, .55), transparent 50%), radial-gradient(ellipse at 92% 95%, rgba(150, 110, 50, .28), transparent 60%), linear-gradient(135deg, #f7eed6, #e8d6ab);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55), inset 0 0 70px rgba(140, 100, 40, .32); animation: tu-paperin .55s cubic-bezier(.2, 1.2, .4, 1); }
.tu-paper::before { content: ""; position: absolute; inset: 10px; border: 3px double rgba(120, 80, 30, .45); pointer-events: none; }
@keyframes tu-paperin { from { transform: translateY(40px) rotate(4deg) scale(.9); opacity: 0; } }
.tu-ptitle { text-align: center; font-size: 1.45rem; font-weight: 700; letter-spacing: .28em; color: #4a2f10; }
.tu-no { display: block; text-align: center; margin: 2px 0 14px; font: 600 .9rem/1 Georgia, "Times New Roman", serif; color: #7a5a30; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.tu-paper p { margin: 8px 0; line-height: 1.5; }
.tu-list { margin: 6px 0 10px; padding-left: 26px; line-height: 1.55; }
.tu-list i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.tu-list small { color: #7a6448; }
.tu-foot { display: flex; gap: 22px; align-items: flex-end; margin-top: 16px; }
.tu-foot small { display: block; font: 700 .68rem/1.4 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a6a3a; }
.tu-date { white-space: nowrap; padding-bottom: 22px; font-style: italic; }
.tu-sigbox { flex: 1; min-width: 0; }
.tu-sigarea { position: relative; height: 112px; border-radius: 6px; background: rgba(255, 255, 255, .28); cursor: crosshair; touch-action: none; }
.tu-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; touch-action: none; }
.tu-sigline { position: absolute; left: 28px; right: 12px; bottom: 24px; border-bottom: 1.5px solid rgba(80, 50, 20, .55); }
.tu-sigx { position: absolute; left: 10px; bottom: 19px; color: rgba(80, 50, 20, .6); font-weight: 700; }
.tu-sign-hint { position: absolute; inset: 0 0 26px; display: grid; place-items: center; color: rgba(80, 50, 20, .5); font-style: italic; font-size: .92rem; pointer-events: none; }
.tu-seal { position: absolute; top: 16px; right: 22px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; transform: rotate(12deg);
  font: 800 1.1rem/1 Georgia, serif; color: #ffd9c8; background: radial-gradient(circle at 35% 35%, #e0504a, #9e1b16 70%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .35), inset 0 0 0 4px rgba(0, 0, 0, .15), inset 0 0 0 7px rgba(255, 255, 255, .12); }
.tu-stamp { position: absolute; right: 44px; bottom: 74px; z-index: 3; padding: 4px 14px; border: 4px solid #c0191f; border-radius: 8px; transform: rotate(-14deg);
  font: 900 2.2rem/1 system-ui, sans-serif; letter-spacing: .08em; color: #c0191f; opacity: .88; mix-blend-mode: multiply; animation: tu-stampin .35s cubic-bezier(.2, 1.6, .5, 1) both;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.25'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes tu-stampin { from { transform: rotate(-14deg) scale(3); opacity: 0; } }
.tu-thud { animation: tu-thud .35s ease-out; }
@keyframes tu-thud { 30% { transform: rotate(-.6deg) translateY(4px) scale(.985); } }
.tu-paper-out { animation: tu-paperout .7s cubic-bezier(.5, 0, .9, .5) forwards; }
@keyframes tu-paperout { to { transform: translateY(-60px) scale(.5) rotate(-10deg); opacity: 0; } }
.tu-skip { position: absolute; right: 16px; bottom: 16px; z-index: 4; }

/* воронка */
.tu-vortex { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.tu-vortex > * { grid-area: 1 / 1; }
.tu-rays { width: 360px; height: 360px; border-radius: 50%; background: repeating-conic-gradient(color-mix(in srgb, var(--r) 50%, transparent) 0 8deg, transparent 8deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 15%, transparent 66%); mask: radial-gradient(circle, #000 15%, transparent 66%); animation: sk-rot 2.5s linear infinite, tu-fadein 1.2s ease-in both; }
@keyframes tu-fadein { from { opacity: 0; } }
.tu-orb { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--r) 45%, transparent 72%); box-shadow: 0 0 40px var(--r), 0 0 90px var(--r); animation: tu-orb 2s ease-in forwards; }
@keyframes tu-orb { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.4); opacity: 1; } 100% { transform: scale(3.2); } }
/* Полёт карточек в воронку задаёт tradeup.js (spiral(), Web Animations): одно непрерывное движение без остановок.
   --rad — радиус кольца, откуда они стартуют. */
.tu-vortex { --rad: 150px; }
.tu-fly { width: 104px; opacity: 0; box-shadow: 0 0 18px color-mix(in srgb, var(--r) 60%, transparent); }
.tu-flash { position: absolute; inset: 0; z-index: 5; background: #fff; pointer-events: none; animation: sk-fadeout .7s ease-out forwards; }

/* результат: карточка переворачивается */
.tu-result { min-height: 420px; perspective: 1200px; }
.tu-win { position: relative; display: grid; place-items: center; }
.tu-win > * { grid-area: 1 / 1; }
.tu-win-rays { width: 540px; height: 540px; border-radius: 50%; background: repeating-conic-gradient(color-mix(in srgb, var(--r) 42%, transparent) 0 10deg, transparent 10deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%); mask: radial-gradient(circle, #000 18%, transparent 66%); opacity: 0; transition: opacity .8s .4s; animation: sk-rot 9s linear infinite; }
.tu-win.open .tu-win-rays { opacity: 1; }
.tu-flip { position: relative; width: 250px; height: 310px; transform-style: preserve-3d; transform: rotateY(180deg) scale(.55); transition: transform 1.1s cubic-bezier(.2, 1.25, .3, 1); }
.tu-win.open .tu-flip { transform: rotateY(0) scale(1); }
.tu-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center; border-radius: 18px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.tu-front { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--r) 40%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--r) 30%, #1d1930), #15122a 80%);
  border: 2px solid var(--r); box-shadow: 0 0 30px color-mix(in srgb, var(--r) 60%, transparent), 0 0 90px color-mix(in srgb, var(--r) 35%, transparent); }
.tu-front small { color: var(--r); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tu-front b { font-size: 1.35rem; line-height: 1.2; }
.tu-win-ic { height: 96px; width: 100%; display: grid; place-items: center; font-size: 54px; font-weight: 800; color: var(--r); }
.tu-win-ic .inv-font { font-size: 60px; }
.tu-win-ic .inv-nick { font-size: 1.5rem; }
.tu-win-ic .sk-title { font-size: 1rem; }
.tu-win:is([data-r="legendary"], [data-r="mythic"], [data-r="secret"]) .tu-front::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%); animation: tu-sheen 2.6s ease-in-out 1.2s infinite; }
@keyframes tu-sheen { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.tu-back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #2a2444 0 10px, #231e3a 10px 20px); border: 2px solid rgba(255, 210, 120, .4); }
.tu-back span { font: 900 86px/1 Georgia, serif; color: rgba(255, 210, 120, .35); }
.tu-new { background: #ffd43b; color: #2b1a5e; font-size: .74rem; font-weight: 800; padding: 2px 10px; border-radius: 10px; }

@media (max-width: 640px) {
  .tu-strip { grid-template-columns: 1fr; justify-items: center; }
  .tu-slots { width: 100%; gap: 6px; }
  .tu-slot { height: 96px; }
  .tu-slot .tu-card { padding: 6px 2px; }
  .tu-slot .tu-ic { height: 32px; font-size: 20px; }
  .tu-slot .tu-sl { display: none; }
  .tu-arrow { transform: rotate(90deg); animation: none; }
  .tu-target { width: 100%; height: 64px; grid-auto-flow: column; gap: 10px; }
  .tu-target .tu-q { font-size: 30px; }
  .tu-paper { padding: 24px 18px 18px; }
  .tu-seal { width: 44px; height: 44px; top: 12px; right: 12px; font-size: .9rem; }
  .tu-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .tu-date { padding-bottom: 0; }
  .tu-stamp { right: 20px; font-size: 1.7rem; }
  .tu-fly { width: 80px; }
  .tu-vortex { --rad: 112px; }
  .tu-head h2 { font-size: 1.3rem; }
}
.tu-hide { visibility: hidden; }
/* на время анимации и экрана результата высота окна закреплена (min-height ставит tradeup.js), сцена занимает остаток —
   иначе окно дёргается, когда содержимое меняется */
.tu-box.tu-locked { display: flex; flex-direction: column; }
.tu-box.tu-locked > .tu-stage { flex: 1; }
/* лучи за карточкой результата — вне потока, чтобы не раздували окно */
.tu-win > .tu-win-rays { position: absolute; left: 50%; top: 50%; margin: -270px 0 0 -270px; }
.tu-signed { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tu-sigimg { height: 34px; width: auto; padding: 2px 8px; border-radius: 6px; background: linear-gradient(135deg, #f7eed6, #e8d6ab); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transform: rotate(-2deg); }
/* выбор в контракт без прыжков: выбранные на месте с галочкой, неподходящие приглушены; шансы — строка одной высоты */
.tu-pick.sel { opacity: .8; box-shadow: 0 0 0 2px #ffd36b, 0 0 16px rgba(255, 211, 107, .35); }
.tu-sel { position: absolute; top: 4px; right: 5px; width: 20px; height: 20px; border-radius: 50%; background: #ffd36b; color: #2a1a00; font-size: .75rem; font-weight: 900; line-height: 20px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.tu-pick.off { opacity: .25; filter: grayscale(.85); cursor: not-allowed; }
.tu-chip.off { opacity: .4; }
.tu-status { min-height: 1.6em; }
.tu-out-grid { display: flex; gap: 8px; height: 132px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 8px; scrollbar-width: thin; }
.tu-out-grid > .tu-card { flex: 0 0 112px; }
.tu-out-empty { align-self: center; margin: 0 4px; }

/* ---------- База данных (коллекция sql, 2026-10-27; кейсы падают на sql.trufanov.moscow) */
@font-face { font-family: "sk-anonymous"; src: url(/fonts/skins/anonymous-pro-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-anonymous"; src: url(/fonts/skins/anonymous-pro-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "sk-dmmono"; src: url(/fonts/skins/dm-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-martian"; src: url(/fonts/skins/martian-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "sk-martian"; src: url(/fonts/skins/martian-mono-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
[data-sk-font="anonymous"] :is(.CodeMirror, .sk-code) { font-family: "sk-anonymous", var(--mono); font-size: 15px; }
[data-sk-font="dmmono"] :is(.CodeMirror, .sk-code) { font-family: "sk-dmmono", var(--mono); }
[data-sk-font="martian"] :is(.CodeMirror, .sk-code) { font-family: "sk-martian", var(--mono); font-size: 13px; letter-spacing: -.02em; }

[data-sk-syntax="ledger"] { --sk-bg: #f3f8ee; --sk-fg: #22341f; --sk-gut: #e3eed9; --sk-ln: #7f9c6d; --c-keyword: #1f6f3a; --c-def: #7a3b00; --c-string: #8a5a00; --c-number: #b3261e; --c-comment: #93a585; --c-builtin: #2a5d8f; --c-operator: #3d5a35; --sk-sel: rgba(31, 111, 58, .18); }
[data-sk-syntax="ledger"] :is(.CodeMirror-lines, .sk-code) { background-image: linear-gradient(rgba(31, 111, 58, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 111, 58, .09) 1px, transparent 1px); background-size: 100% 1.5em, 2.4em 100%; }
[data-sk-syntax="elephant"] { --sk-bg: #1d2633; --sk-fg: #d7e1ec; --sk-gut: #18202b; --sk-ln: #52667f; --c-keyword: #6fa8dc; --c-def: #f6c177; --c-string: #a3d9a5; --c-number: #e8a87c; --c-comment: #637790; --c-builtin: #9ccfd8; --c-operator: #8fb3d9; --sk-sel: rgba(111, 168, 220, .25); }
[data-sk-syntax="elephant"] .cm-keyword { font-weight: 700; }
@keyframes sk-dcled { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
[data-sk-syntax="datacenter"] { --sk-bg: #05080c; --sk-fg: #cfe8ff; --sk-gut: #020406; --sk-ln: #2c4a63; --c-keyword: #39d0ff; --c-def: #7dff9b; --c-string: #ffb547; --c-number: #ff6b9d; --c-comment: #3c5a72; --c-builtin: #a98bff; --c-operator: #39d0ff; --sk-sel: rgba(57, 208, 255, .2); }
/* огоньки серверов в полосе номеров строк */
[data-sk-syntax="datacenter"] .CodeMirror-gutters { background-image: radial-gradient(circle, #39ff7a 1.3px, transparent 2px), radial-gradient(circle, #39d0ff 1.3px, transparent 2px); background-size: 9px 13px, 9px 21px; background-position: 2px 3px, 2px 9px; background-repeat: repeat-y; animation: sk-dcled 1.1s steps(2) infinite; }
[data-sk-syntax="datacenter"] :is(.cm-keyword, .cm-def, .cm-call) { text-shadow: 0 0 6px currentColor; }

[data-sk-func="aggregate"] :is(.cm-def, .cm-call) { font-weight: 800; color: #0fa77f; text-decoration: underline dotted 2px; text-underline-offset: 3px; }
[data-sk-func="primary"] :is(.cm-def, .cm-call) { position: relative; font-weight: 800; background: linear-gradient(100deg, #8a6d1f, #f6e27a 35%, #fffbe0 50%, #d4a017 65%, #8a6d1f) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sk-sweep 3s linear infinite; }
[data-sk-func="primary"] :is(.cm-def, .cm-call)::after { content: "🔑"; position: absolute; left: 0; top: -.62em; font-size: .6em; line-height: 1; pointer-events: none; -webkit-text-fill-color: initial; }

[data-sk-cursor="cell"] :is(.CodeMirror-cursor, .sk-caret) { border-left: none; width: .62em; outline: 2px solid #0fa77f; outline-offset: -1px; background: rgba(15, 167, 127, .12); }
[data-sk-cursor="key"] :is(.CodeMirror-cursor, .sk-caret) { border-left: 2px solid #e4ae39; }
[data-sk-cursor="key"] :is(.CodeMirror-cursor, .sk-caret)::after { content: "🔑"; position: absolute; left: -.45em; top: -.95em; font-size: .75em; line-height: 1; }

[data-sk-frame="punchcard"] { border: 10px solid #e9dcb5; border-image: radial-gradient(circle, #6b5a34 2px, #e9dcb5 2.6px) 10 / 10px round; box-shadow: 0 2px 0 #c9b98a, 0 6px 14px rgba(0, 0, 0, .18); }
@keyframes sk-stream { to { background-position: 0 0, 60px 0; } }
[data-sk-frame="datastream"] { border: 3px solid transparent; background: linear-gradient(var(--surface) 0 0) padding-box, repeating-linear-gradient(90deg, #3ecf8e 0 14px, transparent 14px 22px, #39d0ff 22px 30px, transparent 30px 40px) 0 0 / 60px 100% border-box; box-shadow: 0 0 10px rgba(62, 207, 142, .45); animation: sk-stream 1s linear infinite; }

.output[data-sk-term="sheet"] { background: #fff linear-gradient(#d4e7dc 1px, transparent 1px) 0 0 / 100% 1.55em; color: #1d2b22; border: 1px solid #b7d3c1; font-family: Calibri, "Segoe UI", system-ui, sans-serif; }
.output[data-sk-term="sheet"] .err { color: #b3261e; }
.output[data-sk-term="sheet"] .note-line.muted, .output[data-sk-term="sheet"].empty { color: #5f7a68; }
@keyframes sk-mf { 0%, 100% { opacity: 1; } 50% { opacity: .93; } }
.output[data-sk-term="mainframe"] { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px), #021208; color: #33ff99; text-shadow: 0 0 4px #33ff99; border: 2px solid #0d3b22; border-radius: 4px; font-family: "sk-vt323", var(--mono); font-size: 18px; line-height: 1.25; animation: sk-mf .2s infinite; }
.output[data-sk-term="mainframe"] .err { color: #ffcc33; text-shadow: 0 0 4px #ffcc33; }

[data-sk-bg="binary"]::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='96' font-family='monospace' font-size='13'%3E%3Cg fill='%233ecf8e' fill-opacity='.22'%3E%3Ctext x='4' y='16'%3E1011%3C/text%3E%3Ctext x='64' y='40'%3E0100%3C/text%3E%3Ctext x='18' y='64'%3E1101%3C/text%3E%3Ctext x='70' y='88'%3E0011%3C/text%3E%3C/g%3E%3C/svg%3E");
}
[data-sk-bg="erd"]::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='170'%3E%3Cg fill='none' stroke='%234f9be0' stroke-opacity='.3' stroke-width='1.5'%3E%3Crect x='14' y='14' width='70' height='52' rx='4'/%3E%3Cpath d='M14 28h70M14 40h70M14 52h70'/%3E%3Crect x='150' y='90' width='70' height='52' rx='4'/%3E%3Cpath d='M150 104h70M150 116h70M150 128h70M84 40h33v76h33M140 110l10 6-10 6'/%3E%3C/g%3E%3C/svg%3E");
}

[data-sk-nick="keyword"] { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; color: #7c6cff !important; font-family: var(--mono) !important; }
@keyframes sk-rootcur { 50% { opacity: 0; } }
[data-sk-nick="root"] { font-family: var(--mono) !important; color: #39ff7a !important; text-shadow: 0 0 6px rgba(57, 255, 122, .6); }
[data-sk-nick="root"]::before { content: "root@db:~# "; color: #8fd3ff; }
[data-sk-nick="root"]::after { content: "▋"; margin-left: 2px; animation: sk-rootcur 1s steps(1) infinite; }

/* анимации проверки */
.sk-disk { position: relative; width: 74px; height: 50px; border-radius: 6px; background: linear-gradient(#3a4150, #252a33); box-shadow: inset 0 0 0 2px #4b5468; }
.sk-disk .platter { position: absolute; left: 8px; top: 5px; width: 40px; height: 40px; border-radius: 50%; background: repeating-radial-gradient(circle, #c9d1dc 0 2px, #9aa4b3 2px 4px); box-shadow: 0 0 0 2px #6f7a8c; animation: sk-rot .35s linear infinite; }
.sk-disk .platter::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #4b5468; }
.sk-disk .platter::before { content: ""; position: absolute; left: 50%; top: 2px; width: 2px; height: 14px; background: #6f7a8c; }
.sk-disk .arm { position: absolute; right: 12px; top: 8px; width: 4px; height: 30px; background: #e4e8ee; border-radius: 2px; transform-origin: 50% 2px; animation: sk-arm .5s ease-in-out infinite alternate; }
@keyframes sk-arm { from { transform: rotate(18deg); } to { transform: rotate(48deg); } }
.sk-disk .led { position: absolute; right: 5px; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: #39ff7a; box-shadow: 0 0 6px #39ff7a; animation: sk-blink .18s steps(1) infinite; }
.sk-rack { display: grid; gap: 3px; padding: 5px; border-radius: 5px; background: #1b2028; box-shadow: inset 0 0 0 2px #2e3644; }
.sk-rack .u { display: flex; gap: 5px; align-items: center; width: 120px; height: 11px; padding: 0 6px; border-radius: 2px; background: linear-gradient(#3a4252, #2a303b); }
.sk-rack i { width: 5px; height: 5px; border-radius: 50%; background: #1a3a26; }
.sk-rack i:nth-child(4) { margin-left: auto; }
.sk-rack i.on { background: #39ff7a; box-shadow: 0 0 5px #39ff7a; }
.sk-rack i.busy { background: #ffb547; box-shadow: 0 0 5px #ffb547; }
.sk-iscan { position: relative; width: 180px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); }
.sk-iscan .r { display: flex; gap: 6px; height: 10px; padding: 0 6px; border-bottom: 1px solid var(--line); box-sizing: border-box; }
.sk-iscan .r i { flex: 1; margin: 2px 0; border-radius: 2px; background: color-mix(in srgb, var(--muted) 35%, transparent); }
.sk-iscan .r.found i { background: #3ecf8e; }
.sk-iscan .hit { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: rgba(255, 212, 59, .35); box-shadow: 0 0 10px rgba(255, 212, 59, .8); border-top: 1px solid #ffd43b; border-bottom: 1px solid #ffd43b; box-sizing: border-box; transition: transform .08s linear; pointer-events: none; }

/* анимации решения и ошибки */
.sk-commit { text-align: center; animation: sk-popin .35s cubic-bezier(.2, 1.6, .5, 1); }
.sk-commit b { display: block; font: 800 clamp(48px, 11vw, 120px)/1 var(--mono); color: #3ecf8e; text-shadow: 0 4px 0 #0b5a3a, 0 0 30px rgba(62, 207, 142, .7); }
.sk-commit small { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #b6f5d8; font: 15px var(--mono); }
.sk-dropwin { text-align: center; animation: sk-popin .4s cubic-bezier(.2, 1.6, .5, 1); }
.sk-dropwin code { display: inline-block; padding: 14px 22px; border-radius: 12px; background: rgba(10, 10, 20, .85); color: #ffd43b; font: 800 clamp(22px, 5vw, 54px)/1.2 var(--mono); box-shadow: 0 0 30px rgba(228, 174, 57, .6); }
.sk-dropwin s { color: #ff6b6b; text-decoration-thickness: .12em; display: inline-block; animation: sk-dropfall 1.4s .5s ease-in forwards; }
@keyframes sk-dropfall { 30% { transform: rotate(-8deg); } 100% { transform: translateY(80vh) rotate(40deg); opacity: 0; } }
.sk-dropwin small { display: block; margin-top: 12px; color: #fff; font: 600 16px var(--mono); text-shadow: 0 2px 6px #000; }
.sk-rollback b { display: block; font: 800 clamp(40px, 9vw, 100px)/1 var(--mono); color: #ff5d6c; text-shadow: 0 4px 0 #5a0b14; animation: sk-rollin .9s ease-out both; }
@keyframes sk-rollin { 0% { transform: translateX(60vw); opacity: 0; } 35% { transform: translateX(-4vw); opacity: 1; } 55% { transform: translateX(0); } 100% { transform: translateX(-70vw); opacity: 0; } }
@keyframes sk-rewind { 0% { transform: none; filter: none; } 30% { transform: translateX(-14px) skewX(6deg); filter: hue-rotate(160deg) saturate(1.4); } 60% { transform: translateX(8px); } 100% { transform: none; filter: none; } }
.sk-rewind { animation: sk-rewind .6s ease-in-out; }
.sk-deadlock { text-align: center; }
.sk-deadlock .locks { font-size: 84px; line-height: 1; display: flex; justify-content: center; }
.sk-deadlock .l { animation: sk-lockl .5s ease-in both; }
.sk-deadlock .r { animation: sk-lockr .5s ease-in both; }
@keyframes sk-lockl { from { transform: translateX(-40vw) rotate(-20deg); } 85% { transform: translateX(8px); } to { transform: translateX(0); } }
@keyframes sk-lockr { from { transform: translateX(40vw) rotate(20deg); } 85% { transform: translateX(-8px); } to { transform: translateX(0); } }
.sk-deadlock b { display: block; margin-top: 10px; font: 800 clamp(32px, 7vw, 70px)/1 var(--mono); color: #ff5d6c; text-shadow: 0 3px 0 #4a0910; animation: sk-popin .3s .45s both; }
.case-sites { font-size: .85rem; opacity: .85; margin: 6px 0 0; }

/* ================================================================ секретные скины (переделка 2026-10-27)
   Эффекты решения на всю страницу (чёрная дыра, феникс, рекорд, отличник, золото, ночь) двигают блоки страницы
   из public/js/skins.js (pageFx); здесь — их слои и декорации. */

/* ---------- Голограмма (тема кода) */
[data-sk-syntax="holo"] { --sk-bg: #040b17; --sk-fg: #c9f6ff; --sk-gut: #030812; --sk-ln: #2f6a92; --c-keyword: #ff8af0; --c-def: #7dffea; --c-string: #b6ff8a; --c-number: #ffd27a; --c-comment: #4f7aa3; --c-builtin: #8ab4ff; --c-operator: #e2b8ff; --sk-sel: rgba(125, 255, 234, .2); }
[data-sk-syntax="holo"] :is(.CodeMirror, .sk-code) {
  position: relative;
  background: linear-gradient(rgba(0, 229, 255, .07) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(0, 229, 255, .05) 1px, transparent 1px) 0 0 / 22px 100%,
    radial-gradient(ellipse at 50% 120%, rgba(0, 229, 255, .26), transparent 60%), radial-gradient(ellipse at 0 -10%, rgba(255, 90, 230, .18), transparent 50%), var(--sk-bg);
}
[data-sk-syntax="holo"] :is(.CodeMirror, .sk-code)::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); }
[data-sk-syntax="holo"] :is(.CodeMirror, .sk-code)::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent 40%, rgba(125, 255, 234, .14) 48%, rgba(255, 255, 255, .32) 50%, rgba(125, 255, 234, .14) 52%, transparent 60%) 0 0 / 100% 300% no-repeat;
  animation: sk-holoscan 3.2s linear infinite;
}
@keyframes sk-holoscan { from { background-position: 0 100%; } to { background-position: 0 0; } }
@keyframes sk-holoflick {
  0%, 100% { text-shadow: -1.2px 0 rgba(255, 40, 200, .55), 1.2px 0 rgba(0, 240, 255, .55), 0 0 10px rgba(125, 255, 234, .35); opacity: 1; }
  41% { text-shadow: -3px 0 rgba(255, 40, 200, .8), 3px 0 rgba(0, 240, 255, .8), 0 0 14px rgba(125, 255, 234, .5); opacity: .8; }
  42% { text-shadow: -1.2px 0 rgba(255, 40, 200, .55), 1.2px 0 rgba(0, 240, 255, .55), 0 0 10px rgba(125, 255, 234, .35); opacity: 1; }
  77% { opacity: .88; } 78% { opacity: 1; }
}
[data-sk-syntax="holo"] :is(.CodeMirror-code, .sk-code) { animation: sk-holoflick 4s steps(1) infinite; }
[data-sk-syntax="holo"] :is(.cm-keyword, .cm-def) {
  background: linear-gradient(90deg, #ff8af0, #7dffea, #8ab4ff, #fff6a8, #ff8af0) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sk-slide 4s linear infinite; filter: drop-shadow(0 0 4px rgba(125, 255, 234, .6));
}

/* ---------- Корона (функции): жидкое золото, корона с камнями над именем, искра */
@keyframes sk-crownbob { 0%, 100% { transform: translate(-50%, 0) rotate(-7deg); } 50% { transform: translate(-50%, -2px) rotate(7deg); } }
@keyframes sk-gleam { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 80% { opacity: 1; transform: scale(1.1) rotate(45deg); } 90% { opacity: 0; transform: scale(.4) rotate(90deg); } }
[data-sk-func="crown"] :is(.cm-def, .cm-call) {
  position: relative; font-weight: 800; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, #9a6a00 0%, #ffd75e 22%, #fffbe6 32%, #ffcc33 42%, #b07800 58%, #ffe58a 78%, #9a6a00 100%); background-size: 250% 100%;
  animation: sk-sweep 2.8s linear infinite; filter: drop-shadow(0 0 2px rgba(255, 190, 40, .75)) drop-shadow(0 1px 0 rgba(90, 50, 0, .5));
}
[data-sk-func="crown"] :is(.cm-def, .cm-call)::after {
  content: ""; position: absolute; left: 50%; top: -.6em; width: 1em; height: .66em; pointer-events: none; animation: sk-crownbob 2.4s ease-in-out infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff6c7'/%3E%3Cstop offset='.5' stop-color='%23f5c518'/%3E%3Cstop offset='1' stop-color='%23a87400'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 21L1 6l10 8 9-12 9 12 10-8-2 15Z' fill='url(%23g)' stroke='%237a5200' stroke-width='1.2' stroke-linejoin='round'/%3E%3Crect x='3' y='19' width='34' height='6' rx='1.5' fill='url(%23g)' stroke='%237a5200' stroke-width='1.2'/%3E%3Ccircle cx='1' cy='5' r='2' fill='%23fff3b0'/%3E%3Ccircle cx='20' cy='2' r='2.2' fill='%23fff3b0'/%3E%3Ccircle cx='39' cy='5' r='2' fill='%23fff3b0'/%3E%3Ccircle cx='11' cy='22' r='1.8' fill='%23e0245e'/%3E%3Ccircle cx='20' cy='22' r='2' fill='%232b77ff'/%3E%3Ccircle cx='29' cy='22' r='1.8' fill='%2319c37d'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-sk-func="crown"] :is(.cm-def, .cm-call)::before {
  content: "✦"; position: absolute; right: -.5em; top: -.4em; font-size: .6em; pointer-events: none; color: #fffbe6; -webkit-text-fill-color: #fffbe6;
  text-shadow: 0 0 6px #ffd75e, 0 0 12px #ffb300; animation: sk-gleam 3s ease-in-out infinite;
}

/* ---------- Питоны (фон, секретный): змеи — холстом позади страницы (skins.js pythons, переделан 2026-11-16) */
[data-sk-bg="pythons"]::before {
  /* с 2026-11-16 змеи — холстом (skins.js pythons), здесь только подсветка в цветах Python */
  background: radial-gradient(ellipse at 12% 18%, rgba(55, 118, 171, .26), transparent 52%), radial-gradient(ellipse at 88% 82%, rgba(255, 212, 59, .22), transparent 52%),
    radial-gradient(ellipse at 70% 15%, rgba(55, 118, 171, .12), transparent 45%), radial-gradient(ellipse at 25% 85%, rgba(255, 212, 59, .1), transparent 45%);
}

/* ---------- Тёмная материя (ник): чёрная дыра за именем, огненный диск крутится вокруг */
[data-sk-nick="void"] {
  /* диск и дыра — внутри собственных границ ника: в шапке у имени overflow: hidden */
  position: relative; display: inline-block; isolation: isolate; padding: .3em .75em; line-height: 1.2; vertical-align: middle; font-weight: 800; color: #f6efff !important;
  text-shadow: 0 0 4px #c7a6ff, 0 0 10px #7b2dff; animation: sk-voidglow 2.4s ease-in-out infinite;
}
@keyframes sk-voidglow { 50% { text-shadow: 0 0 5px #ffd9a0, 0 0 14px #ff8a1f; } }
[data-sk-nick="void"]::before {
  content: ""; position: absolute; z-index: -1; inset: 1px; border-radius: 50%;
  background: conic-gradient(from var(--sk-ang), #fff4d6, #ff9d3c, #7a1d00, #ff6a00, #ffe0a0, #ff7a1a, #3a0a00, #fff4d6);
  -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 70%, #000 84%, transparent 100%); mask: radial-gradient(closest-side, transparent 62%, #000 70%, #000 84%, transparent 100%);
  animation: sk-spin 1.6s linear infinite; filter: drop-shadow(0 0 2px rgba(255, 140, 40, .9));
}
[data-sk-nick="void"]::after { content: ""; position: absolute; z-index: -2; inset: .14em .35em; border-radius: 50%; background: radial-gradient(closest-side, #000 62%, rgba(20, 0, 45, .9) 82%, transparent); box-shadow: 0 0 8px rgba(123, 45, 255, .5); }

/* ---------- «Тёмная материя» — переделан 2026-11-15: наклонённый аккреционный диск (задняя часть за именем, передняя —
   поверх низа букв), чёрная дыра постоянного размера с фотонным кольцом и дугой над ней, частицы по спирали падают в центр,
   раз в 8 с имя «засасывает» и отпускает. Текст — span.sk-vn, декор — i.sk-vfx (skins.js, decorateTitles). */
[data-sk-nick="void"] { padding: .42em 1.05em; }
/* диск: тонкий наклонённый эллипс во всю ширину, за дырой */
[data-sk-nick="void"]::before {
  inset: auto 0; top: 50%; height: .95em; transform: translateY(-50%); z-index: -3;
  -webkit-mask: radial-gradient(closest-side, transparent 30%, #000 52%, #000 82%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 30%, #000 52%, #000 82%, transparent 100%);
  animation: sk-spin 1.3s linear infinite; filter: drop-shadow(0 0 .18em rgba(255, 140, 40, .95));
}
/* дыра: круг постоянного размера в центре — у длинного имени не растягивается в капсулу */
[data-sk-nick="void"]::after {
  inset: auto; left: 50%; top: 50%; width: 1.75em; height: 1.75em; transform: translate(-50%, -50%); z-index: -2;
  background: radial-gradient(circle, #000 56%, #0d0020 66%, transparent 70%);
  box-shadow: 0 0 0 .055em rgba(255, 228, 175, .95), 0 0 .3em .06em rgba(255, 160, 60, .9), 0 0 .9em .22em rgba(123, 45, 255, .5);
  animation: sk-void-core 3s ease-in-out infinite;
}
@keyframes sk-void-core { 50% { box-shadow: 0 0 0 .07em rgba(255, 240, 200, 1), 0 0 .45em .1em rgba(255, 170, 70, 1), 0 0 1.2em .3em rgba(150, 70, 255, .6); } }
[data-sk-nick="void"] .sk-vn { position: relative; display: inline-block; animation: sk-void-squeeze 8s ease-in-out infinite; }
@keyframes sk-void-squeeze {
  0%, 80%, 100% { transform: none; filter: none; }
  86% { transform: scale(.76, .86); filter: blur(.35px) brightness(1.35); }
  90% { transform: scale(1.08, 1.04); filter: none; }
  94% { transform: scale(.97); }
}
[data-sk-nick="void"] .sk-vfx { position: absolute; pointer-events: none; font-style: normal; }
/* передняя часть диска — нижняя половина того же эллипса поверх букв (screen — буквы видны) */
[data-sk-nick="void"] .sk-vfx.fr {
  left: 0; right: 0; top: 50%; height: .95em; transform: translateY(-50%); z-index: 1; border-radius: 50%; mix-blend-mode: screen; opacity: .85;
  background: conic-gradient(from var(--sk-ang), #fff4d6, #ff9d3c, #7a1d00, #ff6a00, #ffe0a0, #ff7a1a, #3a0a00, #fff4d6);
  -webkit-mask: linear-gradient(to bottom, transparent 52%, #000 60%), radial-gradient(closest-side, transparent 30%, #000 52%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to bottom, transparent 52%, #000 60%), radial-gradient(closest-side, transparent 30%, #000 52%, #000 82%, transparent 100%);
  mask-composite: intersect;
  animation: sk-spin 1.3s linear infinite;
}
/* дуга над дырой — свет диска, загнутый гравитацией */
[data-sk-nick="void"] .sk-vfx.arc {
  left: 50%; top: 50%; width: 2.15em; height: 2.15em; transform: translate(-50%, -54%); z-index: -1; border-radius: 50%;
  border: .09em solid transparent; border-top-color: #ffe2b0; border-left-color: rgba(255, 150, 50, .55); border-right-color: rgba(255, 150, 50, .55);
  filter: drop-shadow(0 0 .14em #ff8a1f); animation: sk-void-arc 2.2s ease-in-out infinite;
}
@keyframes sk-void-arc { 50% { border-top-color: #fff6e0; filter: drop-shadow(0 0 .25em #ffb35c); } }
/* частицы: падают по спирали в центр (контейнер сплющен — орбиты наклонены, как диск) */
[data-sk-nick="void"] .sk-vfx.pts { left: 50%; top: 50%; width: 0; height: 0; transform: scaleY(.34); z-index: -1; }
[data-sk-nick="void"] .sk-vfx.pts i {
  position: absolute; left: -.07em; top: -.07em; width: .14em; height: .14em; border-radius: 50%; background: #ffe2b0; box-shadow: 0 0 .22em .04em #ff8a1f;
  opacity: 0; animation: sk-void-fall 2.8s cubic-bezier(.45, 0, .95, .6) infinite;
}
[data-sk-nick="void"] .sk-vfx.pts i:nth-child(2) { animation-delay: .7s; background: #d8b8ff; box-shadow: 0 0 .22em .04em #7b2dff; }
[data-sk-nick="void"] .sk-vfx.pts i:nth-child(3) { animation-delay: 1.4s; }
[data-sk-nick="void"] .sk-vfx.pts i:nth-child(4) { animation-delay: 2.1s; background: #fff; }
@keyframes sk-void-fall {
  0% { opacity: 0; transform: rotate(0deg) translateX(3.3em) scale(1); }
  12% { opacity: 1; }
  85% { opacity: .9; }
  100% { opacity: 0; transform: rotate(620deg) translateX(.25em) scale(.3); }
}
/* орбита букв: раз в 15–20 с каждая буква (span.sk-vl) улетает на наклонённую орбиту вокруг дыры и возвращается.
   --dx/--dy — от буквы до центра дыры, --R — радиус орбиты, --ph — начальный угол (ставит skins.js, startOrbit);
   --k (0…1) — насколько буква «на орбите», --va — угол на орбите. На дальней стороне буква тусклее и меньше. */
@property --sk-k { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --sk-va { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
[data-sk-nick="void"] .sk-vl { display: inline-block; white-space: pre; }
[data-sk-nick="void"].sk-orbit .sk-vn { animation: none; }
[data-sk-nick="void"].sk-orbit .sk-vl {
  --a: calc(var(--sk-va) + var(--ph));
  transform: translate(calc(var(--dx) * var(--sk-k)), calc(var(--dy) * var(--sk-k)))
    scaleY(calc(1 - .66 * var(--sk-k))) rotate(var(--a)) translateX(calc(var(--R) * var(--sk-k))) rotate(calc(-1 * var(--a)))
    scaleY(calc(1 / (1 - .66 * var(--sk-k)))) scale(calc(1 - .22 * var(--sk-k) * (1 - sin(var(--a)))));
  opacity: calc(1 - .45 * var(--sk-k) * (1 - sin(var(--a))) / 2);
  animation: sk-void-orbit 6.4s cubic-bezier(.55, 0, .45, 1) both;
}
@keyframes sk-void-orbit {
  0% { --sk-k: 0; --sk-va: 0deg; }
  20% { --sk-k: 1; }
  80% { --sk-k: 1; }
  100% { --sk-k: 0; --sk-va: 720deg; }
}
body.sk-lite [data-sk-nick="void"].sk-orbit .sk-vl { animation: none; transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { [data-sk-nick="void"].sk-orbit .sk-vl { animation: none; transform: none; opacity: 1; } }
body.sk-lite [data-sk-nick="void"] .sk-vfx:not(.arc) { display: none; }
body.sk-lite [data-sk-nick="void"] .sk-vn, body.sk-lite [data-sk-nick="void"] .sk-vfx { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-sk-nick="void"] .sk-vfx:not(.arc) { display: none; }
  [data-sk-nick="void"] .sk-vn, [data-sk-nick="void"] .sk-vfx { animation: none !important; }
}

/* ---------- секретные титулы: голографическая плашка, вращающаяся кайма, значок */
.sk-title[data-r="secret"] {
  /* текст — обычный цвет со свечением (без background-clip: text — не во всех браузерах работает со слоями);
     плашка, вращающаяся кайма и блик — в ::before под текстом */
  --tc: #ffe9a0; --tg: rgba(255, 196, 40, .85); --tbg: #17110a, #2c1e07; --tk: #ffe9a0, #e4ae39, #fff, #ff8af0, #7dffea, #e4ae39, #ffe9a0;
  position: relative; isolation: isolate; padding: 1px 10px 1px 24px; overflow: visible; background: none; color: var(--tc); -webkit-text-fill-color: var(--tc);
  text-shadow: 0 0 5px var(--tg), 0 1px 1px rgba(0, 0, 0, .6); animation: sk-tglow 2.4s ease-in-out infinite; box-shadow: 0 0 10px var(--tg), 0 0 22px rgba(228, 174, 57, .3);
}
@keyframes sk-tglow { 50% { text-shadow: 0 0 10px var(--tg), 0 0 2px #fff, 0 1px 1px rgba(0, 0, 0, .6); } }
.sk-title[data-r="secret"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1.5px solid transparent;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .3) 50%, transparent 60%) 0 0 / 250% 100% padding-box, linear-gradient(var(--tbg)) padding-box, conic-gradient(from var(--sk-ang), var(--tk)) border-box;
  animation: sk-spin 3s linear infinite, sk-tshine 2.6s linear infinite;
}
@keyframes sk-tshine { from { background-position: 150% 0, 0 0, 0 0; } to { background-position: -150% 0, 0 0, 0 0; } }
.sk-title[data-r="secret"]::after { content: "★"; position: absolute; left: 8px; top: 50%; transform: translateY(-52%); font-size: .82em; color: #ffe9a0; -webkit-text-fill-color: #ffe9a0; text-shadow: 0 0 6px #ffd54a; animation: sk-twinkle 1.6s ease-in-out infinite; }
.sk-title[data-t="guido"] { --tc: #ffe27a; --tg: rgba(75, 139, 190, .95); --tbg: #071624, #10263c; --tk: #3776ab, #9fd3ff, #ffd43b, #fff, #3776ab; }
.sk-title[data-t="guido"]::after {
  content: ""; width: 1.05em; height: 1.05em; left: 6px; animation: sk-rot 6s linear infinite; text-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%234b8bbe' d='M15.9 2C9.5 2 9.9 4.8 9.9 4.8v2.9H16v.9H7.5S3.4 8.1 3.4 14.6s3.6 6.2 3.6 6.2h2.1v-3s-.1-3.6 3.5-3.6h6s3.4.1 3.4-3.3V5.4S22.5 2 15.9 2zm-3.3 1.9a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2z'/%3E%3Cpath fill='%23ffd43b' d='M16.1 30c6.4 0 6-2.8 6-2.8v-2.9H16v-.9h8.5s4.1.5 4.1-6-3.6-6.2-3.6-6.2h-2.1v3s.1 3.6-3.5 3.6h-6s-3.4-.1-3.4 3.3v5.5S9.5 30 16.1 30zm3.3-1.9a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sk-title[data-t="codd"] { --tc: #b6f5d8; --tg: rgba(62, 207, 142, .95); --tbg: #04160e, #0b2a1c; --tk: #3ecf8e, #b6f5d8, #ffd43b, #fff, #3ecf8e; }
.sk-title[data-t="codd"]::after {
  content: ""; width: 1em; height: 1.05em; left: 7px; animation: sk-twinkle 2s ease-in-out infinite; text-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 34'%3E%3Cpath fill='%231f8a5b' d='M5 7v20c0 2.2 4.9 4 11 4s11-1.8 11-4V7c0 2.2-4.9 4-11 4S5 9.2 5 7z'/%3E%3Cpath fill='none' stroke='%23b6f5d8' stroke-width='1.6' d='M5 14c0 2.2 4.9 4 11 4s11-1.8 11-4M5 21c0 2.2 4.9 4 11 4s11-1.8 11-4'/%3E%3Cellipse cx='16' cy='7' rx='11' ry='4' fill='%233ecf8e'/%3E%3Ccircle cx='23' cy='22' r='1.5' fill='%23ffd43b'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- «Наследник Гвидо» и «Наследник Кодда» — переделаны 2026-11-15 (были просто перекрашенной общей плашкой).
   Текст — span.sk-tt, декор — i.sk-tfx (вставляет skins.js, decorateTitles). Без JS остаётся плашка, текст и иконка. */
@property --sk-gx { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* Гвидо: сине-жёлтое северное сияние на плашке, текст переливается из синего в жёлтый, логотип Python переворачивается,
   по плашке поднимаются искры, над надписью время от времени вспыхивает корона */
.sk-title[data-t="guido"] {
  --tc: #fff3c4; --tg: rgba(255, 212, 59, .9); --tbg: #05112a, #0d2a52; --tk: #3776ab, #ffd43b, #fff, #4b8bbe, #ffd43b, #9fd3ff, #3776ab;
  padding: .1em .95em .1em 2.25em; letter-spacing: .03em; animation: sk-guido-glow 3.2s ease-in-out infinite;
}
@keyframes sk-guido-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(55, 118, 171, .95), 0 0 26px rgba(55, 118, 171, .5); }
  50% { box-shadow: 0 0 12px rgba(255, 212, 59, .95), 0 0 30px rgba(255, 212, 59, .45); }
}
.sk-title[data-t="guido"]::before {
  background:
    linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .4) 50%, transparent 60%) 0 0 / 250% 100% padding-box,
    radial-gradient(90% 160% at var(--sk-gx) 50%, rgba(75, 139, 190, .75), transparent 65%) padding-box,
    radial-gradient(90% 160% at calc(100% - var(--sk-gx)) 50%, rgba(255, 212, 59, .45), transparent 65%) padding-box,
    linear-gradient(var(--tbg)) padding-box,
    conic-gradient(from var(--sk-ang), var(--tk)) border-box;
  animation: sk-spin 2.2s linear infinite, sk-guido-shine 2.6s linear infinite, sk-guido-aurora 4.5s ease-in-out infinite alternate;
}
@keyframes sk-guido-shine { from { background-position: 150% 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: -150% 0, 0 0, 0 0, 0 0, 0 0; } }
@keyframes sk-guido-aurora { to { --sk-gx: 100%; } }
.sk-title[data-t="guido"]::after {
  width: 1.15em; height: 1.15em; left: .55em; filter: drop-shadow(0 0 3px #ffd43b) drop-shadow(0 0 2px #4b8bbe);
  animation: sk-guido-flip 4s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes sk-guido-flip {
  0%, 55% { transform: translateY(-52%) rotateY(0) scale(1); }
  70% { transform: translateY(-52%) rotateY(180deg) scale(1.2); }
  85%, 100% { transform: translateY(-52%) rotateY(360deg) scale(1); }
}
.sk-title[data-t="guido"] .sk-tt {
  color: #fff3c4; -webkit-text-fill-color: #fff3c4; text-shadow: 0 0 6px rgba(255, 212, 59, .8);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sk-title[data-t="guido"] .sk-tt {
    background: linear-gradient(90deg, #9fd3ff, #fff 22%, #ffd43b 45%, #fff 68%, #9fd3ff) 0 0 / 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    text-shadow: none; filter: drop-shadow(0 0 3px rgba(255, 212, 59, .7)) drop-shadow(0 1px 1px rgba(0, 0, 0, .6));
    animation: sk-tt-flow 3s linear infinite;
  }
}
@keyframes sk-tt-flow { to { background-position: -220% 0; } }
/* искры: синие и жёлтые точки поднимаются со дна плашки */
.sk-title .sk-tfx { position: absolute; pointer-events: none; font-style: normal; }
.sk-title[data-t="guido"] .sk-tfx.sp { bottom: 1px; width: 3px; height: 3px; border-radius: 50%; background: #ffd43b; box-shadow: 0 0 6px 1px #ffd43b; opacity: 0; animation: sk-guido-spark 2.4s ease-out infinite; }
.sk-title[data-t="guido"] .sk-tfx.sp:nth-of-type(odd) { background: #9fd3ff; box-shadow: 0 0 6px 1px #4b8bbe; }
.sk-title[data-t="guido"] .sk-tfx.sp.s1 { left: 34%; animation-delay: 0s; }
.sk-title[data-t="guido"] .sk-tfx.sp.s2 { left: 58%; animation-delay: .8s; }
.sk-title[data-t="guido"] .sk-tfx.sp.s3 { left: 82%; animation-delay: 1.6s; }
@keyframes sk-guido-spark { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px) scale(1.2); } }
/* корона над надписью — раз в 6 секунд */
.sk-title[data-t="guido"] .sk-tfx.crown {
  left: 50%; top: -.95em; font-size: .85em; line-height: 1; transform: translateX(-50%) scale(0); filter: drop-shadow(0 0 4px #ffd43b);
  animation: sk-guido-crown 6s ease-in-out infinite;
}
@keyframes sk-guido-crown {
  0%, 62% { transform: translateX(-50%) translateY(4px) scale(0) rotate(-20deg); opacity: 0; }
  70% { transform: translateX(-50%) translateY(0) scale(1.15) rotate(6deg); opacity: 1; }
  76%, 90% { transform: translateX(-50%) translateY(0) scale(1) rotate(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-6px) scale(.6); opacity: 0; }
}

/* Кодд: зелёный терминал — по плашке бегут строки таблицы и столбцы, текст моноширинный с фосфорным свечением
   и мерцанием, мигающий курсор, из иконки базы вылетают биты, над плашкой всплывает COMMIT; */
.sk-title[data-t="codd"] {
  --tc: #d2ffea; --tg: rgba(62, 207, 142, .95); --tbg: #010d07, #052518; --tk: #3ecf8e, #0b6b45, #b6f5d8, #3ecf8e, #ffd43b, #0b6b45, #3ecf8e;
  padding: .1em .8em .1em 2.25em; font-family: var(--mono, ui-monospace, "Cascadia Mono", monospace); letter-spacing: .02em;
  box-shadow: 0 0 10px rgba(62, 207, 142, .85), 0 0 24px rgba(62, 207, 142, .35), inset 0 0 8px rgba(62, 207, 142, .25);
  animation: sk-codd-glow 2.8s ease-in-out infinite;
}
@keyframes sk-codd-glow { 50% { box-shadow: 0 0 14px rgba(62, 207, 142, 1), 0 0 30px rgba(62, 207, 142, .5), inset 0 0 10px rgba(62, 207, 142, .35); } }
.sk-title[data-t="codd"]::before {
  background:
    linear-gradient(100deg, transparent 40%, rgba(182, 245, 216, .35) 50%, transparent 60%) 0 0 / 250% 100% padding-box,
    repeating-linear-gradient(0deg, rgba(62, 207, 142, .22) 0 1px, transparent 1px 5px) 0 0 / 100% 5px padding-box,
    repeating-linear-gradient(90deg, rgba(62, 207, 142, .14) 0 1px, transparent 1px 24px) 0 0 / 24px 100% padding-box,
    linear-gradient(var(--tbg)) padding-box,
    conic-gradient(from var(--sk-ang), var(--tk)) border-box;
  animation: sk-spin 3s linear infinite, sk-codd-rows 2.5s linear infinite;
}
@keyframes sk-codd-rows {
  from { background-position: 150% 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: -150% 0, 0 10px, 24px 0, 0 0, 0 0; }
}
.sk-title[data-t="codd"]::after { width: 1.05em; height: 1.1em; left: .6em; filter: drop-shadow(0 0 3px #3ecf8e); animation: sk-codd-disk 1.6s ease-in-out infinite; }
@keyframes sk-codd-disk { 0%, 100% { transform: translateY(-52%); filter: drop-shadow(0 0 2px #3ecf8e); } 50% { transform: translateY(-62%); filter: drop-shadow(0 0 6px #3ecf8e) drop-shadow(0 0 2px #ffd43b); } }
.sk-title[data-t="codd"] .sk-tt { color: #d2ffea; -webkit-text-fill-color: #d2ffea; text-shadow: 0 0 4px #3ecf8e, 0 0 9px rgba(62, 207, 142, .7); animation: sk-codd-flicker 4.2s steps(1) infinite; }
@keyframes sk-codd-flicker { 0%, 100% { opacity: 1; } 61% { opacity: .65; } 62% { opacity: 1; } 64% { opacity: .8; } 65% { opacity: 1; } }
.sk-title[data-t="codd"] .sk-tfx.cur { position: static; display: inline-block; margin-left: 1px; color: #3ecf8e; -webkit-text-fill-color: #3ecf8e; text-shadow: 0 0 6px #3ecf8e; animation: sk-blink 1s steps(1) infinite; }
@keyframes sk-blink { 50% { opacity: 0; } }
/* биты из иконки базы по плашке вправо */
.sk-title[data-t="codd"] .sk-tfx.bit { top: 50%; left: 1.6em; font: 700 .55em/1 var(--mono, monospace); color: #b6f5d8; -webkit-text-fill-color: #b6f5d8; text-shadow: 0 0 4px #3ecf8e; opacity: 0; animation: sk-codd-bit 2.8s linear infinite; }
.sk-title[data-t="codd"] .sk-tfx.bit.b1 { margin-top: -6px; animation-delay: 0s; }
.sk-title[data-t="codd"] .sk-tfx.bit.b2 { margin-top: 1px; animation-delay: .7s; }
.sk-title[data-t="codd"] .sk-tfx.bit.b3 { margin-top: -3px; animation-delay: 1.4s; }
.sk-title[data-t="codd"] .sk-tfx.bit.b4 { margin-top: 2px; animation-delay: 2.1s; }
@keyframes sk-codd-bit { 0% { opacity: 0; left: 1.6em; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { opacity: 0; left: calc(100% - 10px); } }
/* COMMIT; всплывает над плашкой раз в 5 секунд */
.sk-title[data-t="codd"] .sk-tfx.cm {
  right: 4px; top: -1.05em; font: 700 .62em/1 var(--mono, monospace); letter-spacing: .04em; color: #3ecf8e; -webkit-text-fill-color: #3ecf8e;
  text-shadow: 0 0 6px #3ecf8e; opacity: 0; animation: sk-codd-commit 5s ease-out infinite;
}
@keyframes sk-codd-commit { 0%, 70% { opacity: 0; transform: translateY(4px); } 76% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(-5px); } }

/* лёгкий режим и «меньше движения»: декор не показываем, текст не переливается */
body.sk-lite .sk-title .sk-tfx:not(.cur) { display: none; }
body.sk-lite .sk-title .sk-tt, body.sk-lite .sk-title .sk-tfx { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .sk-title .sk-tfx:not(.cur) { display: none; }
  .sk-title .sk-tt, .sk-title .sk-tfx, .sk-title[data-t="guido"], .sk-title[data-t="codd"] { animation: none !important; }
}

/* ---------- «Змееуст» (мифический титул, 2026-11-16): изумрудная плашка с ползущей чешуёй, кайма красный↔зелёный,
   змеиные глаза слева (моргают), по нижнему краю ползает змейка, раз в 7 с титул «шипит»: буквы плывут, вылетает «с-с-с…».
   Текст — span.sk-tt, декор — i.sk-tfx (skins.js, TITLE_FX.parseltongue). */
.sk-title[data-t="parseltongue"] {
  position: relative; isolation: isolate; overflow: visible; padding: .1em .95em .1em 2.15em; background: none; letter-spacing: .02em;
  color: #dcffe6; -webkit-text-fill-color: #dcffe6; text-shadow: 0 0 5px #23c264, 0 1px 1px rgba(0, 0, 0, .7);
  box-shadow: 0 0 9px rgba(35, 194, 100, .65), 0 0 20px rgba(235, 75, 75, .28); animation: sk-ps-glow 3.4s ease-in-out infinite;
}
@keyframes sk-ps-glow { 50% { box-shadow: 0 0 12px rgba(35, 194, 100, .9), 0 0 26px rgba(235, 75, 75, .4); } }
.sk-title[data-t="parseltongue"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1.5px solid transparent;
  background:
    radial-gradient(circle at 50% 0, transparent 52%, rgba(64, 214, 125, .3) 56%, transparent 66%) 0 0 / .62em .4em padding-box,
    radial-gradient(circle at 50% 0, transparent 52%, rgba(64, 214, 125, .3) 56%, transparent 66%) .31em .2em / .62em .4em padding-box,
    linear-gradient(#03140a, #0a2c17) padding-box,
    linear-gradient(90deg, #eb4b4b, #1f9d55, #8dffb3, #1f9d55, #eb4b4b) 0 0 / 200% 100% border-box;
  animation: sk-ps-scales 6s linear infinite;
}
@keyframes sk-ps-scales { to { background-position: 1.24em 0, 1.55em .2em, 0 0, -200% 0; } }
/* змеиные глаза: жёлтые, со зрачком-щёлочкой, моргают */
.sk-title[data-t="parseltongue"]::after {
  content: ""; position: absolute; left: .55em; top: 50%; width: 1.15em; height: .5em; transform: translateY(-50%);
  background:
    radial-gradient(ellipse .06em .2em at 30% 50%, #0b0b0b 92%, transparent 100%),
    radial-gradient(ellipse .06em .2em at 70% 50%, #0b0b0b 92%, transparent 100%),
    radial-gradient(ellipse .2em .21em at 30% 50%, #ffe14a 88%, transparent 100%),
    radial-gradient(ellipse .2em .21em at 70% 50%, #ffe14a 88%, transparent 100%);
  filter: drop-shadow(0 0 3px #ffd23a); animation: sk-ps-blink 4.6s ease-in-out infinite;
}
@keyframes sk-ps-blink { 0%, 90%, 100% { transform: translateY(-50%) scaleY(1); } 94% { transform: translateY(-50%) scaleY(.08); } }
.sk-title[data-t="parseltongue"] .sk-tt { display: inline-block; animation: sk-ps-speak 7s ease-in-out infinite; }
@keyframes sk-ps-speak {
  0%, 74%, 100% { transform: none; text-shadow: 0 0 5px #23c264, 0 1px 1px rgba(0, 0, 0, .7); filter: none; }
  78% { transform: skewX(-9deg) translateX(1px); text-shadow: 0 0 9px #3cff8a, 0 0 2px #fff; filter: blur(.3px); }
  82% { transform: skewX(7deg) translateX(-1px); text-shadow: 0 0 12px #3cff8a, 0 0 3px #fff; filter: none; }
  86% { transform: skewX(-4deg); }
  90% { transform: none; text-shadow: 0 0 7px #3cff8a, 0 1px 1px rgba(0, 0, 0, .7); }
}
/* змейка по нижнему краю: туда (вправо) — обратно (разворот) */
.sk-title[data-t="parseltongue"] .sk-tfx.sn {
  bottom: -.55em; left: .3em; font-size: .78em; line-height: 1; filter: drop-shadow(0 0 2px #23c264);
  animation: sk-ps-crawl 9s linear infinite;
}
@keyframes sk-ps-crawl {
  0% { left: .3em; transform: scaleX(-1) rotate(0); }
  10%, 30% { transform: scaleX(-1) rotate(8deg); }
  20%, 40% { transform: scaleX(-1) rotate(-8deg); }
  48% { left: calc(100% - 1.4em); transform: scaleX(-1) rotate(0); }
  50% { left: calc(100% - 1.4em); transform: scaleX(1) rotate(0); }
  60%, 80% { transform: scaleX(1) rotate(-8deg); }
  70%, 90% { transform: scaleX(1) rotate(8deg); }
  98% { left: .3em; transform: scaleX(1) rotate(0); }
  100% { left: .3em; transform: scaleX(-1) rotate(0); }
}
/* «с-с-с…» вылетает над плашкой, когда титул шипит */
.sk-title[data-t="parseltongue"] .sk-tfx.hiss {
  right: .2em; top: -1em; font: italic 700 .62em/1 var(--mono, monospace); letter-spacing: .08em; color: #8dffb3; -webkit-text-fill-color: #8dffb3;
  text-shadow: 0 0 6px #23c264; opacity: 0; animation: sk-ps-hiss 7s ease-out infinite;
}
@keyframes sk-ps-hiss { 0%, 76% { opacity: 0; transform: translate(-6px, 4px) scale(.7); } 82% { opacity: 1; transform: translate(0, 0) scale(1); } 94% { opacity: .8; } 100% { opacity: 0; transform: translate(10px, -6px) scale(1.05); } }

/* ---------- особый титул «PyGo» (коллекция pygo, только выдача): синее стекло, сине-жёлтая кайма, логотип Python */
.sk-title[data-t="pygo"] { --tc: #fff6cf; --tg: rgba(255, 212, 59, .95); --tbg: #0a1a33, #14325c; --tk: #ffd43b, #3776ab, #9fd3ff, #fff, #ffd43b, #3776ab, #ffd43b;
  font-weight: 800; letter-spacing: .06em; box-shadow: 0 0 10px rgba(255, 212, 59, .7), 0 0 24px rgba(55, 118, 171, .55); }
.sk-title[data-t="pygo"]::after {
  content: ""; width: 1.05em; height: 1.05em; left: 6px; animation: sk-twinkle 1.8s ease-in-out infinite; text-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%234b8bbe' d='M15.9 2C9.5 2 9.9 4.8 9.9 4.8v2.9H16v.9H7.5S3.4 8.1 3.4 14.6s3.6 6.2 3.6 6.2h2.1v-3s-.1-3.6 3.5-3.6h6s3.4.1 3.4-3.3V5.4S22.5 2 15.9 2zm-3.3 1.9a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2z'/%3E%3Cpath fill='%23ffd43b' d='M16.1 30c6.4 0 6-2.8 6-2.8v-2.9H16v-.9h8.5s4.1.5 4.1-6-3.6-6.2-3.6-6.2h-2.1v3s.1 3.6-3.5 3.6h-6s-3.4-.1-3.4 3.3v5.5S9.5 30 16.1 30zm3.3-1.9a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 3px #ffd43b);
}

/* ---------- Чёрная дыра (решение) */
.sk-bh-dim {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; animation: sk-fadein .6s ease-out both;
  background: radial-gradient(1px 1px at 30px 40px, #fff, transparent) 0 0 / 150px 150px, radial-gradient(1.5px 1.5px at 100px 110px, #e8dcff, transparent) 0 0 / 190px 190px,
    radial-gradient(circle at 50% 50%, rgba(60, 24, 90, .5), rgba(4, 2, 14, .97) 62%), #04020e;
}
.sk-bh { --R: 100px; position: relative; width: calc(var(--R) * 2); height: calc(var(--R) * 2); animation: sk-bhin .8s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes sk-bhin { from { transform: scale(0) rotate(-120deg); } }
.sk-bh.burst { animation: sk-bhout .5s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes sk-bhout { 30% { transform: scale(1.3); } 100% { transform: scale(0); opacity: 0; } }
.sk-bh .hz { position: absolute; inset: 0; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px rgba(255, 230, 180, .95), 0 0 16px 4px rgba(255, 170, 60, .95), 0 0 60px 16px rgba(255, 110, 20, .55), inset 0 0 30px #000; }
.sk-bh .lens {
  position: absolute; inset: -16%; border-radius: 50%; filter: blur(2px); animation: sk-spin 2.4s linear infinite;
  background: conic-gradient(from var(--sk-ang), #fff4d6, #ff9d3c, #ff6a00 30%, #7a1d00, #ffb347 60%, #fff4d6 75%, #ff7a1a, #fff4d6);
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 84%, #000 90%, transparent 100%); mask: radial-gradient(closest-side, transparent 78%, #000 84%, #000 90%, transparent 100%);
}
.sk-bh .disk {
  position: absolute; left: 50%; top: 50%; width: calc(var(--R) * 5.6); height: calc(var(--R) * 5.6); margin: calc(var(--R) * -2.8); border-radius: 50%;
  background: conic-gradient(from var(--sk-ang), #fff4d6, #ffb347, #ff6a00, #7a1d00, #ff9d3c, #ffe0a0, #ff7a1a, #5a1000, #fff4d6);
  -webkit-mask: radial-gradient(closest-side, transparent 34%, #000 38%, #000 66%, transparent 100%); mask: radial-gradient(closest-side, transparent 34%, #000 38%, #000 66%, transparent 100%);
  transform: rotateX(78deg) rotate(-12deg); animation: sk-spin 1.4s linear infinite; filter: brightness(1.25) drop-shadow(0 0 12px #ff8a1f);
}
.sk-bh .disk.front { clip-path: inset(50% 0 0 0); }
.sk-shock.gold { border-color: rgba(255, 230, 140, .95); box-shadow: 0 0 30px rgba(255, 196, 0, .9), inset 0 0 30px rgba(255, 196, 0, .9); }

/* ---------- Феникс (решение) */
.sk-px-heat { position: fixed; inset: 0; z-index: 94; pointer-events: none; background: linear-gradient(0deg, rgba(255, 80, 0, .55), rgba(255, 140, 0, .25) 35%, transparent 70%); animation: sk-heat 1.6s ease-out both; }
@keyframes sk-heat { from { transform: translateY(60%); opacity: 0; } 40% { opacity: 1; } to { transform: none; } }
.sk-phoenix { position: fixed; left: 0; top: 0; z-index: 96; width: 300px; height: 220px; pointer-events: none; animation: sk-pxfly 1.9s cubic-bezier(.4, .1, .6, .9) forwards; filter: drop-shadow(0 0 14px #ff7a00) drop-shadow(0 0 36px rgba(255, 80, 0, .7)); }
.sk-phoenix svg { width: 100%; height: 100%; overflow: visible; }
@keyframes sk-pxfly { 0% { transform: translate(-320px, 75vh) rotate(-18deg) scale(.7); } 50% { transform: translate(calc(50vw - 150px), 28vh) rotate(-8deg) scale(1.2); } 100% { transform: translate(calc(100vw + 40px), -260px) rotate(-22deg) scale(.8); } }
.sk-phoenix .w { transform-box: view-box; transform-origin: 172px 108px; animation: sk-flap .34s ease-in-out infinite alternate; }
.sk-phoenix .w2 { animation-delay: -.08s; }
@keyframes sk-flap { from { transform: rotate(8deg) scaleY(1); } to { transform: rotate(-4deg) scaleY(-.45); } }
.sk-phoenix .tail { transform-box: view-box; transform-origin: 128px 126px; animation: sk-tail .5s ease-in-out infinite alternate; }
@keyframes sk-tail { to { transform: rotate(6deg) scaleX(1.06); } }

/* ---------- Новый рекорд (решение): ЭЛТ, счёт, NEW HIGH SCORE */
.sk-hs { display: block; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .6)); animation: sk-fadein .2s both, sk-flicker .12s steps(2) infinite; }
@keyframes sk-flicker { 50% { opacity: .92; } }
.sk-hs .hud { position: absolute; top: 0; left: 0; right: 0; padding: 12px 8px; background: rgba(0, 0, 0, .7); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6vw; font: 15px/1 "sk-pixel", monospace; color: #fff; text-shadow: 2px 2px 0 #000; }
.sk-hs .hud b { font-weight: 400; }
.sk-hs .up { color: #f83800; animation: sk-blink .5s steps(1) infinite; }
.sk-hs.beat .hi { color: #f8b800; animation: sk-blink .25s steps(1) infinite; }
.sk-hs .big { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px; visibility: hidden; }
.sk-hs.win .big { visibility: visible; animation: sk-hsin .45s steps(5) both; }
@keyframes sk-hsin { from { transform: scale(3); opacity: 0; } }
.sk-hs .big b { font: 400 clamp(20px, 5vw, 60px)/1.25 "sk-pixel", monospace; padding: 20px 26px; background: rgba(0, 0, 0, .78); border: 4px solid #fff; box-shadow: 0 0 0 4px #000, 10px 10px 0 4px rgba(0, 0, 0, .45); text-shadow: 4px 4px 0 #000; animation: sk-nes .32s steps(1) infinite; }
@keyframes sk-nes { 0% { color: #f83800; } 25% { color: #f8b800; } 50% { color: #58d854; } 75% { color: #3cbcfc; } }
.sk-hs .big small { font: 14px "sk-pixel", monospace; color: #fff; text-shadow: 2px 2px 0 #000; animation: sk-blink .8s steps(1) infinite; }
.sk-hs.off { animation: sk-fadeout .25s forwards; }
.sk-hs-dot { position: fixed; left: 50%; top: 50%; z-index: 97; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 20px 8px #fff, 0 0 60px 20px rgba(160, 220, 255, .8); pointer-events: none; opacity: 0; animation: sk-hsdot 1s ease-in-out forwards; }
@keyframes sk-hsdot { 0%, 38% { opacity: 0; transform: scale(.3); } 45%, 60% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(.2); } }

/* ---------- Круглый отличник (решение): «5» красной ручкой и красный диплом */
.sk-ex-mark { position: absolute; width: 64px; height: 64px; transform: rotate(var(--rot, -8deg)); filter: drop-shadow(0 1px 0 rgba(120, 0, 0, .25)); }
.sk-ex-mark svg { width: 100%; height: 100%; overflow: visible; }
.sk-ex-mark path { fill: none; stroke: #d0161b; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sk-ink .32s ease-out forwards; }
.sk-ex-mark path.c { stroke-width: 3.2; animation-delay: .28s; animation-duration: .4s; }
@keyframes sk-ink { to { stroke-dashoffset: 0; } }
.sk-dip { perspective: 1400px; animation: sk-dipin .7s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes sk-dipin { from { transform: translateY(80vh) rotate(-24deg) scale(.6); } }
.sk-dip .book { position: relative; width: min(400px, 82vw); aspect-ratio: 1.42; transform-style: preserve-3d; }
.sk-dip .page {
  position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
  background: radial-gradient(ellipse at 50% 40%, #fffef8, #f7efd6); box-shadow: inset 0 0 0 8px #f7efd6, inset 0 0 0 10px #c9a227, inset 0 0 0 13px #f7efd6, inset 0 0 0 14px #c9a227, 0 24px 60px rgba(0, 0, 0, .55);
}
.sk-dip .page small { font: 700 14px/1 Georgia, serif; letter-spacing: .5em; color: #8a6a12; }
.sk-dip .page b { font: 900 clamp(22px, 5.5vw, 38px)/1 Georgia, "Times New Roman", serif; color: #b01217; letter-spacing: .05em; }
.sk-dip .page i { font: italic 14px/1.4 Georgia, serif; color: #5b4a2a; }
.sk-dip .seal {
  position: absolute; right: 22px; bottom: 18px; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font: 900 34px/1 Georgia, serif; color: #7a5200;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #f5c518 45%, #a87400); box-shadow: 0 0 0 4px #e8b923, 0 0 0 6px #a87400, 0 6px 14px rgba(0, 0, 0, .4);
  animation: sk-sealin .4s 1.45s cubic-bezier(.2, 1.6, .5, 1) both;
}
@keyframes sk-sealin { from { transform: scale(3) rotate(-40deg); opacity: 0; } }
.sk-dip .cover { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; animation: sk-dipopen 1s .65s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes sk-dipopen { to { transform: rotateY(-165deg); } }
.sk-dip .front, .sk-dip .back { position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.sk-dip .front {
  display: grid; place-content: center; justify-items: center; gap: 8px;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .2), transparent 50%), repeating-linear-gradient(45deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 5px), linear-gradient(135deg, #c8161d, #7c0a0f);
  box-shadow: inset 0 0 0 7px rgba(0, 0, 0, .12), inset 0 0 0 9px rgba(232, 185, 35, .8), 0 24px 60px rgba(0, 0, 0, .55);
}
.sk-dip .front .emb { font-size: 50px; line-height: 1; color: #f5c518; text-shadow: 0 2px 0 #7a5200, 0 0 18px rgba(255, 210, 60, .7); }
.sk-dip .front b { font: 900 clamp(24px, 5.5vw, 40px)/1 Georgia, serif; letter-spacing: .22em; background: linear-gradient(180deg, #fff3b0, #f5c518 50%, #a87400); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sk-dip .back { transform: rotateY(180deg); background: linear-gradient(135deg, #7c0a0f, #5a070b); box-shadow: inset 0 0 0 9px rgba(232, 185, 35, .5); }

/* ---------- Золотой дождь (решение): надпись с короной и блик по экрану */
.sk-legend { display: grid; justify-items: center; animation: sk-popin .5s cubic-bezier(.2, 1.6, .5, 1); }
.sk-legend svg { width: clamp(70px, 14vw, 140px); margin-bottom: -6px; fill: #f5c518; stroke: #7a5200; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 0 16px rgba(255, 200, 40, .8)); animation: sk-crownfloat 1.6s ease-in-out infinite; }
@keyframes sk-crownfloat { 50% { transform: translateY(-8px) rotate(-4deg); } }
.sk-legend b {
  font: 900 clamp(44px, 11vw, 120px)/1 system-ui, sans-serif; letter-spacing: .08em; color: transparent;
  background: linear-gradient(100deg, #b8860b 0%, #ffcf33 25%, #fffbe6 35%, #ffcf33 45%, #b8860b 60%, #ffe58a 80%, #b8860b 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 4px 0 #6b4a00) drop-shadow(0 0 30px rgba(255, 200, 40, .7)); animation: sk-sweep 1.6s linear infinite;
}
.sk-shine { position: fixed; top: -20vh; bottom: -20vh; left: -60vw; width: 45vw; z-index: 96; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 250, 225, .6), transparent); mix-blend-mode: overlay; transform: skewX(-20deg); animation: sk-shinemove 1.4s ease-in-out forwards; }
@keyframes sk-shinemove { to { transform: translateX(220vw) skewX(-20deg); } }

/* ---------- Ночь Хеллоуина (решение) */
.sk-night-sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; animation: sk-fadein .5s ease-out both;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='150'%3E%3Cpath fill='%23080412' d='M0 150V128Q80 116 160 126T320 122T480 128T640 122V150ZM60 128V98a14 14 0 0 1 28 0V128ZM150 130V104h8V92h6v12h8v6h-8v20ZM230 128V90a20 20 0 0 1 40 0V128ZM400 126V70l6-10 6 10v56ZM404 74h-14v4h14ZM408 74h14v4h-14ZM520 128V100a12 12 0 0 1 24 0V128Z'/%3E%3C/svg%3E") 0 100% / 640px 150px repeat-x,
    radial-gradient(1px 1px at 30px 40px, #fff, transparent) 0 0 / 170px 170px, radial-gradient(1.5px 1.5px at 120px 90px, #e8dcff, transparent) 0 0 / 230px 230px,
    radial-gradient(ellipse at 50% 120%, rgba(255, 110, 0, .35), transparent 55%), linear-gradient(#05020d, #1a0c2e 60%, #2e1240);
}
.sk-night { display: block; }
.sk-night .moon { position: absolute; top: 7%; right: 9%; width: clamp(110px, 17vw, 190px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fffdf0, #ffe9a8 55%, #e9b24a); box-shadow: 0 0 60px #ffd36b, 0 0 160px rgba(255, 200, 80, .5); animation: sk-moonin 1.1s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes sk-moonin { from { transform: translateY(60vh) scale(.6); opacity: 0; } }
.sk-night .moon i { position: absolute; border-radius: 50%; background: rgba(200, 140, 40, .28); box-shadow: inset 2px 2px 4px rgba(120, 70, 0, .3); }
.sk-night .moon i:nth-child(1) { width: 22%; height: 22%; left: 22%; top: 28%; }
.sk-night .moon i:nth-child(2) { width: 14%; height: 14%; left: 58%; top: 56%; }
.sk-night .moon i:nth-child(3) { width: 10%; height: 10%; left: 40%; top: 66%; }
.sk-night .witch { position: absolute; top: 9%; right: -160px; width: 130px; fill: #07030f; animation: sk-witch 2s 1s ease-in-out both; }
@keyframes sk-witch { from { transform: translate(0, 40px) rotate(6deg); } to { transform: translate(calc(-100vw - 200px), -30px) rotate(-6deg); } }
.sk-night .bolt { position: absolute; inset: 0; opacity: 0; background: rgba(220, 230, 255, .55); animation: sk-lightning 3.9s linear both; }
.sk-night .bolt svg { position: absolute; left: 22%; top: 0; width: 70px; height: 62vh; fill: none; stroke: #fff; stroke-width: 4; filter: drop-shadow(0 0 8px #bcd4ff) drop-shadow(0 0 22px #8fb2ff); }
@keyframes sk-lightning { 0%, 39.9% { opacity: 0; } 41% { opacity: 1; } 44% { opacity: 0; } 48% { opacity: .85; } 51%, 100% { opacity: 0; } }
.sk-night .fog { position: absolute; left: -50%; right: -50%; bottom: -6%; height: 34%; background: radial-gradient(ellipse at 20% 60%, rgba(200, 190, 230, .32), transparent 45%), radial-gradient(ellipse at 60% 70%, rgba(200, 190, 230, .26), transparent 45%), radial-gradient(ellipse at 90% 60%, rgba(200, 190, 230, .3), transparent 45%); filter: blur(10px); animation: sk-fog 4s linear both; }
.sk-night .fog.f2 { bottom: -12%; opacity: .7; animation-direction: reverse; }
@keyframes sk-fog { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.sk-night .lanterns { position: absolute; left: 0; right: 0; bottom: 2%; display: flex; justify-content: space-around; font-size: clamp(30px, 5vw, 54px); }
.sk-night .lanterns span { animation: sk-lantern .18s steps(2) infinite alternate, sk-popin .4s cubic-bezier(.2, 1.6, .5, 1) both; filter: drop-shadow(0 0 14px #ff7a00); }
.sk-night .lanterns span:nth-child(2n) { animation-delay: -.09s, .15s; }
.sk-night .lanterns span:nth-child(3n) { animation-delay: -.05s, .3s; }
@keyframes sk-lantern { to { filter: drop-shadow(0 0 26px #ffae00) brightness(1.25); } }
.sk-night b { position: absolute; left: 0; right: 0; top: 36%; text-align: center; font: 900 clamp(38px, 9.5vw, 110px)/1.05 system-ui, sans-serif; letter-spacing: .04em; background: linear-gradient(180deg, #ffe08a, #ff8a00 55%, #c83c00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #3a1200) drop-shadow(0 0 26px rgba(255, 120, 0, .75)); animation: sk-popin .5s .6s cubic-bezier(.2, 1.6, .5, 1) both; }

@media (prefers-reduced-motion: reduce) {
  [data-sk-syntax="holo"] :is(.CodeMirror, .sk-code)::after, [data-sk-syntax="holo"] :is(.CodeMirror-code, .sk-code), .sk-hs { animation: none !important; }
}

/* ---------- DROP TABLE проблемы; (решение): SQL-консоль снизу */
.sk-dw { display: block; }
.sk-dw .con {
  position: absolute; left: 50%; bottom: 24px; width: min(640px, calc(100vw - 32px)); box-sizing: border-box; padding: 14px 18px; border-radius: 12px; transform: translateX(-50%);
  background: rgba(8, 14, 12, .95); border: 1px solid #1f6f4a; color: #d7ffe9; font: 600 clamp(15px, 2.4vw, 20px)/1.4 var(--mono);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, .2), 0 18px 50px rgba(0, 0, 0, .55), 0 0 30px rgba(62, 207, 142, .25); animation: sk-dwup .35s cubic-bezier(.2, 1.3, .5, 1) both;
}
@keyframes sk-dwup { from { transform: translate(-50%, 160%); } }
.sk-dw .p { color: #3ecf8e; }
.sk-dw .q { font: inherit; color: #ffd43b; background: none; padding: 0; }
.sk-dw .cur { display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: #3ecf8e; animation: sk-blink .8s steps(1) infinite; }
.sk-dw.run .q { text-shadow: 0 0 10px rgba(255, 212, 59, .8); }
.sk-dw .res { min-height: 1.4em; margin-top: 6px; font-size: .78em; color: #8aa79a; }
.sk-dw.ok .res { color: #3ecf8e; text-shadow: 0 0 8px rgba(62, 207, 142, .6); }
.sk-dw.out .con { animation: sk-dwdown .35s ease-in forwards; }
@keyframes sk-dwdown { to { transform: translate(-50%, 160%); } }

/* ---------- кнопка и окно «Коллекции» в инвентаре */
.inv-collbtn { align-self: flex-end; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.coll-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px 10px; border-radius: 12px; cursor: pointer; text-align: center;
  border: 1px solid color-mix(in srgb, var(--r) 45%, var(--line)); color: var(--text); font: inherit;
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--r) 24%, transparent), transparent 70%), var(--surface); transition: transform .15s, box-shadow .15s;
}
.coll-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in srgb, var(--r) 35%, transparent); }
.coll-tile:hover .case-img { transform: scale(1.08) rotate(-3deg); }
.coll-tile.full { border-color: var(--r); box-shadow: 0 0 0 1px var(--r), 0 0 16px color-mix(in srgb, var(--r) 40%, transparent); }
.coll-ic { height: 78px; display: grid; place-items: center; }
.coll-ic .case-img { width: auto; height: 74px; max-width: 100%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); transition: transform .15s; }
.coll-tile b { font-size: .95rem; line-height: 1.2; }
.coll-tile small { font-size: .75rem; }
.coll-prog { width: 100%; height: 5px; margin-top: 2px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.coll-prog i { display: block; height: 100%; border-radius: inherit; background: var(--r); }
@media (max-width: 640px) { .coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .coll-ic, .coll-ic .case-img { height: 60px; } }

/* ====================================================================== обмен скинами и история (public/js/trade.js) */
.inv-tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inv-tab { position: relative; padding: 9px 16px 10px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; }
.inv-tab:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.inv-tab.on { color: var(--text); border-bottom-color: #8b5cf6; }
.inv-tab-badge { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .72rem; line-height: 18px; text-align: center; animation: tr-pulse 1.6s infinite; }
@keyframes tr-pulse { 50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, .2); } }
.inv-item.locked { opacity: .62; }
.inv-item.locked .inv-ic { filter: grayscale(.5); }
.inv-lock { position: absolute; bottom: 6px; right: 6px; font-size: .8rem; }

.tg-mark { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: #a5b4fc; white-space: nowrap; }
.tg-mark img { width: 18px; height: 18px; }

.tr-status { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; margin-bottom: 18px;
  background: radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, .22), transparent 60%), var(--surface); border: 1px solid color-mix(in srgb, #6366f1 40%, var(--line)); }
.tr-status.ok { border-color: color-mix(in srgb, #10b981 45%, var(--line)); }
.tr-status.bad { border-color: color-mix(in srgb, #ef4444 50%, var(--line)); }
/* обмен: уровни Python Pass и байты (с 2026-11-15) */
.tu-card.tr-pass .tu-ic, .tu-card.tr-bytes .tu-ic { font-size: 1.9rem; display: grid; place-items: center; }
.tu-card.tr-bytes .tu-nm { font-family: var(--mono, monospace); color: #3dff8f; }
.tu-card.tr-bytes-new { border-style: dashed; }
.tu-card.tr-bytes-new .tu-nm { font-family: inherit; }
.tr-amount-box { text-align: center; }
.tr-amount-ic { font-size: 2.4rem; line-height: 1; margin-bottom: 4px; }
.tr-amount { width: 100%; box-sizing: border-box; margin: 10px 0 6px; padding: 10px 12px; font: 600 1.3rem var(--mono, monospace); text-align: center; border-radius: 10px;
  border: 1px solid color-mix(in srgb, #3dff8f 45%, var(--line)); background: var(--surface); color: inherit; }
.tr-amount-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
/* доверенный аккаунт: золотая переливающаяся кайма (сине-жёлтая, как титул «PyGo») и тёплое свечение */
.tr-status.trusted { border: 1.5px solid transparent;
  background: radial-gradient(ellipse at 0% 0%, rgba(255, 212, 59, .2), transparent 60%) padding-box, linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--sk-ang, 0deg), #ffd43b, #e4ae39, #fff3b0, #3776ab, #ffd43b) border-box;
  box-shadow: 0 0 0 1px rgba(255, 212, 59, .15), 0 6px 26px rgba(228, 174, 57, .28); animation: sk-spin 6s linear infinite; }
.tr-status.trusted b { color: #e4ae39; }
.tr-status.trusted .tr-star { display: inline-block; color: #ffd43b; text-shadow: 0 0 8px rgba(255, 212, 59, .9); animation: sk-twinkle 1.8s ease-in-out infinite; }
.tr-status.trusted .tr-shield { filter: drop-shadow(0 4px 14px rgba(228, 174, 57, .7)) sepia(.35) saturate(1.4); }
body.sk-lite .tr-status.trusted, body.sk-lite .tr-status.trusted .tr-star { animation: none; }
@media (prefers-reduced-motion: reduce) { .tr-status.trusted, .tr-status.trusted .tr-star { animation: none; } }
.tr-status b { font-size: 1.05rem; }
.tr-status p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.tr-shield { width: 64px; height: 64px; filter: drop-shadow(0 4px 14px rgba(99, 102, 241, .55)); }
.tr-status.wait .tr-shield { filter: grayscale(.6) drop-shadow(0 4px 14px rgba(0, 0, 0, .3)); }
.tr-new { white-space: nowrap; background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #06b6d4); border: 0; box-shadow: 0 6px 20px rgba(99, 102, 241, .45); }
.tr-status-act { display: grid; gap: 10px; justify-items: end; }
.tr-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .88rem; font-weight: 600; text-align: left; }
.tr-switch small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.tr-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tr-switch-ui { position: relative; flex: none; width: 40px; height: 22px; border-radius: 11px; background: color-mix(in srgb, var(--text) 22%, transparent); transition: background .2s; }
.tr-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.tr-switch input:checked + .tr-switch-ui { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.tr-switch input:checked + .tr-switch-ui::after { transform: translateX(18px); }
.tr-switch input:focus-visible + .tr-switch-ui { outline: 2px solid #22d3ee; outline-offset: 2px; }
.tr-user:disabled { opacity: .55; cursor: not-allowed; }
.tu-card.tr-case .tu-ic { height: 52px; }
.tu-card.tr-case .tu-ic img { height: 52px; width: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.tu-card.tr-hidden { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--r) 35%, transparent), transparent 70%), linear-gradient(180deg, #2a2340, #1a1629 78%); }
.tu-card.tr-hidden .tu-ic { font-size: 30px; color: var(--r); text-shadow: 0 0 14px var(--r); animation: tr-hid 2.6s ease-in-out infinite; }
@keyframes tr-hid { 50% { opacity: .55; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .tu-card.tr-hidden .tu-ic { animation: none; } }
.tr-needs { display: grid; gap: 6px; margin-top: 10px; max-width: 520px; }
.tr-need { display: grid; grid-template-columns: 1fr 140px 56px; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.tr-bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.tr-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6366f1, #06b6d4); }
.tr-section { margin: 0 0 22px; }
.tr-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.tr-count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 11px; background: color-mix(in srgb, #8b5cf6 25%, transparent); color: var(--text); font-size: .78rem; line-height: 22px; text-align: center; font-weight: 700; }
.tr-offer { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.tr-offer.st-sent:not(.st-done) { border-color: color-mix(in srgb, #8b5cf6 45%, var(--line)); }
.tr-offer.st-done { border-color: color-mix(in srgb, #10b981 40%, var(--line)); }
.tr-offer.st-cancelled, .tr-offer.st-declined, .tr-offer.st-expired, .tr-offer.st-failed { opacity: .7; }
.tr-offer-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tr-offer-h small { margin-left: auto; }
.tr-badge { padding: 2px 9px; border-radius: 10px; font-size: .74rem; font-weight: 700; background: color-mix(in srgb, var(--text) 10%, transparent); }
.tr-badge.st-sent, .tr-badge.st-draft { background: rgba(139, 92, 246, .22); color: #c4b5fd; }
.tr-badge.st-done { background: rgba(16, 185, 129, .2); color: #34d399; }
.tr-badge.st-declined, .tr-badge.st-failed, .tr-badge.st-expired, .tr-badge.st-cancelled { background: rgba(239, 68, 68, .16); color: #f87171; }
.tr-swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.tr-swap.big { margin: 6px 0 14px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.tr-side-t { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.tr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tr-cards .tu-card { --surface: #221d38; --text: #ece8ff; --muted: #a9a2c8; }
.tr-none { padding: 18px 8px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; font-size: .85rem; }
.tr-arrows { width: 40px; height: 32px; color: #a78bfa; filter: drop-shadow(0 0 6px rgba(167, 139, 250, .55)); }
.tr-arrows svg { width: 100%; height: 100%; overflow: visible; }
.tr-arrows path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tr-arrows .tr-a2 path { stroke: #67e8f9; }
.tr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tr-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); }

/* окна обмена — в стиле контракта, но фиолетово-бирюзовые */
.tr-overlay { z-index: 94; background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, .22), transparent 60%), rgba(6, 8, 20, .9); }
.tr-box { background: radial-gradient(ellipse at 50% -20%, rgba(99, 102, 241, .2), transparent 55%), linear-gradient(180deg, #1a1b36, #111226); border-color: rgba(129, 140, 248, .35); }
.tr-box .tu-head h2 { background: linear-gradient(180deg, #e0e7ff, #a5b4fc 55%, #67e8f9); -webkit-background-clip: text; background-clip: text; }
.tr-box .tr-go { background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #06b6d4); border: 0; }
.tr-ask { width: min(440px, 100%); }
.tr-search { width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3); color: var(--text); }
.tr-users { display: grid; gap: 6px; margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.tr-user, .tr-partner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; text-align: left; }
.tr-user { cursor: pointer; }
.tr-user:hover { background: rgba(129, 140, 248, .14); border-color: rgba(129, 140, 248, .4); }
.tr-user small, .tr-partner small { display: block; color: var(--muted); }
.tr-partner { margin-bottom: 12px; }
.tr-partner .btn { margin-left: auto; }
.tr-ava { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #6366f1, #06b6d4); color: #fff; }
.tr-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tr-pane { padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.tr-pane-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 10px; }
.tr-modes { margin-bottom: 10px; }
.tr-found { padding: 8px; border-radius: 14px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .06); }
.tr-found + .tr-found { margin-top: 8px; }
.tr-found .tr-user { width: 100%; }
.tr-found-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.tr-isearch { padding: 9px 12px; font-size: .95rem; margin-bottom: 10px; }
.tr-grid > [hidden] { display: none; }
.tr-grid > .muted { grid-column: 1 / -1; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.tr-warn { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(99, 102, 241, .12); border: 1px solid rgba(129, 140, 248, .3); }
.tr-warn p { margin: 0 0 6px; font-size: .9rem; color: #d6d9ff; }
.tr-warn p:last-child { margin: 0; }

/* окно кода из письма */
.tr-code { width: min(460px, 100%); text-align: center; }
.tr-code h2 { margin: 6px 0 6px; }
.tr-code-shield { position: relative; width: 108px; height: 108px; margin: 4px auto 6px; display: grid; place-items: center; }
.tr-code-shield img { position: relative; width: 84px; height: 84px; filter: drop-shadow(0 6px 18px rgba(99, 102, 241, .6)); animation: tr-float 3s ease-in-out infinite; }
.tr-code-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, #6366f1, #06b6d4, transparent 70%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: tr-spin 2.4s linear infinite; }
.tr-code.checking .tr-code-ring { animation-duration: .5s; }
.tr-code.passed .tr-code-ring { background: conic-gradient(#10b981, #34d399, #10b981); animation: none; }
.tr-code.passed img { filter: drop-shadow(0 0 22px rgba(16, 185, 129, .9)); }
.tr-code.denied { animation: tr-shake .45s; }
.tr-code.denied .tr-code-ring { background: conic-gradient(#ef4444, #f87171, #ef4444); }
.tr-code form { display: grid; gap: 10px; margin: 14px 0 6px; }
.tr-code-in { width: 100%; padding: 12px 10px; text-align: center; font: 800 2rem/1 var(--mono, monospace); letter-spacing: .45em; text-indent: .45em; border-radius: 14px;
  border: 2px solid rgba(129, 140, 248, .55); background: rgba(0, 0, 0, .35); color: #e0e7ff; }
.tr-code-in:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); }
.tr-code-foot { margin: 4px 0; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
@keyframes tr-float { 50% { transform: translateY(-5px); } }
@keyframes tr-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* история */
.hs-filter { margin-bottom: 14px; }
.hs-day h3 { margin: 18px 0 8px; font-size: .95rem; color: var(--muted); }
.hs-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 6px; }
.hs-trade { border-color: color-mix(in srgb, #8b5cf6 40%, var(--line)); }
.hs-ic { font-size: 1.2rem; text-align: center; }
.hs-tx { line-height: 1.9; }
.hs-chip { display: inline-block; margin: 0 3px; padding: 0 8px; border-radius: 8px; font-size: .85rem; line-height: 1.6; font-weight: 700;
  background: color-mix(in srgb, var(--r, #888) 18%, transparent); border-bottom: 2px solid var(--r, #888); }
.hs-coll { font-weight: 700; color: var(--r); }

/* ====================================================================== анимация обмена */
/* z-index 94: под слоями эффектов .sk-fx (95, искры skins.burst) и .sk-over (96, праздник) */
.trfx { position: fixed; inset: 0; z-index: 94; overflow: hidden; color: #eef; display: grid; animation: trfx-in .35s ease-out both; }
.trfx.out { animation: trfx-in .35s ease-in reverse both; }
@keyframes trfx-in { from { opacity: 0; } }
.trfx-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #241a5c 0%, #0d0b25 45%, #04030c 100%); }
.trfx-stars { position: absolute; inset: -50%; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 60%, #fff6, transparent),
  radial-gradient(1.2px 1.2px at 40% 80%, #a5b4fc99, transparent), radial-gradient(1px 1px at 85% 20%, #67e8f999, transparent);
  background-size: 180px 180px, 240px 240px, 300px 300px, 210px 210px; animation: trfx-drift 40s linear infinite; opacity: .8; }
@keyframes trfx-drift { to { transform: rotate(360deg); } }
.trfx-stage { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4vw; padding: 9vh 4vw 16vh; }
/* без backdrop-filter: под панелью вращаются звёзды, и размытие пересчитывалось бы каждый кадр — фон просто плотнее */
.trfx-side { padding: 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(38, 32, 84, .72), rgba(16, 13, 40, .66)); border: 1px solid rgba(165, 180, 252, .25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); min-width: 0; }
.trfx-name { font: 800 1.25rem/1.2 inherit; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(99, 102, 241, .8); }
.trfx-name small { display: block; font-size: .68rem; letter-spacing: .25em; color: #a5b4fc; }
.trfx-side.right { text-align: right; }
.trfx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; min-height: 120px; }
.trfx-card { --surface: #221d38; --text: #ece8ff; --muted: #a9a2c8; box-shadow: 0 0 22px color-mix(in srgb, var(--r) 55%, transparent); will-change: transform; }
/* пульс свечения редких: готовая тень на ::before, мигает только её прозрачность (box-shadow в кадре — перерисовка) */
.trfx-card[data-r="legendary"]::before, .trfx-card[data-r="mythic"]::before, .trfx-card[data-r="secret"]::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 38px color-mix(in srgb, var(--r) 90%, transparent); opacity: 0; animation: trfx-shine 1.6s ease-in-out infinite; }
@keyframes trfx-shine { 50% { opacity: 1; } }
.trfx-card.ok::after { content: '✓'; position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: #10b981; color: #fff; font: 800 .8rem/22px sans-serif; text-align: center;
  box-shadow: 0 0 12px #10b981; animation: trfx-pop .35s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes trfx-pop { from { transform: scale(0); } }
.trfx-empty { padding: 30px 8px; text-align: center; color: #a9a2c8; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 12px; grid-column: 1 / -1; }
.trfx-core { position: relative; width: clamp(150px, 22vw, 240px); aspect-ratio: 1; display: grid; place-items: center; }
.trfx-ring { position: absolute; border-radius: 50%; animation: tr-spin 6s linear infinite; }
.trfx-ring.r1 { inset: 0; background: conic-gradient(from 0deg, transparent, #6366f1, #22d3ee, transparent 60%, #a78bfa, transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); filter: drop-shadow(0 0 10px #6366f1); }
.trfx-ring.r2 { inset: 12%; border: 2px dashed rgba(165, 180, 252, .55); animation-duration: 9s; animation-direction: reverse; }
.trfx-ring.r3 { inset: -10%; border: 1px solid rgba(34, 211, 238, .25); box-shadow: 0 0 40px rgba(99, 102, 241, .3) inset; animation-duration: 14s; }
.trfx-core.fast .trfx-ring.r1 { animation-duration: .6s; }
.trfx-core.fast .trfx-ring.r2 { animation-duration: .9s; }
.trfx-core.fast .trfx-ring.r3 { animation-duration: 1.4s; }
.trfx-portal { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #a5b4fc 18%, #6366f1 42%, #1e1b4b 70%, transparent 72%); opacity: 0; transform: scale(.4);
  transition: opacity .5s, transform .5s; filter: blur(2px); }
.trfx-core.charged .trfx-portal { opacity: .85; transform: scale(1); }
.trfx-core.fast .trfx-portal { transform: scale(1.35); }
/* пульс портала: светлый слой поверх, мигает прозрачностью (раньше — filter blur+brightness в каждом кадре) */
.trfx-portal::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(199, 210, 254, .55) 40%, transparent 70%); opacity: 0; }
.trfx-core.charged .trfx-portal::after { animation: trfx-portal 1.2s ease-in-out infinite; }
@keyframes trfx-portal { 50% { opacity: .6; } }
.trfx-shield { position: relative; width: 62%; filter: drop-shadow(0 0 26px rgba(99, 102, 241, .9)); }
.trfx-label { position: absolute; left: 50%; bottom: 10vh; transform: translateX(-50%); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; color: #a5b4fc; white-space: nowrap;
  text-shadow: 0 0 12px rgba(99, 102, 241, .9); }
.trfx.final .trfx-label { opacity: 0; transition: opacity .3s; }
.trfx-label.ok { color: #34d399; text-shadow: 0 0 12px rgba(16, 185, 129, .9); }
.trfx-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 6px; opacity: 0; pointer-events: none; transform: translateX(-10vw);
  background: linear-gradient(180deg, transparent, #22d3ee 20%, #fff 50%, #22d3ee 80%, transparent); box-shadow: 0 0 30px 10px rgba(34, 211, 238, .45); }
.trfx-scan.on { animation: trfx-scan .9s cubic-bezier(.5, 0, .5, 1) 2 alternate; }
/* едет через transform, а не left: без пересчёта раскладки и перерисовки тени в каждом кадре */
@keyframes trfx-scan { 0% { transform: translateX(-2vw); opacity: 1; } 100% { transform: translateX(102vw); opacity: 1; } }
.trfx-flash { position: absolute; inset: 0; background: radial-gradient(circle, #fff, #c7d2fe 40%, rgba(99, 102, 241, .4) 70%); opacity: 0; pointer-events: none; }
.trfx-bolts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
/* свечение молний — широкие полупрозрачные копии линий (polyline.g из trade.js) вместо двух drop-shadow на весь экран */
.trfx-bolts polyline { fill: none; stroke: #e0e7ff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.trfx-bolts polyline.g { stroke: #22d3ee; stroke-width: 18; opacity: .14; }
.trfx-bolts polyline.g + polyline.g { stroke: #818cf8; stroke-width: 9; opacity: .35; }
.trfx-stamp { position: absolute; left: 50%; top: 5vh; transform: translateX(-50%) scale(0) rotate(-12deg); padding: 10px 26px 8px; border: 4px solid #34d399; border-radius: 12px; color: #34d399; text-align: center;
  background: rgba(6, 20, 16, .55); box-shadow: 0 0 30px rgba(16, 185, 129, .5), inset 0 0 20px rgba(16, 185, 129, .25); opacity: 0; }
.trfx-stamp b { display: block; font: 900 clamp(1.4rem, 4vw, 2.4rem)/1.1 Georgia, serif; letter-spacing: .08em; }
.trfx-stamp small { font-size: .8rem; letter-spacing: .1em; }
.trfx-stamp.on { animation: trfx-stamp .45s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes trfx-stamp { 0% { transform: translateX(-50%) scale(3.2) rotate(-12deg); opacity: 0; } 70% { opacity: 1; } 100% { transform: translateX(-50%) scale(1) rotate(-6deg); opacity: 1; } }
.trfx-done { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; padding: 12px 28px; font-size: 1.05rem;
  background: linear-gradient(135deg, #10b981, #06b6d4); border: 0; box-shadow: 0 10px 30px rgba(16, 185, 129, .45); transition: opacity .4s, transform .4s; }
.trfx-done.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.trfx.reduce .trfx-stamp { animation: none; transform: translateX(-50%) rotate(-6deg); opacity: 1; }
.trfx.reduce .trfx-done { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
/* лёгкий режим (body.sk-lite): звёзды стоят, без свечений-фильтров и мигающих теней; кольца вращаются (transform — дёшево) */
body.sk-lite .trfx-stars, body.sk-lite .trfx-core.charged .trfx-portal::after, body.sk-lite .trfx-card::before { animation: none; }
body.sk-lite :is(.trfx-ring.r1, .trfx-shield, .trfx-portal) { filter: none; }
body.sk-lite .trfx-ring.r3 { box-shadow: none; }

@media (max-width: 760px) {
  .tr-status { grid-template-columns: 48px 1fr; }
  .tr-status .tr-status-act { grid-column: 1 / -1; justify-items: stretch; }
  .tr-shield { width: 48px; height: 48px; }
  .tr-need { grid-template-columns: 1fr 90px 48px; }
  .tr-swap, .tr-panes { grid-template-columns: 1fr; }
  .tr-arrows { justify-self: center; transform: rotate(90deg); }
  .trfx-stage { grid-template-columns: 1fr; gap: 14px; padding: 13vh 14px 14vh; align-content: center; }
  .trfx-core { width: 120px; justify-self: center; }
  .trfx-side.right { text-align: left; }
  .trfx-cards { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); min-height: 90px; }
  .trfx-label { bottom: 12vh; font-size: .72rem; }
}

/* ---------- лёгкий режим (слабые компьютеры; body.sk-lite ставит skins.js): постоянные анимации скинов стоят,
   фон «лава» без размытия. Примерку в инвентаре (.inv-modal) не трогаем — там скин виден как есть. */
body.sk-lite[data-sk-bg]::before { animation: none !important; }
body.sk-lite[data-sk-bg="lava"]::before { filter: none; }
body.sk-lite :is([data-sk-frame], [data-sk-func] :is(.cm-def, .cm-call), [data-sk-syntax] :is(.CodeMirror-code, .sk-code, .cm-keyword, .cm-def, .CodeMirror-gutters), [data-sk-term], [data-sk-nick], .sk-title):not(.inv-modal *),
body.sk-lite :is([data-sk-syntax] :is(.CodeMirror, .sk-code), [data-sk-nick], .sk-title):not(.inv-modal *)::before,
body.sk-lite :is([data-sk-syntax] :is(.CodeMirror, .sk-code), [data-sk-nick], .sk-title, [data-sk-func] :is(.cm-def, .cm-call)):not(.inv-modal *)::after { animation: none !important; }

/* ---------- праздник выпадения редкого скина (DROP в skins.js): легендарный / мифический / секретный.
   Только transform и opacity; затемнение (.sk-dr-dim) — под холстом частиц, надписи — над ним. */
.sk-dr-banner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; text-align: center; animation: sk-dr-pop .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.sk-dr-banner b { display: block; white-space: nowrap; font: 900 clamp(32px, 8.5vw, 104px)/1 system-ui, sans-serif; letter-spacing: .05em;
  filter: drop-shadow(0 4px 0 color-mix(in srgb, var(--c) 35%, #000)) drop-shadow(0 0 24px color-mix(in srgb, var(--c) 70%, transparent)); }
.sk-dr-banner b span { display: inline-block; background: linear-gradient(180deg, #fff 15%, color-mix(in srgb, var(--c) 45%, #fff) 45%, var(--c) 72%, color-mix(in srgb, var(--c) 60%, #000));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.sk-dr-banner small { font: 800 clamp(12px, 1.5vw, 17px)/1 system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: #fff; text-shadow: 0 0 10px var(--c), 0 1px 2px #000; }
@keyframes sk-dr-pop { from { transform: scale(.3); opacity: 0; } }
@keyframes sk-dr-fadein { from { opacity: 0; } }
.sk-dr-banner.myth { animation: sk-dr-slam .45s cubic-bezier(.5, 0, .6, 1.4) both; }
@keyframes sk-dr-slam { 0% { transform: scale(2.8) rotate(-4deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.sk-dr-banner.sec { animation: none; }
.sk-dr-banner.sec b span { animation: sk-dr-drop .5s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes sk-dr-drop { from { transform: translateY(-60vh) rotate(-20deg); opacity: 0; } 40% { opacity: 1; } }
.sk-dr-banner.sec b::before, .sk-dr-banner.sec b::after { content: "★"; display: inline-block; font-size: .5em; vertical-align: middle; margin: 0 .3em; color: var(--c); animation: sk-dr-pop .5s .95s cubic-bezier(.2, 1.6, .4, 1) both; }
.sk-dr-banner.sec small { animation: sk-dr-fadein .6s 1s both; }
/* легендарный: столб света сверху */
.sk-dr-beam { position: absolute; left: 50%; top: 0; bottom: 0; width: clamp(70px, 11vw, 150px); margin-left: calc(clamp(70px, 11vw, 150px) / -2); transform-origin: 50% 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 50%, transparent) 30%, rgba(255, 255, 255, .85) 50%, color-mix(in srgb, var(--c) 50%, transparent) 70%, transparent);
  animation: sk-dr-beam 1.2s ease-out forwards; }
@keyframes sk-dr-beam { 0% { transform: scaleY(0); opacity: 1; } 25% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) scaleX(3); opacity: 0; } }
/* затемнение (мифический, секретный) */
.sk-dr-dim { position: fixed; inset: 0; z-index: 94; pointer-events: none; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 28%, rgba(0, 0, 0, .5)), rgba(0, 0, 0, .9) 75%); animation: sk-dr-fadein .45s ease-out both; }
.sk-dr-dim.deep { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 16%, rgba(0, 0, 0, .78)), rgba(0, 0, 0, .96) 70%); animation-duration: .7s; }
.sk-dr-dim.out { animation: sk-fadeout .6s ease-in forwards; }
/* мифический: ядро, которое набирает энергию и схлопывается перед взрывом */
.sk-dr-core { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; background: radial-gradient(circle, #fff 0 14%, var(--c) 38%, transparent 70%);
  animation: sk-dr-core .95s ease-in forwards; }
@keyframes sk-dr-core { 0% { transform: scale(0); } 80% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(.1); opacity: 0; } }
/* лучи (вращаются через transform) */
.sk-dr-rays { --s: min(1500px, 120vmax); position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: repeating-conic-gradient(color-mix(in srgb, var(--c) 42%, transparent) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 3%, transparent 50%); mask: radial-gradient(circle, #000 3%, transparent 50%); animation: sk-rot 10s linear infinite, sk-dr-fadein .5s ease-out both; }
.sk-dr-rays.r2 { background: repeating-conic-gradient(rgba(255, 255, 255, .2) 0 2deg, transparent 2deg 24deg); animation-duration: 16s, .5s; animation-direction: reverse, normal; }
/* секретный: печать-звезда за надписью */
.sk-dr-sigil { --s: min(72vmin, 560px); position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); animation: sk-dr-sigilin .9s cubic-bezier(.2, 1.2, .4, 1) both; }
.sk-dr-sigil svg { width: 100%; height: 100%; fill: none; stroke: var(--c); stroke-width: 1.4; opacity: .8; animation: sk-rot 18s linear infinite; }
.sk-dr-sigil svg .in { stroke: #fff6cf; opacity: .6; }
@keyframes sk-dr-sigilin { from { transform: scale(.2) rotate(-90deg); opacity: 0; } }
.sk-dr-flash { z-index: 96; pointer-events: none; background: radial-gradient(circle, #fff 10%, var(--c) 45%, transparent 80%); }
.sk-shock.leg { border-color: rgba(250, 200, 255, .95); box-shadow: 0 0 30px #d32ce6, inset 0 0 30px #d32ce6; }
.sk-shock.myth { border-color: rgba(255, 210, 190, .95); box-shadow: 0 0 30px #eb4b4b, inset 0 0 30px #eb4b4b; }
.sk-shock.sec { border-color: rgba(255, 240, 190, .95); box-shadow: 0 0 34px #e4ae39, inset 0 0 30px #f5c518; }
body.sk-lite .sk-dr-banner b { filter: none; }
body.sk-lite .sk-dr-rays.r2 { display: none; }

/* ---------- DATA LEAK (ивентовая коллекция leak, 2026-11-13; магазин — public/js/leak.js, css/leak.css) */
[data-sk-syntax="imageboard"] { --sk-bg: #ffffee; --sk-fg: #800000; --sk-gut: #f0e0d6; --sk-ln: #b7a08f; --c-keyword: #0f0c5d; --c-def: #af0a0f; --c-string: #789922; --c-number: #dd0000; --c-comment: #789922; --c-builtin: #34345c; --c-operator: #800000; --sk-sel: rgba(120, 153, 34, .22); }
[data-sk-syntax="imageboard"] .cm-keyword { font-weight: 700; }
[data-sk-syntax="imageboard"] .cm-comment { font-style: normal; }
[data-sk-syntax="imageboard"] .CodeMirror-gutters { border-right: 1px solid #d9bfb7; }
.sk-title[data-t="anon"]::before { content: "👤 "; }
.sk-title[data-t="leaker"]::before { content: "💾 "; }
[data-sk-cursor="terminal"] :is(.CodeMirror-cursor, .sk-caret) { border-left: none; width: .6em; background: rgba(61, 255, 143, .85); box-shadow: 0 0 8px rgba(61, 255, 143, .7); }
.output[data-sk-term="pastebin"] { position: relative; padding-top: 34px; background: #1d1f21; color: #c5c8c6; font-family: var(--mono); border: 1px solid #373b41; }
.output[data-sk-term="pastebin"]::before { content: "PASTE #A7F3K9 · RAW · syntax: python · expires: never"; position: absolute; left: 0; right: 0; top: 0; height: 24px; padding: 0 10px;
  font: 600 .7rem/24px var(--mono); color: #8abeb7; background: #282a2e; border-bottom: 1px solid #373b41; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.output[data-sk-term="pastebin"] .err { color: #cc6666; }
.output[data-sk-term="pastebin"].empty, .output[data-sk-term="pastebin"] .note-line.muted { color: #707880; }
[data-sk-nick="greentext"] { color: #789922 !important; font-family: var(--mono) !important; font-weight: 700; }
[data-sk-nick="greentext"]::before { content: ">"; }
@keyframes sk-rec { 50% { opacity: .25; } }
[data-sk-frame="cctv"] { position: relative; border: 2px solid #1a1a1a; box-shadow: 0 0 0 3px #3a3a3a, 0 8px 20px rgba(0, 0, 0, .35); }
[data-sk-frame="cctv"]::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .09) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .28) 100%); }
[data-sk-frame="cctv"]::after { content: "● REC   CAM-07"; position: absolute; top: 6px; right: 10px; z-index: 7; pointer-events: none; font: 700 .7rem/1 var(--mono); letter-spacing: .08em;
  color: #ff3b3b; text-shadow: 0 0 6px rgba(255, 59, 59, .7); animation: sk-rec 1.2s steps(1) infinite; white-space: pre; }
[data-sk-func="redacted"] :is(.cm-def, .cm-call) { background: #0b0b0b; color: rgba(255, 255, 255, .62) !important; padding: 0 3px; border-radius: 2px; box-shadow: 0 0 0 1px #0b0b0b; text-shadow: none; }
[data-sk-func="redacted"] .cm-def { font-weight: 700; }
@keyframes sk-botnet { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
[data-sk-bg="botnet"]::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='911' height='787'%3E%3Cpath d='M387 651L572 746M-22 37L54 -182M-22 824L54 605M889 37L965 -182M889 824L965 605M724 550L470 486M34 341L254 327M488 288L665 227M295 119L254 327M488 288L470 486M131 93L254 327M165 458L54 605M-22 37L131 93M889 37L1042 93M572 746L724 550M387 651L470 486M889 37L665 227M295 119L488 288M665 227L559 117M34 341L165 458M572 -41L559 117M572 746L559 904M-187 550L54 605M724 550L965 605M295 119L131 93M488 288L559 117M165 458L254 327' fill='none' stroke='%233dff8f' stroke-opacity='0.2'/%3E%3Cg fill='%233dff8f' fill-opacity='0.6'%3E%3Ccircle cx='488' cy='288' r='2.6'/%3E%3Ccircle cx='572' cy='746' r='3.7'/%3E%3Ccircle cx='889' cy='37' r='4.2'/%3E%3Ccircle cx='131' cy='93' r='3.1'/%3E%3Ccircle cx='165' cy='458' r='3.8'/%3E%3Ccircle cx='724' cy='550' r='3.0'/%3E%3Ccircle cx='254' cy='327' r='3.2'/%3E%3Ccircle cx='559' cy='117' r='3.0'/%3E%3C/g%3E%3Cg fill='%23ff2a6d' fill-opacity='0.75'%3E%3Ccircle cx='295' cy='119' r='3.8'/%3E%3Ccircle cx='34' cy='341' r='2.6'/%3E%3Ccircle cx='387' cy='651' r='2.7'/%3E%3Ccircle cx='665' cy='227' r='4.5'/%3E%3Ccircle cx='54' cy='605' r='2.8'/%3E%3Ccircle cx='470' cy='486' r='3.9'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 911px 787px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='613' height='547'%3E%3Cpath d='M402 335L490 397M376 431L490 397M518 284L490 397M214 -14L374 1M214 533L374 548M293 379L376 431M293 379L214 533M52 87L85 -7M52 634L85 540M584 198L518 284M-6 432L85 540M607 432L698 540M518 284L607 432M376 -116L374 1M376 431L374 548M376 431L402 335M214 533L85 540M584 198L465 163M293 379L137 296M74 213L52 87M465 163L371 188M607 432L490 397M371 188L402 335M137 296L74 213M-29 198L137 296M584 198L750 296M374 1L511 33M293 379L402 335M465 163L518 284M-29 198L74 213M584 198L687 213M465 163L511 33' fill='none' stroke='%233dff8f' stroke-opacity='0.14'/%3E%3Cg fill='%233dff8f' fill-opacity='0.45'%3E%3Ccircle cx='293' cy='379' r='2.5'/%3E%3Ccircle cx='584' cy='198' r='2.7'/%3E%3Ccircle cx='518' cy='284' r='2.9'/%3E%3Ccircle cx='137' cy='296' r='2.5'/%3E%3Ccircle cx='376' cy='431' r='2.8'/%3E%3Ccircle cx='607' cy='432' r='2.5'/%3E%3Ccircle cx='371' cy='188' r='2.8'/%3E%3Ccircle cx='374' cy='1' r='2.9'/%3E%3Ccircle cx='374' cy='548' r='2.9'/%3E%3Ccircle cx='74' cy='213' r='2.7'/%3E%3Ccircle cx='402' cy='335' r='2.6'/%3E%3Ccircle cx='490' cy='397' r='2.1'/%3E%3Ccircle cx='85' cy='540' r='2.2'/%3E%3Ccircle cx='511' cy='33' r='2.7'/%3E%3C/g%3E%3Cg fill='%23ff2a6d' fill-opacity='0.60'%3E%3Ccircle cx='465' cy='163' r='2.6'/%3E%3Ccircle cx='214' cy='533' r='2.1'/%3E%3Ccircle cx='52' cy='87' r='3.0'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 613px 547px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='397' height='353'%3E%3Cpath d='M68 167L129 183M190 332L136 294M262 50L302 102M223 268L284 310M29 236L-4 294M426 236L393 294M29 236L-51 237M426 236L346 237M374 92L302 102M87 336L26 348M26 -5L43 57M26 348L43 410M99 98L43 57M87 336L136 294M68 167L99 98M393 294L346 237M243 178L205 120M-4 294L26 348M393 294L423 348M223 268L190 332' fill='none' stroke='%233dff8f' stroke-opacity='0.08'/%3E%3Cg fill='%233dff8f' fill-opacity='0.3'%3E%3Ccircle cx='68' cy='167' r='1.8'/%3E%3Ccircle cx='129' cy='183' r='1.6'/%3E%3Ccircle cx='99' cy='98' r='1.8'/%3E%3Ccircle cx='223' cy='268' r='1.9'/%3E%3Ccircle cx='243' cy='178' r='1.6'/%3E%3Ccircle cx='190' cy='332' r='1.8'/%3E%3Ccircle cx='374' cy='92' r='1.6'/%3E%3Ccircle cx='29' cy='236' r='1.8'/%3E%3Ccircle cx='262' cy='50' r='1.9'/%3E%3Ccircle cx='87' cy='336' r='1.5'/%3E%3Ccircle cx='393' cy='294' r='1.3'/%3E%3Ccircle cx='205' cy='120' r='1.4'/%3E%3Ccircle cx='26' cy='348' r='1.8'/%3E%3Ccircle cx='43' cy='57' r='1.2'/%3E%3Ccircle cx='302' cy='102' r='1.6'/%3E%3Ccircle cx='136' cy='294' r='1.8'/%3E%3Ccircle cx='346' cy='237' r='1.4'/%3E%3Ccircle cx='284' cy='310' r='1.5'/%3E%3C/g%3E%3Cg fill='%23ff2a6d' fill-opacity='0.45'%3E%3C/g%3E%3C/svg%3E") 0 0 / 397px 353px,
    radial-gradient(ellipse at 30% 20%, rgba(61, 255, 143, .12), transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(255, 42, 109, .1), transparent 50%), #040a08;
  animation: sk-botnet 3s ease-in-out infinite;
}
@keyframes sk-hackednick { 0%, 82%, 100% { text-shadow: -2px 0 #ff2a6d, 2px 0 #00e5ff; transform: none; filter: none; } 84% { text-shadow: -5px 0 #ff2a6d, 5px 0 #00e5ff; transform: skewX(-14deg); } 87% { text-shadow: 4px 0 #ff2a6d, -4px 0 #00e5ff; transform: translateX(2px) skewX(10deg); } 90% { transform: none; filter: invert(1); } 92% { filter: none; } }
[data-sk-nick="hacked"] { display: inline-block; font-weight: 800; color: var(--text) !important; animation: sk-hackednick 2.2s steps(1) infinite; }
[data-sk-nick="hacked"]::before { content: "☠ "; color: #3dff8f; }
[data-sk-syntax="hacked"] { --sk-bg: #020403; --sk-fg: #c8ffd9; --sk-gut: #000; --sk-ln: #1d5a3a; --c-keyword: #3dff8f; --c-def: #ff2a6d; --c-string: #00e5ff; --c-number: #f8ff4d; --c-comment: #2f6b4b; --c-builtin: #7dffb3; --c-operator: #8fdcb0; --sk-sel: rgba(61, 255, 143, .2); }
[data-sk-syntax="hacked"] .cm-keyword { font-weight: 700; text-shadow: 0 0 6px rgba(61, 255, 143, .7); }
[data-sk-syntax="hacked"] .cm-def { text-shadow: -1px 0 rgba(0, 229, 255, .7), 1px 0 rgba(255, 42, 109, .7); }
@keyframes sk-hackslice { 0%, 70%, 100% { background-position: 0 -200px, 0 0; opacity: 0; } 71% { opacity: 1; background-position: 0 20%, 0 0; } 74% { background-position: 0 55%, 0 0; } 77% { background-position: 0 30%, 0 0; } 80% { background-position: 0 85%, 0 0; opacity: 1; } 81% { opacity: 0; } }
@keyframes sk-hackjit { 0%, 70%, 82%, 100% { transform: none; } 72% { transform: translateX(-3px); } 75% { transform: translateX(4px) skewX(-2deg); } 78% { transform: translateX(-2px); } }
[data-sk-syntax="hacked"] :is(.CodeMirror, .sk-code) { position: relative; }
[data-sk-syntax="hacked"] :is(.CodeMirror-code, .sk-code) { animation: sk-hackjit 3.4s steps(1) infinite; }
[data-sk-syntax="hacked"] :is(.CodeMirror, .sk-code)::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent 0 46%, rgba(255, 42, 109, .35) 46% 48%, rgba(0, 229, 255, .3) 48% 50%, transparent 50%) 0 0 / 100% 120px no-repeat,
    repeating-linear-gradient(180deg, rgba(61, 255, 143, .05) 0 1px, transparent 1px 3px);
  animation: sk-hackslice 3.4s steps(1) infinite; }

/* проверка «Брутфорс» */
.sk-check .sk-bf { min-width: 240px; padding: 8px 14px; border-radius: 8px; background: #050807; border: 1px solid #18352a; font-family: var(--mono); text-align: center; }
.sk-bf .lbl { font-size: .68rem; letter-spacing: .1em; color: #6f9c85; }
.sk-bf .pw { margin: 3px 0; font-size: 1.25rem; letter-spacing: .18em; }
.sk-bf .pw b { color: #3dff8f; text-shadow: 0 0 8px rgba(61, 255, 143, .8); }
.sk-bf .pw i { font-style: normal; color: #2f6b4b; }
.sk-bf .st { font-size: .72rem; color: #a8ffcf; }
.sk-bf.ok .st { color: #3dff8f; font-weight: 700; letter-spacing: .14em; }

/* ошибка «Вас отследили» */
.sk-traced-o { background: radial-gradient(ellipse at center, rgba(160, 0, 20, .35), rgba(60, 0, 8, .6)); }
.sk-traced { text-align: center; font-family: var(--mono); animation: sk-popin .3s cubic-bezier(.2, 1.6, .5, 1); }
.sk-traced .bar { width: min(360px, 76vw); height: 8px; margin: 0 auto 14px; border: 1px solid #ff3b3b; border-radius: 2px; overflow: hidden; }
.sk-traced .bar i { display: block; height: 100%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: sk-trace .7s ease-out both; }
@keyframes sk-trace { from { width: 0; } to { width: 100%; } }
.sk-traced b { position: relative; display: block; font: 700 clamp(28px, 6vw, 60px)/1 var(--mono); color: #fff; letter-spacing: .06em; text-shadow: -3px 0 #ff2a6d, 3px 0 #00e5ff, 0 0 24px rgba(255, 40, 60, .8); }
.sk-traced small { display: block; margin-top: 10px; color: #ffb3b3; font-size: .85rem; letter-spacing: .12em; }

/* решение «Слив века» */
.sk-leak-o { background: rgba(2, 6, 4, .55); }
.sk-leak { text-align: center; font-family: var(--mono); color: #c8ffd9; }
.sk-leak .con { min-width: min(460px, 86vw); padding: 12px 16px; text-align: left; border: 1px solid #18352a; border-radius: 8px; background: #050807; box-shadow: 0 0 30px rgba(61, 255, 143, .25); font-size: .85rem; transition: transform .3s, opacity .3s; }
.sk-leak .con p { margin: 2px 0; white-space: nowrap; overflow: hidden; }
.sk-leak .pb { color: #3dff8f; }
.sk-leak b { position: relative; display: block; margin-top: 14px; font: 400 clamp(40px, 9vw, 96px)/1 "sk-vt323", var(--mono); letter-spacing: .1em; color: #3dff8f; text-shadow: 0 0 22px rgba(61, 255, 143, .8); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .35s cubic-bezier(.2, 1.6, .5, 1); }
.sk-leak b::before, .sk-leak b::after { content: attr(data-t); position: absolute; inset: 0; }
.sk-leak b::before { color: #ff2a6d; animation: dl-glitch-a 1s steps(1) infinite; }
.sk-leak b::after { color: #00e5ff; animation: dl-glitch-b 1s steps(1) infinite; }
.sk-leak small { display: block; opacity: 0; margin-top: 6px; color: #a8ffcf; letter-spacing: .14em; transition: opacity .3s .2s; }
.sk-leak.done .con { transform: translateY(-10px) scale(.92); opacity: .5; }
.sk-leak.done b { opacity: 1; transform: none; }
.sk-leak.done small { opacity: 1; }

/* секретный «Блэкаут» */
.sk-bo .dark { position: absolute; inset: 0; background: #000; animation: sk-boff .9s steps(1) both; }
@keyframes sk-boff { 0% { opacity: 0; } 15% { opacity: .85; } 22% { opacity: .2; } 30% { opacity: .9; } 36% { opacity: .5; } 45%, 100% { opacity: .82; } }
.sk-bo .mask { position: relative; z-index: 2; margin: 0; font: 700 clamp(10px, 1.9vw, 18px)/1.05 var(--mono); color: #3dff8f; text-shadow: -2px 0 #ff2a6d, 2px 0 #00e5ff, 0 0 20px rgba(61, 255, 143, .8);
  opacity: 0; animation: sk-bomask 1.4s .6s steps(8) both; }
@keyframes sk-bomask { 0% { opacity: 0; transform: scale(1.3) skewX(20deg); } 30% { opacity: 1; transform: scale(1) skewX(-8deg); } 50% { opacity: 1; transform: skewX(4deg); } 100% { opacity: .35; transform: none; } }
.sk-bo .msg { position: absolute; left: 0; right: 0; bottom: 14vh; z-index: 3; text-align: center; opacity: 0; transition: opacity .3s; }
.sk-bo.msg-on .msg { opacity: 1; }
.sk-bo .msg b { position: relative; display: inline-block; font: 400 clamp(42px, 10vw, 110px)/1 "sk-vt323", var(--mono); letter-spacing: .14em; color: #3dff8f; text-shadow: 0 0 26px rgba(61, 255, 143, .9); }
.sk-bo .msg b::before, .sk-bo .msg b::after { content: attr(data-t); position: absolute; inset: 0; }
.sk-bo .msg b::before { color: #ff2a6d; animation: dl-glitch-a .9s steps(1) infinite; }
.sk-bo .msg b::after { color: #00e5ff; animation: dl-glitch-b .9s steps(1) infinite; }
.sk-bo .msg small { display: block; min-height: 1.2em; margin-top: 8px; font: 700 clamp(13px, 2vw, 20px) var(--mono); color: #e8fff1; letter-spacing: .1em; }
.sk-bo.out .dark { animation: sk-boon .8s ease-out forwards; }
@keyframes sk-boon { 0% { opacity: .82; } 20% { opacity: .2; } 30% { opacity: .7; } 100% { opacity: 0; } }
.sk-bo.out .mask, .sk-bo.out .msg { opacity: 0; transition: opacity .4s; animation: none; }
@keyframes dl-glitch-a { 0%, 86%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 87% { clip-path: inset(10% 0 55% 0); transform: translate(-3px, 0); } 89% { clip-path: inset(60% 0 8% 0); transform: translate(3px, 0); } 91% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); } }
@keyframes dl-glitch-b { 0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 89% { clip-path: inset(45% 0 30% 0); transform: translate(4px, 0); } 92% { clip-path: inset(5% 0 75% 0); transform: translate(-4px, 0); } }
body.sk-lite [data-sk-syntax="hacked"] :is(.CodeMirror-code, .sk-code), body.sk-lite [data-sk-syntax="hacked"] :is(.CodeMirror, .sk-code)::after, body.sk-lite [data-sk-frame="cctv"]::after, body.sk-lite [data-sk-bg="botnet"]::before { animation: none !important; }

/* DATA LEAK — мемная часть (2026-11-12) */
.sk-title[data-t="umad"]::before { content: "😏 "; }
.sk-title[data-t="lenny"] { font-family: system-ui, sans-serif; letter-spacing: .02em; }
[data-sk-nick="graffiti"] { display: inline-block; font-weight: 900; font-style: italic; letter-spacing: .03em; transform: rotate(-3deg);
  background: linear-gradient(100deg, #ff2a6d, #ffd43b 45%, #3dff8f 70%, #00e5ff) 0 0 / 200% 100%; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
  filter: drop-shadow(1px 1px 0 #111) drop-shadow(-1px -1px 0 #111) drop-shadow(0 0 6px rgba(255, 42, 109, .55)); animation: sk-slide 4s linear infinite; }
[data-sk-nick="graffiti"]::after { content: ""; display: inline-block; width: 3px; height: .7em; margin-left: 1px; vertical-align: -.5em; border-radius: 0 0 2px 2px; background: #ff2a6d; }
[data-sk-bg="graffiti"]::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='320' font-family='Impact,Arial Black,sans-serif' font-weight='900'%3E%3Cg transform='rotate(-8 90 70)'%3E%3Ctext x='20' y='90' font-size='54' fill='none' stroke='%23ff2a6d' stroke-width='3' opacity='.55'%3EKEK%3C/text%3E%3C/g%3E%3Ctext x='250' y='60' font-size='34' fill='%233dff8f' opacity='.38' transform='rotate(6 300 50)'%3E0WNED%3C/text%3E%3Ctext x='290' y='210' font-size='44' fill='none' stroke='%2300e5ff' stroke-width='2.5' opacity='.5' transform='rotate(-5 330 200)'%3EU MAD%3F%3C/text%3E%3Ctext x='40' y='250' font-size='40' fill='%23ffd43b' opacity='.33' transform='rotate(4 90 240)'%3ELOL%3C/text%3E%3Ctext x='150' y='160' font-size='26' fill='%23ffffff' opacity='.2'%3E:%5E)%3C/text%3E%3Ctext x='180' y='300' font-size='22' fill='%23ff2a6d' opacity='.35'%3ELEAK%3C/text%3E%3C/svg%3E") 0 0 / 460px 320px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.45' stroke-width='2'%3E%3Cpath d='M0 1h80M0 21h80M40 1v20M0 21v20M80 21v20'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 80px 40px,
    linear-gradient(180deg, #2a1a1d, #1a1214);
}

/* проверка «Хакермэн» */
.sk-check .sk-hm { width: min(360px, 100%); padding: 6px 10px 8px; border-radius: 8px; background: #050807; border: 1px solid #18352a; font-family: var(--mono); text-align: left; }
.sk-hm .hd { font-size: .68rem; letter-spacing: .12em; color: #ff2a6d; }
.sk-hm .ln { height: 54px; overflow: hidden; }
.sk-hm .ln p { margin: 2px 0 0; font-size: .78rem; color: #a8ffcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: sk-fadein .2s both; }
.sk-hm .ln p.ok { color: #3dff8f; }
.sk-hm .ln p.win { color: #ffd43b; font-weight: 700; }

/* ошибка «Переворот стола» */
.sk-flip-o { background: rgba(0, 0, 0, .25); }
.sk-flip { text-align: center; animation: sk-popin .25s cubic-bezier(.2, 1.6, .5, 1); }
.sk-flip b { display: block; font: 700 clamp(46px, 10vw, 110px)/1 system-ui, sans-serif; color: #fff; text-shadow: 0 4px 0 #ff2a6d, 0 0 30px rgba(0, 0, 0, .6); }
.sk-flip small { font-size: 40px; color: #fff; }

/* ошибка EPIC FAIL */
.sk-epicfail b { display: inline-block; padding: 6px 26px; border: 8px solid #e01e37; border-radius: 10px; color: #e01e37; background: rgba(255, 255, 255, .85);
  font: 900 clamp(44px, 11vw, 120px)/1 Impact, "Arial Black", sans-serif; letter-spacing: .04em; transform: rotate(-10deg); animation: sk-efstamp .35s cubic-bezier(.3, 1.6, .5, 1) both; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
@keyframes sk-efstamp { from { transform: rotate(-10deg) scale(3); opacity: 0; } }

/* решение «Problem?» */
.sk-troll-o { background: rgba(0, 0, 0, .35); }
.sk-troll { display: grid; justify-items: center; text-align: center; }
.sk-troll svg { width: min(46vh, 70vw); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55)); animation: sk-trollin .7s cubic-bezier(.2, 1.4, .4, 1) both, sk-trollwob 1.2s .7s ease-in-out infinite; }
@keyframes sk-trollin { from { transform: translateY(80vh) rotate(-25deg) scale(.4); } }
@keyframes sk-trollwob { 50% { transform: rotate(-4deg) scale(1.03); } }
.sk-troll b { margin-top: 6px; font: 900 clamp(40px, 9vw, 96px)/1 Impact, "Arial Black", sans-serif; color: #fff; letter-spacing: .04em; -webkit-text-stroke: 2px #111; text-shadow: 0 5px 0 #111; animation: sk-popin .3s .55s both; }
.sk-troll small { margin-top: 4px; font: 900 clamp(18px, 3vw, 30px)/1 Impact, "Arial Black", sans-serif; color: #3dff8f; -webkit-text-stroke: 1px #111; animation: sk-fadein .3s 1s both; }
body.sk-lite [data-sk-nick="graffiti"] { animation: none !important; }

/* смеющийся пиксельный череп (DATA LEAK): верх и челюсть — две копии картинки, челюсть «ржёт» */
.sk-laugh { position: relative; display: inline-block; width: 100%; aspect-ratio: 1; animation: sk-laughshake .36s steps(2) infinite; }
.sk-laugh img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.sk-laugh .t { clip-path: inset(0 0 25% 0); }
.sk-laugh .j { clip-path: inset(75% 0 0 0); animation: sk-jaw .18s steps(1) infinite alternate; }
@keyframes sk-jaw { from { transform: translateY(0); } to { transform: translateY(9%); } }
@keyframes sk-laughshake { 0% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-2%); } }
.sk-bo .mask { width: min(40vh, 62vw); filter: sepia(1) hue-rotate(70deg) saturate(3.5) brightness(1.05) drop-shadow(-3px 0 #ff2a6d) drop-shadow(3px 0 #00e5ff) drop-shadow(0 0 18px rgba(61, 255, 143, .7)); }
@keyframes sk-bomask { 0% { opacity: 0; transform: scale(1.4) skewX(20deg); } 25% { opacity: 1; transform: scale(1) skewX(-8deg); } 40% { transform: skewX(4deg); } 100% { opacity: .9; transform: none; } }
.sk-troll img { width: min(52vh, 74vw); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55)); animation: sk-trollin .7s cubic-bezier(.2, 1.4, .4, 1) both, sk-trollwob 1.2s .7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sk-laugh, .sk-laugh .j { animation: none; } }

/* обмен: имя партнёра с ником и титулом (с 2026-11-15) */
.tr-who { display: inline; }
.tr-who .sk-title { font-size: .68rem; margin-left: 2px; }
.trfx-name .sk-title { margin-left: 6px; }

/* ---------------- Голограмма (ник, легендарный) — переделан 2026-11-16: строки развёртки, блик, отлив цветом, свечение, помехи, луч проектора ---------------- */
[data-sk-nick="holo"] {
  position: relative; display: inline-block; padding: 0 .12em;
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 25, 50, .28) 3px 4px),
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%),
    linear-gradient(90deg, #00d4ff, #6b5cff 30%, #ff3fd0 55%, #ffb400 80%, #00d4ff);
  background-size: 100% 8px, 250% 100%, 8em 100%;
  animation: sk-holo-n 6s linear infinite, sk-holo-flick 4.7s steps(1) infinite;
}
@keyframes sk-holo-n {
  0% { background-position: 0 0, 100% 0, 0 0; filter: drop-shadow(0 0 .5px rgba(0, 30, 70, .9)) drop-shadow(0 0 4px rgba(0, 212, 255, .7)); }
  30% { background-position: 0 -24px, 0% 0, 2.4em 0; }
  100% { background-position: 0 -80px, 0% 0, 8em 0; filter: drop-shadow(0 0 .5px rgba(0, 30, 70, .9)) drop-shadow(0 0 4px rgba(0, 212, 255, .7)); }
}
@keyframes sk-holo-flick {
  0% { opacity: .92; transform: none; }
  58% { opacity: .45; transform: skewX(-12deg) translateX(2px); }
  59% { opacity: .95; transform: translateX(-1px); }
  60% { opacity: .6; transform: none; }
  61% { opacity: .92; }
  86% { opacity: 1; transform: scaleY(.9); }
  87% { opacity: .92; transform: none; }
}
/* луч проектора снизу и светящаяся «линза» */
[data-sk-nick="holo"]::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 15%; bottom: -.2em; pointer-events: none;
  background: linear-gradient(to top, rgba(125, 255, 234, .38), rgba(138, 180, 255, .08) 70%, transparent);
  clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0); animation: sk-holo-beam 2.4s ease-in-out infinite; }
[data-sk-nick="holo"]::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -.24em; height: .16em; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, #e8fffb, rgba(125, 255, 234, .8) 45%, transparent); }
@keyframes sk-holo-beam { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
body.sk-lite [data-sk-nick="holo"]:not(.inv-modal *) { animation: none !important; filter: drop-shadow(0 0 .5px rgba(0, 30, 70, .9)) drop-shadow(0 0 4px rgba(0, 212, 255, .7)); }
@media (prefers-reduced-motion: reduce) { [data-sk-nick="holo"], [data-sk-nick="holo"]::before { animation: none !important; } [data-sk-nick="holo"] { filter: drop-shadow(0 0 .5px rgba(0, 30, 70, .9)) drop-shadow(0 0 4px rgba(0, 212, 255, .7)); } }

