/* The wudu walkthrough (/wudu/interactive). Built on the site tokens (layout.css) and the in-house illustration
   colours (practice-kit.css, --pw-*): navy-green, emerald, gold and cream, with water as the accent. Phone first:
   the page scrolls naturally, the header and the controls stay within reach, and nothing jumps as steps change. */

.ww {
    --ww-fard: #b07d16;
    --ww-fard-bg: #fff4d9;
    --ww-fard-line: #ecd193;
    --ww-sunnah: #1e7a44;
    --ww-sunnah-bg: #e7f7ec;
    --ww-sunnah-line: #b7e2c6;
    --ww-rec: #1a6a8a;
    --ww-rec-bg: #e3f3f7;
    --ww-rec-line: #b3dce6;
    --ww-water: var(--pw-water, #2f9a94);
    --ww-deep: #0d3b29;
    --ww-top-h: 64px;
    --ww-bar-h: 76px;
    position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--ip-ink);
    background:
        radial-gradient(900px 480px at 100% -10%, var(--pw-water-pale, #e2f4f1), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, var(--ip-tile-gold-bg), transparent 60%),
        var(--ip-bg);
}
.ww::before { content: ""; position: fixed; inset: 0; background-image: var(--ip-pattern); background-size: 120px 120px; pointer-events: none; opacity: .9; z-index: 0; }
.ww > * { position: relative; z-index: 1; }
:root[data-theme="dark"] .ww, body.dark .ww {
    --ww-fard: #ecc879; --ww-fard-bg: rgba(230, 184, 92, .14); --ww-fard-line: rgba(230, 184, 92, .38);
    --ww-sunnah: #5fd49a; --ww-sunnah-bg: rgba(46, 184, 114, .14); --ww-sunnah-line: rgba(46, 184, 114, .38);
    --ww-rec: #7fd3e6; --ww-rec-bg: rgba(111, 208, 198, .13); --ww-rec-line: rgba(111, 208, 198, .35);
    --ww-deep: #0a2a1e;
}
.ww [hidden] { display: none !important; }
.ww button { font: inherit; }
.ww :focus-visible { outline: 3px solid var(--ip-focus, #1f7a63); outline-offset: 2px; }

/* ---- header ---- */
.ww-top {
    position: sticky; top: 0; z-index: 30; height: var(--ww-top-h); display: flex; align-items: center; gap: .75rem; padding: 0 clamp(.75rem, 3vw, 1.5rem);
    background: color-mix(in srgb, var(--ip-surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--ip-line);
}
.ww-back {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .85rem 0 .65rem; border-radius: 999px; text-decoration: none;
    color: var(--ip-ink-2); font-weight: 600; font-size: .88rem; border: 1px solid var(--ip-line); background: var(--ip-surface); transition: background .2s;
}
.ww-back:hover { background: var(--ip-surface-2); color: var(--ip-ink); }
.ww-back i { color: var(--ip-primary); }
.ww-brand { display: flex; align-items: center; gap: .6rem; margin-inline: auto; min-width: 0; }
.ww-brand-mark {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.1rem;
    background: linear-gradient(140deg, var(--ww-water), var(--ip-green-700, #16624f)); box-shadow: 0 8px 18px -10px rgba(31, 122, 99, .9);
}
.ww-brand-text { min-width: 0; line-height: 1.15; }
.ww-brand-title { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ww-brand-sub { font-size: .76rem; font-weight: 600; color: var(--ww-fard); }
.ww-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--ip-surface-2); border: 1px solid var(--ip-line); }
.ww-gender {
    display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: 0 .8rem; border: 0; border-radius: 999px; background: transparent;
    color: var(--ip-muted); font-weight: 700; font-size: .84rem; cursor: pointer; transition: background .25s var(--ip-ease), color .2s, box-shadow .25s;
}
.ww-gender[aria-pressed="true"] { background: var(--ip-primary); color: var(--ip-primary-ink); box-shadow: 0 6px 14px -8px rgba(31, 122, 99, .9); }
.ww-noscript { margin: 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--ip-tile-gold-bg); }

/* ---- buttons and chips ---- */
.ww-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .55rem 1.15rem; border-radius: 999px;
    border: 1px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.15; cursor: pointer; text-decoration: none;
    transition: transform .2s var(--ip-ease), background .2s, box-shadow .2s, color .2s;
}
.ww-btn:hover { transform: translateY(-1px); }
.ww-btn:active { transform: translateY(0) scale(.98); }
.ww-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.ww-btn-lg { min-height: 54px; padding: .7rem 1.5rem; font-size: 1.02rem; }
.ww-btn-sm { min-height: 38px; padding: .35rem .9rem; font-size: .86rem; }
.ww-btn-primary { background: linear-gradient(135deg, var(--ip-green-500, #1f7a63), var(--ip-green-700, #16624f)); color: #fff; box-shadow: 0 12px 26px -14px rgba(20, 102, 83, .95); }
.ww-btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -14px rgba(20, 102, 83, 1); }
.ww-btn-ghost { background: var(--ip-surface); color: var(--ip-ink); border-color: var(--ip-line-strong); }
.ww-btn-ghost:hover { background: var(--ip-surface-2); color: var(--ip-ink); }
.ww-btn-soft { background: var(--ip-tile-gold-bg); color: var(--ww-fard); border-color: var(--ww-fard-line); }
.ww-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; border: 1px solid; white-space: nowrap; }
.ww-chip-fard { color: var(--ww-fard); background: var(--ww-fard-bg); border-color: var(--ww-fard-line); }
.ww-chip-sunnah { color: var(--ww-sunnah); background: var(--ww-sunnah-bg); border-color: var(--ww-sunnah-line); }
.ww-chip-recommended { color: var(--ww-rec); background: var(--ww-rec-bg); border-color: var(--ww-rec-line); }

/* ---- start ---- */
.ww-start { width: min(1120px, 100%); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem) 2.5rem; }
.ww-hero {
    display: grid; gap: clamp(1rem, 3vw, 2.25rem); align-items: center; padding: clamp(1.1rem, 3vw, 2rem); border-radius: 28px;
    background: linear-gradient(150deg, var(--ip-surface), color-mix(in srgb, var(--ip-surface) 70%, var(--pw-water-pale, #e2f4f1)));
    border: 1px solid var(--ip-line); box-shadow: var(--ip-shadow-md);
}
@media (min-width: 860px) { .ww-hero { grid-template-columns: minmax(240px, 360px) 1fr; } }
.ww-hero-art { position: relative; width: min(300px, 70vw); aspect-ratio: 1; justify-self: center; border-radius: 50%; display: grid; place-items: center; }
.ww-hero-art .pw-art { width: 100%; border-radius: 50%; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(13, 59, 41, .7); }
.ww-ring { position: absolute; inset: -6%; border-radius: 50%; border: 2px solid var(--pw-water-soft, #9fd8d2); opacity: 0; animation: ww-ring 4.8s ease-out infinite; }
.ww-ring-2 { animation-delay: 2.4s; }
@keyframes ww-ring { 0% { transform: scale(.86); opacity: .75; } 100% { transform: scale(1.16); opacity: 0; } }
.ww-eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .7rem; padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ww-fard); background: var(--ww-fard-bg); border: 1px solid var(--ww-fard-line); }
.ww-hero-title { font-family: var(--ip-font-display); font-size: clamp(1.7rem, 1.25rem + 2vw, 2.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .7rem; }
.ww-lead { font-size: 1.04rem; line-height: 1.65; color: var(--ip-ink-2); margin: 0 0 1rem; max-width: 40rem; }
.ww-facts { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.ww-facts li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: var(--ip-surface); border: 1px solid var(--ip-line); font-size: .84rem; font-weight: 700; color: var(--ip-ink-2); }
.ww-facts i { color: var(--ww-water); }
.ww-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.ww-actions-center { justify-content: center; }
.ww-resume {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 16px;
    background: var(--ip-tile-emerald-bg); border: 1px solid var(--ww-sunnah-line); font-weight: 600; font-size: .92rem;
}
.ww-resume > i { color: var(--ww-sunnah); font-size: 1.1rem; }
.ww-resume > span:first-of-type { flex: 1 1 12rem; }
.ww-resume-actions { display: inline-flex; gap: .4rem; }
.ww-map { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(min(30%, 150px), 1fr)); }
.ww-map-item {
    position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; gap: .3rem; padding: .7rem .5rem .65rem;
    border-radius: 18px; border: 1px solid var(--ip-line); background: var(--ip-surface); color: var(--ip-ink); cursor: pointer; text-align: center;
    transition: transform .25s var(--ip-spring), box-shadow .25s, border-color .2s;
}
.ww-map-item:hover { transform: translateY(-3px); box-shadow: var(--ip-shadow-md); border-color: var(--ww-water); }
.ww-map-item.ww-ruling-fard { border-color: var(--ww-fard-line); background: linear-gradient(180deg, var(--ww-fard-bg), var(--ip-surface) 60%); }
.ww-map-art { width: 58px; height: 58px; }
.ww-map-num { position: absolute; top: .45rem; inset-inline-start: .55rem; font-size: .72rem; font-weight: 800; color: var(--ip-muted); }
.ww-map-title { font-size: .82rem; font-weight: 700; line-height: 1.25; align-self: start; }
.ww-map-item > .ww-chip { align-self: end; }
.ww-legend { display: grid; gap: .55rem; margin: 1rem 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ww-legend > div { display: flex; gap: .6rem; align-items: center; padding: .65rem .8rem; border-radius: 14px; background: var(--ip-surface); border: 1px solid var(--ip-line); }
.ww-legend dt { margin: 0; }
.ww-legend dd { margin: 0; font-size: .84rem; color: var(--ip-ink-2); line-height: 1.4; }

/* ---- walk layout ---- */
.ww-walk { flex: 1; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr auto; width: 100%; }
@media (min-width: 992px) {
    .ww-walk { grid-template-columns: 290px 1fr; }
    .ww-controls { grid-column: 1 / -1; }
}
.ww-rail { display: none; }
@media (min-width: 992px) {
    .ww-rail {
        display: block; position: sticky; top: var(--ww-top-h); align-self: start; max-height: calc(100dvh - var(--ww-top-h) - var(--ww-bar-h)); overflow-y: auto;
        padding: 1rem .75rem; border-inline-end: 1px solid var(--ip-line); background: color-mix(in srgb, var(--ip-surface) 70%, transparent);
    }
}
.ww-rail-list { list-style: none; padding: 0; margin: 0; position: relative; }
.ww-rail-list::before { content: ""; position: absolute; top: 22px; bottom: 22px; inset-inline-start: 25px; width: 2px; background: var(--ip-line-strong); }
.ww-rail-item {
    position: relative; width: 100%; display: flex; align-items: center; gap: .7rem; padding: .45rem .5rem; border: 0; border-radius: 14px;
    background: transparent; color: var(--ip-ink); text-align: start; cursor: pointer; transition: background .2s;
}
.ww-rail-item:hover { background: var(--ip-surface-2); }
.ww-rail-item.is-current { background: var(--ip-surface); box-shadow: var(--ip-shadow-sm); }
.ww-rail-num {
    position: relative; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem;
    background: var(--ip-surface); border: 2px solid var(--ip-line-strong); color: var(--ip-muted); transition: all .3s var(--ip-ease);
}
.ww-rail-num i { display: none; }
.ww-rail-item.ww-ruling-fard .ww-rail-num { border-color: var(--ww-fard-line); }
.ww-rail-item.is-done .ww-rail-num { background: var(--ww-sunnah-bg); border-color: var(--ww-sunnah); color: var(--ww-sunnah); }
.ww-rail-item.is-done .ww-rail-num span { display: none; }
.ww-rail-item.is-done .ww-rail-num i { display: block; }
.ww-rail-item.is-current .ww-rail-num { background: var(--ip-primary); border-color: var(--ip-primary); color: #fff; box-shadow: 0 0 0 5px var(--ip-primary-soft); }
.ww-rail-text { display: grid; min-width: 0; }
.ww-rail-title { font-weight: 700; font-size: .88rem; line-height: 1.25; }
.ww-rail-ruling { font-size: .72rem; font-weight: 700; color: var(--ip-muted); }
.ww-rail-item.ww-ruling-fard .ww-rail-ruling { color: var(--ww-fard); }

.ww-main { min-width: 0; padding: clamp(.85rem, 2.5vw, 1.75rem) clamp(1rem, 3vw, 2rem) 1.5rem; outline: none; }
.ww-progress { display: flex; align-items: center; gap: .75rem; max-width: 1080px; margin: 0 auto .6rem; }
.ww-progress-count { font-weight: 800; font-size: .86rem; white-space: nowrap; }
.ww-progress-pct { font-size: .8rem; font-weight: 700; color: var(--ip-muted); white-space: nowrap; min-width: 4.5em; text-align: end; }
.ww-meter { position: relative; flex: 1; height: 10px; border-radius: 999px; background: var(--ip-surface-3); overflow: hidden; }
.ww-meter span {
    position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; transition: width .6s var(--ip-ease);
    background: linear-gradient(90deg, var(--ww-water), var(--ip-green-400, #2eb872), var(--ip-saffron-500, #e6b85c)); background-size: 200% 100%; animation: ww-flow 6s linear infinite;
}
@keyframes ww-flow { to { background-position: -200% 0; } }

/* the droplet timeline (phones and tablets) */
.ww-dots { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; max-width: 1080px; margin: 0 auto 1rem; padding: .25rem .1rem .35rem; scroll-snap-type: x proximity; }
.ww-dots::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .ww-dots { display: none; } }
.ww-dot {
    flex: 0 0 38px; height: 38px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; border: 2px solid var(--ip-line-strong); background: var(--ip-surface);
    color: var(--ip-muted); font-weight: 800; font-size: .8rem; cursor: pointer; scroll-snap-align: center; transition: all .3s var(--ip-ease);
}
.ww-dot.ww-ruling-fard { border-color: var(--ww-fard-line); }
.ww-dot.is-done { background: var(--ww-sunnah-bg); border-color: var(--ww-sunnah); color: var(--ww-sunnah); }
.ww-dot.is-current { background: var(--ip-primary); border-color: var(--ip-primary); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 4px var(--ip-primary-soft); }

/* ---- one step ---- */
.ww-step { display: grid; gap: clamp(1rem, 2.5vw, 2rem); max-width: 1080px; margin: 0 auto; align-items: start; }
@media (min-width: 992px) { .ww-step { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.ww-step.is-entering { animation: ww-enter .45s var(--ip-ease); }
@keyframes ww-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ww-figure { position: relative; }
@media (min-width: 992px) { .ww-figure { position: sticky; top: calc(var(--ww-top-h) + 1rem); } }
.ww-frame {
    position: relative; aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden; isolation: isolate;
    background: radial-gradient(120% 90% at 50% 0%, var(--pw-water-pale, #e2f4f1), var(--pw-bg, #edf7f2) 70%);
    border: 1px solid var(--ip-line); box-shadow: 0 24px 50px -30px rgba(13, 59, 41, .55);
}
.ww-ruling-fard .ww-frame { border-color: var(--ww-fard-line); box-shadow: 0 24px 50px -30px rgba(13, 59, 41, .55), inset 0 0 0 2px var(--ww-fard-bg); }
.ww-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
picture:has(> .ww-pic) { position: absolute; inset: 0; }
.ww-pic-art { display: grid; place-items: center; padding: 6% 18%; }
.ww-pic-art .pw-art { width: auto; height: 100%; max-width: 100%; }
.ww[data-figure="male"] .ww-pic-female, .ww[data-figure="male"] picture:has(> .ww-pic-female),
.ww[data-figure="female"] .ww-pic-male, .ww[data-figure="female"] picture:has(> .ww-pic-male) { display: none; }
/* The arms and feet: the right and left pictures share the frame and cross-fade (no jump), following the count. */
.ww-pic-right, .ww-pic-left { transition: opacity .45s var(--ip-ease), transform .6s var(--ip-ease); }
.ww-step[data-side-view="0"] .ww-pic-left, .ww-step[data-side-view="1"] .ww-pic-right { opacity: 0; transform: scale(1.025); pointer-events: none; }
.ww-sides {
    position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 2; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
    background: rgba(255, 255, 255, .82); border: 1px solid rgba(13, 59, 41, .12); box-shadow: 0 8px 20px -12px rgba(13, 59, 41, .6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ww-side {
    display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .2rem .8rem; border: 0; border-radius: 999px; background: transparent;
    color: var(--ww-deep); font-weight: 800; font-size: .8rem; cursor: pointer; transition: background .2s, color .2s;
}
.ww-side-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; opacity: .55; }
.ww-side[aria-pressed="true"] { background: var(--ww-deep); color: #fff; }
.ww-side[aria-pressed="true"] .ww-side-dot { background: var(--pw-water-pale, #e2f4f1); border-color: var(--pw-water-pale, #e2f4f1); opacity: 1; }
.ww-side:hover:not([aria-pressed="true"]) { background: rgba(13, 59, 41, .08); }
.ww-frame-chip { position: absolute; top: .8rem; inset-inline-start: .8rem; z-index: 2; font-size: .78rem; padding: .3rem .7rem; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5); }
.ww-frame-num {
    position: absolute; bottom: .3rem; inset-inline-start: .9rem; z-index: 1; font-family: var(--ip-font-display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 1; color: var(--ip-green-700, #16624f); opacity: .13; letter-spacing: -.04em; pointer-events: none;
}
.ww-watch {
    position: absolute; bottom: .8rem; inset-inline-end: .8rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem 1rem .4rem .45rem;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(10, 42, 30, .72); color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .2s var(--ip-ease), background .2s;
}
.ww-watch i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--ip-saffron-300, #f1d59a), var(--ip-saffron-600, #a77a1f)); color: #2b1d02; font-size: 1.05rem; }
.ww-watch:hover { transform: translateY(-2px); background: rgba(10, 42, 30, .86); }
[dir="rtl"] .ww-watch { padding: .4rem .45rem .4rem 1rem; }
.ww-figure-note { margin: .5rem .25rem 0; font-size: .78rem; color: var(--ip-muted); text-align: center; }

.ww-copy { min-width: 0; }
.ww-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; margin: 0 0 .35rem; font-size: .8rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ww-water); }
.ww-term { display: inline-flex; align-items: baseline; gap: .45rem; text-transform: none; letter-spacing: 0; color: var(--ip-muted); font-weight: 600; }
.ww-term [lang="ar"] { font-family: var(--ip-font-arabic); font-size: 1.12rem; color: var(--ww-fard); font-weight: 600; }
.ww-title { font-family: var(--ip-font-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .3rem; }
.ww-sub { margin: 0 0 .8rem; font-size: 1rem; font-weight: 600; color: var(--ip-ink-2); }
.ww-ruling-note { display: flex; gap: .45rem; align-items: flex-start; margin: 0 0 .85rem; padding: .55rem .8rem; border-radius: 12px; background: var(--ww-fard-bg); color: var(--ww-fard); font-weight: 700; font-size: .88rem; border: 1px solid var(--ww-fard-line); }
.ww-text { font-size: 1.05rem; line-height: 1.7; color: var(--ip-ink-2); margin: 0 0 1rem; }

/* count drops */
.ww-count { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 18px; background: var(--ip-surface); border: 1px solid var(--ip-line); box-shadow: var(--ip-shadow-sm); }
.ww-count-hint { margin: 0 0 .55rem; font-size: .84rem; font-weight: 700; color: var(--ip-muted); display: flex; align-items: center; gap: .4rem; }
.ww-count-hint i { color: var(--ww-water); }
.ww-count-row { display: flex; align-items: center; gap: .55rem; }
.ww-count-row + .ww-count-row { margin-top: .45rem; }
.ww-count-side { min-width: 4.5rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ip-muted); }
.ww-drop {
    --ww-drop-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 1.5C15.6 7.2 21 12.2 21 18.4a9 9 0 0 1-18 0C3 12.2 8.4 7.2 12 1.5Z'/%3E%3C/svg%3E");
    position: relative; width: 52px; height: 58px; flex: 0 0 52px; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ww-drop svg { position: absolute; inset: 4px 6px 2px; width: calc(100% - 12px); height: calc(100% - 6px); fill: var(--pw-water-pale, #e2f4f1); stroke: var(--ww-water); stroke-width: 1.4; z-index: 1; transition: transform .2s var(--ip-spring); }
.ww-drop-fill {
    position: absolute; inset: 4px 6px 2px; z-index: 2; -webkit-mask: var(--ww-drop-mask) center / contain no-repeat; mask: var(--ww-drop-mask) center / contain no-repeat;
    background: linear-gradient(180deg, #8fe0d6 0%, var(--ww-water) 45%, var(--ip-green-700, #16624f) 100%); clip-path: inset(100% 0 0 0); transition: clip-path .7s cubic-bezier(.3, .8, .3, 1);
}
.ww-drop-num { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding-top: 14px; font-weight: 800; font-size: .95rem; color: var(--ww-water); transition: color .3s; }
.ww-drop[aria-pressed="true"] .ww-drop-fill { clip-path: inset(0 0 0 0); }
.ww-drop[aria-pressed="true"] .ww-drop-num { color: #fff; }
.ww-drop:hover svg { transform: translateY(-2px); }
.ww-drop::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 14px; margin-left: -22px; border-radius: 50%; border: 2px solid var(--ww-water); opacity: 0; pointer-events: none; }
.ww-drop.is-rippling::after { animation: ww-ripple .8s ease-out; }
.ww-drop.is-rippling svg { animation: ww-squish .45s var(--ip-spring); }
@keyframes ww-ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ww-squish { 0% { transform: scale(1); } 40% { transform: scale(1.12, .9); } 100% { transform: scale(1); } }
.ww-count-note { margin: .6rem 0 0; font-size: .8rem; color: var(--ww-fard); font-weight: 700; }
.ww-count-done { margin: .55rem 0 0; display: flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--ww-sunnah); animation: ww-enter .4s var(--ip-ease); }

/* the stored dua */
.ww-dua {
    margin: 0 0 1rem; padding: 1rem 1.1rem; border-radius: 20px; color: #f4efe1; position: relative; overflow: hidden;
    background: radial-gradient(120% 120% at 100% 0%, rgba(230, 184, 92, .22), transparent 55%), linear-gradient(150deg, #0d3b29, #0a2a1e);
    border: 1px solid rgba(230, 184, 92, .45); box-shadow: 0 20px 40px -26px rgba(13, 59, 41, .9);
}
.ww-dua::after { content: ""; position: absolute; inset: 0; background-image: var(--ip-pattern-light); background-size: 120px; opacity: .6; pointer-events: none; }
.ww-dua > * { position: relative; z-index: 1; }
.ww-dua-label { margin: 0 0 .5rem; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ecc879; display: flex; gap: .4rem; align-items: center; }
.ww-dua-body { margin: 0; }
.ww-dua-ar { font-family: var(--ip-font-quran); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 2; margin: 0 0 .45rem; color: #fff; text-align: center; }
.ww-dua-tr { margin: 0 0 .35rem; font-style: italic; color: #d8e9e1; font-size: .95rem; line-height: 1.55; }
.ww-dua-en { margin: 0; color: #f4efe1; font-size: .98rem; line-height: 1.6; }
.ww-dua-lang { margin: .25rem 0 0; font-size: .74rem; color: #b9cfc6; }
.ww-dua-source { margin-top: .7rem; padding-top: .55rem; border-top: 1px dashed rgba(230, 184, 92, .35); font-size: .8rem; color: #ecc879; font-weight: 600; }
.ww-dua-source cite { font-style: normal; color: #f4efe1; }

.ww-mistake { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 16px; background: var(--ip-tile-rose-bg); border: 1px solid color-mix(in srgb, var(--ip-tile-rose-fg) 25%, transparent); }
.ww-mistake > i { color: var(--ip-tile-rose-fg); font-size: 1.1rem; margin-top: .1rem; }
.ww-mistake strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ip-tile-rose-fg); }
.ww-mistake p { margin: .15rem 0 0; font-size: .94rem; line-height: 1.55; color: var(--ip-ink-2); }
.ww-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.ww-tool { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--ip-line-strong); background: var(--ip-surface); color: var(--ip-ink-2); font-weight: 700; font-size: .88rem; cursor: pointer; }
.ww-tool[aria-pressed="true"] { background: var(--ip-primary); border-color: var(--ip-primary); color: #fff; }
.ww-swipe-hint { display: none; margin: 1.25rem 0 0; text-align: center; font-size: .78rem; color: var(--ip-muted); }
@media (hover: none) and (max-width: 991.98px) { .ww-swipe-hint { display: block; } }

/* ---- bottom controls, within thumb reach ---- */
.ww-controls {
    position: sticky; bottom: 0; z-index: 25; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .5rem;
    padding: .65rem clamp(.75rem, 3vw, 1.5rem) max(.65rem, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--ip-surface) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--ip-line); box-shadow: 0 -12px 30px -24px rgba(0, 0, 0, .5);
}
.ww-controls .ww-btn { min-height: 52px; }
.ww-next { justify-self: end; min-width: min(220px, 100%); }
.ww-next.is-finish { background: linear-gradient(135deg, var(--ip-saffron-500, #e6b85c), var(--ip-saffron-600, #a77a1f)); color: #2b1d02; }
.ww-next.is-nudged { animation: ww-nudge 1.2s var(--ip-ease) 2; }
@keyframes ww-nudge { 0%, 100% { box-shadow: 0 12px 26px -14px rgba(20, 102, 83, .95); } 50% { box-shadow: 0 0 0 8px rgba(46, 184, 114, .22), 0 12px 26px -14px rgba(20, 102, 83, .95); } }
.ww-auto[aria-pressed="true"] { background: var(--ip-primary-soft); color: var(--ip-primary); border-color: var(--ip-primary); }
@media (max-width: 575.98px) {
    .ww-controls { grid-template-columns: 52px 52px 1fr; }
    .ww-controls .ww-nav:first-child span, .ww-auto span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .ww-controls .ww-nav:first-child, .ww-auto { padding: 0; width: 52px; }
    .ww-next { min-width: 0; width: 100%; }
}

/* ---- complete ---- */
.ww-done { width: min(720px, 100%); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) 1.25rem 3rem; text-align: center; outline: none; }
.ww-done-pool { position: relative; width: min(220px, 56vw); aspect-ratio: 1; margin: 0 auto 1.25rem; display: grid; place-items: center; }
.ww-done-pool .pw-art { width: 100%; border-radius: 50%; box-shadow: 0 30px 60px -30px rgba(13, 59, 41, .7); }
.ww-ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ww-water); opacity: 0; animation: ww-ring 3.6s ease-out infinite; }
.ww-ripple-2 { animation-delay: 1.2s; }
.ww-ripple-3 { animation-delay: 2.4s; }
.ww-eyebrow-gold { font-family: var(--ip-font-display); text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.ww-recap { list-style: none; padding: 0; margin: 1.25rem auto 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-width: 560px; }
.ww-recap-item {
    position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--ip-surface); border: 2px solid var(--ww-sunnah-line);
    display: grid; place-items: center; opacity: 0; animation: ww-pop .5s var(--ip-spring) forwards; animation-delay: calc(var(--i) * 90ms + 200ms);
}
.ww-recap-item.ww-ruling-fard { border-color: var(--ww-fard-line); background: var(--ww-fard-bg); }
.ww-recap-art { width: 40px; height: 40px; }
.ww-recap-tick {
    position: absolute; bottom: -3px; inset-inline-end: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ww-sunnah); color: #fff; font-size: .7rem; border: 2px solid var(--ip-surface);
}
.ww-recap-item.ww-ruling-fard .ww-recap-tick { background: var(--ww-fard); }
@keyframes ww-pop { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 100% { opacity: 1; transform: none; } }
.ww-done-title {
    font-family: var(--ip-font-display); font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 .6rem;
    background: linear-gradient(120deg, var(--ip-green-700, #16624f), var(--ww-water) 55%, var(--ip-saffron-600, #a77a1f)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .ww-done-title, body.dark .ww-done-title { background-image: linear-gradient(120deg, #5fd49a, #6fd0c6 55%, #ecc879); }
.ww-done .ww-lead { margin-inline: auto; }
/* The dua after wudu, said once the last step (the left foot) is done. */
.ww-done-dua { width: min(560px, 100%); margin: 1.4rem auto .4rem; text-align: start; }
.ww-done-dua-title { display: flex; justify-content: center; align-items: center; gap: .4rem; margin: 0 0 .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ww-fard); }
.ww-done-dua .ww-dua { margin: 0; }
.ww-done-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.25rem 0 0; }
.ww-done-links a { color: var(--ip-link); font-weight: 700; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.ww-done-links a:hover { text-decoration: underline; }

/* ---- phones ---- */
@media (max-width: 575.98px) {
    .ww { --ww-top-h: 58px; }
    .ww-top { gap: .45rem; }
    .ww-back { padding: 0 .6rem; }
    .ww-back span { display: none; }
    .ww-brand { margin-inline: 0 auto; }
    .ww-brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
    .ww-brand-title { font-size: .92rem; }
    .ww-gender { padding: 0 .6rem; }
    .ww-gender i { display: none; }
    .ww-frame { border-radius: 20px; }
    .ww-text { font-size: 1rem; }
    .ww-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ww-map-item { padding: .6rem .3rem .55rem; border-radius: 14px; }
    .ww-map-art { width: 46px; height: 46px; }
    .ww-map-title { font-size: .74rem; }
    .ww-map-item .ww-chip { font-size: .64rem; padding: .1rem .4rem; }
    .ww-actions .ww-btn { flex: 1 1 100%; }
}

/* ---- below the desktop layout: the step's name first, then its picture, then the rest ---- */
@media (max-width: 991.98px) {
    .ww-step { gap: 0; }
    .ww-copy { display: contents; }
    .ww-kicker, .ww-title, .ww-sub { order: 0; }
    .ww-figure { order: 1; margin-bottom: 1rem; }
    .ww-ruling-note, .ww-text, .ww-dua, .ww-count, .ww-mistake, .ww-tools { order: 2; }
    .ww-sub { margin-bottom: .75rem; }
}

@media (max-width: 575.98px) {
    .ww-hero { padding: 1rem; border-radius: 22px; }
    .ww-hero-art { width: min(168px, 46vw); }
    .ww-hero-title { font-size: 1.65rem; }
    .ww-lead { font-size: .98rem; }
    .ww-facts li { font-size: .78rem; padding: .3rem .6rem; }
    .ww-term { flex-wrap: wrap; gap: .1rem .45rem; }
    .ww-term [lang="ar"] { font-size: 1rem; }
    .ww-figure-note { display: none; }
    .ww-title { font-size: 1.6rem; }
    .ww-recap-item { width: 44px; height: 44px; }
    .ww-recap-art { width: 34px; height: 34px; }
}

/* ---- Arabic and Urdu: no letter-spacing or capitals, a little more size and room for the script ---- */
html[lang="ar"] .ww :is(.ww-kicker, .ww-eyebrow, .ww-count-side, .ww-mistake strong, .ww-dua-label, .ww-chip, .ww-done-dua-title),
html[lang="ur"] .ww :is(.ww-kicker, .ww-eyebrow, .ww-count-side, .ww-mistake strong, .ww-dua-label, .ww-chip, .ww-done-dua-title) { text-transform: none; letter-spacing: 0; }
html[lang="ar"] .ww :is(.ww-title, .ww-hero-title, .ww-done-title, .ww-brand-title),
html[lang="ur"] .ww :is(.ww-title, .ww-hero-title, .ww-done-title, .ww-brand-title) { letter-spacing: 0; line-height: 1.45; }
html[lang="ar"] .ww :is(.ww-text, .ww-lead), html[lang="ur"] .ww :is(.ww-text, .ww-lead) { font-size: 1.14rem; }
html[lang="ar"] .ww :is(.ww-sub, .ww-mistake p, .ww-rail-title, .ww-map-title, .ww-legend dd) { font-size: 1.05em; }
html[lang="ur"] .ww :is(.ww-btn, .ww-chip, .ww-gender, .ww-back) { line-height: 1.9; }
html[lang="ur"] .ww :is(.ww-rail-title, .ww-map-title, .ww-sub, .ww-ruling-note) { line-height: 1.9; }

@media (prefers-reduced-motion: reduce) {
    .ww *, .ww *::before, .ww *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .ww-drop-fill { transition: none; }
    .ww-recap-item { opacity: 1; }
}
