/* The SuperPower FX page (spfx.pro-motion.dev, owner 2026-10-21: every product has its own colour; FX keeps the green of its site):
   the shared template in green instead of the orange. Loaded after style.css on that host only; every rule is under body.sfx.
   The Pro-Motion name tag keeps its orange: the guideline never recolours it. The footer's small Pro-Motion mark stays too.
   The palette, on the canvas #141414 (WCAG contrast ratio):
     --accent      #92f390  13.5:1  the green of the SuperPower FX site: links, rings, buttons, the end of the header's rule
     --accent-2    #bdf9bb  15.3:1  a button under the pointer
     --accent-ink  #12301a  10.6:1 on --accent, 11.9:1 on --accent-2: the text of a button
     --grow        #4b8f49   4.7:1  hairline rings and marks (graphics need 3:1)
     --grow-text   #9fd39d  10.8:1  quieter text in the accent */
body.sfx {
  --accent: #92f390;
  --accent-2: #bdf9bb;
  --accent-ink: #12301a;
  --grow: #4b8f49;
  --grow-text: #9fd39d;
  --wish-bg: #1e2a20;                    /* the wish form's field: the canvas with a little of the green */
  background: radial-gradient(1100px 560px at 88% -120px, rgba(146, 243, 144, .05), transparent 70%) no-repeat, var(--canvas);
  /* the product's opening (style.css, "The opening of a product page"): the glow of the logo and the bar of the main action */
  --pi-glow: 146 243 144;
  --pi-glow-2: 110 220 120;
  --pi-act: linear-gradient(90deg, #7fe79a, #92f390 38%, #d6f77a);
  --pi-act-glow: 170 245 120;
}
body.sfx::before { background: linear-gradient(90deg, transparent, rgba(146, 243, 144, .45) 28%, rgba(146, 243, 144, .45) 72%, transparent); }
.sfx .button { white-space: nowrap; }
.sfx .button:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.sfx a.more { color: var(--accent); }
.sfx a.more:hover { color: var(--accent-2); }

.lines-spfx { --lines: url("/lines-spfx.svg?v=41e33e6d"); --lines-narrow: url("/lines-spfx.svg?v=41e33e6d"); }



/* Owner, 2026-10-23: the design of the SuperPower Normals page carried over to the SuperPower FX home page (green). The opening, the bar
   with the drop and the facts above are the Normals rules under fx- names; below, the sample and the steps in the same manner. */
.sfx { --h1: #92f390; --h2: #4fd6c4; --h3: #d9f56e; --h4: #ffb454; }
.fx-hint { max-width: 36em; margin: 18px 0 0; color: var(--text-3); }
.sfx .sample { margin-top: 56px; padding: 56px 0 60px; border-top: 0; position: relative; }
.sfx .sample::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--h1) 9%, color-mix(in srgb, var(--h1) 10%, transparent) 92%); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--h1) 65%, transparent)); }
.sfx .sample .code { border-left-color: color-mix(in srgb, var(--h1) 45%, transparent); }
.sfx .element .shape polygon { stroke: var(--h1); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--h1) 55%, transparent)); }
.sfx .how h2 { background: linear-gradient(90deg, #fff 30%, var(--h1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sfx .steps li { --c: var(--h1); position: relative; isolation: isolate; border-top: 0; padding-top: 44px; }
.sfx .steps li:nth-child(2) { --c: var(--h2); }
.sfx .steps li:nth-child(3) { --c: var(--h3); }
.sfx .steps li:nth-child(4) { --c: var(--h4); }
.sfx .steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--c) 9%, color-mix(in srgb, var(--c) 10%, transparent) 92%); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--c) 65%, transparent)); }
.sfx .steps li::before { top: 16px; border-color: var(--c); color: var(--c); }
.sfx .steps h3 { color: #fff; }
.sfx .sample > * { min-width: 0; }

/* "Where it works" (.fx-hosts) is shared with the SuperPower Studio and SuperPower MCP pages: site/static/style.css; here it takes the --h colours above. */

/* The showcase (owner, 2026-10-23): one wide card at a time, a small control of dots under it to slide left and right in a circle. The card is
   docked to the bar above it, as the SuperPower Normals picture is (normals.css, .spn-hero); a vertical line on each side, no fades (owner, 2026-10-23). */
body.sfx { overflow-x: clip; }
.fx-show { position: relative; margin: 0; padding: 0; }
.fx-stage { position: relative; aspect-ratio: 4 / 1; overflow: visible; }   /* 4:1, half the height of the first 2:1 (owner, 2026-10-23) */
.fx-stage::before { content: ""; position: absolute; inset: 8% 12%; background: radial-gradient(60% 70% at 50% 50%, rgba(146, 243, 144, .22), transparent 70%); filter: blur(30px); pointer-events: none; }
.fx-stage::after { --sx: min(80px, var(--left, 24px)); content: ""; position: absolute; top: -40px; bottom: -60px; left: calc(-1 * var(--sx)); right: calc(-1 * min(80px, var(--right, 24px))); z-index: -1; background: var(--canvas); pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--sx), #000 calc(100% - var(--sx)), transparent), linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 60px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--sx), #000 calc(100% - var(--sx)), transparent), linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 60px), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.fx-track { position: absolute; inset: 0; overflow: hidden; margin: 0; padding: 0; list-style: none; touch-action: pan-y; cursor: grab;
  border-inline: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
 }
