/* FreeMod — short-scroll rain stage + lit action pages */
:root {
  --fm-bg: #050d12;
  --fm-ink: #e8f0f5;
  --fm-muted: #7e919d;
  --fm-line: rgba(180, 220, 255, 0.14);
  --fm-soft: rgba(232, 240, 245, 0.08);
  --fm-accent: #d6ff4a;
  --fm-accent-ink: #0a1200;
  --fm-glass: rgba(8, 18, 28, 0.62);
  --fm-tg: #2aabee;
  --fm-danger: #ff9a9a;
  --fm-font: "Figtree", system-ui, sans-serif;
  --fm-display: "Bricolage Grotesque", "Figtree", sans-serif;
  --fm-mono: "IBM Plex Mono", ui-monospace, monospace;
  --fm-pad: clamp(0.9rem, 3vw, 1.75rem);
  --fm-max: 980px;
  --fm-r: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.fm-body {
  margin: 0;
  font-family: var(--fm-font);
  color: var(--fm-ink);
  background: var(--fm-bg);
  line-height: 1.45;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.fm-view-home {
  height: 100svh;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
code { font-family: var(--fm-mono); }

.fm-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fm-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body.fm-view-home .fm-shell { height: 100svh; }

.fm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem var(--fm-pad);
  background: rgba(5, 13, 18, 0.55);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid transparent;
  flex-shrink: 0;
}
.fm-nav.is-scrolled {
  border-bottom-color: var(--fm-soft);
  background: rgba(5, 13, 18, 0.88);
}
.fm-brand {
  font-family: var(--fm-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.fm-brand span { color: var(--fm-accent); }
.fm-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--fm-muted);
  font-weight: 560;
}
.fm-nav-links a:hover { color: var(--fm-ink); }
.fm-nav-actions { display: flex; gap: 0.35rem; align-items: center; }
.fm-nav-toggle {
  display: none;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--fm-soft);
  border-radius: var(--fm-r);
}
.fm-nav-toggle span {
  display: block;
  width: 0.85rem;
  height: 1.5px;
  margin: 0.22rem auto;
  background: var(--fm-ink);
}

.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: var(--fm-r);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.015em;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.fm-btn:hover { transform: translateY(-1px); }
.fm-btn-primary { background: var(--fm-accent); color: var(--fm-accent-ink); }
.fm-btn-primary:hover { filter: brightness(1.05); }
.fm-btn-ghost {
  border: 1px solid var(--fm-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fm-ink);
  backdrop-filter: blur(8px);
}
.fm-btn-ghost:hover { border-color: rgba(214, 255, 74, 0.35); }
.fm-btn-tg { background: var(--fm-tg); color: #fff; }
.fm-btn-block { width: 100%; }

/* —— Home: one-screen stage —— */
.fm-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fm-stage-photo,
.fm-page-bg .fm-stage-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(5, 13, 18, 0.92) 0%, rgba(5, 13, 18, 0.4) 52%, rgba(5, 13, 18, 0.7) 100%),
    linear-gradient(180deg, transparent 30%, rgba(5, 13, 18, 0.85) 100%),
    url("../img/freemod-rain.jpg") center/cover no-repeat;
  transform: scale(1.03);
  animation: fmKen 36s ease-in-out infinite alternate;
}
.fm-stage-photo--dim {
  filter: brightness(0.75) saturate(0.9);
}
@keyframes fmKen {
  from { transform: scale(1.03); }
  to { transform: scale(1.07) translate(-0.5%, -0.3%); }
}
.fm-stage-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
#fmScene {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.8;
  mix-blend-mode: screen;
}
.fm-stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 78% 28%, rgba(214, 255, 74, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(42, 171, 238, 0.06), transparent 50%);
}
.fm-stage-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  width: 100%;
  max-width: var(--fm-max);
  margin: 0 auto;
  padding: clamp(0.75rem, 2.5vh, 1.5rem) var(--fm-pad);
}
.fm-stage-copy { max-width: 26rem; }
.fm-hero-brand {
  margin: 0 0 0.4rem;
  font-family: var(--fm-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  animation: fmIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fm-hero-brand em { font-style: normal; color: var(--fm-accent); }
.fm-hero-lead {
  margin: 0 0 0.85rem;
  color: rgba(232, 240, 245, 0.72);
  font-size: 0.95rem;
  max-width: 22rem;
  animation: fmIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.fm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  animation: fmIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
@keyframes fmIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fm-rail {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  animation: fmIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.fm-rail li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--fm-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(232, 240, 245, 0.9);
}
.fm-rail span {
  font-family: var(--fm-mono);
  font-size: 0.68rem;
  color: var(--fm-accent);
  letter-spacing: 0.04em;
}

.fm-dock {
  position: relative;
  padding: 1.1rem 1.05rem 1.05rem;
  border: 1px solid var(--fm-line);
  border-radius: calc(var(--fm-r) + 0.15rem);
  background: var(--fm-glass);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(214, 255, 74, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: fmIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.fm-dock.is-focus {
  border-color: rgba(214, 255, 74, 0.55);
  box-shadow:
    0 0 0 1px rgba(214, 255, 74, 0.2),
    0 0 28px rgba(214, 255, 74, 0.18),
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.fm-dock-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(214, 255, 74, 0.12), transparent 65%);
  pointer-events: none;
}
.fm-dock-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fm-accent);
  font-weight: 700;
}
.fm-dock-title {
  margin: 0 0 0.5rem;
  font-family: var(--fm-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.fm-strip {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem var(--fm-pad);
  border-top: 1px solid var(--fm-line);
  background:
    linear-gradient(90deg, rgba(214, 255, 74, 0.06), transparent 40%),
    rgba(5, 13, 18, 0.82);
  backdrop-filter: blur(14px);
}
.fm-strip-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.78rem;
  color: var(--fm-muted);
}
.fm-strip-facts strong {
  color: var(--fm-ink);
  font-weight: 700;
  margin-right: 0.2rem;
}
.fm-strip-tg {
  font-size: 0.84rem;
  font-weight: 700;
  color: #7fd4ff;
}
.fm-strip-tg:hover { color: #fff; }

/* —— Inner pages —— */
main { flex: 1; display: flex; flex-direction: column; }
.fm-page {
  position: relative;
  flex: 1;
  padding: clamp(1.5rem, 5vh, 2.75rem) var(--fm-pad) 2rem;
}
.fm-page-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.fm-page-bg .fm-stage-canvas {
  z-index: 1;
}
.fm-page--form {
  background:
    radial-gradient(ellipse 55% 40% at 85% 5%, rgba(214, 255, 74, 0.05), transparent 52%),
    radial-gradient(ellipse 45% 40% at 8% 95%, rgba(42, 171, 238, 0.05), transparent 50%),
    linear-gradient(180deg, rgba(7, 19, 26, 0.55) 0%, rgba(5, 13, 18, 0.72) 100%);
}
.fm-page--form .fm-page-bg .fm-stage-photo {
  opacity: 0.85;
}
.fm-page-inner {
  position: relative;
  z-index: 2;
  max-width: var(--fm-max);
  margin: 0 auto;
}
.fm-page-inner--narrow { max-width: 420px; }
.fm-page-inner--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(70svh, 520px);
}
.fm-page--community .fm-sub { margin-left: auto; margin-right: auto; }

.fm-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fm-accent);
  font-weight: 700;
}
.fm-h2 {
  margin: 0 0 0.4rem;
  font-family: var(--fm-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.fm-sub {
  margin: 0 0 1.15rem;
  max-width: 28rem;
  color: var(--fm-muted);
  font-size: 0.92rem;
}

.fm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  counter-reset: fmstep;
}
.fm-steps--rich .fm-step {
  padding: 1rem 0.95rem;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-r);
  background: rgba(8, 18, 28, 0.55);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.fm-steps--rich .fm-step:hover {
  border-color: rgba(214, 255, 74, 0.35);
  transform: translateY(-2px);
}
.fm-step::before {
  counter-increment: fmstep;
  content: counter(fmstep, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--fm-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--fm-accent);
}
.fm-step h3 {
  margin: 0 0 0.25rem;
  font-family: var(--fm-display);
  font-size: 1rem;
  letter-spacing: -0.025em;
}
.fm-step p {
  margin: 0;
  color: var(--fm-muted);
  font-size: 0.84rem;
}

.fm-panel {
  padding: 1.1rem 1.05rem;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-r);
  background: var(--fm-glass);
  backdrop-filter: blur(18px) saturate(1.15);
}
.fm-panel--lit {
  box-shadow:
    0 0 0 1px rgba(214, 255, 74, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.fm-panel h3 {
  margin: 0 0 0.35rem;
  font-family: var(--fm-display);
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}
.fm-panel-lead {
  margin: 0 0 0.75rem;
  color: var(--fm-muted);
  font-size: 0.84rem;
}
.fm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fm-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  border: 1px solid var(--fm-soft);
  border-radius: var(--fm-r);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
}
.fm-user-chip img {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

.fm-alert {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--fm-r);
  border: 1px solid rgba(255, 120, 120, 0.25);
  background: rgba(255, 80, 80, 0.08);
  color: var(--fm-danger);
  font-size: 0.8rem;
}

.fm-redeem { max-width: 400px; margin: 0 auto; }
.fm-redeem-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fm-accent);
  font-weight: 700;
}
.fm-redeem-title {
  margin: 0 0 0.35rem;
  font-family: var(--fm-display);
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  letter-spacing: -0.035em;
}
.fm-redeem-lead {
  margin: 0 0 0.85rem;
  color: var(--fm-muted);
  font-size: 0.84rem;
}
.fm-redeem-lead strong { color: var(--fm-ink); font-weight: 650; }
.fm-redeem-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.fm-redeem-step {
  text-align: center;
  padding: 0.4rem 0.3rem;
  border: 1px solid var(--fm-soft);
  border-radius: var(--fm-r);
  font-size: 0.7rem;
  color: var(--fm-muted);
  font-weight: 650;
}
.fm-redeem-step.is-active {
  background: var(--fm-ink);
  color: var(--fm-bg);
  border-color: transparent;
}
.fm-redeem-step.is-done {
  border-color: rgba(214, 255, 74, 0.4);
  color: var(--fm-accent);
}
.fm-redeem-ok {
  margin: 0 0 0.65rem;
  color: #d4f28a;
  font-size: 0.82rem;
}
.fm-redeem-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.74rem;
  color: var(--fm-muted);
}
.fm-keybox,
.fm-redeem-input {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.4rem;
  border-radius: var(--fm-r);
  border: 1px solid rgba(214, 255, 74, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--fm-mono);
  font-size: 0.84rem;
}
.fm-keybox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: all;
}
.fm-keybox code { overflow: auto; white-space: nowrap; }
.fm-redeem-input:focus {
  outline: none;
  border-color: var(--fm-accent);
}
.fm-redeem-hint {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  color: var(--fm-muted);
}
.fm-redeem-btn { width: 100%; min-height: 2.45rem; }

