/* ══════════ Rpavluchenko — портфолио ══════════ */

:root {
  --bg: #090c08;
  --bg-2: #0e120c;
  --surface: #12170f;
  --surface-2: #171d13;
  --line: rgba(196, 255, 170, .08);
  --line-2: rgba(196, 255, 170, .14);
  --text: #e8f0e2;
  --muted: #8d9a86;
  --dim: #5d6858;
  --accent: #3fd13a;          /* шляпка гриба со скина */
  --accent-2: #a6f59a;
  --accent-glow: rgba(63, 209, 58, .35);
  --face: #cefbc6;
  --radius: 18px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --pixel: 'Pixelify Sans', 'Onest', monospace;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.muted { color: var(--muted); }
::selection { background: var(--accent); color: #071006; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Фон ── */
#spores { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-glow {
  position: fixed; inset: -10%; z-index: -3; pointer-events: none;
  background:
    radial-gradient(42vw 38vh at 78% 8%, rgba(63, 209, 58, .13), transparent 70%),
    radial-gradient(36vw 40vh at 8% 72%, rgba(124, 82, 255, .07), transparent 70%),
    radial-gradient(30vw 30vh at 55% 105%, rgba(43, 180, 160, .07), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ══════════ Шапка ══════════ */
.nav {
  position: fixed; z-index: 50; left: 50%; top: 12px;
  width: calc(100% - 24px); max-width: 1200px;
  transform: translateX(-50%);
  background: rgba(12, 16, 10, .78);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  transition: top .55s var(--ease), width .55s var(--ease), max-width .55s var(--ease), border-radius .55s var(--ease), background .4s, box-shadow .4s, border-color .4s;
}
/* В самом верху шапка растекается на всю ширину */
.nav.is-top {
  top: 0; width: 100%; max-width: 100vw; border-radius: 0;
  background: rgba(9, 12, 8, .5);
  border-color: transparent transparent var(--line);
  box-shadow: none;
}
.nav__in { display: flex; align-items: center; gap: 12px; width: min(1200px, 100%); margin: 0 auto; padding: 8px 10px 8px 14px; transition: padding .55s var(--ease); }
.nav.is-top .nav__in { padding: 14px 16px; }
.nav__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent-glow); border-radius: 2px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font: 700 17px var(--display); letter-spacing: -.3px; }
.nav__brand img { width: 30px; height: 30px; border-radius: 6px; filter: drop-shadow(0 0 10px var(--accent-glow)); transition: transform .5s var(--spring); }
.nav__brand:hover img { transform: rotate(-12deg) scale(1.12); }
.nav__links { position: relative; display: flex; gap: 2px; margin-inline-start: auto; }
.nav__links a {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 11px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .25s;
}
.nav__links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; transition: transform .4s var(--spring); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover svg { transform: translateY(-2px) scale(1.1); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active svg { color: var(--accent); }
.nav__pill { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 11px; background: rgba(63, 209, 58, .12); box-shadow: inset 0 0 0 1px rgba(63, 209, 58, .25); transition: transform .45s var(--ease), width .45s var(--ease); pointer-events: none; }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.lite-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); color: var(--muted); transition: .25s; }
.lite-btn svg { width: 18px; height: 18px; fill: currentColor; }
.lite-btn:hover { color: var(--accent); border-color: rgba(63, 209, 58, .45); }
.lite-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #08130a; }
.nav__lang { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.nav__lang-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 4px); border-radius: 8px; background: var(--accent); transition: transform .4s var(--spring); }
.nav__lang.is-en .nav__lang-pill { transform: translateX(calc(100% + 2px)); }
.nav__lang button { position: relative; z-index: 1; padding: 6px 10px; border-radius: 8px; font: 600 13px var(--font); color: var(--muted); transition: color .25s; }
.nav__lang button.is-active { color: #0a1408; }
.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; border-radius: 11px; border: 1px solid var(--line-2); font: 600 13px var(--font); color: var(--text); transition: border-color .25s, color .25s; }
.lang__btn svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.7; transition: transform .6s var(--spring); }
.lang__btn:hover { border-color: rgba(63, 209, 58, .45); }
.lang.is-open .lang__btn svg { transform: rotate(180deg); }
.lang__menu { position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: rgba(14, 18, 12, .98); border: 1px solid var(--line-2); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; pointer-events: none; transition: .25s var(--ease); }
.lang.is-open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 8px 10px; border-radius: 9px; font-size: 14px; text-align: start; color: var(--muted); transition: background .2s, color .2s; }
.lang__menu button b { font: 600 11px var(--mono); color: var(--dim); }
.lang__menu button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.lang__menu button.is-active { color: var(--text); background: rgba(63, 209, 58, .12); }
.lang__menu button.is-active b { color: var(--accent); }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 10px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 23px; }
.nav.is-open .nav__burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 19px; transform: rotate(-45deg); }

.dots { position: fixed; z-index: 40; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
.dots a { width: 9px; height: 9px; background: var(--dim); transition: .35s var(--spring); }
.dots a:hover { background: var(--muted); transform: scale(1.3); }
.dots a.is-active { background: var(--accent); height: 22px; box-shadow: 0 0 12px var(--accent-glow); }

/* ══════════ Главная ══════════ */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 96px 0 40px; overflow: hidden; }
.hero__stage { position: relative; width: min(1320px, 100% - 32px); height: min(800px, calc(100svh - 120px)); min-height: 600px; }
.hero__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, 100%); text-align: center; z-index: 3; }

/* 3D-голова из скина: куб 8×8×8 и слой шляпы 9×9×9 */
.skin { --k: 20; position: relative; width: calc(var(--k) * 8px); height: calc(var(--k) * 8px); margin: 0 auto 6px; perspective: 900px; cursor: pointer; animation: bob 4.5s ease-in-out infinite; }
.skin__cube { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--hx, 0deg)) rotateY(var(--hy, 0deg)); }
.skin.is-spin .skin__cube { animation: spin .9s var(--ease); }
.cube { position: absolute; transform-style: preserve-3d; }
.cube--base { inset: 0; }
.cube--hat { --k: calc(20 * 1.125); left: -10px; top: -10px; width: calc(var(--k) * 8px); height: calc(var(--k) * 8px); }
.f {
  position: absolute; left: 0; top: 0; width: calc(var(--k) * 8px); height: calc(var(--k) * 8px);
  background: url('../assets/skin.png') no-repeat;
  background-size: calc(var(--k) * 64px) calc(var(--k) * 64px);
  background-position: calc(var(--fx) * var(--k) * -1px) calc(var(--fy) * var(--k) * -1px);
  image-rendering: pixelated;
  backface-visibility: hidden;
}
.f-right, .f-left { filter: brightness(.82); }
.f-back { filter: brightness(.7); }
.f-top { filter: brightness(1.08); }
.f-bottom { filter: brightness(.55); }
.f-front  { --fx: 8;  --fy: 8; transform: translateZ(calc(var(--k) * 4px)); }
.f-back   { --fx: 24; --fy: 8; transform: rotateY(180deg) translateZ(calc(var(--k) * 4px)); }
.f-right  { --fx: 0;  --fy: 8; transform: rotateY(-90deg) translateZ(calc(var(--k) * 4px)); }
.f-left   { --fx: 16; --fy: 8; transform: rotateY(90deg) translateZ(calc(var(--k) * 4px)); }
.f-top    { --fx: 8;  --fy: 0; transform: rotateX(90deg) translateZ(calc(var(--k) * 4px)); }
.f-bottom { --fx: 16; --fy: 0; transform: rotateX(-90deg) translateZ(calc(var(--k) * 4px)); }
.cube--hat .f-front  { --fx: 40; }
.cube--hat .f-back   { --fx: 56; }
.cube--hat .f-right  { --fx: 32; }
.cube--hat .f-left   { --fx: 48; }
.cube--hat .f-top    { --fx: 40; }
.cube--hat .f-bottom { --fx: 48; }
.blink { position: absolute; left: calc(var(--k) * 1px); top: calc(var(--k) * 6px); width: calc(var(--k) * 1px); height: calc(var(--k) * 1px); background: var(--face); transform: scaleY(0); transform-origin: top; }
.blink--r { left: calc(var(--k) * 6px); }
.skin.is-blink .blink { transform: scaleY(1); }
.skin__shadow { position: absolute; left: 50%; bottom: -34px; width: 70%; height: 16px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(63, 209, 58, .35), transparent 70%); animation: shadow 4.5s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes shadow { 50% { transform: translateX(-50%) scale(.78); opacity: .6; } }
@keyframes spin { 0% { transform: rotateX(var(--hx)) rotateY(var(--hy)); } 45% { transform: rotateX(-30deg) rotateY(calc(var(--hy) + 200deg)) translateY(-30px); } 100% { transform: rotateX(var(--hx)) rotateY(calc(var(--hy) + 360deg)); } }

.hero__hi { margin: 46px 0 0; font: 500 16px var(--mono); color: var(--accent); letter-spacing: .5px; }
.hero__name { position: relative; display: inline-block; padding: 0 .06em; white-space: nowrap; margin: 4px 0 8px; font: 800 clamp(34px, 5.6vw, 76px)/1.05 var(--display); letter-spacing: -2px; background: linear-gradient(180deg, #fff 20%, #b8f5ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; opacity: 0; pointer-events: none; }
.glitch:hover::before { opacity: .9; color: #3fd13a; -webkit-text-fill-color: #3fd13a; animation: gl1 .45s steps(2) infinite; }
.glitch:hover::after { opacity: .9; color: #ff4fa3; -webkit-text-fill-color: #ff4fa3; animation: gl2 .45s steps(2) infinite; mix-blend-mode: screen; }
@keyframes gl1 { 0% { clip-path: inset(10% 0 60% 0); transform: translate(-4px, 0); } 50% { clip-path: inset(55% 0 10% 0); transform: translate(3px, 0); } 100% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); } }
@keyframes gl2 { 0% { clip-path: inset(60% 0 5% 0); transform: translate(4px, 0); } 50% { clip-path: inset(5% 0 70% 0); transform: translate(-3px, 0); } 100% { clip-path: inset(40% 0 30% 0); transform: translate(2px, 0); } }
.hero__role { margin: 0; font-size: clamp(17px, 2vw, 21px); color: var(--muted); min-height: 1.6em; }
.typer { color: var(--text); font-weight: 600; }
.typer::after { content: ''; display: inline-block; width: 3px; height: 1.05em; margin-left: 3px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__hint { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); margin: 0; font: 12px var(--mono); color: var(--dim); white-space: nowrap; }
.hero__restore { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; font: 600 13px var(--font); color: var(--accent); border: 1px solid rgba(63, 209, 58, .35); background: rgba(9, 12, 8, .7); animation: pop .4s var(--spring); }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--accent); border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; scale: .7; } }

