/* ════════════════════════════════════════════════════════════════
   NX (v200) — Hayabyna and iQfully in the Stuziu / FileFi look.
   Light, soft and clean: Poppins, white cards, colourful folders, one floating tab bar.
   Loaded last; everything is scoped to html.nx.
   ════════════════════════════════════════════════════════════════ */
@font-face{font-family:"Poppins";font-weight:300;font-display:swap;src:url(../fonts/Poppins-Light.woff) format("woff")}
@font-face{font-family:"Poppins";font-weight:400;font-display:swap;src:url(../fonts/Poppins-Regular.woff) format("woff")}
@font-face{font-family:"Poppins";font-weight:500;font-display:swap;src:url(../fonts/Poppins-Medium.woff) format("woff")}
@font-face{font-family:"Poppins";font-weight:600;font-display:swap;src:url(../fonts/Poppins-SemiBold.woff) format("woff")}
@font-face{font-family:"Poppins";font-weight:800;font-display:swap;src:url(../fonts/Poppins-ExtraBold.woff) format("woff")}

html.nx{--display:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;--ui:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;
  --nx-bg:#F6F6F9;--nx-ink:#16161D;--nx-soft:#6A6A78;--nx-faint:#8A8A98;--nx-card:#fff;--nx-line:#ECECF2;
  --nx-o1:#FFC184;--nx-o2:#F2924F;--nx-glow:rgba(242,146,79,.45);
  --text:var(--nx-ink);--muted:var(--nx-soft);--glass:#fff;--edge:var(--nx-line);color-scheme:light;background:var(--nx-bg)!important}
html.nx[lang=ar]{--display:"Cairo","Poppins",system-ui,sans-serif!important;--ui:"Cairo","Poppins",system-ui,sans-serif!important}
html.nx body{background:var(--nx-bg)!important;color:var(--nx-ink)!important;font-family:var(--ui)!important}
html.nx body::before,html.nx body::after{display:none!important}
html.nx .bgStage,html.nx .adRail,html.nx .adBanner,html.nx .adSlot,html.nx .themeBtn,html.nx #home .slogan,html.nx .sealNext{display:none!important}

/* ── the top: logo · language · Go Pro ── */
html.nx .brand{background:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  margin:0 auto 4px!important;max-width:900px;width:100%;box-sizing:border-box;padding-bottom:6px!important}
html.nx .brand .logoImg{height:30px!important;width:auto!important}
html.nx .brand .logoDark{display:none!important}html.nx .brand .logoLight{display:block!important}
html.nx .topBtns{display:flex;align-items:center;gap:8px}
html.nx .langBtn{width:36px!important;height:36px!important;border-radius:50%!important;background:#fff!important;color:var(--nx-ink)!important;border:0!important;
  box-shadow:0 4px 14px rgba(30,30,60,.08)!important;font:600 11.5px Poppins,sans-serif!important}
html.nx .nxProBtn{display:inline-flex;align-items:center;gap:4px;height:25px;padding:0 10px;border-radius:99px;border:0;background:var(--nx-ink);color:#fff;
  font:600 10px var(--ui);cursor:pointer;box-shadow:0 6px 14px -8px rgba(20,20,40,.6);white-space:nowrap}
html.nx .nxProBtn svg{width:11px;height:11px;fill:none;stroke:#FFC46B;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html.nx.nx-pro .nxProBtn{background:linear-gradient(150deg,var(--nx-o1),var(--nx-o2))}
html.nx.nx-pro .nxProBtn svg{stroke:#fff}

/* ── home: one centred column, like FileFi ── */
html.nx #home{padding-left:16px!important;padding-right:16px!important}
html.nx #home > *:not(.brand){max-width:860px;width:100%;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
html.nx .nxHi{margin:10px 0 2px}
html.nx .nxHi h2{font:600 clamp(24px,6vw,30px)/1.15 var(--display);letter-spacing:-.02em;margin:0;color:var(--nx-ink)}
html.nx .nxHi p{margin:4px 0 0;font-size:14.5px;color:var(--nx-faint)}

/* the IQ card with the mascot */
html.nx #seal{position:relative;display:block!important;margin:16px 0 12px!important;padding:18px 18px 18px!important;border-radius:26px;
  background:linear-gradient(150deg,var(--nx-o1) 0%,var(--nx-o2) 100%)!important;box-shadow:0 18px 34px -18px var(--nx-glow),inset 0 1.5px 0 rgba(255,255,255,.4);overflow:visible;min-height:132px}
html.nx #seal .sealRow{display:flex!important;align-items:center;justify-content:flex-start;gap:16px;width:100%;min-height:96px}
html.nx #seal .sealRing{width:96px!important;height:96px!important;border-radius:28px!important;background:rgba(255,255,255,.22)!important;border:0!important;
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.45)!important;flex:none;transform:none!important}
html.nx #seal .sealRing svg{inset:8px!important;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important}
html.nx #seal .sealRing .track{stroke:rgba(255,255,255,.3)!important}
html.nx #seal .sealRing .fill{stroke:#fff!important}
html.nx #seal .phoneHome{display:none!important}
html.nx #seal .sealCore{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:none!important;border:0!important;box-shadow:none!important}
html.nx #seal .sealNum{color:#fff!important;font:800 30px/1 var(--display)!important;letter-spacing:-.03em;text-shadow:0 2px 6px rgba(150,70,10,.25)}
html.nx #seal .sealTier{color:rgba(255,255,255,.95)!important;font:600 12px/1.2 var(--ui)!important;margin-top:3px!important;letter-spacing:.02em}
html.nx #seal.fresh .sealTier{font:800 24px/1 var(--display)!important;margin:0!important}
html.nx #seal .mascot{position:absolute!important;inset-inline-end:8px;bottom:0;height:160px!important;width:auto!important;max-width:44%;object-fit:contain;object-position:bottom;
  margin:0!important;filter:drop-shadow(0 10px 14px rgba(120,50,10,.28));transform:none!important;pointer-events:none}
