/* Zamam page skin «shadi» (prototype top-pages-proto/abjad-shadi, approved 20 Nov 2026) */
/* ===== Abjad-shadi — «پیوند»: دو حلقهٔ درهم، لعل و طلا، دو لوح نام ===== */
html.zp--shadi {
  --zp-bg: #14060f; --zp-bg-2: #220a19; --zp-ink: #fdf1f5; --zp-muted: #e6c3d2; --zp-soft: #b98fa3;
  --zp-gold: #f6c87a; --zp-gold-2: #e3a24b; --zp-gold-3: #fff0d2; --zp-lapis: #6366f1; --zp-violet: #c084fc; --zp-rose: #fb7185; --zp-teal: #f9a8d4;
  --zp-card: linear-gradient(165deg, rgba(58, 16, 40, .78), rgba(26, 8, 20, .76)); --zp-card-brd: rgba(246, 200, 122, .2); --zp-card-brd-hi: rgba(251, 113, 133, .55);
  --zp-page: linear-gradient(170deg, #fff5f0 0%, #f6e1dc 100%); --zp-page-ink: #3b0d22; --zp-page-muted: #7a4157;
  --zp-shadow: 0 30px 80px -40px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .06) inset; --zp-glyph: rgba(251, 113, 133, .13);
  --zp-head: linear-gradient(100deg, #fff0d2 0%, #f6c87a 38%, #fb7185 78%, #f472b6 100%);
  --zp-btn: linear-gradient(120deg, #ffe1b0 0%, #f6c87a 35%, #fb7185 80%, #f472b6 100%); --zp-btn-light: linear-gradient(120deg, #b45309 0%, #be123c 55%, #9d174d 100%); --zp-on-accent: #2a0716;
  --zp-h1: linear-gradient(100deg, #fff0d2 0%, #f6c87a 40%, #fda4af 78%, #f9a8d4 100%); --zp-h1-light: linear-gradient(100deg, #881337, #be123c 45%, #92400e);
  --zp-hero-shade-dark: radial-gradient(60% 55% at 50% 45%, rgba(20,6,15,.35), rgba(20,6,15,.84) 80%), linear-gradient(180deg, rgba(20,6,15,.42), rgba(20,6,15,.15) 40%, #14060f 100%);
  --zp-hero-shade-light: radial-gradient(60% 55% at 50% 45%, rgba(253,244,246,.55), rgba(253,244,246,.88) 80%), linear-gradient(180deg, rgba(253,244,246,.5), rgba(253,244,246,.3) 40%, #fdf4f6 100%);
  --zp-r: 24px; --zp-ease: cubic-bezier(.2, .7, .2, 1);
  --sh-a: #fb7185; --sh-b: #f6c87a;
}
html.zp--shadi[data-theme="light"] {
  --zp-bg: #fdf4f6; --zp-bg-2: #f8e7ec; --zp-ink: #3b0d22; --zp-muted: #74404f; --zp-soft: #9b6b7a;
  --zp-gold: #a16207; --zp-gold-2: #854d0e; --zp-gold-3: #ca8a04; --zp-teal: #be185d; --zp-violet: #9d174d; --zp-rose: #be123c;
  --zp-card: linear-gradient(165deg, rgba(255, 255, 255, .95), rgba(253, 242, 246, .92)); --zp-card-brd: rgba(190, 24, 93, .16); --zp-card-brd-hi: rgba(190, 18, 60, .45);
  --zp-shadow: 0 30px 70px -42px rgba(120, 20, 60, .4), 0 1px 0 rgba(255, 255, 255, .9) inset; --zp-glyph: rgba(190, 24, 93, .09);
  --zp-head: linear-gradient(100deg, #881337 0%, #be123c 45%, #a16207 100%);
  --sh-a: #be123c; --sh-b: #a16207;
}
html.zp--shadi body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55; background:
  radial-gradient(38% 30% at 18% 26%, rgba(251, 113, 133, .16), transparent 70%), radial-gradient(34% 28% at 84% 64%, rgba(246, 200, 122, .12), transparent 70%); }
html.zp--shadi[data-theme="light"] body::before { background: radial-gradient(38% 30% at 18% 26%, rgba(251, 113, 133, .14), transparent 70%), radial-gradient(34% 28% at 84% 64%, rgba(202, 138, 4, .10), transparent 70%); }
html.zp--shadi .zp-sky::before { background: none !important; }
html.zp--shadi .section__head h2, html.zp--shadi .tool-seo h2, html.zp--shadi .tl-join h2 { background: var(--zp-head) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }

/* hero decor: two interlocking rings of letters */
html.zp--shadi .sh-rings { position: absolute; left: 50%; top: 48%; width: min(980px, 150vw); transform: translate(-50%, -50%); color: var(--zp-gold); opacity: .5; pointer-events: none; }
html.zp--shadi .sh-rings svg { width: 100%; height: auto; animation: shBreath 9s ease-in-out infinite alternate; }
@keyframes shBreath { to { transform: scale(1.035); } }
html.zp--shadi[data-theme="light"] .sh-rings { opacity: .35; color: var(--zp-rose); }

/* try: form + two live name plates */
html.zp--shadi #try .tool-trial { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(18px, 3vw, 32px); max-width: 1120px; margin: 0 auto; align-items: stretch; }
html.zp--shadi #try .tool-trial > * { grid-column: 1; min-width: 0; }
html.zp--shadi #try .tool-trial > .sh-live { grid-column: 2; grid-row: 1 / span 3; }
html.zp--shadi #try .tool-trial > .tool-trial__result, html.zp--shadi #try .tool-trial > .tool-trial__locked { grid-column: 1 / -1; }
@media (max-width: 860px) { html.zp--shadi #try .tool-trial { grid-template-columns: 1fr; } html.zp--shadi #try .tool-trial > .sh-live { grid-column: 1; grid-row: auto; } }
.sh-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); display: grid; grid-template-rows: auto 1fr auto; gap: 14px; overflow: hidden; min-height: 300px; }
.sh-live::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--zp-card-brd); border-radius: 18px; pointer-events: none; }
.sh-live__top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--zp-soft); font-weight: 700; position: relative; }
.sh-live__top b { color: var(--zp-gold); }
.sh-plates { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.sh-plate { text-align: center; padding: 16px 8px; border-radius: 20px; border: 1px solid var(--zp-card-brd-hi); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); min-height: 150px; display: grid; align-content: center; gap: 4px; --c: var(--sh-a); }
.sh-plate--b { --c: var(--sh-b); }
.sh-plate b { font-size: 1.25rem; color: var(--zp-ink); line-height: 1.5; min-height: 1.9rem; overflow-wrap: anywhere; }
.sh-plate span { font-size: 2rem; font-weight: 900; color: var(--c); font-variant-numeric: tabular-nums; line-height: 1.2; }
.sh-plate small { font-size: .74rem; color: var(--zp-soft); }
.sh-knot { width: 54px; height: 54px; display: grid; place-items: center; position: relative; }
.sh-knot i { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sh-a); right: 2px; animation: shPulse 2.4s ease-in-out infinite; }
.sh-knot i + i { border-color: var(--sh-b); right: auto; left: 2px; animation-delay: -1.2s; }
@keyframes shPulse { 50% { transform: scale(1.12); } }
.sh-shared { position: relative; text-align: center; font-size: .86rem; color: var(--zp-muted); min-height: 1.6em; }
.sh-shared em { font-style: normal; display: inline-grid; place-items: center; min-width: 30px; height: 30px; margin: 2px; border-radius: 9px; font-weight: 900; color: var(--zp-on-accent); background: var(--zp-btn); }
html.zp--shadi[data-theme="light"] .sh-shared em { background: var(--zp-btn-light); color: #fff; }
@media (max-width: 480px) { .sh-plates { grid-template-columns: 1fr; } .sh-knot { margin: 0 auto; transform: rotate(90deg); } }

/* result stage */
.sh-stage .sh-bond { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px, 3vw, 28px); margin: 8px 0 18px; }
.sh-medal { text-align: center; padding: 18px 10px; border-radius: 22px; border: 1px solid var(--zp-card-brd); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 72%); --c: var(--sh-a); }
.sh-medal--b { --c: var(--sh-b); }
.sh-medal b { display: block; font-size: 1.3rem; color: var(--zp-ink); }
.sh-medal span { display: block; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: var(--c); font-variant-numeric: tabular-nums; }
.sh-medal small { color: var(--zp-soft); font-size: .76rem; }
.sh-score { position: relative; width: clamp(130px, 22vw, 180px); aspect-ratio: 1; }
.sh-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sh-score circle { fill: none; stroke-width: 10; }
.sh-score .bg { stroke: color-mix(in srgb, var(--zp-ink) 10%, transparent); }
.sh-score .fg { stroke: url(#shg); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--zp-ease); }
.sh-score__n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sh-score__n b { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--zp-gold); line-height: 1.1; }
.sh-score__n small { font-size: .76rem; color: var(--zp-muted); font-weight: 700; }
@media (max-width: 640px) { .sh-stage .sh-bond { grid-template-columns: 1fr 1fr; } .sh-score { grid-column: 1 / -1; grid-row: 1; margin: 0 auto; } }
.sh-level { text-align: center; margin: -6px 0 16px; font-weight: 800; color: var(--zp-ink); }
.sh-level span { display: inline-block; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--zp-card-brd-hi); background: color-mix(in srgb, var(--zp-rose) 12%, transparent); }
.sh-bars { display: grid; gap: 10px; }
.sh-bar { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 8px; font-size: .8rem; }
.sh-bar__l, .sh-bar__r { height: 14px; border-radius: 8px; background: color-mix(in srgb, var(--zp-ink) 8%, transparent); overflow: hidden; display: flex; }
.sh-bar__l { justify-content: flex-start; } .sh-bar__r { justify-content: flex-end; }
.sh-bar__l i, .sh-bar__r i { display: block; height: 100%; border-radius: 8px; background: var(--el); }
.sh-bar__name { text-align: center; font-weight: 800; color: var(--zp-ink); }
.sh-bar__name small { display: block; font-size: .68rem; color: var(--zp-soft); font-weight: 600; }
.sh-legend { display: flex; justify-content: space-between; font-size: .76rem; color: var(--zp-soft); margin-bottom: 6px; }
.sh-legend b { color: var(--sh-a); } .sh-legend b + b { color: var(--sh-b); }
.sh-letters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sh-letters em { font-style: normal; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 1.3rem; font-weight: 900; color: var(--zp-on-accent); background: var(--zp-btn); }
html.zp--shadi[data-theme="light"] .sh-letters em { background: var(--zp-btn-light); color: #fff; }
.sh-composite { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.sh-composite > span { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; color: var(--zp-gold); border: 2px solid var(--zp-card-brd-hi); box-shadow: 0 0 24px color-mix(in srgb, var(--zp-rose) 35%, transparent); }
.sh-read p { margin: 0 0 .5rem; line-height: 2; }
.sh-talai { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sh-talai > div { padding: 14px; border-radius: 16px; border: 1px solid var(--zp-card-brd); text-align: center; }
.sh-talai i { display: block; font-style: normal; font-size: 2rem; color: var(--zp-gold); font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif; font-variant-emoji: text; }
.sh-talai b { display: block; font-size: 1.05rem; }
.sh-talai small { color: var(--zp-soft); }
html.zp--shadi .tool-seo__intro.card { --zp-corner: none; }

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