/* ============================================================
   ONECLI. CREATOR — FX layer (redesign v2): light, depth, motion
   ============================================================ */

/* ---------- loader ---------- */
.fx-loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; gap: 22px; justify-items: center;
  background: radial-gradient(circle at 50% 45%, #10131f, #05060c 70%); transition: opacity .9s ease, visibility .9s; }
.fx-loader img { width: min(260px, 60vw); filter: drop-shadow(0 0 30px rgba(0, 240, 255, .55)); animation: fx-breathe 1.6s ease-in-out infinite; }
.fx-loader__bar { width: min(240px, 56vw); height: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; border-radius: 2px; }
.fx-loader__bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, #00f0ff, #aaff00, transparent); animation: fx-load 1.1s ease-in-out infinite; }
.fx-loader.done { opacity: 0; visibility: hidden; }
@keyframes fx-load { from { transform: translateX(-120%); } to { transform: translateX(260%); } }
@keyframes fx-breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.05); opacity: 1; } }

/* ---------- global layers ---------- */
.fx-motes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.fx-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 1001; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #ff2d9b, #b026ff, #00f0ff, #aaff00); box-shadow: 0 0 14px rgba(0, 240, 255, .8); pointer-events: none; }
.fx-cursor { position: fixed; left: 0; top: 0; z-index: 1002; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .3s; }
.fx-cursor.on { opacity: 1; }
.fx-cursor i { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(0, 240, 255, .85); box-shadow: 0 0 18px rgba(0, 240, 255, .6), inset 0 0 12px rgba(0, 240, 255, .35);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), border-color .25s, background .25s; }
.fx-cursor::after { content: ''; position: absolute; left: -110px; top: -110px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, .12), rgba(176, 38, 255, .05) 45%, transparent 70%); }
.fx-cursor.hot i { transform: scale(1.7); border-color: #aaff00; background: rgba(170, 255, 0, .08); box-shadow: 0 0 22px rgba(170, 255, 0, .7); }
.fx-cursor.down i { transform: scale(.7); }
@media (pointer: coarse) { .fx-cursor { display: none; } }

/* ---------- headings: words rise in ---------- */
.fx-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .02em .08em; margin-bottom: -.08em; }
.fx-w > span { display: inline-block; transform: translateY(105%) rotate(5deg); opacity: 0; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s; transition-delay: calc(var(--i) * 55ms + 120ms); }
.in .fx-w > span, .fx-w.in > span { transform: none; opacity: 1; }

/* ---------- buttons: shine sweep + magnetic ---------- */
.btn-neon { position: relative; overflow: hidden; transition: translate .35s cubic-bezier(.2, .9, .3, 1.3), box-shadow .3s, background .3s, color .3s, border-color .3s; }
.btn-neon::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: fx-shine 5.5s ease-in-out infinite; }
@keyframes fx-shine { 0%, 70% { left: -60%; } 100% { left: 140%; } }

/* ============ HERO ============ */
.hero__rays { position: absolute; inset: -20%; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: repeating-conic-gradient(from 200deg at 78% -8%, rgba(255, 220, 150, .0) 0deg, rgba(255, 220, 150, .16) 3deg, rgba(255, 220, 150, 0) 7deg, rgba(0, 240, 255, 0) 11deg);
  -webkit-mask-image: radial-gradient(ellipse at 78% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 78% 0%, #000 10%, transparent 70%);
  animation: fx-rays 14s ease-in-out infinite alternate; filter: blur(2px); }
@keyframes fx-rays { from { transform: rotate(-3deg); opacity: .4; } to { transform: rotate(4deg); opacity: .7; } }

.hero h1.hook { font-size: clamp(40px, 6.2vw, 92px); line-height: .98; letter-spacing: -.5px; margin-bottom: 26px;
  text-shadow: 0 0 40px rgba(0, 240, 255, .35), 0 6px 30px rgba(0, 0, 0, .7); }
.hook .wd { display: inline-block; white-space: nowrap; }
.hook .glow-g { background: none !important; -webkit-text-fill-color: currentColor !important; color: #aaff00 !important; animation: none !important; filter: drop-shadow(0 0 24px rgba(170, 255, 0, .55)); }
.hook .ch { display: inline-block; opacity: 0; transform: translateY(.5em) scale(1.6) rotate(var(--r, 0deg)); filter: blur(14px); }
.hook.lit .ch { animation: fx-ch .9s cubic-bezier(.15, .9, .25, 1.15) forwards; animation-delay: calc(var(--i) * 34ms); }
@keyframes fx-ch { 0% { opacity: 0; transform: translateY(.5em) scale(1.6) rotate(var(--r)); filter: blur(14px); }
  55% { opacity: 1; filter: blur(0); color: #fff; text-shadow: 0 0 30px #00f0ff, 0 0 60px #00f0ff; }
  100% { opacity: 1; transform: none; filter: none; } }
.hook.jolt { animation: fx-jolt .45s cubic-bezier(.3, 1.6, .4, 1); }
@keyframes fx-jolt { 0% { transform: translate(0, 0); } 20% { transform: translate(-7px, 4px) skewX(-3deg); } 45% { transform: translate(5px, -3px) skewX(2deg); } 70% { transform: translate(-2px, 1px); } 100% { transform: none; } }
.hero .glow-g { position: relative; }

.forge { position: relative; z-index: 2; width: 100%; aspect-ratio: 1; max-width: 600px; justify-self: center; perspective: 1100px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.forge__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .2s linear; }
.forge__halo { position: absolute; left: 60%; top: 62%; width: 92%; height: 92%; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 240, 255, .42), rgba(0, 240, 255, .12) 38%, rgba(176, 38, 255, .1) 55%, transparent 70%); filter: blur(10px);
  animation: fx-breathe 3.8s ease-in-out infinite; }
.forge__ring { position: absolute; left: 64%; top: 90%; width: 70%; height: 12%; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(0, 240, 255, .55), rgba(0, 240, 255, .12) 45%, transparent 70%); filter: blur(6px); animation: fx-breathe 3.8s ease-in-out infinite; }
@keyframes fx-spin { to { rotate: 360deg; } }
.forge__ore { position: absolute; left: 64%; top: 66%; width: 52%; translate: -50% -50%; transform: translateZ(40px);
  filter: drop-shadow(0 0 26px rgba(0, 240, 255, .55)) drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); animation: fx-float 6s ease-in-out infinite; }