html.nx #seal::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(120px 90px at 85% 110%,rgba(255,255,255,.28),transparent 70%)}
html.nx[dir=rtl] #seal .mascot{inset-inline-end:8px}
html.nx .daily{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:-46px 0 22px!important;position:relative;z-index:2;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;display:block!important;padding-inline-start:130px!important;pointer-events:none}
html.nx .daily .dInfo{justify-content:flex-start!important;pointer-events:auto;width:auto!important}
html.nx .daily .dBtn{background:#fff!important;color:#B5592A!important;border:0!important;border-radius:99px!important;padding:6px 12px!important;font:600 11.5px var(--ui)!important;min-height:0!important;line-height:1.3!important;
  box-shadow:0 8px 18px -10px rgba(120,50,10,.6)!important}
html.nx .daily .dBtn.soft{background:rgba(255,255,255,.25)!important;color:#fff!important}
html.nx .daily .marks{font-size:20px;letter-spacing:2px}
html.nx .daily p{color:#fff}

/* the free note */
html.nx .nxFree{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 16px!important;padding:11px 14px;border:0;border-radius:16px;cursor:pointer;
  background:#FFF1E4;color:#9A4A1E;font:500 13.5px/1.4 var(--ui);text-align:start}
html.nx .nxFree .ic{font-size:17px;flex:none}
html.nx.nx-pro .nxFree{background:#EAF7EE;color:#2F7A45;cursor:default}

/* Classic · Genius */
html.nx .levelSw{display:grid!important;grid-template-columns:1fr 1fr;gap:4px!important;padding:4px;margin:0 0 6px!important;border-radius:99px;background:#fff;box-shadow:0 4px 14px rgba(30,30,60,.06)}
html.nx .lvBtn{background:none!important;border:0!important;box-shadow:none!important;color:var(--nx-soft)!important;font:600 14.5px var(--ui)!important;padding:11px 8px!important;
  border-radius:99px!important;min-height:0!important;height:auto!important;width:auto!important;-webkit-mask:none!important;mask:none!important;transform:none!important}
html.nx .lvBtn::before,html.nx .lvBtn::after{display:none!important}
html.nx .lvBtn.on{background:var(--nx-ink)!important;color:#fff!important}
html.nx .lvNote{color:var(--nx-faint)!important;font-size:13px!important;text-align:center;margin:6px 0 14px!important}
html.nx .nxHead{display:flex;align-items:baseline;justify-content:space-between;margin:14px 0 0!important}
html.nx .nxHead b{font:600 18px var(--display);color:var(--nx-ink)}html.nx .nxHead span{font-size:13px;color:var(--nx-faint)}
html.nx .nxHead + .lvNote{display:none}

/* ── the folders (FileFi's, exactly) ── */
html.nx #home #fields.fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 14px!important;margin:12px 0 22px!important}
@media (min-width:600px){html.nx #home #fields.fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (min-width:900px){html.nx #home #fields.fields{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:26px 24px!important}}
html.nx .nxFd{display:block;text-align:center;background:none;border:0;padding:0;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;font:inherit}
html.nx .nxFd:focus-visible{outline:3px solid var(--nx-o2);outline-offset:4px;border-radius:18px}
html.nx .nxFo{position:relative;display:block;aspect-ratio:1.3;margin-top:9px;transition:transform .18s}
html.nx .nxFd:hover .nxFo{transform:translateY(-3px)}html.nx .nxFd:active .nxFo{transform:scale(.97)}
html.nx .nxFo i{position:absolute;display:block}
html.nx .nxFo .t{left:0;top:-9%;width:44%;height:40%;border-radius:14px 14px 0 0;background:var(--b)}
html.nx .nxFo .k{left:0;right:0;top:0;height:82%;border-radius:16px;background:var(--b)}
html.nx .nxFo .f{left:0;right:0;bottom:0;top:16%;border-radius:18px;background:linear-gradient(160deg,var(--f1),var(--f2));
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.35),0 16px 26px -12px var(--glow),0 6px 12px -8px var(--glow)}
html[dir=rtl].nx .nxFo .t{left:auto;right:0}
@media (min-width:700px){html.nx .nxFo .t{border-radius:18px 18px 0 0}html.nx .nxFo .k{border-radius:20px}html.nx .nxFo .f{border-radius:22px}}
html.nx .nxI{position:absolute;left:50%;top:50%;width:40%;height:auto;transform:translate(-50%,-56%);fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.4)) drop-shadow(0 3px 5px rgba(0,0,0,.18))}
html.nx .nxI *{stroke:#fff!important;fill:none!important}
html.nx .nxFo .tag{position:absolute;right:7%;bottom:9%;display:inline-flex;align-items:center;gap:4px;background:#fff;border-radius:99px;font:600 11px var(--ui);padding:3px 9px;color:var(--tx);font-style:normal;white-space:nowrap}
html[dir=rtl].nx .nxFo .tag{right:auto;left:7%}
html.nx .nxFo .tag svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
html.nx .nxFo .tag.lock{background:var(--nx-ink);color:#fff}
html.nx .nxFo .tag.pro{background:linear-gradient(150deg,var(--nx-o1),var(--nx-o2));color:#fff}
@media (min-width:700px){html.nx .nxFo .tag{font-size:12px;padding:3px 11px}}
html.nx .nxN{display:block;font:600 15px var(--ui);margin:11px 0 0;color:var(--nx-ink)}
html.nx .nxS{display:block;font-size:12px;color:var(--nx-faint);margin-top:1px}
@media (min-width:700px){html.nx .nxN{font-size:17px;margin-top:14px}html.nx .nxS{font-size:13px}}
html.nx .nxFd.soon{opacity:.55}

/* ── the bottom tab bar (FileFi's) ── */
html.nx .hbTabs{background:#fff!important;border:0!important;box-shadow:0 16px 40px rgba(30,30,60,.14),0 0 0 1px rgba(30,30,60,.04)!important;border-radius:26px!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.nx .hbTab{color:#9A9AA6!important;font:500 11px var(--ui)!important}
html.nx .hbTab.on{color:var(--nx-ink)!important;font-weight:600!important}
html.nx .hbTab.on svg{stroke:var(--nx-o2)}
html.nx .hbSh .hbShp{background:#fff!important;color:var(--nx-ink)!important;border-radius:26px 26px 0 0!important}
html.nx .siteFoot{color:var(--nx-faint)!important}

/* ── playing: white cards, the category's colour ── */
html.nx .topbar .iconBtn{background:#fff!important;color:var(--nx-ink)!important;border:0!important;box-shadow:0 4px 14px rgba(30,30,60,.08)!important}
html.nx .topTitle{background:#fff!important;color:var(--nx-ink)!important;border:0!important;box-shadow:0 4px 14px rgba(30,30,60,.08)!important;border-radius:16px!important}
html.nx .topTitle .t1{color:var(--nx-ink)!important;font-weight:600!important}html.nx .topTitle .t2{color:var(--nx-faint)!important}
html.nx .iqChip{background:linear-gradient(150deg,var(--nx-o1),var(--nx-o2))!important;color:#fff!important;border:0!important;box-shadow:0 8px 16px -8px var(--nx-glow)!important}
html.nx .segs .seg{background:#E4E4EC!important}html.nx .segs .seg.ok,html.nx .segs .seg.done{background:var(--c)!important}
html.nx .kind{background:#fff!important;color:var(--nx-ink)!important;border:0!important;box-shadow:0 4px 12px rgba(30,30,60,.07)!important}
html.nx .prompt{background:#fff!important;color:var(--nx-ink)!important;border:0!important;border-radius:22px!important;box-shadow:0 8px 22px rgba(30,30,60,.07)!important;
  font-family:var(--ui)!important;font-weight:600!important}
html.nx .opt{background:#fff!important;color:var(--nx-ink)!important;border:1.5px solid transparent!important;box-shadow:0 4px 14px rgba(30,30,60,.06)!important;border-radius:18px!important;font-family:var(--ui)!important}
html.nx .opt .key,html.nx .opt .k{background:#F3F3F7!important;color:var(--nx-soft)!important}
html.nx .opt.ok,html.nx .opt.right,html.nx .opt.correct{border-color:#3CB371!important;background:#EAF7EE!important}
html.nx .opt.bad,html.nx .opt.wrong{border-color:#E84A5A!important;background:#FDECEE!important}
html.nx .softBtn{background:#fff!important;color:var(--nx-ink)!important;border:0!important;box-shadow:0 4px 14px rgba(30,30,60,.07)!important}
html.nx .goBtn{background:var(--nx-ink)!important;color:#fff!important;border:0!important}
html.nx .clue,html.nx .fileWrap,html.nx .sus .face{background:#fff!important;color:var(--nx-ink)!important;border:0!important;box-shadow:0 6px 18px rgba(30,30,60,.07)!important}
html.nx .pad .k{background:#fff!important;color:var(--nx-ink)!important;border:0!important;box-shadow:0 4px 14px rgba(30,30,60,.07)!important}

/* ── the Pro pop-up ── */
.nxPop{position:fixed;inset:0;z-index:9999;background:rgba(20,18,40,.45);display:flex;align-items:flex-end;justify-content:center;padding:12px;box-sizing:border-box;
  opacity:0;transition:opacity .22s;font-family:"Poppins",system-ui,sans-serif}
html[lang=ar] .nxPop{font-family:"Cairo","Poppins",system-ui,sans-serif}
.nxPop.on{opacity:1}
@media (min-width:640px){.nxPop{align-items:center}}
.nxCard{position:relative;width:min(440px,100%);background:#fff;border-radius:28px;padding:26px 22px 18px;box-sizing:border-box;text-align:center;color:#16161D;
  box-shadow:0 30px 70px rgba(20,18,40,.3);transform:translateY(24px);transition:transform .25s cubic-bezier(.2,.8,.2,1);max-height:calc(100% - 20px);overflow:auto}
.nxPop.on .nxCard{transform:none}
.nxX{position:absolute;top:12px;inset-inline-end:12px;width:34px;height:34px;border-radius:50%;border:0;background:#F3F3F7;color:#6A6A78;font-size:20px;line-height:1;cursor:pointer}
.nxMas{height:110px;width:auto;display:block;margin:-6px auto 6px;filter:drop-shadow(0 10px 14px rgba(60,40,10,.2))}
.nxCard h2{font-size:21px;font-weight:600;line-height:1.3;margin:4px 6px 8px;letter-spacing:-.01em}
.nxMore{font-size:14.5px;line-height:1.55;color:#6A6A78;margin:0 4px 16px}.nxMore b{color:#16161D;font-weight:600}
.nxPrice{display:flex;align-items:baseline;justify-content:center;gap:10px;margin:0 0 14px}
.nxPrice b{font-size:40px;font-weight:800;letter-spacing:-.03em;background:linear-gradient(150deg,#FFB466,#E8792F);-webkit-background-clip:text;background-clip:text;color:transparent}
.nxPrice span{font-size:14px;color:#6A6A78}
.nxGo{display:block;width:100%;height:54px;border:0;border-radius:99px;background:linear-gradient(150deg,#FFC184,#F2924F);color:#fff;font:600 16.5px inherit;font-family:inherit;cursor:pointer;
  box-shadow:0 14px 26px -12px rgba(242,146,79,.8),inset 0 1.5px 0 rgba(255,255,255,.4)}
.nxGo:disabled{opacity:.7}
.nxNote{font-size:12.5px;color:#8A8A98;margin:10px 4px 2px;line-height:1.45}
.nxLinks{display:flex;justify-content:center;gap:6px 18px;flex-wrap:wrap;margin-top:10px}
.nxLinks button{background:none;border:0;color:#6A6A78;font:500 13.5px inherit;font-family:inherit;cursor:pointer;padding:8px 4px;text-decoration:underline;text-underline-offset:3px}
.nxIn{display:block;width:100%;height:50px;border-radius:16px;border:1.5px solid #E4E4EC;padding:0 16px;box-sizing:border-box;font:400 16px inherit;font-family:inherit;margin:0 0 12px;outline:none}
.nxIn:focus{border-color:#F2924F}
.nxMsg{font-size:13.5px;color:#2F7A45;margin:12px 0 0;line-height:1.45}
.nxToast{position:fixed;left:50%;top:18px;transform:translate(-50%,-20px);opacity:0;z-index:10000;background:#16161D;color:#fff;padding:12px 18px;border-radius:16px;
  font:500 14px "Poppins",system-ui,sans-serif;transition:all .3s;box-shadow:0 14px 30px rgba(20,20,40,.3);max-width:calc(100% - 32px)}
.nxToast.on{opacity:1;transform:translate(-50%,0)}
html.nx #lvClassic.lvBtn,html.nx #genTog.lvBtn{background:none!important;aspect-ratio:auto!important;width:auto!important;margin:0!important;color:var(--nx-soft)!important;text-shadow:none!important;
  opacity:1!important;filter:none!important;font:600 14.5px var(--ui)!important;padding:11px 8px!important;border-radius:99px!important}
html.nx #lvClassic.lvBtn.on,html.nx #genTog.lvBtn.on{background:var(--nx-ink)!important;color:#fff!important;filter:none!important}
html.nx #quiz .iqChip,html.nx #case .iqChip,html.nx #vault .iqChip{background:linear-gradient(150deg,var(--nx-o1),var(--nx-o2))!important;color:#fff!important;border:0!important;font:700 15px var(--ui)!important}
/* desktop: the home page is as wide as FileFi's (860), the game screens stay a comfortable column */
@media (min-width:900px){html.nx .screen#home{max-width:none!important}}
html.nx #home > :not(.brand){max-width:860px!important}
html.nx #home .brand{max-width:892px!important}
html.nx #home .siteFoot{max-width:860px!important}
/* the mascot's words: a white speech bubble beside the IQ box */
html.nx #seal .sealRing.phone .phoneTalk{inset:auto!important;inset-inline-start:calc(100% + 14px)!important;top:-4px!important;width:clamp(130px,calc(100vw - 340px),330px)!important;
  height:auto!important;min-height:0!important;padding:10px 14px!important;border-radius:18px!important;border-start-start-radius:6px!important;background:#fff!important;
  box-shadow:0 10px 22px -12px rgba(120,50,10,.55)!important;justify-content:flex-start!important}
html.nx #seal .sealRing.phone .phoneTalk span{color:var(--nx-ink)!important;font:600 13px/1.35 var(--ui)!important;text-align:start!important}
html.nx #seal .sealRing.phone .phoneTalk b{color:var(--nx-o2)!important}
html.nx #seal.talking .sealCore{opacity:1!important}
@media (min-width:700px){html.nx #seal .sealRing.phone .phoneTalk{width:clamp(160px,calc(100% * 3),360px)!important}}
/* My IQ: the same soft grey as the rest */
html.nx #scoreView{background:var(--nx-bg)!important}
html.nx #scoreView .svIn > *{color:inherit}
/* Me: Pro first */
html.nx .hbMl a.nxMe b{margin-inline-start:auto;font:600 12px var(--ui);color:#fff;background:linear-gradient(150deg,var(--nx-o1),var(--nx-o2));padding:3px 10px;border-radius:99px}
/* v204 (Amar): the greeting always on the left, in every language — the mascot's hair rises on the right */
html.nx .nxHi,html.nx .nxHi h2{text-align:left!important}

/* v206 (Amar): Haya can be tapped again — she had stopped hearing taps in the new design, so after her first welcome she never
   spoke again (in any language) and could not be moved. */
html.nx #seal .mascot{pointer-events:auto!important;cursor:pointer;z-index:3}
/* v206: her speech box is wider, and its little arrow points at her (towards her mouth), not away from her */
html.nx #seal .sealRing.phone .phoneTalk{overflow:visible!important;border-radius:18px!important;top:-2px!important;
  width:clamp(140px,calc(min(100vw,892px) - 322px),540px)!important}
html.nx #seal .sealRing.phone .phoneTalk::after{content:"";position:absolute;inset-inline-end:-6px;top:13px;width:14px;height:14px;background:#fff;
  border-radius:3px;transform:rotate(45deg)}
