/* BaraaKids — Unit 6 «أحكام الترتيل: أنواع المدود». All selectors start with .nzt-. The colours are our own addition. */
.nzt-root { direction: rtl; }
.nzt-tip { text-align: center; color: #5a5575; font-weight: 700; margin: .2rem auto 1rem; max-width: 40rem; line-height: 1.8; }
.nzt-sec { --tc: #6a2c91; background: #fff; border: 3px solid var(--tc); border-radius: 24px; padding: 1rem 1rem 1.2rem; margin: 1rem 0 1.4rem; box-shadow: 0 8px 20px rgba(60, 50, 130, .1); }
.nzt-sh { display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; }
.nzt-sh h2 { margin: 0; font-family: var(--font-head); color: var(--tc); font-size: clamp(1.5rem, 4.4vw, 2.2rem); line-height: 1.4; }
.nzt-no { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--tc); color: #fff; font-family: var(--font-head); font-size: 1.6rem; line-height: 1; }
.nzt-def { margin: .2rem 0 .8rem; color: #3b3558; font-size: clamp(1rem, 2.8vw, 1.2rem); font-weight: 700; line-height: 1.95; background: color-mix(in srgb, var(--tc) 8%, #fff); border-radius: 14px; padding: .55rem .9rem; }

/* the words: the Mushaf font (KFGQPC Hafs, loaded by noor-madd.css), large and made bolder with a thin stroke. A card is a small «mushaf plaque»:
   cream paper, a coloured top band and a thin inner line; one line for a word, two for a long verse. */
.nzt-wt, .nzt-pt, .nzt-qword { font-family: 'KFGQPC Hafs', var(--font-quran); font-weight: 400; }
/* the games: the Mushaf font, no bold */
.nzt-quiz .nzt-qword, .nzt-quiz .nzt-opt, .nzt-quiz .nzt-wopt { font-weight: 400; }
.nzt-qplay { font-family: var(--font-head); font-size: 1.3rem; padding: .7rem 1.4rem; border-radius: 18px; border: 3px solid #1c7ed6; background: #eaf4ff; color: #1c5fa8; cursor: pointer; }
.nzt-wopts { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.nzt-wopt { font-size: clamp(1.9rem, 5vw, 2.6rem) !important; line-height: 1.8; background: #fffdf4; }
.nzt-nb.mid { flex: 0 1 auto; justify-content: center; background: #fff7e0; border-color: #edc65a; color: #5b3a12; }
.nzt-nb.ghost { visibility: hidden; }
.nzt-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; }
.nzt-w, .nzt-p { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; min-height: 5.6rem; padding: .85rem .6rem .5rem; border: 2px solid color-mix(in srgb, var(--tc) 40%, #fff); border-top: 9px solid var(--tc); border-radius: 6px 6px 22px 22px; background: #fffdf4; color: #1d1a33; box-shadow: inset 0 0 0 3px #fffdf4, inset 0 0 0 4.5px color-mix(in srgb, var(--tc) 22%, #fff), 0 4px 0 color-mix(in srgb, var(--tc) 30%, #fff); transition: transform .12s, box-shadow .12s, background .12s; }
.nzt-w:hover, .nzt-p:hover { transform: translateY(-2px); }
.nzt-w:active, .nzt-p:active { transform: translateY(2px); box-shadow: inset 0 0 0 3px #fffdf4, inset 0 0 0 4.5px color-mix(in srgb, var(--tc) 22%, #fff), 0 1px 0 color-mix(in srgb, var(--tc) 30%, #fff); }
.nzt-w:focus-visible, .nzt-p:focus-visible { outline: 3px solid #ffc83d; outline-offset: 3px; }
.nzt-w.on, .nzt-p.on { background: color-mix(in srgb, var(--tc) 12%, #fffdf4); border-color: var(--tc); }
.nzt-w::after, .nzt-p::after { content: '🔊'; position: absolute; top: .55rem; inset-inline-start: .45rem; font-size: .8rem; opacity: .35; }
.nzt-w.on::after, .nzt-p.on::after { opacity: 1; }
.nzt-wt { font-size: clamp(2.5rem, 6.4vw, 3.3rem); line-height: 1.8; text-align: center; white-space: nowrap; }
.nzt-w.long { grid-column: 1 / -1; }
.nzt-w.long .nzt-wt { font-size: clamp(2.2rem, 5.2vw, 3rem); }
.nzt-w small { font-family: system-ui, sans-serif; font-size: .8rem; font-weight: 800; color: var(--tc); }
.nzt-m { color: var(--tc); font-weight: 400; }
.nzt-sec[data-t="harf"] .nzt-words { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }

/* back / next lesson buttons */
.nzt-topnav { display: flex; justify-content: space-between; gap: .6rem; margin: .2rem 0 .9rem; }
.nzt-nb { flex: 1 1 0; display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .5rem .9rem; border-radius: 18px; background: #fff; border: 2.5px solid #b9a7ee; color: #4b2a85; text-decoration: none; font-family: var(--font-head); }
.nzt-nb.next { justify-content: flex-end; text-align: left; background: #6a2c91; border-color: #6a2c91; color: #fff; }
.nzt-nb span { font-size: 1.6rem; line-height: 1; flex: none; }
.nzt-nb i { font-style: normal; display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.nzt-nb small { font-size: .85rem; opacity: .85; }
.nzt-nb b { font-weight: 400; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nzt-nb:hover { filter: brightness(1.05); }

/* lesson 3 */
.nzt-row { display: grid; gap: .7rem; margin-bottom: .7rem; }
.nzt-row.n1 { grid-template-columns: 1fr; }
.nzt-row.n2 { grid-template-columns: 1fr 1fr; }
.nzt-row.n3 { grid-template-columns: 1fr 1fr 1fr; }
.nzt-pt { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.9; text-align: center; }
.nzt-row.n2 .nzt-pt, .nzt-row.n3 .nzt-pt { white-space: nowrap; font-size: clamp(1.7rem, 2.9vw, 2.4rem); }
.nzt-p.big .nzt-pt { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.nzt-row:nth-of-type(odd) .nzt-p { --tc: #1c7ed6; }
.nzt-row:nth-of-type(even) .nzt-p { --tc: #e8811f; }
.nzt-row.n1 .nzt-p { --tc: #6a2c91; }
.nzt-row.n1:last-child .nzt-p, .nzt-row.n1 .nzt-p { }
.nzt-four { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: .35rem; padding: .4rem; --tc: #d6336c; border-top-width: 9px; cursor: default; }
.nzt-four::after { content: none; }
.nzt-four .nzt-h { min-height: 3.2rem; padding: .1rem; border-radius: 10px; border-width: 2px; border-top-width: 2px; box-shadow: none; --tc: #d6336c; }
.nzt-four .nzt-h::after { content: none; }
.nzt-four .nzt-pt { font-size: clamp(1.8rem, 4.6vw, 2.4rem); }

/* the game */
.nzt-qbody { text-align: center; }
.nzt-qc { margin: 0 0 .3rem; color: #77738e; font-weight: 800; }
.nzt-qword { font-size: clamp(2.8rem, 9vw, 4.3rem); line-height: 1.6; background: #fff7e8; border: 3px solid #f0c27a; border-radius: 22px; padding: .3rem 1.4rem; cursor: pointer; color: #1d1a33; }
.nzt-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; margin-top: .9rem; }
.nzt-opt { font-family: 'KFGQPC Hafs', var(--font-quran); font-size: clamp(1.15rem, 3.4vw, 1.45rem); line-height: 1.5; padding: .55rem .6rem; border-radius: 16px; border: 3px solid var(--tc); background: #fff; color: var(--tc); cursor: pointer; }
.nzt-opt.ok { background: #1fa07a; border-color: #1fa07a; color: #fff; }
.nzt-opt.no { background: #e24b5b; border-color: #e24b5b; color: #fff; }
.nzt-qf { min-height: 1.8rem; margin: .7rem 0 0; font-family: var(--font-head); font-size: 1.3rem; color: #3b3558; }
.nzt-qend b { display: block; font-family: var(--font-head); font-size: 2.2rem; color: #1fa07a; }
.nzt-qend p { font-size: 1.3rem; font-weight: 800; }

/* the unit's home card */
.nzt-home .nz-tw-sec { text-decoration: none; }

@media (max-width: 560px) {
  .nzt-w, .nzt-p { padding-top: .7rem; }
  .nzt-wt { white-space: normal; }
  .nzt-row.n2 .nzt-pt, .nzt-row.n3 .nzt-pt { white-space: normal; }
  .nzt-four { grid-template-columns: 1fr 1fr; }
  .nzt-nb b { font-size: .92rem; }
  .nzt-topnav { flex-wrap: wrap; }
  .nzt-nb.mid { order: 3; flex: 1 1 100%; }
  .nzt-nb { padding: .45rem .6rem; }
  .nzt-wt { font-size: clamp(2.2rem, 9vw, 2.7rem); }
  .nzt-sec { padding: .8rem .7rem 1rem; border-radius: 20px; }
  .nzt-words { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .nzt-row.n3 { grid-template-columns: 1fr; }
  .nzt-row.n2 { grid-template-columns: 1fr; }
  .nzt-opts { grid-template-columns: 1fr 1fr; }
}

/* the game buttons are inside #noorRoot, whose button rule would win: name the Mushaf font with the same weight of selector */
#noorRoot .nzt-qword, #noorRoot .nzt-opt.nzt-wopt, #noorRoot .nzt-quiz .nzt-opt[data-t] { font-family: 'KFGQPC Hafs', var(--font-quran); font-weight: 400; }
#noorRoot .nzt-quiz .nzt-opt[data-t] { font-size: clamp(1.3rem, 3.6vw, 1.7rem); }

/* the games page */
.nz-gcard.tmadd { background: linear-gradient(135deg, #d3202f, #e8811f); }
.nz-gcard.thear { background: linear-gradient(135deg, #1c7ed6, #5b2fb0); }
.nzt-ggrid[hidden], .nzt-gpanel[hidden] { display: none; }
.nzt-gback { font-family: var(--font-head); font-size: 1.15rem; padding: .35rem 1.1rem; border-radius: 999px; border: 2.5px solid #b9a7ee; background: #fff; color: #4b2a85; cursor: pointer; margin: 0 0 .4rem; }
.nzt-start { padding: 1.2rem 0 1.6rem; text-align: center; }
.nzt-start p { font-family: var(--font-head); font-size: 1.3rem; color: #3b3558; margin: 0 0 1rem; }

/* the cards take the width of their word: one line, and the row wraps when it is full */
.nzt-words { display: flex; flex-wrap: wrap; gap: .8rem; }
.nzt-words .nzt-w { flex: 1 1 auto; min-width: 9rem; }
.nzt-words .nzt-w.long { flex: 1 1 100%; }
.nzt-sec[data-t="harf"] .nzt-words .nzt-w { min-width: 6.5rem; }
@media (max-width: 560px) { .nzt-words .nzt-w { flex: 1 1 42%; min-width: 0; } .nzt-words .nzt-w.long { flex: 1 1 100%; } }


.nzt-m { color: var(--tc); font-weight: 400; font-family: inherit; }