/* Окна-редакторы */
.win {
  position: absolute; left: var(--x); top: var(--y);
  width: 420px; z-index: 2;
  background: rgba(17, 21, 15, .93);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .4);
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--sr, 0deg));
  transition: box-shadow .3s, opacity .6s var(--ease), translate .8s var(--ease), scale .45s var(--spring);
  opacity: 0; translate: 0 30px;
}
.win.is-in { opacity: var(--so, 1); translate: 0 0; }
.win.is-drag { transition: box-shadow .3s; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--accent); }
.win.is-closed { opacity: 0 !important; scale: .8; pointer-events: none; }
.win.is-flash { animation: flash .6s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 2px var(--accent), 0 0 40px var(--accent-glow); } }
.win.is-min .win__tabs, .win.is-min .win__body, .win.is-min .win__status { display: none; }
.win--term { width: 450px; }
.win--idea { width: 440px; }
.win--shader { width: 400px; }
.win__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 10px; border-bottom: 1px solid var(--line); cursor: grab; font-size: 12px; color: var(--muted); user-select: none; }
.win.is-drag .win__bar { cursor: grabbing; }
.win__ico { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font: 700 10px var(--mono); color: #fff; }
.win__ico--ps { background: #2b4f8a; }
.win__ico--ij { background: linear-gradient(135deg, var(--accent), #1f7a1b); color: #08130a; }
.win__ico--vs { background: #1f6fb3; font-size: 12px; }
.win__title { font-weight: 500; color: var(--text); opacity: .85; }
.win__branch { margin-left: 4px; padding: 1px 7px; border-radius: 5px; background: rgba(255, 255, 255, .05); font-family: var(--mono); font-size: 11px; }
.win__ctl { margin-left: auto; display: flex; }
.win__ctl button { position: relative; width: 28px; height: 26px; border-radius: 5px; transition: background .2s; }
.win__ctl button:hover { background: rgba(255, 255, 255, .08); }
.win__ctl button.x:hover { background: #c42b1c; }
.win__ctl button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1.5px solid var(--muted); border-radius: 2px; }
.win__ctl button[data-act="min"]::before { height: 0; border-width: 1.5px 0 0; margin-top: 0; border-radius: 0; }
.win__ctl button.x::before, .win__ctl button.x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1.5px; height: 13px; margin: -6.5px 0 0 -.75px; border: 0; background: var(--muted); transform: rotate(45deg); }
.win__ctl button.x::after { transform: rotate(-45deg); }
.win__tabs { display: flex; font: 12px var(--mono); border-bottom: 1px solid var(--line); }
.win__tabs span { padding: 7px 12px; color: var(--dim); border-right: 1px solid var(--line); }
.win__tabs span.is-on { color: var(--text); background: rgba(255, 255, 255, .03); box-shadow: inset 0 -2px 0 var(--accent); }
.win__body { margin: 0; padding: 12px 14px; font: 12px/1.65 var(--mono); color: #cfd8c9; overflow: hidden; white-space: pre; }
.win__status { display: flex; justify-content: space-between; padding: 4px 12px; font: 11px var(--mono); color: var(--dim); border-top: 1px solid var(--line); }
.term { height: 196px; overflow-y: auto; white-space: normal; color: #d8e6d0; cursor: text; scrollbar-width: thin; scrollbar-color: #2a3326 transparent; }
.term pre { margin: 0; font: inherit; white-space: pre-wrap; unicode-bidi: plaintext; }
.term .ps { color: #7fb3ff; }
.term .cmd { color: #f2e27a; }
.term .ok { color: var(--accent-2); }
.term .err { color: #ff8f6b; }
.term .caret { display: inline-block; width: 8px; height: 15px; margin-bottom: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.term__line { display: flex; gap: 6px; font: inherit; }
.term__line[hidden] { display: none; }
.term__line input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; font: inherit; color: #f2e27a; caret-color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* Подсветка кода */
.code .ln { display: inline-block; width: 22px; margin-right: 12px; text-align: right; color: var(--dim); user-select: none; }
.tk-kw { color: #ff8f6b; }
.tk-ty { color: #79d4ff; }
.tk-str { color: #a8e57d; }
.tk-com { color: #6b7865; font-style: italic; }
.tk-num { color: #f5c542; }
.tk-ann { color: #e3c76b; }
.tk-fn { color: #9fb6ff; }
.tk-key { color: #ff9e64; }
.tk-tag { color: #c792ea; }
.tk-pre { color: #e98fd6; }

/* ══════════ Секции ══════════ */
.section { position: relative; padding: 110px 0 40px; }
.section--last { padding-bottom: 130px; }
.head { max-width: 720px; margin-bottom: 36px; }
.h2 { margin: 0 0 14px; font: 700 clamp(30px, 4.4vw, 52px)/1.1 var(--display); letter-spacing: -1px; }
.h2 em { font-style: normal; color: var(--accent); text-shadow: 0 0 30px var(--accent-glow); }
.h2--big { font-size: clamp(36px, 5.2vw, 64px); }
.lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 640px; }
.lead + .lead { margin-top: 14px; }
.eyebrow { display: inline-block; margin-bottom: 12px; padding: 4px 12px; font: 600 12px var(--font); letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(63, 209, 58, .3); border-radius: 999px; background: rgba(63, 209, 58, .07); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Наклон с бликом (JS ставит --rx --ry --mx --my) */
.tilt { will-change: transform; }
.tilt.is-in, .tilt:not(.reveal) { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); }
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(166, 245, 154, .12), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.tilt:hover::after { opacity: 1; }

/* ── Обо мне ── */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { position: relative; padding: 26px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, opacity .8s var(--ease), transform .25s var(--ease); }
.stat:hover { border-color: rgba(63, 209, 58, .35); }
.stat b { display: block; white-space: nowrap; font: 800 clamp(26px, 2.7vw, 38px)/1.1 var(--display); letter-spacing: -1px; background: linear-gradient(180deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ── Бегущая строка ── */
/* ── Чат-лог для команд (штрафы, Энд) ── */
.mock--chatlog { background: linear-gradient(#5f8fd8, #a9c6f5 55%, #4f7f30 55%, #35601f); }
.mock--fines { background: radial-gradient(circle at 70% 30%, #3b3010, #120f06 75%); }
.mock--endcmd { background: url(../assets/img/mc/end_sky.png) 0 0 / 22cqw, #0d0a14; image-rendering: pixelated; }
.mock--chatlog .mc-chat { bottom: 17%; font-size: clamp(9px, 2.7cqw, 16px); }

/* ── Банк ── */
.mock--bank { background: radial-gradient(circle at 50% 30%, #3a2d14, #100c05 75%); }
.bk { position: absolute; left: 8cqw; top: 13cqw; width: 84cqw; aspect-ratio: 176 / 42; background: url(../assets/img/mc/chest9.png) 0 0 / 100% 100%; image-rendering: pixelated; animation: bkGui 10s infinite; }
.bk__t { position: absolute; left: calc(8 / 176 * 100%); top: calc(5 / 42 * 100%); font: 500 3.6cqw/1 var(--pixel); color: #404040; }
.bk__row { position: absolute; inset: 0; }
.bk__row i { position: absolute; left: calc((8 + 18 * var(--i)) / 176 * 100%); top: calc(18 / 42 * 100%); width: calc(16 / 176 * 100%); aspect-ratio: 1; display: grid; place-items: center; }
.bk__row img { width: 100%; height: 100%; image-rendering: pixelated; }
.bk__row--b, .bk__t--b { opacity: 0; }
.bk__row--a, .bk__t--a { animation: bkA 10s steps(1) infinite; }
.bk__row--b, .bk__t--b { animation: bkB 10s steps(1) infinite; }
@keyframes bkA { 0%, 37% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes bkB { 0%, 37% { opacity: 0; } 38%, 100% { opacity: 1; } }
@keyframes bkGui { 0% { opacity: 0; } 3%, 82% { opacity: 1; } 85%, 100% { opacity: 0; } }
.bk__tip { position: absolute; top: 2.5cqw; display: grid; padding: .7cqw 1.6cqw; font: 500 3cqw/1.35 var(--pixel); background: rgba(16, 0, 16, .94); border: .4cqw solid #25015b; text-shadow: .3cqw .3cqw 0 #102a05; opacity: 0; }
.bk__tip--a { left: 51%; animation: bkTipA 10s steps(1) infinite; }
.bk__tip--b { left: 60%; animation: bkTipB 10s steps(1) infinite; }
@keyframes bkTipA { 0%, 11% { opacity: 0; } 12%, 28% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes bkTipB { 0%, 65% { opacity: 0; } 66%, 79% { opacity: 1; } 80%, 100% { opacity: 0; } }
.bk__plus { position: absolute; top: 18cqw; font: 500 3cqw var(--pixel); font-style: normal; color: #63c132; text-shadow: .3cqw .3cqw 0 #102a05; opacity: 0; animation: bkPlus 10s infinite; }
.bk__plus:nth-of-type(1) { left: 82%; animation-delay: 4.8s; }
.bk__plus:nth-of-type(2) { left: 73%; animation-delay: 5.4s; }
.bk__plus:nth-of-type(3) { left: 73%; animation-delay: 5.8s; }
@keyframes bkPlus { 0% { opacity: 1; transform: none; } 6% { opacity: 0; transform: translateY(-5cqw); } 100% { opacity: 0; } }
.bk__cur, .cr__cur { position: absolute; width: 3.4cqw; height: 4.4cqw; background: #fff; clip-path: polygon(0 0, 100% 72%, 55% 70%, 75% 100%, 60% 100%, 42% 74%, 0 95%); filter: drop-shadow(.3cqw .3cqw 0 #000); z-index: 2; }
.bk__cur { animation: bkCur 10s var(--ease) infinite; }
@keyframes bkCur {
  0% { left: 62%; top: 44cqw; transform: none; }
  10%, 28% { left: 50%; top: 24cqw; transform: none; }
  33%, 35% { left: 41.4%; top: 24cqw; transform: none; } 36% { transform: scale(.75); } 37% { transform: none; }
  46%, 47% { left: 84.4%; top: 24cqw; transform: none; } 48% { transform: scale(.75); } 49% { transform: none; }
  52%, 53% { left: 75.8%; top: 24cqw; transform: none; } 54% { transform: scale(.75); } 55%, 57% { transform: none; } 58% { transform: scale(.75); } 59% { transform: none; }
  64%, 79% { left: 58.6%; top: 24cqw; transform: none; } 80% { transform: scale(.75); } 81% { transform: none; }
  100% { left: 62%; top: 44cqw; }
}
.bk__chat { bottom: 17%; }
.bk__chat span { opacity: 0; animation: bkChat 10s infinite; }
@keyframes bkChat { 0%, 82% { opacity: 0; transform: translateY(1.5cqw); } 85%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ── Котёл (Concresine) и раздатчик ── */
.mock--cauldron, .mock--disp { background: radial-gradient(ellipse at 50% 75%, #2b3a24, #0d120b 72%); }
.cl__pot { position: absolute; left: 39cqw; top: 22cqw; width: 22cqw; }
.cl__v > * { opacity: 0; }
.cl__in { position: absolute; left: 44cqw; top: 22cqw; width: 12cqw; animation: clIn 12s infinite; animation-delay: calc(var(--i) * 4s); }
@keyframes clIn { 0% { opacity: 0; transform: translateY(-20cqw); } 3% { opacity: 1; transform: translateY(-16cqw) rotate(-8deg); } 9% { opacity: 1; transform: translateY(-1cqw) rotate(6deg); } 11%, 100% { opacity: 0; transform: translateY(2cqw); } }
.cl__smoke, .dp__smoke { position: absolute; left: 41cqw; top: 14cqw; width: 18cqw; height: 14cqw; }
.cl__smoke { animation: clWin 12s infinite; animation-delay: calc(var(--i) * 4s); }
@keyframes clWin { 0%, 10% { opacity: 0; } 12%, 24% { opacity: 1; } 27%, 100% { opacity: 0; } }
.smk { position: absolute; left: calc(var(--k) * 15%); bottom: 0; width: 5cqw; height: 5cqw; background: url(../assets/img/mc/smoke.png) 0 0 / 1200% 100%; image-rendering: pixelated; opacity: .85; animation: smkF 1.1s steps(11) infinite, smkUp 1.1s ease-out infinite; animation-delay: calc(var(--k) * -.18s); }
@keyframes smkF { to { background-position: 100% 0; } }
@keyframes smkUp { from { transform: translateY(0); } to { transform: translateY(-9cqw); } }
.cl__out { position: absolute; left: 44cqw; top: 14cqw; width: 12cqw; animation: clOut 12s infinite; animation-delay: calc(var(--i) * 4s); }
@keyframes clOut { 0%, 22% { opacity: 0; transform: translateY(6cqw) scale(.6); } 25% { opacity: 1; transform: translateY(-5cqw); } 28% { opacity: 1; transform: translateY(-3cqw); } 31% { opacity: 1; transform: translateY(-5cqw); } 33%, 100% { opacity: 0; transform: translateY(-5cqw); } }
.cl__label { position: absolute; left: 0; right: 0; bottom: 17%; text-align: center; font: 500 clamp(10px, 3.2cqw, 18px) var(--pixel); color: #fff; text-shadow: .3cqw .3cqw 0 #000; }
.cl__v .cl__label { animation: clWin2 12s infinite; animation-delay: calc(var(--i) * 4s); }
@keyframes clWin2 { 0% { opacity: 0; } 2%, 31% { opacity: 1; } 33%, 100% { opacity: 0; } }

.dp__b { position: absolute; width: 22cqw; }
.dp__disp { left: 26cqw; top: 15cqw; }
.dp__front { left: 36.2cqw; top: 20.9cqw; opacity: 0; }
.dp__sand { animation: dpSand 10s infinite; }
.dp__pot { animation: dpPot 10s infinite; }
@keyframes dpSand { 0%, 4% { opacity: 0; transform: translate(-4cqw, -2cqw) scale(.5); } 7%, 42% { opacity: 1; transform: none; } 45%, 100% { opacity: 0; transform: none; } }
@keyframes dpPot { 0%, 45% { opacity: 0; } 49%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
.dp__flash { position: absolute; left: 41cqw; top: 22cqw; width: 6cqw; height: 9cqw; background: radial-gradient(#fff8, transparent 70%); opacity: 0; animation: dpFlash 10s infinite; }
@keyframes dpFlash { 0%, 3% { opacity: 0; } 4% { opacity: 1; } 8%, 52% { opacity: 0; } 53% { opacity: 1; } 57%, 100% { opacity: 0; } }
.dp__fly { position: absolute; left: 42cqw; top: 20cqw; width: 10cqw; opacity: 0; animation: dpFly 10s infinite; }
@keyframes dpFly { 0%, 52% { opacity: 0; transform: none; } 53% { opacity: 1; transform: none; } 57% { opacity: 1; transform: translate(4cqw, -6cqw) rotate(20deg); } 61% { opacity: 1; transform: translate(6cqw, 0) rotate(40deg); } 62%, 100% { opacity: 0; transform: translate(6cqw, 2cqw); } }
.dp__smoke { left: 38cqw; top: 13cqw; animation: dpSmoke 10s infinite; }
@keyframes dpSmoke { 0%, 61% { opacity: 0; } 63%, 78% { opacity: 1; } 81%, 100% { opacity: 0; } }
.dp__out { position: absolute; left: 42cqw; top: 12cqw; width: 12cqw; opacity: 0; animation: dpOut 10s infinite; }
@keyframes dpOut { 0%, 78% { opacity: 0; transform: translateY(6cqw) scale(.6); } 81% { opacity: 1; transform: translateY(-4cqw); } 85% { opacity: 1; transform: translateY(-2cqw); } 89%, 94% { opacity: 1; transform: translateY(-4cqw); } 97%, 100% { opacity: 0; } }
.dp__l1 { animation: dpL1 10s infinite; }
.dp__l2 { opacity: 0; animation: dpL2 10s infinite; }
@keyframes dpL1 { 0%, 44% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes dpL2 { 0%, 46% { opacity: 0; } 49%, 97% { opacity: 1; } 100% { opacity: 0; } }

/* ── Энд ── */
.mock--end { background: #0b0812; }
.en__sky { position: absolute; inset: 0; background: url(../assets/img/mc/end_sky.png) 0 0 / 24cqw; image-rendering: pixelated; opacity: .55; animation: enSky 30s linear infinite; }
@keyframes enSky { to { background-position: 24cqw 24cqw; } }
.en__portal { position: absolute; left: 50%; top: 3cqw; width: 58cqw; max-width: none; transform: translateX(-50%); transition: opacity .5s, filter .5s; }
.en__portal--open { opacity: 0; }
.mock--end.is-open .en__portal--open { opacity: 1; filter: drop-shadow(0 0 2cqw rgba(78, 240, 180, .45)); }
.en__bar { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font: 500 clamp(10px, 3.1cqw, 18px) var(--pixel); text-shadow: .3cqw .3cqw 0 #000; transition: opacity .3s; }
.en__title { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: 700 9cqw/1 var(--pixel); color: #fc7703; text-shadow: .6cqw .6cqw 0 #3f1e00; opacity: 0; transform: scale(.7); transition: opacity .35s, transform .5s var(--spring); }
.mock--end.is-open .en__title { opacity: 1; transform: none; }
.mock--end.is-open .en__bar { opacity: 0; }
.mock--end.is-open .en__sky { opacity: .9; }

/* ── Ghost Killer: экран смерти ── */
.mock--ghost { background: linear-gradient(rgba(96, 0, 0, .5), rgba(128, 48, 48, .7)), linear-gradient(#5f8fd8, #a9c6f5 55%, #4f7f30 55%, #35601f); place-items: start center; text-align: center; }
.gh__title { margin-top: 5cqw; font: 500 8cqw/1 var(--pixel); color: #fff; text-shadow: .6cqw .6cqw 0 #3f3f3f; }
.gh__msg { display: grid; margin-top: 3cqw; font: 500 clamp(10px, 3.2cqw, 18px) var(--pixel); color: #fff; text-shadow: .3cqw .3cqw 0 #3f3f3f; }
.gh__msg span { grid-area: 1 / 1; opacity: 0; animation: ghMsg 9s infinite; animation-delay: calc(var(--i) * 3s); }
@keyframes ghMsg { 0% { opacity: 0; } 3%, 30% { opacity: 1; } 33%, 100% { opacity: 0; } }
.gh__btns { display: grid; gap: 1.2cqw; margin-top: 3.5cqw; }
.gh__btns span { width: 50cqw; padding: 1.3cqw 0 1.1cqw; font: 500 3cqw/1 var(--pixel); color: #fff; text-shadow: .3cqw .3cqw 0 #3f3f3f; background: url(../assets/img/mc/mc_button.png) 0 0 / 100% 100%; image-rendering: pixelated; }
.gh__btns span:first-child { background-image: url(../assets/img/mc/mc_button_hl.png); }
.gh__eff { position: absolute; right: 3cqw; top: 3cqw; display: flex; align-items: center; gap: 1cqw; padding: .8cqw 1.4cqw .8cqw .8cqw; background: rgba(0, 0, 0, .55); border: .3cqw solid #555; font: 500 2.6cqw var(--pixel); color: #fff; }
.gh__eff img { width: 4.6cqw; }

/* ── Светящаяся кисть ── */
.mock--craft { background: radial-gradient(circle at 50% 40%, #13343a, #061214 75%); }
.cr { position: absolute; left: 12cqw; top: 6cqw; width: 76cqw; aspect-ratio: 176 / 80; background: url(../assets/img/mc/crafting.png) 0 0 / 100% 100%; image-rendering: pixelated; }
.cr__t { position: absolute; left: calc(28 / 176 * 100%); top: calc(5 / 80 * 100%); font: 500 3.3cqw/1 var(--pixel); color: #404040; }
.cr__i, .cr__res { position: absolute; left: calc(var(--x) / 176 * 100%); top: calc(var(--y) / 80 * 100%); width: calc(16 / 176 * 100%); opacity: 0; animation: crIn 9s infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes crIn { 0%, 2% { opacity: 0; transform: scale(1.5); } 5%, 88% { opacity: 1; transform: none; } 91%, 100% { opacity: 0; } }
.cr__res { --x: 124; --y: 35; animation: crRes 9s infinite; }
@keyframes crRes { 0%, 30% { opacity: 0; transform: scale(.4); } 34% { opacity: 1; transform: scale(1.25); filter: drop-shadow(0 0 1.2cqw #55ffff); } 40%, 88% { opacity: 1; transform: none; filter: drop-shadow(0 0 .6cqw #55ffff); } 91%, 100% { opacity: 0; } }
.cr__tip { position: absolute; left: 72%; top: 11cqw; padding: .7cqw 1.6cqw; font: 500 3cqw/1.35 var(--pixel); color: #fff; background: rgba(16, 0, 16, .94); border: .4cqw solid #25015b; text-shadow: .3cqw .3cqw 0 #3f3f3f; opacity: 0; animation: crTip 9s steps(1) infinite; white-space: nowrap; }
.cr__tip b { font-weight: 500; }
@keyframes crTip { 0%, 46% { opacity: 0; } 47%, 86% { opacity: 1; } 87%, 100% { opacity: 0; } }
.cr__cur { animation: crCur 9s var(--ease) infinite; }
@keyframes crCur { 0%, 36% { left: 50%; top: 46cqw; } 45%, 86% { left: 69%; top: 24cqw; } 100% { left: 50%; top: 46cqw; } }

.mock--glow { background: linear-gradient(#4f7fd0, #9fbdf0 62%, #4f7f30 62%, #35601f); }
.gb__me { position: absolute; left: 12cqw; top: 15cqw; width: 11cqw; }
.gb__block { position: absolute; left: 25cqw; top: 22cqw; width: 16cqw; }
.gb__brush { position: absolute; left: 27cqw; top: 15cqw; width: 9cqw; transform-origin: 20% 80%; animation: gbBrush 10s infinite; }
@keyframes gbBrush { 0%, 2% { transform: rotate(-20deg); } 5% { transform: rotate(15deg); } 8% { transform: rotate(-20deg); } 11% { transform: rotate(15deg); } 14% { transform: rotate(-20deg); } 17% { transform: rotate(15deg); } 20% { transform: rotate(-20deg); } 23% { transform: rotate(15deg); } 26% { transform: rotate(-20deg); } 29%, 100% { transform: rotate(-35deg); } }
.gb__dust { position: absolute; left: calc(30cqw + var(--k) * 1.6cqw); top: 24cqw; width: 1.2cqw; height: 1.2cqw; background: #c9a36b; opacity: 0; animation: gbDust 10s infinite; animation-delay: calc(var(--k) * .25s); }
@keyframes gbDust { 0% { opacity: 0; } 2% { opacity: 1; transform: none; } 9% { opacity: 0; transform: translate(-2cqw, -5cqw); } 10%, 100% { opacity: 0; } }
.gb__prog { position: absolute; left: 25cqw; top: 41cqw; width: 16cqw; height: 1.4cqw; background: #222; border: .3cqw solid #000; }
.gb__prog i { display: block; height: 100%; background: #55ffff; transform-origin: left; animation: gbProg 10s linear infinite; }
@keyframes gbProg { 0% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
.gb__p { position: absolute; top: 12cqw; width: 12cqw; }
.gb__p--1 { left: 58cqw; animation: gbGlow1 10s steps(1) infinite; }
.gb__p--2 { left: 76cqw; animation: gbGlow2 10s steps(1) infinite; }
@keyframes gbGlow1 { 0%, 44% { filter: none; } 45%, 96% { filter: drop-shadow(.5cqw 0 0 #55ffff) drop-shadow(-.5cqw 0 0 #55ffff) drop-shadow(0 .5cqw 0 #55ffff) drop-shadow(0 -.5cqw 0 #55ffff); } 97%, 100% { filter: none; } }
@keyframes gbGlow2 { 0%, 52% { filter: none; } 53%, 96% { filter: drop-shadow(.5cqw 0 0 #00aaaa) drop-shadow(-.5cqw 0 0 #00aaaa) drop-shadow(0 .5cqw 0 #00aaaa) drop-shadow(0 -.5cqw 0 #00aaaa); } 97%, 100% { filter: none; } }
.gb__l1 { animation: dpL1 10s infinite; }
.gb__l2 { opacity: 0; animation: dpL2 10s infinite; }

/* ══════════ Стек: технологии-предметы на «рельсе» ══════════ */
.loot { position: relative; padding: 40px 0 10px; }
.loot__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.loot__title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: 400 14px/1.4 var(--font); color: var(--dim); }
.loot__title b { font: 700 22px var(--display); letter-spacing: -.5px; color: var(--text); }
.loot__hud { display: flex; align-items: center; gap: 12px; flex: none; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.loot__slot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #0b0f09; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .5), inset 0 -1px 0 rgba(255, 255, 255, .05); }
.loot__slot img { width: 28px; height: 28px; }
.loot__slot.is-pop { animation: slotPop .4s var(--spring); }
@keyframes slotPop { 40% { transform: scale(1.22); } }
.loot__meter { display: grid; gap: 6px; font: 500 13px var(--font); color: var(--muted); }
.loot__meter b { font: 600 13px var(--mono); color: var(--text); }
/* сегментированная полоска — как опыт в игре */
.seg { position: relative; display: block; width: 150px; height: 8px; border-radius: 3px; background: #0b0f09; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
.seg > i { position: absolute; inset: 0; width: var(--p, 0%); background: linear-gradient(#b6ff7a, #47d13a); box-shadow: 0 0 10px rgba(110, 255, 90, .5); transition: width .5s var(--spring); }
.seg::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 18 - 1px), rgba(0, 0, 0, .65) calc(100% / 18 - 1px) calc(100% / 18)); }
.loot__world {
  position: relative; height: 178px; overflow: hidden; margin-top: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* рельс с бегущими пикселями */
.loot__world::before { content: ''; position: absolute; left: 0; right: 0; bottom: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.loot__world::after { content: ''; position: absolute; left: 0; right: 0; bottom: 36px; height: 5px; background: repeating-linear-gradient(90deg, rgba(110, 235, 95, .5) 0 4px, transparent 4px 56px); opacity: .5; animation: rail 3s linear infinite; }
@keyframes rail { to { background-position: -56px 0; } }
.loot__track { position: absolute; left: 0; top: 0; height: 100%; display: flex; will-change: transform; }
.loot__world { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.loot__world.is-drag, .loot__world.is-drag .drop { cursor: grabbing; }
html.lite .loot__world { cursor: auto; touch-action: auto; }
.loot__copy { position: relative; flex: none; width: var(--w); height: 100%; }
.drop { position: absolute; left: var(--x); bottom: 48px; width: 96px; height: 120px; margin-left: -48px; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.drop__tile {
  position: absolute; left: 10px; top: 0; width: 76px; height: 76px; border-radius: 20px;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9);
  animation: bob 3s ease-in-out var(--d) infinite alternate; transition: border-color .25s, box-shadow .3s;
}
.drop:hover .drop__tile, .drop:focus-visible .drop__tile { border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent), 0 16px 40px -14px color-mix(in srgb, var(--c) 45%, transparent); }
.drop__body { position: absolute; left: 12px; top: 12px; width: 52px; height: 52px; }
.drop__spin, .drop__spin i { position: absolute; inset: 0; }
.drop__spin i { background: 0 0 / 9600% 100% no-repeat; animation: spinF 4s steps(95) var(--d2) infinite; }
@keyframes spinF { to { background-position: 100% 0; } }
.drop__name { position: absolute; left: 0; right: 0; top: 88px; text-align: center; white-space: nowrap; font: 600 12.5px var(--font); color: var(--muted); transition: color .2s; }
.drop:hover .drop__name, .drop:focus-visible .drop__name { color: var(--text); }
.drop__shadow { position: absolute; left: 50%; bottom: -12px; width: 44px; height: 6px; margin-left: -22px; border-radius: 50%; background: color-mix(in srgb, var(--c) 45%, transparent); filter: blur(5px); opacity: .5; animation: shadowBob 3s ease-in-out var(--d) infinite alternate; }
.drop:focus-visible { outline: none; }
.drop.is-gone { visibility: hidden; pointer-events: none; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes shadowBob { from { transform: scale(1); opacity: .55; } to { transform: scale(.7); opacity: .25; } }
@keyframes spinY { to { transform: rotateY(360deg); } }
.loot__fly { position: fixed; z-index: 130; left: 0; top: 0; width: 44px; height: 44px; image-rendering: pixelated; pointer-events: none; }
/* подсказка в стиле сайта */
.tip-card { position: fixed; z-index: 120; pointer-events: none; max-width: 270px; padding: 10px 13px 11px; border-radius: 14px; background: rgba(18, 23, 15, .97); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); font: 400 13px/1.45 var(--font); color: var(--muted); }
.tip-card b { display: block; margin-bottom: 2px; font: 700 14px var(--display); letter-spacing: -.3px; }
.tip-card .key { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; color: var(--dim); }
.tip-card kbd { padding: 1px 6px; border-radius: 6px; font: 600 11px var(--mono); color: var(--text); background: #0b0f09; border: 1px solid var(--line-2); border-bottom-width: 2px; }

/* Тост: достижение / уровень — в стиле сайта, заголовок пиксельный */
.adv {
  position: fixed; z-index: 140; right: 18px; top: 86px; display: flex; align-items: center; gap: 12px;
  width: 310px; padding: 12px 14px; border-radius: 18px; background: rgba(18, 23, 15, .96); border: 1px solid rgba(63, 209, 58, .35);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 30px -12px var(--accent-glow);
  transform: translateX(calc(100% + 30px)); transition: transform .5s var(--ease);
}
.adv.is-on { transform: none; }
.adv__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #0b0f09; }
.adv__ico img { width: 30px; height: 30px; }
.adv p { margin: 0; display: grid; gap: 1px; }
.adv b { font: 500 15px var(--pixel); color: #ffff55; text-shadow: 1px 1px 0 #3f3f15; }
.adv span { font: 500 14px var(--font); color: var(--text); }

/* ══════════ Опыт посетителя ══════════ */
.xp { position: fixed; z-index: 60; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(14, 18, 12, .82); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: xpIn .5s var(--spring); }
.xp[hidden] { display: none; }
@keyframes xpIn { from { opacity: 0; transform: translateY(16px); } }
.xp__lvl { min-width: 24px; text-align: center; font: 800 16px/1 var(--mono); color: #80ff20; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 0 0 10px rgba(128, 255, 32, .5); }
.xp__bar { position: relative; width: 140px; height: 7px; border-radius: 3px; background: #0b0f09; overflow: hidden; }
.xp__bar i { position: absolute; inset: 0; width: var(--p, 0%); background: linear-gradient(#c6ff8a, #4fd13a); box-shadow: 0 0 10px rgba(128, 255, 32, .55); transition: width .45s var(--spring); }
.xp__bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 18 - 1px), rgba(0, 0, 0, .7) calc(100% / 18 - 1px) calc(100% / 18)); }
.xp.is-pulse .xp__lvl { animation: xpPulse .5s var(--spring); }
@keyframes xpPulse { 40% { transform: scale(1.45); } }
.orb { position: fixed; z-index: 135; left: 0; top: 0; width: 18px; height: 18px; pointer-events: none; background: url(../assets/img/mc/xp_orb.png) 0 0 / 400% 400%; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(160, 255, 60, .7)); }

/* ══════════ Карточки-цифры можно «добыть» ══════════ */
[data-mine] { cursor: url(../assets/img/mc/cursor_pickaxe.png) 4 4, pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.stat__hint { position: absolute; right: 14px; top: 12px; font: 500 11px var(--font); font-style: normal; color: var(--dim); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.stat:hover .stat__hint { opacity: 1; transform: none; }
.crack { position: absolute; inset: 0; pointer-events: none; background: 0 0 / 64px 64px repeat; image-rendering: pixelated; opacity: .34; filter: invert(1); mix-blend-mode: screen; border-radius: inherit; }
.stat.is-mining { animation: mineShake .12s linear infinite; }
@keyframes mineShake { 50% { translate: 1px 0; } }
.stat.is-broken { animation: mineBreak .45s var(--spring); }
@keyframes mineBreak { 0% { scale: .9; } 60% { scale: 1.04; } 100% { scale: 1; } }

/* ══════════ Верстак: собери проект ══════════ */
.bench { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.bench__pal, .bench__table { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.bench__cap { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font: 600 12px var(--font); letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.bench__cap em { font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 500; }
.bench__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.bitem { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); font: 500 13px var(--font); color: var(--muted); text-align: left; transition: border-color .2s, color .2s, transform .2s var(--spring), background .2s; }
.bitem img { width: 22px; height: 22px; flex: none; image-rendering: pixelated; }
.bitem:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-2px); }
.bitem.is-used { color: var(--text); background: color-mix(in srgb, var(--c) 10%, transparent); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.bitem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench__grid { display: flex; align-items: flex-start; justify-content: center; gap: 14px; }
.bench__grid .bench__arrow { margin-top: 20px; }
.bench__grid .bslot--res { margin-top: -4px; }
.bench__cats { display: grid; gap: 16px; }
.bcat__h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bcat__h b { font: 700 13px var(--display); letter-spacing: -.2px; color: var(--text); }
.bcat__h em { font: 500 12px var(--font); font-style: normal; color: var(--dim); }
.bitem.is-locked { cursor: not-allowed; color: var(--dim); border-style: dashed; background: transparent; }
.bitem.is-locked:hover { transform: none; color: var(--dim); border-color: var(--line); }
.bitem .lock { width: 22px; text-align: center; font-style: normal; font-size: 13px; filter: grayscale(1); opacity: .6; }
.bitem.is-fresh { animation: freshIn 1.2s var(--spring) both, freshGlow 1.6s ease-in-out 3; }
@keyframes freshIn { from { opacity: 0; transform: scale(.7); } }
@keyframes freshGlow { 50% { box-shadow: 0 0 0 1px var(--c), 0 0 22px -4px var(--c); } }
.bslot-w { display: grid; justify-items: center; gap: 6px; }
.bslot-w > span { font: 600 11px var(--font); color: var(--dim); text-align: center; }
.bslot.is-auto img { opacity: .38; filter: grayscale(.4); }
.bslot.is-auto { border-style: dashed; }
.bslot em { position: absolute; left: 50%; bottom: -1px; transform: translate(-50%, 50%); padding: 0 6px; border-radius: 6px; font: 600 10px var(--font); font-style: normal; color: var(--dim); background: var(--surface); border: 1px solid var(--line); }
.bench__out h4 { margin: 12px 0 6px; font: 600 11px var(--font); letter-spacing: 1.1px; text-transform: uppercase; color: var(--dim); }
.bench__out h4 + ul { margin-top: 0; }
.bench__slots { display: flex; gap: 8px; }
.bslot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border-radius: 16px; background: #0b0f09; border: 1px dashed var(--line-2); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .55); transition: border-color .2s, transform .2s var(--spring); }
.bslot img { width: 40px; height: 40px; image-rendering: pixelated; }
.bslot.is-full { border-style: solid; border-color: var(--line-2); }
.bslot.is-full:hover::after { content: '×'; position: absolute; right: 4px; top: 0; font: 600 14px var(--font); color: var(--muted); }
.bslot.is-over { border-color: var(--accent); transform: scale(1.06); }
.bslot.is-pop { animation: slotPop .4s var(--spring); }
.bench__arrow { width: 44px; flex: none; fill: none; stroke: var(--dim); stroke-width: 3; stroke-linecap: square; transition: stroke .3s; }
.bench__arrow.is-on { stroke: var(--accent); }
.bslot--res { width: 84px; height: 84px; border-radius: 20px; border-style: solid; overflow: hidden; }
.bslot--res > img.cover { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.bslot--res > .res-ico { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); }
.bslot--res.is-on { border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, transparent); box-shadow: 0 0 30px -6px color-mix(in srgb, var(--c, var(--accent)) 60%, transparent); }
.bench__out { min-height: 132px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, .18); border: 1px solid var(--line); }
.bench__out h3 { margin: 0 0 2px; font: 700 20px var(--display); letter-spacing: -.4px; color: var(--c, var(--text)); }
.bench__out .k { font: 600 12px var(--font); color: var(--dim); }
.bench__out p { margin: 8px 0 12px; font-size: 14px; color: var(--muted); }
.bench__out .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bench__out .more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--dim); }
.bench__out .more button { padding: 3px 9px; border-radius: 8px; font: 500 12px var(--font); color: var(--muted); border: 1px solid var(--line-2); }
.bench__out .more button:hover { color: var(--text); border-color: var(--accent); }
.bench__out ul { margin: 10px 0 14px; padding: 0; list-style: none; display: grid; gap: 7px; }
.bench__out li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.bench__out li img { width: 20px; height: 20px; flex: none; image-rendering: pixelated; }
.bench__out .lvl-dots { font-style: normal; letter-spacing: 2px; color: var(--c, var(--accent)); }
.res-book { position: relative; overflow: hidden; }
.res-book img { width: 52px; height: 52px; }
.res-book::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(190, 120, 255, .55) 45%, transparent 60%); background-size: 250% 100%; mix-blend-mode: screen; animation: glint 2.6s linear infinite; -webkit-mask: url(../assets/img/mc/enchanted_book.png) center / 52px 52px no-repeat; mask: url(../assets/img/mc/enchanted_book.png) center / 52px 52px no-repeat; }
@keyframes glint { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.bench__out .empty { display: grid; place-items: center; min-height: 98px; text-align: center; font-size: 14px; color: var(--dim); }
.bench__out.is-new { animation: benchIn .45s var(--ease); }
@keyframes benchIn { from { opacity: 0; transform: translateY(8px); } }
.bench__btns { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
@media (max-width: 1024px) { .bench { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .bslot { width: 52px; height: 52px; border-radius: 13px; } .bslot img { width: 32px; height: 32px; }
  .bslot--res { width: 68px; height: 68px; } .bench__arrow { width: 30px; } .bench__grid { gap: 8px; }
  .bench__items { grid-template-columns: repeat(2, 1fr); }
  .xp__bar { width: 96px; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Фильтры ── */
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters__pill { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 12px; background: var(--accent); box-shadow: 0 8px 24px -8px var(--accent-glow); transition: transform .45s var(--spring), width .45s var(--ease), height .45s var(--ease); pointer-events: none; }
.chip-btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(18, 23, 15, .8);
  color: var(--muted); font-weight: 500; font-size: 15px;
  transition: color .25s, border-color .25s, background .25s;
}
.chip-btn b { font: 600 12px var(--mono); padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--muted); transition: .25s; }
.chip-btn:hover { color: var(--text); border-color: rgba(63, 209, 58, .35); }
.chip-btn.is-active { color: #0a1408; background: transparent; border-color: transparent; }
.chip-btn.is-active b { background: rgba(0, 0, 0, .15); color: #0a1408; }

/* ── Сетка работ ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; text-align: start;
  transition: border-color .3s, box-shadow .45s var(--ease), opacity .7s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--c) 60%, transparent); }
.card.is-hidden { display: none; }
.card.is-entering { animation: cardIn .6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.card__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c100a; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; isolation: isolate; }
.card__cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__cover > img { transform: scale(1.07); }
.card__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(9, 12, 8, .55)); pointer-events: none; }
.card__badge { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 4px 10px; border-radius: 8px; font: 600 12px var(--font); background: rgba(9, 12, 8, .78); border: 1px solid var(--line-2); }
.card__badge::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.card__count { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 4px 8px; border-radius: 8px; font: 600 11px var(--mono); background: rgba(9, 12, 8, .78); color: var(--muted); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card__title { margin: 0; font: 700 21px/1.2 var(--font); letter-spacing: -.2px; }
.card__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 9px; border-radius: 7px; font: 500 12px var(--mono); color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.card__more { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); transition: .35s var(--spring); }
.card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.card:hover .card__more { background: var(--c); border-color: var(--c); color: #0a1408; transform: rotate(-45deg) scale(1.08); }

/* ── Нарисованные обложки ── */
.mock { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; font-family: var(--pixel); }
.mock--roulette { background: radial-gradient(circle at 50% 50%, #2a2210, #0f0c06 70%); }
.roul { position: relative; width: 100%; height: 46%; overflow: hidden; border-block: 2px solid rgba(245, 197, 66, .35); background: rgba(0, 0, 0, .35); }
.roul__strip { position: absolute; top: 10%; bottom: 10%; left: 0; display: flex; gap: 8px; animation: roul 7s cubic-bezier(.15, .7, .2, 1) infinite; }
.roul__it { flex: none; width: 70px; height: 100%; display: grid; place-items: center; border-radius: 8px; background: #1b1b1b; box-shadow: inset 0 -4px 0 var(--r); }
.roul__it img { width: 62%; image-rendering: pixelated; }
.roul::before { content: ''; position: absolute; z-index: 2; left: 50%; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: #f5c542; box-shadow: 0 0 14px #f5c542; }
.mock--roulette .mock__label { position: absolute; top: 9%; font-size: 18px; color: #f5c542; letter-spacing: 2px; }
.mock--roulette .mock__sub { position: absolute; bottom: 9%; font: 600 12px var(--font); color: rgba(255, 255, 255, .5); }
@keyframes roul { 0% { transform: translateX(0); } 70%, 100% { transform: translateX(-780px); } }
.mock--quests { background: radial-gradient(circle at 50% 30%, #1d2610, #0b0f06 70%); }
.board { width: 72%; padding: 12px; background: #5d4126; border: 4px solid #3b2814; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); display: grid; gap: 7px; }
.board__h { color: #f6e3b4; font-size: 14px; text-align: center; letter-spacing: 1px; }
.q { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: center; padding: 6px 8px; background: #f1e3c2; color: #3b2814; font: 600 11px var(--font); }
.q i { width: 14px; height: 14px; background: var(--r); }
.q span { display: block; height: 5px; margin-top: 4px; background: #d7c39a; }
.q span::before { content: ''; display: block; height: 100%; width: var(--p); background: #3fd13a; animation: qfill 3s var(--ease) infinite; }
@keyframes qfill { 0% { width: 0; } 60%, 100% { width: var(--p); } }
.mock--discord { background: #1e1f22; place-items: center start; padding: 0 7%; }
.dmsg { display: grid; grid-template-columns: 34px 1fr; gap: 10px; width: 100%; font-family: var(--font); }
.dmsg__av { width: 34px; height: 34px; border-radius: 50%; background: #2b2d31 url('../assets/head-face.png') center/70% no-repeat; image-rendering: pixelated; }
.dmsg__name { font: 600 13px var(--font); color: #e8f0e2; }
.dmsg__name i { margin-left: 5px; padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font: 700 9px var(--font); font-style: normal; vertical-align: 2px; }
.dbox { margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: #2b2d31; border-left: 4px solid var(--accent); }
.dbox__banner { height: 30px; margin-bottom: 8px; border-radius: 5px; background: linear-gradient(90deg, #1f7a1b, #3fd13a, #a6f59a); background-size: 200% 100%; animation: shimmer 4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.dbox b { display: block; color: #fff; font-size: 13px; }
.dbox p { margin: 3px 0 8px; color: #b5bac1; font-size: 11px; line-height: 1.4; }
.dbtns { display: flex; gap: 6px; }
.dbtns span { padding: 4px 10px; border-radius: 4px; font: 600 11px var(--font); color: #fff; background: #4e5058; }
.dbtns span:first-child { background: #248046; }
.mock--relay { background: radial-gradient(circle at 20% 50%, #232543, transparent 60%), radial-gradient(circle at 80% 50%, #0f2e40, transparent 60%), #0c0e14; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 0 6%; }
.bub { padding: 9px 11px; border-radius: 12px; font: 500 11px/1.4 var(--font); color: #e6e6e6; }
.bub b { display: block; margin-bottom: 2px; font-size: 10px; }
.bub--ds { background: #313338; border-bottom-left-radius: 3px; }
.bub--ds b { color: #8e9cff; }
.bub--tg { background: #2b5278; border-bottom-right-radius: 3px; animation: arrive 3s var(--ease) infinite; }
.bub--tg b { color: #8fd0ff; }
@keyframes arrive { 0%, 20% { opacity: 0; transform: translateY(8px); } 35%, 100% { opacity: 1; transform: none; } }
.relay__arrow { display: flex; gap: 4px; }
.relay__arrow i { width: 7px; height: 7px; background: var(--accent); animation: hop 1.2s infinite; }
.relay__arrow i:nth-child(2) { animation-delay: .15s; }
.relay__arrow i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 100% { opacity: .2; transform: translateX(-3px); } 50% { opacity: 1; transform: translateX(3px); } }

.mock { container-type: inline-size; }
/* Игровой текст: пиксельный шрифт с тенью, как в Minecraft */
.mc-text, .mc-chat, .fsh__msg, .fsh__catch, .toast-mc, .chat-pal, .cm, .itm__tip, .anv { font-family: var(--pixel); font-weight: 500; }

/* ── Подсечка (спрайты из ресурспака промыслов) ── */
.mock--fishing { background: linear-gradient(#7fb0ff, #c3dafd 44%, #3b6fae 44%, #1d3f6e); }
.fsh__water { position: absolute; left: 0; right: 0; top: 44%; bottom: 0; background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(255, 255, 255, .06) 6px 8px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 30px); animation: water 6s linear infinite; }
@keyframes water { to { background-position: 0 0, 60px 0; } }
.fsh__bob { position: absolute; left: 50%; top: 47%; width: 2.4cqw; height: 3.2cqw; margin-left: -1.2cqw; background: linear-gradient(#e33 50%, #fff 50%); box-shadow: 0 0 0 .3cqw rgba(0, 0, 0, .35); animation: bob2 1.1s ease-in-out infinite; }
@keyframes bob2 { 50% { transform: translateY(.8cqw); } }
.mock--fishing.is-hit .fsh__bob { transform: translateY(1.6cqw); animation: none; }
.fsh__msg { position: absolute; left: 0; right: 0; bottom: 33%; text-align: center; font-size: clamp(12px, 4.4cqw, 26px); color: #fc7703; text-shadow: .45cqw .45cqw 0 rgba(0, 0, 0, .55); transition: opacity .3s; }
.mock--fishing.is-hit .fsh__msg { color: #47a64e; }
.mock--fishing.is-miss .fsh__msg { color: #ff5555; }
/* 1 «пиксель» шрифта = 100cqw / 203: полоса 184 + отступ 6 + круг 13 */
.fsh__hud { position: absolute; left: 11%; right: 11%; bottom: 17%; container-type: inline-size; transition: opacity .35s, transform .35s; }
.fsh__bar { position: relative; width: calc(184 * 100cqw / 203); height: calc(8 * 100cqw / 203); }
.fsh__track { display: block; width: 100%; height: 100%; }
.fsh__ptr { position: absolute; top: calc(-3 * 100cqw / 203); width: calc(5 * 100cqw / 203); height: calc(15 * 100cqw / 203); }
.fsh__ring { position: absolute; left: calc(190 * 100cqw / 203); top: calc(-3 * 100cqw / 203); width: calc(13 * 100cqw / 203); height: calc(13 * 100cqw / 203); }
.mock--fishing.is-hit .fsh__bar { filter: drop-shadow(0 0 .8cqw #47a64e); }
.mock--fishing.is-miss .fsh__bar { filter: drop-shadow(0 0 .8cqw #ff5555); animation: shake .32s; }
@keyframes shake { 25% { transform: translateX(-1.2%); } 50% { transform: translateX(1.2%); } 75% { transform: translateX(-.6%); } }
.mock--fishing.is-hit .fsh__ring { animation: ringPop .35s var(--spring); }
@keyframes ringPop { 40% { transform: scale(1.35); } }
.fsh__catch { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2cqw; font-size: clamp(13px, 4.6cqw, 28px); color: #ffaa00; text-shadow: .45cqw .45cqw 0 rgba(0, 0, 0, .55); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--spring); }
.fsh__catch img { width: 16cqw; height: 10cqw; animation: wiggle .5s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-8deg); } to { transform: rotate(8deg) translateY(-1cqw); } }
.mock--fishing.is-done .fsh__catch { opacity: 1; transform: none; }
.mock--fishing.is-done .fsh__hud, .mock--fishing.is-done .fsh__msg { opacity: 0; transform: translateY(2cqw); }

/* ── Табличка магазина на бочке: настоящие текстуры дуба и бочки, пропорции 2:1 ── */
.mock--shop { background: linear-gradient(#78a7ff, #c0d8ff 58%, #5d9b3a 58%, #3f7a28); }
.shop__barrel { position: absolute; left: 50%; top: 47%; height: 74%; aspect-ratio: 1; transform: translate(-50%, -50%); background: url('../assets/img/mc/barrel_side.png') center / 100% 100%; box-shadow: 0 1.4cqw 0 rgba(0, 0, 0, .25); container-type: inline-size; }
.shop__sign { position: absolute; left: 0; right: 0; top: 22%; height: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: url('../assets/img/mc/oak_sign_front.png') center / 100% 100%; box-shadow: inset 0 0 0 .6cqw rgba(70, 45, 15, .45), 0 1cqw 0 rgba(0, 0, 0, .35), 0 0 0 .5cqw rgba(30, 18, 6, .55); filter: brightness(1.08); font: 500 7.4cqw/1.16 var(--pixel); color: #000; white-space: nowrap; text-align: center; }
.shop__sign i { font-style: normal; color: #90c994; }
.shop__sign b { font-weight: 500; }
.shop__stock { display: inline-grid; }
.shop__stock em { grid-area: 1 / 1; font-style: normal; color: #47a64e; }
.shop__stock em:first-child { animation: stA 5s steps(1) infinite; }
.shop__stock em:last-child { animation: stB 5s steps(1) infinite; }
@keyframes stA { 0%, 59% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes stB { 0%, 59% { opacity: 0; } 60%, 100% { opacity: 1; } }
.shop__chat { animation: chatIn 5s infinite; }
@keyframes chatIn { 0%, 58% { opacity: 0; transform: translateY(6px); } 62%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ── Чат Minecraft ── */
.mc-chat { position: absolute; left: 4%; bottom: 7%; display: grid; justify-items: start; gap: .4cqw; font-size: clamp(10px, 3.1cqw, 18px); line-height: 1.3; color: #fff; text-shadow: .3cqw .3cqw 0 rgba(0, 0, 0, .6); }
.mc-chat span { padding: .2cqw 1.4cqw; background: rgba(0, 0, 0, .45); }
.mc-chat b, .mc-chat em { font-weight: 500; font-style: normal; }
.mc-chat--tall span { animation: lineIn .5s var(--ease) both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(1.5cqw); } }

/* ── Тост достижения ── */
.mock--toast { background: linear-gradient(#78a7ff, #c0d8ff 52%, #5d9b3a 52%, #3f7a28); }
.toast-mc { position: absolute; top: 9%; right: 5%; display: flex; align-items: center; gap: 2.4cqw; padding: 1.6cqw 3cqw 1.6cqw 2cqw; background: #212121; border: .5cqw solid #555; outline: .4cqw solid #000; box-shadow: inset .4cqw .4cqw 0 #3a3a3a; font-size: clamp(10px, 3.2cqw, 19px); line-height: 1.35; animation: toastIn 5s var(--ease) infinite; }
.toast-mc b { display: block; font-weight: 500; color: #ffff55; }
.toast-mc span { color: #fff; }
.toast-mc__ico { width: 6.4cqw; height: 6.4cqw; }
@keyframes toastIn { 0% { transform: translateX(130%); } 12%, 80% { transform: none; } 92%, 100% { transform: translateX(130%); } }
.mock--toast .mc-chat { animation: chatIn2 5s infinite; }
@keyframes chatIn2 { 0%, 14% { opacity: 0; } 20%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* ── Стили чата ── */
.mock--chat { background: linear-gradient(#5f86c9, #9fbbe8 50%, #4c7f30 50%, #2f5a1e); }
.chat-pal { position: absolute; top: 8%; left: 5%; right: 5%; display: flex; flex-wrap: wrap; gap: 1.4cqw; font-size: clamp(9px, 2.7cqw, 15px); }
.chat-pal span { display: flex; align-items: center; gap: 1.2cqw; padding: .8cqw 1.8cqw; color: #e5e5e5; background: rgba(0, 0, 0, .55); border: .4cqw solid #3a3a3a; }
.chat-pal span.is-on { border-color: #fff; }
.chat-pal i { width: 2.2cqw; height: 2.2cqw; }

/* ── Яйцо дракона ── */
.mock--egg { background: radial-gradient(circle at 50% 58%, #2c1243, #0b0612 72%); }
.egg__glow { position: absolute; left: 50%; top: 46%; width: 44%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(rgba(192, 132, 252, .45), transparent 65%); animation: eggGlow 3s ease-in-out infinite; }
@keyframes eggGlow { 50% { opacity: .5; transform: translate(-50%, -50%) scale(.85); } }
.egg__float { position: absolute; left: 50%; top: 20%; width: 22%; aspect-ratio: 1; margin-left: -11%; animation: eggFloat 3.6s ease-in-out infinite; perspective: 400px; }
.egg__float svg { width: 100%; height: 100%; animation: eggSpin 5s linear infinite; filter: drop-shadow(0 0 2cqw rgba(192, 132, 252, .6)); }
@keyframes eggFloat { 50% { transform: translateY(-6%); } }
@keyframes eggSpin { to { transform: rotateY(360deg); } }
.egg__p { position: absolute; left: var(--x); bottom: 24%; width: 1.2cqw; height: 1.2cqw; background: #c084fc; box-shadow: 0 0 1.2cqw #c084fc; animation: eggP 3s linear var(--d) infinite; opacity: 0; }
@keyframes eggP { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34cqw) translateX(4cqw); } }
.egg__base { position: absolute; left: 50%; bottom: 13%; width: 30%; height: 11%; transform: translateX(-50%); background: url('../assets/img/mc/obsidian.png') 0 0 / 5.5cqw 5.5cqw; image-rendering: pixelated; box-shadow: inset 0 .6cqw 0 rgba(255, 255, 255, .08); }
.egg__label { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font: 500 clamp(10px, 3cqw, 17px) var(--pixel); color: #d8b4fe; text-shadow: .3cqw .3cqw 0 #000; }

/* ── Меню с курсором ── */
.mock--cursor { background: linear-gradient(#6f9ae0, #b3cdf5 46%, #4f8433 46%, #2c5b1b); }
.cm { position: absolute; left: 19%; right: 19%; top: 50%; aspect-ratio: 1.75; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4%; padding: 3.5%; background: rgba(10, 14, 9, .84); border: .4cqw solid rgba(255, 255, 255, .2); font-size: clamp(10px, 2.9cqw, 17px); }
.cm__h { text-align: center; color: #a3e635; text-shadow: .3cqw .3cqw 0 #000; }
.cm__grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6%; }
.cm__b { display: grid; place-items: center; color: #e8f0e2; background: rgba(255, 255, 255, .06); border: .3cqw solid rgba(255, 255, 255, .14); animation: cmHot 8s steps(1) infinite; }
.cm__b--1 { animation-delay: -6s; }
.cm__b--2 { animation-delay: -4s; }
.cm__b--3 { animation-delay: -2s; }
@keyframes cmHot { 0%, 24% { background: rgba(163, 230, 53, .25); border-color: #a3e635; color: #fff; } 25%, 100% { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); } }
.cm__cursor { position: absolute; width: 3.4cqw; height: 4.4cqw; background: #fff; clip-path: polygon(0 0, 100% 72%, 55% 70%, 75% 100%, 60% 100%, 42% 74%, 0 95%); filter: drop-shadow(.3cqw .3cqw 0 #000); animation: cmMove 8s var(--ease) infinite; }
@keyframes cmMove {
  0%, 20% { left: 36%; top: 47%; }
  25%, 45% { left: 62%; top: 47%; }
  50%, 70% { left: 36%; top: 69%; }
  75%, 95% { left: 62%; top: 69%; }
  100% { left: 36%; top: 47%; }
}

/* ── Предметы ── */
.mock--items { background: linear-gradient(#7aa5f0, #bad3fb 50%, #6b4a2a 50%, #4a321c); }
.itm__bar { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); display: flex; padding: .6cqw; background: #1b1f19; border: .5cqw solid #000; }
.itm__bar span img { width: 72%; height: 72%; object-fit: contain; }
.itm__bar span { display: grid; place-items: center; width: 11cqw; height: 11cqw; background: #2a3027; border: .4cqw solid; border-color: #13160f #4a5444 #4a5444 #13160f; position: relative; animation: itmSel 4s steps(1) infinite; animation-delay: calc(var(--i) * 2s - 4s); }
@keyframes itmSel { 0%, 49% { box-shadow: inset 0 0 0 .7cqw #fff; } 50%, 100% { box-shadow: none; } }
.itm__tip { position: absolute; left: 0; right: 0; bottom: 29%; display: grid; justify-items: center; font-size: clamp(11px, 3.4cqw, 19px); }
.itm__tip span { grid-area: 1 / 1; padding: .8cqw 2cqw; color: #ffaa00; background: rgba(16, 0, 16, .94); border: .4cqw solid #25015b; text-shadow: .3cqw .3cqw 0 #3e2a00; opacity: 0; animation: itmTip 4s steps(1) infinite; animation-delay: calc(var(--i) * 2s - 4s); }
@keyframes itmTip { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.itm__foam { position: absolute; left: 30%; top: 20%; width: 40%; height: 30%; animation: itmTip 4s steps(1) infinite; animation-delay: -4s; }
.itm__foam i { position: absolute; left: calc(var(--i) * 11%); bottom: 0; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: foam 2s ease-out infinite; animation-delay: calc(var(--i) * .22s); }
@keyframes foam { 0% { transform: translateY(0) scale(.4); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-12cqw) scale(1.1); opacity: 0; } }

/* ── Админ-команды ── */
.mock--admin { background: linear-gradient(#5f86c9, #9fbbe8 46%, #4c7f30 46%, #2f5a1e); }
.mock--admin .mc-chat { left: 5%; right: 5%; bottom: 10%; }

/* ── Наковальня ── */
.mock--anvil { background: linear-gradient(#3a3f4a, #1d2027); }
.anv { position: absolute; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%); padding: 2.6cqw 3cqw; background: #c6c6c6; border: .6cqw solid; border-color: #fff #555 #555 #fff; outline: .4cqw solid #000; color: #404040; font-size: clamp(10px, 3cqw, 17px); }
.anv__h { margin-bottom: 1.8cqw; }
.anv__name { position: relative; margin-bottom: 2.6cqw; padding: .6cqw 1.6cqw; color: #fff; background: #000; border: .4cqw solid #a0a0a0; }
.anv__name i { display: inline-block; width: 1.4cqw; height: .5cqw; margin-left: .6cqw; background: #fff; animation: blink 1s steps(1) infinite; }
.anv__row { display: flex; align-items: center; justify-content: center; gap: 2.4cqw; }
.anv__row b { font-weight: 500; color: #404040; }
.anv__slot img { width: 80%; height: 80%; object-fit: contain; }
.anv__slot { display: grid; place-items: center; width: 9.6cqw; height: 9.6cqw; background: #8b8b8b; border: .5cqw solid; border-color: #373737 #fff #fff #373737; }
.anv__slot--out { box-shadow: 0 0 2.4cqw rgba(244, 114, 182, .8); animation: anvGlow 2s ease-in-out infinite; }
@keyframes anvGlow { 50% { box-shadow: 0 0 .8cqw rgba(244, 114, 182, .4); } }
.anv__cost { margin-top: 2cqw; text-align: right; color: #80ff20; text-shadow: .3cqw .3cqw 0 #203f00; }

/* ══════════ Навыки: хотбар ══════════ */
.inv { position: relative; display: grid; gap: 22px; justify-items: center; }
.hotbar { display: grid; grid-template-columns: repeat(9, 64px); gap: 0; padding: 6px; background: #1b1f19; border: 3px solid #000; box-shadow: inset 3px 3px 0 #3a4236, inset -3px -3px 0 #0b0d0a, 0 30px 60px -30px rgba(0, 0, 0, .8); }
.slot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; font-size: 30px; background: #2a3027; border: 2px solid; border-color: #13160f #4a5444 #4a5444 #13160f; transition: transform .25s var(--spring), background .2s; }
.slot:hover { background: #343c30; }
.slot__n { position: absolute; left: 4px; top: 1px; font: 600 11px var(--pixel); color: rgba(255, 255, 255, .45); }
.slot__ico { transition: transform .35s var(--spring); filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .5)); }
.slot.is-on { z-index: 2; background: #343c30; }
.slot.is-on::after { content: ''; position: absolute; inset: -6px; border: 4px solid #fff; box-shadow: 0 0 0 2px #000, 0 0 20px rgba(255, 255, 255, .25); pointer-events: none; }
.slot.is-on .slot__ico { transform: scale(1.15) translateY(-2px); }
.mc-tip { position: fixed; z-index: 120; pointer-events: none; padding: 6px 9px 7px; background: rgba(16, 0, 16, .94); border: 2px solid #25015b; outline: 2px solid rgba(16, 0, 16, .94); font: 500 15px/1.4 var(--pixel); color: #a8a8a8; max-width: 280px; }
.mc-tip b { display: block; font-weight: 500; }
.skill-card { width: min(760px, 100%); display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.skill-card__ico { display: grid; place-items: center; width: 96px; height: 96px; font-size: 52px; border-radius: 20px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 25%, transparent), transparent 70%), #1a2016; border: 1px solid var(--line-2); animation: pop .45s var(--spring); }
.skill-card h3 { margin: 0 0 6px; font: 700 26px var(--display); letter-spacing: -.5px; color: var(--c); }
.skill-card ul { margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); }
.skill-card li::before { content: '▪ '; color: var(--c); }
.skill-card h4 { margin: 0 0 8px; font: 600 12px var(--font); letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.skill-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-card .chips button { padding: 5px 11px; border-radius: 8px; font-size: 13px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); transition: .25s; }
.skill-card .chips button:hover { border-color: var(--c); color: var(--c); transform: translateY(-2px); }
.skill-card > div { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ══════════ Контакты ══════════ */
/* ══════════ Контакты: текст слева, наклонённая сетка карточек справа ══════════ */
.cx { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.cx__text .lead { max-width: 440px; }
.cx__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cx__ico { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.cx__ico svg { width: 18px; height: 18px; fill: currentColor; }
.cx__stage { perspective: 1600px; }
.cx__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: repeat(3, auto); gap: 18px;
  transform: rotateY(-13deg) rotateX(7deg) rotateZ(-1.5deg); transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.cx__stage:hover .cx__grid { transform: rotateY(-7deg) rotateX(4deg) rotateZ(-.8deg); }
.cxc {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: linear-gradient(170deg, #161c22, #0f1318); border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .4s;
}
.cxc:hover { transform: translateZ(34px); border-color: rgba(255, 255, 255, .16); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95); }
.cxc__prev { position: relative; height: 92px; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .05); background: #11171d; }
.cxc__info { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px 16px; }
.cxc__head { width: 40px; height: 40px; border-radius: 8px; transition: transform .5s var(--spring); }
.cxc__head.is-round { border-radius: 50%; }
.cxc__head.is-ds { border-radius: 12px; }
.cxc:hover .cxc__head { transform: rotate(-8deg) scale(1.06); }
.cxc__t { display: block; font: 700 16px var(--display); letter-spacing: -.3px; color: var(--text); }
.cxc__t code { margin-left: 4px; font: 500 12px var(--mono); color: var(--dim); }
.cxc__info p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cxc__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.cxc__ico svg { width: 18px; height: 18px; fill: #fff; }
.cxc__ico--tg { background: #229ed9; }
.cxc__ico--ds { background: #5865f2; }
/* превью: переписка в Telegram */
.tgc { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 14px; background: radial-gradient(circle at 20% 0%, #1f3346, transparent 70%), #0e1621; }
.tgc span { max-width: 80%; padding: 6px 10px; border-radius: 12px; font-size: 12px; line-height: 1.3; }
.tgc__in { align-self: flex-start; color: #e4ecf2; background: #182533; border-bottom-left-radius: 4px; }
.tgc__out { align-self: flex-end; color: #fff; background: #2b5278; border-bottom-right-radius: 4px; }
/* превью: пост канала */
.tgp { position: absolute; inset: 0; padding: 10px 14px; background: radial-gradient(circle at 80% 0%, #1d3a2a, transparent 70%), #0e1621; }
.tgp__h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 700 12px var(--font); color: #fff; }
.tgp__h img { width: 20px; height: 20px; border-radius: 50%; background: #1b2117; }
.tgp p { margin: 0; padding: 7px 10px; border-radius: 12px 12px 12px 4px; font-size: 12px; line-height: 1.35; color: #c9d6e2; background: #182533; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* превью: каналы сервера */
.dsv { position: absolute; inset: 0; display: grid; align-content: center; gap: 3px; padding: 8px 14px; background: radial-gradient(circle at 80% 0%, #2a2e5c, transparent 70%), #1e1f22; font: 500 12px var(--font); color: #949ba4; }
.dsv span { padding: 2px 8px; border-radius: 6px; }
.dsv span.is-on { color: #fff; background: rgba(255, 255, 255, .07); }
.dsv em { position: absolute; right: 12px; top: 10px; display: flex; align-items: center; gap: 5px; font-style: normal; color: #dbdee1; }
.dsv em .dot { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 8px #23a55a; }

/* Discord: карточка-профиль — баннер, рамка аватара, табличка под ником и эффект профиля */
.cxc--ds { grid-row: 1 / span 3; background: linear-gradient(160deg, rgba(133, 243, 254, .55), rgba(133, 243, 254, .08) 45%, rgba(133, 243, 254, .45)); padding: 2px; border-color: rgba(133, 243, 254, .35); }
/* фон всей плашки — как «бейджик» (nameplate lucky clover): бирюзовая дымка, разбросанные клеверы и искры */
.dsp { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 60% at 100% 100%, rgba(133, 243, 254, .30), transparent 70%), linear-gradient(90deg, rgba(133, 243, 254, 0) 30%, rgba(133, 243, 254, .14) 75%, rgba(133, 243, 254, .26)), #0e1416; }
.dsp__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dsp__banner, .dsp__body { position: relative; z-index: 1; }
.dsb__clover { position: absolute; height: auto; opacity: var(--o); filter: blur(var(--b)) drop-shadow(0 0 10px rgba(120, 255, 170, .35)); transform: translate(-50%, -50%) rotate(var(--r)); animation: clover var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes clover { to { transform: translate(-50%, calc(-50% - 9px)) rotate(calc(var(--r) + 14deg)); } }
.dsb__spark { position: absolute; width: var(--s); height: var(--s); background: #c8fbff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px #85f3fe); animation: spark var(--t) ease-in-out var(--d) infinite; }
@keyframes spark { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.dsp__banner { width: 100%; aspect-ratio: 1024 / 361; object-fit: cover; display: block; }
.dsp__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 0 18px 18px; }
.dsp__avatar { position: relative; width: 88px; height: 88px; margin-top: -48px; }
.dsp__avatar > #dsAvatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #1b2117; border: 5px solid #0e1416; box-sizing: content-box; margin: -5px; }
.dsp__avatar > #dsAvatar.px { padding: 14px; }
.dsp__deco { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; pointer-events: none; }
.dsp__name { position: relative; margin: 8px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 22px var(--display); letter-spacing: -.5px; background: var(--name, linear-gradient(90deg, #35d65f, #16d8b2, #20c5f5, #2b7cff, #6b4dff)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nameFlow 6s linear infinite; }
@keyframes nameFlow { to { background-position: -200% 0; } }
.dsp .ds-meta { position: relative; margin: 0; }
.dsp .ds-status { margin: 4px 0 0; }
.dsp__about { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.dsp__btn { align-self: flex-start; margin-top: auto; position: relative; }
.dsp__fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: .78; }
.dsp__fx img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.ds-dot { position: absolute; right: 2px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; border: 4px solid #0e1416; background: var(--st, #80848e); }
.ds-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ds-handle { font: 13px var(--mono); color: var(--muted); }
.ds-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 4px; border-radius: 6px; font: 700 12px var(--font); color: var(--text); background: rgba(255, 255, 255, .07); }
.ds-tag img { width: 14px; height: 14px; }
.ds-status { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text); }
.ds-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--st, #80848e); box-shadow: 0 0 8px var(--st, transparent); }
.ds-status img { width: 20px; height: 20px; }
@media (max-width: 1100px) {
  .cx { grid-template-columns: 1fr; }
  .cx__grid { transform: rotateY(-6deg) rotateX(4deg); }
}
@media (max-width: 760px) {
  .cx__grid { grid-template-columns: 1fr; transform: none; }
  .cx__stage:hover .cx__grid { transform: none; }
  .cxc--ds { grid-row: auto; }
  .cxc:hover { transform: none; }
}
html.lite .cx__grid, html.lite .cx__stage:hover .cx__grid { transform: none; }
html.lite .dsp__fx { display: none; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--dim); }

/* ══════════ Кнопки ══════════ */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); transition: background .25s, box-shadow .25s, border-color .25s, color .25s; }
.btn svg { width: 19px; height: 19px; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #08130a; overflow: hidden; }
.btn--accent::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: sweep 3.6s ease-in-out infinite; }
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn--accent svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn--accent:hover { box-shadow: 0 14px 40px -10px var(--accent-glow); }
.btn--accent:hover svg { transform: translateX(4px); }
.hero__cta .btn--accent:hover svg { transform: translateY(3px); }
.btn--ghost { backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(63, 209, 58, .45); color: var(--accent-2); }
.btn--ds { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn--tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.btn--lg { padding: 16px 26px; font-size: 17px; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.magnetic { transition: transform .35s var(--spring), background .25s, box-shadow .25s, border-color .25s, color .25s; transform: translate3d(var(--gx, 0), var(--gy, 0), 0); }

/* ══════════ Заказ ══════════ */
.order { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.order__text .lead { margin-bottom: 30px; }
.deck { position: relative; height: 560px; perspective: 1400px; }
.deck__cards { position: absolute; inset: 40px 30px; }
.ocard {
  position: absolute; left: 0; right: 0; top: 50%;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 24px; border-radius: 20px;
  background: linear-gradient(160deg, #1a2116, #10140d); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  transform: translateY(-50%) translate3d(var(--tx), var(--ty), 0) rotate(var(--rot)) scale(var(--sc, 1));
  transition: transform .6s var(--spring), border-color .3s, box-shadow .3s;
  overflow: hidden; cursor: default;
}
.ocard:nth-child(1) { --tx: -14px; --ty: -150px; --rot: -4deg; z-index: 1; }
.ocard:nth-child(2) { --tx: 30px; --ty: 0px; --rot: 2.5deg; z-index: 2; }
.ocard:nth-child(3) { --tx: -6px; --ty: 150px; --rot: -1.5deg; z-index: 3; }
.deck:hover .ocard:nth-child(1) { --ty: -168px; --rot: -6deg; }
.deck:hover .ocard:nth-child(2) { --tx: 44px; --rot: 3.5deg; }
.deck:hover .ocard:nth-child(3) { --ty: 168px; --rot: .5deg; }
.ocard:hover { --sc: 1.04; z-index: 5; border-color: rgba(63, 209, 58, .45); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(63, 209, 58, .2); }
.ocard pre { position: absolute; inset: 0 0 0 auto; width: 62%; margin: 0; padding: 14px; font: 10.5px/1.6 var(--mono); color: #cfd8c9; opacity: .12; white-space: pre; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40%); pointer-events: none; }
.ocard h3 { position: relative; margin: 0; font: 700 21px var(--display); letter-spacing: -.4px; display: flex; align-items: center; gap: 10px; }
.ocard h3 i { display: inline-block; width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ocard p { position: relative; margin: 0; color: var(--muted); font-size: 14.5px; max-width: 420px; }
.ocard a { position: relative; align-self: flex-start; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid var(--line-2); transition: .25s; }
.ocard a:hover { background: var(--accent); border-color: var(--accent); color: #08130a; }
.badge-float { position: absolute; z-index: 6; left: var(--bx); top: var(--by); display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px; font: 600 13px var(--font); background: rgba(18, 23, 15, .92); border: 1px solid rgba(63, 209, 58, .3); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); animation: float 5s ease-in-out var(--d) infinite; }
.badge-float i { font-style: normal; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }

/* ══════════ Кнопки заказа ══════════ */
.order__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.h2--sm { font-size: clamp(26px, 3.2vw, 38px); }
@media (max-width: 760px) {
}

/* ══════════ Футер и кнопка наверх ══════════ */
.footer { border-top: 1px solid var(--line); background: rgba(9, 12, 8, .8); }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 14px; }
.footer__soc { display: flex; gap: 8px; }
.footer__soc a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); color: var(--muted); }
.footer__soc a:hover { color: var(--accent); border-color: rgba(63, 209, 58, .4); }
.footer__soc svg { width: 18px; height: 18px; fill: currentColor; }
.footer__soc a.stroke svg { fill: none; stroke: currentColor; stroke-width: 2; }
.to-top { position: fixed; z-index: 45; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: rgba(12, 16, 10, .85); border: 1px solid var(--line-2); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: .4s var(--spring); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); }
.to-top__ring { position: absolute; inset: 1px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--line-2); stroke-width: 2; }
.to-top__ring circle + circle { stroke: var(--accent); stroke-dasharray: 125.7; stroke-dashoffset: var(--off, 125.7); stroke-linecap: round; }
.to-top__arrow { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.to-top:hover .to-top__arrow { transform: translateY(-3px); }

/* ══════════ Окно проекта ══════════ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 4, .82); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box {
  position: relative; width: min(1180px, 100%); max-height: calc(100svh - 48px);
  display: grid; grid-template-columns: 1.55fr 1fr;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden;
  box-shadow: 0 50px 120px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(40px) scale(.95) rotateX(6deg); transition: .5s var(--spring);
}
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close { position: absolute; z-index: 5; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; font-size: 26px; line-height: 1; color: var(--muted); background: rgba(0, 0, 0, .5); border: 1px solid var(--line-2); transition: .3s var(--spring); }
.modal__close:hover { color: var(--text); transform: rotate(90deg); }
.modal__media { display: flex; flex-direction: column; min-width: 0; background: #070906; border-right: 1px solid var(--line); overflow-y: auto; }
.viewer { position: relative; flex: none; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.viewer > img, .viewer > video { width: 100%; height: 100%; object-fit: contain; animation: slideIn .45s var(--ease); }
.viewer > .mock { animation: slideIn .45s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(var(--dir, 20px)) scale(1.02); } }
.viewer__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(9, 12, 8, .82); font-size: 14px; color: var(--text); pointer-events: none; animation: fadeUp .4s var(--ease); }
.viewer__nav { position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; border-radius: 12px; background: rgba(9, 12, 8, .7); border: 1px solid var(--line-2); color: var(--text); font-size: 20px; transition: .25s; }
.viewer__nav:hover { background: var(--accent); color: #08130a; }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
.viewer__count { position: absolute; z-index: 3; left: 12px; top: 12px; padding: 3px 8px; border-radius: 7px; font: 600 12px var(--mono); background: rgba(9, 12, 8, .75); color: var(--muted); }
.thumbs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.thumbs button { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; opacity: .5; border: 2px solid transparent; transition: .25s; }
.thumbs button:hover { opacity: .85; transform: translateY(-2px); }
.thumbs button.is-on { opacity: 1; border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb-mock { display: grid; place-items: center; width: 100%; height: 100%; background: #1a2016; color: var(--accent); font-size: 18px; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; background: rgba(0, 0, 0, .35); color: #fff; }
.modal__info { padding: 30px 28px; overflow-y: auto; }
.modal__info > * { animation: fadeUp .5s var(--ease) both; }
.modal__info > *:nth-child(2) { animation-delay: .05s; }
.modal__info > *:nth-child(3) { animation-delay: .1s; }
.modal__info > *:nth-child(n+4) { animation-delay: .15s; }
.modal__kind { font: 600 12px var(--font); letter-spacing: 1.5px; text-transform: uppercase; color: var(--c, var(--accent)); }
.modal__info h3 { margin: 6px 0 12px; font: 700 32px/1.1 var(--display); letter-spacing: -1px; }
.modal__info > p { margin: 0 0 18px; color: var(--muted); }
.modal__info h4 { margin: 22px 0 10px; font: 600 13px var(--font); letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.modal__info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.modal__info li { position: relative; padding-inline-start: 20px; font-size: 15px; }
.modal__info li::before { content: ''; position: absolute; inset-inline-start: 0; top: .6em; width: 7px; height: 7px; background: var(--c, var(--accent)); }
.modal__info .btn { margin-top: 26px; }
.modal__note { margin-top: 14px; font-size: 13px; color: var(--dim); }

.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; padding: 12px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid rgba(63, 209, 58, .35); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); font-size: 14px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .45s var(--spring), visibility .45s; max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ══════════ Языки ══════════ */
html[lang="zh"] { --font: 'Onest', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --display: 'Unbounded', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
html[lang="ja"] { --font: 'Onest', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', sans-serif; --display: 'Unbounded', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', sans-serif; }
html[lang="ar"] { --font: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Onest', sans-serif; --display: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Unbounded', sans-serif; --pixel: 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif; }
html[lang="ar"] body *, html[lang="zh"] .h2, html[lang="ja"] .h2 { letter-spacing: 0 !important; }
html[lang="zh"] .lead, html[lang="ja"] .lead { line-break: strict; }
/* в RTL код, терминал, хотбар и бегущая строка остаются слева направо */
[dir="rtl"] .win, [dir="rtl"] pre, [dir="rtl"] .loot__world, [dir="rtl"] .loot__hud, [dir="rtl"] .hotbar, [dir="rtl"] .hero__name, [dir="rtl"] .viewer, [dir="rtl"] .thumbs, [dir="rtl"] .tags, [dir="rtl"] .ds-meta { direction: ltr; }
[dir="rtl"] .dots { right: auto; left: 22px; }
[dir="rtl"] .to-top { right: auto; left: 22px; }
[dir="rtl"] .card__badge { left: auto; right: 12px; }
[dir="rtl"] .card__count { right: auto; left: 12px; }
[dir="rtl"] .card__more svg, [dir="rtl"] .btn--accent:not(.hero__cta .btn) svg { transform: scaleX(-1); }
[dir="rtl"] .ds-dot { right: auto; left: 0; }

/* ══════════ Лёгкий режим ══════════ */
html.lite { scroll-behavior: auto; }
/* показ работ (обложки и окно проекта) живёт и в лёгком режиме */
html.lite :not(.card__cover *, .viewer *), html.lite :not(.card__cover *, .viewer *)::before, html.lite :not(.card__cover *, .viewer *)::after { animation: none !important; transition: none !important; }
html.lite #spores, html.lite .hero__hint, html.lite .badge-float, html.lite .btn--accent::before { display: none; }
html.lite .nav, html.lite .modal__backdrop, html.lite .btn--ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.lite .nav { background: rgba(10, 13, 9, .97); }
html.lite .reveal { opacity: 1; transform: none; }
html.lite .win { opacity: 1; translate: 0 0; transform: none; }
html.lite .tilt { transform: none !important; }
html.lite .tilt::after { display: none; }
html.lite .loot__world { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
html.lite .adv { transition: none; }
html.lite .typer::after { display: none; }
html.lite .skin__cube { transform: none; }
html.lite .modal__box { opacity: 1; transform: none; }
html.lite .magnetic { transform: none; }

/* ══════════ Адаптив ══════════ */
@media (max-width: 1240px) {
  .win--idea { --x: 63% !important; }
  .win--shader { --x: 65% !important; }
  .nav__links a span { display: none; }
  .nav__links a { padding: 10px 12px; }
}
@media (max-width: 1100px) {
  .win--code { display: none; }
  .win--term { --x: 0% !important; --y: 6% !important; width: 400px; }
  .win--idea { --x: auto !important; right: 0; --y: 64% !important; width: 400px; }
}
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about, .order { grid-template-columns: 1fr; }
  .modal__box { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__media { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .modal__info { overflow: visible; }
  .dots { display: none; }
  .hotbar { grid-template-columns: repeat(9, 52px); }
  .slot { width: 52px; height: 52px; font-size: 24px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; gap: 2px; padding: 8px;
    background: rgba(12, 16, 10, .98); border: 1px solid var(--line); border-radius: 16px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .3s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__pill { display: none; }
  .nav__links a span { display: inline; }
  .nav__links a.is-active { background: rgba(63, 209, 58, .12); }
  .nav__tools { margin-inline-start: auto; }
  .nav__burger { display: block; }
  .nav.is-top .nav__in { padding: 10px 12px; }

  .hero { padding-top: 90px; }
  .hero__stage { height: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 30px; }
  .hero__center { position: static; transform: none; order: -1; }
  .skin { --k: 15; }
  .cube--hat { --k: calc(15 * 1.125); left: -7.5px; top: -7.5px; }
  .hero__hi { margin-top: 38px; }
  .win { position: relative; left: auto !important; right: auto !important; top: auto !important; width: 100% !important; max-width: 460px; transform: none !important; }
  .win--idea { display: none; }
  .win__bar { cursor: default; }
  .hero__scroll, .hero__hint { display: none; }
  .hero__restore { position: static; transform: none; margin: 16px auto 0; display: block; }
  .hero__restore[hidden] { display: none; }

  .section { padding: 80px 0 24px; }
  .grid { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px; }
  .loot__bar { align-items: flex-start; }
  .loot__title span { display: none; }
  .hotbar { grid-template-columns: repeat(9, minmax(0, 1fr)); width: 100%; padding: 3px; border-width: 2px; }
  .slot { width: auto; height: auto; min-width: 0; aspect-ratio: 1; font-size: 18px; }
  .slot.is-on::after { inset: -3px; border-width: 3px; }
  .slot__n { display: none; }
  .skill-card { grid-template-columns: 1fr; padding: 20px; }
  .skill-card__ico { width: 72px; height: 72px; font-size: 38px; }
  .deck { height: auto; perspective: none; }
  .deck__cards { position: static; display: grid; gap: 12px; }
  .ocard { position: relative; top: auto; transform: none !important; }
  .badge-float { display: none; }
  .footer__in { flex-direction: column; text-align: center; }
  .modal { padding: 0; }
  .modal__box { max-height: 100svh; height: 100svh; border-radius: 0; }
  .modal__close { position: fixed; top: 10px; right: 10px; }
  .modal__info { padding: 22px 18px 40px; }
  .modal__info h3 { font-size: 28px; }
  .viewer__cap { left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; font-size: 12px; }
  .viewer__nav { width: 34px; height: 34px; margin-top: -17px; }
  .thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #2a3326 transparent; }
  .thumbs button { width: 84px; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 420px) {
  .nav__brand span { display: none; }
  .hero__name { letter-spacing: -1px; }
}
@media (hover: none) {
}