.fm-countdown {
  margin: 0.55rem 0 0.25rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(214, 255, 74, 0.28);
  border-radius: var(--fm-r);
  background: rgba(214, 255, 74, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.fm-countdown--next {
  border-color: var(--fm-soft);
  background: rgba(255, 255, 255, 0.03);
}
.fm-countdown-label { font-size: 0.7rem; color: var(--fm-muted); }
.fm-countdown-clock {
  font-family: var(--fm-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fm-accent);
}
.fm-countdown--next .fm-countdown-clock { color: #fff; }

.fm-provider-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}
.fm-provider-overlay.is-open { display: flex; }
.fm-provider-modal {
  position: relative;
  width: min(380px, 100%);
  padding: 1.05rem 1rem 1rem;
  border-radius: var(--fm-r);
  border: 1px solid var(--fm-line);
  background: var(--fm-glass);
  backdrop-filter: blur(20px);
}
.fm-provider-modal h3 {
  margin: 0 0 0.25rem;
  font-family: var(--fm-display);
  font-size: 1.05rem;
}
.fm-provider-lead {
  margin: 0 0 0.75rem;
  color: var(--fm-muted);
  font-size: 0.82rem;
}
.fm-provider-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--fm-soft);
  border-radius: var(--fm-r);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}
.fm-provider-progress {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.74rem;
  color: var(--fm-muted);
}
.fm-provider-dot { display: inline-flex; align-items: center; gap: 0.25rem; }
.fm-provider-dot span {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  background: #12202a;
  color: #8a9aa8;
  font-size: 0.66rem;
  font-weight: 700;
}
.fm-provider-dot.is-active { color: #fff; }
.fm-provider-dot.is-active span {
  background: var(--fm-accent);
  color: var(--fm-accent-ink);
}
.fm-provider-line { flex: 1; height: 1px; background: var(--fm-soft); }
.fm-provider-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  margin-bottom: 0.55rem;
  padding: 0.65rem 0.7rem;
  border-radius: var(--fm-r);
  border: 1px solid var(--fm-soft);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}