.fx-track.is-dragging { cursor: grabbing; }
.fx-slide { position: absolute; inset: 0; translate: calc(var(--o, 0) * 100% + var(--drag, 0px)) 0; transition: translate .55s cubic-bezier(.65, 0, .35, 1); background: var(--paper, #1b1b1b); }
.fx-slide.no-move, .fx-track.is-dragging .fx-slide { transition: none; }
.fx-slide { --paper: var(--canvas); }   /* dark like the page; the letters carry the colour (owner, 2026-10-24) */
.fx-slide canvas { position: relative; display: block; width: 100%; height: 100%; }
/* the back layer: a prerendered loop of the flying letters behind the live word (owner, 2026-10-23) */
.fx-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.fx-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 0; }
.fx-dots { display: flex; gap: 10px; }
.fx-dots button { box-sizing: border-box; width: 11px; height: 11px; padding: 0; border: 1.5px solid var(--grow); border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s, border-color .2s, scale .15s; }
.fx-dots button[aria-current="true"] { background: var(--accent); border-color: var(--accent); }
.fx-dots button:hover { border-color: var(--accent); scale: 1.2; }
.fx-prev, .fx-next { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--tick); border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s, scale .15s; }
.fx-prev:hover, .fx-next:hover { color: var(--accent); border-color: var(--accent); }
.fx-prev:active, .fx-next:active, .fx-dots button:active { scale: .9; }
.fx-prev svg, .fx-next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-ctl button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 780px) { .fx-stage { aspect-ratio: 2 / 1; } }   /* on phones 4:1 would be a strip; the video's sides are cropped */

/* The panel of the effect's controls (owner, 2026-10-23): slides in from the left over the card when the pointer is on the card, or opens with the
   sliders button under it (phones, keyboard). The rows are the element's own controls, as in Effect Controls. It is clipped by the card's edges
   (owner: "the menu is cut by the border of the effect"); its rows scroll inside it. */
