/* Zamam page skin «fusion» (prototype top-pages-proto/fusion, approved 20 Nov 2026) */
/* ===== Fusion — «همگرایی»: سه مدار (عدد، نشان چینی، رمل) که در یک پاسخ به هم می‌رسند ===== */
html.zp--fusion {
  --zp-bg: #050816; --zp-bg-2: #0b1028; --zp-ink: #eef2ff; --zp-muted: #c3cbea; --zp-soft: #8f9bc4;
  --zp-gold: #fbbf24; --zp-gold-2: #f59e0b; --zp-gold-3: #fde68a; --zp-lapis: #6366f1; --zp-violet: #a5b4fc; --zp-rose: #f472b6; --zp-teal: #5eead4;
  --zp-card: linear-gradient(165deg, rgba(20, 28, 64, .78), rgba(8, 12, 32, .76)); --zp-card-brd: rgba(165, 180, 252, .2); --zp-card-brd-hi: rgba(94, 234, 212, .5);
  --zp-page: linear-gradient(170deg, #f5f7ff 0%, #e4e9fb 100%); --zp-page-ink: #111a3d; --zp-page-muted: #4a5582;
  --zp-shadow: 0 30px 80px -40px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .06) inset; --zp-glyph: rgba(165, 180, 252, .12);
  --zp-head: linear-gradient(100deg, #ccfbf1 0%, #5eead4 32%, #fbbf24 66%, #a5b4fc 100%);
  --zp-btn: linear-gradient(120deg, #99f6e4 0%, #5eead4 30%, #fbbf24 70%, #f59e0b 100%); --zp-btn-light: linear-gradient(120deg, #0f766e 0%, #1e40af 55%, #b45309 100%); --zp-on-accent: #04121a;
  --zp-h1: linear-gradient(100deg, #ccfbf1 0%, #5eead4 35%, #fde68a 70%, #c7d2fe 100%); --zp-h1-light: linear-gradient(100deg, #134e4a, #1e40af 50%, #92400e);
  --zp-hero-shade-dark: radial-gradient(60% 55% at 50% 45%, rgba(5,8,22,.35), rgba(5,8,22,.84) 80%), linear-gradient(180deg, rgba(5,8,22,.42), rgba(5,8,22,.15) 40%, #050816 100%);
  --zp-hero-shade-light: radial-gradient(60% 55% at 50% 45%, rgba(244,246,255,.55), rgba(244,246,255,.88) 80%), linear-gradient(180deg, rgba(244,246,255,.5), rgba(244,246,255,.3) 40%, #f4f6ff 100%);
  --zp-r: 24px; --zp-ease: cubic-bezier(.2, .7, .2, 1);
  --fu-a: #5eead4; --fu-b: #fbbf24; --fu-c: #a5b4fc;
}
html.zp--fusion[data-theme="light"] {
  --zp-bg: #f4f6ff; --zp-bg-2: #e7ebfb; --zp-ink: #111a3d; --zp-muted: #3f4a78; --zp-soft: #6670a0;
  --zp-gold: #b45309; --zp-gold-2: #92400e; --zp-gold-3: #d97706; --zp-teal: #0f766e; --zp-violet: #4338ca;
  --zp-card: linear-gradient(165deg, rgba(255, 255, 255, .95), rgba(241, 244, 255, .92)); --zp-card-brd: rgba(67, 56, 202, .16); --zp-card-brd-hi: rgba(15, 118, 110, .45);
  --zp-shadow: 0 30px 70px -42px rgba(30, 40, 120, .4), 0 1px 0 rgba(255, 255, 255, .9) inset; --zp-glyph: rgba(67, 56, 202, .09);
  --zp-head: linear-gradient(100deg, #134e4a 0%, #1e40af 50%, #b45309 100%);
  --fu-a: #0f766e; --fu-b: #b45309; --fu-c: #4338ca;
}
html.zp--fusion body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; background:
  radial-gradient(30% 26% at 22% 30%, rgba(94, 234, 212, .13), transparent 70%), radial-gradient(30% 26% at 78% 30%, rgba(251, 191, 36, .10), transparent 70%), radial-gradient(30% 26% at 50% 78%, rgba(165, 180, 252, .12), transparent 70%); }
html.zp--fusion .zp-sky::before { background: none !important; }
html.zp--fusion .section__head h2, html.zp--fusion .tool-seo h2, html.zp--fusion .tl-join h2 { background: var(--zp-head) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }

html.zp--fusion .fu-orbits { position: absolute; left: 50%; top: 48%; width: min(940px, 150vw); transform: translate(-50%, -50%); color: var(--zp-ink); opacity: .55; pointer-events: none; }
html.zp--fusion .fu-orbits svg { width: 100%; height: auto; animation: fuSpin 140s linear infinite; transform-origin: 50% 50%; }
@keyframes fuSpin { to { transform: rotate(360deg); } }
html.zp--fusion[data-theme="light"] .fu-orbits { opacity: .4; }

/* try: form + three seats that light up */
html.zp--fusion #try .tool-trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); max-width: 1120px; margin: 0 auto; align-items: stretch; }
html.zp--fusion #try .tool-trial > * { grid-column: 1; min-width: 0; }
html.zp--fusion #try .tool-trial > .fu-live { grid-column: 2; grid-row: 1 / span 3; }
html.zp--fusion #try .tool-trial > .tool-trial__result, html.zp--fusion #try .tool-trial > .tool-trial__locked { grid-column: 1 / -1; }
@media (max-width: 860px) { html.zp--fusion #try .tool-trial { grid-template-columns: 1fr; } html.zp--fusion #try .tool-trial > .fu-live { grid-column: 1; grid-row: auto; } }
.fu-live { position: relative; border-radius: var(--zp-r); padding: 22px; background: var(--zp-card); border: 1px solid var(--zp-card-brd); box-shadow: var(--zp-shadow); overflow: hidden; min-height: 300px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.fu-live__top { font-size: .82rem; color: var(--zp-soft); font-weight: 700; }
.fu-seats { position: relative; width: min(100%, 330px); aspect-ratio: 1.1; margin: 0 auto; }
.fu-seat { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--c) 8%, transparent), transparent 70%); transition: .5s var(--zp-ease); --c: var(--fu-a); }
.fu-seat b { font-size: 1.6rem; color: var(--c); line-height: 1.2; }
.fu-seat small { font-size: .76rem; color: var(--zp-muted); font-weight: 700; }
.fu-seat--a { right: 6%; top: 4%; } .fu-seat--b { left: 6%; top: 4%; --c: var(--fu-b); } .fu-seat--c { left: 27%; bottom: 2%; --c: var(--fu-c); }
.fu-seat.is-on { background: radial-gradient(circle, color-mix(in srgb, var(--c) 26%, transparent), transparent 72%); border-color: var(--c); box-shadow: 0 0 32px -6px var(--c); }
.fu-core { position: absolute; left: 50%; top: 52%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed var(--zp-card-brd-hi); display: grid; place-items: center; color: var(--zp-gold); font-weight: 900; }
.fu-live.is-ready .fu-core { background: var(--zp-btn); color: var(--zp-on-accent); border-style: solid; box-shadow: 0 0 30px color-mix(in srgb, var(--zp-gold) 50%, transparent); animation: fuPulse 2.4s ease-in-out infinite; }
@keyframes fuPulse { 50% { transform: translate(-50%, -50%) scale(1.1); } }
.fu-hint { text-align: center; font-size: .84rem; color: var(--zp-muted); }

/* result stage */
.fu-stage .fu-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0 16px; }
@media (max-width: 860px) { .fu-stage .fu-tri { grid-template-columns: 1fr; } }
.fu-card { position: relative; border-radius: 22px; padding: 18px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), var(--zp-card); text-align: center; --c: var(--fu-a); overflow: hidden; }
.fu-card--b { --c: var(--fu-b); } .fu-card--c { --c: var(--fu-c); }
.fu-card > small { display: block; font-size: .76rem; font-weight: 800; color: var(--c); letter-spacing: .02em; }
.fu-big { font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 900; line-height: 1.15; color: var(--c); font-variant-numeric: tabular-nums; }
.fu-card p { margin: .4rem 0 0; color: var(--zp-muted); line-height: 1.9; font-size: .9rem; }
.fu-card b.fu-name { display: block; font-size: 1.15rem; color: var(--zp-ink); margin-top: 4px; }
.fu-animal { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 8px auto 0; display: block; border: 2px solid var(--c); box-shadow: 0 0 26px -6px var(--c); }
.fu-raml { display: grid; gap: 7px; justify-items: center; margin: 10px auto 2px; }
.fu-raml div { display: flex; gap: 12px; height: 14px; }
.fu-raml i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: jfIn .4s both; }
.fu-merge { position: relative; border-radius: 22px; padding: 20px 22px; border: 1px solid var(--zp-card-brd-hi); background: var(--zp-card); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.fu-merge__seal { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: .9rem; color: var(--zp-on-accent); background: var(--zp-btn); box-shadow: 0 0 34px color-mix(in srgb, var(--zp-gold) 40%, transparent); padding: 6px; line-height: 1.4; }
html.zp--fusion[data-theme="light"] .fu-merge__seal { background: var(--zp-btn-light); color: #fff; }
.fu-merge p { margin: 0; line-height: 2.1; }
@media (max-width: 560px) { .fu-merge { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
@keyframes jfIn { from { opacity: 0; transform: translateY(8px) scale(.9); } }
html.zp--fusion .tool-seo__intro.card { --zp-corner: none; }

/* ---- production additions ---- */
