/* Эффекты главной (RU/EN/PT), 30.09.2026 — пара к js/fx.js */

/* мяч в первом экране */
.fx-ball { position: absolute; left: 0; top: 0; z-index: 5; width: 56px; height: 56px; cursor: grab; touch-action: manipulation;
  will-change: transform; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.fx-ball svg { width: 100%; height: 100%; display: block; transform: scale(var(--sx,1), var(--sy,1)); transform-origin: 50% 100%; transition: transform .09s ease-out; }
.fx-ball-shadow { position: absolute; left: 0; top: 0; z-index: 4; width: 56px; height: 12px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); }
.fx-ball-hint { position: absolute; z-index: 6; left: 0; top: 0; font-size: 12px; font-weight: 600; color: var(--yellow); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .4s; }
@media (max-width: 700px) { .fx-ball { width: 44px; height: 44px; } .fx-ball-shadow { width: 44px; } }

/* заголовки разделов: слова проявляются из размытия */
.fx-words .fx-w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(40%);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), filter .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i) * 70ms); }
.fx-words.fx-on .fx-w { opacity: 1; filter: none; transform: none; }
/* карточки поднимаются лесенкой */
.fx-rise { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 80ms); }
.fx-rise.fx-on { opacity: 1; transform: none; }
/* зелёные блоки въезжают «горизонтом» — дугой поля, которая выпрямляется */
.fx-arc { clip-path: ellipse(var(--rx, 70%) 100% at 50% 100%); }

/* живые цифры */
.stat.fx-stat { opacity: 0; filter: blur(10px); transform: translateY(14px); transition: opacity .7s, filter .7s, transform .7s; transition-delay: calc(var(--i) * 120ms); }
.stat.fx-stat.fx-on { opacity: 1; filter: none; transform: none; }
.stat b { font-variant-numeric: tabular-nums; }

/* мяч-курсор (только мышь) */
.fx-cursor { position: fixed; left: 0; top: 0; z-index: 9999; width: 22px; height: 22px; pointer-events: none; opacity: 0;
  transition: opacity .3s, width .25s, height .25s; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.fx-cursor svg { width: 100%; height: 100%; display: block; }
.fx-cursor.fx-big { width: 34px; height: 34px; }
.fx-magnet { transition: transform .25s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* путь игрока 4 → 16 */
.fx-path { position: relative; height: 320vh; background: var(--green); color: #fff; padding: 0; }
.fx-path__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: var(--fx-top, 0px); box-sizing: border-box; }
.fx-path h2 { color: var(--yellow); margin: 0 0 6px; }
.fx-path__lead { opacity: .85; margin: 0; }
.fx-path__age { position: absolute; right: 4vw; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 800;
  font-size: clamp(160px, 30vw, 420px); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,210,30,.28); pointer-events: none;
  font-variant-numeric: tabular-nums; }
.fx-path__track { position: relative; height: 330px; margin-top: 34px; }
.fx-path__rail { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: flex-end; will-change: transform; }
.fx-path__line { position: absolute; left: 0; right: 0; bottom: 38px; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 18px, transparent 18px 30px); }
.fx-path__done { position: absolute; left: 0; bottom: 37px; height: 6px; border-radius: 3px; background: var(--yellow); width: 0;
  box-shadow: 0 0 18px rgba(255,210,30,.6); }
.fx-stop { position: relative; width: min(70vw, 460px); flex: 0 0 auto; padding: 0 28px 78px 0; }
.fx-stop::after { content: ""; position: absolute; left: 0; bottom: 30px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); border: 3px solid rgba(255,255,255,.7); transition: background .3s, border-color .3s, transform .3s; }
.fx-stop.fx-on::after { background: var(--yellow); border-color: var(--yellow); transform: scale(1.25); }
.fx-stop__card { background: rgba(255,255,255,.08); border-radius: 18px; padding: 20px 22px; opacity: .45; transform: translateY(16px) scale(.96);
  transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1), background .45s; }
.fx-stop.fx-on .fx-stop__card { opacity: 1; transform: none; background: rgba(255,255,255,.14); }
.fx-stop__card b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--yellow); margin-bottom: 6px; }
.fx-stop__card p { margin: 0; line-height: 1.5; font-size: .98rem; }
.fx-stop__card a { color: var(--yellow); }
.fx-path__ball { position: absolute; bottom: 30px; left: 0; width: 46px; height: 46px; margin-left: -23px; z-index: 3; will-change: transform; }
.fx-path__ball svg { width: 100%; height: 100%; display: block; }

/* схема поля GINGA */
.fx-pitch { margin-top: 36px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; }
.fx-pitch svg { width: 100%; height: auto; display: block; border-radius: 18px; background: #0d5c35; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.fx-zone { cursor: pointer; }
.fx-zone .fx-halo { fill: rgba(255,210,30,.18); stroke: rgba(255,210,30,.6); stroke-width: 2; transition: fill .3s; transform-box: fill-box; transform-origin: center; animation: fx-pulse 2.2s ease-in-out infinite; }
.fx-zone.fx-act .fx-halo { fill: rgba(255,210,30,.42); stroke: #ffd21e; }
.fx-zone text { font-family: var(--font-head); font-size: 15px; font-weight: 700; fill: #fff; pointer-events: none; }
@keyframes fx-pulse { 50% { transform: scale(1.08); } }
.fx-pitch__panel { background: rgba(255,255,255,.1); border-radius: 18px; padding: 24px 26px; min-height: 190px; }
.fx-pitch__panel small { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.fx-pitch__panel h3 { color: var(--yellow); margin: 0 0 10px; }
.fx-pitch__panel p { margin: 0; line-height: 1.55; }
.fx-pitch__panel .fx-fade { animation: fx-fade .45s ease-out; }
@keyframes fx-fade { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.fx-pitch__dots { display: flex; gap: 8px; margin-top: 16px; }
.fx-pitch__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.fx-pitch__dots button.fx-act { background: var(--yellow); width: 26px; border-radius: 5px; }
#metodika .card.fx-act { box-shadow: 0 0 0 2px var(--yellow), 0 16px 40px rgba(0,0,0,.25); }
@media (max-width: 800px) { .fx-pitch { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .fx-path { height: 380vh; }
  .fx-path h2 { font-size: 1.35rem; }
  .fx-path__lead { font-size: .9rem; }
  .fx-path__track { height: 290px; margin-top: 18px; }
  .fx-stop { width: 82vw; padding-right: 16px; }
  .fx-stop__card { padding: 16px 18px; }
  .fx-stop__card b { font-size: 1.3rem; }
  .fx-stop__card p { font-size: .9rem; }
  .fx-path__age { top: auto; bottom: 4vh; transform: none; font-size: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-words .fx-w, .fx-rise, .stat.fx-stat { opacity: 1 !important; filter: none !important; transform: none !important; }
  .fx-arc { clip-path: none !important; }
}