.fx-clip { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.fx-clip .fx-panel { pointer-events: auto; }
.fx-panel { position: absolute; top: 0; left: 0; bottom: 0; box-sizing: border-box; width: min(430px, 92%); padding: 8px 12px 10px; overflow-y: auto; scrollbar-width: none;
  background: rgba(18, 18, 18, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-right: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  translate: calc(-100% - 2px) 0; opacity: 0; visibility: hidden; transition: translate .35s cubic-bezier(.65, 0, .35, 1), opacity .25s, visibility 0s .35s; }
.fx-panel::-webkit-scrollbar { display: none; }
@media (hover: hover) { .fx-stage:hover .fx-panel { translate: 0; opacity: 1; visibility: visible; transition: translate .35s cubic-bezier(.65, 0, .35, 1), opacity .25s; } }
.fx-panel:focus-within, .fx-show.is-open .fx-panel { translate: 0; opacity: 1; visibility: visible; transition: translate .35s cubic-bezier(.65, 0, .35, 1), opacity .25s; }
.fx-panel.is-empty { display: none; }
.fx-panel-head { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 4px; font-size: 11px; line-height: 16px; color: var(--text-3); }
.fx-panel-head span:first-child { color: var(--accent); font-weight: 560; }
/* compact rows (owner, 2026-10-23: "denser and smaller, easy to press, little room"): two columns; a row is its name and value on one line
   over a slider whose thin track keeps a 16 px tall target */
.fx-rows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 16px; }
.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; min-width: 0; margin: 0; font-size: 11.5px; line-height: 14px; color: var(--text-2); }
.fx-row .fx-name-l { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fx-row b { font: 500 11px/14px var(--mono); color: var(--accent); }
.fx-row.fx-text { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); margin-bottom: 4px; }
.fx-row input[type="text"] { box-sizing: border-box; width: 100%; height: 22px; padding: 2px 7px; border: 1px solid var(--tick); border-radius: 4px; background: rgba(0, 0, 0, .3); color: var(--text); font: 12px var(--mono); }
.fx-row input[type="color"] { width: 26px; height: 16px; padding: 0; border: 1px solid var(--tick); border-radius: 3px; background: none; cursor: pointer; }
.fx-row input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.fx-row.fx-color, .fx-row.fx-checkbox { height: 30px; }
.fx-row input[type="range"] { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 16px; margin: 0; background: transparent; cursor: pointer; }
.fx-row input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255, 255, 255, .18) var(--p, 50%)); }
.fx-row input[type="range"]::-moz-range-track { height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .18); }
.fx-row input[type="range"]::-moz-range-progress { height: 2px; border-radius: 1px; background: var(--accent); }
.fx-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4.5px; border: 0; border-radius: 50%; background: var(--accent); }
.fx-row input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--accent); }
.fx-row input[type="range"]:hover::-webkit-slider-thumb { scale: 1.25; }
.fx-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 780px) { .fx-panel { width: 100%; } }
.fx-tune { display: grid; place-items: center; width: 30px; height: 30px; margin-left: 10px; padding: 0; border: 1px solid var(--tick); border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s, scale .15s; }
.fx-tune:hover, .fx-tune[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.fx-tune:active { scale: .9; }
.fx-tune svg { width: 16px; height: 16px; fill: var(--canvas); stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
/* the bar's label stays on one line on a 360 px phone in every language (Russian "Войдите, чтобы скачать" is the longest) */

/* The other pages of the project menu (Download, Tutorials; owner 2026-10-23): the opening of the home page, shorter */
.fx-sub-intro { max-width: 760px; padding: 56px 0 48px; }
.sfx .fx-sub-intro h1 { margin: 0 0 18px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 650; line-height: 1.12; letter-spacing: -.035em; }
.fx-sub-intro .button { margin: 26px 0 0; min-height: 44px; }
.fx-sub-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-3); }
.fx-sub-intro .tm-note { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 14px; color: var(--text-3); }
.fx-sub-intro .tm-note::before { content: ""; flex: none; width: 12px; height: 12px; border: 1.5px dashed currentColor; border-radius: 50%; }

/* The project's strip on the project's other pages: at the top of the main element, with the product's name on its left (its styles are
   shared: "A project's strip" in site/static/style.css). */
.fx-page.fx-sub > .proj-strip { margin: 34px 0 30px; }
.tm-page > .proj-strip { margin: -14px 0 30px; }   /* the page's own 48 px above it */
@media (max-width: 780px) { .fx-page.fx-sub > .proj-strip { margin-top: 20px; } }
.fx-sub .fx-sub-intro { padding-top: 26px; }