.forge.hit .forge__ore { animation: fx-ore-hit .5s cubic-bezier(.3, 1.8, .5, 1), fx-float 6s ease-in-out infinite; }
@keyframes fx-ore-hit { 0% { scale: 1; filter: brightness(2.4) drop-shadow(0 0 60px #00f0ff); } 30% { scale: .93 1.04; } 100% { scale: 1; } }
.forge__flash { position: absolute; left: 60%; top: 50%; width: 10px; height: 10px; border-radius: 50%; translate: -50% -50%; transform: translateZ(80px); opacity: 0; pointer-events: none;
  background: #fff; box-shadow: 0 0 60px 30px #fff, 0 0 140px 70px #00f0ff, 0 0 260px 120px rgba(170, 255, 0, .45); }
.forge.hit .forge__flash { animation: fx-flash .55s ease-out; }
.forge__burst { position: absolute; left: 58%; top: 50%; width: 95%; translate: -50% -55%; transform: translateZ(70px); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.forge.hit .forge__burst { animation: fx-burst .7s ease-out; }
@keyframes fx-burst { 0% { opacity: 0; scale: .3; } 15% { opacity: 1; } 100% { opacity: 0; scale: 1.35; } }
@keyframes fx-flash { 0% { opacity: 1; scale: .4; } 100% { opacity: 0; scale: 2.2; } }
.forge__pick { position: absolute; width: 57%; left: 8%; top: 26.7%; transform-origin: 7% 93%; transform: translateZ(90px) rotate(-20deg); pointer-events: none; }
.forge__pick img { display: block; width: 100%; filter: drop-shadow(0 0 22px rgba(0, 240, 255, .5)) drop-shadow(-18px 28px 26px rgba(0, 0, 0, .55)); }
.forge.swing .forge__pick { animation: fx-swing .95s cubic-bezier(.55, 0, .25, 1); }
@keyframes fx-swing { 0% { transform: translateZ(90px) rotate(-20deg); } 42% { transform: translateZ(90px) rotate(-62deg); }
  55% { transform: translateZ(90px) rotate(-11deg); } 62% { transform: translateZ(90px) rotate(-15deg); } 70% { transform: translateZ(90px) rotate(-12deg); } 100% { transform: translateZ(90px) rotate(-20deg); } }
.forge:not(.swing) .forge__pick { animation: fx-idle-pick 4s ease-in-out infinite; }
@keyframes fx-idle-pick { 0%, 100% { transform: translateZ(90px) rotate(-20deg); } 50% { transform: translateZ(90px) rotate(-25deg) translateY(-6px); } }
.forge__sparks { position: absolute; inset: -40%; width: 180%; height: 180%; pointer-events: none; z-index: 3; mix-blend-mode: screen; }
.forge__hint { position: absolute; left: 50%; bottom: -2%; translate: -50% 0; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(0, 240, 255, .75); white-space: nowrap; opacity: .8; animation: fx-breathe 2.4s ease-in-out infinite; }
.hero.shake { animation: fx-shake .38s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes fx-shake { 0% { transform: none; } 25% { transform: translate(-5px, 3px); } 50% { transform: translate(4px, -2px); } 75% { transform: translate(-2px, 1px); } 100% { transform: none; } }
@keyframes fx-float { 0%, 100% { transform: translateZ(40px) translateY(0); } 50% { transform: translateZ(40px) translateY(-14px); } }
@media (max-width: 991px) {
  .forge { max-width: 440px; margin: 10px auto -10px; order: -1; width: 86%; }
  .forge__hint { display: none; }
}

/* ============ YUKI ============ */
.yuki-stage { height: clamp(480px, 62vw, 760px); }
.yuki-fx { position: absolute; inset: 0 0 13% 0; z-index: 1; perspective: 1200px; pointer-events: none; }
.yuki-fx__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 100%; }
.yuki-pose { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; translate: -50% 0; opacity: 0;
  transition: opacity .55s ease, filter .55s ease; filter: brightness(1.6) blur(2px) drop-shadow(0 0 30px rgba(176, 38, 255, .7));
  animation: fx-yfloat 7s ease-in-out infinite; }
.yuki-pose.is-on { opacity: 1; filter: drop-shadow(0 0 26px rgba(176, 38, 255, .55)) drop-shadow(0 0 70px rgba(170, 255, 0, .18)); }
@keyframes fx-yfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.yuki-fx__sigil { position: absolute; left: 50%; top: 99%; width: min(78%, 560px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  transform: scaleY(.2);
  border: 2px solid rgba(176, 38, 255, .75); box-shadow: 0 0 40px rgba(176, 38, 255, .8), inset 0 0 60px rgba(170, 255, 0, .35);
  background: repeating-conic-gradient(rgba(170, 255, 0, .45) 0 2deg, transparent 2deg 12deg), radial-gradient(circle, rgba(176, 38, 255, .45), transparent 65%);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 32%, transparent 58%, #000 60%, #000 72%, transparent 74%, transparent 88%, #000 90%);
          mask-image: radial-gradient(closest-side, #000 30%, transparent 32%, transparent 58%, #000 60%, #000 72%, transparent 74%, transparent 88%, #000 90%);
  animation: fx-sigil 18s linear infinite; }
.yuki-fx__sigil--2 { width: min(112%, 820px); opacity: .45; animation-duration: 40s; animation-direction: reverse; border-color: rgba(0, 240, 255, .5); }
@keyframes fx-sigil { from { transform: scaleY(.2) rotate(0); } to { transform: scaleY(.2) rotate(360deg); } }
.yuki-fx__dust { position: absolute; inset: -10% -20%; width: 140%; height: 120%; mix-blend-mode: screen; }
.yuki-title { z-index: 3; text-shadow: 0 4px 24px rgba(0, 0, 0, .9), 0 0 40px rgba(5, 6, 12, .8); }
@media (max-width: 560px) { .yuki-stage { height: clamp(440px, 128vw, 600px); } }

/* ============ FLOATING ITEMS ============ */
/* position/size are auto-fitted in fx.js so they never cover text; they may sit on top of pictures */
.fx-item { position: absolute; z-index: 4; width: clamp(150px, 17vw, 300px); pointer-events: none; will-change: transform, opacity; opacity: 0; }
.fx-item.fx-big { width: clamp(190px, 22vw, 380px); }
.fx-item.fx-sm { width: clamp(100px, 11vw, 190px); }
.fx-l { left: max(0px, calc(50% - 860px)); transform-origin: 0 50%; }
.fx-r { right: max(0px, calc(50% - 860px)); transform-origin: 100% 50%; }
.fx-par { will-change: transform; }
.fx-item img { display: block; width: 100%; height: auto; animation: fx-bob var(--dur, 6s) ease-in-out infinite; animation-delay: var(--del, 0s);
  filter: drop-shadow(0 0 22px rgba(0, 240, 255, .35)) drop-shadow(0 30px 30px rgba(0, 0, 0, .55)); }
@keyframes fx-bob { 0%, 100% { transform: translateY(0) rotate(calc(var(--rot, 0deg) - 3deg)); } 50% { transform: translateY(-18px) rotate(calc(var(--rot, 0deg) + 3deg)); } }
@media (max-width: 991px) { .fx-item { width: 30vw; } .fx-item.fx-sm { display: none; } .fx-item.fx-big { width: 36vw; } }

/* ============ 3D POP-OUTS (cut-out steps out of the picture while scrolling) ============ */
.has-pop { position: relative; z-index: 3; }
.has-pop .media-frame { position: relative; }
.pop-shade { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(5, 6, 12, .25), rgba(5, 6, 12, .75)); }
.pop { position: absolute; z-index: 2; pointer-events: none; will-change: transform, opacity; opacity: 0; }
.pop img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(0, 240, 255, .25)); }
.pop--starec { left: 32%; bottom: 0; width: 47%; transform-origin: 50% 100%; }
.pop--kuznec { left: 7%; top: 1%; width: 52%; transform-origin: 40% 30%; }
.pop--house  { left: 12%; top: 20%; width: 52%; transform-origin: 45% 70%; }
.pop--hand   { right: 0; bottom: 0; width: 64%; transform-origin: 100% 100%; }
.pop--boat   { left: 3%; bottom: 7%; width: 52%; transform-origin: 30% 80%; }

/* ============ 3D tilt + glare ============ */
.fx-tilt { transform: perspective(900px) translateY(var(--ly, 0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; transform-style: preserve-3d; }
.fx-tilt.tilting { transition: transform .08s linear, box-shadow .3s, border-color .3s; }
.lot.fx-tilt:hover { --ly: -6px; transform: perspective(900px) translateY(var(--ly)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.fx-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .3s; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%); }
.tilting > .fx-glare { opacity: 1; }

/* ============ WHALE SCENE ============ */
#whales { overflow: clip; }
.whale-scene { position: relative; height: 230vh; margin: -100px 0 60px; z-index: 2; }
.whale-scene__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ws-sky { position: absolute; inset: -6%; background: url(../images/fx/sea_bg.webp) center 40% / cover; will-change: transform; }
.ws-glint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 40% 26% at 55% 30%, rgba(255, 210, 140, .45), transparent 70%); animation: fx-breathe 5s ease-in-out infinite; }
.ws-whale { position: absolute; left: 50%; bottom: 0; width: min(78vw, 1150px); translate: -50% 0; will-change: transform; z-index: 2; }
.ws-whale img { display: block; width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 20, 40, .55)); }
.ws-whale.hurt img { animation: fx-hurt .5s ease-out; }
@keyframes fx-hurt { 0% { filter: brightness(2.2) drop-shadow(0 0 40px #00f0ff); } 100% { filter: drop-shadow(0 30px 40px rgba(0, 20, 40, .55)); } }
.ws-splash { position: absolute; width: min(70vw, 900px); bottom: 2vh; translate: -50% 0; mix-blend-mode: screen; opacity: 0; z-index: 4; pointer-events: none; will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 40%, rgba(0, 0, 0, .6) 58%, transparent 74%); mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 40%, rgba(0, 0, 0, .6) 58%, transparent 74%); }
.ws-water { position: absolute; left: -6%; right: -6%; bottom: -4vh; height: 42vh; z-index: 3; pointer-events: none;
  background: url(../images/fx/water_front.webp) center bottom / 100% 100% no-repeat; background-image: image-set(url(../images/fx/water_front.avif) type("image/avif"), url(../images/fx/water_front.webp) type("image/webp")); animation: fx-waves 7s ease-in-out infinite;
  filter: drop-shadow(0 -10px 30px rgba(0, 240, 255, .25)); transform-origin: 50% 100%; }
@keyframes fx-waves { 0%, 100% { transform: translateX(0) scaleY(1); } 50% { transform: translateX(-2.5%) scaleY(1.07); } }
.ws-harpoon { position: absolute; left: 4vw; bottom: 14vh; width: min(34vw, 460px); z-index: 6; transform-origin: 12% 50%; pointer-events: none; transition: rotate .12s linear; }
.ws-harpoon img { display: block; width: 100%; filter: drop-shadow(0 0 16px rgba(0, 240, 255, .7)); }
.ws-shot { position: absolute; z-index: 6; width: min(26vw, 360px); pointer-events: none; transform-origin: 12% 50%; }
.ws-shot img { width: 100%; display: block; filter: drop-shadow(0 0 16px rgba(0, 240, 255, .9)); }
.ws-pop { position: absolute; z-index: 7; font-family: var(--font-head, 'Russo One'); font-size: clamp(22px, 3vw, 40px); color: #aaff00; text-shadow: 0 0 20px #aaff00; pointer-events: none; animation: fx-pop 1.1s ease-out forwards; }
@keyframes fx-pop { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -20px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1); } }
.ws-caption { position: absolute; left: max(4vw, calc(50% - 600px)); top: 14vh; z-index: 5; max-width: 520px; pointer-events: none; }
.ws-title .hl { color: var(--magenta); text-shadow: 0 0 26px rgba(255, 45, 155, .7); }
.ws-title { font-family: var(--font-head, 'Russo One'); font-size: clamp(30px, 4.4vw, 64px); line-height: 1; text-transform: uppercase; margin: 12px 0 16px; text-shadow: 0 6px 30px rgba(0, 0, 0, .7); }
.ws-tip { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(0, 240, 255, .85); }
.whale-scene { cursor: crosshair; }
@media (max-aspect-ratio: 4/5) { .ws-sky { background-image: url(../images/fx/sea_bg_m.webp); } .ws-whale { width: 128vw; } .ws-harpoon { width: 58vw; bottom: 10vh; } .ws-splash { width: 120vw; } }
@media (pointer: coarse) { .ws-tip, .rad-hud__tip { display: none; } }

/* ============ RADIATION SCENE ============ */
.rad-scene { position: relative; height: 100vh; min-height: 560px; margin: -100px 0 70px; overflow: hidden; z-index: 2; isolation: isolate;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent); }
.rad-scene__bg { position: absolute; inset: -5%; background: url(../images/fx/rad_bg.webp) center / cover; will-change: transform; }
.rad-zombie { position: absolute; left: 50%; bottom: 2%; transform-origin: 50% 100%; will-change: transform; pointer-events: none; }
.rad-zombie--1 { height: 64%; z-index: 3; }
.rad-zombie--1 img { height: 100%; width: auto; display: block; filter: drop-shadow(0 0 24px rgba(170, 255, 0, .45)) brightness(.92); }
.rad-zombie--2 { height: 33%; left: 27%; bottom: 21%; z-index: 1; translate: -50% 0; }
.rad-zombie--2 img { height: 100%; width: auto; display: block; filter: blur(.6px) brightness(.62) saturate(.9) drop-shadow(0 0 16px rgba(170, 255, 0, .35));
  transform-origin: 50% 100%; animation: fx-breath 3.4s ease-in-out infinite; }
@keyframes fx-breath { 0%, 100% { transform: scale(1, 1) rotate(-1deg); } 38% { transform: scale(1.012, 1.035) rotate(.6deg); } 55% { transform: scale(1.01, 1.03) rotate(.8deg); } 80% { transform: scale(.998, .995) rotate(-1.2deg); } }
.rad-breath { position: absolute; left: 70%; top: 10%; width: 40%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(190, 255, 120, .55), rgba(120, 220, 60, .18) 45%, transparent 70%); filter: blur(6px); opacity: 0; animation: fx-puff 3.4s ease-out infinite; }
@keyframes fx-puff { 0%, 50% { opacity: 0; transform: translate(0, 0) scale(.3); } 62% { opacity: .9; } 100% { opacity: 0; transform: translate(60%, -25%) scale(1.6); } }
.rad-eye { display: none; }
.rad-fog { position: absolute; left: 0; right: 0; height: 60%; bottom: -6%; pointer-events: none; mix-blend-mode: screen;
  background: url(../images/fx/rad_fog.webp) 0 100% / auto 100% repeat-x; }