.fm-provider-row:hover { border-color: rgba(214, 255, 74, 0.35); }
.fm-provider-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.35rem;
  display: grid;
  place-items: center;
  background: #1db954;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.fm-provider-copy { flex: 1; min-width: 0; }
.fm-provider-copy strong { display: block; margin-bottom: 0.08rem; font-size: 0.9rem; }
.fm-provider-copy small { display: block; color: var(--fm-muted); font-size: 0.72rem; line-height: 1.35; }
.fm-provider-chevron { color: #777; font-size: 1.1rem; }
.fm-provider-cancel { width: 100%; min-height: 2.25rem; }

.fm-download-form { margin-top: 0.35rem; }
.fm-download-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fm-muted);
  margin-bottom: 0.35rem;
}
.fm-download-input {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--fm-r);
  border: 1px solid var(--fm-line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--fm-ink);
  font: inherit;
  margin-bottom: 0.65rem;
}
.fm-download-input:focus {
  outline: none;
  border-color: rgba(214, 255, 74, 0.45);
}
.fm-download-status {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--fm-muted);
}
.fm-download-status.is-ok { color: var(--fm-accent); }
.fm-download-status.is-err { color: var(--fm-danger); }
.fm-download-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--fm-muted);
}
.fm-download-form .fm-btn-primary { margin-bottom: 0.5rem; }

