/* BaraaKids — «نور البيان»: the alphabet page, the letter pages and their games.
   The look follows the book: cream paper, light-blue cards with lavender borders, coloured letters, a red title. Everything here is our own drawing. */

.nz-body, .nz-gstage {
  --nz-line: #b9a7ee; --nz-card: #eaf6ff; --nz-red: #d3202f; --nz-purple: #6a2c91; --nz-teal: #0d9a8f; --nz-pink: #d6335a; --nz-hl: #e0364f;
}
.nz-body { background: linear-gradient(#fff6d2 0, #fffdf0 420px, #f4f7ff 100%) fixed; }
#noorRoot { width: min(100% - 2rem, 74rem); margin: 0 auto; padding: 1.1rem 0 4.5rem; }
#noorRoot button { font-family: var(--font-head); }
.nz-nav { display: flex; gap: .6rem; flex-wrap: wrap; }
.nz-body .hl, .nz-gstage .hl { color: var(--nz-hl); }

/* ---------- the cover-inspired banner ---------- */
.nz-hero { position: relative; border-radius: 30px; overflow: hidden; height: clamp(250px, 40vw, 380px); border: 3px solid #fff; box-shadow: 0 12px 30px rgba(51, 85, 255, .18); margin: 1rem 0 1.4rem; background: #cfeaff; }
.nz-hero-img { height: auto; display: flex; justify-content: center; background: linear-gradient(180deg, #8fd0ff, #e9f7ff 60%, #bfe9b0); }
.nz-hero-img img { display: block; width: min(100%, 27rem); height: auto; }
.nz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nz-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.nz-hero-rays { transform-origin: 500px 340px; animation: nzspin 120s linear infinite; }
@keyframes nzspin { to { transform: rotate(360deg); } }
.nz-hero-book { transform-origin: 500px 340px; animation: nzfloat 5s ease-in-out infinite; }
@keyframes nzfloat { 50% { transform: translateY(-7px); } }
.nz-hero-txt { position: absolute; top: .7rem; inset-inline: 0; text-align: center; padding: 0 1rem; }
.nz-hero-txt h1 {
  font-family: var(--font-head); font-size: clamp(3.22rem, 11vw, 5.4rem); line-height: 1.15; color: var(--nz-red);
  text-shadow: 3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff, 2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff, 0 6px 0 rgba(120, 0, 20, .22), 0 0 28px rgba(255, 255, 255, .9);
}
.nz-hero-txt p { display: inline-block; margin-top: .1rem; padding: .05rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #3b2a74; font-weight: 700; font-size: clamp(1.16rem, 3.08vw, 1.59rem); box-shadow: 0 3px 0 rgba(59, 42, 116, .12); }

/* ---------- the alphabet board ---------- */
.nz-board { background: #fffdf0; border: 3px solid #f1e3a3; border-radius: 30px; padding: 1.2rem 1rem 1.3rem; box-shadow: 0 6px 0 rgba(180, 150, 40, .16); }
.nz-h2 { font-family: var(--font-head); font-size: clamp(2.18rem, 5.94vw, 3.1rem); color: var(--nz-red); text-align: center; line-height: 1.3; }
.nz-lead { text-align: center; color: var(--ink-soft); margin: .1rem auto 1.1rem; max-width: 34rem; }
.nz-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.4rem, 1.8vw, .9rem); max-width: 44rem; margin: 0 auto; }
.nz-card {
  position: relative; display: flex; flex-direction: column; padding: 0; overflow: visible; cursor: pointer; border: 3px solid var(--nz-line); border-radius: 18px;
  background: var(--nz-card); box-shadow: 0 4px 0 rgba(106, 44, 145, .18); transition: transform .12s ease; min-width: 0;
}
.nz-card:active { transform: translateY(3px); box-shadow: none; }
.nz-lt { flex: 1; display: grid; place-items: center; font-family: var(--font-head); font-size: clamp(2.64rem, 9.24vw, 4.32rem); line-height: 1.35; color: var(--c); padding-top: .15rem; }
.nz-nm { display: block; background: #cfe8f7; color: var(--nz-pink); font-family: var(--font-head); font-size: clamp(1.06rem, 3.08vw, 1.43rem); line-height: 1.7; text-align: center; border-radius: 0 0 14px 14px; padding: .02rem .1rem; white-space: nowrap; overflow: hidden; }
.nz-card.open { border-color: #ffb300; background: #fffbe2; box-shadow: 0 0 0 4px rgba(255, 200, 61, .35), 0 4px 0 rgba(242, 176, 28, .5); animation: nzpulse 2.2s ease-in-out infinite; }
.nz-card.open .nz-nm { background: #ffe9a6; }
@keyframes nzpulse { 50% { box-shadow: 0 0 0 9px rgba(255, 200, 61, .2), 0 4px 0 rgba(242, 176, 28, .5); } }
.nz-flag { position: absolute; top: -.85rem; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 120%; padding: 0 .6rem; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: clamp(.93rem, 2.46vw, 1.16rem); line-height: 1.6; box-shadow: 0 2px 0 var(--sun-shadow); }
.nz-card.lock { opacity: .8; filter: saturate(.85); }
.nz-lockm { position: absolute; top: .15rem; inset-inline-end: .25rem; font-size: clamp(.95rem, 2.46vw, 1.3rem); line-height: 1; opacity: .75; }
.nz-card.pop, .nz-w.pop, .nz-pos.pop, .nz-pf.pop, .nz-gw.pop, .nz-vsyl.pop, .nz-vw.pop, .nz-pt.pop, .nz-sbx.pop, .nz-whole.pop, .nz-chip.pop, .nz-big.pop { animation: nzpop .38s ease-out; }
@keyframes nzpop { 0% { transform: scale(1); } 35% { transform: scale(1.12) rotate(-2deg); } 100% { transform: scale(1); } }

.nz-teacher { margin-top: 1rem; background: #f4f1ff; border: 2px solid #d9d0fb; border-radius: 14px; padding: .35rem .9rem; text-align: start; }
.nz-teacher summary { cursor: pointer; font-weight: 700; color: #4a3a8c; padding: .2rem 0; }
.nz-teacher p { margin: .3rem 0 .5rem; color: var(--ink); font-size: 1.34rem; line-height: 1.85; }
.nz-teacher b { font-family: var(--font-head); font-weight: 400; font-size: 1.3em; color: var(--nz-purple); }

.nz-soon { margin-top: 1.2rem; text-align: center; }
.nz-soon h3 { font-size: 1.57rem; color: var(--ink-soft); margin-bottom: .5rem; }
.nz-soon ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.nz-soon li { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .9rem .25rem .6rem; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--ink-soft); font-weight: 600; }
.nz-soon li .n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #e5e9f8; font-size: 1.23rem; }
.nz-soon li .lk { font-size: 1.16rem; }

.nz-toast { position: fixed; z-index: 450; bottom: 1.6rem; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 2rem); padding: .6rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 8px 22px rgba(22, 33, 62, .35); animation: nzrise .3s ease-out; }
.nz-toast.out { opacity: 0; transition: opacity .45s; }
@keyframes nzrise { from { transform: translateY(14px); opacity: 0; } }

/* ---------- the gate ---------- */
.nz-gate { position: fixed; inset: 0; z-index: 500; overflow: hidden; }
.nz-door {
  position: absolute; top: 0; bottom: 0; width: 50.5%; transition: transform .62s cubic-bezier(.65, 0, .35, 1);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 6l5 15 15-5-5 15 15 5-15 5 5 15-15-5-5 15-5-15-15 5 5-15-15-5 15-5-5-15 15 5z' fill='none' stroke='%23ffc83d' stroke-opacity='.3' stroke-width='1.6'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #1f2f78, #0d1233);
}
.nz-door.l { left: 0; transform: translateX(-101%); border-right: 7px solid #ffc83d; box-shadow: 8px 0 30px rgba(0, 0, 0, .35); }
.nz-door.r { right: 0; transform: translateX(101%); border-left: 7px solid #ffc83d; box-shadow: -8px 0 30px rgba(0, 0, 0, .35); }
.nz-gate.shut .nz-door { transform: none; }
.nz-gate.instant:not(.open) .nz-door { transition: none; }
.nz-gate.open .nz-door { transition-duration: 1s; }
.nz-gate.open .nz-door.l { transform: translateX(-101%); }
.nz-gate.open .nz-door.r { transform: translateX(101%); }
.nz-gmark { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .35s .45s; pointer-events: none; font-family: var(--font-head); font-size: min(58vh, 22rem); line-height: 1.2; color: #ffc83d; -webkit-text-stroke: .03em #ffc83d; text-shadow: 0 0 .12em rgba(255, 200, 61, .85), 0 0 .3em rgba(255, 200, 61, .45); }
.nz-gate.shut .nz-gmark { opacity: 1; }
.nz-gate.open .nz-gmark { opacity: 0; transition: opacity .25s; }

/* ---------- the letter page ---------- */
.nz-ahead { display: flex; align-items: center; justify-content: center; gap: .9rem 1.2rem; flex-wrap: wrap; margin: .6rem 0 .3rem; text-align: center; }
.nz-ahead h1 { display: flex; align-items: center; gap: .7rem; font-size: clamp(2.18rem, 6.6vw, 3.33rem); color: var(--nz-red); line-height: 1.2; }
.nz-hl { display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 16px; background: var(--nz-purple); color: #fff; font-size: 1em; box-shadow: 0 5px 0 #47196b; }
/* the tabs show how far the child has come: a dot that turns into a check */
.nz-jcount { font-weight: 800; color: var(--ink-soft); font-size: 1.37rem; padding: .05rem .9rem; border-radius: 999px; background: #fff; border: 2px solid var(--line); }
.nz-jcount.full { background: var(--sun); border-color: var(--sun-deep); color: var(--ink); }
.nz-j i { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; margin-inline-end: .4rem; vertical-align: -.2em; border-radius: 50%; background: #e5e9f8; border: 2px solid #cfd6ee; font-style: normal; color: transparent; font-size: .92rem; line-height: 1; }
.nz-j.done i { background: var(--good); border-color: #0f8a5a; color: #fff; }
.nz-j.done i::after { content: '✓'; }

.nz-tabs { position: sticky; top: 76px; z-index: 40; display: flex; gap: .4rem; overflow-x: auto; padding: .45rem .3rem; margin: .4rem -.2rem 0; background: rgba(255, 253, 240, .94); backdrop-filter: blur(6px); border-radius: 18px; scrollbar-width: none; }
.nz-tabs::-webkit-scrollbar { display: none; }
.nz-tabs a { flex: 1 0 auto; text-align: center; padding: .3rem .9rem; border-radius: 999px; background: #fff; border: 2px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.nz-tabs a.on { background: var(--sun); border-color: var(--sun-deep); color: var(--ink); }
@media (max-width: 900px) { .nz-tabs { top: 64px; } }

.nz-sec { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: 1.2rem 1.1rem 1.3rem; margin-top: 1.1rem; box-shadow: 0 6px 0 rgba(22, 33, 62, .07); scroll-margin-top: 9rem; }
.nz-sh { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.52rem, 4.4vw, 1.9rem); color: var(--ink); margin-bottom: 1rem; line-height: 1.35; }
.nz-num { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--nz-purple); color: #fff; font-size: 1.5rem; box-shadow: 0 3px 0 #47196b; }

/* the big letter */
.nz-stage { overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 42%, #fffbe2 0, #fff 62%); }
.nz-rays2 { position: absolute; left: 50%; top: 40%; width: 190%; aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(rgba(255, 200, 61, .22) 0 7deg, transparent 7deg 22deg); animation: nzspin 90s linear infinite; pointer-events: none; -webkit-mask-image: radial-gradient(circle, #000 0, transparent 52%); mask-image: radial-gradient(circle, #000 0, transparent 52%); }
.nz-big { position: relative; display: block; margin: .2rem auto 0; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 12px 14px rgba(71, 25, 107, .25)); -webkit-tap-highlight-color: transparent; }
/* the big alif: Hamdeen Bold, same as the words. Two layers: the plain alif, and the hamza (taken from "أ") that drops in or lifts off. */
.nz-glyph { position: relative; display: block; width: .5em; height: 1.1em; margin: .1em auto 0; font-family: var(--font-head); font-size: clamp(220px, 58vw, 320px); line-height: 1.2; }
.nz-glyph > span { position: absolute; inset: 0; text-align: center; paint-order: stroke fill; }
.nz-g-base { color: var(--nz-purple); -webkit-text-stroke: .026em var(--nz-purple); }
.nz-g-hz { color: var(--nz-pink); -webkit-text-stroke: .012em var(--nz-pink); opacity: 0; transition: opacity .35s; }
.nz-stage.hamza .nz-g-hz { opacity: 1; transform: none; }
/* the BAA: the purple letter is cut above its dot, so the pink letter underneath shows only the dot */
.nz-glyph.baa { width: .9em; }
.nz-glyph.baa .nz-g-base { clip-path: inset(0 0 var(--cut, 24.5%) 0); }
/* the TAA: two dots above, so the purple letter is cut at the top and the pink letter underneath shows only the dots */
.nz-glyph.taa { width: .9em; }
.nz-glyph.taa .nz-g-base { clip-path: inset(var(--cut, 29.3%) 0 0 0); }
/* THAA: the three dots touch the top of the tail row-wise, so the purple layer hides a rectangle (dots) but keeps the tail tip: visible = right strip + everything under the dots */
.nz-glyph.thaa { width: .9em; }
.nz-glyph.thaa .nz-g-base { clip-path: polygon(0 100%, 0 var(--cuty, 34.7%), var(--cutx, 68.1%) var(--cuty, 34.7%), var(--cutx, 68.1%) 0, 100% 0, 100% 100%); }
/* JIM, HAA, KHAA: the same purple body («ح») with the dot of the letter in pink; the HAA has no dot, so its body glows instead */
.nz-glyph.jim, .nz-glyph.haa, .nz-glyph.khaa { width: .9em; }
.nz-glyph.dal, .nz-glyph.dhal, .nz-glyph.raa, .nz-glyph.zay { width: .7em; }
/* khaa: only the dot of the pink layer is shown (the pink body would peek out under the purple base) */
.nz-glyph.khaa .nz-g-hz { clip-path: inset(0 0 calc(100% - .30em) 0); }
.nz-stage.ping .nz-glyph.haa .nz-g-base, .nz-stage.ping .nz-glyph.dal .nz-g-base, .nz-stage.ping .nz-glyph.raa .nz-g-base { animation: nzglow .7s ease-in-out 3; }
.nz-stage.ping .nz-g-hz { animation: nzglow .7s ease-in-out 3; }
@keyframes nzglow { 50% { filter: drop-shadow(0 0 .035em #ffd34d) drop-shadow(0 0 .08em #ffd34d); } }
.nz-nametag { position: relative; display: inline-block; margin-top: .5rem; padding: .05rem 1.6rem; border-radius: 999px; background: var(--nz-card); border: 3px solid var(--nz-line); color: var(--nz-pink); font-family: var(--font-head); font-size: clamp(1.95rem, 6.6vw, 2.76rem); line-height: 1.8; }
.nz-sact { position: relative; display: flex; justify-content: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.nz-says { background: #fff; border: 2px solid var(--line); min-width: 3.4rem; }
.nz-hint { position: relative; margin-top: .6rem; color: var(--ink-soft); font-weight: 600; }
.nz-note { position: relative; max-width: 36rem; margin: .8rem auto 0; padding: .6rem 1rem; border: 2px dashed var(--sun-deep); border-radius: 16px; background: #fff7d6; font-weight: 700; line-height: 1.9; }
.nz-note b { font-family: var(--font-head); font-weight: 400; font-size: 1.5em; color: var(--nz-purple); vertical-align: -.1em; }
.nz-stage .nz-teacher { position: relative; max-width: 36rem; margin-inline: auto; }
.nz-sk { position: absolute; left: 50%; top: 36%; z-index: 3; pointer-events: none; font-size: 1.83rem; animation: nzspark .85s ease-out forwards; }
@keyframes nzspark { to { transform: translate(var(--dx), var(--dy)) scale(.5) rotate(120deg); opacity: 0; } }

/* five words */
.nz-wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .9rem; }
.nz-w { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: 1rem .5rem .8rem; border: 3px solid var(--nz-line); border-radius: 22px; background: var(--nz-card); box-shadow: 0 4px 0 rgba(106, 44, 145, .16); cursor: pointer; }
.nz-w:active, .nz-pos:active, .nz-vsyl:active { transform: translateY(3px); box-shadow: none; }
.nz-w.seen, .nz-pos.seen { border-color: var(--good); }
.nz-wpic { font-size: 4.1rem; line-height: 1.15; height: 4.4rem; display: grid; place-items: center; }
.nz-svgpic { width: 1em; height: 1em; display: inline-block; }
.nz-wtxt { font-family: var(--font-head); font-size: 2.76rem; line-height: 1.5; color: #2b2b3a; }
.nz-spk { position: absolute; bottom: .45rem; inset-inline-end: .6rem; font-size: 1.37rem; opacity: .6; }

/* places in a word */
.nz-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.nz-pos { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem .6rem 1rem; border: 3px solid var(--nz-line); border-radius: 22px; background: var(--nz-card); box-shadow: 0 4px 0 rgba(106, 44, 145, .16); cursor: pointer; }
.nz-pbadge { padding: .05rem .9rem; border-radius: 999px; color: #fff; font-weight: 800; font-size: 1.37rem; background: var(--nz-teal); }
.nz-pos.middle .nz-pbadge { background: #e08a00; }
.nz-pos.end .nz-pbadge { background: var(--nz-pink); }
.nz-pos.marbuta .nz-pbadge { background: var(--nz-purple); }
.nz-pgrid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.nz-pgrid.n4 .nz-pos { padding-inline: .3rem; }
.nz-pgrid.n4 .nz-pbadge { font-size: 1.2rem; padding-inline: .6rem; }
.nz-pgrid.n4 .nz-boxes { gap: .2rem; }
.nz-pgrid.n4 .nz-bx { min-width: 1.85rem; height: 2.3rem; padding: 0; font-size: 1.55rem; border-radius: 8px; }
.nz-pgrid.n4 .nz-spk { top: .55rem; bottom: auto; inset-inline-end: .5rem; }
@media (max-width: 900px) and (min-width: 641px) { .nz-pgrid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nz-ppic { font-size: 3.45rem; line-height: 1.2; margin-top: .3rem; }
.nz-pword { font-family: var(--font-head); font-size: 2.64rem; line-height: 1.4; color: #2b2b3a; }
.nz-boxes { display: inline-flex; gap: .3rem; direction: rtl; }
.nz-bx { display: grid; place-items: center; min-width: 2.3rem; height: 2.7rem; padding: 0 .2rem; border: 2px solid #cfd6ee; border-radius: 10px; background: #fff; font-family: var(--font-head); font-size: 1.89rem; line-height: 1; color: #55608a; transition: transform .2s, background .2s; }
.nz-bx.on { background: var(--nz-purple); border-color: #47196b; color: #fff; transform: translateY(-4px); box-shadow: 0 4px 0 #47196b; }

/* vowels: one heading, three tabs (the fatha, the kasra, the damma), a whole lesson in each */
.nz-vintro { margin: 0 0 .5rem; text-align: center; font-size: 1.3rem; color: var(--ink-soft); }

.nz-vtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .2rem 0 .3rem; }
.nz-vtab { --vc: #0d9a8f; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: .3rem .3rem .45rem; border: 3px solid var(--vc); border-radius: 20px 20px 8px 8px; background: #fff; color: var(--vc); cursor: pointer; box-shadow: 0 4px 0 rgba(22, 33, 62, .14); }
.nz-vtab.kasra { --vc: #e08a00; } .nz-vtab.damma { --vc: #d6335a; }
.nz-vtab b { font-family: var(--font-head); font-weight: 400; font-size: clamp(2.8rem, 8vw, 3.6rem); line-height: 1.5; }
.nz-vtab span { font-family: var(--font-head); font-size: clamp(1.3rem, 3.6vw, 1.7rem); line-height: 1.3; }
.nz-vtab.on { background: var(--vc); color: #fff; transform: translateY(-2px); }
.nz-vtab:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.nz-vtab .nz-ck { position: absolute; top: -.55rem; inset-inline-start: -.3rem; display: none; width: 1.7rem; height: 1.7rem; place-items: center; border-radius: 50%; background: #1fa97a; color: #fff; font-style: normal; font-weight: 800; font-size: 1.1rem; box-shadow: 0 2px 0 rgba(22, 33, 62, .25); }
.nz-vtab.seen .nz-ck { display: grid; }
.nz-vsay { margin: 0 0 .7rem; text-align: center; font-size: 1.3rem; line-height: 1.7; color: var(--ink-soft); }
.nz-vsay b { font-family: var(--font-head); font-weight: 400; font-size: 1.9rem; color: var(--vc); }
.nz-vsh { margin: 1.1rem 0 0; padding: .1rem 1rem; width: fit-content; max-width: 100%; margin-inline: auto; border-radius: 999px; background: #fff; border: 2px solid var(--vc); text-align: center; font-size: 1.45rem; font-weight: 800; color: var(--vc); }
.nz-vsub > .nz-drill { margin-top: 1rem; }
.nz-vsub[hidden] { display: none; }
.nz-vsub { --vc: #0d9a8f; margin-top: .6rem; padding: .8rem .8rem 1.1rem; border: 3px solid #8fd9cf; border-radius: 24px; background: #fbfaff; }
.nz-vsub.kasra { --vc: #e08a00; border-color: #f3c27a; } .nz-vsub.damma { --vc: #d6335a; border-color: #f0a3c4; }
.nz-vh { display: block; width: fit-content; margin: 0 auto .8rem; padding: .05rem 1.6rem .1rem; border-radius: 999px; background: var(--vc); color: #fff; font-family: var(--font-head); font-weight: 400; font-size: 2.1rem; line-height: 1.5; box-shadow: 0 4px 0 rgba(22, 33, 62, .18); }
.nz-vsyl { display: flex; flex-direction: column; align-items: center; width: 100%; padding: .2rem .4rem .5rem; border: 0; border-radius: 18px; background: var(--nz-card); cursor: pointer; box-shadow: 0 4px 0 rgba(106, 44, 145, .16); }
.nz-vsyl b { font-family: var(--font-head); font-weight: 400; font-size: clamp(6rem, 17vw, 7.4rem); line-height: 1.35; padding-top: .1em; color: var(--nz-purple); }
.nz-vsyl span { font-family: var(--font-head); font-size: 1.64rem; color: var(--nz-pink); }
.nz-vsyl.seen { background: #dff6ea; }
.nz-vlab { margin: .8rem 0 .4rem; text-align: center; font-weight: 800; font-size: 1.2rem; color: var(--vc); }
.nz-vlist { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.nz-vlist.wide { gap: .6rem; }
.nz-vw { display: inline-flex; align-items: center; gap: .3rem; padding: 0 1rem; border: 3px solid var(--pb, var(--nz-line)); border-radius: 20px; background: linear-gradient(180deg, var(--pf1, #fff), var(--pf2, #fff)); box-shadow: 0 3px 0 rgba(60, 40, 90, .10); font-family: var(--font-head); font-size: 2.6rem; line-height: 1.7; color: #232a52; cursor: pointer; }
.nz-vpic { font-size: 1.71rem; line-height: 1; }
.nz-inside { margin-top: 1rem; padding: .7rem .6rem .8rem; border: 2px dashed var(--nz-line); border-radius: 20px; text-align: center; background: #fff; }
.nz-inside h4 { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 800; color: var(--ink-soft); }

/* drills */
.nz-drills { display: grid; gap: 1rem; }
.nz-drill { background: #fbfaff; border: 2px solid #e4defa; border-radius: 22px; padding: 1rem 1rem 1.1rem; }
.nz-drill h3 { font-size: 1.59rem; color: var(--nz-purple); }
.nz-dd { color: var(--ink-soft); margin: .1rem 0 .8rem; }
.nz-pairs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.nz-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: .6rem; border: 2px solid #e4defa; border-radius: 18px; background: #fff; }
.nz-pt { display: flex; flex-direction: column; align-items: center; padding: .1rem .2rem .3rem; border: 2px solid var(--nz-line); border-radius: 16px; background: var(--nz-card); cursor: pointer; }
.nz-pl { font-family: var(--font-head); font-size: 3.67rem; line-height: 1.4; color: var(--nz-purple); }
.nz-pn { font-family: var(--font-head); font-size: 1.5rem; color: var(--nz-pink); line-height: 1.5; }
.nz-vs { font-size: 1.83rem; }
.nz-pair small { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); font-weight: 700; }

/* the look of the book: pale rounded pills with a coloured edge; four colours that rotate (sky, pink, green, gold) */
.nzp0 { --pb: #3fb8e0; --pf1: #f3fcff; --pf2: #d3f0fb; --pd: #1b7fa3; }
.nzp1 { --pb: #e553b3; --pf1: #fff4fb; --pf2: #fbd5ec; --pd: #ad2a7c; }
.nzp2 { --pb: #38bf86; --pf1: #f3fdf8; --pf2: #cff2e0; --pd: #17855a; }
.nzp3 { --pb: #f2a93b; --pf1: #fffbee; --pf2: #fde4b0; --pd: #b97508; }
.nz-book { background: linear-gradient(180deg, #fffdf1, #fff7d9); border-color: #f0e1a6; }
.nz-book h3 { display: inline-block; margin: 0 0 .5rem; padding: .05rem 1.3rem .05rem 1.9rem; color: #fff; font-size: 1.45rem; line-height: 1.7; border-radius: 8px 8px 8px 8px; clip-path: polygon(0 0, 100% 0, 100% 100%, 1rem 100%); text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.nz-bk-sp h3 { background: linear-gradient(180deg, #2fb676, #1b9a5d); }
.nz-bk-ph h3 { background: linear-gradient(180deg, #ee4d6a, #cf2f52); }

.nz-spgrid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.nz-sp { display: flex; flex-direction: column; align-items: stretch; gap: .45rem; padding: .5rem; border: 3px solid var(--pb); border-radius: 22px; background: linear-gradient(180deg, var(--pf1), var(--pf2)); box-shadow: 0 3px 0 rgba(60, 40, 90, .10); }
.nz-spb { display: flex; background: #fff; border: 2px solid var(--pb); border-radius: 16px; overflow: hidden; }
.nz-sbx { flex: 1 1 0; min-width: 2.6rem; height: 3.7rem; padding: 0 .15rem; border: 0; border-radius: 0; background: transparent; font-family: var(--font-head); font-size: 2.6rem; line-height: 1.7; color: #1f2f9e; cursor: pointer; transition: background .15s; }
.nz-sbx + .nz-sbx { border-inline-start: 2px solid var(--pb); }
.nz-sbx:nth-child(3n+2) { color: #1c1c28; }
.nz-sbx:nth-child(3n) { color: #0d7f78; }
.nz-sbx.hit { color: var(--nz-hl); }
.nz-sbx.lit { background: var(--sun); color: var(--ink); }
.nz-sbx.hit.lit { color: var(--nz-hl); }
.nz-spw { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .1rem .5rem .1rem .3rem; border-radius: 16px; background: rgba(255, 255, 255, .72); }
/* the play button: a glossy "candy" disc in the colour of its pill, with a white rim, a rounded triangle, and moving bars while it reads */
.nzp0 { --pl: #8fe2f8; --pm: #1fa8d6; --pk: #14799d; --ps: #0d5a78; }
.nzp1 { --pl: #ffa6da; --pm: #e0409f; --pk: #ab2377; --ps: #7f1a59; }
.nzp2 { --pl: #8df3c3; --pm: #20b877; --pk: #12865a; --ps: #0b6745; }
.nzp3 { --pl: #ffd985; --pm: #f09a1d; --pk: #c0720a; --ps: #8e5307; }
.nz-play { position: relative; display: grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; padding: 0; border: 3px solid #fff; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 34% 24%, var(--pl, #8df3c3) 0%, var(--pm, #20b877) 52%, var(--pk, #12865a) 100%);
  box-shadow: 0 4px 0 var(--ps, #0b6745), 0 8px 14px rgba(40, 30, 70, .22), inset 0 -4px 7px rgba(0, 0, 0, .16);
  transition: transform .15s ease, box-shadow .15s ease; }
.nz-play::before { content: ""; position: absolute; top: 5%; left: 15%; width: 60%; height: 36%; border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); pointer-events: none; }
.nz-play::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--pm, #20b877); opacity: 0; pointer-events: none; }
.nz-play .pl { position: relative; width: 52%; height: 52%; margin-left: 8%; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .22)); }
.nz-play .eq { position: relative; display: none; align-items: center; gap: .16rem; height: 1.3rem; }
.nz-play .eq i { display: block; width: .26rem; height: 100%; border-radius: 3px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); transform-origin: center; transform: scaleY(.45); }
.nz-play:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 0 var(--ps, #0b6745), 0 11px 16px rgba(40, 30, 70, .24), inset 0 -4px 7px rgba(0, 0, 0, .16); }
.nz-play:active { transform: translateY(4px) scale(.97); box-shadow: 0 0 0 var(--ps, #0b6745), 0 2px 5px rgba(40, 30, 70, .2), inset 0 -4px 7px rgba(0, 0, 0, .16); }
.nz-play:focus-visible { outline: 3px solid var(--sun-deep, #f0a800); outline-offset: 3px; }
.nz-play.going .pl { display: none; }
.nz-play.going .eq { display: flex; }
.nz-play.going::after { animation: nzring 1.05s ease-out infinite; }
.nz-play.going .eq i { animation: nzeq .7s ease-in-out infinite; }
.nz-play.going .eq i:nth-child(2) { animation-delay: .17s; }
.nz-play.going .eq i:nth-child(3) { animation-delay: .34s; }
@keyframes nzring { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes nzeq { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .nz-play.going::after, .nz-play.going .eq i { animation: none; } .nz-play.going .eq i { transform: scaleY(.8); } }
.nz-whole { flex: 1; padding: 0 .5rem; border: 0; border-radius: 12px; background: transparent; font-family: var(--font-head); font-size: 3.2rem; line-height: 1.6; color: #232a52; cursor: pointer; transition: background .15s, transform .15s; }
.nz-whole.lit { background: var(--sun); color: var(--ink); transform: scale(1.04); }
.nz-phlist { display: grid; gap: .8rem; }
.nz-ph { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border: 3px solid var(--pb); border-radius: 24px; background: linear-gradient(180deg, var(--pf1), var(--pf2)); box-shadow: 0 3px 0 rgba(60, 40, 90, .10); }
.nz-phc { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .3rem; flex: 1; }
.nz-chip { padding: 0 .45rem; border: 0; border-radius: 14px; background: transparent; font-family: var(--font-head); font-size: 2.3rem; line-height: 1.75; color: #1f2f9e; cursor: pointer; transition: background .15s, transform .15s; }
.nz-chip:nth-child(4n+2) { color: #0d7f78; }
.nz-chip:nth-child(4n+3) { color: #1c1c28; }
.nz-chip:nth-child(4n) { color: #6a2c91; }
.nz-chip.lit { background: var(--sun); color: var(--ink); transform: translateY(-2px) scale(1.06); }

.nz-qstart { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nz-got { font-size: 1.71rem; }
.nz-qtop { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.nz-q { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink-soft); }
.nz-soundoff { background: #ffd9db; border-radius: var(--r-sm); padding: .4rem .8rem; margin-bottom: .5rem; }
.nz-qopts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.nz-qopt { min-height: 104px; border: 2px solid var(--line); border-radius: 18px; background: #fff; font-family: var(--font-head); font-size: 4.1rem; line-height: 1.6; color: var(--nz-purple); box-shadow: var(--shadow); cursor: pointer; }
.nz-qopt:hover { border-color: var(--cobalt); }
.nz-qopt.ok { background: #c8f2e1; border-color: var(--good); }
.nz-qopt.no { background: #ffd9db; border-color: var(--bad); animation: shake .3s; }
.nz-qres { text-align: center; }
.nz-qres .result-stars { font-size: 2.99rem; letter-spacing: .1em; }
.nz-qres .result-stars .off { filter: grayscale(1); opacity: .3; }

/* games */
.nz-ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.nz-gcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1rem .8rem 1.1rem; border: 0; border-radius: 24px; color: #fff; text-align: center; cursor: pointer; box-shadow: 0 6px 0 rgba(22, 33, 62, .22); min-height: 11rem; }
.nz-gcard:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(22, 33, 62, .22); }
.nz-gcard.tf { background: linear-gradient(135deg, #14a36f, #0d7d9a); }
.nz-gcard.find { background: linear-gradient(135deg, #7c4dff, #3355ff); }
.nz-gcard.pos { background: linear-gradient(135deg, #f08a00, #e0364f); }
.nz-gcard.snipe { background: linear-gradient(135deg, #1b2a6b, #5b3a9e); }
.nz-gi { font-size: 3.22rem; line-height: 1.2; }
.nz-gn { font-family: var(--font-head); font-size: 1.98rem; line-height: 1.3; }
.nz-gd { font-size: 1.3rem; opacity: .92; line-height: 1.5; }
.nz-gs { min-height: 1.4rem; font-size: 1.5rem; }

/* the table of the review (the letter in its places × its three vowels) */
.nz-vgrid { display: grid; gap: .8rem; }
.nz-gh { margin: 1.1rem 0 .6rem; font-size: 1.5rem; color: var(--nz-purple); }
.nz-gh:first-of-type { margin-top: 0; }
.nz-ggrid.nz-vgames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nz-gcard.vsay { background: linear-gradient(135deg, #e08a00, #d6335a); }
.nz-gcard.vhear { background: linear-gradient(135deg, #0d9a8f, #2f5de8); }
.nz-gcard.vsnipe { background: linear-gradient(135deg, #5b3a9e, #d6335a); }

/* the games of the vowels */
.nz-tfword.syl { font-size: clamp(4.6rem, 18vw, 6.4rem); }
.nz-vbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.nz-vbtn { --vc: #0d9a8f; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 6.4rem; padding: .3rem; border: 3px solid var(--vc); border-radius: 18px; background: #fff; color: var(--vc); font-weight: 800; font-size: 1.35rem; line-height: 1.3; box-shadow: var(--shadow); cursor: pointer; }
.nz-vbtn.kasra { --vc: #e08a00; } .nz-vbtn.damma { --vc: #d6335a; }
.nz-vbtn .m { font-family: var(--font-head); font-weight: 400; font-size: 3.4rem; line-height: 1.4; }
.nz-vbtn:active { transform: translateY(3px); box-shadow: none; }
.nz-vbtn.ok { background: #c8f2e1; border-color: var(--good); } .nz-vbtn.no { background: #ffd9db; border-color: var(--bad); animation: shake .3s; }
.nz-hearbox { display: grid; justify-items: center; gap: .4rem; margin: .4rem 0; }
.nz-hearbtn { width: 6.5rem; height: 6.5rem; border: 0; border-radius: 50%; background: var(--sun); font-size: 3.2rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 0 rgba(22, 33, 62, .22); }
.nz-hearbtn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(22, 33, 62, .22); }
.nz-hearnote { min-height: 2rem; margin: 0; font-family: var(--font-head); font-size: 1.7rem; color: var(--nz-purple); }
.nz-hbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.nz-hword { display: flex; align-items: center; justify-content: center; gap: .3rem; min-height: 6rem; padding: .3rem; border: 3px solid var(--line); border-radius: 18px; background: #fff; font-family: var(--font-head); font-size: clamp(2.4rem, 6.4vw, 3.4rem); line-height: 1.5; color: #2b2b3a; box-shadow: var(--shadow); cursor: pointer; }
.nz-hword:active { transform: translateY(3px); box-shadow: none; }
.nz-hword.ok { background: #c8f2e1; border-color: var(--good); } .nz-hword.no { background: #ffd9db; border-color: var(--bad); animation: shake .3s; }
.nz-hpic { font-size: 1.5rem; }

.nz-end { margin-top: 1.1rem; }
.nz-endcard { text-align: center; padding: 1.4rem 1rem 1.6rem; border-radius: 28px; background: linear-gradient(160deg, #fff6c7, #ffe3f0); border: 3px solid var(--sun); box-shadow: 0 8px 0 rgba(242, 176, 28, .35); }
.nz-endcard h2 { font-size: clamp(1.95rem, 5.5vw, 2.76rem); color: var(--nz-red); }
.nz-endstars { font-size: 2.99rem; animation: nzfloat 2.4s ease-in-out infinite; }
.nz-nextl { display: flex; width: fit-content; align-items: center; gap: .6rem; margin: .8rem auto; padding: .2rem 1.1rem; border-radius: 18px; background: #fff; border: 3px dashed var(--nz-line); }
.nz-nextl b { font-family: var(--font-head); font-size: 3.22rem; color: var(--c, #d6197f); font-weight: 400; }
.nz-nextl span { font-family: var(--font-head); font-size: 1.59rem; color: var(--nz-pink); }

/* ---------- inside a game window ---------- */
.nz-gstage .stage-in { width: min(100%, 38rem); }
.nz-g-snipe .stage-in { width: min(100%, 56rem); }
.nz-gprompt { display: flex; align-items: center; justify-content: center; gap: .8rem; font-family: var(--font-head); font-size: clamp(1.46rem, 4.4vw, 1.95rem); text-align: center; margin-bottom: .6rem; }
.nz-gspeak { height: 46px; padding: 0 1.1rem; font-size: 1.5rem; }
.nz-tfcard { background: #fff; border: 3px solid var(--nz-line); border-radius: 26px; text-align: center; padding: .8rem 1rem 1rem; margin: .6rem 0; box-shadow: var(--shadow); }
.nz-tfpic { font-size: clamp(4.86rem, 22vw, 7.02rem); line-height: 1.35; padding-top: .25rem; cursor: pointer; }
.nz-tfword { font-family: var(--font-head); font-size: clamp(2.99rem, 12.1vw, 4.1rem); line-height: 1.4; color: #2b2b3a; }
.nz-tfnote { margin-top: .2rem; font-weight: 700; color: var(--ink-soft); }
.nz-posword { padding: .6rem 0 .2rem; }
.nz-posword .nz-bx { min-width: 2.8rem; height: 3.3rem; font-size: 2.3rem; }
.nz-tfbtns { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.nz-tfbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 6.4rem; border: 0; border-radius: 22px; color: #fff; font-family: var(--font-head); font-size: 1.57rem; line-height: 1.4; box-shadow: 0 6px 0 rgba(22, 33, 62, .25); cursor: pointer; padding: .5rem; }
.nz-tfbtn .m { font-size: 2.99rem; line-height: 1; }
.nz-tfbtn.yes { background: var(--good); } .nz-tfbtn.no { background: var(--bad); }
.nz-tfbtn:active { transform: translateY(4px); box-shadow: none; }
.nz-tfbtn.ok { outline: 5px solid var(--sun); outline-offset: 2px; }
.nz-tfbtn.wrong { opacity: .55; animation: shake .3s; }
.nz-count { text-align: center; font-weight: 800; color: var(--ink-soft); margin-bottom: .2rem; }
.nz-fgrid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: .6rem; }
.nz-ftile { aspect-ratio: 1; border: 2px solid var(--line); border-radius: 20px; background: #fff; font-family: var(--font-head); font-size: clamp(2.99rem, 12.1vw, 3.89rem); line-height: 1; box-shadow: var(--shadow); cursor: pointer; transition: transform .1s; padding: 0; }
.nz-ftile:active { transform: translateY(3px); box-shadow: none; }
.nz-ftile.ok { background: #c8f2e1; border-color: var(--good); color: var(--good) !important; transform: scale(.94); }
.nz-ftile.no { background: #ffd9db; border-color: var(--bad); animation: shake .3s; }
.nz-posbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.nz-posbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 6rem; padding: .4rem; border: 2px solid var(--line); border-radius: 18px; background: #fff; font-weight: 800; line-height: 1.4; box-shadow: var(--shadow); cursor: pointer; }
.nz-mini { display: flex; gap: .3rem; direction: rtl; margin-bottom: .2rem; }
.nz-mini i { display: block; width: 1.7rem; height: 1.9rem; border-radius: 8px; border: 2.5px solid var(--nz-line); background: #fff; }
.nz-mini i.on { background: var(--nz-purple); border-color: #47196b; position: relative; }
.nz-mini i.on::after { content: ''; position: absolute; left: 50%; top: 16%; bottom: 16%; width: .32rem; margin-left: -.16rem; border-radius: 3px; background: #fff; }
.nz-posbtns.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nz-mini.rb b { display: grid; place-items: center; min-width: 3.4rem; height: 1.9rem; padding: 0 .5rem; border-radius: 8px; border: 2.5px solid var(--nz-line); background: #fff; font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--nz-purple); }
.nz-posbtn:active { transform: translateY(3px); box-shadow: none; }
.nz-posbtn.ok { background: #c8f2e1; border-color: var(--good); }
.nz-posbtn.no { background: #ffd9db; border-color: var(--bad); animation: shake .3s; }

/* the sniper */
.nz-shud { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.nz-lives { font-size: 1.83rem; letter-spacing: .1em; }
.nz-hitc { font-family: var(--font-head); font-size: 1.64rem; color: var(--ink-soft); }
.nz-sniper { position: relative; border-radius: 26px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 10px 26px rgba(22, 33, 62, .28); background: #9fd3ff; line-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.nz-sniper canvas { display: block; width: 100%; height: auto; cursor: none; touch-action: none; }
.nz-spraise { position: absolute; top: 12px; inset-inline: 0; text-align: center; font-family: var(--font-head); font-size: clamp(1.71rem, 4.84vw, 2.64rem); line-height: 1.3; color: #fff; text-shadow: 0 3px 0 rgba(22, 33, 62, .45), 0 0 14px rgba(22, 33, 62, .35); pointer-events: none; opacity: 0; }
.nz-spraise.go { animation: nzpraise 1.2s ease-out; }
@keyframes nzpraise { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.15); } 25% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.nz-sintro { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(22, 33, 62, .6); line-height: 1.6; padding: 1rem; }
.nz-sintro[hidden] { display: none; }
.nz-sintro-card { background: #fff; border-radius: 26px; padding: 1.2rem 1.4rem 1.4rem; text-align: center; max-width: 24rem; box-shadow: 0 10px 0 rgba(22, 33, 62, .2); }
.nz-sintro-card p { margin: .5rem 0 1rem; color: var(--ink); font-weight: 600; }
.nz-sforms { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.nz-sforms b { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--nz-purple); color: #fff; font-family: var(--font-head); font-weight: 400; font-size: 2.76rem; line-height: 1; box-shadow: 0 4px 0 #47196b; }

@media (max-width: 640px) {
  .nz-pgrid, .nz-pgrid.n4 { grid-template-columns: 1fr; }
  .nz-pgrid.n4 .nz-spk { top: auto; bottom: .5rem; inset-inline-end: .6rem; }
  .nz-vtop, .nz-vtop.solo { grid-template-columns: minmax(0, 1fr); }
  .nz-vsyl { max-width: 15rem; margin-inline: auto; }
  .nz-pos { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .nz-pos .nz-pbadge { flex-basis: 100%; text-align: center; }
  .nz-sec { padding: 1rem .8rem 1.1rem; border-radius: 24px; }
  .nz-ggrid { gap: .6rem; }
  .nz-ggrid.nz-vgames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nz-hbtns { grid-template-columns: minmax(0, 1fr); }
  .nz-hword { min-height: 4.6rem; }
  .nz-vtab span { font-size: 1.18rem; }
  .nz-gcard { min-height: 9.5rem; padding: .8rem .4rem; }
  .nz-gn { font-size: 1.64rem; }
  .nz-gd { font-size: 1.16rem; }
  .nz-wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nz-wgrid .nz-w:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .nz-qopt { font-size: 3.45rem; min-height: 92px; }
  .nz-ph { padding-inline: .5rem; }
  .nz-chip { font-size: 2.05rem; padding-inline: .3rem; }
  .nz-posbtn { min-height: 5.2rem; font-size: 1.25rem; }
  .nz-pair { grid-template-columns: 1fr auto 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nz-hero-rays, .nz-rays2, .nz-hero-book, .nz-endstars, .nz-card.open { animation: none; }
}

/* ---- bigger and clearer everywhere (phones and computers) ---- */
#noorRoot { font-size: 1.2rem; }
#noorRoot .btn { font-size: 1.5rem; min-height: 3.5rem; padding-inline: 1.9rem; }
#noorRoot .btn-small { font-size: 1.25rem; min-height: 3rem; }
.nz-teacher summary { font-size: 1.3rem; padding: .45rem 0; }
.nz-hint { font-size: 1.3rem; }
.nz-note { font-size: 1.3rem; max-width: 42rem; }
.nz-says { min-width: 4.2rem; font-size: 1.7rem; }
.nz-pbadge { padding-block: .3rem; }
.nz-ppic { font-size: 4rem; line-height: 1.5; margin-top: .7rem; }
.nz-pword { font-size: 3rem; }
.nz-wpic { font-size: 4.4rem; height: 5rem; }
.nz-bx { min-width: 2.9rem; height: 3.3rem; font-size: 2rem; }

/* every button uses Hamdeen too (the default button font would be a plain system one) */
.nz-gstage button { font-family: var(--font-head); }

.nz-endcard .btn { margin: .3rem .4rem; }


/* ---------- the book's pill (page «مواضع الحروف»): the shapes of the letter in one rounded box, each in its own colour ---------- */
.nz-bkhead { display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap; margin: .1rem 0 .9rem; }
.nz-tagg { padding: .08rem 1.3rem .08rem 1.7rem; color: #fff; font-weight: 800; font-size: 1.2rem; line-height: 1.6; background: #0f9d8a; clip-path: polygon(0 50%, 11% 0, 100% 0, 100% 100%, 11% 100%); }
.nz-bkhead h3 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.3rem); color: var(--nz-purple); line-height: 1.4; }
.nz-pill { --pbd: #f1a98a; --pg1: #fff8f1; --pg2: #ffe2cf; display: flex; align-items: center; justify-content: center; gap: .1rem; width: fit-content; max-width: 100%; margin: 0 auto; padding: .1rem 1.2rem; border: 3px solid var(--pbd); border-radius: 40px; background: linear-gradient(180deg, var(--pg1), var(--pg2)); box-shadow: 0 4px 0 rgba(150, 90, 50, .14); direction: rtl; }
.nz-pill.blue { --pbd: #84cbea; --pg1: #f3fcff; --pg2: #cbeefb; }
.nz-pf { border: 0; background: transparent; cursor: pointer; padding: 0 .1rem; font-family: var(--font-head); font-weight: 400; font-size: clamp(3.4rem, 10vw, 5.2rem); line-height: 1.5; color: #22223d; -webkit-tap-highlight-color: transparent; }
.nz-pill.n4 .nz-pf { font-size: clamp(2.7rem, 8vw, 4.5rem); }
.nz-pf.start { color: #22223d; } .nz-pf.middle { color: #e03f5b; } .nz-pf.end { color: #2f3fb0; } .nz-pf.marbuta, .nz-pf.hamza { color: #0f9d8a; }
.nz-ps { align-self: center; font-style: normal; font-family: var(--font-head); font-size: 1.8rem; line-height: 1; color: #1fb5a3; }
.nz-pf:active { transform: translateY(2px); }
.nz-pf:focus-visible, .nz-gw:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 12px; }
.nz-vtop { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .8rem 1rem; align-items: center; }
@media (max-width: 640px) { .nz-vtop { grid-template-columns: minmax(0, 1fr); } .nz-vsyl { width: min(100%, 15rem); margin-inline: auto; } }
.nz-pform { display: block; font-size: 3.67rem; line-height: 1.3; padding: 0 .3rem; color: #22223d; }
.nz-pform.middle { color: #e03f5b; } .nz-pform.end { color: #2f3fb0; } .nz-pform.marbuta { color: #0f9d8a; }
.nz-pgrid.n4 .nz-pform { font-size: 3.1rem; }

/* the review: one pill for each vowel, a word under each shape */
.nz-vgrid { display: grid; gap: 1.1rem; }
.nz-gr { --vc: #0d9a8f; }
.nz-gr.kasra { --vc: #e08a00; } .nz-gr.damma { --vc: #d6335a; }
.nz-grh { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 0 0 .4rem; font-weight: 800; font-size: 1.3rem; color: var(--vc); }
.nz-grh b { font-family: var(--font-head); font-weight: 400; font-size: 2.3rem; line-height: 1.4; }
.nz-gpill { width: 100%; align-items: flex-start; gap: 0; padding: .5rem .5rem .7rem; }
.nz-gpill .nz-ps { display: none; }
.nz-gpill .nz-gc + .nz-gc { border-inline-start: 2px dashed rgba(31, 181, 163, .55); }
.nz-gc { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.nz-gpill.c1, .nz-gpill.c2 { width: fit-content; min-width: min(100%, 20rem); }
.nz-gpill.c1 .nz-gc, .nz-gpill.c2 .nz-gc { flex: 0 1 10rem; }
.nz-gt { width: 100%; font-size: clamp(2.8rem, 8.6vw, 4.6rem); }
.nz-gpill.c4 .nz-gt { font-size: clamp(2.5rem, 7vw, 4rem); }
.nz-gw { max-width: 100%; padding: 0 .4rem; border: 2px solid rgba(80, 60, 40, .12); border-radius: 14px; background: #fff; font-family: var(--font-head); font-size: clamp(1.3rem, 4.1vw, 2.3rem); line-height: 1.6; color: #2b2b3a; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 0 rgba(60, 40, 90, .10); }
.nz-gw:active { transform: translateY(2px); box-shadow: none; }
@media (max-width: 560px) {
  .nz-gpill.c4 { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .3rem; }
  .nz-gpill.c4 .nz-ps { display: none; }
  .nz-gpill.c4 .nz-gt { font-size: clamp(2.8rem, 12vw, 4rem); }
  .nz-gpill.c4 .nz-gw { font-size: clamp(1.3rem, 5.2vw, 1.9rem); }
}

/* the spelling boxes of a word: each letter in the shape it has inside the word (joined), only in its own box */
.nz-bx { overflow: visible; font-size: 2.3rem; min-width: 2.5rem; height: 3rem; }
.nz-pgrid.n4 .nz-bx { font-size: 1.9rem; min-width: 2.1rem; height: 2.5rem; }

/* the last section of a letter page: on to the next letter */
.nz-nextsec { margin-top: 1.4rem; text-align: center; padding: 1.2rem 1rem 1.3rem; border-radius: 28px; background: linear-gradient(160deg, #e9f7ff, #f5ebff); border: 3px solid var(--nz-line); box-shadow: 0 6px 0 rgba(106, 44, 145, .15); }
.nz-nl { margin: 0 0 .8rem; font-weight: 800; font-size: 1.4rem; color: var(--nz-purple); }
.nz-nextbtn { display: inline-flex; align-items: center; gap: .9rem; max-width: 100%; margin: .1rem .4rem .7rem; padding: .35rem 1.5rem .35rem 1.1rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff9a2e, #e0364f); color: #fff; cursor: pointer; box-shadow: 0 6px 0 rgba(150, 40, 40, .35); -webkit-tap-highlight-color: transparent; }
.nz-nextbtn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(150, 40, 40, .35); }
.nz-nextbtn b { display: grid; place-items: center; flex: none; min-width: 4.2rem; height: 4.2rem; padding-top: .25rem; border-radius: 50%; background: #fff; color: var(--nz-purple); font-family: var(--font-head); font-weight: 400; font-size: 3.2rem; line-height: 1; }
.nz-nextbtn span { font-family: var(--font-head); font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.4; }
.nz-nextbtn svg { flex: none; width: 1.9rem; height: 1.9rem; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nz-nextbtn.lock { background: linear-gradient(135deg, #9ba4c6, #7b84a9); box-shadow: 0 6px 0 rgba(60, 70, 110, .3); }
.nz-nextsec .btn { margin: .1rem .4rem; }


/* places in a word (update 65): wide cards; each letter of the word in a big box with room between the boxes.
   The box size follows the width of the card and the number of letters (--n), so a word of six letters still fits in one row. */
.nz-pgrid { gap: 1.2rem; }
.nz-pos { container-type: inline-size; padding: 1rem .7rem 1.3rem; gap: .55rem; }
.nz-pos .nz-pbadge { font-size: 1.45rem; padding-inline: 1.1rem; }
.nz-pos .nz-pbadge .nz-spk { position: static; display: inline-block; margin-inline-start: .45rem; font-size: 1.15rem; opacity: .95; vertical-align: -.05em; }
.nz-pos .nz-boxes { --gap: .6rem; --bw: 3.4rem; gap: var(--gap); margin-top: .6rem; }
@supports (width: 1cqw) {
  .nz-pos .nz-boxes { --bw: clamp(2.3rem, calc((100cqw - .3rem - (var(--n, 5) - 1) * var(--gap)) / var(--n, 5)), 4.1rem); }
}
.nz-pos .nz-bx { width: var(--bw); min-width: 0; height: calc(var(--bw) * 1.25); padding: 0; font-size: calc(var(--bw) * .82); border-width: 3px; border-radius: 14px; }
.nz-pos .nz-bx.on { transform: translateY(-5px); box-shadow: 0 5px 0 #47196b; }
.nz-pgrid.n4 .nz-pos { padding-inline: 1rem; }
.nz-pgrid .nz-pos .nz-bx { height: calc(var(--bw) * 1.25); font-size: calc(var(--bw) * .84); }
.nz-pgrid.n4 .nz-pbadge { font-size: 1.45rem; padding-inline: 1.1rem; }
.nz-pgrid.n4 .nz-pform { font-size: 3.67rem; }
.nz-pgrid.n4 .nz-boxes { gap: var(--gap); }
.nz-pgrid.n4 .nz-bx { min-width: 0; padding: 0; border-radius: 14px; }
@media (min-width: 901px) { .nz-pgrid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; } }
@media (max-width: 900px) {
  .nz-pgrid, .nz-pgrid.n4 { grid-template-columns: minmax(0, 1fr); }
  .nz-pos { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
  .nz-pos .nz-pbadge { flex-basis: 100%; text-align: center; }
  .nz-pos .nz-boxes { flex-basis: 100%; justify-content: center; }
}
@media (min-width: 901px) { .nz-pgrid.n4 .nz-boxes { --gap: .8rem; } }
@media (max-width: 520px) { .nz-pos .nz-boxes { --gap: .5rem; } .nz-pos { padding-inline: .6rem; } }

/* where the letter stands (update 68): the shapes as separate tiles - the shape, and under it "the place · a word" */
.nz-ptiles { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: .9rem; margin: .3rem 0 .2rem; direction: rtl; }
.nz-ptile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-width: 0; padding: .8rem .4rem .75rem; border: 2px solid #e1e4f1; border-radius: 20px; background: #fff; box-shadow: 0 2px 0 rgba(60, 70, 130, .07); cursor: pointer; font-family: inherit; color: #5f6684; transition: transform .12s, box-shadow .12s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.nz-ptile:hover { border-color: #c9ceea; box-shadow: 0 4px 10px rgba(60, 70, 130, .12); }
.nz-ptile:active { transform: translateY(2px); }
.nz-ptile:focus-visible { outline: 3px solid var(--sun, #ffc83d); outline-offset: 2px; }
.nz-ptf { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(3rem, 7.5vw, 4.4rem); line-height: 1.45; color: #22223d; }
.nz-ptile.middle .nz-ptf { color: #e03f5b; } .nz-ptile.end .nz-ptf { color: #2f3fb0; } .nz-ptile.marbuta .nz-ptf, .nz-ptile.hamza .nz-ptf { color: #0f9d8a; }
.nz-ptc { display: block; font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 700; line-height: 1.7; color: #5f6684; text-align: center; }
.nz-ptc i { font-style: normal; opacity: .7; }
.nz-ptc span { font-family: var(--font-head); font-weight: 400; font-size: 1.15em; color: #3a3f63; }
@media (max-width: 560px) { .nz-ptiles.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nz-ptiles { gap: .7rem; } }

.nz-ptile.sep .nz-ptf, .nz-pform.sep { color: #0f9d8a; }
.nz-pos.sep .nz-pbadge { background: var(--nz-purple); }
/* update 117: the end of a word, joined and apart (the taa: its round taa too) - six cards for the taa */
.nz-ptile.msep .nz-ptf, .nz-pform.msep { color: #0f9d8a; }
.nz-pos.msep .nz-pbadge { background: var(--nz-purple); }
.nz-pos.sep .nz-pbadge { background: #2f3fb0; } .nz-ptile.sep .nz-ptf, .nz-pform.sep { color: #2f3fb0; }
.nz-ptiles.n5, .nz-ptiles.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .nz-ptiles.n5, .nz-ptiles.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the vowel tabs (update 69): the shapes of the letter with the vowel, each in its own box */
.nz-vtiles { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; direction: rtl; }
.nz-vtile { display: flex; flex-direction: column; align-items: center; min-width: 6.2rem; padding: .5rem .8rem .55rem; border: 2px solid #e1e4f1; border-radius: 20px; background: #fff; box-shadow: 0 2px 0 rgba(60, 70, 130, .07); cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; transition: transform .12s, border-color .15s; }
.nz-vtile:hover { border-color: #c9ceea; }
.nz-vtile:active { transform: translateY(2px); }
.nz-vtile:focus-visible { outline: 3px solid var(--sun, #ffc83d); outline-offset: 2px; }
.nz-vtf { font-family: var(--font-head); font-size: clamp(3rem, 8vw, 4.4rem); line-height: 1.5; color: #22223d; }
.nz-vtile.middle .nz-vtf { color: #e03f5b; } .nz-vtile.end .nz-vtf { color: #2f3fb0; } .nz-vtile.marbuta .nz-vtf, .nz-vtile.hamza .nz-vtf { color: #0f9d8a; }
.nz-vtc { font-size: 1.1rem; font-weight: 700; color: #5f6684; line-height: 1.6; }

/* places in a word (update 71): compact, equal cards */
.nz-pgrid, .nz-pgrid.n4 { gap: .9rem; align-items: stretch; }
.nz-pgrid .nz-pos { padding: .7rem .6rem .9rem; gap: .25rem; justify-content: flex-start; }
.nz-pgrid .nz-pos .nz-pbadge, .nz-pgrid.n4 .nz-pos .nz-pbadge { font-size: 1.15rem; padding: .02rem .8rem; }
.nz-pgrid .nz-pos .nz-pform, .nz-pgrid.n4 .nz-pos .nz-pform { font-size: 2.4rem; line-height: 1.2; }
.nz-pgrid .nz-pos .nz-ppic { font-size: 2.6rem; line-height: 1.2; margin-top: 0; }
.nz-pgrid .nz-pos .nz-pword { font-size: 2rem; line-height: 1.3; }
.nz-pgrid .nz-pos .nz-boxes { --gap: .4rem; margin-top: .3rem; }
@supports (width: 1cqw) {
  .nz-pgrid .nz-pos .nz-boxes { --bw: clamp(2.3rem, calc((100cqw - .3rem - (var(--n, 5) - 1) * var(--gap)) / var(--n, 5)), 3.2rem); }
}
@media (max-width: 900px) {
  .nz-pgrid .nz-pos { flex-direction: column; flex-wrap: nowrap; align-items: center; }
  .nz-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nz-pgrid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .nz-pgrid, .nz-pgrid.n4 { grid-template-columns: minmax(0, 1fr); gap: .8rem; } }

/* «اقرأ الكلمات» (update 74): the word cards and the window that builds a word */
.nz-rtop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; margin: .4rem 0 1rem; }
.nz-rhint { flex: 1 1 18rem; margin: 0; padding: .7rem 1rem; border: 2px solid #f3d27a; border-radius: 18px; background: #fff6d6; color: #5b4a12; font-weight: 700; font-size: 1.1rem; line-height: 1.6; }
.nz-rmode { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #3a3f63; font-size: 1.05rem; }
.nz-rsel { padding: .45rem .8rem; border: 2px solid #c9ceea; border-radius: 12px; background: #fff; font: inherit; font-weight: 700; color: #22223d; cursor: pointer; }
.nz-rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .9rem; direction: rtl; }
.nz-rc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 7.2rem; padding: .7rem .5rem; border: 3px solid #8f86f0; border-radius: 22px; background: #f1efff; cursor: pointer; font-family: inherit; transition: transform .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent; }
.nz-rc.c1 { border-color: #e0708a; background: #fff0f2; }
.nz-rc:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(60, 50, 130, .14); }
.nz-rc:active { transform: translateY(1px); }
.nz-rc:focus-visible { outline: 3px solid var(--sun, #ffc83d); outline-offset: 2px; }
.nz-rcw { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1.5; color: #3b3a8f; }
.nz-rc.c1 .nz-rcw { color: #8a2c3f; }
.nz-rcp { font-size: 1.7rem; line-height: 1.2; }
.nz-rpop { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1rem; background: rgba(14, 20, 48, .62); backdrop-filter: blur(3px); }
.nz-rpop[hidden] { display: none; }
html.nz-rlock, html.nz-rlock body { overflow: hidden; }
.nz-rbox { position: relative; width: min(34rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.4rem 1.2rem 1.2rem; border-radius: 28px; background: #fffdf7; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); text-align: center; }
.nz-rx { position: absolute; top: .7rem; inset-inline-start: .7rem; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: #eef0f8; color: #22223d; font-size: 1.2rem; cursor: pointer; }
.nz-rpic { font-size: 4.2rem; line-height: 1.2; margin-top: .2rem; }
.nz-rpic svg, .nz-rcp svg { width: 1.2em; height: 1.2em; vertical-align: middle; }
.nz-rword { display: block; width: 100%; margin: .4rem 0 .2rem; padding: .3rem .5rem; border: 3px dashed #d9dcef; border-radius: 22px; background: #fff; cursor: pointer; font-family: var(--font-head); font-size: clamp(4rem, 15vw, 6.5rem); line-height: 1.6; color: #22223d; direction: rtl; white-space: nowrap; }
.nz-rbox.done .nz-rword { border-style: solid; border-color: #7fd3a4; }
.nz-ru.on { color: #e03f5b; }
.nz-ru.hid { visibility: hidden; }
.nz-rtip { min-height: 1.6em; margin: .2rem 0 .5rem; font-weight: 700; color: #5f6684; font-size: 1.05rem; }
.nz-rbox.done .nz-rtip { color: #0e7a45; }
.nz-rdots { display: flex; justify-content: center; gap: .4rem; margin-bottom: .8rem; }
.nz-rdots i { width: .7rem; height: .7rem; border-radius: 50%; background: #dfe2f0; }
.nz-rdots i.on { background: #ffc83d; }
.nz-rbar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.nz-rbar .btn { padding: .55rem 1.1rem; font-size: 1.05rem; }
.nz-rbar .btn[hidden] { display: none; }
.nz-rplay.on { box-shadow: 0 0 0 3px #ffc83d inset; }
@media (max-width: 520px) { .nz-rcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nz-rtop { flex-direction: column; align-items: stretch; }  .nz-rhint { flex: none; } }

/* the voice switch of «اقرأ الكلمات» (update 75) */
.nz-rsnd { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border: 2px solid #7fd3a4; border-radius: 999px; background: #e8f8ef; color: #0e6b3a; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; }
.nz-rsnd span { font-size: 1.25rem; line-height: 1; }
.nz-rsnd.off { border-color: #f0a3a3; background: #fdecec; color: #a11d1d; }
.nz-rsnd:focus-visible { outline: 3px solid var(--sun, #ffc83d); outline-offset: 2px; }
.nz-rbox > .nz-rsnd { position: absolute; top: .7rem; inset-inline-end: .7rem; }
.nz-rbox { padding-top: 3.6rem; }

/* the big Qaf (update 85): its two dots are above the body, so the purple layer is cut at the top and the dots show in pink */
.nz-glyph.qaf .nz-g-base { clip-path: inset(var(--cut, 31%) 0 0 0); }
/* the big Faa (update 86): its dot is above the head, so the purple layer is cut at the top and the dot shows in pink */
.nz-glyph.faa .nz-g-base { clip-path: polygon(0 100%, 0 26%, 62% 26%, 62% 24%, 100% 24%, 100% 100%); }
/* the big Nun (update 90): its dot floats above the bowl, so the purple layer is cut at the top and the dot shows in pink */
.nz-glyph.nun .nz-g-base { clip-path: inset(var(--cut, 40%) 0 0 0); }
.nz-glyph.waw { width: .7em; }

/* «التدريبات العامة» (update 105): the book's review pages after the alphabet */
.nz-drills { margin-top: 1.6rem; padding: 1.4rem 1.2rem 1.5rem; border-radius: 26px; background: linear-gradient(160deg, #fff6d6, #fdeefe); border: 3px solid #f3d27a; text-align: center; }
.nz-dcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.nz-dcard { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 20px; background: #fff; border: 3px solid #8f86f0; box-shadow: 0 4px 0 #cfc9fb; text-decoration: none; color: var(--ink); text-align: start; transition: transform .12s; }
.nz-dcard:nth-child(2n) { border-color: #e0708a; box-shadow: 0 4px 0 #f6c3cf; }
.nz-dcard:hover { transform: translateY(-3px); }
.nz-dic { font-size: 2.4rem; line-height: 1; }
.nz-dtx { display: flex; flex-direction: column; gap: .15rem; }
.nz-dtx b { font-family: var(--font-head); font-weight: 400; font-size: 1.45rem; color: #3b3a8f; line-height: 1.4; }
.nz-dtx small { color: var(--ink-soft); font-weight: 700; font-size: 1rem; }
.nz-dhead { flex-direction: column; gap: .2rem; }
.nz-dsub { margin: 0; color: var(--ink-soft); font-weight: 700; }
.nz-drill { margin-top: 1rem; }
.nz-scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; direction: rtl; margin-bottom: 1.2rem; }
.nz-sc .nz-rcw { font-size: clamp(1.9rem, 4.4vw, 2.4rem); }
.nz-sc { min-height: 5.6rem; }
.nz-dgh { display: flex; justify-content: center; margin: 1rem 0 .9rem; }
.nz-shead { min-width: 11rem; min-height: 0; border-color: #ff9f1c; background: #fff3dc; }
.nz-shead .nz-rcw { color: #b4560a; font-size: clamp(2.4rem, 6vw, 3rem); }
.nz-dnext { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 1.6rem 0 1rem; }
/* the window with a sentence: smaller letters, the words keep their gap, a long sentence may wrap */
.nz-sbox { width: min(56rem, 100%); }
.nz-sword { font-size: clamp(2.4rem, 7.5vw, 4.6rem); white-space: normal; line-height: 1.8; word-spacing: .25em; }
.nz-sw { display: inline-block; white-space: nowrap; }
.nz-rdots.many { flex-wrap: wrap; gap: .3rem; }
.nz-rdots.many i { width: .55rem; height: .55rem; }
@media (max-width: 520px) { .nz-scards { grid-template-columns: minmax(0, 1fr); } }

/* update 146: previous / next word (or sentence) under the reading window */
.nz-rnav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; margin-top: .8rem; padding-top: .7rem; border-top: 2px dashed #e6e2f5; }
.nz-rnav .btn { font-size: 1rem; padding: .45rem .9rem; background: #fff; color: var(--ink, #22223d); box-shadow: 0 3px 0 #ddd8f0; }
.nz-rnav .btn[disabled] { opacity: .35; cursor: default; }
.nz-rnum { font-weight: 800; color: #7a7f9e; font-size: .95rem; }

/* update 153: the home tabs — «حروف الهجاء» and «المدود», and a tab for each long vowel inside «المدود» */
.nz-tabs { display: flex; justify-content: center; gap: .7rem; margin: 0 auto 1.2rem; padding: .45rem; max-width: 36rem; border-radius: 999px; background: #fff; border: 3px solid #f1e3a3; box-shadow: 0 5px 0 rgba(180, 150, 40, .14); }
.nz-tabs button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.6rem; padding: .35rem 1rem; border: 0; border-radius: 999px; background: transparent; color: #5b4a99; font: inherit; font-family: var(--font-head); font-size: clamp(1.3rem, 3.6vw, 1.7rem); cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.nz-tabs button:hover { background: #fff6d6; }
.nz-tabs button.on { background: linear-gradient(180deg, #ff5a6e, var(--nz-red, #d3202f)); color: #fff; box-shadow: 0 4px 0 rgba(150, 20, 40, .3); }
.nz-tabs button:focus-visible, .nz-subtabs button:focus-visible { outline: 3px solid var(--sun, #ffc83d); outline-offset: 3px; }
.nz-tic { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .35rem; border-radius: 999px; background: #fff3ce; color: #b5172b; font-family: var(--font-quran); font-size: 1.15rem; line-height: 1; }
.nz-tabs button.on .nz-tic { background: rgba(255, 255, 255, .92); }
.nz-panel[hidden], .nz-subpanel[hidden] { display: none; }

.nz-madd { background: #fffdf0; border: 3px solid #f1e3a3; border-radius: 30px; padding: 1.2rem 1rem 1.5rem; box-shadow: 0 6px 0 rgba(180, 150, 40, .16); }
.nz-subtabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: .2rem auto 1.3rem; }
.nz-subtabs button { padding: .45rem 1.1rem; border: 2.5px solid #d8d1f4; border-radius: 999px; background: #fff; color: #51448e; font: inherit; font-weight: 800; font-size: 1.08rem; cursor: pointer; box-shadow: 0 3px 0 #e6e1f7; }
.nz-subtabs button:hover { border-color: #f0c34a; background: #fff8dc; }
.nz-subtabs button.on { border-color: #6a5ae0; background: #6a5ae0; color: #fff; box-shadow: 0 3px 0 #3f32a8; }
.nz-mlesson { display: flex; align-items: center; gap: 1.2rem; width: 100%; max-width: 40rem; margin: 0 auto; padding: 1.1rem 1.3rem; border: 3px solid #8f86f0; border-radius: 26px; background: linear-gradient(160deg, #fff, #f3f0ff); box-shadow: 0 5px 0 #cfc9fb; color: var(--ink); text-decoration: none; text-align: start; font: inherit; cursor: pointer; transition: transform .12s; }
a.nz-mlesson:hover { transform: translateY(-3px); }
.nz-mbig { flex: 0 0 auto; display: grid; place-items: center; min-width: 6.2rem; height: 6.2rem; padding: 0 .6rem; border-radius: 22px; background: #fff3ce; border: 2.5px solid #f0c34a; color: #c72a40; font-family: 'KFGQPC Hafs', var(--font-quran); font-size: 2.7rem; line-height: 1; }
.nz-mtx { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.nz-mtx small { color: #80571c; font-weight: 800; font-size: .98rem; }
.nz-mtx b { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.7rem, 4.4vw, 2.2rem); color: #3b3a8f; line-height: 1.3; }
.nz-mparts { display: flex; flex-wrap: wrap; gap: .35rem; }
.nz-mparts i { font-style: normal; padding: .08rem .6rem; border-radius: 999px; background: #fff; border: 1.5px solid #ddd7f6; color: #56516f; font-weight: 700; font-size: .92rem; }
.nz-mgo { align-self: flex-start; margin-top: .2rem; padding: .3rem 1rem; border-radius: 999px; background: var(--sun, #ffc83d); color: #3a2a00; font-weight: 900; box-shadow: 0 3px 0 #d9a21f; }
.nz-msoon { border-color: #d9d6e8; box-shadow: 0 5px 0 #e8e5f2; background: #fafafe; }
.nz-msoon .nz-mbig { background: #f1f0f7; border-color: #d9d6e8; color: #8a86a3; }
.nz-mlock { color: #77738e; font-weight: 800; }
.nz-soon li.go { padding: 0; border: 0; background: none; }
.nz-soon li.go button { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .9rem .25rem .6rem; border-radius: 999px; background: #fff3ce; border: 2px solid #f0c34a; color: #6a4410; font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 560px) {
  .nz-tabs { gap: .35rem; padding: .35rem; }
  .nz-tabs button { min-height: 3.1rem; padding: .3rem .5rem; gap: .35rem; }
  .nz-tic { min-width: 2rem; height: 2rem; font-size: 1rem; }
  .nz-mlesson { flex-direction: column; text-align: center; gap: .8rem; }
  .nz-mtx { align-items: center; }
  .nz-mparts { justify-content: center; }
  .nz-mgo { align-self: center; }
}

/* update 154: hear the letters without opening them */
.nz-abar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: .2rem auto 1rem; }
.nz-aplay, .nz-alisten { display: inline-flex; align-items: center; gap: .45rem; min-height: 3rem; padding: .4rem 1.2rem; border-radius: 999px; font: inherit; font-weight: 800; font-size: 1.08rem; cursor: pointer; }
.nz-aplay { border: 0; background: linear-gradient(180deg, #34c48b, #0d9a8f); color: #fff; box-shadow: 0 4px 0 #0a6f67; }
.nz-aplay.on { background: linear-gradient(180deg, #ff5a6e, var(--nz-red)); box-shadow: 0 4px 0 #8f1420; }
.nz-alisten { border: 2.5px solid #d8d1f4; background: #fff; color: #51448e; box-shadow: 0 3px 0 #e6e1f7; }
.nz-alisten.on { border-color: #6a5ae0; background: #efecff; color: #3f32a8; }
.nz-aplay:focus-visible, .nz-alisten:focus-visible { outline: 3px solid var(--sun, #ffc83d); outline-offset: 3px; }
.nz-cards.listen .nz-card { animation: none; }
.nz-cards.listen .nz-flag { visibility: hidden; }
.nz-card.saying { transform: scale(1.08); border-color: var(--nz-teal) !important; box-shadow: 0 0 0 5px rgba(13, 154, 143, .35), 0 6px 0 rgba(13, 154, 143, .35) !important; z-index: 2; }
.nz-card { transition: transform .18s, box-shadow .18s; }
@media (prefers-reduced-motion: reduce) { .nz-card.saying { transform: none; } }

/* update 175: every section of Noor Al-Bayan has its own colour tab, and the tanween card's parts are links */
.nz-mparts a { text-decoration: none; padding: .12rem .75rem; border-radius: 999px; background: #fff; border: 1.5px solid #cdb8f5; color: #6a2fb8; font-weight: 800; font-size: .95rem; transition: transform .12s, background .12s; }
.nz-mparts a:hover { background: #f3eaff; transform: translateY(-2px); }
.nz-mparts a:focus-visible { outline: 3px solid var(--sun, #ffc83d); outline-offset: 2px; }
.nz-mgo { text-decoration: none; }
.nz-tabs { max-width: 52rem; padding: .55rem; gap: .55rem; border-radius: 26px; border-width: 3px; }
.nz-tabs button { --tc: #5b4a99; --tb: #f1edff; flex: 1 1 0; flex-direction: column; gap: .25rem; min-height: 4.6rem; padding: .45rem .5rem; border-radius: 20px; background: var(--tb); color: var(--tc); border: 2.5px solid transparent; white-space: nowrap; font-size: clamp(1.05rem, 2.6vw, 1.45rem); box-shadow: 0 3px 0 rgba(0, 0, 0, .06); }
.nz-tabs button .nz-tic { background: #fff; color: var(--tc); min-width: 2.3rem; height: 2.3rem; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.nz-tabs button[data-tab="letters"] { --tc: #1f3fcf; --tb: #e8edff; }
.nz-tabs button[data-tab="madd"] { --tc: #0b7f5c; --tb: #dff7ee; }
.nz-tabs button[data-tab="sukun"] { --tc: #b85a00; --tb: #ffeedb; }
.nz-tabs button[data-tab="tanween"] { --tc: #7a2fc4; --tb: #f1e6ff; }
.nz-tabs button:hover { background: var(--tb); border-color: var(--tc); }
.nz-tabs button.on { background: var(--tc); color: #fff; border-color: var(--tc); box-shadow: 0 5px 0 rgba(0, 0, 0, .22); transform: translateY(-2px); }
.nz-tabs button.on .nz-tic { background: #fff; color: var(--tc); }
@media (max-width: 560px) {
  .nz-tabs { display: grid; grid-template-columns: repeat(2, 1fr); border-radius: 22px; }
  .nz-tabs button { flex-direction: row; min-height: 3.4rem; font-size: 1.1rem; }
}

/* update 176: the tanween card with a big tile for each section; each tile opens its own lesson */
.nz-tw-card { width: 100%; max-width: 60rem; margin: 0 auto; padding: 1.6rem; border: 3px solid #b99cf0; border-radius: 32px; background: linear-gradient(160deg, #fff, #f6efff); box-shadow: 0 8px 0 #dccaf8; }
.nz-tw-top { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 1.3rem; }
.nz-tw-top .nz-mbig { flex: none; display: grid; place-items: center; width: 5.6rem; height: 5.6rem; border-radius: 24px; background: #fff0c8; border: 3px solid #f0c34a; color: #c2182a; font-size: 3.4rem; font-family: var(--font-quran); }
.nz-tw-top small { display: block; color: #8a5a00; font-weight: 800; font-size: 1.05rem; }
.nz-tw-top b { display: block; color: #3d2a85; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.3; font-family: var(--font-head); }
.nz-tw-top em { display: block; font-style: normal; color: #6d5f99; font-size: 1.1rem; }
.nz-tw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.nz-tw-sec { --c: #7a2fc4; --b: #f1e6ff; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.4rem 1rem 1.2rem; border-radius: 26px; background: var(--b); border: 3px solid var(--c); color: var(--c); text-decoration: none; text-align: center; box-shadow: 0 6px 0 rgba(0, 0, 0, .12); transition: transform .12s, box-shadow .12s; }
.nz-tw-sec:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(0, 0, 0, .14); }
.nz-tw-sec:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .14); }
.nz-tw-sec:focus-visible { outline: 4px solid var(--sun, #ffc83d); outline-offset: 3px; }
.nz-tw-sec.tf { --c: #1f3fcf; --b: #e8edff; }
.nz-tw-sec.tk { --c: #0b7f5c; --b: #dff7ee; }
.nz-tw-sec.td { --c: #b85a00; --b: #ffeedb; }
.nz-tw-sec.tr { --c: #a3166f; --b: #ffe6f4; }
.nz-tw-g { font-family: var(--font-quran); font-size: 4rem; line-height: 1.3; color: #d3202f; background: #fff; width: 6rem; height: 6rem; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 3px 0 rgba(0, 0, 0, .08); }
.nz-tw-sec b { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-family: var(--font-head); }
.nz-tw-sec small { font-size: 1.1rem; color: #4f4778; font-weight: 700; }
.nz-tw-go { margin-top: .4rem; padding: .35rem 1.5rem; border-radius: 999px; background: var(--c); color: #fff; font-weight: 900; font-size: 1.15rem; }
@media (max-width: 560px) { .nz-tw-card { padding: 1rem; } .nz-tw-grid { grid-template-columns: 1fr 1fr; gap: .7rem; } .nz-tw-g { width: 4.6rem; height: 4.6rem; font-size: 3rem; } .nz-tw-sec { padding: 1rem .5rem; } .nz-tw-top .nz-mbig { width: 4.4rem; height: 4.4rem; font-size: 2.6rem; } }

/* update 187: five tabs (letters, madd, sukun, tanween, shadda) */
.nz-tabs { max-width: 58rem; }
.nz-tabs button { padding-inline: .5rem; }
.nz-tw-sec.sh1 .nz-tw-g, .nz-tw-sec.sh2 .nz-tw-g, .nz-tw-sec.sh3 .nz-tw-g, .nz-tw-sec.sh4 .nz-tw-g { font-size: 2.2rem; }

/* update 194: «مواضع الحروف» — the book's colours: black = beginning, red = middle, blue = end, green = special forms */
.nzp { margin-top: 1.6rem; padding: 1.4rem 1rem 1.5rem; border-radius: 26px; background: linear-gradient(160deg, #fffbe6, #fff3fb); border: 3px solid #f3d27a; text-align: center; }
.nzp .nz-lead { margin-bottom: .9rem; }
.nzp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; }
.nzp-tab { font: inherit; font-weight: 800; font-size: 1.5rem; padding: .75rem 1.7rem; border-radius: 999px; border: 2px solid #e2c777; background: #fff; color: #5b3a8c; cursor: pointer; }
.nzp-tab.on { background: #7b3fc4; border-color: #7b3fc4; color: #fff; box-shadow: 0 3px 0 #54278f; }
.nzp-tab.soon:not(.on) { opacity: .75; }
.nzp-tab:focus-visible, .nzp-f:focus-visible { outline: 3px solid var(--sun, #ffc83d); outline-offset: 2px; }
.nzp-grid { display: grid; gap: .8rem; max-width: 46rem; margin: 0 auto; }
.nzp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; direction: rtl; }
.nzp-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 31rem; margin-inline: auto; width: 100%; }
.nzp-box { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 0; padding: .55rem .35rem .45rem; border: 2px solid; border-radius: 22px; box-shadow: 0 3px 0 rgba(0,0,0,.06), inset 0 0 16px rgba(255,255,255,.9); min-height: 6.6rem; }
.nzp-bg-p { background: #fff0e4; border-color: #f4b896; }
.nzp-bg-b { background: #e6f7fd; border-color: #8fd3ea; }
.nzp-bg-m { background: #fde9f7; border-color: #ec9fd2; }
.nzp-f { font-family: 'Amiri Quran', 'Scheherazade New', 'Noto Naskh Arabic', serif; font-size: 3.2rem; line-height: 1.6; padding: 0 .05rem; border: 0; background: none; cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.nzp-k { color: #1d1b2e; } .nzp-r { color: #e5243b; } .nzp-u { color: #3b3fc4; } .nzp-g { color: #11997a; }
.nzp-f:hover { background: rgba(255,255,255,.7); }
.nzp-f.pop { animation: nzpPop .35s ease; }
@keyframes nzpPop { 40% { transform: scale(1.25); } }
.nzp-dash { display: inline-block; flex: none; width: .55rem; height: 3px; border-radius: 3px; background: #19b894; margin: 1.5rem .3rem 0; }
.nzp-legend { margin: 1rem 0 .2rem; font-size: 1.05rem; color: var(--ink); }
.nzp-legend .nzp-f { font-size: 1.5rem; cursor: default; padding: 0 .1rem; }
.nzp-soon { padding: 2rem 1rem; color: #5b3a8c; } .nzp-soon > span { font-size: 2.4rem; display: block; } .nzp-soon b { font-size: 1.4rem; display: block; margin: .3rem 0; } .nzp-soon p { margin: 0; font-size: 1.1rem; }
@media (max-width: 560px) { .nzp-row { gap: .45rem; } .nzp-grid { gap: .5rem; } .nzp-f { font-size: 1.5rem; } .nzp-box { padding: .4rem .15rem; min-height: 4rem; border-radius: 16px; } .nzp-dash { width: .3rem; margin: 1rem .12rem 0; } }
@media (prefers-reduced-motion: reduce) { .nzp-f.pop { animation: none; } }

.nzp-h3 { margin: .2rem 0 .3rem; font-size: 1.7rem; color: #7b3fc4; }
.nzp-lead2 { margin: 0 0 1rem; font-size: 1.2rem; color: var(--ink); }
.nzp-legend .nzp-f { font-size: 2rem; }
@media (max-width: 560px) { .nzp-tab { font-size: 1.2rem; padding: .6rem 1.1rem; } .nzp-f { font-size: 1.8rem; } .nzp-box { min-height: 4.8rem; } .nzp-h3 { font-size: 1.35rem; } .nzp-legend .nzp-f { font-size: 1.6rem; } }

/* the section is one closed card; it opens on a tap, so the drills below stay one scroll away */
.nzp { padding: .7rem; }
.nzp-h2 { margin: 0; }
.nzp-head { width: 100%; display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; font: inherit; text-align: start; border: 0; border-radius: 20px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #8b4fd6, #5b2fb0); box-shadow: 0 4px 0 #43217f; }
.nzp-head:active { transform: translateY(2px); box-shadow: 0 2px 0 #43217f; }
.nzp-head:focus-visible { outline: 3px solid var(--sun, #ffc83d); outline-offset: 3px; }
.nzp-head-ic { flex: none; font-family: 'Amiri Quran', 'Scheherazade New', serif; font-size: 1.7rem; line-height: 1.5; letter-spacing: .1em; background: #fff; color: #5b2fb0; border-radius: 14px; padding: .1rem .7rem; }
.nzp-head-t { flex: 1; display: grid; gap: .1rem; }
.nzp-head-t b { font-size: 1.55rem; line-height: 1.3; }
.nzp-head-t small { font-size: 1rem; font-weight: 600; opacity: .92; }
.nzp-chev { font-size: 1.8rem; transition: transform .25s; }
.nzp.open .nzp-chev { transform: rotate(180deg); }
.nzp-inner { padding: 1rem .2rem .4rem; }
.nzp-tabs { gap: .7rem; }
.nzp-tab { display: inline-flex; align-items: center; gap: .55rem; }
.nzp-tab-m { font-family: 'Amiri Quran', 'Scheherazade New', serif; font-size: 1.9rem; line-height: 1.2; background: #f2e8ff; color: #5b2fb0; border-radius: 12px; padding: 0 .5rem; }
.nzp-tab.on .nzp-tab-m { background: #fff; }
.nzp-tab-kasra.on { background: #e8811f; border-color: #e8811f; box-shadow: 0 3px 0 #a85710; }
.nzp-tab-damma.on { background: #1fa07a; border-color: #1fa07a; box-shadow: 0 3px 0 #0f6d51; }
.nzp-tab-kasra .nzp-tab-m { background: #ffefdb; color: #a85710; } .nzp-tab-damma .nzp-tab-m { background: #dcf7ec; color: #0f6d51; }
.nzp-tab.on .nzp-tab-m { background: #fff; }
.nzp-grid, .nzp-legend { max-width: 52rem; }
@media (max-width: 560px) { .nzp { padding: .5rem; } .nzp-head { gap: .5rem; padding: .65rem .7rem; } .nzp-head-ic { display: none; } .nzp-head-t b { font-size: 1.3rem; } .nzp-head-t small { font-size: .88rem; } .nzp-tabs { gap: .4rem; } .nzp-tab { flex: 1 1 0; flex-direction: column; gap: .1rem; padding: .5rem .3rem; font-size: 1.05rem; border-radius: 18px; } .nzp-tab-m { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .nzp-chev { transition: none; } }

.nz-tabs button[data-tab="positions"] { --tc: #0b7490; --tb: #dcf3f9; }
.nz-tabs button[data-tab="shadda"] { --tc: #6b4fb8; --tb: #eee9fb; }
.nzp { margin-top: 0; }
.nzp-head { display: none; }