.rad-fog--back { z-index: 2; opacity: .55; animation: fx-fog 60s linear infinite; }
.rad-fog--front { z-index: 4; opacity: .7; height: 46%; bottom: -14%; animation: fx-fog 34s linear infinite reverse; }
@keyframes fx-fog { to { background-position: -1672px 100%; } }
.rad-vignette { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: var(--a, 0);
  background: radial-gradient(ellipse at 50% 55%, transparent 30%, rgba(60, 120, 0, .35) 65%, rgba(5, 20, 0, .92) 100%); }
.rad-hud__warn { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #ffe600; text-shadow: 0 0 12px rgba(255, 230, 0, .7); margin-bottom: 8px; animation: fx-warn 1.6s ease-in-out infinite; }
@keyframes fx-warn { 50% { color: #ff3b3b; text-shadow: 0 0 16px rgba(255, 45, 45, .9); } }
.rad-hud { position: absolute; right: max(3vw, calc(50% - 600px)); top: 13%; z-index: 6; padding: 14px 18px; border-radius: 14px; min-width: 210px;
  background: rgba(10, 18, 4, .55); border: 1px solid rgba(170, 255, 0, .45); box-shadow: 0 0 26px rgba(170, 255, 0, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-head, 'Russo One'); color: #aaff00; font-size: 30px; text-shadow: 0 0 14px rgba(170, 255, 0, .8); }
.rad-hud b { margin-right: 8px; display: inline-block; animation: fx-spin 6s linear infinite; }
.rad-hud small { font-size: 13px; opacity: .8; }
.rad-hud__bar { height: 6px; border-radius: 4px; background: rgba(170, 255, 0, .15); margin-top: 10px; overflow: hidden; }
.rad-hud__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #aaff00, #ffe600, #ff2d2d); box-shadow: 0 0 12px #aaff00; }
.rad-hud__tip { font-family: var(--font-body, 'Exo 2'); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(220, 255, 180, .8); margin-top: 10px; text-shadow: none; }
.rad-hud.crit { animation: fx-crit .25s steps(2) infinite; border-color: #ff2d2d; }
@keyframes fx-crit { 50% { box-shadow: 0 0 40px rgba(255, 45, 45, .8); } }
.rad-alert { position: absolute; left: 50%; top: 40%; z-index: 7; translate: -50% -50%; font-family: var(--font-head, 'Russo One'); font-size: clamp(26px, 5vw, 68px);
  color: #ff2d2d; text-shadow: 0 0 30px #ff2d2d, 0 0 70px rgba(255, 45, 45, .6); white-space: nowrap; opacity: 0; pointer-events: none; }
.rad-scene.boom .rad-alert { animation: fx-alert 1.6s ease-out; }
.rad-scene.boom { animation: fx-shake .3s 3; }
.rad-scene.boom::after { content: ''; position: absolute; inset: 0; z-index: 8; background: #aaff00; mix-blend-mode: screen; animation: fx-flash2 .6s ease-out forwards; pointer-events: none; }
@keyframes fx-flash2 { 0% { opacity: .85; } 100% { opacity: 0; } }
@keyframes fx-alert { 0% { opacity: 0; scale: 1.6; } 15% { opacity: 1; scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (max-aspect-ratio: 4/5) { .rad-scene__bg { background-image: url(../images/fx/rad_bg_m.webp); } .rad-zombie--1 { height: 56%; } .rad-hud { font-size: 22px; min-width: 0; top: 96px; right: 16px; } }

/* ============ FINAL ============ */
@media (max-aspect-ratio: 4/5) { #finalBg { background-image: url(../images/fx/final_bg_m.webp) !important; } }
.yuki-peek { position: relative; z-index: 1; margin: 4px auto -2px; width: min(460px, 82vw); }
.yuki-peek__chosen { position: relative; z-index: 3; font-family: var(--font-head, 'Russo One'); text-transform: uppercase; font-size: clamp(26px, 3.6vw, 48px); line-height: 1;
  color: #fff; text-shadow: 0 0 22px rgba(255, 45, 155, .55), 0 6px 26px rgba(0, 0, 0, .8); margin-bottom: -4px; letter-spacing: 1px; width: max-content; max-width: 92vw; margin-left: 50%; translate: -50% 0; }
.yuki-peek__chosen span { color: var(--magenta, #ff2d9b); text-shadow: 0 0 28px rgba(255, 45, 155, .9); }
.yuki-peek__fig { position: relative; perspective: 900px; }
.yuki-peek__fig img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; will-change: transform;
  filter: drop-shadow(0 0 26px rgba(176, 38, 255, .55)); }
.yuki-peek__fig::after { content: ''; position: absolute; left: 50%; top: 58%; width: 120px; height: 120px; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 45, 155, .45) 30%, transparent 65%); mix-blend-mode: screen; opacity: 0; animation: fx-poke 3.2s ease-out infinite; }
@keyframes fx-poke { 0%, 62% { opacity: 0; scale: .4; } 70% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 2.2; } }
#signup .signup-card { position: relative; z-index: 2; margin-top: -3%; }

@media (prefers-reduced-motion: reduce) {
  .fx-item img, .yuki-pose, .rad-zombie--2 img, .rad-breath, .yuki-peek__fig::after, .forge__ore, .forge__ring, .yuki-fx__sigil, .ws-water, .rad-fog, .btn-neon::before { animation: none !important; }
  .hook .ch { opacity: 1; transform: none; filter: none; }
}

/* Lenis: native smooth-scroll must be off, otherwise the two fight and scrolling drags */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* perf: zombie brightness via variable (no per-frame blur), HUD bar via transform */
.rad-zombie--1 img { filter: brightness(var(--bri, .75)) drop-shadow(0 0 24px rgba(170, 255, 0, .45)); }
#radBar { width: 100% !important; transform-origin: 0 50%; transform: scaleX(0); }
.whale-scene .ws-splash--a { left: 36vw; } .whale-scene .ws-splash--b { left: 66vw; }

/* ============================================================
   v5 (Тони 22.11)
   ============================================================ */
/* headings: no square edges around glowing words — clip only while the word rises in, then let the glow breathe */
.fx-w { overflow: visible; clip-path: inset(-1em -1em .02em -1em); }
.in .fx-w, .fx-w.in { clip-path: inset(-2em); transition: clip-path 0s 1.7s; }
.section-title .hl, .ws-title .hl, .signup-title .hl { animation: fx-glow-m 4.8s ease-in-out infinite; }
.section-title .hl-g, .signup-title .hl-g { animation: fx-glow-g 5.6s ease-in-out infinite; }
@keyframes fx-glow-m { 0%, 100% { text-shadow: 0 0 18px rgba(255, 45, 155, .55), 0 0 42px rgba(255, 45, 155, .25); }
  33% { text-shadow: 0 0 22px rgba(176, 38, 255, .7), 0 0 52px rgba(176, 38, 255, .3); }
  66% { text-shadow: 0 0 20px rgba(0, 240, 255, .55), 0 0 48px rgba(255, 45, 155, .3); } }
@keyframes fx-glow-g { 0%, 100% { text-shadow: 0 0 16px rgba(170, 255, 0, .5), 0 0 40px rgba(170, 255, 0, .2); }
  50% { text-shadow: 0 0 22px rgba(0, 240, 255, .55), 0 0 54px rgba(170, 255, 0, .3); } }

/* ---------- hero: the miner ---------- */
.miner { position: relative; z-index: 2; width: 100%; height: min(84vh, 860px); max-width: 640px; justify-self: center; perspective: 1200px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.miner__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s linear; }
.miner__halo { position: absolute; left: 52%; top: 58%; width: 100%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 240, 255, .3), rgba(176, 38, 255, .16) 40%, transparent 68%); filter: blur(12px); animation: fx-breathe 4.2s ease-in-out infinite; }
.miner__fig { position: absolute; inset: 0; transform-origin: 30% 96%; transform: translateZ(30px); }
.miner__f { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; translate: -50% 0; opacity: 0;
  filter: drop-shadow(0 0 24px rgba(0, 240, 255, .28)) drop-shadow(0 30px 34px rgba(0, 0, 0, .6)); }
.miner__f.is-on { opacity: 1; }
.miner__f--up { transition: opacity .18s ease; transform-origin: 30% 96%; animation: fx-mbreath 3.6s ease-in-out infinite; }
@keyframes fx-mbreath { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.006, 1.016); } }
.miner.windup .miner__f--up { animation: fx-windup .42s cubic-bezier(.3, 0, .6, 1) forwards; }
@keyframes fx-windup { to { transform: translate(-1.5%, -1.2%) rotate(-3.5deg) scale(1.01, 1.03); } }
.miner.hit .miner__fig { animation: fx-mhit .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes fx-mhit { 0% { transform: translateZ(30px) translate(1.5%, 1%) scale(1.02); } 100% { transform: translateZ(30px); } }
.miner__burst { position: absolute; left: 66%; top: 74%; width: 72%; translate: -50% -62%; opacity: 0; pointer-events: none; }
.miner.hit .miner__burst { animation: fx-burst .75s ease-out; }
.miner__flash { position: absolute; left: 66%; top: 76%; width: 10px; height: 10px; border-radius: 50%; translate: -50% -50%; opacity: 0; pointer-events: none;
  background: #fff; box-shadow: 0 0 60px 30px #fff, 0 0 140px 70px #00f0ff, 0 0 240px 110px rgba(170, 255, 0, .4); }
.miner.hit .miner__flash { animation: fx-flash .5s ease-out; }
.miner__sparks { position: absolute; inset: -30%; width: 160%; height: 160%; pointer-events: none; z-index: 3; mix-blend-mode: screen; }
@media (max-width: 991px) { .miner { height: min(70vh, 560px); max-width: 420px; margin: 0 auto -10px; order: -1; } }

/* ---------- mining block: the pickaxe + crystal stone (moved down from the hero) ---------- */
.forge-row { display: flex; justify-content: center; margin: 40px 0 0; }
.forge-row .forge { width: min(440px, 80vw); max-width: none; }
.forge__burst { mix-blend-mode: normal; }

/* ---------- Yuki block: bigger from the start ---------- */
.yuki-stage { height: clamp(560px, 74vw, 920px); }
@media (max-width: 560px) { .yuki-stage { height: clamp(500px, 140vw, 680px); } }

/* ---------- build: logs may hang over the whale block below ---------- */
#build { overflow-x: clip; overflow-y: visible; z-index: 6; }
#build .leaf-deco--l { top: 0; } #build .leaf-deco--r { bottom: 0; }

/* ---------- pop-outs v5 ---------- */
.has-pop .media-frame img { transition: none; }
.pop--house  { left: 8%; top: 12%; width: 60%; transform-origin: 45% 70%; }
.pop--boat   { left: -2%; bottom: 2%; width: 62%; transform-origin: 30% 80%; }
.pop--survivor { left: -4%; bottom: 0; width: 46%; transform-origin: 30% 100%; }
.pop--hand   { transform-origin: 90% 100%; }

/* ---------- radiation v5 ---------- */
.rad-zombie--1 .rad-z-atk { display: none; }
.rad-zombie--1.atk .rad-z-walk { display: none; }
.rad-zombie--1.atk .rad-z-atk { display: block; }
.rad-zombie--1 img { height: 100%; width: auto; }
.rad-fog { background: none; overflow: visible; }
.rad-fog i { position: absolute; bottom: 0; width: 70%; height: 90%; border-radius: 50%; filter: blur(38px); opacity: .7;
  background: radial-gradient(ellipse at 50% 60%, rgba(150, 255, 90, .55), rgba(90, 200, 40, .22) 45%, transparent 70%); animation: fx-smoke 26s ease-in-out infinite alternate; }
.rad-fog i:nth-child(1) { left: -20%; animation-duration: 31s; }
.rad-fog i:nth-child(2) { left: 18%; height: 70%; animation-duration: 23s; animation-delay: -8s; }
.rad-fog i:nth-child(3) { left: 50%; height: 100%; animation-duration: 37s; animation-delay: -15s; }
.rad-fog i:nth-child(4) { left: 75%; height: 65%; animation-duration: 28s; animation-delay: -4s; }
.rad-fog i:nth-child(5) { left: 32%; height: 55%; width: 90%; animation-duration: 41s; animation-delay: -20s; }
.rad-fog--front i { opacity: .55; filter: blur(46px); }
@keyframes fx-smoke { 0% { transform: translate(-8%, 4%) scale(1, .9); } 50% { transform: translate(6%, -6%) scale(1.15, 1.05); } 100% { transform: translate(12%, 2%) scale(.95, 1); } }
.rad-hud { font-size: clamp(30px, 3.4vw, 46px); min-width: 300px; }
.rad-hud #radLevel { font-variant-numeric: tabular-nums; }
.rad-hud__tip { font-size: 12px; color: #ffe600; text-shadow: 0 0 10px rgba(255, 230, 0, .5); }
@media (max-aspect-ratio: 4/5) { .rad-hud { font-size: 24px; min-width: 0; } }

/* ---------- gold mine: live stream row with logos ---------- */
.live-row { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 26px); flex-wrap: nowrap; }
.live-logo { height: clamp(38px, 4.2vw, 58px); width: auto; filter: drop-shadow(0 0 16px rgba(255, 45, 155, .35)); animation: fx-float2 4s ease-in-out infinite; }
.live-logo:last-child { animation-delay: -2s; filter: drop-shadow(0 0 16px rgba(145, 70, 255, .45)); }
@keyframes fx-float2 { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@media (max-width: 560px) { .live-row .live-badge { font-size: 11px; padding: 6px 10px; } }

/* ---------- signup: Yuki peeks out, bottom level with the card's top edge ---------- */
.yuki-peek { width: min(560px, 90vw); margin: 0 auto; }
#signup .signup-card { margin-top: -14px; }
.yuki-peek__fig::after { display: none; }
.yuki-peek__poke { position: absolute; left: var(--px, 46.5%); top: var(--py, 62%); width: 130px; height: 130px; translate: -50% -50%; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 45, 155, .5) 28%, transparent 64%); mix-blend-mode: screen; opacity: 0; animation: fx-poke 3.2s ease-out infinite; }

/* ---------- sound button: hard to miss until the sound is on ---------- */
.player { position: relative; }
.player__btn { position: relative; }
.player.sound-off .player__btn { animation: fx-pbtn 1.6s ease-in-out infinite; }
.player.sound-off .player__btn::before, .player.sound-off .player__btn::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(0, 240, 255, .7); pointer-events: none; animation: fx-ring 1.6s ease-out infinite; }
.player.sound-off .player__btn::after { animation-delay: .8s; border-color: rgba(255, 45, 155, .7); }
.player.sound-off .player__label { color: #fff; text-shadow: 0 0 12px rgba(0, 240, 255, .8); animation: fx-blink 1.6s ease-in-out infinite; }
@keyframes fx-pbtn { 0%, 100% { box-shadow: 0 0 10px rgba(0, 240, 255, .6); transform: scale(1); } 50% { box-shadow: 0 0 26px rgba(0, 240, 255, 1), 0 0 50px rgba(255, 45, 155, .5); transform: scale(1.1); } }
@keyframes fx-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes fx-blink { 50% { opacity: .55; } }

/* ---------- market: dynamic price ---------- */
.dyn-pct { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-family: var(--font-body, 'Exo 2'); font-size: 11px; font-weight: 700; vertical-align: 2px; text-shadow: none; letter-spacing: .3px; }
.dyn-pct.is-down { color: #aaff00; background: rgba(170, 255, 0, .12); border: 1px solid rgba(170, 255, 0, .4); }
.dyn-pct.is-up { color: #ff6fbd; background: rgba(255, 45, 155, .12); border: 1px solid rgba(255, 45, 155, .4); }
.lot__dyn { margin-top: 8px; }
.spark { display: block; width: 100%; height: 34px; overflow: visible; }
.spark__base { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.spark__area { fill: rgba(0, 240, 255, .1); }
.spark__line { fill: none; stroke: #00f0ff; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark__dot { stroke: #05060c; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark__dot.is-down, .ch__now.is-down { fill: #aaff00; }
.spark__dot.is-up, .ch__now.is-up { fill: #ff2d9b; }
.lot__dynmeta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim, #9aa); margin-top: 3px; }
.lot__dynmeta s { opacity: .8; }
.dyn-left { font-variant-numeric: tabular-nums; color: #00f0ff; }
.dyn-left::before { content: '⏱ '; }
.mzoom__chart { margin: 14px 0 6px; padding: 12px 12px 8px; border-radius: 14px; background: rgba(5, 8, 16, .55); border: 1px solid rgba(0, 240, 255, .2); }
.ch__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ch__title { font-family: var(--font-head, 'Russo One'); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.ch__tabs { display: inline-flex; gap: 4px; }
.ch__tabs button { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); background: transparent; color: #bcd; cursor: pointer; }
.ch__tabs button.is-on { border-color: #00f0ff; color: #00f0ff; background: rgba(0, 240, 255, .1); }
.ch__wrap { position: relative; }
svg.ch { display: block; width: 100%; height: auto; }
.ch__grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.ch__zero { stroke: rgba(255, 255, 255, .3); stroke-width: 1; stroke-dasharray: 4 4; }
.ch__ylab, .ch__xlab { fill: #8a93a8; font-size: 11px; font-family: var(--font-body, 'Exo 2'); }
.ch__ylab { text-anchor: end; }
.ch__area { fill: rgba(0, 240, 255, .1); }
.ch__line { fill: none; stroke: #00f0ff; stroke-width: 2; stroke-linejoin: round; }
.ch__now { stroke: #05060c; stroke-width: 2; }
.ch__cross { stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.ch__hdot { fill: #fff; stroke: #00f0ff; stroke-width: 2; }
.ch__tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; white-space: nowrap; padding: 6px 10px; border-radius: 8px;
  background: rgba(8, 10, 20, .95); border: 1px solid rgba(0, 240, 255, .35); font-size: 12px; color: #dfe; display: flex; gap: 8px; align-items: baseline; }
.ch__tip b { color: #fff; }
.ch__tip em { font-style: normal; font-weight: 700; }
.ch__foot { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #9aa3b8; margin-top: 6px; }
.ch__foot b { color: #fff; font-variant-numeric: tabular-nums; }
.ch__foot b.is-down, .ch__tip em.is-down { color: #aaff00; }
.ch__foot b.is-up, .ch__tip em.is-up { color: #ff6fbd; }
.ch__note { font-size: 11px; color: #7f8899; margin: 6px 0 0; }
.buy-quote { font-size: 12px; color: #9fd; margin: 10px 0 0; }
.buy-base { opacity: .6; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .miner__f--up, .miner__halo, .rad-fog i, .live-logo, .player.sound-off .player__btn, .player.sound-off .player__btn::before, .player.sound-off .player__btn::after, .yuki-peek__poke, .section-title .hl, .section-title .hl-g { animation: none !important; } }
.rad-fog--back, .rad-fog--front { animation: none; }

/* ============ v6: exchange-style candle charts ============ */
.spark { height: auto; aspect-ratio: 300 / 64; }
.cdl line { stroke-width: 1; }
.cdl--up line { stroke: #19e6a0; } .cdl--up rect { fill: #19e6a0; }
.cdl--dn line { stroke: #ff3d8b; } .cdl--dn rect { fill: #ff3d8b; }
.cdl { transform-box: fill-box; transform-origin: 50% 50%; animation: fx-cdl .5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes fx-cdl { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
.cdl--live rect { animation: fx-live 1.4s ease-in-out infinite; }
@keyframes fx-live { 50% { opacity: .45; } }
.sx { stroke: #05060c; stroke-width: 1; }
.sx--hi { fill: #19e6a0; } .sx--lo { fill: #ff3d8b; }
.sx-t { font-size: 8.5px; fill: #c9d3e6; font-family: var(--font-body, 'Exo 2'); font-weight: 600; paint-order: stroke; stroke: #0a0b16; stroke-width: 2.5px; }
.spark__base { stroke: rgba(255, 255, 255, .25); stroke-width: 1; stroke-dasharray: 3 3; }
.spark__now { stroke-width: 1; stroke-dasharray: 2 2; }
.spark__now.is-down, .ch__nowline.is-down { stroke: #aaff00; } .spark__now.is-up, .ch__nowline.is-up { stroke: #ff6fbd; }
.spark__tag.is-down, .ch__tag.is-down { fill: #aaff00; } .spark__tag.is-up, .ch__tag.is-up { fill: #ff2d9b; }
.spark__tagt { font-size: 9.5px; font-weight: 700; fill: #05060c; font-family: var(--font-body, 'Exo 2'); }
.spark__pulse, .ch__pulse { fill: #fff; transform-box: fill-box; transform-origin: center; animation: fx-pulse 1.4s ease-out infinite; }
@keyframes fx-pulse { 0% { opacity: 1; transform: scale(1); } 70% { opacity: 0; transform: scale(3.2); } 100% { opacity: 0; } }
.ch__vgrid { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.ch__ylab { text-anchor: start; }
.ch__base { stroke: rgba(255, 210, 87, .55); stroke-width: 1; stroke-dasharray: 5 4; }
.ch__baset { font-size: 10px; fill: #ffd257; font-family: var(--font-body, 'Exo 2'); }
.ch__line { stroke: rgba(0, 240, 255, .55); stroke-width: 1.2; fill: none; }
.ch__area { fill: url(#chFill); }
.sw line { stroke-width: 1; stroke-dasharray: 2 2; }
.sw--hi line, .sw--hi circle { stroke: #19e6a0; } .sw--lo line, .sw--lo circle { stroke: #ff3d8b; }
.sw circle { fill: #0a0b16; stroke-width: 2; }
.sw--main circle { fill: currentColor; }
.sw--hi.sw--main circle { fill: #19e6a0; } .sw--lo.sw--main circle { fill: #ff3d8b; }
.sw text { font-size: 10.5px; font-weight: 600; fill: #dfe6f5; font-family: var(--font-body, 'Exo 2'); paint-order: stroke; stroke: #0a0b16; stroke-width: 3px; }
.sw--main text { font-size: 11.5px; font-weight: 700; }
.sw--hi.sw--main text { fill: #19e6a0; } .sw--lo.sw--main text { fill: #ff6fbd; }
.ch__nowline { stroke-width: 1; stroke-dasharray: 3 3; }
.ch__tagt { font-size: 11.5px; font-weight: 700; fill: #05060c; font-family: var(--font-body, 'Exo 2'); }
.ch__crossh { stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.ch__htag { fill: #2a3350; }
.ch__htagt { font-size: 11px; fill: #fff; font-family: var(--font-body, 'Exo 2'); }
.ch__title b { margin-left: 8px; font-family: var(--font-head, 'Russo One'); font-weight: 400; }
.ch__live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff2d2d; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 8px #ff2d2d; animation: fx-blink 1.2s ease-in-out infinite; }
.ch__tip { flex-direction: column; align-items: flex-start; gap: 2px; }
.ch__tip b.is-up { color: #19e6a0; } .ch__tip b.is-down { color: #ff6fbd; }
@media (prefers-reduced-motion: reduce) { .cdl, .cdl--live rect, .spark__pulse, .ch__pulse, .ch__live { animation: none !important; } }

/* ===================== v8 ===================== */
/* chart svg class must not leak into the hero letters (.hook .ch) */
/* hero: pickaxe + stone again */
.hero-grid .forge { max-width: 600px; }
/* gold-mine block: the animated miner on the left */
#mine { position: relative; }
.miner--mine { position: absolute; z-index: 3; left: max(-20px, calc(50% - 940px)); top: 4%; width: clamp(200px, 17vw, 400px); height: auto; max-width: none; aspect-ratio: 1085 / 1664; margin: 0; }
.miner--mine .miner__halo { opacity: .7; }
@media (max-width: 1280px) { .miner--mine { width: clamp(170px, 15vw, 260px); left: -10px; } }
@media (max-width: 991px) { .miner--mine { position: relative; left: auto; top: auto; width: min(300px, 62vw); height: auto; margin: 0 auto 10px; order: 0; display: block; } }
/* sharp scaling: no frozen raster on elements that grow */
.pop, .yuki-peek__fig img, .rad-zombie { will-change: auto; }
/* far zombie: clear, not blurred */
.rad-zombie--2 img { filter: brightness(.92) saturate(1) drop-shadow(0 0 16px rgba(170, 255, 0, .35)) !important; }
/* gas-mask survivor stands over his own figure in the shot */
.pop--survivor { left: 15%; }

/* v8.1 — signup Yuki as juicy as the reference: no haze, no 3D resampling */
.yuki-peek__fig { perspective: none; }
.yuki-peek__fig img { filter: saturate(1.08) contrast(1.05) drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(176, 38, 255, .28)) !important; image-rendering: auto; }

/* v8.2 — big Yuki + gold-mine miner as crisp as the signup Yuki: flat (2D) rendering, thin glow, a bit more juice */
.yuki-fx, .miner { perspective: none; }
.yuki-fx__tilt, .miner__tilt { transform-style: flat; }
.miner__fig { transform: none; }
.yuki-pose.is-on { filter: saturate(1.08) contrast(1.05) drop-shadow(0 12px 22px rgba(0, 0, 0, .5)) drop-shadow(0 0 12px rgba(176, 38, 255, .3)); }
.miner__f { filter: saturate(1.08) contrast(1.05) drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(0, 240, 255, .22)) !important; }
@keyframes fx-mhit { 0% { transform: translate(1.5%, 1%) scale(1.02); } 100% { transform: none; } }

/* v9: big monitors — the whole page scales like Chrome zoom 125% (what Tony approved locally).
   Media queries use the unzoomed viewport, so there is no feedback loop. */
@media (min-width: 2200px) { html { zoom: 1.1; --z: 1.1; } }
@media (min-width: 2400px) { html { zoom: 1.18; --z: 1.18; } }
@media (min-width: 2500px) { html { zoom: 1.25; --z: 1.25; } }
@media (min-width: 2900px) { html { zoom: 1.4; --z: 1.4; } }
@media (min-width: 3400px) { html { zoom: 1.6; --z: 1.6; } }
/* miner hugs the left edge so his stone never covers the first stat card */
@media (min-width: 1281px) { .miner--mine { left: max(-30px, calc(50% - 1040px)); } }

/* ---------- v10: «Скачать лаунчер» modal — the pointing Yuki, alive ---------- */
.lmodal { padding: 16px; background: rgba(4, 2, 12, .72); backdrop-filter: blur(12px); }
.lmodal__card { position: relative; width: min(560px, 100%); max-height: 94vh; overflow-y: auto; overflow-x: hidden; border-radius: 22px; padding: 26px 26px 28px; text-align: center;
  background: radial-gradient(120% 70% at 50% 30%, rgba(176, 38, 255, .28), transparent 60%), linear-gradient(170deg, rgba(18, 8, 36, .97), rgba(8, 4, 18, .98));
  border: 1px solid rgba(255, 45, 155, .55); box-shadow: 0 0 0 1px rgba(176, 38, 255, .35), 0 0 70px rgba(255, 45, 155, .35), 0 0 140px rgba(176, 38, 255, .3);
  transform: translateY(30px) scale(.92); opacity: 0; transition: transform .5s cubic-bezier(.2, 1.3, .4, 1), opacity .35s; animation: lm-border 3.2s ease-in-out infinite; }
.lmodal.open .lmodal__card { transform: none; opacity: 1; }
@keyframes lm-border { 50% { border-color: rgba(176, 38, 255, .8); box-shadow: 0 0 0 1px rgba(255, 45, 155, .4), 0 0 90px rgba(176, 38, 255, .45), 0 0 160px rgba(255, 45, 155, .25); } }
.lmodal__aura { position: absolute; left: 50%; top: 42%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 45, 155, .28), rgba(176, 38, 255, .14) 40%, transparent 66%); animation: lm-aura 2.8s ease-in-out infinite; }
@keyframes lm-aura { 50% { scale: 1.12; opacity: .7; } }
.lmodal__chosen { position: relative; z-index: 2; font-family: var(--font-head, 'Russo One'); text-transform: uppercase; font-size: clamp(26px, 5vw, 40px); line-height: 1; color: #fff;
  text-shadow: 0 0 24px rgba(176, 38, 255, .8); margin: 4px 0 -4px; }
.lmodal__chosen span { color: var(--magenta, #ff2d9b); text-shadow: 0 0 28px rgba(255, 45, 155, .95); }
.lmodal__fig { position: relative; z-index: 1; width: min(440px, 92%); margin: 0 auto; }
.lmodal__fig img { display: block; width: 100%; height: auto; transform-origin: 46.5% 70%;
  filter: saturate(1.08) contrast(1.05) drop-shadow(0 12px 20px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(176, 38, 255, .35)); }
.lmodal.open .lmodal__fig img { animation: lm-rise .7s cubic-bezier(.2, 1.2, .4, 1) both, lm-pulse 2.4s ease-in-out .7s infinite; }
@keyframes lm-rise { from { transform: translateY(14%) scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lm-pulse { 50% { transform: scale(1.035); filter: saturate(1.12) contrast(1.06) drop-shadow(0 12px 20px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px rgba(255, 45, 155, .55)); } }
/* pink flash right on her fingertip */
.lmodal__poke { position: absolute; left: 46.5%; top: 62%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; z-index: 2; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 45, 155, .6) 24%, rgba(255, 45, 155, .18) 46%, transparent 66%); opacity: 0; }
.lmodal.open .lmodal__poke { animation: lm-poke 1.6s ease-out .55s infinite; }
@keyframes lm-poke { 0% { opacity: 0; scale: .35; } 18% { opacity: 1; scale: .8; } 100% { opacity: 0; scale: 1.5; } }
.lmodal__body { position: relative; z-index: 2; margin-top: -6px; }
.lmodal__body .signup-card__label { margin-bottom: 16px; }
.lmodal .modal-close { z-index: 5; }
@media (prefers-reduced-motion: reduce) { .lmodal__card, .lmodal__aura, .lmodal.open .lmodal__fig img, .lmodal.open .lmodal__poke { animation: none !important; } .lmodal.open .lmodal__poke { opacity: .8; } }

/* v10.1: Chrome multiplies vh by html{zoom} -> 100vh became 125% of the screen on big monitors (hero buttons below the fold,
   whale/zombie stages cut). Divide every screen-height size by --z (1 everywhere else). */
.hero { min-height: calc(100vh / var(--z, 1)); }
.whale-scene { height: calc(230vh / var(--z, 1)); }
.whale-scene__stage { height: calc(100vh / var(--z, 1)); }
.ws-splash { bottom: calc(2vh / var(--z, 1)); }
.ws-water { bottom: calc(-4vh / var(--z, 1)); height: calc(42vh / var(--z, 1)); }
.ws-harpoon { bottom: calc(14vh / var(--z, 1)); }
.ws-caption { top: calc(14vh / var(--z, 1)); }
.rad-scene { height: calc(100vh / var(--z, 1)); }
@media (min-width: 992px) { .miner { height: min(calc(84vh / var(--z, 1)), 860px); } }
.modal-card { max-height: calc(88vh / var(--z, 1)); }
.lmodal__card { max-height: calc(94vh / var(--z, 1)); }
@media (max-aspect-ratio: 4/5) { .ws-harpoon { bottom: calc(10vh / var(--z, 1)); } }

/* ---------- v11 performance: nothing expensive is recomputed on every scroll frame ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
/* live blur behind glass (re-blurred every frame over moving parallax backgrounds) -> denser tint, same look */
:root { --glass: rgba(16, 10, 34, .8); }
.site-head.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 6, 18, .94); }
.glass, .stat, .feature, .lang-switch, .player, .lot__zoom, .gold-calc, .rad-hud, .arcade__overlay { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lot__zoom { background: rgba(8, 8, 18, .8); }
/* full-screen rotating rays: plain blending (screen blend over the whole hero every frame) */
.hero__rays { mix-blend-mode: normal; opacity: .38; }
/* heading glow: static (text-shadow animation repaints the text every frame) */
.section-title .hl, .ws-title .hl, .signup-title .hl, .section-title .hl-g, .signup-title .hl-g { animation: none; }
.section-title .hl, .ws-title .hl, .signup-title .hl { text-shadow: 0 0 18px rgba(255, 45, 155, .55), 0 0 42px rgba(255, 45, 155, .25); }
.section-title .hl-g, .signup-title .hl-g { text-shadow: 0 0 16px rgba(170, 255, 0, .5), 0 0 40px rgba(170, 255, 0, .2); }
/* toxic fog: drift with transform (background-position animation repaints every frame) */
.rad-fog { left: -10%; right: -10%; }
.rad-fog--back { animation: fx-fog2 26s ease-in-out infinite alternate; }
.rad-fog--front { animation: fx-fog2 17s ease-in-out infinite alternate-reverse; }
@keyframes fx-fog2 { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

/* v11: section backgrounds get a GPU layer only while JS moves them near the screen */
.psection__bg { will-change: auto; }
/* v11 mobile: the zombie kept its width capped by max-width:100% -> squeezed; keep the real proportions */
.rad-zombie img { max-width: none !important; }
/* v11: big Yuki rises above the hero instead of being cut by her section; only the background stays clipped */
.psection__clip { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
#island.psection { overflow-x: clip; overflow-y: visible; z-index: 3; }

/* ---------- v14: no mix-blend-mode anywhere (each blend forced a huge offscreen render surface: 1 s freeze on first view) ----------
   black-background pictures (splash, toxic fog, leaves) now carry real alpha; canvases/gradients were transparent anyway */
.forge__sparks, .miner__sparks, .yuki-fx__dust, .fx-glare, .ws-glint, .ws-splash, .rad-fog, .rad-scene.boom::after,
.yuki-peek__poke, .lmodal__poke, .hero__layer--fog, .leaf-deco, .hero__rays { mix-blend-mode: normal !important; }
.leaf-deco { filter: none; }
.rad-fog { background-image: url(../images/fx/rad_fog_a.webp);
  background-image: image-set(url(../images/fx/rad_fog_a.avif) type("image/avif"), url(../images/fx/rad_fog_a.webp) type("image/webp")); }
.rad-scene.boom::after { background: rgba(170, 255, 0, .42); }