.fm-account-stats {
  list-style: none;
  margin: 0.85rem 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--fm-soft);
  border-bottom: 1px solid var(--fm-soft);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.fm-account-stats li {
  display: grid;
  gap: 0.15rem;
}
.fm-account-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-muted);
}
.fm-account-stat-value {
  font-size: 0.9rem;
  color: var(--fm-ink);
  line-height: 1.35;
  word-break: break-word;
}
.fm-download-blocked {
  text-align: left;
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 154, 154, 0.28);
  border-radius: var(--fm-r);
  background: rgba(255, 154, 154, 0.08);
  color: var(--fm-ink);
  font-size: 0.88rem;
  line-height: 1.45;
}
.fm-download-blocked p { margin: 0 0 0.45rem; }
.fm-download-blocked p:last-child { margin-bottom: 0; }
.fm-download-blocked strong { color: #ffc9c9; }

.fm-footer {
  padding: 1.15rem var(--fm-pad) 1.5rem;
  border-top: 1px solid var(--fm-soft);
  color: var(--fm-muted);
  font-size: 0.74rem;
  line-height: 1.45;
  flex-shrink: 0;
}
.fm-footer-inner {
  max-width: var(--fm-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.fm-footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  color: var(--fm-ink);
  font-size: 0.78rem;
}
.fm-footer-copy {
  color: var(--fm-muted);
  font-weight: 400;
}
.fm-footer-legal,
.fm-footer-trust {
  margin: 0;
  max-width: 52rem;
}
.fm-footer-trust strong {
  color: var(--fm-ink);
  font-weight: 700;
}
.fm-footer a {
  color: var(--fm-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.fm-footer a:hover {
  color: var(--fm-ink);
}
.fm-body.fm-view-home .fm-footer {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.fm-home-support {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--fm-muted);
}
.fm-support-offer {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}
.fm-support-offer .fm-btn {
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}
.fm-support-offer-hint {
  font-size: 0.72rem;
  color: var(--fm-muted);
  max-width: 16rem;
  line-height: 1.35;
}

/* Premium access */
.fm-page-inner--premium { max-width: 720px; }
.fm-prem-version {
  margin: -0.35rem 0 1.1rem;
  font-size: 0.88rem;
  color: var(--fm-muted);
}
.fm-prem-version strong { color: var(--fm-accent); font-weight: 700; }
.fm-prem-compare {
  display: grid;
  gap: 0;
  margin: 0 0 1.25rem;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-r);
  overflow: hidden;
  background: rgba(8, 18, 28, 0.55);
}
.fm-prem-compare-head,
.fm-prem-compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  align-items: start;
}
.fm-prem-compare-head {
  background: rgba(214, 255, 74, 0.06);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fm-muted);
  border-bottom: 1px solid var(--fm-line);
}
.fm-prem-compare-row {
  border-top: 1px solid rgba(180, 220, 255, 0.1);
  font-size: 0.88rem;
}
.fm-prem-compare-row span:first-child { font-weight: 700; color: var(--fm-ink); }
.fm-prem-compare-row .is-free { color: var(--fm-muted); }
.fm-prem-compare-row .is-prem { color: var(--fm-accent); font-weight: 600; }
@media (max-width: 560px) {
  .fm-prem-compare-head,
  .fm-prem-compare-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .fm-prem-compare-head span:not(:first-child) { display: none; }
  .fm-prem-compare-row .is-free::before { content: "Free · "; color: #7e919d; font-weight: 600; }
  .fm-prem-compare-row .is-prem::before { content: "Premium · "; color: var(--fm-accent); font-weight: 700; }
}
.fm-turnstile-wrap {
  margin: 0.35rem 0 0.85rem;
  min-height: 65px;
}
.fm-turnstile-wrap .cf-turnstile { width: 100%; }
.fm-prem-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 720px) {
  .fm-prem-grid { grid-template-columns: 1.15fr 0.85fr; gap: 1.15rem; }
}
.fm-prem-panel {
  background: rgba(8, 18, 28, 0.55);
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-r);
  padding: 1rem 1.05rem 0.85rem;
  backdrop-filter: blur(10px);
}
.fm-prem-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-ink);
}
.fm-prem-ico {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background: rgba(214, 255, 74, 0.12);
  color: var(--fm-accent);
  font-size: 0.72rem;
}
.fm-prem-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fm-prem-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(180, 220, 255, 0.1);
}
.fm-prem-row:first-child { border-top: 0; padding-top: 0.15rem; }
.fm-prem-plan {
  font-weight: 700;
  color: var(--fm-ink);
  font-size: 0.95rem;
}
.fm-prem-price-wrap {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.fm-prem-price {
  font-weight: 700;
  color: var(--fm-accent);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.fm-prem-row.is-deal .fm-prem-price { color: #7fd4ff; }
.fm-prem-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(90deg, #5ec8ff, #7aa8ff);
}
.fm-prem-was {
  font-size: 0.72rem;
  color: var(--fm-muted);
  text-decoration: line-through;
}
.fm-prem-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fm-muted);
}
.fm-prem-status i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}
.fm-prem-status.is-ok { color: #9dff8a; }
.fm-prem-status.is-ok i { background: #3ddc6a; box-shadow: 0 0 8px rgba(61, 220, 106, 0.45); }
.fm-prem-status.is-maint { color: #ffc46b; }
.fm-prem-status.is-maint i { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.fm-prem-status.is-down { color: #ff9a9a; }
.fm-prem-status.is-down i { background: #ef4444; }
.fm-prem-contact {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
}
.fm-prem-contact p {
  flex: 1 1 100%;
  margin: 0 0 0.15rem;
  color: var(--fm-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.fm-footer strong { color: var(--fm-ink); }

/* Floating socials — icon dock */
.fm-social-float {
  position: fixed;
  right: max(0.65rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.fm-social-float__btn {
  pointer-events: auto;
  position: relative;
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  border: 1px solid rgba(180, 220, 255, 0.16);
  background:
    linear-gradient(160deg, rgba(30, 48, 62, 0.92), rgba(8, 16, 24, 0.88));
  color: #c5d4de;
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.18s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.fm-social-float__icon {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
}
.fm-social-float__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.fm-social-float__tip {
  position: absolute;
  right: calc(100% + 0.55rem);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fm-ink);
  background: rgba(8, 18, 28, 0.92);
  border: 1px solid rgba(180, 220, 255, 0.16);
  border-radius: 0.45rem;
  padding: 0.28rem 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.fm-social-float__btn:hover,
.fm-social-float__btn:focus-visible {
  transform: translateX(-2px) scale(1.04);
  color: #fff;
  border-color: rgba(214, 255, 74, 0.4);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(214, 255, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}
.fm-social-float__btn:hover .fm-social-float__tip,
.fm-social-float__btn:focus-visible .fm-social-float__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.fm-social-float__btn--tg:hover { color: #2aabee; border-color: rgba(42, 171, 238, 0.45); }
.fm-social-float__btn--ch:hover { color: #2dd4bf; border-color: rgba(45, 212, 191, 0.4); }
.fm-social-float__btn--help:hover { color: #d6ff4a; border-color: rgba(214, 255, 74, 0.45); }
.fm-social-float__btn--tt:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

@media (max-width: 720px) {
  .fm-social-float {
    right: auto;
    left: 50%;
    top: auto;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    flex-direction: row;
    gap: 0.45rem;
    padding: 0.35rem 0.45rem;
    border-radius: 1rem;
    border: 1px solid rgba(180, 220, 255, 0.12);
    background: rgba(5, 13, 18, 0.72);
    backdrop-filter: blur(12px);
  }
  .fm-social-float__btn {
    width: 2.55rem;
    height: 2.4rem;
    border-radius: 0.7rem;
  }
  .fm-social-float__btn:hover,
  .fm-social-float__btn:focus-visible {
    transform: translateY(-2px) scale(1.04);
  }
  .fm-social-float__tip {
    display: none;
  }
}

@media (max-width: 860px) {
  body.fm-view-home {
    height: auto;
    overflow: auto;
  }
  body.fm-view-home .fm-shell { height: auto; min-height: 100svh; }
  .fm-nav-links { display: none; }
  .fm-nav.is-open .fm-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem var(--fm-pad) 0.9rem;
    background: rgba(5, 13, 18, 0.96);
    border-bottom: 1px solid var(--fm-soft);
  }
  .fm-nav-toggle { display: block; }
  .fm-stage-grid {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1rem;
    padding-top: 0.5rem;
  }
  .fm-steps { grid-template-columns: 1fr; }
  #fmScene { opacity: 0.5; }
  .fm-hero-brand { font-size: clamp(1.9rem, 9vw, 2.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .fm-stage-photo,
  .fm-hero-brand,
  .fm-hero-lead,
  .fm-hero-cta,
  .fm-rail,
  .fm-dock {
    animation: none !important;
  }
}
